@cas-smartdesign/swatch-picker 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/2_create-from-source.js +1 -1
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +33 -36
- package/dist/swatch-picker-with-externals.js +1 -1
- package/dist/swatch-picker-with-externals.js.map +3 -3
- package/dist/swatch-picker.mjs.map +1 -1
- package/npm-third-party-licenses.json +52 -47
- package/package.json +5 -5
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const
|
|
1
|
+
(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))d(r);new MutationObserver(r=>{for(const f of r)if(f.type==="childList")for(const s of f.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&d(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const f={};return r.integrity&&(f.integrity=r.integrity),r.referrerPolicy&&(f.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?f.credentials="include":r.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function d(r){if(r.ep)return;r.ep=!0;const f=m(r);fetch(r.href,f)}})();const jn=`<!-- Load swatch picker with all dependencies directly -->
|
|
2
2
|
<script src="./swatch-picker-with-externals.js"><\/script>
|
|
3
3
|
<h4>Default configuration</h4>
|
|
4
4
|
<sd-swatch-picker color="#212121"></sd-swatch-picker>
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
colorsize="16"
|
|
10
10
|
columncount="48"
|
|
11
11
|
color="#212121"></sd-swatch-picker>
|
|
12
|
-
`,
|
|
13
|
-
`,
|
|
14
|
-
`,
|
|
15
|
-
`,
|
|
12
|
+
`,zn=`<h3 id="create-swatch-picker-element-declaratively.">Create swatch picker element declaratively.</h3>
|
|
13
|
+
`,Dn={mainContent:jn,description:zn},Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"})),Un="modulepreload",$n=function(l,c){return new URL(l,c).href},ar={},Fn=function(c,m,d){let r=Promise.resolve();if(m&&m.length>0){let u=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))};const s=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),v=g?.nonce||g?.getAttribute("nonce");r=u(m.map(e=>{if(e=$n(e,d),e in ar)return;ar[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!d)for(let h=s.length-1;h>=0;h--){const p=s[h];if(p.href===e&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${t}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Un,i||(a.as="script"),a.crossOrigin="",a.href=e,v&&a.setAttribute("nonce",v),document.head.appendChild(a),i)return new Promise((h,p)=>{a.addEventListener("load",h),a.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${e}`)))})}))}function f(s){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=s,window.dispatchEvent(g),!g.defaultPrevented)throw s}return r.then(s=>{for(const g of s||[])g.status==="rejected"&&f(g.reason);return c().catch(f)})},qn=`<div id="swatch-picker-from-source-container"></div>
|
|
14
|
+
`,Hn=`<h3 id="create-and-access-a-swatch-picker-with-typescript-code.">Create and access a swatch picker with typescript code.</h3>
|
|
15
|
+
`,Wn=`import "@cas-smartdesign/swatch-picker";
|
|
16
16
|
import { SwatchPicker } from "@cas-smartdesign/swatch-picker";
|
|
17
17
|
|
|
18
18
|
const createExample = (
|
|
@@ -53,7 +53,7 @@ createExample(
|
|
|
53
53
|
);
|
|
54
54
|
createExample("Default color palette", 20);
|
|
55
55
|
createExample("Disabled picker", 20, "#2b63ba").disabled = true;
|
|
56
|
-
`,
|
|
56
|
+
`,Gn={mainContent:qn,description:Hn,initializer:{content:Wn,type:"typescript",initialize:()=>Fn(()=>import("./2_create-from-source.js"),[],import.meta.url)}},Zn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Br=class We extends HTMLElement{memoizedTemplate(){const c=this.is();if(We.TEMPLATE_CACHE[c])return We.TEMPLATE_CACHE[c];const m=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,this.is()),We.TEMPLATE_CACHE[c]=m,m}connectedCallback(){const c=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(c.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(c){this.shadowRoot?c():this.addEventListener("ready",()=>c())}};Br.TEMPLATE_CACHE={};let Vn=Br;const Jn=`<style>
|
|
57
57
|
:host {
|
|
58
58
|
display: block;
|
|
59
59
|
outline: none;
|
|
@@ -163,35 +163,38 @@ createExample("Disabled picker", 20, "#2b63ba").disabled = true;
|
|
|
163
163
|
</div>
|
|
164
164
|
</div>
|
|
165
165
|
<div class="color-palette"></div>
|
|
166
|
-
`,c={"color-base-red-50":"#ffeeef","color-base-red-100":"#ffe2e5","color-base-red-150":"#ffccd2","color-base-red-200":"#ffb7bf","color-base-red-300":"#ff97a3","color-base-red-400":"#f96778","color-base-red-450":"#f14558","color-base-red-500":"#ea2138","color-base-red-600":"#e2001a","color-base-red-700":"#cc0017","color-base-red-800":"#b50015","color-base-red-900":"#9f0012","color-base-orange-50":"#fff5ef","color-base-orange-100":"#ffefe5","color-base-orange-150":"#ffe3d1","color-base-orange-200":"#ffd7be","color-base-orange-300":"#ffc19b","color-base-orange-400":"#ffa670","color-base-orange-450":"#ff9250","color-base-orange-500":"#ff7e30","color-base-orange-600":"#ff6b11","color-base-orange-700":"#e95f0c","color-base-orange-800":"#d65404","color-base-orange-900":"#bf4800","color-base-yellow-50":"#fffaeb","color-base-yellow-100":"#fff6de","color-base-yellow-150":"#fff0cc","color-base-yellow-200":"#ffeab6","color-base-yellow-300":"#ffe39d","color-base-yellow-400":"#ffd97b","color-base-yellow-450":"#ffcf58","color-base-yellow-500":"#ffc434","color-base-yellow-600":"#ffbb11","color-base-yellow-700":"#e9aa0c","color-base-yellow-800":"#d69a04","color-base-yellow-900":"#bf8800","color-base-green-50":"#f6faec","color-base-green-100":"#f0f7df","color-base-green-150":"#e8f2d0","color-base-green-200":"#deedbc","color-base-green-300":"#cee49c","color-base-green-400":"#bedb79","color-base-green-450":"#add154","color-base-green-500":"#9bc730","color-base-green-600":"#8abd0c","color-base-green-700":"#7baa0b","color-base-green-800":"#6e970a","color-base-green-900":"#618508","color-base-dark-green-50":"#eaf4ec","color-base-dark-green-100":"#dff2e3","color-base-dark-green-150":"#ccecd3","color-base-dark-green-200":"#b1dfbb","color-base-dark-green-300":"#93d3a2","color-base-dark-green-400":"#72c584","color-base-dark-green-450":"#4cb563","color-base-dark-green-500":"#26a642","color-base-dark-green-600":"#009621","color-base-dark-green-700":"#00871e","color-base-dark-green-800":"#00781a","color-base-dark-green-900":"#006917","color-base-cyan-50":"#e3f0f5","color-base-cyan-100":"#d5eff8","color-base-cyan-150":"#c2e8f3","color-base-cyan-200":"#aee0ef","color-base-cyan-300":"#92d4e7","color-base-cyan-400":"#70c7e0","color-base-cyan-450":"#43b4d6","color-base-cyan-500":"#19a3cb","color-base-cyan-600":"#0099c5","color-base-cyan-700":"#008ab2","color-base-cyan-800":"#007a9e","color-base-cyan-900":"#006b8a","color-base-blue-50":"#e7f1fa","color-base-blue-100":"#d6eeff","color-base-blue-150":"#c7e7ff","color-base-blue-200":"#b1deff","color-base-blue-300":"#8ecfff","color-base-blue-400":"#6ac0ff","color-base-blue-450":"#4ab2ff","color-base-blue-500":"#2ba4ff","color-base-blue-600":"#0d98ff","color-base-blue-700":"#0c88e6","color-base-blue-800":"#0a77ca","color-base-blue-900":"#0968af","color-base-dark-blue-50":"#e1ebf6","color-base-dark-blue-100":"#d3e6fa","color-base-dark-blue-150":"#b9d7f5","color-base-dark-blue-200":"#9bc6f2","color-base-dark-blue-300":"#77afe7","color-base-dark-blue-400":"#5198e0","color-base-dark-blue-450":"#3a85d1","color-base-dark-blue-500":"#2576c7","color-base-dark-blue-600":"#1467ba","color-base-dark-blue-700":"#125da8","color-base-dark-blue-800":"#105295","color-base-dark-blue-900":"#0e4883","color-base-pink-50":"#fce6f3","color-base-pink-100":"#fad5eb","color-base-pink-150":"#f7bbdd","color-base-pink-200":"#f2a1cf","color-base-pink-300":"#ec78ba","color-base-pink-400":"#e755a8","color-base-pink-450":"#d94397","color-base-pink-500":"#cc2f89","color-base-pink-600":"#c41579","color-base-pink-700":"#b4136e","color-base-pink-800":"#a01163","color-base-pink-900":"#8a0f55","color-base-purple-50":"#f4e2f6","color-base-purple-100":"#eccff0","color-base-purple-150":"#dab2e0","color-base-purple-200":"#c792cf","color-base-purple-300":"#ab66b4","color-base-purple-400":"#93459e","color-base-purple-450":"#823591","color-base-purple-500":"#772386","color-base-purple-600":"#6c127b","color-base-purple-700":"#5e106b","color-base-purple-800":"#530d5e","color-base-purple-900":"#450b4f","color-base-brown-50":"#f2eae4","color-base-brown-100":"#eadcd2","color-base-brown-150":"#d8c4b3","color-base-brown-200":"#bca38d","color-base-brown-300":"#a08165","color-base-brown-400":"#8b6747","color-base-brown-450":"#755438","color-base-brown-500":"#65472b","color-base-brown-600":"#593b20","color-base-brown-700":"#4f351d","color-base-brown-800":"#462f1b","color-base-brown-900":"#3f2915","color-base-grey-50":"#f9f9f9","color-base-grey-100":"#f3f3f3","color-base-grey-150":"#eeeeee","color-base-grey-200":"#e5e5e5","color-base-grey-300":"#d9d9d9","color-base-grey-400":"#cccccc","color-base-grey-450":"#bbbbbb","color-base-grey-500":"#aaaaaa","color-base-grey-600":"#999999","color-base-grey-700":"#777777","color-base-grey-800":"#666666","color-base-grey-900":"#555555","color-base-white":"#ffffff","color-base-black":"#111111","color-font-base":"#111111","color-font-secondary":"#555555","color-font-tertiary":"#999999","color-font-warn":"#555555","color-font-suggest":"#bf8800","color-font-error":"#cc0017","size-font-tiny":"12px","size-font-small":"13px","size-font-medium":"16px","size-font-large":"20px","size-font-xl":"24px","size-font-xxl":"32px","size-font-xxxl":"48px","size-font-base":"16px","font-family-base":'"Segoe UI", Tahoma, Geneva, Verdana, sans-serif',"time-transition-short":"275ms","time-transition-base":"300ms","time-transition-long":"600ms","time-transition-xl":"1000ms"},Gn=[c["color-base-red-50"],c["color-base-red-100"],c["color-base-red-150"],c["color-base-red-200"],c["color-base-red-300"],c["color-base-red-400"],c["color-base-red-500"],c["color-base-red-600"],c["color-base-red-700"],c["color-base-red-800"],c["color-base-red-900"],c["color-base-orange-50"],c["color-base-orange-100"],c["color-base-orange-150"],c["color-base-orange-200"],c["color-base-orange-300"],c["color-base-orange-400"],c["color-base-orange-500"],c["color-base-orange-600"],c["color-base-orange-700"],c["color-base-orange-800"],c["color-base-orange-900"],c["color-base-yellow-50"],c["color-base-yellow-100"],c["color-base-yellow-150"],c["color-base-yellow-200"],c["color-base-yellow-300"],c["color-base-yellow-400"],c["color-base-yellow-500"],c["color-base-yellow-600"],c["color-base-yellow-700"],c["color-base-yellow-800"],c["color-base-yellow-900"],c["color-base-green-50"],c["color-base-green-100"],c["color-base-green-150"],c["color-base-green-200"],c["color-base-green-300"],c["color-base-green-400"],c["color-base-green-500"],c["color-base-green-600"],c["color-base-green-700"],c["color-base-green-800"],c["color-base-green-900"],c["color-base-dark-green-50"],c["color-base-dark-green-100"],c["color-base-dark-green-150"],c["color-base-dark-green-200"],c["color-base-dark-green-300"],c["color-base-dark-green-400"],c["color-base-dark-green-500"],c["color-base-dark-green-600"],c["color-base-dark-green-700"],c["color-base-dark-green-800"],c["color-base-dark-green-900"],c["color-base-cyan-50"],c["color-base-cyan-100"],c["color-base-cyan-150"],c["color-base-cyan-200"],c["color-base-cyan-300"],c["color-base-cyan-400"],c["color-base-cyan-500"],c["color-base-cyan-600"],c["color-base-cyan-700"],c["color-base-cyan-800"],c["color-base-cyan-900"],c["color-base-blue-50"],c["color-base-blue-100"],c["color-base-blue-150"],c["color-base-blue-200"],c["color-base-blue-300"],c["color-base-blue-400"],c["color-base-blue-500"],c["color-base-blue-600"],c["color-base-blue-700"],c["color-base-blue-800"],c["color-base-blue-900"],c["color-base-dark-blue-50"],c["color-base-dark-blue-100"],c["color-base-dark-blue-150"],c["color-base-dark-blue-200"],c["color-base-dark-blue-300"],c["color-base-dark-blue-400"],c["color-base-dark-blue-500"],c["color-base-dark-blue-600"],c["color-base-dark-blue-700"],c["color-base-dark-blue-800"],c["color-base-dark-blue-900"],c["color-base-pink-50"],c["color-base-pink-100"],c["color-base-pink-150"],c["color-base-pink-200"],c["color-base-pink-300"],c["color-base-pink-400"],c["color-base-pink-500"],c["color-base-pink-600"],c["color-base-pink-700"],c["color-base-pink-800"],c["color-base-pink-900"],c["color-base-purple-50"],c["color-base-purple-100"],c["color-base-purple-150"],c["color-base-purple-200"],c["color-base-purple-300"],c["color-base-purple-400"],c["color-base-purple-500"],c["color-base-purple-600"],c["color-base-purple-700"],c["color-base-purple-800"],c["color-base-purple-900"],c["color-base-brown-50"],c["color-base-brown-100"],c["color-base-brown-150"],c["color-base-brown-200"],c["color-base-brown-300"],c["color-base-brown-400"],c["color-base-brown-500"],c["color-base-brown-600"],c["color-base-brown-700"],c["color-base-brown-800"],c["color-base-brown-900"],c["color-base-grey-50"],c["color-base-grey-100"],c["color-base-grey-150"],c["color-base-grey-200"],c["color-base-grey-300"],c["color-base-grey-400"],c["color-base-grey-500"],c["color-base-grey-600"],c["color-base-grey-700"],c["color-base-grey-800"],c["color-base-grey-900"]],Ve=class Ve extends Hn{constructor(){super(...arguments),this.keyDownListener=e=>{if(e.defaultPrevented)return;let t=!0;const r=this.colorList.indexOf(this.color);switch(e.key){case"Esc":case"Escape":this.colorWhenOpen&&(this.color=this.colorWhenOpen),this.close();break;case"Up":case"ArrowUp":r>0?this.color=this.colorList[r-1]:this.color=this.colorList[this.colorList.length-1];break;case"Down":case"ArrowDown":r<this.colorList.length-1?this.color=this.colorList[r+1]:this.color=this.colorList[0];break;case"Left":case"ArrowLeft":{let s;r===0?s=this.colorList.length-1:(s=r-this.colorNumberInColumn,s<0&&(s=this.colorList.length+s,s%this.colorNumberInColumn>0&&s--)),this.color=this.colorList[s];break}case"Right":case"ArrowRight":{let s;r===this.colorList.length-1?s=0:(s=r+this.colorNumberInColumn,s>=this.colorList.length&&(s=s-this.colorList.length,s<this.colorNumberInColumn&&s++)),this.color=this.colorList[s];break}case"Enter":this.close(),this.dispatchValueChange();break;default:t=!1;return}t&&e.preventDefault()},this.modalityListener=e=>{this.contains(e.target)||this.close()},this.scrollListener=()=>{this.restoreScrollPosition()}}is(){return Ve.ID}get color(){return this.getAttribute("color")}set color(e){if(e){if(this.setAttribute("color",e),this.shadowRoot){this.iconIndicator.style.fill=e;const t=this.colorList.indexOf(e);t>=0?this.selectedColorElement=this.colorPalette.children[t]:this.selectedColorElement=null}}else this.removeAttribute("color"),this.iconIndicator.style.fill="none",this.selectedColorElement=null}get colorList(){return this._colorList||Gn}set colorList(e){this._colorList=e,this.shadowRoot&&this.updatePalette()}get columnCount(){return Number(this.getAttribute("columncount"))||12}set columnCount(e){e?this.setAttribute("columncount",`${e}`):this.removeAttribute("columncount")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(e){this.setAttribute("aria-disabled",e.toString())}get colorSize(){return Number(this.getAttribute("colorsize"))||20}set colorSize(e){e?this.setAttribute("colorsize",`${e}`):this.removeAttribute("colorsize")}template(){const e=document.createElement("template");return e.innerHTML=Wn,e}static get observedAttributes(){return["colorsize","columncount"]}connectedCallback(){super.connectedCallback(),this.colorPalette||(this.colorPalette=this.shadowRoot.querySelector(".color-palette"),this.picker=this.shadowRoot.querySelector(".picker"),this.ripple=this.shadowRoot.querySelector(".ripple"),this.iconIndicator=this.shadowRoot.querySelector(".color-indicator"),this.color&&(this.iconIndicator.style.fill=this.color),this.picker.addEventListener("pointerdown",e=>{e.stopPropagation(),this.colorPalette.classList.contains("opened")?this.close():(this.updatePalettePosition(),this.open())}),this.addEventListener("keydown",e=>{e.key==="Enter"&&(this.open(),e.preventDefault())}),this.updatePalette()),this.hasAttribute("tabIndex")||(this.tabIndex=0)}attributeChangedCallback(){this.colorPalette&&this.updatePalette()}updatePalette(){for(;this.colorPalette.firstChild;)this.colorPalette.removeChild(this.colorPalette.firstChild);this.colorNumberInColumn=Math.ceil(this.colorList.length/this.columnCount),this.colorPalette.style.height=`${this.colorNumberInColumn*this.colorSize}px`,this.colorPalette.style.width=`${this.colorSize*this.columnCount}px`,this.colorPalette.appendChild(this.createColorPaletteFragment())}createColorPaletteFragment(){const e=document.createDocumentFragment(),t=this.color;for(const r of this.colorList){const s=document.createElement("div");s.classList.add("color"),s.style.backgroundColor=r,s.style.width=`${this.colorSize}px`,s.style.height=`${this.colorSize}px`,s.addEventListener("pointerdown",()=>{this.color=r,this.close(),this.dispatchValueChange()}),t===r&&(this.selectedColorElement=s,this.selectedColorElement.classList.add("active-color")),e.appendChild(s)}return e}get selectedColorElement(){return this._selectedColorElement}set selectedColorElement(e){this._selectedColorElement&&this._selectedColorElement.classList.remove("active-color"),this._selectedColorElement=e,this._selectedColorElement&&this._selectedColorElement.classList.add("active-color")}open(){this.disabled||(this.colorPalette.classList.add("opened"),this.ripple.classList.add("active"),this.colorWhenOpen=this.color,this.saveScrollPosition(),window.addEventListener("keydown",this.keyDownListener,{capture:!0}),window.addEventListener("pointerdown",this.modalityListener,{capture:!0}),window.addEventListener("scroll",this.scrollListener,{capture:!0}))}close(){this.colorPalette.classList.remove("opened"),this.ripple.classList.remove("active"),window.removeEventListener("keydown",this.keyDownListener,{capture:!0}),window.removeEventListener("pointerdown",this.modalityListener,{capture:!0}),window.removeEventListener("scroll",this.scrollListener,{capture:!0})}saveScrollPosition(){document.scrollingElement?(this._scrollTop=document.scrollingElement.scrollTop,this._scrollLeft=document.scrollingElement.scrollLeft):(this._scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this._scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))}restoreScrollPosition(){document.scrollingElement?(document.scrollingElement.scrollTop=this._scrollTop,document.scrollingElement.scrollLeft=this._scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this._scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this._scrollLeft)}updatePalettePosition(){const e=this.getBoundingClientRect();e.left+this.colorPalette.offsetWidth>this.scrollingElementClientWidth?this.colorPalette.style.left=`${this.scrollingElementClientWidth-this.colorPalette.offsetWidth}px`:this.colorPalette.style.left=`${e.left}px`,e.top+this.colorPalette.offsetHeight>this.scrollingElementClientHeight?this.colorPalette.style.top=`${this.scrollingElementClientHeight-this.colorPalette.offsetHeight}px`:this.colorPalette.style.top=`${e.top}px`}get scrollingElementClientHeight(){return document.scrollingElement?document.scrollingElement.clientHeight:Math.max(document.documentElement.clientHeight,document.body.clientHeight)}get scrollingElementClientWidth(){return document.scrollingElement?document.scrollingElement.clientWidth:Math.max(document.documentElement.clientWidth,document.body.clientWidth)}dispatchValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:this.color}))}};Ve.ID="sd-swatch-picker";let Be=Ve;customElements.define(Be.ID,Be);function xr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Zn(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return n[r]}})}),t}var At={exports:{}},_=String,vr=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_}};At.exports=vr();At.exports.createColors=vr;var Vn=At.exports;const qn={},Kn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),z=Zn(Kn);let qt=Vn,Kt=z,dt=class Er extends Error{constructor(e,t,r,s,o,i){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),i&&(this.plugin=i),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Er)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=qt.isColorSupported),Kt&&e&&(t=Kt(t));let r=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),i=String(o).length,l,a;if(e){let{bold:u,gray:f,red:y}=qt.createColors(!0);l=m=>u(y(m)),a=m=>f(m)}else l=a=u=>u;return r.slice(s,o).map((u,f)=>{let y=s+1+f,m=" "+(" "+y).slice(-i)+" | ";if(y===this.line){let A=a(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(m)+u+`
|
|
167
|
-
`+
|
|
168
|
-
|
|
166
|
+
`,w={"color-base-red-50":"#ffeeef","color-base-red-100":"#ffe2e5","color-base-red-150":"#ffccd2","color-base-red-200":"#ffb7bf","color-base-red-300":"#ff97a3","color-base-red-400":"#f96778","color-base-red-500":"#ea2138","color-base-red-600":"#e2001a","color-base-red-700":"#cc0017","color-base-red-800":"#b50015","color-base-red-900":"#9f0012","color-base-orange-50":"#fff5ef","color-base-orange-100":"#ffefe5","color-base-orange-150":"#ffe3d1","color-base-orange-200":"#ffd7be","color-base-orange-300":"#ffc19b","color-base-orange-400":"#ffa670","color-base-orange-500":"#ff7e30","color-base-orange-600":"#ff6b11","color-base-orange-700":"#e95f0c","color-base-orange-800":"#d65404","color-base-orange-900":"#bf4800","color-base-yellow-50":"#fffaeb","color-base-yellow-100":"#fff6de","color-base-yellow-150":"#fff0cc","color-base-yellow-200":"#ffeab6","color-base-yellow-300":"#ffe39d","color-base-yellow-400":"#ffd97b","color-base-yellow-500":"#ffc434","color-base-yellow-600":"#ffbb11","color-base-yellow-700":"#e9aa0c","color-base-yellow-800":"#d69a04","color-base-yellow-900":"#bf8800","color-base-green-50":"#f6faec","color-base-green-100":"#f0f7df","color-base-green-150":"#e8f2d0","color-base-green-200":"#deedbc","color-base-green-300":"#cee49c","color-base-green-400":"#bedb79","color-base-green-500":"#9bc730","color-base-green-600":"#8abd0c","color-base-green-700":"#7baa0b","color-base-green-800":"#6e970a","color-base-green-900":"#618508","color-base-dark-green-50":"#eaf4ec","color-base-dark-green-100":"#dff2e3","color-base-dark-green-150":"#ccecd3","color-base-dark-green-200":"#b1dfbb","color-base-dark-green-300":"#93d3a2","color-base-dark-green-400":"#72c584","color-base-dark-green-500":"#26a642","color-base-dark-green-600":"#009621","color-base-dark-green-700":"#00871e","color-base-dark-green-800":"#00781a","color-base-dark-green-900":"#006917","color-base-cyan-50":"#e3f0f5","color-base-cyan-100":"#d5eff8","color-base-cyan-150":"#c2e8f3","color-base-cyan-200":"#aee0ef","color-base-cyan-300":"#92d4e7","color-base-cyan-400":"#70c7e0","color-base-cyan-500":"#19a3cb","color-base-cyan-600":"#0099c5","color-base-cyan-700":"#008ab2","color-base-cyan-800":"#007a9e","color-base-cyan-900":"#006b8a","color-base-blue-50":"#e7f1fa","color-base-blue-100":"#d6eeff","color-base-blue-150":"#c7e7ff","color-base-blue-200":"#b1deff","color-base-blue-300":"#8ecfff","color-base-blue-400":"#6ac0ff","color-base-blue-500":"#2ba4ff","color-base-blue-600":"#0d98ff","color-base-blue-700":"#0c88e6","color-base-blue-800":"#0a77ca","color-base-blue-900":"#0968af","color-base-dark-blue-50":"#e1ebf6","color-base-dark-blue-100":"#d3e6fa","color-base-dark-blue-150":"#b9d7f5","color-base-dark-blue-200":"#9bc6f2","color-base-dark-blue-300":"#77afe7","color-base-dark-blue-400":"#5198e0","color-base-dark-blue-500":"#2576c7","color-base-dark-blue-600":"#1467ba","color-base-dark-blue-700":"#125da8","color-base-dark-blue-800":"#105295","color-base-dark-blue-900":"#0e4883","color-base-pink-50":"#fce6f3","color-base-pink-100":"#fad5eb","color-base-pink-150":"#f7bbdd","color-base-pink-200":"#f2a1cf","color-base-pink-300":"#ec78ba","color-base-pink-400":"#e755a8","color-base-pink-500":"#cc2f89","color-base-pink-600":"#c41579","color-base-pink-700":"#b4136e","color-base-pink-800":"#a01163","color-base-pink-900":"#8a0f55","color-base-purple-50":"#f4e2f6","color-base-purple-100":"#eccff0","color-base-purple-150":"#dab2e0","color-base-purple-200":"#c792cf","color-base-purple-300":"#ab66b4","color-base-purple-400":"#93459e","color-base-purple-500":"#772386","color-base-purple-600":"#6c127b","color-base-purple-700":"#5e106b","color-base-purple-800":"#530d5e","color-base-purple-900":"#450b4f","color-base-brown-50":"#f2eae4","color-base-brown-100":"#eadcd2","color-base-brown-150":"#d8c4b3","color-base-brown-200":"#bca38d","color-base-brown-300":"#a08165","color-base-brown-400":"#8b6747","color-base-brown-500":"#65472b","color-base-brown-600":"#593b20","color-base-brown-700":"#4f351d","color-base-brown-800":"#462f1b","color-base-brown-900":"#3f2915","color-base-grey-50":"#f9f9f9","color-base-grey-100":"#f3f3f3","color-base-grey-150":"#eeeeee","color-base-grey-200":"#e5e5e5","color-base-grey-300":"#d9d9d9","color-base-grey-400":"#cccccc","color-base-grey-500":"#aaaaaa","color-base-grey-600":"#999999","color-base-grey-700":"#777777","color-base-grey-800":"#666666","color-base-grey-900":"#555555"},Kn=[w["color-base-red-50"],w["color-base-red-100"],w["color-base-red-150"],w["color-base-red-200"],w["color-base-red-300"],w["color-base-red-400"],w["color-base-red-500"],w["color-base-red-600"],w["color-base-red-700"],w["color-base-red-800"],w["color-base-red-900"],w["color-base-orange-50"],w["color-base-orange-100"],w["color-base-orange-150"],w["color-base-orange-200"],w["color-base-orange-300"],w["color-base-orange-400"],w["color-base-orange-500"],w["color-base-orange-600"],w["color-base-orange-700"],w["color-base-orange-800"],w["color-base-orange-900"],w["color-base-yellow-50"],w["color-base-yellow-100"],w["color-base-yellow-150"],w["color-base-yellow-200"],w["color-base-yellow-300"],w["color-base-yellow-400"],w["color-base-yellow-500"],w["color-base-yellow-600"],w["color-base-yellow-700"],w["color-base-yellow-800"],w["color-base-yellow-900"],w["color-base-green-50"],w["color-base-green-100"],w["color-base-green-150"],w["color-base-green-200"],w["color-base-green-300"],w["color-base-green-400"],w["color-base-green-500"],w["color-base-green-600"],w["color-base-green-700"],w["color-base-green-800"],w["color-base-green-900"],w["color-base-dark-green-50"],w["color-base-dark-green-100"],w["color-base-dark-green-150"],w["color-base-dark-green-200"],w["color-base-dark-green-300"],w["color-base-dark-green-400"],w["color-base-dark-green-500"],w["color-base-dark-green-600"],w["color-base-dark-green-700"],w["color-base-dark-green-800"],w["color-base-dark-green-900"],w["color-base-cyan-50"],w["color-base-cyan-100"],w["color-base-cyan-150"],w["color-base-cyan-200"],w["color-base-cyan-300"],w["color-base-cyan-400"],w["color-base-cyan-500"],w["color-base-cyan-600"],w["color-base-cyan-700"],w["color-base-cyan-800"],w["color-base-cyan-900"],w["color-base-blue-50"],w["color-base-blue-100"],w["color-base-blue-150"],w["color-base-blue-200"],w["color-base-blue-300"],w["color-base-blue-400"],w["color-base-blue-500"],w["color-base-blue-600"],w["color-base-blue-700"],w["color-base-blue-800"],w["color-base-blue-900"],w["color-base-dark-blue-50"],w["color-base-dark-blue-100"],w["color-base-dark-blue-150"],w["color-base-dark-blue-200"],w["color-base-dark-blue-300"],w["color-base-dark-blue-400"],w["color-base-dark-blue-500"],w["color-base-dark-blue-600"],w["color-base-dark-blue-700"],w["color-base-dark-blue-800"],w["color-base-dark-blue-900"],w["color-base-pink-50"],w["color-base-pink-100"],w["color-base-pink-150"],w["color-base-pink-200"],w["color-base-pink-300"],w["color-base-pink-400"],w["color-base-pink-500"],w["color-base-pink-600"],w["color-base-pink-700"],w["color-base-pink-800"],w["color-base-pink-900"],w["color-base-purple-50"],w["color-base-purple-100"],w["color-base-purple-150"],w["color-base-purple-200"],w["color-base-purple-300"],w["color-base-purple-400"],w["color-base-purple-500"],w["color-base-purple-600"],w["color-base-purple-700"],w["color-base-purple-800"],w["color-base-purple-900"],w["color-base-brown-50"],w["color-base-brown-100"],w["color-base-brown-150"],w["color-base-brown-200"],w["color-base-brown-300"],w["color-base-brown-400"],w["color-base-brown-500"],w["color-base-brown-600"],w["color-base-brown-700"],w["color-base-brown-800"],w["color-base-brown-900"],w["color-base-grey-50"],w["color-base-grey-100"],w["color-base-grey-150"],w["color-base-grey-200"],w["color-base-grey-300"],w["color-base-grey-400"],w["color-base-grey-500"],w["color-base-grey-600"],w["color-base-grey-700"],w["color-base-grey-800"],w["color-base-grey-900"]],Ve=class Ve extends Vn{constructor(){super(...arguments),this.keyDownListener=c=>{if(c.defaultPrevented)return;let m=!0;const d=this.colorList.indexOf(this.color);switch(c.key){case"Esc":case"Escape":this.colorWhenOpen&&(this.color=this.colorWhenOpen),this.close();break;case"Up":case"ArrowUp":d>0?this.color=this.colorList[d-1]:this.color=this.colorList[this.colorList.length-1];break;case"Down":case"ArrowDown":d<this.colorList.length-1?this.color=this.colorList[d+1]:this.color=this.colorList[0];break;case"Left":case"ArrowLeft":{let r;d===0?r=this.colorList.length-1:(r=d-this.colorNumberInColumn,r<0&&(r=this.colorList.length+r,r%this.colorNumberInColumn>0&&r--)),this.color=this.colorList[r];break}case"Right":case"ArrowRight":{let r;d===this.colorList.length-1?r=0:(r=d+this.colorNumberInColumn,r>=this.colorList.length&&(r=r-this.colorList.length,r<this.colorNumberInColumn&&r++)),this.color=this.colorList[r];break}case"Enter":this.close(),this.dispatchValueChange();break;default:m=!1;return}m&&c.preventDefault()},this.modalityListener=c=>{this.contains(c.target)||this.close()},this.scrollListener=()=>{this.restoreScrollPosition()}}is(){return Ve.ID}get color(){return this.getAttribute("color")}set color(c){if(c){if(this.setAttribute("color",c),this.shadowRoot){this.iconIndicator.style.fill=c;const m=this.colorList.indexOf(c);m>=0?this.selectedColorElement=this.colorPalette.children[m]:this.selectedColorElement=null}}else this.removeAttribute("color"),this.iconIndicator.style.fill="none",this.selectedColorElement=null}get colorList(){return this._colorList||Kn}set colorList(c){this._colorList=c,this.shadowRoot&&this.updatePalette()}get columnCount(){return Number(this.getAttribute("columncount"))||12}set columnCount(c){c?this.setAttribute("columncount",`${c}`):this.removeAttribute("columncount")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(c){this.setAttribute("aria-disabled",c.toString())}get colorSize(){return Number(this.getAttribute("colorsize"))||20}set colorSize(c){c?this.setAttribute("colorsize",`${c}`):this.removeAttribute("colorsize")}template(){const c=document.createElement("template");return c.innerHTML=Jn,c}static get observedAttributes(){return["colorsize","columncount"]}connectedCallback(){super.connectedCallback(),this.colorPalette||(this.colorPalette=this.shadowRoot.querySelector(".color-palette"),this.picker=this.shadowRoot.querySelector(".picker"),this.ripple=this.shadowRoot.querySelector(".ripple"),this.iconIndicator=this.shadowRoot.querySelector(".color-indicator"),this.color&&(this.iconIndicator.style.fill=this.color),this.picker.addEventListener("pointerdown",c=>{c.stopPropagation(),this.colorPalette.classList.contains("opened")?this.close():(this.updatePalettePosition(),this.open())}),this.addEventListener("keydown",c=>{c.key==="Enter"&&(this.open(),c.preventDefault())}),this.updatePalette()),this.hasAttribute("tabIndex")||(this.tabIndex=0)}attributeChangedCallback(){this.colorPalette&&this.updatePalette()}updatePalette(){for(;this.colorPalette.firstChild;)this.colorPalette.removeChild(this.colorPalette.firstChild);this.colorNumberInColumn=Math.ceil(this.colorList.length/this.columnCount),this.colorPalette.style.height=`${this.colorNumberInColumn*this.colorSize}px`,this.colorPalette.style.width=`${this.colorSize*this.columnCount}px`,this.colorPalette.appendChild(this.createColorPaletteFragment())}createColorPaletteFragment(){const c=document.createDocumentFragment(),m=this.color;for(const d of this.colorList){const r=document.createElement("div");r.classList.add("color"),r.style.backgroundColor=d,r.style.width=`${this.colorSize}px`,r.style.height=`${this.colorSize}px`,r.addEventListener("pointerdown",()=>{this.color=d,this.close(),this.dispatchValueChange()}),m===d&&(this.selectedColorElement=r,this.selectedColorElement.classList.add("active-color")),c.appendChild(r)}return c}get selectedColorElement(){return this._selectedColorElement}set selectedColorElement(c){this._selectedColorElement&&this._selectedColorElement.classList.remove("active-color"),this._selectedColorElement=c,this._selectedColorElement&&this._selectedColorElement.classList.add("active-color")}open(){this.disabled||(this.colorPalette.classList.add("opened"),this.ripple.classList.add("active"),this.colorWhenOpen=this.color,this.saveScrollPosition(),window.addEventListener("keydown",this.keyDownListener,{capture:!0}),window.addEventListener("pointerdown",this.modalityListener,{capture:!0}),window.addEventListener("scroll",this.scrollListener,{capture:!0}))}close(){this.colorPalette.classList.remove("opened"),this.ripple.classList.remove("active"),window.removeEventListener("keydown",this.keyDownListener,{capture:!0}),window.removeEventListener("pointerdown",this.modalityListener,{capture:!0}),window.removeEventListener("scroll",this.scrollListener,{capture:!0})}saveScrollPosition(){document.scrollingElement?(this._scrollTop=document.scrollingElement.scrollTop,this._scrollLeft=document.scrollingElement.scrollLeft):(this._scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this._scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))}restoreScrollPosition(){document.scrollingElement?(document.scrollingElement.scrollTop=this._scrollTop,document.scrollingElement.scrollLeft=this._scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this._scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this._scrollLeft)}updatePalettePosition(){const c=this.getBoundingClientRect();c.left+this.colorPalette.offsetWidth>this.scrollingElementClientWidth?this.colorPalette.style.left=`${this.scrollingElementClientWidth-this.colorPalette.offsetWidth}px`:this.colorPalette.style.left=`${c.left}px`,c.top+this.colorPalette.offsetHeight>this.scrollingElementClientHeight?this.colorPalette.style.top=`${this.scrollingElementClientHeight-this.colorPalette.offsetHeight}px`:this.colorPalette.style.top=`${c.top}px`}get scrollingElementClientHeight(){return document.scrollingElement?document.scrollingElement.clientHeight:Math.max(document.documentElement.clientHeight,document.body.clientHeight)}get scrollingElementClientWidth(){return document.scrollingElement?document.scrollingElement.clientWidth:Math.max(document.documentElement.clientWidth,document.body.clientWidth)}dispatchValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:this.color}))}};Ve.ID="sd-swatch-picker";let Ge=Ve;customElements.define(Ge.ID,Ge);function Ur(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function Xn(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var c=l.default;if(typeof c=="function"){var m=function d(){var r=!1;try{r=this instanceof d}catch{}return r?Reflect.construct(c,arguments,this.constructor):c.apply(this,arguments)};m.prototype=c.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(l).forEach(function(d){var r=Object.getOwnPropertyDescriptor(l,d);Object.defineProperty(m,d,r.get?r:{enumerable:!0,get:function(){return l[d]}})}),m}var Fe={exports:{}},cr;function Qn(){if(cr)return Fe.exports;cr=1;var l=String,c=function(){return{isColorSupported:!1,reset:l,bold:l,dim:l,italic:l,underline:l,inverse:l,hidden:l,strikethrough:l,black:l,red:l,green:l,yellow:l,blue:l,magenta:l,cyan:l,white:l,gray:l,bgBlack:l,bgRed:l,bgGreen:l,bgYellow:l,bgBlue:l,bgMagenta:l,bgCyan:l,bgWhite:l,blackBright:l,redBright:l,greenBright:l,yellowBright:l,blueBright:l,magentaBright:l,cyanBright:l,whiteBright:l,bgBlackBright:l,bgRedBright:l,bgGreenBright:l,bgYellowBright:l,bgBlueBright:l,bgMagentaBright:l,bgCyanBright:l,bgWhiteBright:l}};return Fe.exports=c(),Fe.exports.createColors=c,Fe.exports}const Yn={},ei=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),ce=Xn(ei);var ht,ur;function Bt(){if(ur)return ht;ur=1;let l=Qn(),c=ce;class m extends Error{constructor(r,f,s,g,v,u){super(r),this.name="CssSyntaxError",this.reason=r,v&&(this.file=v),g&&(this.source=g),u&&(this.plugin=u),typeof f<"u"&&typeof s<"u"&&(typeof f=="number"?(this.line=f,this.column=s):(this.line=f.line,this.column=f.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let f=this.source;r==null&&(r=l.isColorSupported);let s=n=>n,g=n=>n,v=n=>n;if(r){let{bold:n,gray:a,red:h}=l.createColors(!0);g=p=>n(h(p)),s=p=>a(p),c&&(v=p=>c(p))}let u=f.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,u.length),t=String(i).length;return u.slice(e,i).map((n,a)=>{let h=e+1+a,p=" "+(" "+h).slice(-t)+" | ";if(h===this.line){if(n.length>160){let S=20,x=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),b=n.slice(x,y),C=s(p.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return g(">")+s(p)+v(b)+`
|
|
167
|
+
`+C+g("^")}let E=s(p.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return g(">")+s(p)+v(n)+`
|
|
168
|
+
`+E+g("^")}return" "+s(p)+v(n)}).join(`
|
|
169
|
+
`)}toString(){let r=this.showSourceCode();return r&&(r=`
|
|
169
170
|
|
|
170
|
-
`+
|
|
171
|
-
`),this.name+": "+this.message+
|
|
171
|
+
`+r+`
|
|
172
|
+
`),this.name+": "+this.message+r}}return ht=m,m.default=m,ht}var ft,hr;function $r(){if(hr)return ft;hr=1;const l={after:`
|
|
172
173
|
`,beforeClose:`
|
|
173
174
|
`,beforeComment:`
|
|
174
175
|
`,beforeDecl:`
|
|
175
176
|
`,beforeOpen:" ",beforeRule:`
|
|
176
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
177
|
-
`)){let
|
|
178
|
-
`)&&(
|
|
179
|
-
`)&&(
|
|
180
|
-
`)&&(
|
|
181
|
-
`)&&(
|
|
182
|
-
`);return
|
|
183
|
-
`?(
|
|
184
|
-
`);r=new Array(o.length);let i=0;for(let l=0,a=o.length;l<a;l++)r[l]=i,i+=o[l].length+1;this[ut]=r}t=r[r.length-1];let s=0;if(e>=t)s=r.length-1;else{let o=r.length-2,i;for(;s<o;)if(i=s+(o-s>>1),e<r[i])o=i-1;else if(e>=r[i+1])s=i+1;else{s=i;break}}return{col:e-r[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:vt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let o=this.map.consumer(),i=o.originalPositionFor({column:t,line:e});if(!i.source)return!1;let l;typeof r=="number"&&(l=o.originalPositionFor({column:s,line:r}));let a;xt(i.source)?a=Oe(i.source):a=new URL(i.source,this.map.consumer().sourceRoot||Oe(this.map.mapFile));let u={column:i.column,endColumn:l&&l.column,endLine:l&&l.line,line:i.line,url:a.toString()};if(a.protocol==="file:")if(Yt)u.file=Yt(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=o.sourceContentFor(i.source);return f&&(u.source=f),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Xe=Ue;Ue.default=Ue;ct&&ct.registerInput&&ct.registerInput(Ue);let{SourceMapConsumer:Cr,SourceMapGenerator:ze}=z,{dirname:De,relative:_r,resolve:Or,sep:Ar}=z,{pathToFileURL:rr}=z,ms=Xe,bs=!!(Cr&&ze),ys=!!(De&&Or&&_r&&Ar),ws=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
177
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function c(d){return d[0].toUpperCase()+d.slice(1)}class m{constructor(r){this.builder=r}atrule(r,f){let s="@"+r.name,g=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:g&&(s+=" "),r.nodes)this.block(r,s+g);else{let v=(r.raws.between||"")+(f?";":"");this.builder(s+g+v,r)}}beforeAfter(r,f){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):f==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let g=r.parent,v=0;for(;g&&g.type!=="root";)v+=1,g=g.parent;if(s.includes(`
|
|
178
|
+
`)){let u=this.raw(r,null,"indent");if(u.length)for(let e=0;e<v;e++)s+=u}return s}block(r,f){let s=this.raw(r,"between","beforeOpen");this.builder(f+s+"{",r,"start");let g;r.nodes&&r.nodes.length?(this.body(r),g=this.raw(r,"after")):g=this.raw(r,"after","emptyBody"),g&&this.builder(g),this.builder("}",r,"end")}body(r){let f=r.nodes.length-1;for(;f>0&&r.nodes[f].type==="comment";)f-=1;let s=this.raw(r,"semicolon");for(let g=0;g<r.nodes.length;g++){let v=r.nodes[g],u=this.raw(v,"before");u&&this.builder(u),this.stringify(v,f!==g||s)}}comment(r){let f=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+f+r.text+s+"*/",r)}decl(r,f){let s=this.raw(r,"between","colon"),g=r.prop+s+this.rawValue(r,"value");r.important&&(g+=r.raws.important||" !important"),f&&(g+=";"),this.builder(g,r)}document(r){this.body(r)}raw(r,f,s){let g;if(s||(s=f),f&&(g=r.raws[f],typeof g<"u"))return g;let v=r.parent;if(s==="before"&&(!v||v.type==="root"&&v.first===r||v&&v.type==="document"))return"";if(!v)return l[s];let u=r.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]<"u")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+c(s);this[e]?g=this[e](u,r):u.walk(i=>{if(g=i.raws[f],typeof g<"u")return!1})}return typeof g>"u"&&(g=l[s]),u.rawCache[s]=g,g}rawBeforeClose(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return f=s.raws.after,f.includes(`
|
|
179
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(r,f){let s;return r.walkComments(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
|
|
180
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(f,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,f){let s;return r.walkDecls(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
|
|
181
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(f,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let f;return r.walk(s=>{if(s.type!=="decl"&&(f=s.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(r){let f;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return f=s.raws.before,f.includes(`
|
|
182
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(r){let f;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return f=s.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(f=s.raws.after,typeof f<"u"))return!1}),f}rawIndent(r){if(r.raws.indent)return r.raws.indent;let f;return r.walk(s=>{let g=s.parent;if(g&&g!==r&&g.parent&&g.parent===r&&typeof s.raws.before<"u"){let v=s.raws.before.split(`
|
|
183
|
+
`);return f=v[v.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(r){let f;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(f=s.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(r,f){let s=r[f],g=r.raws[f];return g&&g.value===s?g.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,f){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,f)}}return ft=m,m.default=m,ft}var dt,fr;function Je(){if(fr)return dt;fr=1;let l=$r();function c(m,d){new l(d).stringify(m)}return dt=c,c.default=c,dt}var qe={},dr;function Ut(){return dr||(dr=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var pt,pr;function Ke(){if(pr)return pt;pr=1;let l=Bt(),c=$r(),m=Je(),{isClean:d,my:r}=Ut();function f(v,u){let e=new v.constructor;for(let i in v){if(!Object.prototype.hasOwnProperty.call(v,i)||i==="proxyCache")continue;let t=v[i],n=typeof t;i==="parent"&&n==="object"?u&&(e[i]=u):i==="source"?e[i]=t:Array.isArray(t)?e[i]=t.map(a=>f(a,e)):(n==="object"&&t!==null&&(t=f(t)),e[i]=t)}return e}function s(v,u){if(u&&typeof u.offset<"u")return u.offset;let e=1,i=1,t=0;for(let n=0;n<v.length;n++){if(i===u.line&&e===u.column){t=n;break}v[n]===`
|
|
184
|
+
`?(e=1,i+=1):e+=1}return t}class g{get proxyOf(){return this}constructor(u={}){this.raws={},this[d]=!1,this[r]=!0;for(let e in u)if(e==="nodes"){this.nodes=[];for(let i of u[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=u[e]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let e=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let e in u)this[e]=u[e];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let e=f(this);for(let i in u)e[i]=u[i];return e}cloneAfter(u={}){let e=this.clone(u);return this.parent.insertAfter(this,e),e}cloneBefore(u={}){let e=this.clone(u);return this.parent.insertBefore(this,e),e}error(u,e={}){if(this.source){let{end:i,start:t}=this.rangeBy(e);return this.source.input.error(u,{column:t.column,line:t.line},{column:i.column,line:i.line},e)}return new l(u)}getProxyProcessor(){return{get(u,e){return e==="proxyOf"?u:e==="root"?()=>u.root().toProxy():u[e]},set(u,e,i){return u[e]===i||(u[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&u.markDirty()),!0}}}markClean(){this[d]=!0}markDirty(){if(this[d]){this[d]=!1;let u=this;for(;u=u.parent;)u[d]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u={}){let e=this.source.start;if(u.index)e=this.positionInside(u.index);else if(u.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(u.word);n!==-1&&(e=this.positionInside(n))}return e}positionInside(u){let e=this.source.start.column,i=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,n=s(t,this.source.start),a=n+u;for(let h=n;h<a;h++)t[h]===`
|
|
185
|
+
`?(e=1,i+=1):e+=1;return{column:e,line:i,offset:a}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(u.word){let a=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(u.word);a!==-1&&(i=this.positionInside(a),t=this.positionInside(a+u.word.length))}else u.start?i={column:u.start.column,line:u.start.line,offset:s(e,u.start)}:u.index&&(i=this.positionInside(u.index)),u.end?t={column:u.end.column,line:u.end.line,offset:s(e,u.end)}:typeof u.endIndex=="number"?t=this.positionInside(u.endIndex):u.index&&(t=this.positionInside(u.index+1));return(t.line<i.line||t.line===i.line&&t.column<=i.column)&&(t={column:i.column+1,line:i.line,offset:i.offset+1}),{end:t,start:i}}raw(u,e){return new c().raw(this,u,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let e=this,i=!1;for(let t of u)t===this?i=!0:i?(this.parent.insertAfter(e,t),e=t):this.parent.insertBefore(e,t);i||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,e){let i={},t=e==null;e=e||new Map;let n=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let h=this[a];if(Array.isArray(h))i[a]=h.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,e):p);else if(typeof h=="object"&&h.toJSON)i[a]=h.toJSON(null,e);else if(a==="source"){if(h==null)continue;let p=e.get(h.input);p==null&&(p=n,e.set(h.input,n),n++),i[a]={end:h.end,inputId:p,start:h.start}}else i[a]=h}return t&&(i.inputs=[...e.keys()].map(a=>a.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=m){u.stringify&&(u=u.stringify);let e="";return u(this,i=>{e+=i}),e}warn(u,e,i={}){let t={node:this};for(let n in i)t[n]=i[n];return u.warn(e,t)}}return pt=g,g.default=g,pt}var gt,gr;function Xe(){if(gr)return gt;gr=1;let l=Ke();class c extends l{constructor(d){super(d),this.type="comment"}}return gt=c,c.default=c,gt}var mt,mr;function Qe(){if(mr)return mt;mr=1;let l=Ke();class c extends l{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}}return mt=c,c.default=c,mt}var bt,br;function ke(){if(br)return bt;br=1;let l=Xe(),c=Qe(),m=Ke(),{isClean:d,my:r}=Ut(),f,s,g,v;function u(t){return t.map(n=>(n.nodes&&(n.nodes=u(n.nodes)),delete n.source,n))}function e(t){if(t[d]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends m{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...n){for(let a of n){let h=this.normalize(a,this.last);for(let p of h)this.proxyOf.nodes.push(p)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let a of this.nodes)a.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let a=this.getIterator(),h,p;for(;this.indexes[a]<this.proxyOf.nodes.length&&(h=this.indexes[a],p=n(this.proxyOf.nodes[h],h),p!==!1);)this.indexes[a]+=1;return delete this.indexes[a],p}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,a){return a==="proxyOf"?n:n[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?(...h)=>n[a](...h.map(p=>typeof p=="function"?(E,S)=>p(E.toProxy(),S):p)):a==="every"||a==="some"?h=>n[a]((p,...E)=>h(p.toProxy(),...E)):a==="root"?()=>n.root().toProxy():a==="nodes"?n.nodes.map(h=>h.toProxy()):a==="first"||a==="last"?n[a].toProxy():n[a]:n[a]},set(n,a,h){return n[a]===h||(n[a]=h,(a==="name"||a==="params"||a==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,a){let h=this.index(n),p=this.normalize(a,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let S of p)this.proxyOf.nodes.splice(h+1,0,S);let E;for(let S in this.indexes)E=this.indexes[S],h<E&&(this.indexes[S]=E+p.length);return this.markDirty(),this}insertBefore(n,a){let h=this.index(n),p=h===0?"prepend":!1,E=this.normalize(a,this.proxyOf.nodes[h],p).reverse();h=this.index(n);for(let x of E)this.proxyOf.nodes.splice(h,0,x);let S;for(let x in this.indexes)S=this.indexes[x],h<=S&&(this.indexes[x]=S+E.length);return this.markDirty(),this}normalize(n,a){if(typeof n=="string")n=u(s(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new c(n)]}else if(n.selector||n.selectors)n=[new v(n)];else if(n.name)n=[new f(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(p=>(p[r]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[d]&&e(p),p.raws||(p.raws={}),typeof p.raws.before>"u"&&a&&typeof a.raws.before<"u"&&(p.raws.before=a.raws.before.replace(/\S/g,"")),p.parent=this.proxyOf,p))}prepend(...n){n=n.reverse();for(let a of n){let h=this.normalize(a,this.first,"prepend").reverse();for(let p of h)this.proxyOf.nodes.unshift(p);for(let p in this.indexes)this.indexes[p]=this.indexes[p]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let a;for(let h in this.indexes)a=this.indexes[h],a>=n&&(this.indexes[h]=a-1);return this.markDirty(),this}replaceValues(n,a,h){return h||(h=a,a={}),this.walkDecls(p=>{a.props&&!a.props.includes(p.prop)||a.fast&&!p.value.includes(a.fast)||(p.value=p.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((a,h)=>{let p;try{p=n(a,h)}catch(E){throw a.addToError(E)}return p!==!1&&a.walk&&(p=a.walk(n)),p})}walkAtRules(n,a){return a?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="atrule"&&n.test(h.name))return a(h,p)}):this.walk((h,p)=>{if(h.type==="atrule"&&h.name===n)return a(h,p)}):(a=n,this.walk((h,p)=>{if(h.type==="atrule")return a(h,p)}))}walkComments(n){return this.walk((a,h)=>{if(a.type==="comment")return n(a,h)})}walkDecls(n,a){return a?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="decl"&&n.test(h.prop))return a(h,p)}):this.walk((h,p)=>{if(h.type==="decl"&&h.prop===n)return a(h,p)}):(a=n,this.walk((h,p)=>{if(h.type==="decl")return a(h,p)}))}walkRules(n,a){return a?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="rule"&&n.test(h.selector))return a(h,p)}):this.walk((h,p)=>{if(h.type==="rule"&&h.selector===n)return a(h,p)}):(a=n,this.walk((h,p)=>{if(h.type==="rule")return a(h,p)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{v=t},i.registerAtRule=t=>{f=t},i.registerRoot=t=>{g=t},bt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,f.prototype):t.type==="rule"?Object.setPrototypeOf(t,v.prototype):t.type==="decl"?Object.setPrototypeOf(t,c.prototype):t.type==="comment"?Object.setPrototypeOf(t,l.prototype):t.type==="root"&&Object.setPrototypeOf(t,g.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},bt}var yt,yr;function $t(){if(yr)return yt;yr=1;let l=ke();class c extends l{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return yt=c,c.default=c,l.registerAtRule(c),yt}var wt,wr;function Ft(){if(wr)return wt;wr=1;let l=ke(),c,m;class d extends l{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new c(new m,this,f).stringify()}}return d.registerLazyResult=r=>{c=r},d.registerProcessor=r=>{m=r},wt=d,d.default=d,wt}var xt,xr;function ti(){if(xr)return xt;xr=1;let l="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return xt={nanoid:(d=21)=>{let r="",f=d|0;for(;f--;)r+=l[Math.random()*64|0];return r},customAlphabet:(d,r=21)=>(f=r)=>{let s="",g=f|0;for(;g--;)s+=d[Math.random()*d.length|0];return s}},xt}var vt,vr;function Fr(){if(vr)return vt;vr=1;let{existsSync:l,readFileSync:c}=ce,{dirname:m,join:d}=ce,{SourceMapConsumer:r,SourceMapGenerator:f}=ce;function s(v){return Buffer?Buffer.from(v,"base64").toString():window.atob(v)}class g{constructor(u,e){if(e.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,t=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=m(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(u){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,t=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,a=u.match(t)||u.match(n);if(a)return decodeURIComponent(u.substr(a[0].length));let h=u.match(e)||u.match(i);if(h)return s(u.substr(h[0].length));let p=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let e=u.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=u.lastIndexOf(e.pop()),t=u.indexOf("*/",i);i>-1&&t>-1&&(this.annotation=this.getAnnotationURL(u.substring(i,t)))}loadFile(u){if(this.root=m(u),l(u))return this.mapFile=u,c(u,"utf-8").toString().trim()}loadMap(u,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(u);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}else{if(e instanceof r)return f.fromSourceMap(e).toString();if(e instanceof f)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return u&&(i=d(m(u),i)),this.loadFile(i)}}}startWith(u,e){return u?u.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return vt=g,g.default=g,vt}var kt,kr;function Ye(){if(kr)return kt;kr=1;let{nanoid:l}=ti(),{isAbsolute:c,resolve:m}=ce,{SourceMapConsumer:d,SourceMapGenerator:r}=ce,{fileURLToPath:f,pathToFileURL:s}=ce,g=Bt(),v=Fr(),u=ce,e=Symbol("lineToIndexCache"),i=!!(d&&r),t=!!(m&&c);function n(h){if(h[e])return h[e];let p=h.css.split(`
|
|
186
|
+
`),E=new Array(p.length),S=0;for(let x=0,y=p.length;x<y;x++)E[x]=S,S+=p[x].length+1;return h[e]=E,E}class a{get from(){return this.file||this.id}constructor(p,E={}){if(p===null||typeof p>"u"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!t||/^\w+:\/\//.test(E.from)||c(E.from)?this.file=E.from:this.file=m(E.from)),t&&i){let S=new v(this.css,E);if(S.text){this.map=S;let x=S.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+l(6)+">"),this.map&&(this.map.file=this.from)}error(p,E,S,x={}){let y,b,C,A,j;if(E&&typeof E=="object"){let T=E,K=S;if(typeof T.offset=="number"){A=T.offset;let H=this.fromOffset(A);E=H.line,S=H.col}else E=T.line,S=T.column,A=this.fromLineAndColumn(E,S);if(typeof K.offset=="number"){C=K.offset;let H=this.fromOffset(C);b=H.line,y=H.col}else b=K.line,y=K.column,C=this.fromLineAndColumn(K.line,K.column)}else if(S)A=this.fromLineAndColumn(E,S);else{A=E;let T=this.fromOffset(A);E=T.line,S=T.col}let $=this.origin(E,S,b,y);return $?j=new g(p,$.endLine===void 0?$.line:{column:$.column,line:$.line},$.endLine===void 0?$.column:{column:$.endColumn,line:$.endLine},$.source,$.file,x.plugin):j=new g(p,b===void 0?E:{column:S,line:E},b===void 0?S:{column:y,line:b},this.css,this.file,x.plugin),j.input={column:S,endColumn:y,endLine:b,endOffset:C,line:E,offset:A,source:this.css},this.file&&(s&&(j.input.url=s(this.file).toString()),j.input.file=this.file),j}fromLineAndColumn(p,E){return n(this)[p-1]+E-1}fromOffset(p){let E=n(this),S=E[E.length-1],x=0;if(p>=S)x=E.length-1;else{let y=E.length-2,b;for(;x<y;)if(b=x+(y-x>>1),p<E[b])y=b-1;else if(p>=E[b+1])x=b+1;else{x=b;break}}return{col:p-E[x]+1,line:x+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:m(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,E,S,x){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:p});if(!b.source)return!1;let C;typeof S=="number"&&(C=y.originalPositionFor({column:x,line:S}));let A;c(b.source)?A=s(b.source):A=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let j={column:b.column,endColumn:C&&C.column,endLine:C&&C.line,line:b.line,url:A.toString()};if(A.protocol==="file:")if(f)j.file=f(A);else throw new Error("file: protocol is not available in this PostCSS build");let $=y.sourceContentFor(b.source);return $&&(j.source=$),j}toJSON(){let p={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(p[E]=this[E]);return this.map&&(p.map={...this.map},p.map.consumerCache&&(p.map.consumerCache=void 0)),p}}return kt=a,a.default=a,u&&u.registerInput&&u.registerInput(a),kt}var Et,Er;function Te(){if(Er)return Et;Er=1;let l=ke(),c,m;class d extends l{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,s,g){let v=super.normalize(f);if(s){if(g==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let u of v)u.raws.before=s.raws.before}return v}removeChild(f,s){let g=this.index(f);return!s&&g===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[g].raws.before),super.removeChild(f)}toResult(f={}){return new c(new m,this,f).stringify()}}return d.registerLazyResult=r=>{c=r},d.registerProcessor=r=>{m=r},Et=d,d.default=d,l.registerRoot(d),Et}var St,Sr;function qr(){if(Sr)return St;Sr=1;let l={comma(c){return l.split(c,[","],!0)},space(c){let m=[" ",`
|
|
187
|
+
`," "];return l.split(c,m)},split(c,m,d){let r=[],f="",s=!1,g=0,v=!1,u="",e=!1;for(let i of c)e?e=!1:i==="\\"?e=!0:v?i===u&&(v=!1):i==='"'||i==="'"?(v=!0,u=i):i==="("?g+=1:i===")"?g>0&&(g-=1):g===0&&m.includes(i)&&(s=!0),s?(f!==""&&r.push(f.trim()),f="",s=!1):f+=i;return(d||f!=="")&&r.push(f.trim()),r}};return St=l,l.default=l,St}var Ct,Cr;function qt(){if(Cr)return Ct;Cr=1;let l=ke(),c=qr();class m extends l{get selectors(){return c.comma(this.selector)}set selectors(r){let f=this.selector?this.selector.match(/,\s*/):null,s=f?f[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return Ct=m,m.default=m,l.registerRule(m),Ct}var _t,_r;function ri(){if(_r)return _t;_r=1;let l=$t(),c=Xe(),m=Qe(),d=Ye(),r=Fr(),f=Te(),s=qt();function g(v,u){if(Array.isArray(v))return v.map(t=>g(t));let{inputs:e,...i}=v;if(e){u=[];for(let t of e){let n={...t,__proto__:d.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),u.push(n)}}if(i.nodes&&(i.nodes=v.nodes.map(t=>g(t,u))),i.source){let{inputId:t,...n}=i.source;i.source=n,t!=null&&(i.source.input=u[t])}if(i.type==="root")return new f(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new c(i);if(i.type==="atrule")return new l(i);throw new Error("Unknown node type: "+v.type)}return _t=g,g.default=g,_t}var Ot,Or;function Hr(){if(Or)return Ot;Or=1;let{dirname:l,relative:c,resolve:m,sep:d}=ce,{SourceMapConsumer:r,SourceMapGenerator:f}=ce,{pathToFileURL:s}=ce,g=Ye(),v=!!(r&&f),u=!!(l&&m&&c&&d);class e{constructor(t,n,a,h){this.stringify=t,this.mapOpts=a.map||{},this.root=n,this.opts=a,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
|
|
185
188
|
`;this.css.includes(`\r
|
|
186
|
-
`)&&(
|
|
187
|
-
`),this.css+=
|
|
188
|
-
`),t=l.length-i):t+=l.length,a&&u!=="start"){let f=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==f.last||f.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?De(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=De(Or(r,this.mapOpts.annotation)));let s=_r(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ms(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(rr){let r=rr(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ar==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Rr=ws;let xs=Ke,Et=class extends xs{constructor(e){super(e),this.type="comment"}};var Qe=Et;Et.default=Et;let{isClean:Lr,my:Nr}=xe,Pr=Je,Mr=Qe,vs=Ke,Tr,Lt,Nt,Ir;function $r(n){return n.map(e=>(e.nodes&&(e.nodes=$r(e.nodes)),delete e.source,e))}function jr(n){if(n[Lr]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)jr(e)}let V=class zr extends vs{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(o,i)=>s(o.toProxy(),i):s)):t==="every"||t==="some"?r=>e[t]((s,...o)=>r(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let i of s)this.proxyOf.nodes.splice(r+1,0,i);let o;for(let i in this.indexes)o=this.indexes[i],r<o&&(this.indexes[i]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let l of o)this.proxyOf.nodes.splice(r,0,l);let i;for(let l in this.indexes)i=this.indexes[l],r<=i&&(this.indexes[l]=i+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=$r(Tr(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Pr(e)]}else if(e.selector)e=[new Lt(e)];else if(e.name)e=[new Nt(e)];else if(e.text)e=[new Mr(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Nr]||zr.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Lr]&&jr(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};V.registerParse=n=>{Tr=n};V.registerRule=n=>{Lt=n};V.registerAtRule=n=>{Nt=n};V.registerRoot=n=>{Ir=n};var te=V;V.default=V;V.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Nt.prototype):n.type==="rule"?Object.setPrototypeOf(n,Lt.prototype):n.type==="decl"?Object.setPrototypeOf(n,Pr.prototype):n.type==="comment"?Object.setPrototypeOf(n,Mr.prototype):n.type==="root"&&Object.setPrototypeOf(n,Ir.prototype),n[Nr]=!0,n.nodes&&n.nodes.forEach(e=>{V.rebuild(e)})};let Es=te,Dr,Br,pe=class extends Es{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Dr(new Br,this,e).stringify()}};pe.registerLazyResult=n=>{Dr=n};pe.registerProcessor=n=>{Br=n};var Pt=pe;pe.default=pe;let kt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Ur=kt;kt.default=kt;let ks=Ur,St=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new ks(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Mt=St;St.default=St;const ht=39,nr=34,Ae=92,sr=47,Re=10,ue=32,Le=12,Ne=9,Pe=13,Ss=91,Cs=93,_s=40,Os=41,As=123,Rs=125,Ls=59,Ns=42,Ps=58,Ms=64,Me=/[\t\n\f\r "#'()/;[\\\]{}]/g,Te=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ts=/.[\r\n"'(/\\]/,ir=/[\da-f]/i;var Is=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,o,i,l,a,u,f,y,m,A,L,$=r.length,b=0,H=[],W=[];function J(){return b}function j(D){throw e.error("Unclosed "+D,b)}function G(){return W.length===0&&b>=$}function ce(D){if(W.length)return W.pop();if(b>=$)return;let M=D?D.ignoreUnclosed:!1;switch(o=r.charCodeAt(b),o){case Re:case ue:case Ne:case Pe:case Le:{i=b;do i+=1,o=r.charCodeAt(i);while(o===ue||o===Re||o===Ne||o===Pe||o===Le);L=["space",r.slice(b,i)],b=i-1;break}case Ss:case Cs:case As:case Rs:case Ps:case Ls:case Os:{let X=String.fromCharCode(o);L=[X,X,b];break}case _s:{if(m=H.length?H.pop()[1]:"",A=r.charCodeAt(b+1),m==="url"&&A!==ht&&A!==nr&&A!==ue&&A!==Re&&A!==Ne&&A!==Le&&A!==Pe){i=b;do{if(f=!1,i=r.indexOf(")",i+1),i===-1)if(s||M){i=b;break}else j("bracket");for(y=i;r.charCodeAt(y-1)===Ae;)y-=1,f=!f}while(f);L=["brackets",r.slice(b,i+1),b,i],b=i}else i=r.indexOf(")",b+1),a=r.slice(b,i+1),i===-1||Ts.test(a)?L=["(","(",b]:(L=["brackets",a,b,i],b=i);break}case ht:case nr:{l=o===ht?"'":'"',i=b;do{if(f=!1,i=r.indexOf(l,i+1),i===-1)if(s||M){i=b+1;break}else j("string");for(y=i;r.charCodeAt(y-1)===Ae;)y-=1,f=!f}while(f);L=["string",r.slice(b,i+1),b,i],b=i;break}case Ms:{Me.lastIndex=b+1,Me.test(r),Me.lastIndex===0?i=r.length-1:i=Me.lastIndex-2,L=["at-word",r.slice(b,i+1),b,i],b=i;break}case Ae:{for(i=b,u=!0;r.charCodeAt(i+1)===Ae;)i+=1,u=!u;if(o=r.charCodeAt(i+1),u&&o!==sr&&o!==ue&&o!==Re&&o!==Ne&&o!==Pe&&o!==Le&&(i+=1,ir.test(r.charAt(i)))){for(;ir.test(r.charAt(i+1));)i+=1;r.charCodeAt(i+1)===ue&&(i+=1)}L=["word",r.slice(b,i+1),b,i],b=i;break}default:{o===sr&&r.charCodeAt(b+1)===Ns?(i=r.indexOf("*/",b+2)+1,i===0&&(s||M?i=r.length:j("comment")),L=["comment",r.slice(b,i+1),b,i],b=i):(Te.lastIndex=b+1,Te.test(r),Te.lastIndex===0?i=r.length-1:i=Te.lastIndex-2,L=["word",r.slice(b,i+1),b,i],H.push(L),b=i);break}}return b++,L}function ne(D){W.push(D)}return{back:ne,endOfFile:G,nextToken:ce,position:J}};let Fr=te,Fe=class extends Fr{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Tt=Fe;Fe.default=Fe;Fr.registerAtRule(Fe);let Hr=te,Wr,Gr,ie=class extends Hr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Wr(new Gr,this,e).stringify()}};ie.registerLazyResult=n=>{Wr=n};ie.registerProcessor=n=>{Gr=n};var ve=ie;ie.default=ie;Hr.registerRoot(ie);let ge={comma(n){return ge.split(n,[","],!0)},space(n){let e=[" ",`
|
|
189
|
-
`," "];return ge.split(n,e)},split(n,e,t){let r=[],s="",o=!1,i=0,l=!1,a="",u=!1;for(let f of n)u?u=!1:f==="\\"?u=!0:l?f===a&&(l=!1):f==='"'||f==="'"?(l=!0,a=f):f==="("?i+=1:f===")"?i>0&&(i-=1):i===0&&e.includes(f)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=f;return(t||s!=="")&&r.push(s.trim()),r}};var Zr=ge;ge.default=ge;let Vr=te,$s=Zr,He=class extends Vr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return $s.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};var It=He;He.default=He;Vr.registerRule(He);let js=Je,zs=Is,Ds=Qe,Bs=Tt,Us=ve,or=It;const lr={empty:!0,space:!0};function Fs(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let Hs=class{constructor(e){this.input=e,this.root=new Us,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Bs;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,o,i=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),i&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,o;for(let[i,l]of e.entries()){if(r=l,s=r[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return i}o=r}return!1}comment(e){let t=new Ds;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=zs(this.input)}decl(e,t){let r=new js;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Fs(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,u);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(o[1].toLowerCase()==="important"){let f=e.slice(0),y="";for(let m=u;m>0;m--){let A=f[m][0];if(y.trim().indexOf("!")===0&&A!=="space")break;y=f.pop()[1]+y}y.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=y,e=f)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=i.map(u=>u[1]).join(""),i=[]),this.raw(r,"value",i.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new or;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,o=null,i=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")o||(o=u),i.push(r==="("?")":"]");else if(l&&s&&r==="{")o||(o=u),i.push("}");else if(i.length===0)if(r===";")if(s){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(s=!0);else r===i[i.length-1]&&(i.pop(),i.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let o,i,l=r.length,a="",u=!0,f,y;for(let m=0;m<l;m+=1)o=r[m],i=o[0],i==="space"&&m===l-1&&!s?u=!1:i==="comment"?(y=r[m-1]?r[m-1][0]:"empty",f=r[m+1]?r[m+1][0]:"empty",!lr[y]&&!lr[f]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let m=r.reduce((A,L)=>A+L[1],"");e.raws[t]={raw:m,value:a}}e[t]=a}rule(e){e.pop();let t=new or;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ws=Hs;let Gs=te,Zs=Ws,Vs=Xe;function We(n,e){let t=new Vs(n,e),r=new Zs(t);try{r.parse()}catch(s){throw s}return r.root}var $t=We;We.default=We;Gs.registerParse(We);let{isClean:F,my:qs}=xe,Ks=Rr,Js=qe,Xs=te,Qs=Pt,ar=Mt,Ys=$t,ei=ve;const ti={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ri={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},ni={Once:!0,postcssPlugin:!0,prepare:!0},oe=0;function he(n){return typeof n=="object"&&typeof n.then=="function"}function qr(n){let e=!1,t=ti[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,oe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,oe,t+"Exit"]:[t,t+"Exit"]}function cr(n){let e;return n.type==="document"?e=["Document",oe,"DocumentExit"]:n.type==="root"?e=["Root",oe,"RootExit"]:e=qr(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ct(n){return n[F]=!1,n.nodes&&n.nodes.forEach(e=>Ct(e)),n}let _t={},le=class Kr{constructor(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Ct(t);else if(t instanceof Kr||t instanceof ar)s=Ct(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=Ys;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(t,r)}catch(i){this.processed=!0,this.error=i}s&&!s[qs]&&Xs.rebuild(s)}this.result=new ar(e,s,r),this.helpers={..._t,postcss:_t,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!ri[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ni[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(he(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];){e[F]=!0;let t=[cr(e)];for(;t.length>0;){let r=this.visitTick(t);if(he(r))try{await r}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>r(o,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return he(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Js;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Ks(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(he(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];)e[F]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let o;try{o=s(t,this.helpers)}catch(i){throw this.handleError(i,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(he(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[i,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let i=t.iterator,l;for(;l=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!l[F]){l[F]=!0,e.push(cr(l));return}t.iterator=0,delete r.indexes[i]}let o=t.events;for(;t.eventIndex<o.length;){let i=o[t.eventIndex];if(t.eventIndex+=1,i===oe){r.nodes&&r.nodes.length&&(r[F]=!0,t.iterator=r.getIterator());return}else if(this.listeners[i]){t.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[F]=!0;let t=qr(e);for(let r of t)if(r===oe)e.nodes&&e.each(s=>{s[F]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};le.registerPostcss=n=>{_t=n};var Jr=le;le.default=le;ei.registerLazyResult(le);Qs.registerLazyResult(le);let si=Rr,ii=qe,oi=$t;const li=Mt;let Ot=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,o=ii;this.result=new li(this._processor,s,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let l=new si(o,s,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=oi;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ai=Ot;Ot.default=Ot;let ci=ai,ui=Jr,hi=Pt,fi=ve,me=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new ci(this,e,t):new ui(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var di=me;me.default=me;fi.registerProcessor(me);hi.registerProcessor(me);let pi=Je,gi=Sr,mi=Qe,bi=Tt,yi=Xe,wi=ve,xi=It;function be(n,e){if(Array.isArray(n))return n.map(s=>be(s));let{inputs:t,...r}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:yi.prototype};o.map&&(o.map={...o.map,__proto__:gi.prototype}),e.push(o)}}if(r.nodes&&(r.nodes=n.nodes.map(s=>be(s,e))),r.source){let{inputId:s,...o}=r.source;r.source=o,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new wi(r);if(r.type==="decl")return new pi(r);if(r.type==="rule")return new xi(r);if(r.type==="comment")return new mi(r);if(r.type==="atrule")return new bi(r);throw new Error("Unknown node type: "+n.type)}var vi=be;be.default=be;var ur={};let Ei=Rt,Xr=Je,ki=Jr,Si=te,jt=di,Ci=qe,_i=vi,Qr=Pt,Oi=Ur,Yr=Qe,en=Tt,Ai=Mt,Ri=Xe,Li=$t,Ni=Zr,tn=It,rn=ve,Pi=Ke;function k(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new jt(n)}k.plugin=function(e,t){let r=!1;function s(...i){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
190
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ur.LANG&&ur.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
191
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...i);return l.postcssPlugin=e,l.postcssVersion=new jt().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(i,l,a){return k([s(a)]).process(i,l)},s};k.stringify=Ci;k.parse=Li;k.fromJSON=_i;k.list=Ni;k.comment=n=>new Yr(n);k.atRule=n=>new en(n);k.decl=n=>new Xr(n);k.rule=n=>new tn(n);k.root=n=>new rn(n);k.document=n=>new Qr(n);k.CssSyntaxError=Ei;k.Declaration=Xr;k.Container=Si;k.Processor=jt;k.Document=Qr;k.Comment=Yr;k.Warning=Oi;k.AtRule=en;k.Result=Ai;k.Input=Ri;k.Rule=tn;k.Root=rn;k.Node=Pi;ki.registerPostcss(k);var Mi=k;k.default=k;const O=xr(Mi);O.stringify;O.fromJSON;O.plugin;O.parse;O.list;O.document;O.comment;O.atRule;O.rule;O.decl;O.root;O.CssSyntaxError;O.Declaration;O.Container;O.Processor;O.Document;O.Comment;O.Warning;O.AtRule;O.Result;O.Input;O.Rule;O.Root;O.Node;var Ti=function(e){const t=e.prefix,r=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(i){s.length&&i.source.input.file&&hr(i.source.input.file,s)||o.length&&i.source.input.file&&!hr(i.source.input.file,o)||i.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(u=>e.exclude&&Ii(u,e.exclude)?u:e.transform?e.transform(t,u,r+u,i.source.input.file,l):r+u))})}};function hr(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Ii(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const $i=xr(Ti),ji="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}",zi="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 Di(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function nn(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&nn(t)}),n}class fr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function sn(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function K(n,...e){const t=Object.create(null);for(const r in n)t[r]=n[r];return e.forEach(function(r){for(const s in r)t[s]=r[s]}),t}const Bi="</span>",dr=n=>!!n.scope,Ui=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((r,s)=>`${r}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class Fi{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=sn(e)}openNode(e){if(!dr(e))return;const t=Ui(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){dr(e)&&(this.buffer+=Bi)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const pr=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class zt{constructor(){this.rootNode=pr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=pr({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(r=>this._walk(e,r)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{zt._collapse(t)}))}}class Hi extends zt{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const r=e.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new Fi(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ye(n){return n?typeof n=="string"?n:n.source:null}function on(n){return re("(?=",n,")")}function Wi(n){return re("(?:",n,")*")}function Gi(n){return re("(?:",n,")?")}function re(...n){return n.map(e=>ye(e)).join("")}function Zi(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Dt(...n){return"("+(Zi(n).capture?"":"?:")+n.map(e=>ye(e)).join("|")+")"}function ln(n){return new RegExp(n.toString()+"|").exec("").length-1}function Vi(n,e){const t=n&&n.exec(e);return t&&t.index===0}const qi=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Bt(n,{joinWith:e}){let t=0;return n.map(r=>{t+=1;const s=t;let o=ye(r),i="";for(;o.length>0;){const l=qi.exec(o);if(!l){i+=o;break}i+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?i+="\\"+String(Number(l[1])+s):(i+=l[0],l[0]==="("&&t++)}return i}).map(r=>`(${r})`).join(e)}const Ki=/\b\B/,an="[a-zA-Z]\\w*",Ut="[a-zA-Z_]\\w*",cn="\\b\\d+(\\.\\d+)?",un="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",hn="\\b(0b[01]+)",Ji="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Xi=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=re(e,/.*\b/,n.binary,/\b.*/)),K({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},n)},we={begin:"\\\\[\\s\\S]",relevance:0},Qi={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[we]},Yi={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[we]},eo={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/},Ye=function(n,e,t={}){const r=K({scope:"comment",begin:n,end:e,contains:[]},t);r.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 s=Dt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:re(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},to=Ye("//","$"),ro=Ye("/\\*","\\*/"),no=Ye("#","$"),so={scope:"number",begin:cn,relevance:0},io={scope:"number",begin:un,relevance:0},oo={scope:"number",begin:hn,relevance:0},lo={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[we,{begin:/\[/,end:/\]/,relevance:0,contains:[we]}]},ao={scope:"title",begin:an,relevance:0},co={scope:"title",begin:Ut,relevance:0},uo={begin:"\\.\\s*"+Ut,relevance:0},ho=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:Qi,BACKSLASH_ESCAPE:we,BINARY_NUMBER_MODE:oo,BINARY_NUMBER_RE:hn,COMMENT:Ye,C_BLOCK_COMMENT_MODE:ro,C_LINE_COMMENT_MODE:to,C_NUMBER_MODE:io,C_NUMBER_RE:un,END_SAME_AS_BEGIN:ho,HASH_COMMENT_MODE:no,IDENT_RE:an,MATCH_NOTHING_RE:Ki,METHOD_GUARD:uo,NUMBER_MODE:so,NUMBER_RE:cn,PHRASAL_WORDS_MODE:eo,QUOTE_STRING_MODE:Yi,REGEXP_MODE:lo,RE_STARTERS_RE:Ji,SHEBANG:Xi,TITLE_MODE:ao,UNDERSCORE_IDENT_RE:Ut,UNDERSCORE_TITLE_MODE:co});function fo(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function po(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function go(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=fo,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function mo(n,e){Array.isArray(n.illegal)&&(n.illegal=Dt(...n.illegal))}function bo(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function yo(n,e){n.relevance===void 0&&(n.relevance=1)}const wo=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(r=>{delete n[r]}),n.keywords=t.keywords,n.begin=re(t.beforeMatch,on(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},xo=["of","and","for","in","not","or","if","then","parent","list","value"],vo="keyword";function fn(n,e,t=vo){const r=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(o){Object.assign(r,fn(n[o],e,o))}),r;function s(o,i){e&&(i=i.map(l=>l.toLowerCase())),i.forEach(function(l){const a=l.split("|");r[a[0]]=[o,Eo(a[0],a[1])]})}}function Eo(n,e){return e?Number(e):ko(n)?0:1}function ko(n){return xo.includes(n.toLowerCase())}const gr={},ee=n=>{console.error(n)},mr=(n,...e)=>{console.log(`WARN: ${n}`,...e)},se=(n,e)=>{gr[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),gr[`${n}/${e}`]=!0)},Ge=new Error;function dn(n,e,{key:t}){let r=0;const s=n[t],o={},i={};for(let l=1;l<=e.length;l++)i[l+r]=s[l],o[l+r]=!0,r+=ln(e[l-1]);n[t]=i,n[t]._emit=o,n[t]._multi=!0}function So(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ee("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ge;if(typeof n.beginScope!="object"||n.beginScope===null)throw ee("beginScope must be object"),Ge;dn(n,n.begin,{key:"beginScope"}),n.begin=Bt(n.begin,{joinWith:""})}}function Co(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ee("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ge;if(typeof n.endScope!="object"||n.endScope===null)throw ee("endScope must be object"),Ge;dn(n,n.end,{key:"endScope"}),n.end=Bt(n.end,{joinWith:""})}}function _o(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Oo(n){_o(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),So(n),Co(n)}function Ao(n){function e(i,l){return new RegExp(ye(i),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=ln(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Bt(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const u=a.findIndex((y,m)=>m>0&&y!==void 0),f=this.matchIndexes[u];return a.splice(0,u),Object.assign(a,f)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([u,f])=>a.addRule(u,f)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let u=a.exec(l);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,u=f.exec(l)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function s(i){const l=new r;return i.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),i.terminatorEnd&&l.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&l.addRule(i.illegal,{type:"illegal"}),l}function o(i,l){const a=i;if(i.isCompiled)return a;[po,bo,Oo,wo].forEach(f=>f(i,l)),n.compilerExtensions.forEach(f=>f(i,l)),i.__beforeBegin=null,[go,mo,yo].forEach(f=>f(i,l)),i.isCompiled=!0;let u=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),u=i.keywords.$pattern,delete i.keywords.$pattern),u=u||/\w+/,i.keywords&&(i.keywords=fn(i.keywords,n.case_insensitive)),a.keywordPatternRe=e(u,!0),l&&(i.begin||(i.begin=/\B|\b/),a.beginRe=e(a.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(a.endRe=e(a.end)),a.terminatorEnd=ye(a.end)||"",i.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+l.terminatorEnd)),i.illegal&&(a.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(f){return Ro(f==="self"?i:f)})),i.contains.forEach(function(f){o(f,a)}),i.starts&&o(i.starts,l),a.matcher=s(a),a}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=K(n.classNameAliases||{}),o(n)}function pn(n){return n?n.endsWithParent||pn(n.starts):!1}function Ro(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return K(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:pn(n)?K(n,{starts:n.starts?K(n.starts):null}):Object.isFrozen(n)?K(n):n}var Lo="11.9.0";class No extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ft=sn,br=K,yr=Symbol("nomatch"),Po=7,gn=function(n){const e=Object.create(null),t=Object.create(null),r=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Hi};function a(h){return l.noHighlightRe.test(h)}function u(h){let p=h.className+" ";p+=h.parentNode?h.parentNode.className:"";const x=l.languageDetectRe.exec(p);if(x){const E=M(x[1]);return E||(mr(o.replace("{}",x[1])),mr("Falling back to no-highlight mode for this block.",h)),E?x[1]:"no-highlight"}return p.split(/\s+/).find(E=>a(E)||M(E))}function f(h,p,x){let E="",R="";typeof p=="object"?(E=h,x=p.ignoreIllegals,R=p.language):(se("10.7.0","highlight(lang, code, ...args) has been deprecated."),se("10.7.0",`Please use highlight(code, options) instead.
|
|
192
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),R=h,E=p),x===void 0&&(x=!0);const T={code:E,language:R};Q("before:highlight",T);const q=T.result?T.result:y(T.language,T.code,x);return q.code=T.code,Q("after:highlight",q),q}function y(h,p,x,E){const R=Object.create(null);function T(d,g){return d.keywords[g]}function q(){if(!w.keywords){N.addText(C);return}let d=0;w.keywordPatternRe.lastIndex=0;let g=w.keywordPatternRe.exec(C),v="";for(;g;){v+=C.substring(d,g.index);const S=U.case_insensitive?g[0].toLowerCase():g[0],P=T(w,S);if(P){const[Z,Rn]=P;if(N.addText(v),v="",R[S]=(R[S]||0)+1,R[S]<=Po&&(Ce+=Rn),Z.startsWith("_"))v+=g[0];else{const Ln=U.classNameAliases[Z]||Z;B(g[0],Ln)}}else v+=g[0];d=w.keywordPatternRe.lastIndex,g=w.keywordPatternRe.exec(C)}v+=C.substring(d),N.addText(v)}function ke(){if(C==="")return;let d=null;if(typeof w.subLanguage=="string"){if(!e[w.subLanguage]){N.addText(C);return}d=y(w.subLanguage,C,!0,Zt[w.subLanguage]),Zt[w.subLanguage]=d._top}else d=A(C,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(Ce+=d.relevance),N.__addSublanguage(d._emitter,d.language)}function I(){w.subLanguage!=null?ke():q(),C=""}function B(d,g){d!==""&&(N.startScope(g),N.addText(d),N.endScope())}function Ft(d,g){let v=1;const S=g.length-1;for(;v<=S;){if(!d._emit[v]){v++;continue}const P=U.classNameAliases[d[v]]||d[v],Z=g[v];P?B(Z,P):(C=Z,q(),C=""),v++}}function Ht(d,g){return d.scope&&typeof d.scope=="string"&&N.openNode(U.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(B(C,U.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),C=""):d.beginScope._multi&&(Ft(d.beginScope,g),C="")),w=Object.create(d,{parent:{value:w}}),w}function Wt(d,g,v){let S=Vi(d.endRe,v);if(S){if(d["on:end"]){const P=new fr(d);d["on:end"](g,P),P.isMatchIgnored&&(S=!1)}if(S){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Wt(d.parent,g,v)}function Sn(d){return w.matcher.regexIndex===0?(C+=d[0],1):(lt=!0,0)}function Cn(d){const g=d[0],v=d.rule,S=new fr(v),P=[v.__beforeBegin,v["on:begin"]];for(const Z of P)if(Z&&(Z(d,S),S.isMatchIgnored))return Sn(g);return v.skip?C+=g:(v.excludeBegin&&(C+=g),I(),!v.returnBegin&&!v.excludeBegin&&(C=g)),Ht(v,d),v.returnBegin?0:g.length}function _n(d){const g=d[0],v=p.substring(d.index),S=Wt(w,d,v);if(!S)return yr;const P=w;w.endScope&&w.endScope._wrap?(I(),B(g,w.endScope._wrap)):w.endScope&&w.endScope._multi?(I(),Ft(w.endScope,d)):P.skip?C+=g:(P.returnEnd||P.excludeEnd||(C+=g),I(),P.excludeEnd&&(C=g));do w.scope&&N.closeNode(),!w.skip&&!w.subLanguage&&(Ce+=w.relevance),w=w.parent;while(w!==S.parent);return S.starts&&Ht(S.starts,d),P.returnEnd?0:g.length}function On(){const d=[];for(let g=w;g!==U;g=g.parent)g.scope&&d.unshift(g.scope);d.forEach(g=>N.openNode(g))}let Se={};function Gt(d,g){const v=g&&g[0];if(C+=d,v==null)return I(),0;if(Se.type==="begin"&&g.type==="end"&&Se.index===g.index&&v===""){if(C+=p.slice(g.index,g.index+1),!s){const S=new Error(`0 width match regex (${h})`);throw S.languageName=h,S.badRule=Se.rule,S}return 1}if(Se=g,g.type==="begin")return Cn(g);if(g.type==="illegal"&&!x){const S=new Error('Illegal lexeme "'+v+'" for mode "'+(w.scope||"<unnamed>")+'"');throw S.mode=w,S}else if(g.type==="end"){const S=_n(g);if(S!==yr)return S}if(g.type==="illegal"&&v==="")return 1;if(ot>1e5&&ot>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return C+=v,v.length}const U=M(h);if(!U)throw ee(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const An=Ao(U);let it="",w=E||An;const Zt={},N=new l.__emitter(l);On();let C="",Ce=0,Y=0,ot=0,lt=!1;try{if(U.__emitTokens)U.__emitTokens(p,N);else{for(w.matcher.considerAll();;){ot++,lt?lt=!1:w.matcher.considerAll(),w.matcher.lastIndex=Y;const d=w.matcher.exec(p);if(!d)break;const g=p.substring(Y,d.index),v=Gt(g,d);Y=d.index+v}Gt(p.substring(Y))}return N.finalize(),it=N.toHTML(),{language:h,value:it,relevance:Ce,illegal:!1,_emitter:N,_top:w}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:h,value:ft(p),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:Y,context:p.slice(Y-100,Y+100),mode:d.mode,resultSoFar:it},_emitter:N};if(s)return{language:h,value:ft(p),illegal:!1,relevance:0,errorRaised:d,_emitter:N,_top:w};throw d}}function m(h){const p={value:ft(h),illegal:!1,relevance:0,_top:i,_emitter:new l.__emitter(l)};return p._emitter.addText(h),p}function A(h,p){p=p||l.languages||Object.keys(e);const x=m(h),E=p.filter(M).filter(Ee).map(I=>y(I,h,!1));E.unshift(x);const R=E.sort((I,B)=>{if(I.relevance!==B.relevance)return B.relevance-I.relevance;if(I.language&&B.language){if(M(I.language).supersetOf===B.language)return 1;if(M(B.language).supersetOf===I.language)return-1}return 0}),[T,q]=R,ke=T;return ke.secondBest=q,ke}function L(h,p,x){const E=p&&t[p]||x;h.classList.add("hljs"),h.classList.add(`language-${E}`)}function $(h){let p=null;const x=u(h);if(a(x))return;if(Q("before:highlightElement",{el:h,language:x}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),l.throwUnescapedHTML))throw new No("One of your code blocks includes unescaped HTML.",h.innerHTML);p=h;const E=p.textContent,R=x?f(E,{language:x,ignoreIllegals:!0}):A(E);h.innerHTML=R.value,h.dataset.highlighted="yes",L(h,x,R.language),h.result={language:R.language,re:R.relevance,relevance:R.relevance},R.secondBest&&(h.secondBest={language:R.secondBest.language,relevance:R.secondBest.relevance}),Q("after:highlightElement",{el:h,result:R,text:E})}function b(h){l=br(l,h)}const H=()=>{j(),se("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){j(),se("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let J=!1;function j(){if(document.readyState==="loading"){J=!0;return}document.querySelectorAll(l.cssSelector).forEach($)}function G(){J&&j()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",G,!1);function ce(h,p){let x=null;try{x=p(n)}catch(E){if(ee("Language definition for '{}' could not be registered.".replace("{}",h)),s)ee(E);else throw E;x=i}x.name||(x.name=h),e[h]=x,x.rawDefinition=p.bind(null,n),x.aliases&&X(x.aliases,{languageName:h})}function ne(h){delete e[h];for(const p of Object.keys(t))t[p]===h&&delete t[p]}function D(){return Object.keys(e)}function M(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function X(h,{languageName:p}){typeof h=="string"&&(h=[h]),h.forEach(x=>{t[x.toLowerCase()]=p})}function Ee(h){const p=M(h);return p&&!p.disableAutodetect}function tt(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=p=>{h["before:highlightBlock"](Object.assign({block:p.el},p))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=p=>{h["after:highlightBlock"](Object.assign({block:p.el},p))})}function rt(h){tt(h),r.push(h)}function nt(h){const p=r.indexOf(h);p!==-1&&r.splice(p,1)}function Q(h,p){const x=h;r.forEach(function(E){E[x]&&E[x](p)})}function st(h){return se("10.7.0","highlightBlock will be removed entirely in v12.0"),se("10.7.0","Please use highlightElement now."),$(h)}Object.assign(n,{highlight:f,highlightAuto:A,highlightAll:j,highlightElement:$,highlightBlock:st,configure:b,initHighlighting:H,initHighlightingOnLoad:W,registerLanguage:ce,unregisterLanguage:ne,listLanguages:D,getLanguage:M,registerAliases:X,autoDetection:Ee,inherit:br,addPlugin:rt,removePlugin:nt}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=Lo,n.regex={concat:re,lookahead:on,either:Dt,optional:Gi,anyNumberOfTimes:Wi};for(const h in Ie)typeof Ie[h]=="object"&&nn(Ie[h]);return Object.assign(n,Ie),n},ae=gn({});ae.newInstance=()=>gn({});var Mo=ae;ae.HighlightJS=ae;ae.default=ae;const et=Di(Mo),Ze="[A-Za-z$_][0-9A-Za-z$_]*",mn=["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"],bn=["true","false","null","undefined","NaN","Infinity"],yn=["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"],wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],En=[].concat(xn,yn,wn);function To(n){const e=n.regex,t=(h,{after:p})=>{const x="</"+h[0].slice(1);return h.input.indexOf(x,p)!==-1},r=Ze,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,p)=>{const x=h[0].length+h.index,E=h.input[x];if(E==="<"||E===","){p.ignoreMatch();return}E===">"&&(t(h,{after:x})||p.ignoreMatch());let R;const T=h.input.substring(x);if(R=T.match(/^\s*=/)){p.ignoreMatch();return}if((R=T.match(/^\s+extends\s+/))&&R.index===0){p.ignoreMatch();return}}},l={$pattern:Ze,keyword:mn,literal:bn,built_in:En,"variable.language":vn},a="[0-9](_?[0-9])*",u=`\\.(${a})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${f})((${u})|\\.)?|(${u}))[eE][+-]?(${a})\\b`},{begin:`\\b(${f})\\b((${u})\\b|\\.)?|(${u})\\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},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},A={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},L={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,m],subLanguage:"css"}},$={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,m],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,m]},H={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},W=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,A,L,$,b,{match:/\$\d+/},y];m.contains=W.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(W)});const J=[].concat(H,m.contains),j=J.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(J)}]),G={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j},ce={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"}}]},ne={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...yn,...wn]}},D={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:[G],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(h){return e.concat("(?!",h.join("|"),")")}const tt={match:e.concat(/\b/,Ee([...xn,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},rt={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},nt={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},Q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",st={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,A,L,$,b,H,{match:/\$\d+/},y,ne,{className:"attr",begin:r+e.lookahead(":"),relevance:0},st,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[H,n.REGEXP_MODE,{className:"function",begin:Q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},rt,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},tt,X,ce,nt,{match:/\$[(.]/}]}}function Io(n){const e=To(n),t=Ze,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},i={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:Ze,keyword:mn.concat(l),literal:bn,built_in:En.concat(r),"variable.language":vn},u={className:"meta",begin:"@"+t},f=(m,A,L)=>{const $=m.contains.findIndex(b=>b.label===A);if($===-1)throw new Error("can not find mode to replace");m.contains.splice($,1,L)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(u),e.contains=e.contains.concat([u,s,o]),f(e,"shebang",n.SHEBANG()),f(e,"use_strict",i);const y=e.contains.find(m=>m.label==="func.def");return y.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function $o(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=n.inherit(o,{begin:/\(/,end:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),u={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:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,i,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const jo=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),zo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Do=["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"],Bo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Uo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Fo=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Ho(n){const e=n.regex,t=jo(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,i="[a-zA-Z-][a-zA-Z0-9_-]*",l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+i,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Bo.join("|")+")"},{begin:":(:)?("+Uo.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Fo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Do.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zo.join("|")+")\\b"}]}}const kn=document.createElement("style");kn.innerText=[ji,zi].join(`
|
|
193
|
-
`);document.head.appendChild(
|
|
194
|
-
`).trim();return
|
|
189
|
+
`)&&(n=`\r
|
|
190
|
+
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),a=t.root||l(t.file),h;this.mapOpts.sourcesContent===!1?(h=new r(t.text),h.sourcesContent&&(h.sourcesContent=null)):h=t.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(a)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&v&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=f.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new f({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 f({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,a="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},p,E;this.stringify(this.root,(S,x,y)=>{if(this.css+=S,x&&y!=="end"&&(h.generated.line=t,h.generated.column=n-1,x.source&&x.source.start?(h.source=this.sourcePath(x),h.original.line=x.source.start.line,h.original.column=x.source.start.column-1,this.map.addMapping(h)):(h.source=a,h.original.line=1,h.original.column=0,this.map.addMapping(h))),E=S.match(/\n/g),E?(t+=E.length,p=S.lastIndexOf(`
|
|
191
|
+
`),n=S.length-p):n+=S.length,x&&y!=="start"){let b=x.parent||{raws:{}};(!(x.type==="decl"||x.type==="atrule"&&!x.nodes)||x!==b.last||b.raws.semicolon)&&(x.source&&x.source.end?(h.source=this.sourcePath(x),h.original.line=x.source.end.line,h.original.column=x.source.end.column-1,h.generated.line=t,h.generated.column=n-2,this.map.addMapping(h)):(h.source=a,h.original.line=1,h.original.column=0,h.generated.line=t,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let a=this.opts.to?l(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(a=l(m(a,this.mapOpts.annotation)));let h=c(a,t);return this.memoizedPaths.set(t,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new g(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let a=n.source.input.from;if(a&&!t[a]){t[a]=!0;let h=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(s){let a=s(t).toString();return this.memoizedFileURLs.set(t,a),a}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;d==="\\"&&(t=t.replace(/\\/g,"/"));let a=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,a),a}}return Ot=e,Ot}var Rt,Rr;function ni(){if(Rr)return Rt;Rr=1;const l=39,c=34,m=92,d=47,r=10,f=32,s=12,g=9,v=13,u=91,e=93,i=40,t=41,n=123,a=125,h=59,p=42,E=58,S=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Rt=function(j,$={}){let T=j.css.valueOf(),K=$.ignoreErrors,H,ye,ae,P,Ee,G,Y,se,oe,pe,we=T.length,D=0,Re=[],Se=[];function tt(){return D}function Ae(ge){throw j.error("Unclosed "+ge,D)}function rt(){return Se.length===0&&D>=we}function Ce(ge){if(Se.length)return Se.pop();if(D>=we)return;let Ne=ge?ge.ignoreUnclosed:!1;switch(H=T.charCodeAt(D),H){case r:case f:case g:case v:case s:{P=D;do P+=1,H=T.charCodeAt(P);while(H===f||H===r||H===g||H===v||H===s);G=["space",T.slice(D,P)],D=P-1;break}case u:case e:case n:case a:case E:case h:case t:{let Ie=String.fromCharCode(H);G=[Ie,Ie,D];break}case i:{if(pe=Re.length?Re.pop()[1]:"",oe=T.charCodeAt(D+1),pe==="url"&&oe!==l&&oe!==c&&oe!==f&&oe!==r&&oe!==g&&oe!==s&&oe!==v){P=D;do{if(Y=!1,P=T.indexOf(")",P+1),P===-1)if(K||Ne){P=D;break}else Ae("bracket");for(se=P;T.charCodeAt(se-1)===m;)se-=1,Y=!Y}while(Y);G=["brackets",T.slice(D,P+1),D,P],D=P}else P=T.indexOf(")",D+1),ye=T.slice(D,P+1),P===-1||b.test(ye)?G=["(","(",D]:(G=["brackets",ye,D,P],D=P);break}case l:case c:{Ee=H===l?"'":'"',P=D;do{if(Y=!1,P=T.indexOf(Ee,P+1),P===-1)if(K||Ne){P=D+1;break}else Ae("string");for(se=P;T.charCodeAt(se-1)===m;)se-=1,Y=!Y}while(Y);G=["string",T.slice(D,P+1),D,P],D=P;break}case S:{x.lastIndex=D+1,x.test(T),x.lastIndex===0?P=T.length-1:P=x.lastIndex-2,G=["at-word",T.slice(D,P+1),D,P],D=P;break}case m:{for(P=D,ae=!0;T.charCodeAt(P+1)===m;)P+=1,ae=!ae;if(H=T.charCodeAt(P+1),ae&&H!==d&&H!==f&&H!==r&&H!==g&&H!==v&&H!==s&&(P+=1,C.test(T.charAt(P)))){for(;C.test(T.charAt(P+1));)P+=1;T.charCodeAt(P+1)===f&&(P+=1)}G=["word",T.slice(D,P+1),D,P],D=P;break}default:{H===d&&T.charCodeAt(D+1)===p?(P=T.indexOf("*/",D+2)+1,P===0&&(K||Ne?P=T.length:Ae("comment")),G=["comment",T.slice(D,P+1),D,P],D=P):(y.lastIndex=D+1,y.test(T),y.lastIndex===0?P=T.length-1:P=y.lastIndex-2,G=["word",T.slice(D,P+1),D,P],Re.push(G),D=P);break}}return D++,G}function nt(ge){Se.push(ge)}return{back:nt,endOfFile:rt,nextToken:Ce,position:tt}},Rt}var At,Ar;function ii(){if(Ar)return At;Ar=1;let l=$t(),c=Xe(),m=Qe(),d=Te(),r=qt(),f=ni();const s={empty:!0,space:!0};function g(u){for(let e=u.length-1;e>=0;e--){let i=u[e],t=i[3]||i[2];if(t)return t}}class v{constructor(e){this.input=e,this.root=new d,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new l;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,a,h=!1,p=!1,E=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?S.push(t==="("?")":"]"):t==="{"&&S.length>0?S.push("}"):t===S[S.length-1]&&S.pop(),S.length===0)if(t===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(t==="{"){p=!0;break}else if(t==="}"){if(E.length>0){for(a=E.length-1,n=E[a];n&&n[0]==="space";)n=E[--a];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){h=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(i.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(i,"params",E),h&&(e=E[E.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),p&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let t=0,n;for(let a=i-1;a>=0&&(n=e[a],!(n[0]!=="space"&&(t+=1,t===2)));a--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,a;for(let[h,p]of e.entries()){if(n=p,a=n[0],a==="("&&(i+=1),a===")"&&(i-=1),i===0&&a===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return h}t=n}return!1}comment(e){let i=new c;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))i.text="",i.raws.left=t,i.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=f(this.input)}decl(e,i){let t=new m;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]||g(e)),t.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let S=e[0][0];if(S===":"||S==="space"||S==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){t.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),t.raws.between+=a[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let h=[],p;for(;e.length&&(p=e[0][0],!(p!=="space"&&p!=="comment"));)h.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(a=e[S],a[1].toLowerCase()==="!important"){t.important=!0;let x=this.stringFrom(e,S);x=this.spacesFromEnd(e)+x,x!==" !important"&&(t.raws.important=x);break}else if(a[1].toLowerCase()==="important"){let x=e.slice(0),y="";for(let b=S;b>0;b--){let C=x[b][0];if(y.trim().startsWith("!")&&C!=="space")break;y=x.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=x)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(t.raws.between+=h.map(S=>S[1]).join(""),h=[]),this.raw(t,"value",h.concat(e),i),t.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,t=null,n=!1,a=null,h=[],p=e[1].startsWith("--"),E=[],S=e;for(;S;){if(t=S[0],E.push(S),t==="("||t==="[")a||(a=S),h.push(t==="("?")":"]");else if(p&&n&&t==="{")a||(a=S),h.push("}");else if(h.length===0)if(t===";")if(n){this.decl(E,p);return}else break;else if(t==="{"){this.rule(E);return}else if(t==="}"){this.tokenizer.back(E.pop()),i=!0;break}else t===":"&&(n=!0);else t===h[h.length-1]&&(h.pop(),h.length===0&&(a=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),h.length>0&&this.unclosedBracket(a),i&&n){if(!p)for(;E.length&&(S=E[E.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,p)}else this.unknownWord(E)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,t,n){let a,h,p=t.length,E="",S=!0,x,y;for(let b=0;b<p;b+=1)a=t[b],h=a[0],h==="space"&&b===p-1&&!n?S=!1:h==="comment"?(y=t[b-1]?t[b-1][0]:"empty",x=t[b+1]?t[b+1][0]:"empty",!s[y]&&!s[x]?E.slice(-1)===","?S=!1:E+=a[1]:S=!1):E+=a[1];if(!S){let b=t.reduce((C,A)=>C+A[1],"");e.raws[i]={raw:b,value:E}}e[i]=E}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let i,t="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],i==="space");)t=e.pop()[1]+t;return t}stringFrom(e,i){let t="";for(let n=i;n<e.length;n++)t+=e[n][1];return e.splice(i,e.length-i),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return At=v,At}var Nt,Nr;function Ht(){if(Nr)return Nt;Nr=1;let l=ke(),c=Ye(),m=ii();function d(r,f){let s=new c(r,f),g=new m(s);try{g.parse()}catch(v){throw v}return g.root}return Nt=d,d.default=d,l.registerParse(d),Nt}var Pt,Pr;function Wr(){if(Pr)return Pt;Pr=1;class l{constructor(m,d={}){if(this.type="warning",this.text=m,d.node&&d.node.source){let r=d.node.rangeBy(d);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in d)this[r]=d[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Pt=l,l.default=l,Pt}var Lt,Lr;function Wt(){if(Lr)return Lt;Lr=1;let l=Wr();class c{get content(){return this.css}constructor(d,r,f){this.processor=d,this.messages=[],this.root=r,this.opts=f,this.css="",this.map=void 0}toString(){return this.css}warn(d,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let f=new l(d,r);return this.messages.push(f),f}warnings(){return this.messages.filter(d=>d.type==="warning")}}return Lt=c,c.default=c,Lt}var Mt,Mr;function Gr(){if(Mr)return Mt;Mr=1;let l=ke(),c=Ft(),m=Hr(),d=Ht(),r=Wt(),f=Te(),s=Je(),{isClean:g,my:v}=Ut();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},t=0;function n(x){return typeof x=="object"&&typeof x.then=="function"}function a(x){let y=!1,b=u[x.type];return x.type==="decl"?y=x.prop.toLowerCase():x.type==="atrule"&&(y=x.name.toLowerCase()),y&&x.append?[b,b+"-"+y,t,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:x.append?[b,t,b+"Exit"]:[b,b+"Exit"]}function h(x){let y;return x.type==="document"?y=["Document",t,"DocumentExit"]:x.type==="root"?y=["Root",t,"RootExit"]:y=a(x),{eventIndex:0,events:y,iterator:0,node:x,visitorIndex:0,visitors:[]}}function p(x){return x[g]=!1,x.nodes&&x.nodes.forEach(y=>p(y)),x}let E={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,C){this.stringified=!1,this.processed=!1;let A;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))A=p(b);else if(b instanceof S||b instanceof r)A=p(b.root),b.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=b.map);else{let j=d;C.syntax&&(j=C.syntax.parse),C.parser&&(j=C.parser),j.parse&&(j=j.parse);try{A=j(b,C)}catch($){this.processed=!0,this.error=$}A&&!A[v]&&l.rebuild(A)}this.result=new r(y,A,C),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(j=>typeof j=="object"&&j.prepare?{...j,...j.prepare(this.result)}:j)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let C=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(A){console&&console.error&&console.error(A)}return y}prepareVisitors(){this.listeners={};let y=(b,C,A)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([b,A])};for(let b of this.plugins)if(typeof b=="object")for(let C in b){if(!e[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[C])if(typeof b[C]=="object")for(let A in b[C])A==="*"?y(b,C,b[C][A]):y(b,C+"-"+A.toLowerCase(),b[C][A]);else typeof b[C]=="function"&&y(b,C,b[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],C=this.runOnRoot(b);if(n(C))try{await C}catch(A){throw this.handleError(A)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];){y[g]=!0;let b=[h(y)];for(;b.length>0;){let C=this.visitTick(b);if(n(C))try{await C}catch(A){let j=b[b.length-1].node;throw this.handleError(A,j)}}}if(this.listeners.OnceExit)for(let[b,C]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let A=y.nodes.map(j=>C(j,this.helpers));await Promise.all(A)}else await C(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 b=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return n(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=s;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let A=new m(b,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 b=this.runOnRoot(y);if(n(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];)y[g]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[C,A]of y){this.result.lastPlugin=C;let j;try{j=A(b,this.helpers)}catch($){throw this.handleError($,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(n(j))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:C,visitors:A}=b;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(A.length>0&&b.visitorIndex<A.length){let[$,T]=A[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===A.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=$;try{return T(C.toProxy(),this.helpers)}catch(K){throw this.handleError(K,C)}}if(b.iterator!==0){let $=b.iterator,T;for(;T=C.nodes[C.indexes[$]];)if(C.indexes[$]+=1,!T[g]){T[g]=!0,y.push(h(T));return}b.iterator=0,delete C.indexes[$]}let j=b.events;for(;b.eventIndex<j.length;){let $=j[b.eventIndex];if(b.eventIndex+=1,$===t){C.nodes&&C.nodes.length&&(C[g]=!0,b.iterator=C.getIterator());return}else if(this.listeners[$]){b.visitors=this.listeners[$];return}}y.pop()}walkSync(y){y[g]=!0;let b=a(y);for(let C of b)if(C===t)y.nodes&&y.each(A=>{A[g]||this.walkSync(A)});else{let A=this.listeners[C];if(A&&this.visitSync(A,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=x=>{E=x},Mt=S,S.default=S,f.registerLazyResult(S),c.registerLazyResult(S),Mt}var Tt,Tr;function si(){if(Tr)return Tt;Tr=1;let l=Hr(),c=Ht();const m=Wt();let d=Je();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,g=c;try{s=g(this._css,this._opts)}catch(v){this.error=v}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,g,v){g=g.toString(),this.stringified=!1,this._processor=s,this._css=g,this._opts=v,this._map=void 0;let u,e=d;this.result=new m(this._processor,u,this._opts),this.result.css=g;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let t=new l(e,u,this._opts,g);if(t.isMap()){let[n,a]=t.generate();n&&(this.result.css=n),a&&(this.result.map=a)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,g){return this.async().then(s,g)}toString(){return this._css}warnings(){return[]}}return Tt=r,r.default=r,Tt}var It,Ir;function oi(){if(Ir)return It;Ir=1;let l=Ft(),c=Gr(),m=si(),d=Te();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let g=[];for(let v of s)if(v.postcss===!0?v=v():v.postcss&&(v=v.postcss),typeof v=="object"&&Array.isArray(v.plugins))g=g.concat(v.plugins);else if(typeof v=="object"&&v.postcssPlugin)g.push(v);else if(typeof v=="function")g.push(v);else if(!(typeof v=="object"&&(v.parse||v.stringify)))throw new Error(v+" is not a PostCSS plugin");return g}process(s,g={}){return!this.plugins.length&&!g.parser&&!g.stringifier&&!g.syntax?new m(this,s,g):new c(this,s,g)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return It=r,r.default=r,d.registerProcessor(r),l.registerProcessor(r),It}var jt,jr;function li(){if(jr)return jt;jr=1;var l={};let c=$t(),m=Xe(),d=ke(),r=Bt(),f=Qe(),s=Ft(),g=ri(),v=Ye(),u=Gr(),e=qr(),i=Ke(),t=Ht(),n=oi(),a=Wt(),h=Te(),p=qt(),E=Je(),S=Wr();function x(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return x.plugin=function(b,C){let A=!1;function j(...T){console&&console.warn&&!A&&(A=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
192
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),l.LANG&&l.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
193
|
+
https://www.w3ctech.com/topic/2226`));let K=C(...T);return K.postcssPlugin=b,K.postcssVersion=new n().version,K}let $;return Object.defineProperty(j,"postcss",{get(){return $||($=j()),$}}),j.process=function(T,K,H){return x([j(H)]).process(T,K)},j},x.stringify=E,x.parse=t,x.fromJSON=g,x.list=e,x.comment=y=>new m(y),x.atRule=y=>new c(y),x.decl=y=>new f(y),x.rule=y=>new p(y),x.root=y=>new h(y),x.document=y=>new s(y),x.CssSyntaxError=r,x.Declaration=f,x.Container=d,x.Processor=n,x.Document=s,x.Comment=m,x.Warning=S,x.AtRule=c,x.Result=a,x.Input=v,x.Rule=p,x.Root=h,x.Node=i,u.registerPostcss(x),jt=x,x.default=x,jt}var ai=li();const J=Ur(ai);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 zt,zr;function ci(){if(zr)return zt;zr=1;const l=(d={})=>{const r=d.prefix,f=/\s+$/.test(r)?r:`${r} `,s=d.ignoreFiles?[].concat(d.ignoreFiles):[],g=d.includeFiles?[].concat(d.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(v){const u=v.root,e=u.source.input.file;if(!(s.length&&e&&c(e,s))&&!(g.length&&e&&!c(e,g)))return{Rule(i,{result:t}){const n=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&n.includes(i.parent.name)||(i.selectors=i.selectors.map(a=>d.exclude&&m(a,d.exclude)?a:d.transform?d.transform(r,a,f+a,u.source.input.file,i):[":root","body","html"].some(h=>a.startsWith(h))?d.skipGlobalSelectors?a:a.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):f+a))}}}}};function c(d,r){return r.some(f=>f instanceof RegExp?f.test(d):d.includes(f))}function m(d,r){return r.some(f=>f instanceof RegExp?f.test(d):d===f)}return l.postcss=!0,zt=l,zt}var ui=ci();const hi=Ur(ui),fi="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}",di="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 pi(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Dt,Dr;function gi(){if(Dr)return Dt;Dr=1;function l(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(k=>{const R=o[k],U=typeof R;(U==="object"||U==="function")&&!Object.isFrozen(R)&&l(R)}),o}class c{constructor(k){k.data===void 0&&(k.data={}),this.data=k.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function d(o,...k){const R=Object.create(null);for(const U in o)R[U]=o[U];return k.forEach(function(U){for(const X in U)R[X]=U[X]}),R}const r="</span>",f=o=>!!o.scope,s=(o,{prefix:k})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const R=o.split(".");return[`${k}${R.shift()}`,...R.map((U,X)=>`${U}${"_".repeat(X+1)}`)].join(" ")}return`${k}${o}`};class g{constructor(k,R){this.buffer="",this.classPrefix=R.classPrefix,k.walk(this)}addText(k){this.buffer+=m(k)}openNode(k){if(!f(k))return;const R=s(k.scope,{prefix:this.classPrefix});this.span(R)}closeNode(k){f(k)&&(this.buffer+=r)}value(){return this.buffer}span(k){this.buffer+=`<span class="${k}">`}}const v=(o={})=>{const k={children:[]};return Object.assign(k,o),k};class u{constructor(){this.rootNode=v(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(k){this.top.children.push(k)}openNode(k){const R=v({scope:k});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(k){return this.constructor._walk(k,this.rootNode)}static _walk(k,R){return typeof R=="string"?k.addText(R):R.children&&(k.openNode(R),R.children.forEach(U=>this._walk(k,U)),k.closeNode(R)),k}static _collapse(k){typeof k!="string"&&k.children&&(k.children.every(R=>typeof R=="string")?k.children=[k.children.join("")]:k.children.forEach(R=>{u._collapse(R)}))}}class e extends u{constructor(k){super(),this.options=k}addText(k){k!==""&&this.add(k)}startScope(k){this.openNode(k)}endScope(){this.closeNode()}__addSublanguage(k,R){const U=k.root;R&&(U.scope=`language:${R}`),this.add(U)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function t(o){return h("(?=",o,")")}function n(o){return h("(?:",o,")*")}function a(o){return h("(?:",o,")?")}function h(...o){return o.map(k=>i(k)).join("")}function p(o){const k=o[o.length-1];return typeof k=="object"&&k.constructor===Object?(o.splice(o.length-1,1),k):{}}function E(...o){return"("+(p(o).capture?"":"?:")+o.map(k=>i(k)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function x(o,k){const R=o&&o.exec(k);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:k}){let R=0;return o.map(U=>{R+=1;const X=R;let Q=i(U),L="";for(;Q.length>0;){const N=y.exec(Q);if(!N){L+=Q;break}L+=Q.substring(0,N.index),Q=Q.substring(N.index+N[0].length),N[0][0]==="\\"&&N[1]?L+="\\"+String(Number(N[1])+X):(L+=N[0],N[0]==="("&&R++)}return L}).map(U=>`(${U})`).join(k)}const C=/\b\B/,A="[a-zA-Z]\\w*",j="[a-zA-Z_]\\w*",$="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ye=(o={})=>{const k=/^#![ ]*\//;return o.binary&&(o.begin=h(k,/.*\b/,o.binary,/\b.*/)),d({scope:"meta",begin:k,end:/$/,relevance:0,"on:begin":(R,U)=>{R.index!==0&&U.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(o,k,R={}){const U=d({scope:"comment",begin:o,end:k,contains:[]},R);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 X=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return U.contains.push({begin:h(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},se=Y("//","$"),oe=Y("/\\*","\\*/"),pe=Y("#","$"),we={scope:"number",begin:$,relevance:0},D={scope:"number",begin:T,relevance:0},Re={scope:"number",begin:K,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},tt={scope:"title",begin:A,relevance:0},Ae={scope:"title",begin:j,relevance:0},rt={begin:"\\.\\s*"+j,relevance:0};var Ce=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Re,BINARY_NUMBER_RE:K,COMMENT:Y,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:D,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(k,R)=>{R.data._beginMatch=k[1]},"on:end":(k,R)=>{R.data._beginMatch!==k[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:pe,IDENT_RE:A,MATCH_NOTHING_RE:C,METHOD_GUARD:rt,NUMBER_MODE:we,NUMBER_RE:$,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Se,RE_STARTERS_RE:H,SHEBANG:ye,TITLE_MODE:tt,UNDERSCORE_IDENT_RE:j,UNDERSCORE_TITLE_MODE:Ae});function nt(o,k){o.input[o.index-1]==="."&&k.ignoreMatch()}function ge(o,k){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Ne(o,k){k&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=nt,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Ie(o,k){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function tn(o,k){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function rn(o,k){o.relevance===void 0&&(o.relevance=1)}const nn=(o,k)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},o);Object.keys(o).forEach(U=>{delete o[U]}),o.keywords=R.keywords,o.begin=h(R.beforeMatch,t(R.begin)),o.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},o.relevance=0,delete R.beforeMatch},sn=["of","and","for","in","not","or","if","then","parent","list","value"],on="keyword";function Gt(o,k,R=on){const U=Object.create(null);return typeof o=="string"?X(R,o.split(" ")):Array.isArray(o)?X(R,o):Object.keys(o).forEach(function(Q){Object.assign(U,Gt(o[Q],k,Q))}),U;function X(Q,L){k&&(L=L.map(N=>N.toLowerCase())),L.forEach(function(N){const z=N.split("|");U[z[0]]=[Q,ln(z[0],z[1])]})}}function ln(o,k){return k?Number(k):an(o)?0:1}function an(o){return sn.includes(o.toLowerCase())}const Zt={},xe=o=>{console.error(o)},Vt=(o,...k)=>{console.log(`WARN: ${o}`,...k)},_e=(o,k)=>{Zt[`${o}/${k}`]||(console.log(`Deprecated as of ${o}. ${k}`),Zt[`${o}/${k}`]=!0)},je=new Error;function Jt(o,k,{key:R}){let U=0;const X=o[R],Q={},L={};for(let N=1;N<=k.length;N++)L[N+U]=X[N],Q[N+U]=!0,U+=S(k[N-1]);o[R]=L,o[R]._emit=Q,o[R]._multi=!0}function cn(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw xe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),je;if(typeof o.beginScope!="object"||o.beginScope===null)throw xe("beginScope must be object"),je;Jt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function un(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw xe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),je;if(typeof o.endScope!="object"||o.endScope===null)throw xe("endScope must be object"),je;Jt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function hn(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function fn(o){hn(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),cn(o),un(o)}function dn(o){function k(L,N){return new RegExp(i(L),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(N?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(N,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,N]),this.matchAt+=S(N)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const N=this.regexes.map(z=>z[1]);this.matcherRe=k(b(N,{joinWith:"|"}),!0),this.lastIndex=0}exec(N){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(N);if(!z)return null;const re=z.findIndex((Pe,st)=>st>0&&Pe!==void 0),ee=this.matchIndexes[re];return z.splice(0,re),Object.assign(z,ee)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(N){if(this.multiRegexes[N])return this.multiRegexes[N];const z=new R;return this.rules.slice(N).forEach(([re,ee])=>z.addRule(re,ee)),z.compile(),this.multiRegexes[N]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(N,z){this.rules.push([N,z]),z.type==="begin"&&this.count++}exec(N){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let re=z.exec(N);if(this.resumingScanAtSamePosition()&&!(re&&re.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,re=ee.exec(N)}return re&&(this.regexIndex+=re.position+1,this.regexIndex===this.count&&this.considerAll()),re}}function X(L){const N=new U;return L.contains.forEach(z=>N.addRule(z.begin,{rule:z,type:"begin"})),L.terminatorEnd&&N.addRule(L.terminatorEnd,{type:"end"}),L.illegal&&N.addRule(L.illegal,{type:"illegal"}),N}function Q(L,N){const z=L;if(L.isCompiled)return z;[ge,tn,fn,nn].forEach(ee=>ee(L,N)),o.compilerExtensions.forEach(ee=>ee(L,N)),L.__beforeBegin=null,[Ne,Ie,rn].forEach(ee=>ee(L,N)),L.isCompiled=!0;let re=null;return typeof L.keywords=="object"&&L.keywords.$pattern&&(L.keywords=Object.assign({},L.keywords),re=L.keywords.$pattern,delete L.keywords.$pattern),re=re||/\w+/,L.keywords&&(L.keywords=Gt(L.keywords,o.case_insensitive)),z.keywordPatternRe=k(re,!0),N&&(L.begin||(L.begin=/\B|\b/),z.beginRe=k(z.begin),!L.end&&!L.endsWithParent&&(L.end=/\B|\b/),L.end&&(z.endRe=k(z.end)),z.terminatorEnd=i(z.end)||"",L.endsWithParent&&N.terminatorEnd&&(z.terminatorEnd+=(L.end?"|":"")+N.terminatorEnd)),L.illegal&&(z.illegalRe=k(L.illegal)),L.contains||(L.contains=[]),L.contains=[].concat(...L.contains.map(function(ee){return pn(ee==="self"?L:ee)})),L.contains.forEach(function(ee){Q(ee,z)}),L.starts&&Q(L.starts,N),z.matcher=X(z),z}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=d(o.classNameAliases||{}),Q(o)}function Kt(o){return o?o.endsWithParent||Kt(o.starts):!1}function pn(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(k){return d(o,{variants:null},k)})),o.cachedVariants?o.cachedVariants:Kt(o)?d(o,{starts:o.starts?d(o.starts):null}):Object.isFrozen(o)?d(o):o}var gn="11.11.1";class mn extends Error{constructor(k,R){super(k),this.name="HTMLInjectionError",this.html=R}}const it=m,Xt=d,Qt=Symbol("nomatch"),bn=7,Yt=function(o){const k=Object.create(null),R=Object.create(null),U=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",L={disableAutodetect:!0,name:"Plain text",contains:[]};let N={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function z(_){return N.noHighlightRe.test(_)}function re(_){let I=_.className+" ";I+=_.parentNode?_.parentNode.className:"";const q=N.languageDetectRe.exec(I);if(q){const Z=me(q[1]);return Z||(Vt(Q.replace("{}",q[1])),Vt("Falling back to no-highlight mode for this block.",_)),Z?q[1]:"no-highlight"}return I.split(/\s+/).find(Z=>z(Z)||me(Z))}function ee(_,I,q){let Z="",te="";typeof I=="object"?(Z=_,q=I.ignoreIllegals,te=I.language):(_e("10.7.0","highlight(lang, code, ...args) has been deprecated."),_e("10.7.0",`Please use highlight(code, options) instead.
|
|
194
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),te=_,Z=I),q===void 0&&(q=!0);const ue={code:Z,language:te};De("before:highlight",ue);const be=ue.result?ue.result:Pe(ue.language,ue.code,q);return be.code=ue.code,De("after:highlight",be),be}function Pe(_,I,q,Z){const te=Object.create(null);function ue(O,M){return O.keywords[M]}function be(){if(!B.keywords){ne.addText(V);return}let O=0;B.keywordPatternRe.lastIndex=0;let M=B.keywordPatternRe.exec(V),F="";for(;M;){F+=V.substring(O,M.index);const W=fe.case_insensitive?M[0].toLowerCase():M[0],ie=ue(B,W);if(ie){const[de,Tn]=ie;if(ne.addText(F),F="",te[W]=(te[W]||0)+1,te[W]<=bn&&($e+=Tn),de.startsWith("_"))F+=M[0];else{const In=fe.classNameAliases[de]||de;he(M[0],In)}}else F+=M[0];O=B.keywordPatternRe.lastIndex,M=B.keywordPatternRe.exec(V)}F+=V.substring(O),ne.addText(F)}function Be(){if(V==="")return;let O=null;if(typeof B.subLanguage=="string"){if(!k[B.subLanguage]){ne.addText(V);return}O=Pe(B.subLanguage,V,!0,lr[B.subLanguage]),lr[B.subLanguage]=O._top}else O=ot(V,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&($e+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function le(){B.subLanguage!=null?Be():be(),V=""}function he(O,M){O!==""&&(ne.startScope(M),ne.addText(O),ne.endScope())}function nr(O,M){let F=1;const W=M.length-1;for(;F<=W;){if(!O._emit[F]){F++;continue}const ie=fe.classNameAliases[O[F]]||O[F],de=M[F];ie?he(de,ie):(V=de,be(),V=""),F++}}function ir(O,M){return O.scope&&typeof O.scope=="string"&&ne.openNode(fe.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(he(V,fe.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),V=""):O.beginScope._multi&&(nr(O.beginScope,M),V="")),B=Object.create(O,{parent:{value:B}}),B}function sr(O,M,F){let W=x(O.endRe,F);if(W){if(O["on:end"]){const ie=new c(O);O["on:end"](M,ie),ie.isMatchIgnored&&(W=!1)}if(W){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return sr(O.parent,M,F)}function An(O){return B.matcher.regexIndex===0?(V+=O[0],1):(ut=!0,0)}function Nn(O){const M=O[0],F=O.rule,W=new c(F),ie=[F.__beforeBegin,F["on:begin"]];for(const de of ie)if(de&&(de(O,W),W.isMatchIgnored))return An(M);return F.skip?V+=M:(F.excludeBegin&&(V+=M),le(),!F.returnBegin&&!F.excludeBegin&&(V=M)),ir(F,O),F.returnBegin?0:M.length}function Pn(O){const M=O[0],F=I.substring(O.index),W=sr(B,O,F);if(!W)return Qt;const ie=B;B.endScope&&B.endScope._wrap?(le(),he(M,B.endScope._wrap)):B.endScope&&B.endScope._multi?(le(),nr(B.endScope,O)):ie.skip?V+=M:(ie.returnEnd||ie.excludeEnd||(V+=M),le(),ie.excludeEnd&&(V=M));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&($e+=B.relevance),B=B.parent;while(B!==W.parent);return W.starts&&ir(W.starts,O),ie.returnEnd?0:M.length}function Ln(){const O=[];for(let M=B;M!==fe;M=M.parent)M.scope&&O.unshift(M.scope);O.forEach(M=>ne.openNode(M))}let Ue={};function or(O,M){const F=M&&M[0];if(V+=O,F==null)return le(),0;if(Ue.type==="begin"&&M.type==="end"&&Ue.index===M.index&&F===""){if(V+=I.slice(M.index,M.index+1),!X){const W=new Error(`0 width match regex (${_})`);throw W.languageName=_,W.badRule=Ue.rule,W}return 1}if(Ue=M,M.type==="begin")return Nn(M);if(M.type==="illegal"&&!q){const W=new Error('Illegal lexeme "'+F+'" for mode "'+(B.scope||"<unnamed>")+'"');throw W.mode=B,W}else if(M.type==="end"){const W=Pn(M);if(W!==Qt)return W}if(M.type==="illegal"&&F==="")return V+=`
|
|
195
|
+
`,1;if(ct>1e5&&ct>M.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=F,F.length}const fe=me(_);if(!fe)throw xe(Q.replace("{}",_)),new Error('Unknown language: "'+_+'"');const Mn=dn(fe);let at="",B=Z||Mn;const lr={},ne=new N.__emitter(N);Ln();let V="",$e=0,ve=0,ct=0,ut=!1;try{if(fe.__emitTokens)fe.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){ct++,ut?ut=!1:B.matcher.considerAll(),B.matcher.lastIndex=ve;const O=B.matcher.exec(I);if(!O)break;const M=I.substring(ve,O.index),F=or(M,O);ve=O.index+F}or(I.substring(ve))}return ne.finalize(),at=ne.toHTML(),{language:_,value:at,relevance:$e,illegal:!1,_emitter:ne,_top:B}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:_,value:it(I),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:ve,context:I.slice(ve-100,ve+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(X)return{language:_,value:it(I),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:B};throw O}}function st(_){const I={value:it(_),illegal:!1,relevance:0,_top:L,_emitter:new N.__emitter(N)};return I._emitter.addText(_),I}function ot(_,I){I=I||N.languages||Object.keys(k);const q=st(_),Z=I.filter(me).filter(rr).map(le=>Pe(le,_,!1));Z.unshift(q);const te=Z.sort((le,he)=>{if(le.relevance!==he.relevance)return he.relevance-le.relevance;if(le.language&&he.language){if(me(le.language).supersetOf===he.language)return 1;if(me(he.language).supersetOf===le.language)return-1}return 0}),[ue,be]=te,Be=ue;return Be.secondBest=be,Be}function yn(_,I,q){const Z=I&&R[I]||q;_.classList.add("hljs"),_.classList.add(`language-${Z}`)}function lt(_){let I=null;const q=re(_);if(z(q))return;if(De("before:highlightElement",{el:_,language:q}),_.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",_);return}if(_.children.length>0&&(N.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(_)),N.throwUnescapedHTML))throw new mn("One of your code blocks includes unescaped HTML.",_.innerHTML);I=_;const Z=I.textContent,te=q?ee(Z,{language:q,ignoreIllegals:!0}):ot(Z);_.innerHTML=te.value,_.dataset.highlighted="yes",yn(_,q,te.language),_.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(_.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),De("after:highlightElement",{el:_,result:te,text:Z})}function wn(_){N=Xt(N,_)}const xn=()=>{ze(),_e("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vn(){ze(),_e("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let er=!1;function ze(){function _(){ze()}if(document.readyState==="loading"){er||window.addEventListener("DOMContentLoaded",_,!1),er=!0;return}document.querySelectorAll(N.cssSelector).forEach(lt)}function kn(_,I){let q=null;try{q=I(o)}catch(Z){if(xe("Language definition for '{}' could not be registered.".replace("{}",_)),X)xe(Z);else throw Z;q=L}q.name||(q.name=_),k[_]=q,q.rawDefinition=I.bind(null,o),q.aliases&&tr(q.aliases,{languageName:_})}function En(_){delete k[_];for(const I of Object.keys(R))R[I]===_&&delete R[I]}function Sn(){return Object.keys(k)}function me(_){return _=(_||"").toLowerCase(),k[_]||k[R[_]]}function tr(_,{languageName:I}){typeof _=="string"&&(_=[_]),_.forEach(q=>{R[q.toLowerCase()]=I})}function rr(_){const I=me(_);return I&&!I.disableAutodetect}function Cn(_){_["before:highlightBlock"]&&!_["before:highlightElement"]&&(_["before:highlightElement"]=I=>{_["before:highlightBlock"](Object.assign({block:I.el},I))}),_["after:highlightBlock"]&&!_["after:highlightElement"]&&(_["after:highlightElement"]=I=>{_["after:highlightBlock"](Object.assign({block:I.el},I))})}function _n(_){Cn(_),U.push(_)}function On(_){const I=U.indexOf(_);I!==-1&&U.splice(I,1)}function De(_,I){const q=_;U.forEach(function(Z){Z[q]&&Z[q](I)})}function Rn(_){return _e("10.7.0","highlightBlock will be removed entirely in v12.0"),_e("10.7.0","Please use highlightElement now."),lt(_)}Object.assign(o,{highlight:ee,highlightAuto:ot,highlightAll:ze,highlightElement:lt,highlightBlock:Rn,configure:wn,initHighlighting:xn,initHighlightingOnLoad:vn,registerLanguage:kn,unregisterLanguage:En,listLanguages:Sn,getLanguage:me,registerAliases:tr,autoDetection:rr,inherit:Xt,addPlugin:_n,removePlugin:On}),o.debugMode=function(){X=!1},o.safeMode=function(){X=!0},o.versionString=gn,o.regex={concat:h,lookahead:t,either:E,optional:a,anyNumberOfTimes:n};for(const _ in Ce)typeof Ce[_]=="object"&&l(Ce[_]);return Object.assign(o,Ce),o},Oe=Yt({});return Oe.newInstance=()=>Yt({}),Dt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,Dt}var mi=gi();const et=pi(mi),Ze="[A-Za-z$_][0-9A-Za-z$_]*",Zr=["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"],Vr=["true","false","null","undefined","NaN","Infinity"],Jr=["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"],Kr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yr=[].concat(Xr,Jr,Kr);function bi(l){const c=l.regex,m=(G,{after:Y})=>{const se="</"+G[0].slice(1);return G.input.indexOf(se,Y)!==-1},d=Ze,r={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,Y)=>{const se=G[0].length+G.index,oe=G.input[se];if(oe==="<"||oe===","){Y.ignoreMatch();return}oe===">"&&(m(G,{after:se})||Y.ignoreMatch());let pe;const we=G.input.substring(se);if(pe=we.match(/^\s*=/)){Y.ignoreMatch();return}if((pe=we.match(/^\s+extends\s+/))&&pe.index===0){Y.ignoreMatch();return}}},g={$pattern:Ze,keyword:Zr,literal:Vr,built_in:Yr,"variable.language":Qr},v="[0-9](_?[0-9])*",u=`\\.(${v})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${u})|\\.)?|(${u}))[eE][+-]?(${v})\\b`},{begin:`\\b(${e})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},t={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},n={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},a={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,t],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},p={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,t]},E={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},S=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,n,a,h,p,{match:/\$\d+/},i];t.contains=S.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(S)});const x=[].concat(E,t.contains),y=x.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(x)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y},C={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},A={relevance:0,match:c.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:{_:[...Jr,...Kr]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(G){return c.concat("(?!",G.join("|"),")")}const H={match:c.concat(/\b/,K([...Xr,"super","import"].map(G=>`${G}\\s*\\(`)),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},ye={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:A},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,n,a,h,p,E,{match:/\$\d+/},i,A,{scope:"attr",match:d+c.lookahead(":"),relevance:0},Ee,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,l.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:f},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,l.inherit(l.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},ye,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},H,T,C,ae,{match:/\$[(.]/}]}}function yi(l){const c=l.regex,m=bi(l),d=Ze,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},v=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:Ze,keyword:Zr.concat(v),literal:Vr,built_in:Yr.concat(r),"variable.language":Qr},e={className:"meta",begin:"@"+d},i=(h,p,E)=>{const S=h.contains.findIndex(x=>x.label===p);if(S===-1)throw new Error("can not find mode to replace");h.contains.splice(S,1,E)};Object.assign(m.keywords,u),m.exports.PARAMS_CONTAINS.push(e);const t=m.contains.find(h=>h.scope==="attr"),n=Object.assign({},t,{match:c.concat(d,c.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,t,n]),m.contains=m.contains.concat([e,f,s,n]),i(m,"shebang",l.SHEBANG()),i(m,"use_strict",g);const a=m.contains.find(h=>h.label==="func.def");return a.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function wi(l){const c=l.regex,m=c.concat(/[\p{L}_]/u,c.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),d=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=l.inherit(f,{begin:/\(/,end:/\)/}),g=l.inherit(l.APOS_STRING_MODE,{className:"string"}),v=l.inherit(l.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:d,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,v,g,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,s,v,g]}]}]},l.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[v]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:c.concat(/</,c.lookahead(c.concat(m,c.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:u}]},{className:"tag",begin:c.concat(/<\//,c.lookahead(c.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const xi=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.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:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.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_-]*/}}),vi=["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"],ki=["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"],Ei=[...vi,...ki],Si=["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(),Ci=["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(),_i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Oi=["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 Ri(l){const c=l.regex,m=xi(l),d={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",f=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",g=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,d,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ci.join("|")+")"},{begin:":(:)?("+_i.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Oi.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:c.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Si.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ei.join("|")+")\\b"}]}}const en=document.createElement("style");en.innerText=[fi,di].join(`
|
|
196
|
+
`);document.head.appendChild(en);et.registerLanguage("typescript",yi);et.registerLanguage("html",wi);et.registerLanguage("css",Ri);function Ai(...l){const c=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const d=document.createElement("div");return l.forEach(r=>{c.appendChild(r),r.addEventListener("click",()=>{l.forEach(f=>f.removeAttribute("selected")),r.setAttribute("selected",""),d.innerHTML="",d.appendChild(r.content),d.className=r.className,d.classList.add("tab-content")})}),m.appendChild(c),m.appendChild(d),d.classList.add("tab-content"),l[0].setAttribute("selected",""),d.appendChild(l[0].content),m}function Le(l,c){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=l,m.content=c,c.tagName=="PRE"&&m.classList.add("code"),m}function Me(l,c){const m=document.createElement(l);return typeof c=="string"?m.innerHTML=c:c.forEach(d=>{m.appendChild(d)}),m}async function Ni(l,c,m){const d=c.mainContent,r=Me("div",d);r.id=`example-preview-${m}`;const f=typeof c.css=="string"?void 0:c.css?.label,s=typeof c.css=="string"?c.css:c.css?.content,g=Ai(Le("Preview",r),Le("HTML",He("html",d)),...s?[Le(f??"CSS",He("css",s))]:[],...c.initializer&&c.initializer.content?[Le(c.initializer.label??"TS",He("typescript",c.initializer.content))]:[],...(c.additionalSources||[]).map(u=>Le(u.label,He(u.language,u.content))));c.description&&l.appendChild(Me("div",c.description));const v=Me("div",[g]);v.classList.add("example"),l.appendChild(v),s&&Pi(`#${r.id}`,s),c.initializer?.initialize&&await c.initializer.initialize(r)}function He(l,c){let m=c.split(/\r?\n/).map(d=>{const r=d.indexOf("///");if(r>-1){const f=d.substring(r+3).trimStart();return f?d.replace(/^(\s*)([^\s].*)$/,`$1${f}`):void 0}return d}).filter(d=>typeof d<"u").join(`
|
|
197
|
+
`).trim();return l&&l!="raw"&&(m=et.highlight(m,{language:l}).value),Me("pre",[Me("code",m)])}function Pi(l,c){const m=document.createElement("style");m.innerHTML=J().use(hi({prefix:l})).process(c).css,document.head.appendChild(m)}async function Li(l,c=document.body){const m=Ti(c);let d=0;Object.keys(l).sort().forEach(async r=>{const f=document.createElement("div");f.className="example-container",m.appendChild(f);const s=l[r].default;Ni(f,s,d++)})}function Mi(l){const c=document.createElement("div");c.id="examples-container";const m=l.querySelector("#examples");return m?m.after(c):l.appendChild(c),c}function Ti(l){return l.children?Mi(l):l}const Ii=`<h1 id="@cas-smartdesign/swatch-picker">@cas-smartdesign/swatch-picker</h1>
|
|
195
198
|
<p>A color picker element.</p>
|
|
196
199
|
<h2 id="attributes">Attributes</h2>
|
|
197
200
|
<ul>
|
|
@@ -237,10 +240,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),R=h,E=p),x===void 0&&(
|
|
|
237
240
|
</ul>
|
|
238
241
|
</li>
|
|
239
242
|
</ul>
|
|
240
|
-
`,
|
|
241
|
-
function __vite__mapDeps(indexes) {
|
|
242
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
243
|
-
__vite__mapDeps.viteFileDeps = []
|
|
244
|
-
}
|
|
245
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
246
|
-
}
|
|
243
|
+
`,ji=document.querySelector("#markdown-container");ji.innerHTML=Ii;Li(Object.assign({"./examples/1_declarative/index.ts":Bn,"./examples/2_create-from-source/index.ts":Zn}),document.querySelector(".markdown-body"));export{Ge as S};
|