@cas-smartdesign/tab-bar 4.1.1 → 4.1.2
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 +15 -15
- package/dist/tab-bar-with-externals.js +4 -4
- package/dist/tab-bar-with-externals.js.map +2 -2
- package/dist/tab-bar.mjs +15 -11
- package/dist/tab-bar.mjs.map +1 -1
- package/package.json +4 -4
package/dist/docs/doc.mjs
CHANGED
|
@@ -161,9 +161,9 @@ updateContent(tabs[0].caption);
|
|
|
161
161
|
function updateContent(caption: string, anchor?: string) {
|
|
162
162
|
tabContent.innerHTML = \`<h1>\${caption}</h1><section>\${anchor ?? ""}</section>\`;
|
|
163
163
|
}
|
|
164
|
-
`,po={mainContent:co,description:uo,css:ho,initializer:{content:fo,type:"typescript",initialize:()=>Wr(()=>import("./3_vertical.js"),[],import.meta.url)}},mo=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"}));const ni=globalThis,un=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),Kn=new WeakMap;let Fr=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==hn)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(un&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Kn.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Kn.set(i,e))}return e}toString(){return this.cssText}};const Dt=t=>new Fr(typeof t=="string"?t:t+"",void 0,hn),hi=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((r,n,s)=>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.")})(n)+t[s+1]),t[0]);return new Fr(i,t,hn)},go=(t,e)=>{if(un)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),n=ni.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}},Vn=un?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Dt(i)})(t):t;const{is:bo,defineProperty:vo,getOwnPropertyDescriptor:yo,getOwnPropertyNames:wo,getOwnPropertySymbols:xo,getPrototypeOf:_o}=Object,di=globalThis,Gn=di.trustedTypes,Eo=Gn?Gn.emptyScript:"",So=di.reactiveElementPolyfillSupport,Ot=(t,e)=>t,si={toAttribute(t,e){switch(e){case Boolean:t=t?Eo:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},dn=(t,e)=>!bo(t,e),Zn={attribute:!0,type:String,converter:si,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;let dt=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=Zn){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(),n=this.getPropertyDescriptor(e,r,i);n!==void 0&&vo(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){const{get:n,set:s}=yo(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:n,set(a){const d=n?.call(this);s?.call(this,a),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Zn}static _$Ei(){if(this.hasOwnProperty(Ot("elementProperties")))return;const e=_o(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ot("properties"))){const i=this.properties,r=[...wo(i),...xo(i)];for(const n of r)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,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 n of r)i.unshift(Vn(n))}else e!==void 0&&i.push(Vn(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 go(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),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){const s=(r.converter?.toAttribute!==void 0?r.converter:si).toAttribute(i,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,i){const r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:si;this._$Em=n;const d=a.fromAttribute(i,s.type);this[n]=d??this._$Ej?.get(n)??d,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const n=this.constructor,s=this[e];if(r??=n.getPropertyOptions(e),!((r.hasChanged??dn)(s,i)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:n,wrapped:s},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),n===!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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,s]of r){const{wrapped:a}=s,d=this[n];a!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}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){}};dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Ot("elementProperties")]=new Map,dt[Ot("finalized")]=new Map,So?.({ReactiveElement:dt}),(di.reactiveElementVersions??=[]).push("2.1.1");const fn=globalThis,oi=fn.trustedTypes,Xn=oi?oi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kr="$lit$",Ge=`lit$${Math.random().toFixed(9).slice(2)}$`,Vr="?"+Ge,Ao=`<${Vr}>`,st=document,Pt=()=>st.createComment(""),Nt=t=>t===null||typeof t!="object"&&typeof t!="function",pn=Array.isArray,Co=t=>pn(t)||typeof t?.[Symbol.iterator]=="function",
|
|
165
|
-
\f\r]`,St=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jn=/-->/g,Yn=/>/g,tt=RegExp(`>|${
|
|
166
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qn=/'/g,er=/"/g,Gr=/^(?:script|style|textarea|title)$/i,Oo=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ve=Oo(1),ot=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),tr=new WeakMap,nt=st.createTreeWalker(st,129);function Zr(t,e){if(!pn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xn!==void 0?Xn.createHTML(e):e}const ko=(t,e)=>{const i=t.length-1,r=[];let n,s=e===2?"<svg>":e===3?"<math>":"",a=St;for(let d=0;d<i;d++){const f=t[d];let h,o,u=-1,c=0;for(;c<f.length&&(a.lastIndex=c,o=a.exec(f),o!==null);)c=a.lastIndex,a===St?o[1]==="!--"?a=Jn:o[1]!==void 0?a=Yn:o[2]!==void 0?(Gr.test(o[2])&&(n=RegExp("</"+o[2],"g")),a=tt):o[3]!==void 0&&(a=tt):a===tt?o[0]===">"?(a=n??St,u=-1):o[1]===void 0?u=-2:(u=a.lastIndex-o[2].length,h=o[1],a=o[3]===void 0?tt:o[3]==='"'?er:Qn):a===er||a===Qn?a=tt:a===Jn||a===Yn?a=St:(a=tt,n=void 0);const l=a===tt&&t[d+1].startsWith("/>")?" ":"";s+=a===St?f+Ao:u>=0?(r.push(h),f.slice(0,u)+Kr+f.slice(u)+Ge+l):f+Ge+(u===-2?d:l)}return[Zr(t,s+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Mt{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let s=0,a=0;const d=e.length-1,f=this.parts,[h,o]=ko(e,i);if(this.el=Mt.createElement(h,r),nt.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=nt.nextNode())!==null&&f.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(Kr)){const c=o[a++],l=n.getAttribute(u).split(Ge),p=/([.?@])?(.*)/.exec(c);f.push({type:1,index:s,name:p[2],strings:l,ctor:p[1]==="."?Ro:p[1]==="?"?Io:p[1]==="@"?Po:fi}),n.removeAttribute(u)}else u.startsWith(Ge)&&(f.push({type:6,index:s}),n.removeAttribute(u));if(Gr.test(n.tagName)){const u=n.textContent.split(Ge),c=u.length-1;if(c>0){n.textContent=oi?oi.emptyScript:"";for(let l=0;l<c;l++)n.append(u[l],Pt()),nt.nextNode(),f.push({type:2,index:++s});n.append(u[c],Pt())}}}else if(n.nodeType===8)if(n.data===Vr)f.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(Ge,u+1))!==-1;)f.push({type:7,index:s}),u+=Ge.length-1}s++}}static createElement(e,i){const r=st.createElement("template");return r.innerHTML=e,r}}function pt(t,e,i=t,r){if(e===ot)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl;const s=Nt(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=pt(t,n._$AS(t,e.values),n,r)),e}class $o{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,n=(e?.creationScope??st).importNode(i,!0);nt.currentNode=n;let s=nt.nextNode(),a=0,d=0,f=r[0];for(;f!==void 0;){if(a===f.index){let h;f.type===2?h=new jt(s,s.nextSibling,this,e):f.type===1?h=new f.ctor(s,f.name,f.strings,this,e):f.type===6&&(h=new No(s,this,e)),this._$AV.push(h),f=r[++d]}a!==f?.index&&(s=nt.nextNode(),a++)}return nt.currentNode=st,n}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 jt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.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=pt(this,e,i),Nt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Co(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!==Y&&Nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(st.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Mt.createElement(Zr(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{const s=new $o(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let i=tr.get(e.strings);return i===void 0&&tr.set(e.strings,i=new Mt(e)),i}k(e){pn(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,n=0;for(const s of e)n===i.length?i.push(r=new jt(this.O(Pt()),this.O(Pt()),this,this.options)):r=i[n],r._$AI(s),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$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 fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,s){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,i=this,r,n){const s=this.strings;let a=!1;if(s===void 0)e=pt(this,e,i,0),a=!Nt(e)||e!==this._$AH&&e!==ot,a&&(this._$AH=e);else{const d=e;let f,h;for(e=s[0],f=0;f<s.length-1;f++)h=pt(this,d[r+f],i,f),h===ot&&(h=this._$AH[f]),a||=!Nt(h)||h!==this._$AH[f],h===Y?e=Y:e!==Y&&(e+=(h??"")+s[f+1]),this._$AH[f]=h}a&&!n&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ro extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}let Io=class extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}},Po=class extends fi{constructor(e,i,r,n,s){super(e,i,r,n,s),this.type=5}_$AI(e,i=this){if((e=pt(this,e,i,0)??Y)===ot)return;const r=this._$AH,n=e===Y&&r!==Y||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==Y&&(r===Y||n);n&&this.element.removeEventListener(this.name,this,r),s&&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 No{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){pt(this,e)}}const Mo=fn.litHtmlPolyfillSupport;Mo?.(Mt,jt),(fn.litHtmlVersions??=[]).push("3.3.1");const To=(t,e,i)=>{const r=i?.renderBefore??e;let n=r._$litPart$;if(n===void 0){const s=i?.renderBefore??null;r._$litPart$=n=new jt(e.insertBefore(Pt(),s),s,void 0,i??{})}return n._$AI(t),n};const mn=globalThis;let qe=class extends dt{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=To(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ot}};qe._$litElement$=!0,qe.finalized=!0,mn.litElementHydrateSupport?.({LitElement:qe});const Lo=mn.litElementPolyfillSupport;Lo?.({LitElement:qe});(mn.litElementVersions??=[]).push("4.2.1");const Do={attribute:!0,type:String,converter:si,reflect:!1,hasChanged:dn},jo=(t=Do,e,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),r==="accessor"){const{name:a}=i;return{set(d){const f=e.get.call(this);e.set.call(this,d),this.requestUpdate(a,f,t)},init(d){return d!==void 0&&this.C(a,void 0,t,d),d}}}if(r==="setter"){const{name:a}=i;return function(d){const f=this[a];e.call(this,d),this.requestUpdate(a,f,t)}}throw Error("Unsupported decorator location: "+r)};function K(t){return(e,i)=>typeof i=="object"?jo(t,e,i):((r,n,s)=>{const a=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,i)}var pe="top",Ae="bottom",Ce="right",me="left",gn="auto",Bt=[pe,Ae,Ce,me],mt="start",Tt="end",Bo="clippingParents",Xr="viewport",At="popper",zo="reference",ir=Bt.reduce(function(t,e){return t.concat([e+"-"+mt,e+"-"+Tt])},[]),Jr=[].concat(Bt,[gn]).reduce(function(t,e){return t.concat([e,e+"-"+mt,e+"-"+Tt])},[]),Uo="beforeRead",qo="read",Ho="afterRead",Wo="beforeMain",Fo="main",Ko="afterMain",Vo="beforeWrite",Go="write",Zo="afterWrite",Xo=[Uo,qo,Ho,Wo,Fo,Ko,Vo,Go,Zo];function De(t){return t?(t.nodeName||"").toLowerCase():null}function we(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function at(t){var e=we(t).Element;return t instanceof e||t instanceof Element}function Se(t){var e=we(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function bn(t){if(typeof ShadowRoot>"u")return!1;var e=we(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Jo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var r=e.styles[i]||{},n=e.attributes[i]||{},s=e.elements[i];!Se(s)||!De(s)||(Object.assign(s.style,r),Object.keys(n).forEach(function(a){var d=n[a];d===!1?s.removeAttribute(a):s.setAttribute(a,d===!0?"":d)}))})}function Yo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(r){var n=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:i[r]),d=a.reduce(function(f,h){return f[h]="",f},{});!Se(n)||!De(n)||(Object.assign(n.style,d),Object.keys(s).forEach(function(f){n.removeAttribute(f)}))})}}const Qo={name:"applyStyles",enabled:!0,phase:"write",fn:Jo,effect:Yo,requires:["computeStyles"]};function Le(t){return t.split("-")[0]}var rt=Math.max,ai=Math.min,gt=Math.round;function an(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(an())}function bt(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var r=t.getBoundingClientRect(),n=1,s=1;e&&Se(t)&&(n=t.offsetWidth>0&>(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&>(r.height)/t.offsetHeight||1);var a=at(t)?we(t):window,d=a.visualViewport,f=!Yr()&&i,h=(r.left+(f&&d?d.offsetLeft:0))/n,o=(r.top+(f&&d?d.offsetTop:0))/s,u=r.width/n,c=r.height/s;return{width:u,height:c,top:o,right:h+u,bottom:o+c,left:h,x:h,y:o}}function vn(t){var e=bt(t),i=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:r}}function Qr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&bn(i)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(t){return we(t).getComputedStyle(t)}function ea(t){return["table","td","th"].indexOf(De(t))>=0}function Ze(t){return((at(t)?t.ownerDocument:t.document)||window.document).documentElement}function pi(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(bn(t)?t.host:null)||Ze(t)}function nr(t){return!Se(t)||He(t).position==="fixed"?null:t.offsetParent}function ta(t){var e=/firefox/i.test(an()),i=/Trident/i.test(an());if(i&&Se(t)){var r=He(t);if(r.position==="fixed")return null}var n=pi(t);for(bn(n)&&(n=n.host);Se(n)&&["html","body"].indexOf(De(n))<0;){var s=He(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function zt(t){for(var e=we(t),i=nr(t);i&&ea(i)&&He(i).position==="static";)i=nr(i);return i&&(De(i)==="html"||De(i)==="body"&&He(i).position==="static")?e:i||ta(t)||e}function yn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return rt(t,ai(e,i))}function ia(t,e,i){var r=kt(t,e,i);return r>i?i:r}function es(){return{top:0,right:0,bottom:0,left:0}}function ts(t){return Object.assign({},es(),t)}function is(t,e){return e.reduce(function(i,r){return i[r]=t,i},{})}var na=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,ts(typeof e!="number"?e:is(e,Bt))};function ra(t){var e,i=t.state,r=t.name,n=t.options,s=i.elements.arrow,a=i.modifiersData.popperOffsets,d=Le(i.placement),f=yn(d),h=[me,Ce].indexOf(d)>=0,o=h?"height":"width";if(!(!s||!a)){var u=na(n.padding,i),c=vn(s),l=f==="y"?pe:me,p=f==="y"?Ae:Ce,m=i.rects.reference[o]+i.rects.reference[f]-a[f]-i.rects.popper[o],b=a[f]-i.rects.reference[f],x=zt(s),_=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-b/2,y=u[l],v=_-c[o]-u[p],E=_/2-c[o]/2+w,A=kt(y,E,v),I=f;i.modifiersData[r]=(e={},e[I]=A,e.centerOffset=A-E,e)}}function sa(t){var e=t.state,i=t.options,r=i.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Qr(e.elements.popper,n)&&(e.elements.arrow=n))}const oa={name:"arrow",enabled:!0,phase:"main",fn:ra,effect:sa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t){return t.split("-")[1]}var aa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function la(t,e){var i=t.x,r=t.y,n=e.devicePixelRatio||1;return{x:gt(i*n)/n||0,y:gt(r*n)/n||0}}function rr(t){var e,i=t.popper,r=t.popperRect,n=t.placement,s=t.variation,a=t.offsets,d=t.position,f=t.gpuAcceleration,h=t.adaptive,o=t.roundOffsets,u=t.isFixed,c=a.x,l=c===void 0?0:c,p=a.y,m=p===void 0?0:p,b=typeof o=="function"?o({x:l,y:m}):{x:l,y:m};l=b.x,m=b.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=me,y=pe,v=window;if(h){var E=zt(i),A="clientHeight",I="clientWidth";if(E===we(i)&&(E=Ze(i),He(E).position!=="static"&&d==="absolute"&&(A="scrollHeight",I="scrollWidth")),E=E,n===pe||(n===me||n===Ce)&&s===Tt){y=Ae;var M=u&&E===v&&v.visualViewport?v.visualViewport.height:E[A];m-=M-r.height,m*=f?1:-1}if(n===me||(n===pe||n===Ae)&&s===Tt){w=Ce;var O=u&&E===v&&v.visualViewport?v.visualViewport.width:E[I];l-=O-r.width,l*=f?1:-1}}var q=Object.assign({position:d},h&&aa),z=o===!0?la({x:l,y:m},we(i)):{x:l,y:m};if(l=z.x,m=z.y,f){var Q;return Object.assign({},q,(Q={},Q[y]=_?"0":"",Q[w]=x?"0":"",Q.transform=(v.devicePixelRatio||1)<=1?"translate("+l+"px, "+m+"px)":"translate3d("+l+"px, "+m+"px, 0)",Q))}return Object.assign({},q,(e={},e[y]=_?m+"px":"",e[w]=x?l+"px":"",e.transform="",e))}function ca(t){var e=t.state,i=t.options,r=i.gpuAcceleration,n=r===void 0?!0:r,s=i.adaptive,a=s===void 0?!0:s,d=i.roundOffsets,f=d===void 0?!0:d,h={placement:Le(e.placement),variation:vt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rr(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rr(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ca,data:{}};var Yt={passive:!0};function ha(t){var e=t.state,i=t.instance,r=t.options,n=r.scroll,s=n===void 0?!0:n,a=r.resize,d=a===void 0?!0:a,f=we(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&h.forEach(function(o){o.addEventListener("scroll",i.update,Yt)}),d&&f.addEventListener("resize",i.update,Yt),function(){s&&h.forEach(function(o){o.removeEventListener("scroll",i.update,Yt)}),d&&f.removeEventListener("resize",i.update,Yt)}}const da={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ha,data:{}};var fa={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(t){return t.replace(/left|right|bottom|top/g,function(e){return fa[e]})}var pa={start:"end",end:"start"};function sr(t){return t.replace(/start|end/g,function(e){return pa[e]})}function wn(t){var e=we(t),i=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:i,scrollTop:r}}function xn(t){return bt(Ze(t)).left+wn(t).scrollLeft}function ma(t,e){var i=we(t),r=Ze(t),n=i.visualViewport,s=r.clientWidth,a=r.clientHeight,d=0,f=0;if(n){s=n.width,a=n.height;var h=Yr();(h||!h&&e==="fixed")&&(d=n.offsetLeft,f=n.offsetTop)}return{width:s,height:a,x:d+xn(t),y:f}}function ga(t){var e,i=Ze(t),r=wn(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=rt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=rt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),d=-r.scrollLeft+xn(t),f=-r.scrollTop;return He(n||i).direction==="rtl"&&(d+=rt(i.clientWidth,n?n.clientWidth:0)-s),{width:s,height:a,x:d,y:f}}function _n(t){var e=He(t),i=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+r)}function ns(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Se(t)&&_n(t)?t:ns(pi(t))}function $t(t,e){var i;e===void 0&&(e=[]);var r=ns(t),n=r===((i=t.ownerDocument)==null?void 0:i.body),s=we(r),a=n?[s].concat(s.visualViewport||[],_n(r)?r:[]):r,d=e.concat(a);return n?d:d.concat($t(pi(a)))}function ln(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ba(t,e){var i=bt(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function or(t,e,i){return e===Xr?ln(ma(t,i)):at(e)?ba(e,i):ln(ga(Ze(t)))}function va(t){var e=$t(pi(t)),i=["absolute","fixed"].indexOf(He(t).position)>=0,r=i&&Se(t)?zt(t):t;return at(r)?e.filter(function(n){return at(n)&&Qr(n,r)&&De(n)!=="body"}):[]}function ya(t,e,i,r){var n=e==="clippingParents"?va(t):[].concat(e),s=[].concat(n,[i]),a=s[0],d=s.reduce(function(f,h){var o=or(t,h,r);return f.top=rt(o.top,f.top),f.right=ai(o.right,f.right),f.bottom=ai(o.bottom,f.bottom),f.left=rt(o.left,f.left),f},or(t,a,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function rs(t){var e=t.reference,i=t.element,r=t.placement,n=r?Le(r):null,s=r?vt(r):null,a=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,f;switch(n){case pe:f={x:a,y:e.y-i.height};break;case Ae:f={x:a,y:e.y+e.height};break;case Ce:f={x:e.x+e.width,y:d};break;case me:f={x:e.x-i.width,y:d};break;default:f={x:e.x,y:e.y}}var h=n?yn(n):null;if(h!=null){var o=h==="y"?"height":"width";switch(s){case mt:f[h]=f[h]-(e[o]/2-i[o]/2);break;case Tt:f[h]=f[h]+(e[o]/2-i[o]/2);break}}return f}function Lt(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=r===void 0?t.placement:r,s=i.strategy,a=s===void 0?t.strategy:s,d=i.boundary,f=d===void 0?Bo:d,h=i.rootBoundary,o=h===void 0?Xr:h,u=i.elementContext,c=u===void 0?At:u,l=i.altBoundary,p=l===void 0?!1:l,m=i.padding,b=m===void 0?0:m,x=ts(typeof b!="number"?b:is(b,Bt)),_=c===At?zo:At,w=t.rects.popper,y=t.elements[p?_:c],v=ya(at(y)?y:y.contextElement||Ze(t.elements.popper),f,o,a),E=bt(t.elements.reference),A=rs({reference:E,element:w,placement:n}),I=ln(Object.assign({},w,A)),M=c===At?I:E,O={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},q=t.modifiersData.offset;if(c===At&&q){var z=q[n];Object.keys(O).forEach(function(Q){var ne=[Ce,Ae].indexOf(Q)>=0?1:-1,R=[pe,Ae].indexOf(Q)>=0?"y":"x";O[Q]+=z[R]*ne})}return O}function wa(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=i.boundary,s=i.rootBoundary,a=i.padding,d=i.flipVariations,f=i.allowedAutoPlacements,h=f===void 0?Jr:f,o=vt(r),u=o?d?ir:ir.filter(function(p){return vt(p)===o}):Bt,c=u.filter(function(p){return h.indexOf(p)>=0});c.length===0&&(c=u);var l=c.reduce(function(p,m){return p[m]=Lt(t,{placement:m,boundary:n,rootBoundary:s,padding:a})[Le(m)],p},{});return Object.keys(l).sort(function(p,m){return l[p]-l[m]})}function xa(t){if(Le(t)===gn)return[];var e=ri(t);return[sr(t),e,sr(e)]}function _a(t){var e=t.state,i=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!0:a,f=i.fallbackPlacements,h=i.padding,o=i.boundary,u=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,p=l===void 0?!0:l,m=i.allowedAutoPlacements,b=e.options.placement,x=Le(b),_=x===b,w=f||(_||!p?[ri(b)]:xa(b)),y=[b].concat(w).reduce(function(_e,fe){return _e.concat(Le(fe)===gn?wa(e,{placement:fe,boundary:o,rootBoundary:u,padding:h,flipVariations:p,allowedAutoPlacements:m}):fe)},[]),v=e.rects.reference,E=e.rects.popper,A=new Map,I=!0,M=y[0],O=0;O<y.length;O++){var q=y[O],z=Le(q),Q=vt(q)===mt,ne=[pe,Ae].indexOf(z)>=0,R=ne?"width":"height",re=Lt(e,{placement:q,boundary:o,rootBoundary:u,altBoundary:c,padding:h}),H=ne?Q?Ce:me:Q?Ae:pe;v[R]>E[R]&&(H=ri(H));var X=ri(H),ee=[];if(s&&ee.push(re[z]<=0),d&&ee.push(re[H]<=0,re[X]<=0),ee.every(function(_e){return _e})){M=q,I=!1;break}A.set(q,ee)}if(I)for(var oe=p?3:1,xe=function(fe){var je=y.find(function(Re){var Oe=A.get(Re);if(Oe)return Oe.slice(0,fe).every(function(Ie){return Ie})});if(je)return M=je,"break"},ge=oe;ge>0;ge--){var D=xe(ge);if(D==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}const Ea={name:"flip",enabled:!0,phase:"main",fn:_a,requiresIfExists:["offset"],data:{_skip:!1}};function ar(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function lr(t){return[pe,Ce,Ae,me].some(function(e){return t[e]>=0})}function Sa(t){var e=t.state,i=t.name,r=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,a=Lt(e,{elementContext:"reference"}),d=Lt(e,{altBoundary:!0}),f=ar(a,r),h=ar(d,n,s),o=lr(f),u=lr(h);e.modifiersData[i]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:o,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":u})}const Aa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sa};function Ca(t,e,i){var r=Le(t),n=[me,pe].indexOf(r)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=s[0],d=s[1];return a=a||0,d=(d||0)*n,[me,Ce].indexOf(r)>=0?{x:d,y:a}:{x:a,y:d}}function Oa(t){var e=t.state,i=t.options,r=t.name,n=i.offset,s=n===void 0?[0,0]:n,a=Jr.reduce(function(o,u){return o[u]=Ca(u,e.rects,s),o},{}),d=a[e.placement],f=d.x,h=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=a}const ka={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oa};function $a(t){var e=t.state,i=t.name;e.modifiersData[i]=rs({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ra={name:"popperOffsets",enabled:!0,phase:"read",fn:$a,data:{}};function Ia(t){return t==="x"?"y":"x"}function Pa(t){var e=t.state,i=t.options,r=t.name,n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!1:a,f=i.boundary,h=i.rootBoundary,o=i.altBoundary,u=i.padding,c=i.tether,l=c===void 0?!0:c,p=i.tetherOffset,m=p===void 0?0:p,b=Lt(e,{boundary:f,rootBoundary:h,padding:u,altBoundary:o}),x=Le(e.placement),_=vt(e.placement),w=!_,y=yn(x),v=Ia(y),E=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,M=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,O=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(E){if(s){var Q,ne=y==="y"?pe:me,R=y==="y"?Ae:Ce,re=y==="y"?"height":"width",H=E[y],X=H+b[ne],ee=H-b[R],oe=l?-I[re]/2:0,xe=_===mt?A[re]:I[re],ge=_===mt?-I[re]:-A[re],D=e.elements.arrow,_e=l&&D?vn(D):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:es(),je=fe[ne],Re=fe[R],Oe=kt(0,A[re],_e[re]),Ie=w?A[re]/2-oe-Oe-je-O.mainAxis:xe-Oe-je-O.mainAxis,wt=w?-A[re]/2+oe+Oe+Re+O.mainAxis:ge+Oe+Re+O.mainAxis,Ee=e.elements.arrow&&zt(e.elements.arrow),Je=Ee?y==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Ye=(Q=q?.[y])!=null?Q:0,xi=H+Ie-Ye-Je,_i=H+wt-Ye,Ht=kt(l?ai(X,xi):X,H,l?rt(ee,_i):ee);E[y]=Ht,z[y]=Ht-H}if(d){var Wt,Ei=y==="x"?pe:me,Ft=y==="x"?Ae:Ce,Be=E[v],ct=v==="y"?"height":"width",xt=Be+b[Ei],Pe=Be-b[Ft],ut=[pe,me].indexOf(x)!==-1,ze=(Wt=q?.[v])!=null?Wt:0,Qe=ut?xt:Be-A[ct]-I[ct]-ze+O.altAxis,_t=ut?Be+A[ct]+I[ct]-ze-O.altAxis:Pe,Kt=l&&ut?ia(Qe,Be,_t):kt(l?Qe:xt,Be,l?_t:Pe);E[v]=Kt,z[v]=Kt-Be}e.modifiersData[r]=z}}const Na={name:"preventOverflow",enabled:!0,phase:"main",fn:Pa,requiresIfExists:["offset"]};function Ma(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ta(t){return t===we(t)||!Se(t)?wn(t):Ma(t)}function La(t){var e=t.getBoundingClientRect(),i=gt(e.width)/t.offsetWidth||1,r=gt(e.height)/t.offsetHeight||1;return i!==1||r!==1}function Da(t,e,i){i===void 0&&(i=!1);var r=Se(e),n=Se(e)&&La(e),s=Ze(e),a=bt(t,n,i),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!i)&&((De(e)!=="body"||_n(s))&&(d=Ta(e)),Se(e)?(f=bt(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):s&&(f.x=xn(s))),{x:a.left+d.scrollLeft-f.x,y:a.top+d.scrollTop-f.y,width:a.width,height:a.height}}function ja(t){var e=new Map,i=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function n(s){i.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(d){if(!i.has(d)){var f=e.get(d);f&&n(f)}}),r.push(s)}return t.forEach(function(s){i.has(s.name)||n(s)}),r}function Ba(t){var e=ja(t);return Xo.reduce(function(i,r){return i.concat(e.filter(function(n){return n.phase===r}))},[])}function za(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ua(t){var e=t.reduce(function(i,r){var n=i[r.name];return i[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,i},{});return Object.keys(e).map(function(i){return e[i]})}var cr={placement:"bottom",modifiers:[],strategy:"absolute"};function ur(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qa(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,r=i===void 0?[]:i,n=e.defaultOptions,s=n===void 0?cr:n;return function(d,f,h){h===void 0&&(h=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},cr,s),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},u=[],c=!1,l={state:o,setOptions:function(x){var _=typeof x=="function"?x(o.options):x;m(),o.options=Object.assign({},s,o.options,_),o.scrollParents={reference:at(d)?$t(d):d.contextElement?$t(d.contextElement):[],popper:$t(f)};var w=Ba(Ua([].concat(r,o.options.modifiers)));return o.orderedModifiers=w.filter(function(y){return y.enabled}),p(),l.update()},forceUpdate:function(){if(!c){var x=o.elements,_=x.reference,w=x.popper;if(ur(_,w)){o.rects={reference:Da(_,zt(w),o.options.strategy==="fixed"),popper:vn(w)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(O){return o.modifiersData[O.name]=Object.assign({},O.data)});for(var y=0;y<o.orderedModifiers.length;y++){if(o.reset===!0){o.reset=!1,y=-1;continue}var v=o.orderedModifiers[y],E=v.fn,A=v.options,I=A===void 0?{}:A,M=v.name;typeof E=="function"&&(o=E({state:o,options:I,name:M,instance:l})||o)}}}},update:za(function(){return new Promise(function(b){l.forceUpdate(),b(o)})}),destroy:function(){m(),c=!0}};if(!ur(d,f))return l;l.setOptions(h).then(function(b){!c&&h.onFirstUpdate&&h.onFirstUpdate(b)});function p(){o.orderedModifiers.forEach(function(b){var x=b.name,_=b.options,w=_===void 0?{}:_,y=b.effect;if(typeof y=="function"){var v=y({state:o,name:x,instance:l,options:w}),E=function(){};u.push(v||E)}})}function m(){u.forEach(function(b){return b()}),u=[]}return l}}var Ha=[da,Ra,ua,Qo,ka,Ea,Na,oa,Aa],Wa=qa({defaultModifiers:Ha});const En={ATTRIBUTE:1,CHILD:2},ss=t=>(...e)=>({_$litDirective$:t,values:e});let os=class{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 cn extends os{constructor(e){if(super(e),this.it=Y,e.type!==En.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||e==null)return this._t=void 0,this.it=e;if(e===ot)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:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const Fa=ss(cn);const Qt=t=>t??Y;const Ka=t=>t.strings===void 0;const Rt=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(e,!1),Rt(r,e);return!0},li=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},as=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Za(e)}};function Va(t){this._$AN!==void 0?(li(this),this._$AM=t,as(this)):this._$AM=t}function Ga(t,e=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(r))for(let s=i;s<r.length;s++)Rt(r[s],!1),li(r[s]);else r!=null&&(Rt(r,!1),li(r));else Rt(this,t)}const Za=t=>{t.type==En.CHILD&&(t._$AP??=Ga,t._$AQ??=Va)};class Xa extends os{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),as(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Rt(this,e),li(this))}setValue(e){if(Ka(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 hr=t=>t?t.startsWith("url")?t:`url("${t}")`:null,Ja=(t,e)=>{if(t){const i=new Image;i.addEventListener("load",e),i.src=t,i.complete&&(i.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class Ya extends Xa{constructor(e){if(super(e),e.type!==En.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(n=>{this.preload(n,r)}),this.useCssBackground?hr(i):i}preload(e,i){e!=null&&!i.cancelled&&Ja(e,()=>{i.cancelled||this.setValue(this.useCssBackground?hr(e):e)})}}const Qa=ss(Ya),el=':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)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.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 tl=Object.defineProperty,de=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&tl(e,i,n),n},it;const ue=(it=class extends qe{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[hi`
|
|
164
|
+
`,po={mainContent:co,description:uo,css:ho,initializer:{content:fo,type:"typescript",initialize:()=>Wr(()=>import("./3_vertical.js"),[],import.meta.url)}},mo=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"}));const ni=globalThis,un=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hn=Symbol(),Kn=new WeakMap;let Fr=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==hn)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(un&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Kn.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Kn.set(i,e))}return e}toString(){return this.cssText}};const Dt=t=>new Fr(typeof t=="string"?t:t+"",void 0,hn),hi=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((r,n,s)=>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.")})(n)+t[s+1]),t[0]);return new Fr(i,t,hn)},go=(t,e)=>{if(un)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),n=ni.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=i.cssText,t.appendChild(r)}},Vn=un?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return Dt(i)})(t):t;const{is:bo,defineProperty:vo,getOwnPropertyDescriptor:yo,getOwnPropertyNames:wo,getOwnPropertySymbols:xo,getPrototypeOf:_o}=Object,di=globalThis,Gn=di.trustedTypes,Eo=Gn?Gn.emptyScript:"",So=di.reactiveElementPolyfillSupport,Ot=(t,e)=>t,si={toAttribute(t,e){switch(e){case Boolean:t=t?Eo:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},dn=(t,e)=>!bo(t,e),Zn={attribute:!0,type:String,converter:si,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;let dt=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=Zn){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(),n=this.getPropertyDescriptor(e,r,i);n!==void 0&&vo(this.prototype,e,n)}}static getPropertyDescriptor(e,i,r){const{get:n,set:s}=yo(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:n,set(a){const d=n?.call(this);s?.call(this,a),this.requestUpdate(e,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Zn}static _$Ei(){if(this.hasOwnProperty(Ot("elementProperties")))return;const e=_o(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ot("properties"))){const i=this.properties,r=[...wo(i),...xo(i)];for(const n of r)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,n]of i)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const n=this._$Eu(i,r);n!==void 0&&this._$Eh.set(n,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 n of r)i.unshift(Vn(n))}else e!==void 0&&i.push(Vn(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 go(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),n=this.constructor._$Eu(e,r);if(n!==void 0&&r.reflect===!0){const s=(r.converter?.toAttribute!==void 0?r.converter:si).toAttribute(i,r.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,i){const r=this.constructor,n=r._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const s=r.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:si;this._$Em=n;const d=a.fromAttribute(i,s.type);this[n]=d??this._$Ej?.get(n)??d,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const n=this.constructor,s=this[e];if(r??=n.getPropertyOptions(e),!((r.hasChanged??dn)(s,i)||r.useDefault&&r.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:n,wrapped:s},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),n===!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[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,s]of r){const{wrapped:a}=s,d=this[n];a!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,s,d)}}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){}};dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Ot("elementProperties")]=new Map,dt[Ot("finalized")]=new Map,So?.({ReactiveElement:dt}),(di.reactiveElementVersions??=[]).push("2.1.1");const fn=globalThis,oi=fn.trustedTypes,Xn=oi?oi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kr="$lit$",Ge=`lit$${Math.random().toFixed(9).slice(2)}$`,Vr="?"+Ge,Ao=`<${Vr}>`,st=document,Pt=()=>st.createComment(""),Nt=t=>t===null||typeof t!="object"&&typeof t!="function",pn=Array.isArray,Co=t=>pn(t)||typeof t?.[Symbol.iterator]=="function",Ri=`[
|
|
165
|
+
\f\r]`,St=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jn=/-->/g,Yn=/>/g,tt=RegExp(`>|${Ri}(?:([^\\s"'>=/]+)(${Ri}*=${Ri}*(?:[^
|
|
166
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qn=/'/g,er=/"/g,Gr=/^(?:script|style|textarea|title)$/i,Oo=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ve=Oo(1),ot=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),tr=new WeakMap,nt=st.createTreeWalker(st,129);function Zr(t,e){if(!pn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xn!==void 0?Xn.createHTML(e):e}const ko=(t,e)=>{const i=t.length-1,r=[];let n,s=e===2?"<svg>":e===3?"<math>":"",a=St;for(let d=0;d<i;d++){const f=t[d];let h,o,u=-1,c=0;for(;c<f.length&&(a.lastIndex=c,o=a.exec(f),o!==null);)c=a.lastIndex,a===St?o[1]==="!--"?a=Jn:o[1]!==void 0?a=Yn:o[2]!==void 0?(Gr.test(o[2])&&(n=RegExp("</"+o[2],"g")),a=tt):o[3]!==void 0&&(a=tt):a===tt?o[0]===">"?(a=n??St,u=-1):o[1]===void 0?u=-2:(u=a.lastIndex-o[2].length,h=o[1],a=o[3]===void 0?tt:o[3]==='"'?er:Qn):a===er||a===Qn?a=tt:a===Jn||a===Yn?a=St:(a=tt,n=void 0);const l=a===tt&&t[d+1].startsWith("/>")?" ":"";s+=a===St?f+Ao:u>=0?(r.push(h),f.slice(0,u)+Kr+f.slice(u)+Ge+l):f+Ge+(u===-2?d:l)}return[Zr(t,s+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Mt{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let s=0,a=0;const d=e.length-1,f=this.parts,[h,o]=ko(e,i);if(this.el=Mt.createElement(h,r),nt.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=nt.nextNode())!==null&&f.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(Kr)){const c=o[a++],l=n.getAttribute(u).split(Ge),p=/([.?@])?(.*)/.exec(c);f.push({type:1,index:s,name:p[2],strings:l,ctor:p[1]==="."?Io:p[1]==="?"?Ro:p[1]==="@"?Po:fi}),n.removeAttribute(u)}else u.startsWith(Ge)&&(f.push({type:6,index:s}),n.removeAttribute(u));if(Gr.test(n.tagName)){const u=n.textContent.split(Ge),c=u.length-1;if(c>0){n.textContent=oi?oi.emptyScript:"";for(let l=0;l<c;l++)n.append(u[l],Pt()),nt.nextNode(),f.push({type:2,index:++s});n.append(u[c],Pt())}}}else if(n.nodeType===8)if(n.data===Vr)f.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(Ge,u+1))!==-1;)f.push({type:7,index:s}),u+=Ge.length-1}s++}}static createElement(e,i){const r=st.createElement("template");return r.innerHTML=e,r}}function pt(t,e,i=t,r){if(e===ot)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl;const s=Nt(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=pt(t,n._$AS(t,e.values),n,r)),e}class $o{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,n=(e?.creationScope??st).importNode(i,!0);nt.currentNode=n;let s=nt.nextNode(),a=0,d=0,f=r[0];for(;f!==void 0;){if(a===f.index){let h;f.type===2?h=new jt(s,s.nextSibling,this,e):f.type===1?h=new f.ctor(s,f.name,f.strings,this,e):f.type===6&&(h=new No(s,this,e)),this._$AV.push(h),f=r[++d]}a!==f?.index&&(s=nt.nextNode(),a++)}return nt.currentNode=st,n}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 jt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.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=pt(this,e,i),Nt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==ot&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Co(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!==Y&&Nt(this._$AH)?this._$AA.nextSibling.data=e:this.T(st.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Mt.createElement(Zr(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{const s=new $o(n,this),a=s.u(this.options);s.p(i),this.T(a),this._$AH=s}}_$AC(e){let i=tr.get(e.strings);return i===void 0&&tr.set(e.strings,i=new Mt(e)),i}k(e){pn(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,n=0;for(const s of e)n===i.length?i.push(r=new jt(this.O(Pt()),this.O(Pt()),this,this.options)):r=i[n],r._$AI(s),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$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 fi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,s){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,i=this,r,n){const s=this.strings;let a=!1;if(s===void 0)e=pt(this,e,i,0),a=!Nt(e)||e!==this._$AH&&e!==ot,a&&(this._$AH=e);else{const d=e;let f,h;for(e=s[0],f=0;f<s.length-1;f++)h=pt(this,d[r+f],i,f),h===ot&&(h=this._$AH[f]),a||=!Nt(h)||h!==this._$AH[f],h===Y?e=Y:e!==Y&&(e+=(h??"")+s[f+1]),this._$AH[f]=h}a&&!n&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Io extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}let Ro=class extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}},Po=class extends fi{constructor(e,i,r,n,s){super(e,i,r,n,s),this.type=5}_$AI(e,i=this){if((e=pt(this,e,i,0)??Y)===ot)return;const r=this._$AH,n=e===Y&&r!==Y||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==Y&&(r===Y||n);n&&this.element.removeEventListener(this.name,this,r),s&&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 No{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){pt(this,e)}}const Mo=fn.litHtmlPolyfillSupport;Mo?.(Mt,jt),(fn.litHtmlVersions??=[]).push("3.3.1");const To=(t,e,i)=>{const r=i?.renderBefore??e;let n=r._$litPart$;if(n===void 0){const s=i?.renderBefore??null;r._$litPart$=n=new jt(e.insertBefore(Pt(),s),s,void 0,i??{})}return n._$AI(t),n};const mn=globalThis;let qe=class extends dt{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=To(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ot}};qe._$litElement$=!0,qe.finalized=!0,mn.litElementHydrateSupport?.({LitElement:qe});const Lo=mn.litElementPolyfillSupport;Lo?.({LitElement:qe});(mn.litElementVersions??=[]).push("4.2.1");const Do={attribute:!0,type:String,converter:si,reflect:!1,hasChanged:dn},jo=(t=Do,e,i)=>{const{kind:r,metadata:n}=i;let s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),r==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(i.name,t),r==="accessor"){const{name:a}=i;return{set(d){const f=e.get.call(this);e.set.call(this,d),this.requestUpdate(a,f,t)},init(d){return d!==void 0&&this.C(a,void 0,t,d),d}}}if(r==="setter"){const{name:a}=i;return function(d){const f=this[a];e.call(this,d),this.requestUpdate(a,f,t)}}throw Error("Unsupported decorator location: "+r)};function K(t){return(e,i)=>typeof i=="object"?jo(t,e,i):((r,n,s)=>{const a=n.hasOwnProperty(s);return n.constructor.createProperty(s,r),a?Object.getOwnPropertyDescriptor(n,s):void 0})(t,e,i)}var pe="top",Ae="bottom",Ce="right",me="left",gn="auto",Bt=[pe,Ae,Ce,me],mt="start",Tt="end",Bo="clippingParents",Xr="viewport",At="popper",zo="reference",ir=Bt.reduce(function(t,e){return t.concat([e+"-"+mt,e+"-"+Tt])},[]),Jr=[].concat(Bt,[gn]).reduce(function(t,e){return t.concat([e,e+"-"+mt,e+"-"+Tt])},[]),Uo="beforeRead",qo="read",Ho="afterRead",Wo="beforeMain",Fo="main",Ko="afterMain",Vo="beforeWrite",Go="write",Zo="afterWrite",Xo=[Uo,qo,Ho,Wo,Fo,Ko,Vo,Go,Zo];function De(t){return t?(t.nodeName||"").toLowerCase():null}function we(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function at(t){var e=we(t).Element;return t instanceof e||t instanceof Element}function Se(t){var e=we(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function bn(t){if(typeof ShadowRoot>"u")return!1;var e=we(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Jo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var r=e.styles[i]||{},n=e.attributes[i]||{},s=e.elements[i];!Se(s)||!De(s)||(Object.assign(s.style,r),Object.keys(n).forEach(function(a){var d=n[a];d===!1?s.removeAttribute(a):s.setAttribute(a,d===!0?"":d)}))})}function Yo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(r){var n=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:i[r]),d=a.reduce(function(f,h){return f[h]="",f},{});!Se(n)||!De(n)||(Object.assign(n.style,d),Object.keys(s).forEach(function(f){n.removeAttribute(f)}))})}}const Qo={name:"applyStyles",enabled:!0,phase:"write",fn:Jo,effect:Yo,requires:["computeStyles"]};function Le(t){return t.split("-")[0]}var rt=Math.max,ai=Math.min,gt=Math.round;function an(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Yr(){return!/^((?!chrome|android).)*safari/i.test(an())}function bt(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var r=t.getBoundingClientRect(),n=1,s=1;e&&Se(t)&&(n=t.offsetWidth>0&>(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&>(r.height)/t.offsetHeight||1);var a=at(t)?we(t):window,d=a.visualViewport,f=!Yr()&&i,h=(r.left+(f&&d?d.offsetLeft:0))/n,o=(r.top+(f&&d?d.offsetTop:0))/s,u=r.width/n,c=r.height/s;return{width:u,height:c,top:o,right:h+u,bottom:o+c,left:h,x:h,y:o}}function vn(t){var e=bt(t),i=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:r}}function Qr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&bn(i)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(t){return we(t).getComputedStyle(t)}function ea(t){return["table","td","th"].indexOf(De(t))>=0}function Ze(t){return((at(t)?t.ownerDocument:t.document)||window.document).documentElement}function pi(t){return De(t)==="html"?t:t.assignedSlot||t.parentNode||(bn(t)?t.host:null)||Ze(t)}function nr(t){return!Se(t)||He(t).position==="fixed"?null:t.offsetParent}function ta(t){var e=/firefox/i.test(an()),i=/Trident/i.test(an());if(i&&Se(t)){var r=He(t);if(r.position==="fixed")return null}var n=pi(t);for(bn(n)&&(n=n.host);Se(n)&&["html","body"].indexOf(De(n))<0;){var s=He(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function zt(t){for(var e=we(t),i=nr(t);i&&ea(i)&&He(i).position==="static";)i=nr(i);return i&&(De(i)==="html"||De(i)==="body"&&He(i).position==="static")?e:i||ta(t)||e}function yn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return rt(t,ai(e,i))}function ia(t,e,i){var r=kt(t,e,i);return r>i?i:r}function es(){return{top:0,right:0,bottom:0,left:0}}function ts(t){return Object.assign({},es(),t)}function is(t,e){return e.reduce(function(i,r){return i[r]=t,i},{})}var na=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,ts(typeof e!="number"?e:is(e,Bt))};function ra(t){var e,i=t.state,r=t.name,n=t.options,s=i.elements.arrow,a=i.modifiersData.popperOffsets,d=Le(i.placement),f=yn(d),h=[me,Ce].indexOf(d)>=0,o=h?"height":"width";if(!(!s||!a)){var u=na(n.padding,i),c=vn(s),l=f==="y"?pe:me,p=f==="y"?Ae:Ce,m=i.rects.reference[o]+i.rects.reference[f]-a[f]-i.rects.popper[o],b=a[f]-i.rects.reference[f],x=zt(s),_=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-b/2,y=u[l],v=_-c[o]-u[p],E=_/2-c[o]/2+w,A=kt(y,E,v),R=f;i.modifiersData[r]=(e={},e[R]=A,e.centerOffset=A-E,e)}}function sa(t){var e=t.state,i=t.options,r=i.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Qr(e.elements.popper,n)&&(e.elements.arrow=n))}const oa={name:"arrow",enabled:!0,phase:"main",fn:ra,effect:sa,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t){return t.split("-")[1]}var aa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function la(t,e){var i=t.x,r=t.y,n=e.devicePixelRatio||1;return{x:gt(i*n)/n||0,y:gt(r*n)/n||0}}function rr(t){var e,i=t.popper,r=t.popperRect,n=t.placement,s=t.variation,a=t.offsets,d=t.position,f=t.gpuAcceleration,h=t.adaptive,o=t.roundOffsets,u=t.isFixed,c=a.x,l=c===void 0?0:c,p=a.y,m=p===void 0?0:p,b=typeof o=="function"?o({x:l,y:m}):{x:l,y:m};l=b.x,m=b.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=me,y=pe,v=window;if(h){var E=zt(i),A="clientHeight",R="clientWidth";if(E===we(i)&&(E=Ze(i),He(E).position!=="static"&&d==="absolute"&&(A="scrollHeight",R="scrollWidth")),E=E,n===pe||(n===me||n===Ce)&&s===Tt){y=Ae;var M=u&&E===v&&v.visualViewport?v.visualViewport.height:E[A];m-=M-r.height,m*=f?1:-1}if(n===me||(n===pe||n===Ae)&&s===Tt){w=Ce;var O=u&&E===v&&v.visualViewport?v.visualViewport.width:E[R];l-=O-r.width,l*=f?1:-1}}var q=Object.assign({position:d},h&&aa),z=o===!0?la({x:l,y:m},we(i)):{x:l,y:m};if(l=z.x,m=z.y,f){var Q;return Object.assign({},q,(Q={},Q[y]=_?"0":"",Q[w]=x?"0":"",Q.transform=(v.devicePixelRatio||1)<=1?"translate("+l+"px, "+m+"px)":"translate3d("+l+"px, "+m+"px, 0)",Q))}return Object.assign({},q,(e={},e[y]=_?m+"px":"",e[w]=x?l+"px":"",e.transform="",e))}function ca(t){var e=t.state,i=t.options,r=i.gpuAcceleration,n=r===void 0?!0:r,s=i.adaptive,a=s===void 0?!0:s,d=i.roundOffsets,f=d===void 0?!0:d,h={placement:Le(e.placement),variation:vt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,rr(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,rr(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ca,data:{}};var Yt={passive:!0};function ha(t){var e=t.state,i=t.instance,r=t.options,n=r.scroll,s=n===void 0?!0:n,a=r.resize,d=a===void 0?!0:a,f=we(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&h.forEach(function(o){o.addEventListener("scroll",i.update,Yt)}),d&&f.addEventListener("resize",i.update,Yt),function(){s&&h.forEach(function(o){o.removeEventListener("scroll",i.update,Yt)}),d&&f.removeEventListener("resize",i.update,Yt)}}const da={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ha,data:{}};var fa={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(t){return t.replace(/left|right|bottom|top/g,function(e){return fa[e]})}var pa={start:"end",end:"start"};function sr(t){return t.replace(/start|end/g,function(e){return pa[e]})}function wn(t){var e=we(t),i=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:i,scrollTop:r}}function xn(t){return bt(Ze(t)).left+wn(t).scrollLeft}function ma(t,e){var i=we(t),r=Ze(t),n=i.visualViewport,s=r.clientWidth,a=r.clientHeight,d=0,f=0;if(n){s=n.width,a=n.height;var h=Yr();(h||!h&&e==="fixed")&&(d=n.offsetLeft,f=n.offsetTop)}return{width:s,height:a,x:d+xn(t),y:f}}function ga(t){var e,i=Ze(t),r=wn(t),n=(e=t.ownerDocument)==null?void 0:e.body,s=rt(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=rt(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),d=-r.scrollLeft+xn(t),f=-r.scrollTop;return He(n||i).direction==="rtl"&&(d+=rt(i.clientWidth,n?n.clientWidth:0)-s),{width:s,height:a,x:d,y:f}}function _n(t){var e=He(t),i=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+r)}function ns(t){return["html","body","#document"].indexOf(De(t))>=0?t.ownerDocument.body:Se(t)&&_n(t)?t:ns(pi(t))}function $t(t,e){var i;e===void 0&&(e=[]);var r=ns(t),n=r===((i=t.ownerDocument)==null?void 0:i.body),s=we(r),a=n?[s].concat(s.visualViewport||[],_n(r)?r:[]):r,d=e.concat(a);return n?d:d.concat($t(pi(a)))}function ln(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ba(t,e){var i=bt(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function or(t,e,i){return e===Xr?ln(ma(t,i)):at(e)?ba(e,i):ln(ga(Ze(t)))}function va(t){var e=$t(pi(t)),i=["absolute","fixed"].indexOf(He(t).position)>=0,r=i&&Se(t)?zt(t):t;return at(r)?e.filter(function(n){return at(n)&&Qr(n,r)&&De(n)!=="body"}):[]}function ya(t,e,i,r){var n=e==="clippingParents"?va(t):[].concat(e),s=[].concat(n,[i]),a=s[0],d=s.reduce(function(f,h){var o=or(t,h,r);return f.top=rt(o.top,f.top),f.right=ai(o.right,f.right),f.bottom=ai(o.bottom,f.bottom),f.left=rt(o.left,f.left),f},or(t,a,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function rs(t){var e=t.reference,i=t.element,r=t.placement,n=r?Le(r):null,s=r?vt(r):null,a=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,f;switch(n){case pe:f={x:a,y:e.y-i.height};break;case Ae:f={x:a,y:e.y+e.height};break;case Ce:f={x:e.x+e.width,y:d};break;case me:f={x:e.x-i.width,y:d};break;default:f={x:e.x,y:e.y}}var h=n?yn(n):null;if(h!=null){var o=h==="y"?"height":"width";switch(s){case mt:f[h]=f[h]-(e[o]/2-i[o]/2);break;case Tt:f[h]=f[h]+(e[o]/2-i[o]/2);break}}return f}function Lt(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=r===void 0?t.placement:r,s=i.strategy,a=s===void 0?t.strategy:s,d=i.boundary,f=d===void 0?Bo:d,h=i.rootBoundary,o=h===void 0?Xr:h,u=i.elementContext,c=u===void 0?At:u,l=i.altBoundary,p=l===void 0?!1:l,m=i.padding,b=m===void 0?0:m,x=ts(typeof b!="number"?b:is(b,Bt)),_=c===At?zo:At,w=t.rects.popper,y=t.elements[p?_:c],v=ya(at(y)?y:y.contextElement||Ze(t.elements.popper),f,o,a),E=bt(t.elements.reference),A=rs({reference:E,element:w,placement:n}),R=ln(Object.assign({},w,A)),M=c===At?R:E,O={top:v.top-M.top+x.top,bottom:M.bottom-v.bottom+x.bottom,left:v.left-M.left+x.left,right:M.right-v.right+x.right},q=t.modifiersData.offset;if(c===At&&q){var z=q[n];Object.keys(O).forEach(function(Q){var ne=[Ce,Ae].indexOf(Q)>=0?1:-1,I=[pe,Ae].indexOf(Q)>=0?"y":"x";O[Q]+=z[I]*ne})}return O}function wa(t,e){e===void 0&&(e={});var i=e,r=i.placement,n=i.boundary,s=i.rootBoundary,a=i.padding,d=i.flipVariations,f=i.allowedAutoPlacements,h=f===void 0?Jr:f,o=vt(r),u=o?d?ir:ir.filter(function(p){return vt(p)===o}):Bt,c=u.filter(function(p){return h.indexOf(p)>=0});c.length===0&&(c=u);var l=c.reduce(function(p,m){return p[m]=Lt(t,{placement:m,boundary:n,rootBoundary:s,padding:a})[Le(m)],p},{});return Object.keys(l).sort(function(p,m){return l[p]-l[m]})}function xa(t){if(Le(t)===gn)return[];var e=ri(t);return[sr(t),e,sr(e)]}function _a(t){var e=t.state,i=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!0:a,f=i.fallbackPlacements,h=i.padding,o=i.boundary,u=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,p=l===void 0?!0:l,m=i.allowedAutoPlacements,b=e.options.placement,x=Le(b),_=x===b,w=f||(_||!p?[ri(b)]:xa(b)),y=[b].concat(w).reduce(function(_e,fe){return _e.concat(Le(fe)===gn?wa(e,{placement:fe,boundary:o,rootBoundary:u,padding:h,flipVariations:p,allowedAutoPlacements:m}):fe)},[]),v=e.rects.reference,E=e.rects.popper,A=new Map,R=!0,M=y[0],O=0;O<y.length;O++){var q=y[O],z=Le(q),Q=vt(q)===mt,ne=[pe,Ae].indexOf(z)>=0,I=ne?"width":"height",re=Lt(e,{placement:q,boundary:o,rootBoundary:u,altBoundary:c,padding:h}),H=ne?Q?Ce:me:Q?Ae:pe;v[I]>E[I]&&(H=ri(H));var X=ri(H),ee=[];if(s&&ee.push(re[z]<=0),d&&ee.push(re[H]<=0,re[X]<=0),ee.every(function(_e){return _e})){M=q,R=!1;break}A.set(q,ee)}if(R)for(var oe=p?3:1,xe=function(fe){var je=y.find(function(Ie){var Oe=A.get(Ie);if(Oe)return Oe.slice(0,fe).every(function(Re){return Re})});if(je)return M=je,"break"},ge=oe;ge>0;ge--){var D=xe(ge);if(D==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}const Ea={name:"flip",enabled:!0,phase:"main",fn:_a,requiresIfExists:["offset"],data:{_skip:!1}};function ar(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function lr(t){return[pe,Ce,Ae,me].some(function(e){return t[e]>=0})}function Sa(t){var e=t.state,i=t.name,r=e.rects.reference,n=e.rects.popper,s=e.modifiersData.preventOverflow,a=Lt(e,{elementContext:"reference"}),d=Lt(e,{altBoundary:!0}),f=ar(a,r),h=ar(d,n,s),o=lr(f),u=lr(h);e.modifiersData[i]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:o,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":u})}const Aa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sa};function Ca(t,e,i){var r=Le(t),n=[me,pe].indexOf(r)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=s[0],d=s[1];return a=a||0,d=(d||0)*n,[me,Ce].indexOf(r)>=0?{x:d,y:a}:{x:a,y:d}}function Oa(t){var e=t.state,i=t.options,r=t.name,n=i.offset,s=n===void 0?[0,0]:n,a=Jr.reduce(function(o,u){return o[u]=Ca(u,e.rects,s),o},{}),d=a[e.placement],f=d.x,h=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=a}const ka={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oa};function $a(t){var e=t.state,i=t.name;e.modifiersData[i]=rs({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ia={name:"popperOffsets",enabled:!0,phase:"read",fn:$a,data:{}};function Ra(t){return t==="x"?"y":"x"}function Pa(t){var e=t.state,i=t.options,r=t.name,n=i.mainAxis,s=n===void 0?!0:n,a=i.altAxis,d=a===void 0?!1:a,f=i.boundary,h=i.rootBoundary,o=i.altBoundary,u=i.padding,c=i.tether,l=c===void 0?!0:c,p=i.tetherOffset,m=p===void 0?0:p,b=Lt(e,{boundary:f,rootBoundary:h,padding:u,altBoundary:o}),x=Le(e.placement),_=vt(e.placement),w=!_,y=yn(x),v=Ra(y),E=e.modifiersData.popperOffsets,A=e.rects.reference,R=e.rects.popper,M=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,O=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(E){if(s){var Q,ne=y==="y"?pe:me,I=y==="y"?Ae:Ce,re=y==="y"?"height":"width",H=E[y],X=H+b[ne],ee=H-b[I],oe=l?-R[re]/2:0,xe=_===mt?A[re]:R[re],ge=_===mt?-R[re]:-A[re],D=e.elements.arrow,_e=l&&D?vn(D):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:es(),je=fe[ne],Ie=fe[I],Oe=kt(0,A[re],_e[re]),Re=w?A[re]/2-oe-Oe-je-O.mainAxis:xe-Oe-je-O.mainAxis,wt=w?-A[re]/2+oe+Oe+Ie+O.mainAxis:ge+Oe+Ie+O.mainAxis,Ee=e.elements.arrow&&zt(e.elements.arrow),Je=Ee?y==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Ye=(Q=q?.[y])!=null?Q:0,xi=H+Re-Ye-Je,_i=H+wt-Ye,Ht=kt(l?ai(X,xi):X,H,l?rt(ee,_i):ee);E[y]=Ht,z[y]=Ht-H}if(d){var Wt,Ei=y==="x"?pe:me,Ft=y==="x"?Ae:Ce,Be=E[v],ct=v==="y"?"height":"width",xt=Be+b[Ei],Pe=Be-b[Ft],ut=[pe,me].indexOf(x)!==-1,ze=(Wt=q?.[v])!=null?Wt:0,Qe=ut?xt:Be-A[ct]-R[ct]-ze+O.altAxis,_t=ut?Be+A[ct]+R[ct]-ze-O.altAxis:Pe,Kt=l&&ut?ia(Qe,Be,_t):kt(l?Qe:xt,Be,l?_t:Pe);E[v]=Kt,z[v]=Kt-Be}e.modifiersData[r]=z}}const Na={name:"preventOverflow",enabled:!0,phase:"main",fn:Pa,requiresIfExists:["offset"]};function Ma(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ta(t){return t===we(t)||!Se(t)?wn(t):Ma(t)}function La(t){var e=t.getBoundingClientRect(),i=gt(e.width)/t.offsetWidth||1,r=gt(e.height)/t.offsetHeight||1;return i!==1||r!==1}function Da(t,e,i){i===void 0&&(i=!1);var r=Se(e),n=Se(e)&&La(e),s=Ze(e),a=bt(t,n,i),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!i)&&((De(e)!=="body"||_n(s))&&(d=Ta(e)),Se(e)?(f=bt(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):s&&(f.x=xn(s))),{x:a.left+d.scrollLeft-f.x,y:a.top+d.scrollTop-f.y,width:a.width,height:a.height}}function ja(t){var e=new Map,i=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function n(s){i.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(d){if(!i.has(d)){var f=e.get(d);f&&n(f)}}),r.push(s)}return t.forEach(function(s){i.has(s.name)||n(s)}),r}function Ba(t){var e=ja(t);return Xo.reduce(function(i,r){return i.concat(e.filter(function(n){return n.phase===r}))},[])}function za(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ua(t){var e=t.reduce(function(i,r){var n=i[r.name];return i[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,i},{});return Object.keys(e).map(function(i){return e[i]})}var cr={placement:"bottom",modifiers:[],strategy:"absolute"};function ur(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function qa(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,r=i===void 0?[]:i,n=e.defaultOptions,s=n===void 0?cr:n;return function(d,f,h){h===void 0&&(h=s);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},cr,s),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},u=[],c=!1,l={state:o,setOptions:function(x){var _=typeof x=="function"?x(o.options):x;m(),o.options=Object.assign({},s,o.options,_),o.scrollParents={reference:at(d)?$t(d):d.contextElement?$t(d.contextElement):[],popper:$t(f)};var w=Ba(Ua([].concat(r,o.options.modifiers)));return o.orderedModifiers=w.filter(function(y){return y.enabled}),p(),l.update()},forceUpdate:function(){if(!c){var x=o.elements,_=x.reference,w=x.popper;if(ur(_,w)){o.rects={reference:Da(_,zt(w),o.options.strategy==="fixed"),popper:vn(w)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(O){return o.modifiersData[O.name]=Object.assign({},O.data)});for(var y=0;y<o.orderedModifiers.length;y++){if(o.reset===!0){o.reset=!1,y=-1;continue}var v=o.orderedModifiers[y],E=v.fn,A=v.options,R=A===void 0?{}:A,M=v.name;typeof E=="function"&&(o=E({state:o,options:R,name:M,instance:l})||o)}}}},update:za(function(){return new Promise(function(b){l.forceUpdate(),b(o)})}),destroy:function(){m(),c=!0}};if(!ur(d,f))return l;l.setOptions(h).then(function(b){!c&&h.onFirstUpdate&&h.onFirstUpdate(b)});function p(){o.orderedModifiers.forEach(function(b){var x=b.name,_=b.options,w=_===void 0?{}:_,y=b.effect;if(typeof y=="function"){var v=y({state:o,name:x,instance:l,options:w}),E=function(){};u.push(v||E)}})}function m(){u.forEach(function(b){return b()}),u=[]}return l}}var Ha=[da,Ia,ua,Qo,ka,Ea,Na,oa,Aa],Wa=qa({defaultModifiers:Ha});const En={ATTRIBUTE:1,CHILD:2},ss=t=>(...e)=>({_$litDirective$:t,values:e});let os=class{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 cn extends os{constructor(e){if(super(e),this.it=Y,e.type!==En.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||e==null)return this._t=void 0,this.it=e;if(e===ot)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:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const Fa=ss(cn);const Qt=t=>t??Y;const Ka=t=>t.strings===void 0;const It=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const r of i)r._$AO?.(e,!1),It(r,e);return!0},li=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},as=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Za(e)}};function Va(t){this._$AN!==void 0?(li(this),this._$AM=t,as(this)):this._$AM=t}function Ga(t,e=!1,i=0){const r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(r))for(let s=i;s<r.length;s++)It(r[s],!1),li(r[s]);else r!=null&&(It(r,!1),li(r));else It(this,t)}const Za=t=>{t.type==En.CHILD&&(t._$AP??=Ga,t._$AQ??=Va)};class Xa extends os{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,r){super._$AT(e,i,r),as(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(It(this,e),li(this))}setValue(e){if(Ka(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 hr=t=>t?t.startsWith("url")?t:`url("${t}")`:null,Ja=(t,e)=>{if(t){const i=new Image;i.addEventListener("load",e),i.src=t,i.complete&&(i.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class Ya extends Xa{constructor(e){if(super(e),e.type!==En.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(n=>{this.preload(n,r)}),this.useCssBackground?hr(i):i}preload(e,i){e!=null&&!i.cancelled&&Ja(e,()=>{i.cancelled||this.setValue(this.useCssBackground?hr(e):e)})}}const Qa=ss(Ya),el=':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)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.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 tl=Object.defineProperty,de=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&tl(e,i,n),n},it;const ue=(it=class extends qe{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[hi`
|
|
167
167
|
${Dt(el)}
|
|
168
168
|
`]}render(){return ve`
|
|
169
169
|
<div class="container">
|
|
@@ -194,13 +194,13 @@ function updateContent(caption: string, anchor?: string) {
|
|
|
194
194
|
${r?ve` <div class="${t}-icon" style="background-image:url('${r}')" aria-hidden="true"></div> `:Y}
|
|
195
195
|
${this.contentMode==="html"?Fa(e):e}
|
|
196
196
|
</div>
|
|
197
|
-
`:Y}updated(t){super.updated(t),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const r=this.shadowRoot.querySelector(".description");return r&&(e=Math.max(e,r.scrollWidth-r.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},it.ID="sd-list-item",it.ensureDefined=()=>{customElements.get(it.ID)||customElements.define(it.ID,it)},it);de([K({type:String})],ue.prototype,"caption");de([K({type:String})],ue.prototype,"description");de([K({type:String})],ue.prototype,"descriptionIcon");de([K({type:Boolean})],ue.prototype,"selected");de([K({type:String})],ue.prototype,"icon");de([K({type:String})],ue.prototype,"iconBackgroundColor");de([K({type:String})],ue.prototype,"iconPlaceholder");de([K({type:Number})],ue.prototype,"level");de([K()],ue.prototype,"contentMode");de([K({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],ue.prototype,"enableLineClamp");de([K({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],ue.prototype,"disabled");de([K({type:String,attribute:"icon-attr-aria-label"})],ue.prototype,"iconAttrAriaLabel");de([K({type:String,reflect:!0})],ue.prototype,"role");de([K({type:String,attribute:"caption-attr-title"})],ue.prototype,"captionAttrTitle");de([K({type:String,attribute:"description-attr-title"})],ue.prototype,"descriptionAttrTitle");de([K({type:String,attribute:"icon-attr-title"})],ue.prototype,"iconAttrTitle");let ft=ue;const il=(t,e)=>{const i=document.createElement(ft.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.descriptionIcon=t.descriptionIcon,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const r=t.leftContentGenerator(t,i);r&&(r.slot="left-content",i.appendChild(r))}if(t.rightContentGenerator){const r=t.rightContentGenerator(t,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};ft.ensureDefined();class nl{getOffsetForIndexAndAlignment(e,i,r,n,s,a){const d=Math.max(0,a*n),f=Math.min(d,e*n),h=Math.max(0,e*n-s+n);switch(i){case"start":return f;case"end":return h;case"center":{const o=Math.round(h+(f-h)/2);return o<Math.ceil(s/2)?0:o>d+Math.floor(s/2)?d:o}case"auto":default:return r>=h&&r<=f?r:r<h?h:f}}debounce(e){let i;return(...r)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...r),i=null})}}}const rl=new nl;class sl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=r=>{const{startIndex:n,stopIndex:s}=r.detail;this._lastRequestedFirstIndex=n,this._lastRequestedLastIndex=s,this._list.items=this._itemCache.slice(n,s+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<s+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const ol=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Xe=(t,e,i,r)=>{for(var n=r>1?void 0:r?ll(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=(r?a(e,i,n):a(n))||n);return r&&n&&al(e,i,n),n},ls=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(ls||{});let cl=0;var Ve;const We=(Ve=class extends qe{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ve.ID+"_"+cl++,this.role="listbox",this.itemGenerator=il,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.key){case"Down":case"ArrowDown":this.focusIndex=
|
|
197
|
+
`:Y}updated(t){super.updated(t),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const r=this.shadowRoot.querySelector(".description");return r&&(e=Math.max(e,r.scrollWidth-r.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},it.ID="sd-list-item",it.ensureDefined=()=>{customElements.get(it.ID)||customElements.define(it.ID,it)},it);de([K({type:String})],ue.prototype,"caption");de([K({type:String})],ue.prototype,"description");de([K({type:String})],ue.prototype,"descriptionIcon");de([K({type:Boolean})],ue.prototype,"selected");de([K({type:String})],ue.prototype,"icon");de([K({type:String})],ue.prototype,"iconBackgroundColor");de([K({type:String})],ue.prototype,"iconPlaceholder");de([K({type:Number})],ue.prototype,"level");de([K()],ue.prototype,"contentMode");de([K({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],ue.prototype,"enableLineClamp");de([K({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],ue.prototype,"disabled");de([K({type:String,attribute:"icon-attr-aria-label"})],ue.prototype,"iconAttrAriaLabel");de([K({type:String,reflect:!0})],ue.prototype,"role");de([K({type:String,attribute:"caption-attr-title"})],ue.prototype,"captionAttrTitle");de([K({type:String,attribute:"description-attr-title"})],ue.prototype,"descriptionAttrTitle");de([K({type:String,attribute:"icon-attr-title"})],ue.prototype,"iconAttrTitle");let ft=ue;const il=(t,e)=>{const i=document.createElement(ft.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.descriptionIcon=t.descriptionIcon,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const r=t.leftContentGenerator(t,i);r&&(r.slot="left-content",i.appendChild(r))}if(t.rightContentGenerator){const r=t.rightContentGenerator(t,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};ft.ensureDefined();class nl{getOffsetForIndexAndAlignment(e,i,r,n,s,a){const d=Math.max(0,a*n),f=Math.min(d,e*n),h=Math.max(0,e*n-s+n);switch(i){case"start":return f;case"end":return h;case"center":{const o=Math.round(h+(f-h)/2);return o<Math.ceil(s/2)?0:o>d+Math.floor(s/2)?d:o}case"auto":default:return r>=h&&r<=f?r:r<h?h:f}}debounce(e){let i;return(...r)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...r),i=null})}}}const rl=new nl;class sl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=r=>{const{startIndex:n,stopIndex:s}=r.detail;this._lastRequestedFirstIndex=n,this._lastRequestedLastIndex=s,this._list.items=this._itemCache.slice(n,s+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<s+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const ol=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Xe=(t,e,i,r)=>{for(var n=r>1?void 0:r?ll(e,i):e,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=(r?a(e,i,n):a(n))||n);return r&&n&&al(e,i,n),n},ls=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(ls||{});let cl=0;var Ve;const We=(Ve=class extends qe{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ve.ID+"_"+cl++,this.role="listbox",this.itemGenerator=il,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.key){case"Down":case"ArrowDown":this.focusIndex=(this.focusIndex+1)%this.itemCount;break;case"Up":case"ArrowUp":this.focusIndex>0?this.focusIndex--:this.finalSizeIsKnown&&(this.focusIndex=this.itemCount-1);break;case"Enter":this.handleSelection(this.focusIndex,t.metaKey||t.ctrlKey);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:e=!1;break}e&&(t.preventDefault(),t.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}get focusIndex(){return this._focusIndex}set focusIndex(t){if(t>=-1&&t<this.itemCount){const e=this._focusIndex;this._focusIndex=t,(t<=this._firstVisibleIndex||this._lastVisibleIndex<=t)&&this.scrollToItem(t),e!=t&&(t==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(t){t?this._selectedIndices=t.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(t,e="auto"){this.scrollTop=rl.getOffsetForIndexAndAlignment(this.normalizeIndex(t),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(t){return!this.shadowRoot||t<this._firstVisibleIndex||this._lastVisibleIndex<t?null:this.querySelector(`[item-index="${t}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",e=>{e.button==1&&e.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[hi`
|
|
198
198
|
${Dt(ol)}
|
|
199
199
|
`]}render(){return this.updateItemsRenderData(),ve`
|
|
200
200
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
201
201
|
<slot name="items"></slot>
|
|
202
202
|
</div>
|
|
203
|
-
`}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(r=>{if(r instanceof ft){r.enableLineClamp=!1;const n=r.missingWidthForTexts;return n>t&&(r.enableLineClamp=!0),n}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof ft&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const r of this._itemsRenderData){const n=this.renderItem(r);n.parentElement||i.appendChild(n),e.set(r.dataHash,n);const s=t.indexOf(n);s!==-1&&t.splice(s,1)}this.appendChild(i);for(const r of t)r instanceof ft&&(r.enableLineClamp=!1),this.removeChild(r);e.forEach((r,n)=>{this._elementCache.set(n,r)})}renderItem({index:t,top:e,dataHash:i,data:r}){let n;return r?this._elementCache.has(i)?(n=this._elementCache.get(i),this._elementCache.delete(i)):(n=this.itemGenerator(r,t),n.setAttribute("slot","items")):(n=document.createElement("div"),n.setAttribute("placeholder-item",""),n.setAttribute("slot","items")),Object.assign(n.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),n.setAttribute("item-index",t.toString()),n.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),n.setAttribute("aria-posinset",String(t+1)),(!n.id||n.id.startsWith(this.id+"_item_"))&&(n.id=this.id+"_item_"+t),this.itemCount-1==t?n.setAttribute("last",""):n.removeAttribute("last"),this.updateSelectedAttribute(t,n),this.updateFocusedAttribute(t,n),n}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const r=i-t,n=this.items[r];let s;n?s=JSON.stringify(n):s=`placeholder-${r}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:r,dataHash:s,data:n})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let r=!0;if(this.selectionType!=="trigger-only"){const n=this.selectedIndices.indexOf(t);r=n==-1,r?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(n,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,r,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const r=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,r)}this.focusIndex=i}}}},Ve.ID="sd-virtual-list",Ve.ensureDefined=()=>{ft.ensureDefined(),customElements.get(Ve.ID)||customElements.define(Ve.ID,Ve)},Ve);Xe([K({type:Number,attribute:"item-height",reflect:!0})],We.prototype,"itemHeight",2);Xe([K({type:Number})],We.prototype,"itemCount",2);Xe([K({type:Array,attribute:!1})],We.prototype,"items",2);Xe([K({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],We.prototype,"selectionType",2);Xe([K({type:String,attribute:!0,reflect:!0})],We.prototype,"id",2);Xe([K({type:String,reflect:!0})],We.prototype,"role",2);Xe([K({type:Number,attribute:"focus-index",reflect:!0})],We.prototype,"focusIndex",1);Xe([K({type:Array,attribute:!1})],We.prototype,"selectedIndices",1);let Sn=We;Sn.ensureDefined();const ul=":host{contain:content;outline:none}:host(:not([selected])) .text{opacity:.8}:host(:hover),:host(:focus),:host([anchors-shown]){background-color:var(--sd-tab-bar-hover-color, #e7f1fa);cursor:pointer}:host(:focus-visible){box-shadow:0 0 0 1px var(--sd-tab-bar-focus-color, #1467ba) inset}.root{position:relative;overflow:hidden;width:100%;height:100%;display:flex;align-items:center;justify-content:flex-start;padding:var(--sd-tab-bar-padding, 8px) calc(2 * var(--sd-tab-bar-padding, 8px));box-sizing:border-box}.counter{text-align:center;background-color:#d9d9d9;min-width:24px;height:24px;line-height:24px;margin-left:calc(-.5 * var(--sd-tab-bar-padding, 8px));margin-right:var(--sd-tab-bar-padding, 8px)}:host([selected]) .counter{color:var(--sd-tab-bar-selected-counter-color, white);background-color:var(--sd-tab-bar-selected-counter-background-color, #3b85d1)}.text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:1}.down-arrow{padding-left:calc(1.5 * var(--sd-tab-bar-padding, 8px));margin-right:calc(-1 * var(--sd-tab-bar-padding, 8px));outline:none;fill:var(--sd-tab-bar-color, #1467ba);flex:0 0 auto}.ripple{position:absolute;background:var(--sd-tab-bar-color, #1467ba);border-radius:50%;width:5px;height:5px;animation:rippleEffect .88s 1;opacity:0}@keyframes rippleEffect{0%{transform:scale(1);opacity:.4}to{transform:scale(100);opacity:0}}";var hl=Object.defineProperty,Ut=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&hl(e,i,n),n};const dr=navigator.userAgent.indexOf("Trident")!==-1,Pn=class Pn extends qe{constructor(){super(...arguments),this.minimumOverlayWidth=150,this.handleKeyDown=e=>{this.hasAnchors?(this.vertical?["Left","ArrowLeft","Right","ArrowRight","Enter"]:["Down","ArrowDown","Up","ArrowUp","Enter"]).indexOf(e.key)===-1?(this.hideAnchors(),this.focus()):(this.anchorsShown||(this.showAnchors(),window.requestAnimationFrame(()=>{this.list.focusIndex=0,this.list.focus(),this.updateDropdownSizes()})),e.preventDefault(),e.stopPropagation()):e.key==="Enter"&&(this.dispatchSelectionEvent(),e.preventDefault(),e.stopPropagation())},this.handleListSelection=e=>{this.hideAnchors(),e.stopPropagation(),this.dispatchSelectionEvent(this.anchors[e.detail.index]),this.focus()},this.handlePointerLeave=e=>{(dr||this.list&&!this.list.contains(e.target))&&window.addEventListener("pointermove",this.handlePointerMove)},this.handlePointerMove=e=>{!this.isPointerAbove(e,this)&&!this.isPointerAbove(e,this.list)&&(this.hideAnchors(),window.removeEventListener("pointermove",this.handlePointerMove))}}get selected(){return this.hasAttribute("selected")}set selected(e){if(e)this.setAttribute("selected","");else if(this.removeAttribute("selected"),this.shadowRoot&&this.showRipple){const i=this.shadowRoot.querySelector(".ripple");i.style.display="none",this.showRipple=!1}}firstUpdated(e){super.firstUpdated(e);const i=window.CSS&&window.CSS.supports;this._cssMathMaxSupported=i&&CSS.supports("max-width","max(50vw)");const r=this.ownerDocument;r.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...r.adoptedStyleSheets]),this.addEventListener("pointerdown",n=>{if(!this.noInk&&!this.showRipple){this.showRipple=!0;const s=this.getBoundingClientRect(),a=this.shadowRoot.querySelector(".ripple");a.style.left=`${n.clientX-s.left}px`,a.style.top=`${n.clientY-s.top}px`,a.style.display="",a.addEventListener("animationend",()=>{a.style.display="none",this.showRipple=!1},{once:!0})}}),this.addEventListener("click",n=>{n.composedPath().indexOf(this.list)===-1&&(this.dispatchSelectionEvent(),n.preventDefault(),n.stopPropagation())}),this.addEventListener("keydown",this.handleKeyDown),this.
|
|
203
|
+
`}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(r=>{if(r instanceof ft){r.enableLineClamp=!1;const n=r.missingWidthForTexts;return n>t&&(r.enableLineClamp=!0),n}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof ft&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const r of this._itemsRenderData){const n=this.renderItem(r);n.parentElement||i.appendChild(n),e.set(r.dataHash,n);const s=t.indexOf(n);s!==-1&&t.splice(s,1)}this.appendChild(i);for(const r of t)r instanceof ft&&(r.enableLineClamp=!1),this.removeChild(r);e.forEach((r,n)=>{this._elementCache.set(n,r)})}renderItem({index:t,top:e,dataHash:i,data:r}){let n;return r?this._elementCache.has(i)?(n=this._elementCache.get(i),this._elementCache.delete(i)):(n=this.itemGenerator(r,t),n.setAttribute("slot","items")):(n=document.createElement("div"),n.setAttribute("placeholder-item",""),n.setAttribute("slot","items")),Object.assign(n.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),n.setAttribute("item-index",t.toString()),n.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),n.setAttribute("aria-posinset",String(t+1)),(!n.id||n.id.startsWith(this.id+"_item_"))&&(n.id=this.id+"_item_"+t),this.itemCount-1==t?n.setAttribute("last",""):n.removeAttribute("last"),this.updateSelectedAttribute(t,n),this.updateFocusedAttribute(t,n),n}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const r=i-t,n=this.items[r];let s;n?s=JSON.stringify(n):s=`placeholder-${r}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:r,dataHash:s,data:n})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let r=!0;if(this.selectionType!=="trigger-only"){const n=this.selectedIndices.indexOf(t);r=n==-1,r?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(n,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,r,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const r=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,r)}this.focusIndex=i}}}},Ve.ID="sd-virtual-list",Ve.ensureDefined=()=>{ft.ensureDefined(),customElements.get(Ve.ID)||customElements.define(Ve.ID,Ve)},Ve);Xe([K({type:Number,attribute:"item-height",reflect:!0})],We.prototype,"itemHeight",2);Xe([K({type:Number})],We.prototype,"itemCount",2);Xe([K({type:Array,attribute:!1})],We.prototype,"items",2);Xe([K({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],We.prototype,"selectionType",2);Xe([K({type:String,attribute:!0,reflect:!0})],We.prototype,"id",2);Xe([K({type:String,reflect:!0})],We.prototype,"role",2);Xe([K({type:Number,attribute:"focus-index",reflect:!0})],We.prototype,"focusIndex",1);Xe([K({type:Array,attribute:!1})],We.prototype,"selectedIndices",1);let Sn=We;Sn.ensureDefined();const ul=":host{contain:content;outline:none}:host(:not([selected])) .text{opacity:.8}:host(:hover),:host(:focus),:host([anchors-shown]){background-color:var(--sd-tab-bar-hover-color, #e7f1fa);cursor:pointer}:host(:focus-visible){box-shadow:0 0 0 1px var(--sd-tab-bar-focus-color, #1467ba) inset}.root{position:relative;overflow:hidden;width:100%;height:100%;display:flex;align-items:center;justify-content:flex-start;padding:var(--sd-tab-bar-padding, 8px) calc(2 * var(--sd-tab-bar-padding, 8px));box-sizing:border-box}.counter{text-align:center;background-color:#d9d9d9;min-width:24px;height:24px;line-height:24px;margin-left:calc(-.5 * var(--sd-tab-bar-padding, 8px));margin-right:var(--sd-tab-bar-padding, 8px)}:host([selected]) .counter{color:var(--sd-tab-bar-selected-counter-color, white);background-color:var(--sd-tab-bar-selected-counter-background-color, #3b85d1)}.text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex-grow:1}.down-arrow{padding-left:calc(1.5 * var(--sd-tab-bar-padding, 8px));margin-right:calc(-1 * var(--sd-tab-bar-padding, 8px));outline:none;fill:var(--sd-tab-bar-color, #1467ba);flex:0 0 auto}.ripple{position:absolute;background:var(--sd-tab-bar-color, #1467ba);border-radius:50%;width:5px;height:5px;animation:rippleEffect .88s 1;opacity:0}@keyframes rippleEffect{0%{transform:scale(1);opacity:.4}to{transform:scale(100);opacity:0}}";var hl=Object.defineProperty,Ut=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&hl(e,i,n),n};const dr=navigator.userAgent.indexOf("Trident")!==-1,Pn=class Pn extends qe{constructor(){super(...arguments),this.minimumOverlayWidth=150,this.handleKeyDown=e=>{this.hasAnchors?(this.vertical?["Left","ArrowLeft","Right","ArrowRight","Enter"]:["Down","ArrowDown","Up","ArrowUp","Enter"]).indexOf(e.key)===-1?(this.hideAnchors(),this.focus()):(this.anchorsShown||(this.showAnchors(),window.requestAnimationFrame(()=>{this.list.focusIndex=0,this.list.focus(),this.updateDropdownSizes()})),e.preventDefault(),e.stopPropagation()):e.key==="Enter"&&(this.dispatchSelectionEvent(),e.preventDefault(),e.stopPropagation())},this.handleListSelection=e=>{this.hideAnchors(),e.stopPropagation(),this.dispatchSelectionEvent(this.anchors[e.detail.index]),this.focus()},this.handlePointerLeave=e=>{(dr||this.list&&!this.list.contains(e.target))&&window.addEventListener("pointermove",this.handlePointerMove)},this.handlePointerMove=e=>{!this.isPointerAbove(e,this)&&!this.isPointerAbove(e,this.list)&&(this.hideAnchors(),window.removeEventListener("pointermove",this.handlePointerMove))}}get selected(){return this.hasAttribute("selected")}set selected(e){if(e)this.setAttribute("selected",""),this.setAttribute("aria-selected","true");else if(this.removeAttribute("selected"),this.setAttribute("aria-selected","false"),this.shadowRoot&&this.showRipple){const i=this.shadowRoot.querySelector(".ripple");i.style.display="none",this.showRipple=!1}}firstUpdated(e){super.firstUpdated(e);const i=window.CSS&&window.CSS.supports;this._cssMathMaxSupported=i&&CSS.supports("max-width","max(50vw)");const r=this.ownerDocument;r.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...r.adoptedStyleSheets]),this.addEventListener("pointerdown",n=>{if(!this.noInk&&!this.showRipple){this.showRipple=!0;const s=this.getBoundingClientRect(),a=this.shadowRoot.querySelector(".ripple");a.style.left=`${n.clientX-s.left}px`,a.style.top=`${n.clientY-s.top}px`,a.style.display="",a.addEventListener("animationend",()=>{a.style.display="none",this.showRipple=!1},{once:!0})}}),this.addEventListener("click",n=>{n.composedPath().indexOf(this.list)===-1&&(this.dispatchSelectionEvent(),n.preventDefault(),n.stopPropagation())}),this.addEventListener("keydown",this.handleKeyDown),this.setAttribute("tabindex","-1"),this.role="tab"}disconnectedCallback(){super.disconnectedCallback(),this.hideAnchors()}static get styles(){return[hi`
|
|
204
204
|
${Dt(ul)}
|
|
205
205
|
`]}render(){return ve`
|
|
206
206
|
<div class="root" @pointerover=${this.showAnchors} @pointerdown=${this.showAnchors}>
|
|
@@ -215,10 +215,10 @@ function updateContent(caption: string, anchor?: string) {
|
|
|
215
215
|
</div>
|
|
216
216
|
`}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this.list.style,{maxHeight:`${i}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:this._cssMathMaxSupported?`max(50vw, ${this.offsetWidth}px)`:Math.max((window.innerWidth||document.documentElement.clientWidth)/2,this.offsetWidth)+"px"})}dispatchSelectionEvent(e){this.dispatchEvent(new CustomEvent("selection",{detail:{anchor:e}}))}isPointerAbove(e,i){const r=i.getBoundingClientRect();return r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY}showAnchors(){!this.anchorsShown&&this.hasAnchors&&(this.root.addEventListener("pointerleave",this.handlePointerLeave),this.list||this.createList(),this.dataProvider.items=this.anchors.map((e,i)=>({caption:e,index:i})),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this.list),this.popper||(this.popper=Wa(this,this.list,{placement:this.vertical?"right-start":"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!dr}},{name:"hide",enabled:!1},{name:"preventOverflow",options:{padding:0}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:e}){e.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})),window.requestAnimationFrame(()=>{this.popper&&this.popper.update()}),this.anchorsShown=!0)}createList(){this.list=document.createElement(Sn.ID),this.dataProvider=new sl,this.dataProvider.finalSizeIsKnown=!0,this.dataProvider.connectList(this.list),this.list.classList.add("anchor-list"),this.list.tabIndex=0,this.list.selectionType=ls.TriggerOnly,this.list.addEventListener("selection",this.handleListSelection),this.list.addEventListener("keydown",e=>{e.key=="Escape"&&(this.hideAnchors(),this.focus())}),this.list.addEventListener("focusout",()=>{this.hideAnchors()}),this.list.setAttribute("slot","anchors"),this.list.itemHeight=50,Object.assign(this.list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
217
217
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
218
|
-
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"})}hideAnchors(){this.anchorsShown&&(this.anchorsShown=!1,this.root.removeEventListener("pointerleave",this.handlePointerLeave),this.list&&(this.list.focusIndex=-1,this.list.parentElement.removeChild(this.list))),this.popper&&(this.popper.destroy(),this.popper=null)}get hasAnchors(){return!!(this.anchors&&this.anchors.length)}get root(){return this.shadowRoot?this.shadowRoot.querySelector(".root"):null}};Pn.ID="sd-tab";let ye=Pn;Ut([K({type:String})],ye.prototype,"text");Ut([K({type:Array})],ye.prototype,"anchors");Ut([K()],ye.prototype,"index");Ut([K()],ye.prototype,"showCounter");Ut([K({type:Boolean,reflect:!0,attribute:"anchors-shown"})],ye.prototype,"anchorsShown");Sn.ensureDefined();customElements.get(ye.ID)||customElements.define(ye.ID,ye);const dl=":host{display:block;outline:none;contain:content}:host([vertical]) .tab-button-container{flex-direction:column}:host([vertical]) .slider{top:0;width:2px}:host(:not([vertical])) .slider{bottom:0;height:2px}.root{display:flex;width:100%;overflow:hidden}.tab-button-container{display:flex;flex-wrap:nowrap;overflow:hidden;position:relative;flex:1 1 auto}@supports (scrollbar-width: none){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}@supports selector(::-webkit-scrollbar){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}:host([vertical]) .root{height:100%}:host([vertical]) .tab-button-container{overflow-y:auto;height:100%}:host([vertical]) ::slotted(*){flex-shrink:0;flex-grow:0}.slider{background-color:var(--sd-tab-bar-color, #1467ba);position:absolute;left:0}:host(:not([no-slide])) .slider,:host([no-slide=false]) .slider{transition-duration:var(--sd-tab-bar-slide-duration, .5s)}.scroll-button{cursor:pointer;padding:4px;position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f,0 3px 1px -2px #0003}.scroll-button>svg{width:24px;height:24px;fill:var(--sd-tab-bar-color, #1467ba)}.ripple{position:absolute;left:0;top:0;background-position:center;transition:background-color .88s;opacity:.4;width:100%;height:100%;border-radius:50%}.ripple:active{background-color:var(--sd-tab-bar-color, #1467ba);background-size:100%;transition:background-color 0s}";var fl=Object.defineProperty,yt=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&fl(e,i,n),n};const fr=40,ui=class ui extends qe{constructor(){super(...arguments),this.handleSlotChange=()=>{this.tabElements=this.shadowRoot.querySelector("slot").assignedNodes().filter(i=>i instanceof ye);let e=0;this.tabElements.forEach(i=>{i.vertical=this.vertical,i.showCounter=this.showCounter,i.index=e++,i.addEventListener("focus",this.handleTabFocus),i.addEventListener("selection",this.handleTabSelection)}),this.updateScrollButtonVisibility(),this.selectedIndex==null&&(this._focusedIndex=0,this._selectedIndex=0),this.updateSelectionState()},this.handleTabFocus=e=>{const i=e.target.index;this.focusedIndex!==i&&(this._focusedIndex=i,this.scrollToFocusedIfNeeded())},this.handleTabSelection=e=>{this.selectedIndex=e.target.index,this.dispatchSelectionEvent(e.detail.anchor)},this.handleKeyDown=e=>{switch(e.key){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":e.preventDefault(),this.focusedIndex=Math.max(this.focusedIndex-1,0);break;case"Down":case"ArrowDown":case"Right":case"ArrowRight":e.preventDefault(),this.focusedIndex=Math.min(this.focusedIndex+1,this.tabElements.length-1);break}},this.debounced={}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.debounce("update-scroll-button-visibility",()=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.updateScrollButtonVisibility())})}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e);const i=this.ownerDocument;i.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...i.adoptedStyleSheets]),this.shadowRoot.querySelector("slot").addEventListener("slotchange",this.handleSlotChange),this.addEventListener("keydown",this.handleKeyDown),this.tabButtonContainer.addEventListener("wheel",n=>{if(this.tabButtonContainer.scrollWidth>this.tabButtonContainer.offsetWidth){const s=document.elementsFromPoint(n.x,n.y)[0];this.tabButtonContainer.scrollLeft+=n.deltaY;const a=document.elementsFromPoint(n.x,n.y)[0];s!=a&&(s instanceof ye&&s.hideAnchors(),a instanceof ye&&a.showAnchors()),n.preventDefault()}})}static get styles(){return[hi`
|
|
218
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"})}hideAnchors(){this.anchorsShown&&(this.anchorsShown=!1,this.root.removeEventListener("pointerleave",this.handlePointerLeave),this.list&&(this.list.focusIndex=-1,this.list.parentElement.removeChild(this.list))),this.popper&&(this.popper.destroy(),this.popper=null)}get hasAnchors(){return!!(this.anchors&&this.anchors.length)}get root(){return this.shadowRoot?this.shadowRoot.querySelector(".root"):null}};Pn.ID="sd-tab";let ye=Pn;Ut([K({type:String})],ye.prototype,"text");Ut([K({type:Array})],ye.prototype,"anchors");Ut([K()],ye.prototype,"index");Ut([K()],ye.prototype,"showCounter");Ut([K({type:Boolean,reflect:!0,attribute:"anchors-shown"})],ye.prototype,"anchorsShown");Sn.ensureDefined();customElements.get(ye.ID)||customElements.define(ye.ID,ye);const dl=":host{display:block;outline:none;contain:content}:host([vertical]) .tab-button-container{flex-direction:column}:host([vertical]) .slider{top:0;width:2px}:host(:not([vertical])) .slider{bottom:0;height:2px}.root{display:flex;width:100%;overflow:hidden}.tab-button-container{display:flex;flex-wrap:nowrap;overflow:hidden;position:relative;flex:1 1 auto}@supports (scrollbar-width: none){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}@supports selector(::-webkit-scrollbar){:host(:not([vertical])) .tab-button-container{overflow-x:auto;scrollbar-width:none}:host(:not([vertical])) .tab-button-container::-webkit-scrollbar{display:none}}:host([vertical]) .root{height:100%}:host([vertical]) .tab-button-container{overflow-y:auto;height:100%}:host([vertical]) ::slotted(*){flex-shrink:0;flex-grow:0}.slider{background-color:var(--sd-tab-bar-color, #1467ba);position:absolute;left:0}:host(:not([no-slide])) .slider,:host([no-slide=false]) .slider{transition-duration:var(--sd-tab-bar-slide-duration, .5s)}.scroll-button{cursor:pointer;padding:4px;position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f,0 3px 1px -2px #0003}.scroll-button>svg{width:24px;height:24px;fill:var(--sd-tab-bar-color, #1467ba)}.ripple{position:absolute;left:0;top:0;background-position:center;transition:background-color .88s;opacity:.4;width:100%;height:100%;border-radius:50%}.ripple:active{background-color:var(--sd-tab-bar-color, #1467ba);background-size:100%;transition:background-color 0s}";var fl=Object.defineProperty,yt=(t,e,i,r)=>{for(var n=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(n=a(e,i,n)||n);return n&&fl(e,i,n),n};const fr=40,ui=class ui extends qe{constructor(){super(...arguments),this.handleSlotChange=()=>{this.tabElements=this.shadowRoot.querySelector("slot").assignedNodes().filter(i=>i instanceof ye);let e=0;this.tabElements.forEach(i=>{i.vertical=this.vertical,i.showCounter=this.showCounter,i.index=e++,i.addEventListener("focus",this.handleTabFocus),i.addEventListener("selection",this.handleTabSelection)}),this.updateScrollButtonVisibility(),this.selectedIndex==null&&(this._focusedIndex=0,this._selectedIndex=0),this.updateSelectionState()},this.handleTabFocus=e=>{const i=e.target.index;this.focusedIndex!==i&&(this._focusedIndex=i,this.scrollToFocusedIfNeeded())},this.handleTabSelection=e=>{this.selectedIndex=e.target.index,this.dispatchSelectionEvent(e.detail.anchor)},this.handleKeyDown=e=>{switch(e.key){case"Up":case"ArrowUp":case"Left":case"ArrowLeft":e.preventDefault(),this.focusedIndex=Math.max(this.focusedIndex-1,0);break;case"Down":case"ArrowDown":case"Right":case"ArrowRight":e.preventDefault(),this.focusedIndex=Math.min(this.focusedIndex+1,this.tabElements.length-1);break}},this.debounced={}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.debounce("update-scroll-button-visibility",()=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.updateScrollButtonVisibility())})}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}firstUpdated(e){super.firstUpdated(e);const i=this.ownerDocument;i.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,...i.adoptedStyleSheets]),this.shadowRoot.querySelector("slot").addEventListener("slotchange",this.handleSlotChange),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusin",n=>{this.contains(n.relatedTarget)||(this.focusedIndex=this.selectedIndex,this.updateFocusedState(),this.shadowRoot.querySelector(".root").tabIndex=-1)}),this.addEventListener("focusout",n=>{this.contains(n.relatedTarget)||(this.shadowRoot.querySelector(".root").tabIndex=0)}),this.tabButtonContainer.addEventListener("wheel",n=>{if(this.tabButtonContainer.scrollWidth>this.tabButtonContainer.offsetWidth){const s=document.elementsFromPoint(n.x,n.y)[0];this.tabButtonContainer.scrollLeft+=n.deltaY;const a=document.elementsFromPoint(n.x,n.y)[0];s!=a&&(s instanceof ye&&s.hideAnchors(),a instanceof ye&&a.showAnchors()),n.preventDefault()}})}static get styles(){return[hi`
|
|
219
219
|
${Dt(dl)}
|
|
220
220
|
`]}render(){return ve`
|
|
221
|
-
<div class="root">
|
|
221
|
+
<div class="root" tabindex="0" role="tablist" aria-orientation="${this.vertical?"vertical":"horizontal"}">
|
|
222
222
|
${!this.vertical&&this.showLeftScrollButton?ve`
|
|
223
223
|
<div class="scroll-button left" @pointerdown="${()=>{this.tabButtonContainer.scrollLeft-=fr}}">
|
|
224
224
|
<div class="ripple"></div>
|
|
@@ -254,18 +254,18 @@ function updateContent(caption: string, anchor?: string) {
|
|
|
254
254
|
`);return s=f[f.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(n){let s;return n.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(s=a.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(n,s){let a=n[s],d=n.raws[s];return d&&d.value===a?d.raw:a}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,s){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,s)}}return Ni=i,i.default=i,Ni}var Mi,br;function mi(){if(br)return Mi;br=1;let t=us();function e(i,r){new t(r).stringify(i)}return Mi=e,e.default=e,Mi}var ti={},vr;function Cn(){return vr||(vr=1,ti.isClean=Symbol("isClean"),ti.my=Symbol("my")),ti}var Ti,yr;function gi(){if(yr)return Ti;yr=1;let t=An(),e=us(),i=mi(),{isClean:r,my:n}=Cn();function s(f,h){let o=new f.constructor;for(let u in f){if(!Object.prototype.hasOwnProperty.call(f,u)||u==="proxyCache")continue;let c=f[u],l=typeof c;u==="parent"&&l==="object"?h&&(o[u]=h):u==="source"?o[u]=c:Array.isArray(c)?o[u]=c.map(p=>s(p,o)):(l==="object"&&c!==null&&(c=s(c)),o[u]=c)}return o}function a(f,h){if(h&&typeof h.offset<"u")return h.offset;let o=1,u=1,c=0;for(let l=0;l<f.length;l++){if(u===h.line&&o===h.column){c=l;break}f[l]===`
|
|
255
255
|
`?(o=1,u+=1):o+=1}return c}class d{get proxyOf(){return this}constructor(h={}){this.raws={},this[r]=!1,this[n]=!0;for(let o in h)if(o==="nodes"){this.nodes=[];for(let u of h[o])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[o]=h[o]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let o=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${o.input.from}:${o.start.line}:${o.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let o in h)this[o]=h[o];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 o=s(this);for(let u in h)o[u]=h[u];return o}cloneAfter(h={}){let o=this.clone(h);return this.parent.insertAfter(this,o),o}cloneBefore(h={}){let o=this.clone(h);return this.parent.insertBefore(this,o),o}error(h,o={}){if(this.source){let{end:u,start:c}=this.rangeBy(o);return this.source.input.error(h,{column:c.column,line:c.line},{column:u.column,line:u.line},o)}return new t(h)}getProxyProcessor(){return{get(h,o){return o==="proxyOf"?h:o==="root"?()=>h.root().toProxy():h[o]},set(h,o,u){return h[o]===u||(h[o]=u,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="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 o=this.source.start;if(h.index)o=this.positionInside(h.index);else if(h.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,l=u.slice(a(u,this.source.start),a(u,this.source.end)).indexOf(h.word);l!==-1&&(o=this.positionInside(l))}return o}positionInside(h){let o=this.source.start.column,u=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(c,this.source.start),p=l+h;for(let m=l;m<p;m++)c[m]===`
|
|
256
256
|
`?(o=1,u+=1):o+=1;return{column:o,line:u,offset:p}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let o="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:a(o,this.source.start)},c=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(o,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(h.word){let p=o.slice(a(o,this.source.start),a(o,this.source.end)).indexOf(h.word);p!==-1&&(u=this.positionInside(p),c=this.positionInside(p+h.word.length))}else h.start?u={column:h.start.column,line:h.start.line,offset:a(o,h.start)}:h.index&&(u=this.positionInside(h.index)),h.end?c={column:h.end.column,line:h.end.line,offset:a(o,h.end)}:typeof h.endIndex=="number"?c=this.positionInside(h.endIndex):h.index&&(c=this.positionInside(h.index+1));return(c.line<u.line||c.line===u.line&&c.column<=u.column)&&(c={column:u.column+1,line:u.line,offset:u.offset+1}),{end:c,start:u}}raw(h,o){return new e().raw(this,h,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let o=this,u=!1;for(let c of h)c===this?u=!0:u?(this.parent.insertAfter(o,c),o=c):this.parent.insertBefore(o,c);u||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,o){let u={},c=o==null;o=o||new Map;let l=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let m=this[p];if(Array.isArray(m))u[p]=m.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,o):b);else if(typeof m=="object"&&m.toJSON)u[p]=m.toJSON(null,o);else if(p==="source"){if(m==null)continue;let b=o.get(m.input);b==null&&(b=l,o.set(m.input,l),l++),u[p]={end:m.end,inputId:b,start:m.start}}else u[p]=m}return c&&(u.inputs=[...o.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let o="";return h(this,u=>{o+=u}),o}warn(h,o,u={}){let c={node:this};for(let l in u)c[l]=u[l];return h.warn(o,c)}}return Ti=d,d.default=d,Ti}var Li,wr;function bi(){if(wr)return Li;wr=1;let t=gi();class e extends t{constructor(r){super(r),this.type="comment"}}return Li=e,e.default=e,Li}var Di,xr;function vi(){if(xr)return Di;xr=1;let t=gi();class e extends t{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 Di=e,e.default=e,Di}var ji,_r;function lt(){if(_r)return ji;_r=1;let t=bi(),e=vi(),i=gi(),{isClean:r,my:n}=Cn(),s,a,d,f;function h(c){return c.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function o(c){if(c[r]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)o(l)}class u 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 p of l){let m=this.normalize(p,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let p of this.nodes)p.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let p=this.getIterator(),m,b;for(;this.indexes[p]<this.proxyOf.nodes.length&&(m=this.indexes[p],b=l(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[p]+=1;return delete this.indexes[p],b}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,p){return p==="proxyOf"?l:l[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...m)=>l[p](...m.map(b=>typeof b=="function"?(x,_)=>b(x.toProxy(),_):b)):p==="every"||p==="some"?m=>l[p]((b,...x)=>m(b.toProxy(),...x)):p==="root"?()=>l.root().toProxy():p==="nodes"?l.nodes.map(m=>m.toProxy()):p==="first"||p==="last"?l[p].toProxy():l[p]:l[p]},set(l,p,m){return l[p]===m||(l[p]=m,(p==="name"||p==="params"||p==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,p){let m=this.index(l),b=this.normalize(p,this.proxyOf.nodes[m]).reverse();m=this.index(l);for(let _ of b)this.proxyOf.nodes.splice(m+1,0,_);let x;for(let _ in this.indexes)x=this.indexes[_],m<x&&(this.indexes[_]=x+b.length);return this.markDirty(),this}insertBefore(l,p){let m=this.index(l),b=m===0?"prepend":!1,x=this.normalize(p,this.proxyOf.nodes[m],b).reverse();m=this.index(l);for(let w of x)this.proxyOf.nodes.splice(m,0,w);let _;for(let w in this.indexes)_=this.indexes[w],m<=_&&(this.indexes[w]=_+x.length);return this.markDirty(),this}normalize(l,p){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 b of l)b.parent&&b.parent.removeChild(b,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let b of l)b.parent&&b.parent.removeChild(b,"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 f(l)];else if(l.name)l=[new s(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(b=>(b[n]||u.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[r]&&o(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&p&&typeof p.raws.before<"u"&&(b.raws.before=p.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...l){l=l.reverse();for(let p of l){let m=this.normalize(p,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+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 p;for(let m in this.indexes)p=this.indexes[m],p>=l&&(this.indexes[m]=p-1);return this.markDirty(),this}replaceValues(l,p,m){return m||(m=p,p={}),this.walkDecls(b=>{p.props&&!p.props.includes(b.prop)||p.fast&&!b.value.includes(p.fast)||(b.value=b.value.replace(l,m))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((p,m)=>{let b;try{b=l(p,m)}catch(x){throw p.addToError(x)}return b!==!1&&p.walk&&(b=p.walk(l)),b})}walkAtRules(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&l.test(m.name))return p(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="atrule")return p(m,b)}))}walkComments(l){return this.walk((p,m)=>{if(p.type==="comment")return l(p,m)})}walkDecls(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&l.test(m.prop))return p(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="decl")return p(m,b)}))}walkRules(l,p){return p?l instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&l.test(m.selector))return p(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===l)return p(m,b)}):(p=l,this.walk((m,b)=>{if(m.type==="rule")return p(m,b)}))}}return u.registerParse=c=>{a=c},u.registerRule=c=>{f=c},u.registerAtRule=c=>{s=c},u.registerRoot=c=>{d=c},ji=u,u.default=u,u.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,f.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[n]=!0,c.nodes&&c.nodes.forEach(l=>{u.rebuild(l)})},ji}var Bi,Er;function On(){if(Er)return Bi;Er=1;let t=lt();class e extends t{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 Bi=e,e.default=e,t.registerAtRule(e),Bi}var zi,Sr;function kn(){if(Sr)return zi;Sr=1;let t=lt(),e,i;class r extends t{constructor(s){super({type:"document",...s}),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new i,this,s).stringify()}}return r.registerLazyResult=n=>{e=n},r.registerProcessor=n=>{i=n},zi=r,r.default=r,zi}var Ui,Ar;function vl(){if(Ar)return Ui;Ar=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ui={nanoid:(r=21)=>{let n="",s=r|0;for(;s--;)n+=t[Math.random()*64|0];return n},customAlphabet:(r,n=21)=>(s=n)=>{let a="",d=s|0;for(;d--;)a+=r[Math.random()*r.length|0];return a}},Ui}var qi,Cr;function hs(){if(Cr)return qi;Cr=1;let{existsSync:t,readFileSync:e}=ke,{dirname:i,join:r}=ke,{SourceMapConsumer:n,SourceMapGenerator:s}=ke;function a(f){return Buffer?Buffer.from(f,"base64").toString():window.atob(f)}class d{constructor(h,o){if(o.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let u=o.map?o.map.prev:void 0,c=this.loadMap(o.from,u);!this.mapFile&&o.from&&(this.mapFile=o.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}decodeInline(h){let o=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,p=h.match(c)||h.match(l);if(p)return decodeURIComponent(h.substr(p[0].length));let m=h.match(o)||h.match(u);if(m)return a(h.substr(m[0].length));let b=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+b)}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 o=h.match(/\/\*\s*# sourceMappingURL=/g);if(!o)return;let u=h.lastIndexOf(o.pop()),c=h.indexOf("*/",u);u>-1&&c>-1&&(this.annotation=this.getAnnotationURL(h.substring(u,c)))}loadFile(h){if(this.root=i(h),t(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,o){if(o===!1)return!1;if(o){if(typeof o=="string")return o;if(typeof o=="function"){let u=o(h);if(u){let c=this.loadFile(u);if(!c)throw new Error("Unable to load previous source map: "+u.toString());return c}}else{if(o instanceof n)return s.fromSourceMap(o).toString();if(o instanceof s)return o.toString();if(this.isMap(o))return JSON.stringify(o);throw new Error("Unsupported previous source map format: "+o.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return h&&(u=r(i(h),u)),this.loadFile(u)}}}startWith(h,o){return h?h.substr(0,o.length)===o:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return qi=d,d.default=d,qi}var Hi,Or;function yi(){if(Or)return Hi;Or=1;let{nanoid:t}=vl(),{isAbsolute:e,resolve:i}=ke,{SourceMapConsumer:r,SourceMapGenerator:n}=ke,{fileURLToPath:s,pathToFileURL:a}=ke,d=An(),f=hs(),h=ke,o=Symbol("lineToIndexCache"),u=!!(r&&n),c=!!(i&&e);function l(m){if(m[o])return m[o];let b=m.css.split(`
|
|
257
|
-
`),x=new Array(b.length),_=0;for(let w=0,y=b.length;w<y;w++)x[w]=_,_+=b[w].length+1;return m[o]=x,x}class p{get from(){return this.file||this.id}constructor(b,x={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&u){let _=new f(this.css,x);if(_.text){this.map=_;let w=_.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(b,x,_,w={}){let y,v,E,A,
|
|
258
|
-
`," "];return t.split(e,i)},split(e,i,r){let n=[],s="",a=!1,d=0,f=!1,h="",o=!1;for(let u of e)o?o=!1:u==="\\"?o=!0:f?u===h&&(f=!1):u==='"'||u==="'"?(f=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&i.includes(u)&&(a=!0),a?(s!==""&&n.push(s.trim()),s="",a=!1):s+=u;return(r||s!=="")&&n.push(s.trim()),n}};return Fi=t,t.default=t,Fi}var Ki,
|
|
257
|
+
`),x=new Array(b.length),_=0;for(let w=0,y=b.length;w<y;w++)x[w]=_,_+=b[w].length+1;return m[o]=x,x}class p{get from(){return this.file||this.id}constructor(b,x={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&u){let _=new f(this.css,x);if(_.text){this.map=_;let w=_.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(b,x,_,w={}){let y,v,E,A,R;if(x&&typeof x=="object"){let O=x,q=_;if(typeof O.offset=="number"){A=O.offset;let z=this.fromOffset(A);x=z.line,_=z.col}else x=O.line,_=O.column,A=this.fromLineAndColumn(x,_);if(typeof q.offset=="number"){E=q.offset;let z=this.fromOffset(E);v=z.line,y=z.col}else v=q.line,y=q.column,E=this.fromLineAndColumn(q.line,q.column)}else if(_)A=this.fromLineAndColumn(x,_);else{A=x;let O=this.fromOffset(A);x=O.line,_=O.col}let M=this.origin(x,_,v,y);return M?R=new d(b,M.endLine===void 0?M.line:{column:M.column,line:M.line},M.endLine===void 0?M.column:{column:M.endColumn,line:M.endLine},M.source,M.file,w.plugin):R=new d(b,v===void 0?x:{column:_,line:x},v===void 0?_:{column:y,line:v},this.css,this.file,w.plugin),R.input={column:_,endColumn:y,endLine:v,endOffset:E,line:x,offset:A,source:this.css},this.file&&(a&&(R.input.url=a(this.file).toString()),R.input.file=this.file),R}fromLineAndColumn(b,x){return l(this)[b-1]+x-1}fromOffset(b){let x=l(this),_=x[x.length-1],w=0;if(b>=_)w=x.length-1;else{let y=x.length-2,v;for(;w<y;)if(v=w+(y-w>>1),b<x[v])y=v-1;else if(b>=x[v+1])w=v+1;else{w=v;break}}return{col:b-x[w]+1,line:w+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:i(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,x,_,w){if(!this.map)return!1;let y=this.map.consumer(),v=y.originalPositionFor({column:x,line:b});if(!v.source)return!1;let E;typeof _=="number"&&(E=y.originalPositionFor({column:w,line:_}));let A;e(v.source)?A=a(v.source):A=new URL(v.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let R={column:v.column,endColumn:E&&E.column,endLine:E&&E.line,line:v.line,url:A.toString()};if(A.protocol==="file:")if(s)R.file=s(A);else throw new Error("file: protocol is not available in this PostCSS build");let M=y.sourceContentFor(v.source);return M&&(R.source=M),R}toJSON(){let b={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(b[x]=this[x]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}}return Hi=p,p.default=p,h&&h.registerInput&&h.registerInput(p),Hi}var Wi,kr;function qt(){if(kr)return Wi;kr=1;let t=lt(),e,i;class r extends t{constructor(s){super(s),this.type="root",this.nodes||(this.nodes=[])}normalize(s,a,d){let f=super.normalize(s);if(a){if(d==="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 f)h.raws.before=a.raws.before}return f}removeChild(s,a){let d=this.index(s);return!a&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(s)}toResult(s={}){return new e(new i,this,s).stringify()}}return r.registerLazyResult=n=>{e=n},r.registerProcessor=n=>{i=n},Wi=r,r.default=r,t.registerRoot(r),Wi}var Fi,$r;function ds(){if($r)return Fi;$r=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
258
|
+
`," "];return t.split(e,i)},split(e,i,r){let n=[],s="",a=!1,d=0,f=!1,h="",o=!1;for(let u of e)o?o=!1:u==="\\"?o=!0:f?u===h&&(f=!1):u==='"'||u==="'"?(f=!0,h=u):u==="("?d+=1:u===")"?d>0&&(d-=1):d===0&&i.includes(u)&&(a=!0),a?(s!==""&&n.push(s.trim()),s="",a=!1):s+=u;return(r||s!=="")&&n.push(s.trim()),n}};return Fi=t,t.default=t,Fi}var Ki,Ir;function $n(){if(Ir)return Ki;Ir=1;let t=lt(),e=ds();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(n){let s=this.selector?this.selector.match(/,\s*/):null,a=s?s[0]:","+this.raw("between","beforeOpen");this.selector=n.join(a)}constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}}return Ki=i,i.default=i,t.registerRule(i),Ki}var Vi,Rr;function yl(){if(Rr)return Vi;Rr=1;let t=On(),e=bi(),i=vi(),r=yi(),n=hs(),s=qt(),a=$n();function d(f,h){if(Array.isArray(f))return f.map(c=>d(c));let{inputs:o,...u}=f;if(o){h=[];for(let c of o){let l={...c,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:n.prototype}),h.push(l)}}if(u.nodes&&(u.nodes=f.nodes.map(c=>d(c,h))),u.source){let{inputId:c,...l}=u.source;u.source=l,c!=null&&(u.source.input=h[c])}if(u.type==="root")return new s(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new a(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new t(u);throw new Error("Unknown node type: "+f.type)}return Vi=d,d.default=d,Vi}var Gi,Pr;function fs(){if(Pr)return Gi;Pr=1;let{dirname:t,relative:e,resolve:i,sep:r}=ke,{SourceMapConsumer:n,SourceMapGenerator:s}=ke,{pathToFileURL:a}=ke,d=yi(),f=!!(n&&s),h=!!(t&&i&&e&&r);class o{constructor(c,l,p,m){this.stringify=c,this.mapOpts=p.map||{},this.root=l,this.opts=p,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 c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
|
|
259
259
|
`;this.css.includes(`\r
|
|
260
260
|
`)&&(l=`\r
|
|
261
261
|
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),p=c.root||t(c.file),m;this.mapOpts.sourcesContent===!1?(m=new n(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,l,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&f&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=s.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new s({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 s({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,l=1,p="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,x;this.stringify(this.root,(_,w,y)=>{if(this.css+=_,w&&y!=="end"&&(m.generated.line=c,m.generated.column=l-1,w.source&&w.source.start?(m.source=this.sourcePath(w),m.original.line=w.source.start.line,m.original.column=w.source.start.column-1,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,this.map.addMapping(m))),x=_.match(/\n/g),x?(c+=x.length,b=_.lastIndexOf(`
|
|
262
|
-
`),l=_.length-b):l+=_.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(m.source=this.sourcePath(w),m.original.line=w.source.end.line,m.original.column=w.source.end.column-1,m.generated.line=c,m.generated.column=l-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let m=e(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let p=l.source.input.from;if(p&&!c[p]){c[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(a){let p=a(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;r==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return Gi=o,Gi}var Zi,Nr;function wl(){if(Nr)return Zi;Nr=1;const t=39,e=34,i=92,r=47,n=10,s=32,a=12,d=9,f=13,h=91,o=93,u=40,c=41,l=123,p=125,m=59,b=42,x=58,_=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,E=/[\da-f]/i;return Zi=function(I,M={}){let O=I.css.valueOf(),q=M.ignoreErrors,z,Q,ne,R,re,H,X,ee,oe,xe,ge=O.length,D=0,_e=[],fe=[];function je(){return D}function Re(Ee){throw I.error("Unclosed "+Ee,D)}function Oe(){return fe.length===0&&D>=ge}function Ie(Ee){if(fe.length)return fe.pop();if(D>=ge)return;let Je=Ee?Ee.ignoreUnclosed:!1;switch(z=O.charCodeAt(D),z){case n:case s:case d:case f:case a:{R=D;do R+=1,z=O.charCodeAt(R);while(z===s||z===n||z===d||z===f||z===a);H=["space",O.slice(D,R)],D=R-1;break}case h:case o:case l:case p:case x:case m:case c:{let Ye=String.fromCharCode(z);H=[Ye,Ye,D];break}case u:{if(xe=_e.length?_e.pop()[1]:"",oe=O.charCodeAt(D+1),xe==="url"&&oe!==t&&oe!==e&&oe!==s&&oe!==n&&oe!==d&&oe!==a&&oe!==f){R=D;do{if(X=!1,R=O.indexOf(")",R+1),R===-1)if(q||Je){R=D;break}else Re("bracket");for(ee=R;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["brackets",O.slice(D,R+1),D,R],D=R}else R=O.indexOf(")",D+1),Q=O.slice(D,R+1),R===-1||v.test(Q)?H=["(","(",D]:(H=["brackets",Q,D,R],D=R);break}case t:case e:{re=z===t?"'":'"',R=D;do{if(X=!1,R=O.indexOf(re,R+1),R===-1)if(q||Je){R=D+1;break}else Re("string");for(ee=R;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["string",O.slice(D,R+1),D,R],D=R;break}case _:{w.lastIndex=D+1,w.test(O),w.lastIndex===0?R=O.length-1:R=w.lastIndex-2,H=["at-word",O.slice(D,R+1),D,R],D=R;break}case i:{for(R=D,ne=!0;O.charCodeAt(R+1)===i;)R+=1,ne=!ne;if(z=O.charCodeAt(R+1),ne&&z!==r&&z!==s&&z!==n&&z!==d&&z!==f&&z!==a&&(R+=1,E.test(O.charAt(R)))){for(;E.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===s&&(R+=1)}H=["word",O.slice(D,R+1),D,R],D=R;break}default:{z===r&&O.charCodeAt(D+1)===b?(R=O.indexOf("*/",D+2)+1,R===0&&(q||Je?R=O.length:Re("comment")),H=["comment",O.slice(D,R+1),D,R],D=R):(y.lastIndex=D+1,y.test(O),y.lastIndex===0?R=O.length-1:R=y.lastIndex-2,H=["word",O.slice(D,R+1),D,R],_e.push(H),D=R);break}}return D++,H}function wt(Ee){fe.push(Ee)}return{back:wt,endOfFile:Oe,nextToken:Ie,position:je}},Zi}var Xi,Mr;function xl(){if(Mr)return Xi;Mr=1;let t=On(),e=bi(),i=vi(),r=qt(),n=$n(),s=wl();const a={empty:!0,space:!0};function d(h){for(let o=h.length-1;o>=0;o--){let u=h[o],c=u[3]||u[2];if(c)return c}}class f{constructor(o){this.input=o,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let u=new t;u.name=o[1].slice(1),u.name===""&&this.unnamedAtrule(u,o),this.init(u,o[2]);let c,l,p,m=!1,b=!1,x=[],_=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?_.push(c==="("?")":"]"):c==="{"&&_.length>0?_.push("}"):c===_[_.length-1]&&_.pop(),_.length===0)if(c===";"){u.source.end=this.getPosition(o[2]),u.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(x.length>0){for(p=x.length-1,l=x[p];l&&l[0]==="space";)l=x[--p];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(u.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(u,"params",x),m&&(o=x[x.length-1],u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),b&&(u.nodes=[],this.current=u)}checkMissedSemicolon(o){let u=this.colon(o);if(u===!1)return;let c=0,l;for(let p=u-1;p>=0&&(l=o[p],!(l[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(o){let u=0,c,l,p;for(let[m,b]of o.entries()){if(l=b,p=l[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=l}return!1}comment(o){let u=new e;this.init(u,o[2]),u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))u.text="",u.raws.left=c,u.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(o,u){let c=new i;this.init(c,o[0][2]);let l=o[o.length-1];for(l[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(l[3]||l[2]||d(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let _=o[0][0];if(_===":"||_==="space"||_==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let p;for(;o.length;)if(p=o.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;o.length&&(b=o[0][0],!(b!=="space"&&b!=="comment"));)m.push(o.shift());this.precheckMissedSemicolon(o);for(let _=o.length-1;_>=0;_--){if(p=o[_],p[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(o,_);w=this.spacesFromEnd(o)+w,w!==" !important"&&(c.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=o.slice(0),y="";for(let v=_;v>0;v--){let E=w[v][0];if(y.trim().startsWith("!")&&E!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,o=w)}if(p[0]!=="space"&&p[0]!=="comment")break}o.some(_=>_[0]!=="space"&&_[0]!=="comment")&&(c.raws.between+=m.map(_=>_[1]).join(""),m=[]),this.raw(c,"value",m.concat(o),u),c.value.includes(":")&&!u&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let u=new n;this.init(u,o[2]),u.selector="",u.raws.between="",this.current=u}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(o[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(o){let u=this.input.fromOffset(o);return{column:u.col,line:u.line,offset:o}}init(o,u){this.current.push(o),o.source={input:this.input,start:this.getPosition(u)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let u=!1,c=null,l=!1,p=null,m=[],b=o[1].startsWith("--"),x=[],_=o;for(;_;){if(c=_[0],x.push(_),c==="("||c==="[")p||(p=_),m.push(c==="("?")":"]");else if(b&&l&&c==="{")p||(p=_),m.push("}");else if(m.length===0)if(c===";")if(l){this.decl(x,b);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),u=!0;break}else c===":"&&(l=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));_=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(p),u&&l){if(!b)for(;x.length&&(_=x[x.length-1][0],!(_!=="space"&&_!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,b)}else this.unknownWord(x)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,u,c,l){let p,m,b=c.length,x="",_=!0,w,y;for(let v=0;v<b;v+=1)p=c[v],m=p[0],m==="space"&&v===b-1&&!l?_=!1:m==="comment"?(y=c[v-1]?c[v-1][0]:"empty",w=c[v+1]?c[v+1][0]:"empty",!a[y]&&!a[w]?x.slice(-1)===","?_=!1:x+=p[1]:_=!1):x+=p[1];if(!_){let v=c.reduce((E,A)=>E+A[1],"");o.raws[u]={raw:v,value:x}}o[u]=x}rule(o){o.pop();let u=new n;this.init(u,o[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(u,"selector",o),this.current=u}spacesAndCommentsFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],!(u!=="space"&&u!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let u,c="";for(;o.length&&(u=o[0][0],!(u!=="space"&&u!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],u==="space");)c=o.pop()[1]+c;return c}stringFrom(o,u){let c="";for(let l=u;l<o.length;l++)c+=o[l][1];return o.splice(u,o.length-u),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word "+o[0][1],{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return Xi=f,Xi}var Ji,Tr;function Rn(){if(Tr)return Ji;Tr=1;let t=lt(),e=yi(),i=xl();function r(n,s){let a=new e(n,s),d=new i(a);try{d.parse()}catch(f){throw f}return d.root}return Ji=r,r.default=r,t.registerParse(r),Ji}var Yi,Lr;function ps(){if(Lr)return Yi;Lr=1;class t{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Yi=t,t.default=t,Yi}var Qi,Dr;function In(){if(Dr)return Qi;Dr=1;let t=ps();class e{get content(){return this.css}constructor(r,n,s){this.processor=r,this.messages=[],this.root=n,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(r,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let s=new t(r,n);return this.messages.push(s),s}warnings(){return this.messages.filter(r=>r.type==="warning")}}return Qi=e,e.default=e,Qi}var en,jr;function ms(){if(jr)return en;jr=1;let t=lt(),e=kn(),i=fs(),r=Rn(),n=In(),s=qt(),a=mi(),{isClean:d,my:f}=Cn();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},u={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=h[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,c,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,c,v+"Exit"]:[v,v+"Exit"]}function m(w){let y;return w.type==="document"?y=["Document",c,"DocumentExit"]:w.type==="root"?y=["Root",c,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function b(w){return w[d]=!1,w.nodes&&w.nodes.forEach(y=>b(y)),w}let x={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,v,E){this.stringified=!1,this.processed=!1;let A;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))A=b(v);else if(v instanceof _||v instanceof n)A=b(v.root),v.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let I=r;E.syntax&&(I=E.syntax.parse),E.parser&&(I=E.parser),I.parse&&(I=I.parse);try{A=I(v,E)}catch(M){this.processed=!0,this.error=M}A&&!A[f]&&t.rebuild(A)}this.result=new n(y,A,E),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let E=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=E.postcssPlugin,y.setMessage()):E.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(v,E,A)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,A])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!o[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[E])if(typeof v[E]=="object")for(let A in v[E])A==="*"?y(v,E,v[E][A]):y(v,E+"-"+A.toLowerCase(),v[E][A]);else typeof v[E]=="function"&&y(v,E,v[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],E=this.runOnRoot(v);if(l(E))try{await E}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let v=[m(y)];for(;v.length>0;){let E=this.visitTick(v);if(l(E))try{await E}catch(A){let I=v[v.length-1].node;throw this.handleError(A,I)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let A=y.nodes.map(I=>E(I,this.helpers));await Promise.all(A)}else await E(y,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(E=>y.Once(E,this.helpers));return l(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=a;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let A=new i(v,this.result.root,this.result.opts).generate();return this.result.css=A[0],this.result.map=A[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let v=this.runOnRoot(y);if(l(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[E,A]of y){this.result.lastPlugin=E;let I;try{I=A(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:E,visitors:A}=v;if(E.type!=="root"&&E.type!=="document"&&!E.parent){y.pop();return}if(A.length>0&&v.visitorIndex<A.length){let[M,O]=A[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===A.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return O(E.toProxy(),this.helpers)}catch(q){throw this.handleError(q,E)}}if(v.iterator!==0){let M=v.iterator,O;for(;O=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!O[d]){O[d]=!0,y.push(m(O));return}v.iterator=0,delete E.indexes[M]}let I=v.events;for(;v.eventIndex<I.length;){let M=I[v.eventIndex];if(v.eventIndex+=1,M===c){E.nodes&&E.nodes.length&&(E[d]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[d]=!0;let v=p(y);for(let E of v)if(E===c)y.nodes&&y.each(A=>{A[d]||this.walkSync(A)});else{let A=this.listeners[E];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=w=>{x=w},en=_,_.default=_,s.registerLazyResult(_),e.registerLazyResult(_),en}var tn,Br;function _l(){if(Br)return tn;Br=1;let t=fs(),e=Rn();const i=In();let r=mi();class n{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,d=e;try{a=d(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,d,f){d=d.toString(),this.stringified=!1,this._processor=a,this._css=d,this._opts=f,this._map=void 0;let h,o=r;this.result=new i(this._processor,h,this._opts),this.result.css=d;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let c=new t(o,h,this._opts,d);if(c.isMap()){let[l,p]=c.generate();l&&(this.result.css=l),p&&(this.result.map=p)}else c.clearAnnotation(),this.result.css=c.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,d){return this.async().then(a,d)}toString(){return this._css}warnings(){return[]}}return tn=n,n.default=n,tn}var nn,zr;function El(){if(zr)return nn;zr=1;let t=kn(),e=ms(),i=_l(),r=qt();class n{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let d=[];for(let f of a)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))d=d.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)d.push(f);else if(typeof f=="function")d.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return d}process(a,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,a,d):new e(this,a,d)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return nn=n,n.default=n,r.registerProcessor(n),t.registerProcessor(n),nn}var rn,Ur;function Sl(){if(Ur)return rn;Ur=1;var t={};let e=On(),i=bi(),r=lt(),n=An(),s=vi(),a=kn(),d=yl(),f=yi(),h=ms(),o=ds(),u=gi(),c=Rn(),l=El(),p=In(),m=qt(),b=$n(),x=mi(),_=ps();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return w.plugin=function(v,E){let A=!1;function I(...O){console&&console.warn&&!A&&(A=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
262
|
+
`),l=_.length-b):l+=_.length,w&&y!=="start"){let v=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==v.last||v.raws.semicolon)&&(w.source&&w.source.end?(m.source=this.sourcePath(w),m.original.line=w.source.end.line,m.original.column=w.source.end.column-1,m.generated.line=c,m.generated.column=l-2,this.map.addMapping(m)):(m.source=p,m.original.line=1,m.original.column=0,m.generated.line=c,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(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!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(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let p=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=t(i(p,this.mapOpts.annotation)));let m=e(p,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let p=l.source.input.from;if(p&&!c[p]){c[p]=!0;let m=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));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(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(a){let p=a(c).toString();return this.memoizedFileURLs.set(c,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;r==="\\"&&(c=c.replace(/\\/g,"/"));let p=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,p),p}}return Gi=o,Gi}var Zi,Nr;function wl(){if(Nr)return Zi;Nr=1;const t=39,e=34,i=92,r=47,n=10,s=32,a=12,d=9,f=13,h=91,o=93,u=40,c=41,l=123,p=125,m=59,b=42,x=58,_=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,v=/.[\r\n"'(/\\]/,E=/[\da-f]/i;return Zi=function(R,M={}){let O=R.css.valueOf(),q=M.ignoreErrors,z,Q,ne,I,re,H,X,ee,oe,xe,ge=O.length,D=0,_e=[],fe=[];function je(){return D}function Ie(Ee){throw R.error("Unclosed "+Ee,D)}function Oe(){return fe.length===0&&D>=ge}function Re(Ee){if(fe.length)return fe.pop();if(D>=ge)return;let Je=Ee?Ee.ignoreUnclosed:!1;switch(z=O.charCodeAt(D),z){case n:case s:case d:case f:case a:{I=D;do I+=1,z=O.charCodeAt(I);while(z===s||z===n||z===d||z===f||z===a);H=["space",O.slice(D,I)],D=I-1;break}case h:case o:case l:case p:case x:case m:case c:{let Ye=String.fromCharCode(z);H=[Ye,Ye,D];break}case u:{if(xe=_e.length?_e.pop()[1]:"",oe=O.charCodeAt(D+1),xe==="url"&&oe!==t&&oe!==e&&oe!==s&&oe!==n&&oe!==d&&oe!==a&&oe!==f){I=D;do{if(X=!1,I=O.indexOf(")",I+1),I===-1)if(q||Je){I=D;break}else Ie("bracket");for(ee=I;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["brackets",O.slice(D,I+1),D,I],D=I}else I=O.indexOf(")",D+1),Q=O.slice(D,I+1),I===-1||v.test(Q)?H=["(","(",D]:(H=["brackets",Q,D,I],D=I);break}case t:case e:{re=z===t?"'":'"',I=D;do{if(X=!1,I=O.indexOf(re,I+1),I===-1)if(q||Je){I=D+1;break}else Ie("string");for(ee=I;O.charCodeAt(ee-1)===i;)ee-=1,X=!X}while(X);H=["string",O.slice(D,I+1),D,I],D=I;break}case _:{w.lastIndex=D+1,w.test(O),w.lastIndex===0?I=O.length-1:I=w.lastIndex-2,H=["at-word",O.slice(D,I+1),D,I],D=I;break}case i:{for(I=D,ne=!0;O.charCodeAt(I+1)===i;)I+=1,ne=!ne;if(z=O.charCodeAt(I+1),ne&&z!==r&&z!==s&&z!==n&&z!==d&&z!==f&&z!==a&&(I+=1,E.test(O.charAt(I)))){for(;E.test(O.charAt(I+1));)I+=1;O.charCodeAt(I+1)===s&&(I+=1)}H=["word",O.slice(D,I+1),D,I],D=I;break}default:{z===r&&O.charCodeAt(D+1)===b?(I=O.indexOf("*/",D+2)+1,I===0&&(q||Je?I=O.length:Ie("comment")),H=["comment",O.slice(D,I+1),D,I],D=I):(y.lastIndex=D+1,y.test(O),y.lastIndex===0?I=O.length-1:I=y.lastIndex-2,H=["word",O.slice(D,I+1),D,I],_e.push(H),D=I);break}}return D++,H}function wt(Ee){fe.push(Ee)}return{back:wt,endOfFile:Oe,nextToken:Re,position:je}},Zi}var Xi,Mr;function xl(){if(Mr)return Xi;Mr=1;let t=On(),e=bi(),i=vi(),r=qt(),n=$n(),s=wl();const a={empty:!0,space:!0};function d(h){for(let o=h.length-1;o>=0;o--){let u=h[o],c=u[3]||u[2];if(c)return c}}class f{constructor(o){this.input=o,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}atrule(o){let u=new t;u.name=o[1].slice(1),u.name===""&&this.unnamedAtrule(u,o),this.init(u,o[2]);let c,l,p,m=!1,b=!1,x=[],_=[];for(;!this.tokenizer.endOfFile();){if(o=this.tokenizer.nextToken(),c=o[0],c==="("||c==="["?_.push(c==="("?")":"]"):c==="{"&&_.length>0?_.push("}"):c===_[_.length-1]&&_.pop(),_.length===0)if(c===";"){u.source.end=this.getPosition(o[2]),u.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(x.length>0){for(p=x.length-1,l=x[p];l&&l[0]==="space";)l=x[--p];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(o);break}else x.push(o);else x.push(o);if(this.tokenizer.endOfFile()){m=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(u.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(u,"params",x),m&&(o=x[x.length-1],u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),b&&(u.nodes=[],this.current=u)}checkMissedSemicolon(o){let u=this.colon(o);if(u===!1)return;let c=0,l;for(let p=u-1;p>=0&&(l=o[p],!(l[0]!=="space"&&(c+=1,c===2)));p--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(o){let u=0,c,l,p;for(let[m,b]of o.entries()){if(l=b,p=l[0],p==="("&&(u+=1),p===")"&&(u-=1),u===0&&p===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return m}c=l}return!1}comment(o){let u=new e;this.init(u,o[2]),u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++;let c=o[1].slice(2,-2);if(/^\s*$/.test(c))u.text="",u.raws.left=c,u.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(o,u){let c=new i;this.init(c,o[0][2]);let l=o[o.length-1];for(l[0]===";"&&(this.semicolon=!0,o.pop()),c.source.end=this.getPosition(l[3]||l[2]||d(o)),c.source.end.offset++;o[0][0]!=="word";)o.length===1&&this.unknownWord(o),c.raws.before+=o.shift()[1];for(c.source.start=this.getPosition(o[0][2]),c.prop="";o.length;){let _=o[0][0];if(_===":"||_==="space"||_==="comment")break;c.prop+=o.shift()[1]}c.raws.between="";let p;for(;o.length;)if(p=o.shift(),p[0]===":"){c.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),c.raws.between+=p[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;o.length&&(b=o[0][0],!(b!=="space"&&b!=="comment"));)m.push(o.shift());this.precheckMissedSemicolon(o);for(let _=o.length-1;_>=0;_--){if(p=o[_],p[1].toLowerCase()==="!important"){c.important=!0;let w=this.stringFrom(o,_);w=this.spacesFromEnd(o)+w,w!==" !important"&&(c.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=o.slice(0),y="";for(let v=_;v>0;v--){let E=w[v][0];if(y.trim().startsWith("!")&&E!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,o=w)}if(p[0]!=="space"&&p[0]!=="comment")break}o.some(_=>_[0]!=="space"&&_[0]!=="comment")&&(c.raws.between+=m.map(_=>_[1]).join(""),m=[]),this.raw(c,"value",m.concat(o),u),c.value.includes(":")&&!u&&this.checkMissedSemicolon(o)}doubleColon(o){throw this.input.error("Double colon",{offset:o[2]},{offset:o[2]+o[1].length})}emptyRule(o){let u=new n;this.init(u,o[2]),u.selector="",u.raws.between="",this.current=u}end(o){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(o[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(o)}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(o){if(this.spaces+=o[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(o[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(o){let u=this.input.fromOffset(o);return{column:u.col,line:u.line,offset:o}}init(o,u){this.current.push(o),o.source={input:this.input,start:this.getPosition(u)},o.raws.before=this.spaces,this.spaces="",o.type!=="comment"&&(this.semicolon=!1)}other(o){let u=!1,c=null,l=!1,p=null,m=[],b=o[1].startsWith("--"),x=[],_=o;for(;_;){if(c=_[0],x.push(_),c==="("||c==="[")p||(p=_),m.push(c==="("?")":"]");else if(b&&l&&c==="{")p||(p=_),m.push("}");else if(m.length===0)if(c===";")if(l){this.decl(x,b);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),u=!0;break}else c===":"&&(l=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(p=null));_=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),m.length>0&&this.unclosedBracket(p),u&&l){if(!b)for(;x.length&&(_=x[x.length-1][0],!(_!=="space"&&_!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,b)}else this.unknownWord(x)}parse(){let o;for(;!this.tokenizer.endOfFile();)switch(o=this.tokenizer.nextToken(),o[0]){case"space":this.spaces+=o[1];break;case";":this.freeSemicolon(o);break;case"}":this.end(o);break;case"comment":this.comment(o);break;case"at-word":this.atrule(o);break;case"{":this.emptyRule(o);break;default:this.other(o);break}this.endFile()}precheckMissedSemicolon(){}raw(o,u,c,l){let p,m,b=c.length,x="",_=!0,w,y;for(let v=0;v<b;v+=1)p=c[v],m=p[0],m==="space"&&v===b-1&&!l?_=!1:m==="comment"?(y=c[v-1]?c[v-1][0]:"empty",w=c[v+1]?c[v+1][0]:"empty",!a[y]&&!a[w]?x.slice(-1)===","?_=!1:x+=p[1]:_=!1):x+=p[1];if(!_){let v=c.reduce((E,A)=>E+A[1],"");o.raws[u]={raw:v,value:x}}o[u]=x}rule(o){o.pop();let u=new n;this.init(u,o[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(o),this.raw(u,"selector",o),this.current=u}spacesAndCommentsFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],!(u!=="space"&&u!=="comment"));)c=o.pop()[1]+c;return c}spacesAndCommentsFromStart(o){let u,c="";for(;o.length&&(u=o[0][0],!(u!=="space"&&u!=="comment"));)c+=o.shift()[1];return c}spacesFromEnd(o){let u,c="";for(;o.length&&(u=o[o.length-1][0],u==="space");)c=o.pop()[1]+c;return c}stringFrom(o,u){let c="";for(let l=u;l<o.length;l++)c+=o[l][1];return o.splice(u,o.length-u),c}unclosedBlock(){let o=this.current.source.start;throw this.input.error("Unclosed block",o.line,o.column)}unclosedBracket(o){throw this.input.error("Unclosed bracket",{offset:o[2]},{offset:o[2]+1})}unexpectedClose(o){throw this.input.error("Unexpected }",{offset:o[2]},{offset:o[2]+1})}unknownWord(o){throw this.input.error("Unknown word "+o[0][1],{offset:o[0][2]},{offset:o[0][2]+o[0][1].length})}unnamedAtrule(o,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return Xi=f,Xi}var Ji,Tr;function In(){if(Tr)return Ji;Tr=1;let t=lt(),e=yi(),i=xl();function r(n,s){let a=new e(n,s),d=new i(a);try{d.parse()}catch(f){throw f}return d.root}return Ji=r,r.default=r,t.registerParse(r),Ji}var Yi,Lr;function ps(){if(Lr)return Yi;Lr=1;class t{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Yi=t,t.default=t,Yi}var Qi,Dr;function Rn(){if(Dr)return Qi;Dr=1;let t=ps();class e{get content(){return this.css}constructor(r,n,s){this.processor=r,this.messages=[],this.root=n,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(r,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let s=new t(r,n);return this.messages.push(s),s}warnings(){return this.messages.filter(r=>r.type==="warning")}}return Qi=e,e.default=e,Qi}var en,jr;function ms(){if(jr)return en;jr=1;let t=lt(),e=kn(),i=fs(),r=In(),n=Rn(),s=qt(),a=mi(),{isClean:d,my:f}=Cn();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},o={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},u={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function p(w){let y=!1,v=h[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[v,v+"-"+y,c,v+"Exit",v+"Exit-"+y]:y?[v,v+"-"+y,v+"Exit",v+"Exit-"+y]:w.append?[v,c,v+"Exit"]:[v,v+"Exit"]}function m(w){let y;return w.type==="document"?y=["Document",c,"DocumentExit"]:w.type==="root"?y=["Root",c,"RootExit"]:y=p(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function b(w){return w[d]=!1,w.nodes&&w.nodes.forEach(y=>b(y)),w}let x={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,v,E){this.stringified=!1,this.processed=!1;let A;if(typeof v=="object"&&v!==null&&(v.type==="root"||v.type==="document"))A=b(v);else if(v instanceof _||v instanceof n)A=b(v.root),v.map&&(typeof E.map>"u"&&(E.map={}),E.map.inline||(E.map.inline=!1),E.map.prev=v.map);else{let R=r;E.syntax&&(R=E.syntax.parse),E.parser&&(R=E.parser),R.parse&&(R=R.parse);try{A=R(v,E)}catch(M){this.processed=!0,this.error=M}A&&!A[f]&&t.rebuild(A)}this.result=new n(y,A,E),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(R=>typeof R=="object"&&R.prepare?{...R,...R.prepare(this.result)}:R)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,v){let E=this.result.lastPlugin;try{v&&v.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=E.postcssPlugin,y.setMessage()):E.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(v,E,A)=>{this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push([v,A])};for(let v of this.plugins)if(typeof v=="object")for(let E in v){if(!o[E]&&/^[A-Z]/.test(E))throw new Error(`Unknown event ${E} in ${v.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[E])if(typeof v[E]=="object")for(let A in v[E])A==="*"?y(v,E,v[E][A]):y(v,E+"-"+A.toLowerCase(),v[E][A]);else typeof v[E]=="function"&&y(v,E,v[E])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let v=this.plugins[y],E=this.runOnRoot(v);if(l(E))try{await E}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let v=[m(y)];for(;v.length>0;){let E=this.visitTick(v);if(l(E))try{await E}catch(A){let R=v[v.length-1].node;throw this.handleError(A,R)}}}if(this.listeners.OnceExit)for(let[v,E]of this.listeners.OnceExit){this.result.lastPlugin=v;try{if(y.type==="document"){let A=y.nodes.map(R=>E(R,this.helpers));await Promise.all(A)}else await E(y,this.helpers)}catch(A){throw this.handleError(A)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let v=this.result.root.nodes.map(E=>y.Once(E,this.helpers));return l(v[0])?Promise.all(v):v}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(v){throw this.handleError(v)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,v=a;y.syntax&&(v=y.syntax.stringify),y.stringifier&&(v=y.stringifier),v.stringify&&(v=v.stringify);let A=new i(v,this.result.root,this.result.opts).generate();return this.result.css=A[0],this.result.map=A[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let v=this.runOnRoot(y);if(l(v))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let v of y.nodes)this.visitSync(this.listeners.OnceExit,v);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,v){return this.async().then(y,v)}toString(){return this.css}visitSync(y,v){for(let[E,A]of y){this.result.lastPlugin=E;let R;try{R=A(v,this.helpers)}catch(M){throw this.handleError(M,v.proxyOf)}if(v.type!=="root"&&v.type!=="document"&&!v.parent)return!0;if(l(R))throw this.getAsyncError()}}visitTick(y){let v=y[y.length-1],{node:E,visitors:A}=v;if(E.type!=="root"&&E.type!=="document"&&!E.parent){y.pop();return}if(A.length>0&&v.visitorIndex<A.length){let[M,O]=A[v.visitorIndex];v.visitorIndex+=1,v.visitorIndex===A.length&&(v.visitors=[],v.visitorIndex=0),this.result.lastPlugin=M;try{return O(E.toProxy(),this.helpers)}catch(q){throw this.handleError(q,E)}}if(v.iterator!==0){let M=v.iterator,O;for(;O=E.nodes[E.indexes[M]];)if(E.indexes[M]+=1,!O[d]){O[d]=!0,y.push(m(O));return}v.iterator=0,delete E.indexes[M]}let R=v.events;for(;v.eventIndex<R.length;){let M=R[v.eventIndex];if(v.eventIndex+=1,M===c){E.nodes&&E.nodes.length&&(E[d]=!0,v.iterator=E.getIterator());return}else if(this.listeners[M]){v.visitors=this.listeners[M];return}}y.pop()}walkSync(y){y[d]=!0;let v=p(y);for(let E of v)if(E===c)y.nodes&&y.each(A=>{A[d]||this.walkSync(A)});else{let A=this.listeners[E];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=w=>{x=w},en=_,_.default=_,s.registerLazyResult(_),e.registerLazyResult(_),en}var tn,Br;function _l(){if(Br)return tn;Br=1;let t=fs(),e=In();const i=Rn();let r=mi();class n{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,d=e;try{a=d(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,d,f){d=d.toString(),this.stringified=!1,this._processor=a,this._css=d,this._opts=f,this._map=void 0;let h,o=r;this.result=new i(this._processor,h,this._opts),this.result.css=d;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let c=new t(o,h,this._opts,d);if(c.isMap()){let[l,p]=c.generate();l&&(this.result.css=l),p&&(this.result.map=p)}else c.clearAnnotation(),this.result.css=c.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,d){return this.async().then(a,d)}toString(){return this._css}warnings(){return[]}}return tn=n,n.default=n,tn}var nn,zr;function El(){if(zr)return nn;zr=1;let t=kn(),e=ms(),i=_l(),r=qt();class n{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let d=[];for(let f of a)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))d=d.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)d.push(f);else if(typeof f=="function")d.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return d}process(a,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,a,d):new e(this,a,d)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return nn=n,n.default=n,r.registerProcessor(n),t.registerProcessor(n),nn}var rn,Ur;function Sl(){if(Ur)return rn;Ur=1;var t={};let e=On(),i=bi(),r=lt(),n=An(),s=vi(),a=kn(),d=yl(),f=yi(),h=ms(),o=ds(),u=gi(),c=In(),l=El(),p=Rn(),m=qt(),b=$n(),x=mi(),_=ps();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return w.plugin=function(v,E){let A=!1;function R(...O){console&&console.warn&&!A&&(A=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
|
|
263
263
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(v+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
264
|
-
https://www.w3ctech.com/topic/2226`));let q=E(...O);return q.postcssPlugin=v,q.postcssVersion=new l().version,q}let M;return Object.defineProperty(I,"postcss",{get(){return M||(M=I()),M}}),I.process=function(O,q,z){return w([I(z)]).process(O,q)},I},w.stringify=x,w.parse=c,w.fromJSON=d,w.list=o,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new s(y),w.rule=y=>new b(y),w.root=y=>new m(y),w.document=y=>new a(y),w.CssSyntaxError=n,w.Declaration=s,w.Container=r,w.Processor=l,w.Document=a,w.Comment=i,w.Warning=_,w.AtRule=e,w.Result=p,w.Input=f,w.Rule=b,w.Root=m,w.Node=u,h.registerPostcss(w),rn=w,w.default=w,rn}var Al=Sl();const J=cs(Al);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var sn,qr;function Cl(){if(qr)return sn;qr=1;const t=(r={})=>{const n=r.prefix,s=/\s+$/.test(n)?n:`${n} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],d=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(f){const h=f.root,o=h.source.input.file;if(!(a.length&&o&&e(o,a))&&!(d.length&&o&&!e(o,d)))return{Rule(u,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(p=>r.exclude&&i(p,r.exclude)?p:r.transform?r.transform(n,p,s+p,h.source.input.file,u):[":root","body","html"].some(m=>p.startsWith(m))?r.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,n):s+p))}}}}};function e(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r.includes(s))}function i(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r===s)}return t.postcss=!0,sn=t,sn}var Ol=Cl();const kl=cs(Ol),$l="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}",Rl="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 Il(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var on,Hr;function Pl(){if(Hr)return on;Hr=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const $=g[S],U=typeof $;(U==="object"||U==="function")&&!Object.isFrozen($)&&t($)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(g,...S){const $=Object.create(null);for(const U in g)$[U]=g[U];return S.forEach(function(U){for(const te in U)$[te]=U[te]}),$}const n="</span>",s=g=>!!g.scope,a=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const $=g.split(".");return[`${S}${$.shift()}`,...$.map((U,te)=>`${U}${"_".repeat(te+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,$){this.buffer="",this.classPrefix=$.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!s(S))return;const $=a(S.scope,{prefix:this.classPrefix});this.span($)}closeNode(S){s(S)&&(this.buffer+=n)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const f=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const $=f({scope:S});this.add($),this.stack.push($)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,$){return typeof $=="string"?S.addText($):$.children&&(S.openNode($),$.children.forEach(U=>this._walk(S,U)),S.closeNode($)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every($=>typeof $=="string")?S.children=[S.children.join("")]:S.children.forEach($=>{h._collapse($)}))}}class o extends h{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,$){const U=S.root;$&&(U.scope=`language:${$}`),this.add(U)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(g){return g?typeof g=="string"?g:g.source:null}function c(g){return m("(?=",g,")")}function l(g){return m("(?:",g,")*")}function p(g){return m("(?:",g,")?")}function m(...g){return g.map(S=>u(S)).join("")}function b(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(b(g).capture?"":"?:")+g.map(S=>u(S)).join("|")+")"}function _(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,S){const $=g&&g.exec(S);return $&&$.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:S}){let $=0;return g.map(U=>{$+=1;const te=$;let ie=u(U),N="";for(;ie.length>0;){const P=y.exec(ie);if(!P){N+=ie;break}N+=ie.substring(0,P.index),ie=ie.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?N+="\\"+String(Number(P[1])+te):(N+=P[0],P[0]==="("&&$++)}return N}).map(U=>`(${U})`).join(S)}const E=/\b\B/,A="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=m(S,/.*\b/,g.binary,/\b.*/)),r({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":($,U)=>{$.index!==0&&U.ignoreMatch()}},g)},ne={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ne]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ne]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(g,S,$={}){const U=r({scope:"comment",begin:g,end:S,contains:[]},$);U.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 te=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 U.contains.push({begin:m(/[ ]+/,"(",te,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},ee=X("//","$"),oe=X("/\\*","\\*/"),xe=X("#","$"),ge={scope:"number",begin:M,relevance:0},D={scope:"number",begin:O,relevance:0},_e={scope:"number",begin:q,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ne,{begin:/\[/,end:/\]/,relevance:0,contains:[ne]}]},je={scope:"title",begin:A,relevance:0},Re={scope:"title",begin:I,relevance:0},Oe={begin:"\\.\\s*"+I,relevance:0};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:ne,BINARY_NUMBER_MODE:_e,BINARY_NUMBER_RE:q,COMMENT:X,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:D,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,$)=>{$.data._beginMatch=S[1]},"on:end":(S,$)=>{$.data._beginMatch!==S[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:xe,IDENT_RE:A,MATCH_NOTHING_RE:E,METHOD_GUARD:Oe,NUMBER_MODE:ge,NUMBER_RE:M,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:re,REGEXP_MODE:fe,RE_STARTERS_RE:z,SHEBANG:Q,TITLE_MODE:je,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function wt(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ee(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function Je(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=wt,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function Ye(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function xi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function _i(g,S){g.relevance===void 0&&(g.relevance=1)}const Ht=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=$.keywords,g.begin=m($.beforeMatch,c($.begin)),g.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},g.relevance=0,delete $.beforeMatch},Wt=["of","and","for","in","not","or","if","then","parent","list","value"],Ei="keyword";function Ft(g,S,$=Ei){const U=Object.create(null);return typeof g=="string"?te($,g.split(" ")):Array.isArray(g)?te($,g):Object.keys(g).forEach(function(ie){Object.assign(U,Ft(g[ie],S,ie))}),U;function te(ie,N){S&&(N=N.map(P=>P.toLowerCase())),N.forEach(function(P){const j=P.split("|");U[j[0]]=[ie,Be(j[0],j[1])]})}}function Be(g,S){return S?Number(S):ct(g)?0:1}function ct(g){return Wt.includes(g.toLowerCase())}const xt={},Pe=g=>{console.error(g)},ut=(g,...S)=>{console.log(`WARN: ${g}`,...S)},ze=(g,S)=>{xt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),xt[`${g}/${S}`]=!0)},Qe=new Error;function _t(g,S,{key:$}){let U=0;const te=g[$],ie={},N={};for(let P=1;P<=S.length;P++)N[P+U]=te[P],ie[P+U]=!0,U+=_(S[P-1]);g[$]=N,g[$]._emit=ie,g[$]._multi=!0}function Kt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Qe;if(typeof g.beginScope!="object"||g.beginScope===null)throw Pe("beginScope must be object"),Qe;_t(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function Ss(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Qe;if(typeof g.endScope!="object"||g.endScope===null)throw Pe("endScope must be object"),Qe;_t(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function As(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Cs(g){As(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),Kt(g),Ss(g)}function Os(g){function S(N,P){return new RegExp(u(N),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(P?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,P]),this.matchAt+=_(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(j=>j[1]);this.matcherRe=S(v(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(P);if(!j)return null;const le=j.findIndex((Et,Ai)=>Ai>0&&Et!==void 0),se=this.matchIndexes[le];return j.splice(0,le),Object.assign(j,se)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const j=new $;return this.rules.slice(P).forEach(([le,se])=>j.addRule(le,se)),j.compile(),this.multiRegexes[P]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,j){this.rules.push([P,j]),j.type==="begin"&&this.count++}exec(P){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let le=j.exec(P);if(this.resumingScanAtSamePosition()&&!(le&&le.index===this.lastIndex)){const se=this.getMatcher(0);se.lastIndex=this.lastIndex+1,le=se.exec(P)}return le&&(this.regexIndex+=le.position+1,this.regexIndex===this.count&&this.considerAll()),le}}function te(N){const P=new U;return N.contains.forEach(j=>P.addRule(j.begin,{rule:j,type:"begin"})),N.terminatorEnd&&P.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&P.addRule(N.illegal,{type:"illegal"}),P}function ie(N,P){const j=N;if(N.isCompiled)return j;[Ee,xi,Cs,Ht].forEach(se=>se(N,P)),g.compilerExtensions.forEach(se=>se(N,P)),N.__beforeBegin=null,[Je,Ye,_i].forEach(se=>se(N,P)),N.isCompiled=!0;let le=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),le=N.keywords.$pattern,delete N.keywords.$pattern),le=le||/\w+/,N.keywords&&(N.keywords=Ft(N.keywords,g.case_insensitive)),j.keywordPatternRe=S(le,!0),P&&(N.begin||(N.begin=/\B|\b/),j.beginRe=S(j.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(j.endRe=S(j.end)),j.terminatorEnd=u(j.end)||"",N.endsWithParent&&P.terminatorEnd&&(j.terminatorEnd+=(N.end?"|":"")+P.terminatorEnd)),N.illegal&&(j.illegalRe=S(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(se){return ks(se==="self"?N:se)})),N.contains.forEach(function(se){ie(se,j)}),N.starts&&ie(N.starts,P),j.matcher=te(j),j}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=r(g.classNameAliases||{}),ie(g)}function Nn(g){return g?g.endsWithParent||Nn(g.starts):!1}function ks(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return r(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Nn(g)?r(g,{starts:g.starts?r(g.starts):null}):Object.isFrozen(g)?r(g):g}var $s="11.11.1";class Rs extends Error{constructor(S,$){super(S),this.name="HTMLInjectionError",this.html=$}}const Si=i,Mn=r,Tn=Symbol("nomatch"),Is=7,Ln=function(g){const S=Object.create(null),$=Object.create(null),U=[];let te=!0;const ie="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:o};function j(C){return P.noHighlightRe.test(C)}function le(C){let L=C.className+" ";L+=C.parentNode?C.parentNode.className:"";const F=P.languageDetectRe.exec(L);if(F){const G=Fe(F[1]);return G||(ut(ie.replace("{}",F[1])),ut("Falling back to no-highlight mode for this block.",C)),G?F[1]:"no-highlight"}return L.split(/\s+/).find(G=>j(G)||Fe(G))}function se(C,L,F){let G="",ae="";typeof L=="object"?(G=C,F=L.ignoreIllegals,ae=L.language):(ze("10.7.0","highlight(lang, code, ...args) has been deprecated."),ze("10.7.0",`Please use highlight(code, options) instead.
|
|
265
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),ae=C,G=L),F===void 0&&(F=!0);const Ne={code:G,language:ae};Gt("before:highlight",Ne);const Ke=Ne.result?Ne.result:Et(Ne.language,Ne.code,F);return Ke.code=Ne.code,Gt("after:highlight",Ke),Ke}function Et(C,L,F,G){const ae=Object.create(null);function Ne(k,T){return k.keywords[T]}function Ke(){if(!B.keywords){ce.addText(Z);return}let k=0;B.keywordPatternRe.lastIndex=0;let T=B.keywordPatternRe.exec(Z),W="";for(;T;){W+=Z.substring(k,T.index);const V=Te.case_insensitive?T[0].toLowerCase():T[0],he=Ne(B,V);if(he){const[Ue,Gs]=he;if(ce.addText(W),W="",ae[V]=(ae[V]||0)+1,ae[V]<=
|
|
266
|
-
`,1;if($i>1e5&&$i>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Te=Fe(C);if(!Te)throw Pe(ie.replace("{}",C)),new Error('Unknown language: "'+C+'"');const Vs=Os(Te);let ki="",B=G||Vs;const Wn={},ce=new P.__emitter(P);Ks();let Z="",Jt=0,et=0,$i=0,Ri=!1;try{if(Te.__emitTokens)Te.__emitTokens(L,ce);else{for(B.matcher.considerAll();;){$i++,Ri?Ri=!1:B.matcher.considerAll(),B.matcher.lastIndex=et;const k=B.matcher.exec(L);if(!k)break;const T=L.substring(et,k.index),W=Hn(T,k);et=k.index+W}Hn(L.substring(et))}return ce.finalize(),ki=ce.toHTML(),{language:C,value:ki,relevance:Jt,illegal:!1,_emitter:ce,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:C,value:Si(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:et,context:L.slice(et-100,et+100),mode:k.mode,resultSoFar:ki},_emitter:ce};if(te)return{language:C,value:Si(L),illegal:!1,relevance:0,errorRaised:k,_emitter:ce,_top:B};throw k}}function Ai(C){const L={value:Si(C),illegal:!1,relevance:0,_top:N,_emitter:new P.__emitter(P)};return L._emitter.addText(C),L}function Ci(C,L){L=L||P.languages||Object.keys(S);const F=Ai(C),G=L.filter(Fe).filter(Bn).map(be=>Et(be,C,!1));G.unshift(F);const ae=G.sort((be,Me)=>{if(be.relevance!==Me.relevance)return Me.relevance-be.relevance;if(be.language&&Me.language){if(Fe(be.language).supersetOf===Me.language)return 1;if(Fe(Me.language).supersetOf===be.language)return-1}return 0}),[Ne,Ke]=ae,Zt=Ne;return Zt.secondBest=Ke,Zt}function Ps(C,L,F){const G=L&&$[L]||F;C.classList.add("hljs"),C.classList.add(`language-${G}`)}function Oi(C){let L=null;const F=le(C);if(j(F))return;if(Gt("before:highlightElement",{el:C,language:F}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(P.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(C)),P.throwUnescapedHTML))throw new Rs("One of your code blocks includes unescaped HTML.",C.innerHTML);L=C;const G=L.textContent,ae=F?se(G,{language:F,ignoreIllegals:!0}):Ci(G);C.innerHTML=ae.value,C.dataset.highlighted="yes",Ps(C,F,ae.language),C.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(C.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),Gt("after:highlightElement",{el:C,result:ae,text:G})}function Ns(C){P=Mn(P,C)}const Ms=()=>{Vt(),ze("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ts(){Vt(),ze("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Dn=!1;function Vt(){function C(){Vt()}if(document.readyState==="loading"){Dn||window.addEventListener("DOMContentLoaded",C,!1),Dn=!0;return}document.querySelectorAll(P.cssSelector).forEach(Oi)}function Ls(C,L){let F=null;try{F=L(g)}catch(G){if(Pe("Language definition for '{}' could not be registered.".replace("{}",C)),te)Pe(G);else throw G;F=N}F.name||(F.name=C),S[C]=F,F.rawDefinition=L.bind(null,g),F.aliases&&jn(F.aliases,{languageName:C})}function Ds(C){delete S[C];for(const L of Object.keys($))$[L]===C&&delete $[L]}function js(){return Object.keys(S)}function Fe(C){return C=(C||"").toLowerCase(),S[C]||S[$[C]]}function jn(C,{languageName:L}){typeof C=="string"&&(C=[C]),C.forEach(F=>{$[F.toLowerCase()]=L})}function Bn(C){const L=Fe(C);return L&&!L.disableAutodetect}function Bs(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=L=>{C["before:highlightBlock"](Object.assign({block:L.el},L))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=L=>{C["after:highlightBlock"](Object.assign({block:L.el},L))})}function zs(C){Bs(C),U.push(C)}function Us(C){const L=U.indexOf(C);L!==-1&&U.splice(L,1)}function Gt(C,L){const F=C;U.forEach(function(G){G[F]&&G[F](L)})}function qs(C){return ze("10.7.0","highlightBlock will be removed entirely in v12.0"),ze("10.7.0","Please use highlightElement now."),Oi(C)}Object.assign(g,{highlight:se,highlightAuto:Ci,highlightAll:Vt,highlightElement:Oi,highlightBlock:qs,configure:Ns,initHighlighting:Ms,initHighlightingOnLoad:Ts,registerLanguage:Ls,unregisterLanguage:Ds,listLanguages:js,getLanguage:Fe,registerAliases:jn,autoDetection:Bn,inherit:Mn,addPlugin:zs,removePlugin:Us}),g.debugMode=function(){te=!1},g.safeMode=function(){te=!0},g.versionString=$s,g.regex={concat:m,lookahead:c,either:x,optional:p,anyNumberOfTimes:l};for(const C in Ie)typeof Ie[C]=="object"&&t(Ie[C]);return Object.assign(g,Ie),g},ht=Ln({});return ht.newInstance=()=>Ln({}),on=ht,ht.HighlightJS=ht,ht.default=ht,on}var Nl=Pl();const wi=Il(Nl),ci="[A-Za-z$_][0-9A-Za-z$_]*",gs=["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"],bs=["true","false","null","undefined","NaN","Infinity"],vs=["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"],ys=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ws=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_s=[].concat(ws,vs,ys);function Ml(t){const e=t.regex,i=(H,{after:X})=>{const ee="</"+H[0].slice(1);return H.input.indexOf(ee,X)!==-1},r=ci,n={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,X)=>{const ee=H[0].length+H.index,oe=H.input[ee];if(oe==="<"||oe===","){X.ignoreMatch();return}oe===">"&&(i(H,{after:ee})||X.ignoreMatch());let xe;const ge=H.input.substring(ee);if(xe=ge.match(/^\s*=/)){X.ignoreMatch();return}if((xe=ge.match(/^\s+extends\s+/))&&xe.index===0){X.ignoreMatch();return}}},d={$pattern:ci,keyword:gs,literal:bs,built_in:_s,"variable.language":xs},f="[0-9](_?[0-9])*",h=`\\.(${f})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${o})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${o})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.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}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,p,m,b,{match:/\$\d+/},u];c.contains=_.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(_)});const w=[].concat(x,c.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},E={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"}}]},A={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:{_:[...vs,...ys]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},O={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(H){return e.concat("(?!",H.join("|"),")")}const z={match:e.concat(/\b/,q([...ws,"super","import"].map(H=>`${H}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,p,m,b,x,{match:/\$\d+/},u,A,{scope:"attr",match:r+e.lookahead(":"),relevance:0},re,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},z,O,E,ne,{match:/\$[(.]/}]}}function Tl(t){const e=t.regex,i=Ml(t),r=ci,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:ci,keyword:gs.concat(f),literal:bs,built_in:_s.concat(n),"variable.language":xs},o={className:"meta",begin:"@"+r},u=(m,b,x)=>{const _=m.contains.findIndex(w=>w.label===b);if(_===-1)throw new Error("can not find mode to replace");m.contains.splice(_,1,x)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(o);const c=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},c,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([o,s,a,l]),u(i,"shebang",t.SHEBANG()),u(i,"use_strict",d);const p=i.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Ll(t){const e=t.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,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.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:[n]},{begin:/'/,end:/'/,contains:[n]},{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:[s,f,d,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,f,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{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 Dl=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),jl=["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"],Bl=["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"],zl=[...jl,...Bl],Ul=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),ql=["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(),Hl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wl=["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 Fl(t){const e=t.regex,i=Dl(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",s=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.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:":("+ql.join("|")+")"},{begin:":(:)?("+Hl.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:Ul.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zl.join("|")+")\\b"}]}}const Es=document.createElement("style");Es.innerText=[$l,Rl].join(`
|
|
267
|
-
`);document.head.appendChild(Es);wi.registerLanguage("typescript",Tl);wi.registerLanguage("html",Ll);wi.registerLanguage("css",Fl);function Kl(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return t.forEach(n=>{e.appendChild(n),n.addEventListener("click",()=>{t.forEach(s=>s.removeAttribute("selected")),n.setAttribute("selected",""),r.innerHTML="",r.appendChild(n.content),r.className=n.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),t[0].setAttribute("selected",""),r.appendChild(t[0].content),i}function Ct(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function
|
|
268
|
-
`).trim();return t&&t!="raw"&&(i=wi.highlight(i,{language:t}).value),
|
|
264
|
+
https://www.w3ctech.com/topic/2226`));let q=E(...O);return q.postcssPlugin=v,q.postcssVersion=new l().version,q}let M;return Object.defineProperty(R,"postcss",{get(){return M||(M=R()),M}}),R.process=function(O,q,z){return w([R(z)]).process(O,q)},R},w.stringify=x,w.parse=c,w.fromJSON=d,w.list=o,w.comment=y=>new i(y),w.atRule=y=>new e(y),w.decl=y=>new s(y),w.rule=y=>new b(y),w.root=y=>new m(y),w.document=y=>new a(y),w.CssSyntaxError=n,w.Declaration=s,w.Container=r,w.Processor=l,w.Document=a,w.Comment=i,w.Warning=_,w.AtRule=e,w.Result=p,w.Input=f,w.Rule=b,w.Root=m,w.Node=u,h.registerPostcss(w),rn=w,w.default=w,rn}var Al=Sl();const J=cs(Al);J.stringify;J.fromJSON;J.plugin;J.parse;J.list;J.document;J.comment;J.atRule;J.rule;J.decl;J.root;J.CssSyntaxError;J.Declaration;J.Container;J.Processor;J.Document;J.Comment;J.Warning;J.AtRule;J.Result;J.Input;J.Rule;J.Root;J.Node;var sn,qr;function Cl(){if(qr)return sn;qr=1;const t=(r={})=>{const n=r.prefix,s=/\s+$/.test(n)?n:`${n} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],d=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(f){const h=f.root,o=h.source.input.file;if(!(a.length&&o&&e(o,a))&&!(d.length&&o&&!e(o,d)))return{Rule(u,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(p=>r.exclude&&i(p,r.exclude)?p:r.transform?r.transform(n,p,s+p,h.source.input.file,u):[":root","body","html"].some(m=>p.startsWith(m))?r.skipGlobalSelectors?p:p.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,n):s+p))}}}}};function e(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r.includes(s))}function i(r,n){return n.some(s=>s instanceof RegExp?s.test(r):r===s)}return t.postcss=!0,sn=t,sn}var Ol=Cl();const kl=cs(Ol),$l="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}",Il="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 Rl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var on,Hr;function Pl(){if(Hr)return on;Hr=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const $=g[S],U=typeof $;(U==="object"||U==="function")&&!Object.isFrozen($)&&t($)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(g,...S){const $=Object.create(null);for(const U in g)$[U]=g[U];return S.forEach(function(U){for(const te in U)$[te]=U[te]}),$}const n="</span>",s=g=>!!g.scope,a=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const $=g.split(".");return[`${S}${$.shift()}`,...$.map((U,te)=>`${U}${"_".repeat(te+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,$){this.buffer="",this.classPrefix=$.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!s(S))return;const $=a(S.scope,{prefix:this.classPrefix});this.span($)}closeNode(S){s(S)&&(this.buffer+=n)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const f=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const $=f({scope:S});this.add($),this.stack.push($)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,$){return typeof $=="string"?S.addText($):$.children&&(S.openNode($),$.children.forEach(U=>this._walk(S,U)),S.closeNode($)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every($=>typeof $=="string")?S.children=[S.children.join("")]:S.children.forEach($=>{h._collapse($)}))}}class o extends h{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,$){const U=S.root;$&&(U.scope=`language:${$}`),this.add(U)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(g){return g?typeof g=="string"?g:g.source:null}function c(g){return m("(?=",g,")")}function l(g){return m("(?:",g,")*")}function p(g){return m("(?:",g,")?")}function m(...g){return g.map(S=>u(S)).join("")}function b(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(b(g).capture?"":"?:")+g.map(S=>u(S)).join("|")+")"}function _(g){return new RegExp(g.toString()+"|").exec("").length-1}function w(g,S){const $=g&&g.exec(S);return $&&$.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function v(g,{joinWith:S}){let $=0;return g.map(U=>{$+=1;const te=$;let ie=u(U),N="";for(;ie.length>0;){const P=y.exec(ie);if(!P){N+=ie;break}N+=ie.substring(0,P.index),ie=ie.substring(P.index+P[0].length),P[0][0]==="\\"&&P[1]?N+="\\"+String(Number(P[1])+te):(N+=P[0],P[0]==="("&&$++)}return N}).map(U=>`(${U})`).join(S)}const E=/\b\B/,A="[a-zA-Z]\\w*",R="[a-zA-Z_]\\w*",M="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",q="\\b(0b[01]+)",z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=m(S,/.*\b/,g.binary,/\b.*/)),r({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":($,U)=>{$.index!==0&&U.ignoreMatch()}},g)},ne={begin:"\\\\[\\s\\S]",relevance:0},I={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ne]},re={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ne]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(g,S,$={}){const U=r({scope:"comment",begin:g,end:S,contains:[]},$);U.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 te=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 U.contains.push({begin:m(/[ ]+/,"(",te,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},ee=X("//","$"),oe=X("/\\*","\\*/"),xe=X("#","$"),ge={scope:"number",begin:M,relevance:0},D={scope:"number",begin:O,relevance:0},_e={scope:"number",begin:q,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ne,{begin:/\[/,end:/\]/,relevance:0,contains:[ne]}]},je={scope:"title",begin:A,relevance:0},Ie={scope:"title",begin:R,relevance:0},Oe={begin:"\\.\\s*"+R,relevance:0};var Re=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:ne,BINARY_NUMBER_MODE:_e,BINARY_NUMBER_RE:q,COMMENT:X,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:ee,C_NUMBER_MODE:D,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,$)=>{$.data._beginMatch=S[1]},"on:end":(S,$)=>{$.data._beginMatch!==S[1]&&$.ignoreMatch()}})},HASH_COMMENT_MODE:xe,IDENT_RE:A,MATCH_NOTHING_RE:E,METHOD_GUARD:Oe,NUMBER_MODE:ge,NUMBER_RE:M,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:re,REGEXP_MODE:fe,RE_STARTERS_RE:z,SHEBANG:Q,TITLE_MODE:je,UNDERSCORE_IDENT_RE:R,UNDERSCORE_TITLE_MODE:Ie});function wt(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ee(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function Je(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=wt,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function Ye(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function xi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function _i(g,S){g.relevance===void 0&&(g.relevance=1)}const Ht=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const $=Object.assign({},g);Object.keys(g).forEach(U=>{delete g[U]}),g.keywords=$.keywords,g.begin=m($.beforeMatch,c($.begin)),g.starts={relevance:0,contains:[Object.assign($,{endsParent:!0})]},g.relevance=0,delete $.beforeMatch},Wt=["of","and","for","in","not","or","if","then","parent","list","value"],Ei="keyword";function Ft(g,S,$=Ei){const U=Object.create(null);return typeof g=="string"?te($,g.split(" ")):Array.isArray(g)?te($,g):Object.keys(g).forEach(function(ie){Object.assign(U,Ft(g[ie],S,ie))}),U;function te(ie,N){S&&(N=N.map(P=>P.toLowerCase())),N.forEach(function(P){const j=P.split("|");U[j[0]]=[ie,Be(j[0],j[1])]})}}function Be(g,S){return S?Number(S):ct(g)?0:1}function ct(g){return Wt.includes(g.toLowerCase())}const xt={},Pe=g=>{console.error(g)},ut=(g,...S)=>{console.log(`WARN: ${g}`,...S)},ze=(g,S)=>{xt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),xt[`${g}/${S}`]=!0)},Qe=new Error;function _t(g,S,{key:$}){let U=0;const te=g[$],ie={},N={};for(let P=1;P<=S.length;P++)N[P+U]=te[P],ie[P+U]=!0,U+=_(S[P-1]);g[$]=N,g[$]._emit=ie,g[$]._multi=!0}function Kt(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Pe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Qe;if(typeof g.beginScope!="object"||g.beginScope===null)throw Pe("beginScope must be object"),Qe;_t(g,g.begin,{key:"beginScope"}),g.begin=v(g.begin,{joinWith:""})}}function Ss(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Pe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Qe;if(typeof g.endScope!="object"||g.endScope===null)throw Pe("endScope must be object"),Qe;_t(g,g.end,{key:"endScope"}),g.end=v(g.end,{joinWith:""})}}function As(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Cs(g){As(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),Kt(g),Ss(g)}function Os(g){function S(N,P){return new RegExp(u(N),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(P?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(P,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,P]),this.matchAt+=_(P)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const P=this.regexes.map(j=>j[1]);this.matcherRe=S(v(P,{joinWith:"|"}),!0),this.lastIndex=0}exec(P){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(P);if(!j)return null;const le=j.findIndex((Et,Ai)=>Ai>0&&Et!==void 0),se=this.matchIndexes[le];return j.splice(0,le),Object.assign(j,se)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(P){if(this.multiRegexes[P])return this.multiRegexes[P];const j=new $;return this.rules.slice(P).forEach(([le,se])=>j.addRule(le,se)),j.compile(),this.multiRegexes[P]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(P,j){this.rules.push([P,j]),j.type==="begin"&&this.count++}exec(P){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let le=j.exec(P);if(this.resumingScanAtSamePosition()&&!(le&&le.index===this.lastIndex)){const se=this.getMatcher(0);se.lastIndex=this.lastIndex+1,le=se.exec(P)}return le&&(this.regexIndex+=le.position+1,this.regexIndex===this.count&&this.considerAll()),le}}function te(N){const P=new U;return N.contains.forEach(j=>P.addRule(j.begin,{rule:j,type:"begin"})),N.terminatorEnd&&P.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&P.addRule(N.illegal,{type:"illegal"}),P}function ie(N,P){const j=N;if(N.isCompiled)return j;[Ee,xi,Cs,Ht].forEach(se=>se(N,P)),g.compilerExtensions.forEach(se=>se(N,P)),N.__beforeBegin=null,[Je,Ye,_i].forEach(se=>se(N,P)),N.isCompiled=!0;let le=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),le=N.keywords.$pattern,delete N.keywords.$pattern),le=le||/\w+/,N.keywords&&(N.keywords=Ft(N.keywords,g.case_insensitive)),j.keywordPatternRe=S(le,!0),P&&(N.begin||(N.begin=/\B|\b/),j.beginRe=S(j.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(j.endRe=S(j.end)),j.terminatorEnd=u(j.end)||"",N.endsWithParent&&P.terminatorEnd&&(j.terminatorEnd+=(N.end?"|":"")+P.terminatorEnd)),N.illegal&&(j.illegalRe=S(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(se){return ks(se==="self"?N:se)})),N.contains.forEach(function(se){ie(se,j)}),N.starts&&ie(N.starts,P),j.matcher=te(j),j}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=r(g.classNameAliases||{}),ie(g)}function Nn(g){return g?g.endsWithParent||Nn(g.starts):!1}function ks(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return r(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Nn(g)?r(g,{starts:g.starts?r(g.starts):null}):Object.isFrozen(g)?r(g):g}var $s="11.11.1";class Is extends Error{constructor(S,$){super(S),this.name="HTMLInjectionError",this.html=$}}const Si=i,Mn=r,Tn=Symbol("nomatch"),Rs=7,Ln=function(g){const S=Object.create(null),$=Object.create(null),U=[];let te=!0;const ie="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let P={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:o};function j(C){return P.noHighlightRe.test(C)}function le(C){let L=C.className+" ";L+=C.parentNode?C.parentNode.className:"";const F=P.languageDetectRe.exec(L);if(F){const G=Fe(F[1]);return G||(ut(ie.replace("{}",F[1])),ut("Falling back to no-highlight mode for this block.",C)),G?F[1]:"no-highlight"}return L.split(/\s+/).find(G=>j(G)||Fe(G))}function se(C,L,F){let G="",ae="";typeof L=="object"?(G=C,F=L.ignoreIllegals,ae=L.language):(ze("10.7.0","highlight(lang, code, ...args) has been deprecated."),ze("10.7.0",`Please use highlight(code, options) instead.
|
|
265
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ae=C,G=L),F===void 0&&(F=!0);const Ne={code:G,language:ae};Gt("before:highlight",Ne);const Ke=Ne.result?Ne.result:Et(Ne.language,Ne.code,F);return Ke.code=Ne.code,Gt("after:highlight",Ke),Ke}function Et(C,L,F,G){const ae=Object.create(null);function Ne(k,T){return k.keywords[T]}function Ke(){if(!B.keywords){ce.addText(Z);return}let k=0;B.keywordPatternRe.lastIndex=0;let T=B.keywordPatternRe.exec(Z),W="";for(;T;){W+=Z.substring(k,T.index);const V=Te.case_insensitive?T[0].toLowerCase():T[0],he=Ne(B,V);if(he){const[Ue,Gs]=he;if(ce.addText(W),W="",ae[V]=(ae[V]||0)+1,ae[V]<=Rs&&(Jt+=Gs),Ue.startsWith("_"))W+=T[0];else{const Zs=Te.classNameAliases[Ue]||Ue;Me(T[0],Zs)}}else W+=T[0];k=B.keywordPatternRe.lastIndex,T=B.keywordPatternRe.exec(Z)}W+=Z.substring(k),ce.addText(W)}function Zt(){if(Z==="")return;let k=null;if(typeof B.subLanguage=="string"){if(!S[B.subLanguage]){ce.addText(Z);return}k=Et(B.subLanguage,Z,!0,Wn[B.subLanguage]),Wn[B.subLanguage]=k._top}else k=Ci(Z,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(Jt+=k.relevance),ce.__addSublanguage(k._emitter,k.language)}function be(){B.subLanguage!=null?Zt():Ke(),Z=""}function Me(k,T){k!==""&&(ce.startScope(T),ce.addText(k),ce.endScope())}function zn(k,T){let W=1;const V=T.length-1;for(;W<=V;){if(!k._emit[W]){W++;continue}const he=Te.classNameAliases[k[W]]||k[W],Ue=T[W];he?Me(Ue,he):(Z=Ue,Ke(),Z=""),W++}}function Un(k,T){return k.scope&&typeof k.scope=="string"&&ce.openNode(Te.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(Me(Z,Te.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),Z=""):k.beginScope._multi&&(zn(k.beginScope,T),Z="")),B=Object.create(k,{parent:{value:B}}),B}function qn(k,T,W){let V=w(k.endRe,W);if(V){if(k["on:end"]){const he=new e(k);k["on:end"](T,he),he.isMatchIgnored&&(V=!1)}if(V){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return qn(k.parent,T,W)}function Hs(k){return B.matcher.regexIndex===0?(Z+=k[0],1):(Ii=!0,0)}function Ws(k){const T=k[0],W=k.rule,V=new e(W),he=[W.__beforeBegin,W["on:begin"]];for(const Ue of he)if(Ue&&(Ue(k,V),V.isMatchIgnored))return Hs(T);return W.skip?Z+=T:(W.excludeBegin&&(Z+=T),be(),!W.returnBegin&&!W.excludeBegin&&(Z=T)),Un(W,k),W.returnBegin?0:T.length}function Fs(k){const T=k[0],W=L.substring(k.index),V=qn(B,k,W);if(!V)return Tn;const he=B;B.endScope&&B.endScope._wrap?(be(),Me(T,B.endScope._wrap)):B.endScope&&B.endScope._multi?(be(),zn(B.endScope,k)):he.skip?Z+=T:(he.returnEnd||he.excludeEnd||(Z+=T),be(),he.excludeEnd&&(Z=T));do B.scope&&ce.closeNode(),!B.skip&&!B.subLanguage&&(Jt+=B.relevance),B=B.parent;while(B!==V.parent);return V.starts&&Un(V.starts,k),he.returnEnd?0:T.length}function Ks(){const k=[];for(let T=B;T!==Te;T=T.parent)T.scope&&k.unshift(T.scope);k.forEach(T=>ce.openNode(T))}let Xt={};function Hn(k,T){const W=T&&T[0];if(Z+=k,W==null)return be(),0;if(Xt.type==="begin"&&T.type==="end"&&Xt.index===T.index&&W===""){if(Z+=L.slice(T.index,T.index+1),!te){const V=new Error(`0 width match regex (${C})`);throw V.languageName=C,V.badRule=Xt.rule,V}return 1}if(Xt=T,T.type==="begin")return Ws(T);if(T.type==="illegal"&&!F){const V=new Error('Illegal lexeme "'+W+'" for mode "'+(B.scope||"<unnamed>")+'"');throw V.mode=B,V}else if(T.type==="end"){const V=Fs(T);if(V!==Tn)return V}if(T.type==="illegal"&&W==="")return Z+=`
|
|
266
|
+
`,1;if($i>1e5&&$i>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const Te=Fe(C);if(!Te)throw Pe(ie.replace("{}",C)),new Error('Unknown language: "'+C+'"');const Vs=Os(Te);let ki="",B=G||Vs;const Wn={},ce=new P.__emitter(P);Ks();let Z="",Jt=0,et=0,$i=0,Ii=!1;try{if(Te.__emitTokens)Te.__emitTokens(L,ce);else{for(B.matcher.considerAll();;){$i++,Ii?Ii=!1:B.matcher.considerAll(),B.matcher.lastIndex=et;const k=B.matcher.exec(L);if(!k)break;const T=L.substring(et,k.index),W=Hn(T,k);et=k.index+W}Hn(L.substring(et))}return ce.finalize(),ki=ce.toHTML(),{language:C,value:ki,relevance:Jt,illegal:!1,_emitter:ce,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:C,value:Si(L),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:et,context:L.slice(et-100,et+100),mode:k.mode,resultSoFar:ki},_emitter:ce};if(te)return{language:C,value:Si(L),illegal:!1,relevance:0,errorRaised:k,_emitter:ce,_top:B};throw k}}function Ai(C){const L={value:Si(C),illegal:!1,relevance:0,_top:N,_emitter:new P.__emitter(P)};return L._emitter.addText(C),L}function Ci(C,L){L=L||P.languages||Object.keys(S);const F=Ai(C),G=L.filter(Fe).filter(Bn).map(be=>Et(be,C,!1));G.unshift(F);const ae=G.sort((be,Me)=>{if(be.relevance!==Me.relevance)return Me.relevance-be.relevance;if(be.language&&Me.language){if(Fe(be.language).supersetOf===Me.language)return 1;if(Fe(Me.language).supersetOf===be.language)return-1}return 0}),[Ne,Ke]=ae,Zt=Ne;return Zt.secondBest=Ke,Zt}function Ps(C,L,F){const G=L&&$[L]||F;C.classList.add("hljs"),C.classList.add(`language-${G}`)}function Oi(C){let L=null;const F=le(C);if(j(F))return;if(Gt("before:highlightElement",{el:C,language:F}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(P.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(C)),P.throwUnescapedHTML))throw new Is("One of your code blocks includes unescaped HTML.",C.innerHTML);L=C;const G=L.textContent,ae=F?se(G,{language:F,ignoreIllegals:!0}):Ci(G);C.innerHTML=ae.value,C.dataset.highlighted="yes",Ps(C,F,ae.language),C.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(C.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),Gt("after:highlightElement",{el:C,result:ae,text:G})}function Ns(C){P=Mn(P,C)}const Ms=()=>{Vt(),ze("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ts(){Vt(),ze("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Dn=!1;function Vt(){function C(){Vt()}if(document.readyState==="loading"){Dn||window.addEventListener("DOMContentLoaded",C,!1),Dn=!0;return}document.querySelectorAll(P.cssSelector).forEach(Oi)}function Ls(C,L){let F=null;try{F=L(g)}catch(G){if(Pe("Language definition for '{}' could not be registered.".replace("{}",C)),te)Pe(G);else throw G;F=N}F.name||(F.name=C),S[C]=F,F.rawDefinition=L.bind(null,g),F.aliases&&jn(F.aliases,{languageName:C})}function Ds(C){delete S[C];for(const L of Object.keys($))$[L]===C&&delete $[L]}function js(){return Object.keys(S)}function Fe(C){return C=(C||"").toLowerCase(),S[C]||S[$[C]]}function jn(C,{languageName:L}){typeof C=="string"&&(C=[C]),C.forEach(F=>{$[F.toLowerCase()]=L})}function Bn(C){const L=Fe(C);return L&&!L.disableAutodetect}function Bs(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=L=>{C["before:highlightBlock"](Object.assign({block:L.el},L))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=L=>{C["after:highlightBlock"](Object.assign({block:L.el},L))})}function zs(C){Bs(C),U.push(C)}function Us(C){const L=U.indexOf(C);L!==-1&&U.splice(L,1)}function Gt(C,L){const F=C;U.forEach(function(G){G[F]&&G[F](L)})}function qs(C){return ze("10.7.0","highlightBlock will be removed entirely in v12.0"),ze("10.7.0","Please use highlightElement now."),Oi(C)}Object.assign(g,{highlight:se,highlightAuto:Ci,highlightAll:Vt,highlightElement:Oi,highlightBlock:qs,configure:Ns,initHighlighting:Ms,initHighlightingOnLoad:Ts,registerLanguage:Ls,unregisterLanguage:Ds,listLanguages:js,getLanguage:Fe,registerAliases:jn,autoDetection:Bn,inherit:Mn,addPlugin:zs,removePlugin:Us}),g.debugMode=function(){te=!1},g.safeMode=function(){te=!0},g.versionString=$s,g.regex={concat:m,lookahead:c,either:x,optional:p,anyNumberOfTimes:l};for(const C in Re)typeof Re[C]=="object"&&t(Re[C]);return Object.assign(g,Re),g},ht=Ln({});return ht.newInstance=()=>Ln({}),on=ht,ht.HighlightJS=ht,ht.default=ht,on}var Nl=Pl();const wi=Rl(Nl),ci="[A-Za-z$_][0-9A-Za-z$_]*",gs=["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"],bs=["true","false","null","undefined","NaN","Infinity"],vs=["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"],ys=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ws=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_s=[].concat(ws,vs,ys);function Ml(t){const e=t.regex,i=(H,{after:X})=>{const ee="</"+H[0].slice(1);return H.input.indexOf(ee,X)!==-1},r=ci,n={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,X)=>{const ee=H[0].length+H.index,oe=H.input[ee];if(oe==="<"||oe===","){X.ignoreMatch();return}oe===">"&&(i(H,{after:ee})||X.ignoreMatch());let xe;const ge=H.input.substring(ee);if(xe=ge.match(/^\s*=/)){X.ignoreMatch();return}if((xe=ge.match(/^\s+extends\s+/))&&xe.index===0){X.ignoreMatch();return}}},d={$pattern:ci,keyword:gs,literal:bs,built_in:_s,"variable.language":xs},f="[0-9](_?[0-9])*",h=`\\.(${f})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${o})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${o})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.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}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,p,m,b,{match:/\$\d+/},u];c.contains=_.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(_)});const w=[].concat(x,c.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(w)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},E={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"}}]},A={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:{_:[...vs,...ys]}},R={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},O={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function q(H){return e.concat("(?!",H.join("|"),")")}const z={match:e.concat(/\b/,q([...ws,"super","import"].map(H=>`${H}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",re={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),R,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,p,m,b,x,{match:/\$\d+/},u,A,{scope:"attr",match:r+e.lookahead(":"),relevance:0},re,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},z,O,E,ne,{match:/\$[(.]/}]}}function Tl(t){const e=t.regex,i=Ml(t),r=ci,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:ci,keyword:gs.concat(f),literal:bs,built_in:_s.concat(n),"variable.language":xs},o={className:"meta",begin:"@"+r},u=(m,b,x)=>{const _=m.contains.findIndex(w=>w.label===b);if(_===-1)throw new Error("can not find mode to replace");m.contains.splice(_,1,x)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(o);const c=i.contains.find(m=>m.scope==="attr"),l=Object.assign({},c,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([o,s,a,l]),u(i,"shebang",t.SHEBANG()),u(i,"use_strict",d);const p=i.contains.find(m=>m.label==="func.def");return p.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Ll(t){const e=t.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,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.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:[n]},{begin:/'/,end:/'/,contains:[n]},{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:[s,f,d,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,f,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{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 Dl=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),jl=["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"],Bl=["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"],zl=[...jl,...Bl],Ul=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),ql=["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(),Hl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Wl=["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 Fl(t){const e=t.regex,i=Dl(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n="and or not only",s=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.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:":("+ql.join("|")+")"},{begin:":(:)?("+Hl.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Wl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:Ul.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zl.join("|")+")\\b"}]}}const Es=document.createElement("style");Es.innerText=[$l,Il].join(`
|
|
267
|
+
`);document.head.appendChild(Es);wi.registerLanguage("typescript",Tl);wi.registerLanguage("html",Ll);wi.registerLanguage("css",Fl);function Kl(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return t.forEach(n=>{e.appendChild(n),n.addEventListener("click",()=>{t.forEach(s=>s.removeAttribute("selected")),n.setAttribute("selected",""),r.innerHTML="",r.appendChild(n.content),r.className=n.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),t[0].setAttribute("selected",""),r.appendChild(t[0].content),i}function Ct(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Rt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function Vl(t,e,i){const r=e.mainContent,n=Rt("div",r);n.id=`example-preview-${i}`;const s=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,d=Kl(Ct("Preview",n),Ct("HTML",ii("html",r)),...a?[Ct(s??"CSS",ii("css",a))]:[],...e.initializer&&e.initializer.content?[Ct(e.initializer.label??"TS",ii("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Ct(h.label,ii(h.language,h.content))));e.description&&t.appendChild(Rt("div",e.description));const f=Rt("div",[d]);f.classList.add("example"),t.appendChild(f),a&&Gl(`#${n.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(n)}function ii(t,e){let i=e.split(/\r?\n/).map(r=>{const n=r.indexOf("///");if(n>-1){const s=r.substring(n+3).trimStart();return s?r.replace(/^(\s*)([^\s].*)$/,`$1${s}`):void 0}return r}).filter(r=>typeof r<"u").join(`
|
|
268
|
+
`).trim();return t&&t!="raw"&&(i=wi.highlight(i,{language:t}).value),Rt("pre",[Rt("code",i)])}function Gl(t,e){const i=document.createElement("style");i.innerHTML=J().use(kl({prefix:t})).process(e).css,document.head.appendChild(i)}async function Zl(t,e=document.body){const i=Jl(e);let r=0;Object.keys(t).sort().forEach(async n=>{const s=document.createElement("div");s.className="example-container",i.appendChild(s);const a=t[n].default;Vl(s,a,r++)})}function Xl(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function Jl(t){return t.children?Xl(t):t}const Yl=`<h1 id="@cas-smartdesign/tab-bar">@cas-smartdesign/tab-bar</h1>
|
|
269
269
|
<p>A TabBar element with SmartDesign look & feel</p>
|
|
270
270
|
<p>The sd-tab-bar element should contain only sd-tab elements as distributed children via a slot element because the internal logic is based on that type.</p>
|
|
271
271
|
<h2 id="attributes">Attributes</h2>
|