@cas-smartdesign/z-layout 6.0.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +39 -42
- package/dist/zlayout-with-externals.js.map +2 -2
- package/dist/zlayout.mjs.map +1 -1
- package/npm-third-party-licenses.json +51 -46
- package/package.json +4 -4
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
(function(){const
|
|
1
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))f(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const s of d.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function f(r){if(r.ep)return;r.ep=!0;const d=m(r);fetch(r.href,d)}})();const Ir=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./zlayout-with-externals.js"><\/script>
|
|
3
3
|
<sd-z-layout>
|
|
4
4
|
<div class="block">First block</div>
|
|
5
5
|
<div class="block">Second block</div>
|
|
6
6
|
<div class="block">Third block</div>
|
|
7
7
|
</sd-z-layout>
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
8
|
+
`,zr=`<h3 id="declarative-usage">Declarative usage</h3>
|
|
9
|
+
`,jr=`.block {
|
|
10
10
|
border: 1px dashed #808080;
|
|
11
11
|
text-align: center;
|
|
12
12
|
padding: 16px;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,Br={mainContent:Ir,description:zr,css:jr},Dr=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),Ur="modulepreload",Fr=function(a,l){return new URL(a,l).href},ln={},$r=function(l,m,f){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=Fr(e,f),e in ln)return;ln[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!f)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 c=document.createElement("link");if(c.rel=i?"stylesheet":Ur,i||(c.as="script"),c.crossOrigin="",c.href=e,v&&c.setAttribute("nonce",v),document.head.appendChild(c),i)return new Promise((h,p)=>{c.addEventListener("load",h),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${e}`)))})}))}function d(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"&&d(g.reason);return l().catch(d)})},qr=`<sd-z-layout id="add-remove-example">
|
|
15
15
|
<div class="block">
|
|
16
16
|
<button id="add-button">Add new block to the left</button>
|
|
17
17
|
</div>
|
|
18
18
|
</sd-z-layout>
|
|
19
|
-
`,
|
|
20
|
-
`,
|
|
19
|
+
`,Wr=`<h3 id="add-/-remove-blocks">Add / Remove blocks</h3>
|
|
20
|
+
`,Hr=`.block {
|
|
21
21
|
border: 1px dashed #808080;
|
|
22
22
|
text-align: center;
|
|
23
23
|
padding: 16px;
|
|
@@ -44,7 +44,7 @@ button:focus {
|
|
|
44
44
|
button:active {
|
|
45
45
|
background: rgba(20, 103, 186, 0.2);
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Gr=`import "@cas-smartdesign/z-layout";
|
|
48
48
|
|
|
49
49
|
const zLayout = document.querySelector("#add-remove-example");
|
|
50
50
|
const addButton = document.querySelector("#add-button");
|
|
@@ -92,7 +92,7 @@ const addBlockBefore = (node: HTMLElement) => {
|
|
|
92
92
|
addButton.addEventListener("click", () => {
|
|
93
93
|
addBlockBefore(addButton.parentElement);
|
|
94
94
|
});
|
|
95
|
-
`,
|
|
95
|
+
`,Zr={mainContent:qr,description:Wr,css:Hr,initializer:{content:Gr,type:"typescript",initialize:()=>$r(()=>import("./2_add_remove_block.js"),[],import.meta.url)}},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Jr=`<!-- Load element with all dependencies directly -->
|
|
96
96
|
<script src="./zlayout-with-externals.js"><\/script>
|
|
97
97
|
<h4>Default</h4>
|
|
98
98
|
<sd-z-layout>
|
|
@@ -121,8 +121,8 @@ addButton.addEventListener("click", () => {
|
|
|
121
121
|
<div class="block">Second block</div>
|
|
122
122
|
<div class="block">Third block</div>
|
|
123
123
|
</sd-z-layout>
|
|
124
|
-
`,
|
|
125
|
-
`,
|
|
124
|
+
`,Vr=`<h3 id="declarative-usage---custom-properties">Declarative usage - custom properties</h3>
|
|
125
|
+
`,Xr=`.block {
|
|
126
126
|
border: 1px dashed #808080;
|
|
127
127
|
text-align: center;
|
|
128
128
|
padding: 16px;
|
|
@@ -136,7 +136,7 @@ sd-z-layout:not(:last-of-type) {
|
|
|
136
136
|
padding-bottom: 16px;
|
|
137
137
|
border-bottom: 1px dashed #808080;
|
|
138
138
|
}
|
|
139
|
-
`,
|
|
139
|
+
`,Qr={mainContent:Jr,description:Vr,css:Xr},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),Dn=class He extends HTMLElement{memoizedTemplate(){const l=this.is();if(He.TEMPLATE_CACHE[l])return He.TEMPLATE_CACHE[l];const m=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,this.is()),He.TEMPLATE_CACHE[l]=m,m}connectedCallback(){const l=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(l.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(l){this.shadowRoot?l():this.addEventListener("ready",()=>l())}};Dn.TEMPLATE_CACHE={};let ei=Dn;const ti=`<style>
|
|
140
140
|
:host {
|
|
141
141
|
display: block;
|
|
142
142
|
}
|
|
@@ -197,36 +197,39 @@ sd-z-layout:not(:last-of-type) {
|
|
|
197
197
|
<div class="root">
|
|
198
198
|
<slot></slot>
|
|
199
199
|
</div>
|
|
200
|
-
`,Ze=class Ze extends
|
|
201
|
-
Please consider to apply such margins inside these elements instead.`);return}}}})}currentColumnWidth(){for(const
|
|
202
|
-
`+
|
|
203
|
-
|
|
200
|
+
`,Ze=class Ze extends ei{constructor(){super(),this.fillers=[],this.lastKnownWidth=-1,this.debounced={}}is(){return Ze.ID}template(){const l=document.createElement("template");return l.innerHTML=ti,l}get fixedColumns(){return this.hasAttribute("fixed-columns")&&this.getAttribute("fixed-columns")!=="false"}set fixedColumns(l){l?this.setAttribute("fixed-columns",""):this.removeAttribute("fixed-columns")}get columnWidth(){return this.hasAttribute("column-width")?this.getAttribute("column-width"):getComputedStyle(this).getPropertyValue("--z-layout-column-width")}set columnWidth(l){this.setAttribute("column-width",l)}static get observedAttributes(){return["column-width"]}connectedCallback(){super.connectedCallback(),this.rootElement||(this.rootElement=this.shadowRoot.querySelector(".root"),this.isGridLayoutSupported()?this.rootElement.className="root grid-variant":(this.rootElement.className="root flex-variant",this.childListObserver=new MutationObserver(l=>{l.reduce((f,r)=>[...f,...r.addedNodes,...r.removedNodes],[]).filter(f=>(f.className||"").indexOf("filler")===-1).length>0&&this.debounce("update-fillers",()=>{this.updateFillers()})}),this.resizeObserver=new ResizeObserver((l,m)=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.debounce("update-fillers",()=>{this.updateFillers()}))})),this.checkMarginUsageOnDirectChildren()),this.childListObserver&&this.childListObserver.observe(this,{childList:!0}),this.resizeObserver&&this.resizeObserver.observe(this)}attributeChangedCallback(){this.onColumnWidthChange()}isGridLayoutSupported(){const l=navigator.userAgent.indexOf("Edge/")>-1,m=window,f=m.CSS&&m.CSS.supports;return!l&&f&&CSS.supports("display","grid")}updateFillers(){if(this.childElementCount>0)if(this.fixedColumns)this.fillers.length>0&&(this.fillers.forEach(l=>this.removeChild(l)),this.fillers=[]);else{let l=Number.POSITIVE_INFINITY,m;for(;this.currentColumnWidth()<l;)l=this.currentColumnWidth(),m=this.appendFiller(),this.flushShadyDomChanges();this.fillers.length=this.fillers.length-1,this.removeChild(m);const f=this.offsetWidth/l;if(isFinite(f))for(;f-1>this.fillers.length;)this.appendFiller()}}appendFiller(){const l=document.createElement("div");return l.className="filler",this.fillers.push(l),this.appendChild(l),l}flushShadyDomChanges(){const l=window.ShadyDOM;l&&l.flush&&l.flush()}checkMarginUsageOnDirectChildren(){requestAnimationFrame(()=>{for(let l=0;l<this.children.length;l++){const m=this.children[l];if(m.className.indexOf("filler")===-1){const f=getComputedStyle(m);if(parseInt(f.marginLeft,10)!==0||parseInt(f.marginRight,10)!==0){console.warn(`[sd-z-layout] It is not recommended to use horizontal margins on direct children of the sd-z-layout element because the flex-variant (which is used in browsers without css grid support) might have layouting problems.
|
|
201
|
+
Please consider to apply such margins inside these elements instead.`);return}}}})}currentColumnWidth(){for(const l of this.children)if(l.offsetWidth)return l.offsetWidth}onColumnWidthChange(){const l=window.ShadyCSS;this.hasAttribute("column-width")?(this.style.setProperty("--z-layout-column-width",this.getAttribute("column-width")),l&&l.styleSubtree(this,{"--z-layout-column-width":this.getAttribute("column-width")})):(this.style.removeProperty("--z-layout-column-width"),l&&l.styleSubtree(this,{"--z-layout-column-width":""}))}disconnectedCallback(){this.childListObserver&&this.childListObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect()}debounce(l,m){this.debounced[l]||(this.debounced[l]=!0,requestAnimationFrame(()=>{delete this.debounced[l],m()}))}};Ze.ID="sd-z-layout";let Pe=Ze;customElements.get(Pe.ID)||customElements.define(Pe.ID,Pe);function Un(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ni(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var l=a.default;if(typeof l=="function"){var m=function f(){var r=!1;try{r=this instanceof f}catch{}return r?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};m.prototype=l.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(a).forEach(function(f){var r=Object.getOwnPropertyDescriptor(a,f);Object.defineProperty(m,f,r.get?r:{enumerable:!0,get:function(){return a[f]}})}),m}var $e={exports:{}},cn;function ri(){if(cn)return $e.exports;cn=1;var a=String,l=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return $e.exports=l(),$e.exports.createColors=l,$e.exports}const ii={},si=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"})),le=ni(si);var ut,un;function Bt(){if(un)return ut;un=1;let a=ri(),l=le;class m extends Error{constructor(r,d,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 d<"u"&&typeof s<"u"&&(typeof d=="number"?(this.line=d,this.column=s):(this.line=d.line,this.column=d.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 d=this.source;r==null&&(r=a.isColorSupported);let s=n=>n,g=n=>n,v=n=>n;if(r){let{bold:n,gray:c,red:h}=a.createColors(!0);g=p=>n(h(p)),s=p=>c(p),l&&(v=p=>l(p))}let u=d.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,c)=>{let h=e+1+c,p=" "+(" "+h).slice(-t)+" | ";if(h===this.line){if(n.length>160){let k=20,w=Math.max(0,this.column-k),y=Math.max(this.column+k,this.endColumn+k),b=n.slice(w,y),S=s(p.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,k-1)).replace(/[^\t]/g," ");return g(">")+s(p)+v(b)+`
|
|
202
|
+
`+S+g("^")}let E=s(p.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return g(">")+s(p)+v(n)+`
|
|
203
|
+
`+E+g("^")}return" "+s(p)+v(n)}).join(`
|
|
204
|
+
`)}toString(){let r=this.showSourceCode();return r&&(r=`
|
|
204
205
|
|
|
205
|
-
`+
|
|
206
|
-
`),this.name+": "+this.message+
|
|
206
|
+
`+r+`
|
|
207
|
+
`),this.name+": "+this.message+r}}return ut=m,m.default=m,ut}var ht,hn;function Fn(){if(hn)return ht;hn=1;const a={after:`
|
|
207
208
|
`,beforeClose:`
|
|
208
209
|
`,beforeComment:`
|
|
209
210
|
`,beforeDecl:`
|
|
210
211
|
`,beforeOpen:" ",beforeRule:`
|
|
211
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
212
|
-
`)){let
|
|
213
|
-
`)&&(
|
|
214
|
-
`)&&(
|
|
215
|
-
`)&&(
|
|
216
|
-
`)&&(
|
|
217
|
-
`);return
|
|
218
|
-
`?(
|
|
219
|
-
`);n=new Array(o.length);let s=0;for(let l=0,a=o.length;l<a;l++)n[l]=s,s+=o[l].length+1;this[ct]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let o=n.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<n[s])o=s-1;else if(e>=n[s+1])r=s+1;else{r=s;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:xt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:r,line:n}));let a;wt(s.source)?a=_e(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||_e(this.map.mapFile));let c={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Qt)c.file=Qt(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(s.source);return h&&(c.source=h),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Je=De;De.default=De;at&&at.registerInput&&at.registerInput(De);let{SourceMapConsumer:Cn,SourceMapGenerator:$e}=j,{dirname:Be,relative:On,resolve:_n,sep:An}=j,{pathToFileURL:tn}=j,vr=Je,Er=!!(Cn&&$e),Sr=!!(Be&&_n&&On&&An),kr=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
212
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l(f){return f[0].toUpperCase()+f.slice(1)}class m{constructor(r){this.builder=r}atrule(r,d){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||"")+(d?";":"");this.builder(s+g+v,r)}}beforeAfter(r,d){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):d==="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(`
|
|
213
|
+
`)){let u=this.raw(r,null,"indent");if(u.length)for(let e=0;e<v;e++)s+=u}return s}block(r,d){let s=this.raw(r,"between","beforeOpen");this.builder(d+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 d=r.nodes.length-1;for(;d>0&&r.nodes[d].type==="comment";)d-=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,d!==g||s)}}comment(r){let d=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+d+r.text+s+"*/",r)}decl(r,d){let s=this.raw(r,"between","colon"),g=r.prop+s+this.rawValue(r,"value");r.important&&(g+=r.raws.important||" !important"),d&&(g+=";"),this.builder(g,r)}document(r){this.body(r)}raw(r,d,s){let g;if(s||(s=d),d&&(g=r.raws[d],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 a[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"+l(s);this[e]?g=this[e](u,r):u.walk(i=>{if(g=i.raws[d],typeof g<"u")return!1})}return typeof g>"u"&&(g=a[s]),u.rawCache[s]=g,g}rawBeforeClose(r){let d;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return d=s.raws.after,d.includes(`
|
|
214
|
+
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawBeforeComment(r,d){let s;return r.walkComments(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
|
|
215
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(d,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,d){let s;return r.walkDecls(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
|
|
216
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(d,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let d;return r.walk(s=>{if(s.type!=="decl"&&(d=s.raws.between,typeof d<"u"))return!1}),d}rawBeforeRule(r){let d;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return d=s.raws.before,d.includes(`
|
|
217
|
+
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawColon(r){let d;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return d=s.raws.between.replace(/[^\s:]/g,""),!1}),d}rawEmptyBody(r){let d;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(d=s.raws.after,typeof d<"u"))return!1}),d}rawIndent(r){if(r.raws.indent)return r.raws.indent;let d;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(`
|
|
218
|
+
`);return d=v[v.length-1],d=d.replace(/\S/g,""),!1}}),d}rawSemicolon(r){let d;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(d=s.raws.semicolon,typeof d<"u"))return!1}),d}rawValue(r,d){let s=r[d],g=r.raws[d];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,d){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,d)}}return ht=m,m.default=m,ht}var dt,dn;function Ke(){if(dn)return dt;dn=1;let a=Fn();function l(m,f){new a(f).stringify(m)}return dt=l,l.default=l,dt}var qe={},fn;function Dt(){return fn||(fn=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var ft,pn;function Je(){if(pn)return ft;pn=1;let a=Bt(),l=Fn(),m=Ke(),{isClean:f,my:r}=Dt();function d(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(c=>d(c,e)):(n==="object"&&t!==null&&(t=d(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]===`
|
|
219
|
+
`?(e=1,i+=1):e+=1}return t}class g{get proxyOf(){return this}constructor(u={}){this.raws={},this[f]=!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=d(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 a(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[f]=!0}markDirty(){if(this[f]){this[f]=!1;let u=this;for(;u=u.parent;)u[f]=!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),c=n+u;for(let h=n;h<c;h++)t[h]===`
|
|
220
|
+
`?(e=1,i+=1):e+=1;return{column:e,line:i,offset:c}}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 c=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(u.word);c!==-1&&(i=this.positionInside(c),t=this.positionInside(c+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 l().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 c in this){if(!Object.prototype.hasOwnProperty.call(this,c)||c==="parent"||c==="proxyCache")continue;let h=this[c];if(Array.isArray(h))i[c]=h.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,e):p);else if(typeof h=="object"&&h.toJSON)i[c]=h.toJSON(null,e);else if(c==="source"){if(h==null)continue;let p=e.get(h.input);p==null&&(p=n,e.set(h.input,n),n++),i[c]={end:h.end,inputId:p,start:h.start}}else i[c]=h}return t&&(i.inputs=[...e.keys()].map(c=>c.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(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 ft=g,g.default=g,ft}var pt,gn;function Ve(){if(gn)return pt;gn=1;let a=Je();class l extends a{constructor(f){super(f),this.type="comment"}}return pt=l,l.default=l,pt}var gt,mn;function Xe(){if(mn)return gt;mn=1;let a=Je();class l extends a{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(f){f&&typeof f.value<"u"&&typeof f.value!="string"&&(f={...f,value:String(f.value)}),super(f),this.type="decl"}}return gt=l,l.default=l,gt}var mt,bn;function xe(){if(bn)return mt;bn=1;let a=Ve(),l=Xe(),m=Je(),{isClean:f,my:r}=Dt(),d,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[f]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends m{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...n){for(let c of n){let h=this.normalize(c,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 c of this.nodes)c.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let c=this.getIterator(),h,p;for(;this.indexes[c]<this.proxyOf.nodes.length&&(h=this.indexes[c],p=n(this.proxyOf.nodes[h],h),p!==!1);)this.indexes[c]+=1;return delete this.indexes[c],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,c){return c==="proxyOf"?n:n[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...h)=>n[c](...h.map(p=>typeof p=="function"?(E,k)=>p(E.toProxy(),k):p)):c==="every"||c==="some"?h=>n[c]((p,...E)=>h(p.toProxy(),...E)):c==="root"?()=>n.root().toProxy():c==="nodes"?n.nodes.map(h=>h.toProxy()):c==="first"||c==="last"?n[c].toProxy():n[c]:n[c]},set(n,c,h){return n[c]===h||(n[c]=h,(c==="name"||c==="params"||c==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,c){let h=this.index(n),p=this.normalize(c,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let k of p)this.proxyOf.nodes.splice(h+1,0,k);let E;for(let k in this.indexes)E=this.indexes[k],h<E&&(this.indexes[k]=E+p.length);return this.markDirty(),this}insertBefore(n,c){let h=this.index(n),p=h===0?"prepend":!1,E=this.normalize(c,this.proxyOf.nodes[h],p).reverse();h=this.index(n);for(let w of E)this.proxyOf.nodes.splice(h,0,w);let k;for(let w in this.indexes)k=this.indexes[w],h<=k&&(this.indexes[w]=k+E.length);return this.markDirty(),this}normalize(n,c){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 l(n)]}else if(n.selector||n.selectors)n=[new v(n)];else if(n.name)n=[new d(n)];else if(n.text)n=[new a(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[f]&&e(p),p.raws||(p.raws={}),typeof p.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(p.raws.before=c.raws.before.replace(/\S/g,"")),p.parent=this.proxyOf,p))}prepend(...n){n=n.reverse();for(let c of n){let h=this.normalize(c,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 c;for(let h in this.indexes)c=this.indexes[h],c>=n&&(this.indexes[h]=c-1);return this.markDirty(),this}replaceValues(n,c,h){return h||(h=c,c={}),this.walkDecls(p=>{c.props&&!c.props.includes(p.prop)||c.fast&&!p.value.includes(c.fast)||(p.value=p.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((c,h)=>{let p;try{p=n(c,h)}catch(E){throw c.addToError(E)}return p!==!1&&c.walk&&(p=c.walk(n)),p})}walkAtRules(n,c){return c?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="atrule"&&n.test(h.name))return c(h,p)}):this.walk((h,p)=>{if(h.type==="atrule"&&h.name===n)return c(h,p)}):(c=n,this.walk((h,p)=>{if(h.type==="atrule")return c(h,p)}))}walkComments(n){return this.walk((c,h)=>{if(c.type==="comment")return n(c,h)})}walkDecls(n,c){return c?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="decl"&&n.test(h.prop))return c(h,p)}):this.walk((h,p)=>{if(h.type==="decl"&&h.prop===n)return c(h,p)}):(c=n,this.walk((h,p)=>{if(h.type==="decl")return c(h,p)}))}walkRules(n,c){return c?n instanceof RegExp?this.walk((h,p)=>{if(h.type==="rule"&&n.test(h.selector))return c(h,p)}):this.walk((h,p)=>{if(h.type==="rule"&&h.selector===n)return c(h,p)}):(c=n,this.walk((h,p)=>{if(h.type==="rule")return c(h,p)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{v=t},i.registerAtRule=t=>{d=t},i.registerRoot=t=>{g=t},mt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,d.prototype):t.type==="rule"?Object.setPrototypeOf(t,v.prototype):t.type==="decl"?Object.setPrototypeOf(t,l.prototype):t.type==="comment"?Object.setPrototypeOf(t,a.prototype):t.type==="root"&&Object.setPrototypeOf(t,g.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},mt}var bt,yn;function Ut(){if(yn)return bt;yn=1;let a=xe();class l extends a{constructor(f){super(f),this.type="atrule"}append(...f){return this.proxyOf.nodes||(this.nodes=[]),super.append(...f)}prepend(...f){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...f)}}return bt=l,l.default=l,a.registerAtRule(l),bt}var yt,wn;function Ft(){if(wn)return yt;wn=1;let a=xe(),l,m;class f extends a{constructor(d){super({type:"document",...d}),this.nodes||(this.nodes=[])}toResult(d={}){return new l(new m,this,d).stringify()}}return f.registerLazyResult=r=>{l=r},f.registerProcessor=r=>{m=r},yt=f,f.default=f,yt}var wt,vn;function oi(){if(vn)return wt;vn=1;let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wt={nanoid:(f=21)=>{let r="",d=f|0;for(;d--;)r+=a[Math.random()*64|0];return r},customAlphabet:(f,r=21)=>(d=r)=>{let s="",g=d|0;for(;g--;)s+=f[Math.random()*f.length|0];return s}},wt}var vt,xn;function $n(){if(xn)return vt;xn=1;let{existsSync:a,readFileSync:l}=le,{dirname:m,join:f}=le,{SourceMapConsumer:r,SourceMapGenerator:d}=le;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,/,c=u.match(t)||u.match(n);if(c)return decodeURIComponent(u.substr(c[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),a(u))return this.mapFile=u,l(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 d.fromSourceMap(e).toString();if(e instanceof d)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=f(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 xt,En;function Qe(){if(En)return xt;En=1;let{nanoid:a}=oi(),{isAbsolute:l,resolve:m}=le,{SourceMapConsumer:f,SourceMapGenerator:r}=le,{fileURLToPath:d,pathToFileURL:s}=le,g=Bt(),v=$n(),u=le,e=Symbol("lineToIndexCache"),i=!!(f&&r),t=!!(m&&l);function n(h){if(h[e])return h[e];let p=h.css.split(`
|
|
221
|
+
`),E=new Array(p.length),k=0;for(let w=0,y=p.length;w<y;w++)E[w]=k,k+=p[w].length+1;return h[e]=E,E}class c{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)||l(E.from)?this.file=E.from:this.file=m(E.from)),t&&i){let k=new v(this.css,E);if(k.text){this.map=k;let w=k.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(p,E,k,w={}){let y,b,S,R,I;if(E&&typeof E=="object"){let T=E,J=k;if(typeof T.offset=="number"){R=T.offset;let q=this.fromOffset(R);E=q.line,k=q.col}else E=T.line,k=T.column,R=this.fromLineAndColumn(E,k);if(typeof J.offset=="number"){S=J.offset;let q=this.fromOffset(S);b=q.line,y=q.col}else b=J.line,y=J.column,S=this.fromLineAndColumn(J.line,J.column)}else if(k)R=this.fromLineAndColumn(E,k);else{R=E;let T=this.fromOffset(R);E=T.line,k=T.col}let U=this.origin(E,k,b,y);return U?I=new g(p,U.endLine===void 0?U.line:{column:U.column,line:U.line},U.endLine===void 0?U.column:{column:U.endColumn,line:U.endLine},U.source,U.file,w.plugin):I=new g(p,b===void 0?E:{column:k,line:E},b===void 0?k:{column:y,line:b},this.css,this.file,w.plugin),I.input={column:k,endColumn:y,endLine:b,endOffset:S,line:E,offset:R,source:this.css},this.file&&(s&&(I.input.url=s(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(p,E){return n(this)[p-1]+E-1}fromOffset(p){let E=n(this),k=E[E.length-1],w=0;if(p>=k)w=E.length-1;else{let y=E.length-2,b;for(;w<y;)if(b=w+(y-w>>1),p<E[b])y=b-1;else if(p>=E[b+1])w=b+1;else{w=b;break}}return{col:p-E[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:m(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,E,k,w){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:p});if(!b.source)return!1;let S;typeof k=="number"&&(S=y.originalPositionFor({column:w,line:k}));let R;l(b.source)?R=s(b.source):R=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let I={column:b.column,endColumn:S&&S.column,endLine:S&&S.line,line:b.line,url:R.toString()};if(R.protocol==="file:")if(d)I.file=d(R);else throw new Error("file: protocol is not available in this PostCSS build");let U=y.sourceContentFor(b.source);return U&&(I.source=U),I}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 xt=c,c.default=c,u&&u.registerInput&&u.registerInput(c),xt}var Et,kn;function Le(){if(kn)return Et;kn=1;let a=xe(),l,m;class f extends a{constructor(d){super(d),this.type="root",this.nodes||(this.nodes=[])}normalize(d,s,g){let v=super.normalize(d);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(d,s){let g=this.index(d);return!s&&g===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[g].raws.before),super.removeChild(d)}toResult(d={}){return new l(new m,this,d).stringify()}}return f.registerLazyResult=r=>{l=r},f.registerProcessor=r=>{m=r},Et=f,f.default=f,a.registerRoot(f),Et}var kt,Sn;function qn(){if(Sn)return kt;Sn=1;let a={comma(l){return a.split(l,[","],!0)},space(l){let m=[" ",`
|
|
222
|
+
`," "];return a.split(l,m)},split(l,m,f){let r=[],d="",s=!1,g=0,v=!1,u="",e=!1;for(let i of l)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?(d!==""&&r.push(d.trim()),d="",s=!1):d+=i;return(f||d!=="")&&r.push(d.trim()),r}};return kt=a,a.default=a,kt}var St,Cn;function $t(){if(Cn)return St;Cn=1;let a=xe(),l=qn();class m extends a{get selectors(){return l.comma(this.selector)}set selectors(r){let d=this.selector?this.selector.match(/,\s*/):null,s=d?d[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return St=m,m.default=m,a.registerRule(m),St}var Ct,On;function ai(){if(On)return Ct;On=1;let a=Ut(),l=Ve(),m=Xe(),f=Qe(),r=$n(),d=Le(),s=$t();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__:f.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 d(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new l(i);if(i.type==="atrule")return new a(i);throw new Error("Unknown node type: "+v.type)}return Ct=g,g.default=g,Ct}var Ot,_n;function Wn(){if(_n)return Ot;_n=1;let{dirname:a,relative:l,resolve:m,sep:f}=le,{SourceMapConsumer:r,SourceMapGenerator:d}=le,{pathToFileURL:s}=le,g=Qe(),v=!!(r&&d),u=!!(a&&m&&l&&f);class e{constructor(t,n,c,h){this.stringify=t,this.mapOpts=c.map||{},this.root=n,this.opts=c,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=`
|
|
220
223
|
`;this.css.includes(`\r
|
|
221
|
-
`)&&(
|
|
222
|
-
`),this.css+=
|
|
223
|
-
`),t=l.length-s):t+=l.length,a&&c!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?Be(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Be(_n(n,this.mapOpts.annotation)));let r=On(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new vr(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tn){let n=tn(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;An==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Rn=kr;let Cr=Ke,vt=class extends Cr{constructor(e){super(e),this.type="comment"}};var Xe=vt;vt.default=vt;let{isClean:Nn,my:Mn}=xe,Tn=Ve,Pn=Xe,Or=Ke,Ln,Rt,Nt,In;function zn(i){return i.map(e=>(e.nodes&&(e.nodes=zn(e.nodes)),delete e.source,e))}function jn(i){if(i[Nn]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)jn(e)}let Z=class $n extends Or{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let r of n)this.proxyOf.nodes.push(r)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?n=>e[t]((r,...o)=>n(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of r)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n,0,l);let s;for(let l in this.indexes)s=this.indexes[l],n<=s&&(this.indexes[l]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=zn(Ln(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Tn(e)]}else if(e.selector)e=[new Rt(e)];else if(e.name)e=[new Nt(e)];else if(e.text)e=[new Pn(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Mn]||$n.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Nn]&&jn(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let r of n)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type==="atrule"&&n.name===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="atrule")return t(n,r)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type==="decl"&&n.prop===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="decl")return t(n,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type==="rule"&&n.selector===e)return t(n,r)}):(t=e,this.walk((n,r)=>{if(n.type==="rule")return t(n,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Z.registerParse=i=>{Ln=i};Z.registerRule=i=>{Rt=i};Z.registerAtRule=i=>{Nt=i};Z.registerRoot=i=>{In=i};var ee=Z;Z.default=Z;Z.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Nt.prototype):i.type==="rule"?Object.setPrototypeOf(i,Rt.prototype):i.type==="decl"?Object.setPrototypeOf(i,Tn.prototype):i.type==="comment"?Object.setPrototypeOf(i,Pn.prototype):i.type==="root"&&Object.setPrototypeOf(i,In.prototype),i[Mn]=!0,i.nodes&&i.nodes.forEach(e=>{Z.rebuild(e)})};let _r=ee,Bn,Dn,pe=class extends _r{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Bn(new Dn,this,e).stringify()}};pe.registerLazyResult=i=>{Bn=i};pe.registerProcessor=i=>{Dn=i};var Mt=pe;pe.default=pe;let Et=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Un=Et;Et.default=Et;let Ar=Un,St=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Ar(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Tt=St;St.default=St;const ut=39,nn=34,Ae=92,rn=47,Re=10,ce=32,Ne=12,Me=9,Te=13,Rr=91,Nr=93,Mr=40,Tr=41,Pr=123,Lr=125,Ir=59,zr=42,jr=58,$r=64,Pe=/[\t\n\f\r "#'()/;[\\\]{}]/g,Le=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Br=/.[\r\n"'(/\\]/,sn=/[\da-f]/i;var Dr=function(e,t={}){let n=e.css.valueOf(),r=t.ignoreErrors,o,s,l,a,c,h,b,g,_,R,I=n.length,m=0,F=[],W=[];function V(){return m}function z($){throw e.error("Unclosed "+$,m)}function H(){return W.length===0&&m>=I}function ae($){if(W.length)return W.pop();if(m>=I)return;let T=$?$.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case Re:case ce:case Me:case Te:case Ne:{s=m;do s+=1,o=n.charCodeAt(s);while(o===ce||o===Re||o===Me||o===Te||o===Ne);R=["space",n.slice(m,s)],m=s-1;break}case Rr:case Nr:case Pr:case Lr:case jr:case Ir:case Tr:{let J=String.fromCharCode(o);R=[J,J,m];break}case Mr:{if(g=F.length?F.pop()[1]:"",_=n.charCodeAt(m+1),g==="url"&&_!==ut&&_!==nn&&_!==ce&&_!==Re&&_!==Me&&_!==Ne&&_!==Te){s=m;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(r||T){s=m;break}else z("bracket");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,h=!h}while(h);R=["brackets",n.slice(m,s+1),m,s],m=s}else s=n.indexOf(")",m+1),a=n.slice(m,s+1),s===-1||Br.test(a)?R=["(","(",m]:(R=["brackets",a,m,s],m=s);break}case ut:case nn:{l=o===ut?"'":'"',s=m;do{if(h=!1,s=n.indexOf(l,s+1),s===-1)if(r||T){s=m+1;break}else z("string");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,h=!h}while(h);R=["string",n.slice(m,s+1),m,s],m=s;break}case $r:{Pe.lastIndex=m+1,Pe.test(n),Pe.lastIndex===0?s=n.length-1:s=Pe.lastIndex-2,R=["at-word",n.slice(m,s+1),m,s],m=s;break}case Ae:{for(s=m,c=!0;n.charCodeAt(s+1)===Ae;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==rn&&o!==ce&&o!==Re&&o!==Me&&o!==Te&&o!==Ne&&(s+=1,sn.test(n.charAt(s)))){for(;sn.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===ce&&(s+=1)}R=["word",n.slice(m,s+1),m,s],m=s;break}default:{o===rn&&n.charCodeAt(m+1)===zr?(s=n.indexOf("*/",m+2)+1,s===0&&(r||T?s=n.length:z("comment")),R=["comment",n.slice(m,s+1),m,s],m=s):(Le.lastIndex=m+1,Le.test(n),Le.lastIndex===0?s=n.length-1:s=Le.lastIndex-2,R=["word",n.slice(m,s+1),m,s],F.push(R),m=s);break}}return m++,R}function ne($){W.push($)}return{back:ne,endOfFile:H,nextToken:ae,position:V}};let Fn=ee,Ue=class extends Fn{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 Pt=Ue;Ue.default=Ue;Fn.registerAtRule(Ue);let Wn=ee,Hn,Gn,re=class extends Wn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of r)o.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Hn(new Gn,this,e).stringify()}};re.registerLazyResult=i=>{Hn=i};re.registerProcessor=i=>{Gn=i};var ve=re;re.default=re;Wn.registerRoot(re);let ge={comma(i){return ge.split(i,[","],!0)},space(i){let e=[" ",`
|
|
224
|
-
`," "];return ge.split(i,e)},split(i,e,t){let n=[],r="",o=!1,s=0,l=!1,a="",c=!1;for(let h of i)c?c=!1:h==="\\"?c=!0:l?h===a&&(l=!1):h==='"'||h==="'"?(l=!0,a=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&e.includes(h)&&(o=!0),o?(r!==""&&n.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&n.push(r.trim()),n}};var Zn=ge;ge.default=ge;let qn=ee,Ur=Zn,Fe=class extends qn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ur.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Lt=Fe;Fe.default=Fe;qn.registerRule(Fe);let Fr=Ve,Wr=Dr,Hr=Xe,Gr=Pt,Zr=ve,on=Lt;const ln={empty:!0,space:!0};function qr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let Kr=class{constructor(e){this.input=e,this.root=new Zr,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 Gr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,r,o,s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(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 n=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,n,r,o;for(let[s,l]of e.entries()){if(n=l,r=n[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=n}return!1}comment(e){let t=new Hr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Wr(this.input)}decl(e,t){let n=new Fr;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||qr(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),b="";for(let g=c;g>0;g--){let _=h[g][0];if(b.trim().indexOf("!")===0&&_!=="space")break;b=h.pop()[1]+b}b.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=b,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new on;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")o||(o=c),s.push(n==="("?")":"]");else if(l&&r&&n==="{")o||(o=c),s.push("}");else if(s.length===0)if(n===";")if(r){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(r=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="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,n,r){let o,s,l=n.length,a="",c=!0,h,b;for(let g=0;g<l;g+=1)o=n[g],s=o[0],s==="space"&&g===l-1&&!r?c=!1:s==="comment"?(b=n[g-1]?n[g-1][0]:"empty",h=n[g+1]?n[g+1][0]:"empty",!ln[b]&&!ln[h]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let g=n.reduce((_,R)=>_+R[1],"");e.raws[t]={raw:g,value:a}}e[t]=a}rule(e){e.pop();let t=new on;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Vr=Kr;let Jr=ee,Xr=Vr,Qr=Je;function We(i,e){let t=new Qr(i,e),n=new Xr(t);try{n.parse()}catch(r){throw r}return n.root}var It=We;We.default=We;Jr.registerParse(We);let{isClean:U,my:Yr}=xe,es=Rn,ts=qe,ns=ee,is=Mt,an=Tt,rs=It,ss=ve;const os={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ls={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},as={Once:!0,postcssPlugin:!0,prepare:!0},se=0;function ue(i){return typeof i=="object"&&typeof i.then=="function"}function Kn(i){let e=!1,t=os[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,se,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,se,t+"Exit"]:[t,t+"Exit"]}function cn(i){let e;return i.type==="document"?e=["Document",se,"DocumentExit"]:i.type==="root"?e=["Root",se,"RootExit"]:e=Kn(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function kt(i){return i[U]=!1,i.nodes&&i.nodes.forEach(e=>kt(e)),i}let Ct={},oe=class Vn{constructor(e,t,n){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=kt(t);else if(t instanceof Vn||t instanceof an)r=kt(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=rs;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{r=o(t,n)}catch(s){this.processed=!0,this.error=s}r&&!r[Yr]&&ns.rebuild(r)}this.result=new an(e,r,n),this.helpers={...Ct,postcss:Ct,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,n,r)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!ls[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!as[n])if(typeof t[n]=="object")for(let r in t[n])r==="*"?e(t,n,t[n][r]):e(t,n+"-"+r.toLowerCase(),t[n][r]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(ue(n))try{await n}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[U];){e[U]=!0;let t=[cn(e)];for(;t.length>0;){let n=this.visitTick(t);if(ue(n))try{await n}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>n(o,this.helpers));await Promise.all(r)}else await n(e,this.helpers)}catch(r){throw this.handleError(r)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ue(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ts;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new es(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ue(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[U];)e[U]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ue(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let s=t.iterator,l;for(;l=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!l[U]){l[U]=!0,e.push(cn(l));return}t.iterator=0,delete n.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===se){n.nodes&&n.nodes.length&&(n[U]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[U]=!0;let t=Kn(e);for(let n of t)if(n===se)e.nodes&&e.each(r=>{r[U]||this.walkSync(r)});else{let r=this.listeners[n];if(r&&this.visitSync(r,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};oe.registerPostcss=i=>{Ct=i};var Jn=oe;oe.default=oe;ss.registerLazyResult(oe);is.registerLazyResult(oe);let cs=Rn,us=qe,hs=It;const ds=Tt;let Ot=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let r,o=us;this.result=new ds(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new cs(o,r,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=hs;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var fs=Ot;Ot.default=Ot;let ps=fs,gs=Jn,ms=Mt,bs=ve,me=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new ps(this,e,t):new gs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ys=me;me.default=me;bs.registerProcessor(me);ms.registerProcessor(me);let ws=Ve,xs=kn,vs=Xe,Es=Pt,Ss=Je,ks=ve,Cs=Lt;function be(i,e){if(Array.isArray(i))return i.map(r=>be(r));let{inputs:t,...n}=i;if(t){e=[];for(let r of t){let o={...r,__proto__:Ss.prototype};o.map&&(o.map={...o.map,__proto__:xs.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(r=>be(r,e))),n.source){let{inputId:r,...o}=n.source;n.source=o,r!=null&&(n.source.input=e[r])}if(n.type==="root")return new ks(n);if(n.type==="decl")return new ws(n);if(n.type==="rule")return new Cs(n);if(n.type==="comment")return new vs(n);if(n.type==="atrule")return new Es(n);throw new Error("Unknown node type: "+i.type)}var Os=be;be.default=be;var un={};let _s=At,Xn=Ve,As=Jn,Rs=ee,zt=ys,Ns=qe,Ms=Os,Qn=Mt,Ts=Un,Yn=Xe,ei=Pt,Ps=Tt,Ls=Je,Is=It,zs=Zn,ti=Lt,ni=ve,js=Ke;function E(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new zt(i)}E.plugin=function(e,t){let n=!1;function r(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
225
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),un.LANG&&un.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
226
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...s);return l.postcssPlugin=e,l.postcssVersion=new zt().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,l,a){return E([r(a)]).process(s,l)},r};E.stringify=Ns;E.parse=Is;E.fromJSON=Ms;E.list=zs;E.comment=i=>new Yn(i);E.atRule=i=>new ei(i);E.decl=i=>new Xn(i);E.rule=i=>new ti(i);E.root=i=>new ni(i);E.document=i=>new Qn(i);E.CssSyntaxError=_s;E.Declaration=Xn;E.Container=Rs;E.Processor=zt;E.Document=Qn;E.Comment=Yn;E.Warning=Ts;E.AtRule=ei;E.Result=Ps;E.Input=Ls;E.Rule=ti;E.Root=ni;E.Node=js;As.registerPostcss(E);var $s=E;E.default=E;const O=xn($s);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 Bs=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&hn(s.source.input.file,r)||o.length&&s.source.input.file&&!hn(s.source.input.file,o)||s.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&Ds(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,l):n+c))})}};function hn(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function Ds(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const Us=xn(Bs),Fs="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}",Ws="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 Hs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ii(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ii(t)}),i}class dn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ri(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function K(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const r in n)t[r]=n[r]}),t}const Gs="</span>",fn=i=>!!i.scope,Zs=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,r)=>`${n}${"_".repeat(r+1)}`)].join(" ")}return`${e}${i}`};class qs{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ri(e)}openNode(e){if(!fn(e))return;const t=Zs(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){fn(e)&&(this.buffer+=Gs)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const pn=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class jt{constructor(){this.rootNode=pn(),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=pn({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{jt._collapse(t)}))}}class Ks extends jt{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new qs(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ye(i){return i?typeof i=="string"?i:i.source:null}function si(i){return te("(?=",i,")")}function Vs(i){return te("(?:",i,")*")}function Js(i){return te("(?:",i,")?")}function te(...i){return i.map(e=>ye(e)).join("")}function Xs(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function $t(...i){return"("+(Xs(i).capture?"":"?:")+i.map(e=>ye(e)).join("|")+")"}function oi(i){return new RegExp(i.toString()+"|").exec("").length-1}function Qs(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Ys=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Bt(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const r=t;let o=ye(n),s="";for(;o.length>0;){const l=Ys.exec(o);if(!l){s+=o;break}s+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+r):(s+=l[0],l[0]==="("&&t++)}return s}).map(n=>`(${n})`).join(e)}const eo=/\b\B/,li="[a-zA-Z]\\w*",Dt="[a-zA-Z_]\\w*",ai="\\b\\d+(\\.\\d+)?",ci="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ui="\\b(0b[01]+)",to="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",no=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=te(e,/.*\b/,i.binary,/\b.*/)),K({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},we={begin:"\\\\[\\s\\S]",relevance:0},io={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[we]},ro={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[we]},so={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Qe=function(i,e,t={}){const n=K({scope:"comment",begin:i,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=$t("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:te(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},oo=Qe("//","$"),lo=Qe("/\\*","\\*/"),ao=Qe("#","$"),co={scope:"number",begin:ai,relevance:0},uo={scope:"number",begin:ci,relevance:0},ho={scope:"number",begin:ui,relevance:0},fo={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[we,{begin:/\[/,end:/\]/,relevance:0,contains:[we]}]},po={scope:"title",begin:li,relevance:0},go={scope:"title",begin:Dt,relevance:0},mo={begin:"\\.\\s*"+Dt,relevance:0},bo=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ie=Object.freeze({__proto__:null,APOS_STRING_MODE:io,BACKSLASH_ESCAPE:we,BINARY_NUMBER_MODE:ho,BINARY_NUMBER_RE:ui,COMMENT:Qe,C_BLOCK_COMMENT_MODE:lo,C_LINE_COMMENT_MODE:oo,C_NUMBER_MODE:uo,C_NUMBER_RE:ci,END_SAME_AS_BEGIN:bo,HASH_COMMENT_MODE:ao,IDENT_RE:li,MATCH_NOTHING_RE:eo,METHOD_GUARD:mo,NUMBER_MODE:co,NUMBER_RE:ai,PHRASAL_WORDS_MODE:so,QUOTE_STRING_MODE:ro,REGEXP_MODE:fo,RE_STARTERS_RE:to,SHEBANG:no,TITLE_MODE:po,UNDERSCORE_IDENT_RE:Dt,UNDERSCORE_TITLE_MODE:go});function yo(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function wo(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function xo(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=yo,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function vo(i,e){Array.isArray(i.illegal)&&(i.illegal=$t(...i.illegal))}function Eo(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function So(i,e){i.relevance===void 0&&(i.relevance=1)}const ko=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=te(t.beforeMatch,si(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},Co=["of","and","for","in","not","or","if","then","parent","list","value"],Oo="keyword";function hi(i,e,t=Oo){const n=Object.create(null);return typeof i=="string"?r(t,i.split(" ")):Array.isArray(i)?r(t,i):Object.keys(i).forEach(function(o){Object.assign(n,hi(i[o],e,o))}),n;function r(o,s){e&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const a=l.split("|");n[a[0]]=[o,_o(a[0],a[1])]})}}function _o(i,e){return e?Number(e):Ao(i)?0:1}function Ao(i){return Co.includes(i.toLowerCase())}const gn={},Y=i=>{console.error(i)},mn=(i,...e)=>{console.log(`WARN: ${i}`,...e)},ie=(i,e)=>{gn[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),gn[`${i}/${e}`]=!0)},He=new Error;function di(i,e,{key:t}){let n=0;const r=i[t],o={},s={};for(let l=1;l<=e.length;l++)s[l+n]=r[l],o[l+n]=!0,n+=oi(e[l-1]);i[t]=s,i[t]._emit=o,i[t]._multi=!0}function Ro(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw Y("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),He;if(typeof i.beginScope!="object"||i.beginScope===null)throw Y("beginScope must be object"),He;di(i,i.begin,{key:"beginScope"}),i.begin=Bt(i.begin,{joinWith:""})}}function No(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw Y("skip, excludeEnd, returnEnd not compatible with endScope: {}"),He;if(typeof i.endScope!="object"||i.endScope===null)throw Y("endScope must be object"),He;di(i,i.end,{key:"endScope"}),i.end=Bt(i.end,{joinWith:""})}}function Mo(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function To(i){Mo(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),Ro(i),No(i)}function Po(i){function e(s,l){return new RegExp(ye(s),"m"+(i.case_insensitive?"i":"")+(i.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+=oi(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 c=a.findIndex((b,g)=>g>0&&b!==void 0),h=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,h)}}class n{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(([c,h])=>a.addRule(c,h)),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 c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const h=this.getMatcher(0);h.lastIndex=this.lastIndex+1,c=h.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const l=new n;return s.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function o(s,l){const a=s;if(s.isCompiled)return a;[wo,Eo,To,ko].forEach(h=>h(s,l)),i.compilerExtensions.forEach(h=>h(s,l)),s.__beforeBegin=null,[xo,vo,So].forEach(h=>h(s,l)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=hi(s.keywords,i.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(s.begin||(s.begin=/\B|\b/),a.beginRe=e(a.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(a.endRe=e(a.end)),a.terminatorEnd=ye(a.end)||"",s.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(a.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(h){return Lo(h==="self"?s:h)})),s.contains.forEach(function(h){o(h,a)}),s.starts&&o(s.starts,l),a.matcher=r(a),a}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=K(i.classNameAliases||{}),o(i)}function fi(i){return i?i.endsWithParent||fi(i.starts):!1}function Lo(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return K(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:fi(i)?K(i,{starts:i.starts?K(i.starts):null}):Object.isFrozen(i)?K(i):i}var Io="11.9.0";class zo extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ht=ri,bn=K,yn=Symbol("nomatch"),jo=7,pi=function(i){const e=Object.create(null),t=Object.create(null),n=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ks};function a(u){return l.noHighlightRe.test(u)}function c(u){let f=u.className+" ";f+=u.parentNode?u.parentNode.className:"";const w=l.languageDetectRe.exec(f);if(w){const v=T(w[1]);return v||(mn(o.replace("{}",w[1])),mn("Falling back to no-highlight mode for this block.",u)),v?w[1]:"no-highlight"}return f.split(/\s+/).find(v=>a(v)||T(v))}function h(u,f,w){let v="",A="";typeof f=="object"?(v=u,w=f.ignoreIllegals,A=f.language):(ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),ie("10.7.0",`Please use highlight(code, options) instead.
|
|
227
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),A=u,v=f),w===void 0&&(w=!0);const P={code:v,language:A};X("before:highlight",P);const q=P.result?P.result:b(P.language,P.code,w);return q.code=P.code,X("after:highlight",q),q}function b(u,f,w,v){const A=Object.create(null);function P(d,p){return d.keywords[p]}function q(){if(!y.keywords){N.addText(k);return}let d=0;y.keywordPatternRe.lastIndex=0;let p=y.keywordPatternRe.exec(k),x="";for(;p;){x+=k.substring(d,p.index);const S=D.case_insensitive?p[0].toLowerCase():p[0],M=P(y,S);if(M){const[G,Ai]=M;if(N.addText(x),x="",A[S]=(A[S]||0)+1,A[S]<=jo&&(Ce+=Ai),G.startsWith("_"))x+=p[0];else{const Ri=D.classNameAliases[G]||G;B(p[0],Ri)}}else x+=p[0];d=y.keywordPatternRe.lastIndex,p=y.keywordPatternRe.exec(k)}x+=k.substring(d),N.addText(x)}function Se(){if(k==="")return;let d=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(k);return}d=b(y.subLanguage,k,!0,Gt[y.subLanguage]),Gt[y.subLanguage]=d._top}else d=_(k,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Ce+=d.relevance),N.__addSublanguage(d._emitter,d.language)}function L(){y.subLanguage!=null?Se():q(),k=""}function B(d,p){d!==""&&(N.startScope(p),N.addText(d),N.endScope())}function Ut(d,p){let x=1;const S=p.length-1;for(;x<=S;){if(!d._emit[x]){x++;continue}const M=D.classNameAliases[d[x]]||d[x],G=p[x];M?B(G,M):(k=G,q(),k=""),x++}}function Ft(d,p){return d.scope&&typeof d.scope=="string"&&N.openNode(D.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(B(k,D.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),k=""):d.beginScope._multi&&(Ut(d.beginScope,p),k="")),y=Object.create(d,{parent:{value:y}}),y}function Wt(d,p,x){let S=Qs(d.endRe,x);if(S){if(d["on:end"]){const M=new dn(d);d["on:end"](p,M),M.isMatchIgnored&&(S=!1)}if(S){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Wt(d.parent,p,x)}function Si(d){return y.matcher.regexIndex===0?(k+=d[0],1):(ot=!0,0)}function ki(d){const p=d[0],x=d.rule,S=new dn(x),M=[x.__beforeBegin,x["on:begin"]];for(const G of M)if(G&&(G(d,S),S.isMatchIgnored))return Si(p);return x.skip?k+=p:(x.excludeBegin&&(k+=p),L(),!x.returnBegin&&!x.excludeBegin&&(k=p)),Ft(x,d),x.returnBegin?0:p.length}function Ci(d){const p=d[0],x=f.substring(d.index),S=Wt(y,d,x);if(!S)return yn;const M=y;y.endScope&&y.endScope._wrap?(L(),B(p,y.endScope._wrap)):y.endScope&&y.endScope._multi?(L(),Ut(y.endScope,d)):M.skip?k+=p:(M.returnEnd||M.excludeEnd||(k+=p),L(),M.excludeEnd&&(k=p));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Ce+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ft(S.starts,d),M.returnEnd?0:p.length}function Oi(){const d=[];for(let p=y;p!==D;p=p.parent)p.scope&&d.unshift(p.scope);d.forEach(p=>N.openNode(p))}let ke={};function Ht(d,p){const x=p&&p[0];if(k+=d,x==null)return L(),0;if(ke.type==="begin"&&p.type==="end"&&ke.index===p.index&&x===""){if(k+=f.slice(p.index,p.index+1),!r){const S=new Error(`0 width match regex (${u})`);throw S.languageName=u,S.badRule=ke.rule,S}return 1}if(ke=p,p.type==="begin")return ki(p);if(p.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+x+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(p.type==="end"){const S=Ci(p);if(S!==yn)return S}if(p.type==="illegal"&&x==="")return 1;if(st>1e5&&st>p.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=x,x.length}const D=T(u);if(!D)throw Y(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const _i=Po(D);let rt="",y=v||_i;const Gt={},N=new l.__emitter(l);Oi();let k="",Ce=0,Q=0,st=0,ot=!1;try{if(D.__emitTokens)D.__emitTokens(f,N);else{for(y.matcher.considerAll();;){st++,ot?ot=!1:y.matcher.considerAll(),y.matcher.lastIndex=Q;const d=y.matcher.exec(f);if(!d)break;const p=f.substring(Q,d.index),x=Ht(p,d);Q=d.index+x}Ht(f.substring(Q))}return N.finalize(),rt=N.toHTML(),{language:u,value:rt,relevance:Ce,illegal:!1,_emitter:N,_top:y}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:u,value:ht(f),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:Q,context:f.slice(Q-100,Q+100),mode:d.mode,resultSoFar:rt},_emitter:N};if(r)return{language:u,value:ht(f),illegal:!1,relevance:0,errorRaised:d,_emitter:N,_top:y};throw d}}function g(u){const f={value:ht(u),illegal:!1,relevance:0,_top:s,_emitter:new l.__emitter(l)};return f._emitter.addText(u),f}function _(u,f){f=f||l.languages||Object.keys(e);const w=g(u),v=f.filter(T).filter(Ee).map(L=>b(L,u,!1));v.unshift(w);const A=v.sort((L,B)=>{if(L.relevance!==B.relevance)return B.relevance-L.relevance;if(L.language&&B.language){if(T(L.language).supersetOf===B.language)return 1;if(T(B.language).supersetOf===L.language)return-1}return 0}),[P,q]=A,Se=P;return Se.secondBest=q,Se}function R(u,f,w){const v=f&&t[f]||w;u.classList.add("hljs"),u.classList.add(`language-${v}`)}function I(u){let f=null;const w=c(u);if(a(w))return;if(X("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(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(u)),l.throwUnescapedHTML))throw new zo("One of your code blocks includes unescaped HTML.",u.innerHTML);f=u;const v=f.textContent,A=w?h(v,{language:w,ignoreIllegals:!0}):_(v);u.innerHTML=A.value,u.dataset.highlighted="yes",R(u,w,A.language),u.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(u.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),X("after:highlightElement",{el:u,result:A,text:v})}function m(u){l=bn(l,u)}const F=()=>{z(),ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){z(),ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let V=!1;function z(){if(document.readyState==="loading"){V=!0;return}document.querySelectorAll(l.cssSelector).forEach(I)}function H(){V&&z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",H,!1);function ae(u,f){let w=null;try{w=f(i)}catch(v){if(Y("Language definition for '{}' could not be registered.".replace("{}",u)),r)Y(v);else throw v;w=s}w.name||(w.name=u),e[u]=w,w.rawDefinition=f.bind(null,i),w.aliases&&J(w.aliases,{languageName:u})}function ne(u){delete e[u];for(const f of Object.keys(t))t[f]===u&&delete t[f]}function $(){return Object.keys(e)}function T(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function J(u,{languageName:f}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=f})}function Ee(u){const f=T(u);return f&&!f.disableAutodetect}function et(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=f=>{u["before:highlightBlock"](Object.assign({block:f.el},f))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=f=>{u["after:highlightBlock"](Object.assign({block:f.el},f))})}function tt(u){et(u),n.push(u)}function nt(u){const f=n.indexOf(u);f!==-1&&n.splice(f,1)}function X(u,f){const w=u;n.forEach(function(v){v[w]&&v[w](f)})}function it(u){return ie("10.7.0","highlightBlock will be removed entirely in v12.0"),ie("10.7.0","Please use highlightElement now."),I(u)}Object.assign(i,{highlight:h,highlightAuto:_,highlightAll:z,highlightElement:I,highlightBlock:it,configure:m,initHighlighting:F,initHighlightingOnLoad:W,registerLanguage:ae,unregisterLanguage:ne,listLanguages:$,getLanguage:T,registerAliases:J,autoDetection:Ee,inherit:bn,addPlugin:tt,removePlugin:nt}),i.debugMode=function(){r=!1},i.safeMode=function(){r=!0},i.versionString=Io,i.regex={concat:te,lookahead:si,either:$t,optional:Js,anyNumberOfTimes:Vs};for(const u in Ie)typeof Ie[u]=="object"&&ii(Ie[u]);return Object.assign(i,Ie),i},le=pi({});le.newInstance=()=>pi({});var $o=le;le.HighlightJS=le;le.default=le;const Ye=Hs($o),Ge="[A-Za-z$_][0-9A-Za-z$_]*",gi=["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"],mi=["true","false","null","undefined","NaN","Infinity"],bi=["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"],yi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vi=[].concat(wi,bi,yi);function Bo(i){const e=i.regex,t=(u,{after:f})=>{const w="</"+u[0].slice(1);return u.input.indexOf(w,f)!==-1},n=Ge,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(u,f)=>{const w=u[0].length+u.index,v=u.input[w];if(v==="<"||v===","){f.ignoreMatch();return}v===">"&&(t(u,{after:w})||f.ignoreMatch());let A;const P=u.input.substring(w);if(A=P.match(/^\s*=/)){f.ignoreMatch();return}if((A=P.match(/^\s+extends\s+/))&&A.index===0){f.ignoreMatch();return}}},l={$pattern:Ge,keyword:gi,literal:mi,built_in:vi,"variable.language":xi},a="[0-9](_?[0-9])*",c=`\\.(${a})`,h="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${h})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${h})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"css"}},I={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,g]},F={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},W=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,R,I,m,{match:/\$\d+/},b];g.contains=W.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(W)});const V=[].concat(F,g.contains),z=V.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(V)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:z},ae={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...bi,...yi]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(u){return e.concat("(?!",u.join("|"),")")}const et={match:e.concat(/\b/,Ee([...wi,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},tt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},nt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},X="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",it={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(X)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:z,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,_,R,I,m,F,{match:/\$\d+/},b,ne,{className:"attr",begin:n+e.lookahead(":"),relevance:0},it,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,i.REGEXP_MODE,{className:"function",begin:X,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},tt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},et,J,ae,nt,{match:/\$[(.]/}]}}function Do(i){const e=Bo(i),t=Ge,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:Ge,keyword:gi.concat(l),literal:mi,built_in:vi.concat(n),"variable.language":xi},c={className:"meta",begin:"@"+t},h=(g,_,R)=>{const I=g.contains.findIndex(m=>m.label===_);if(I===-1)throw new Error("can not find mode to replace");g.contains.splice(I,1,R)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),h(e,"shebang",i.SHEBANG()),h(e,"use_strict",s);const b=e.contains.find(g=>g.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Uo(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=i.inherit(o,{begin:/\(/,end:/\)/}),l=i.inherit(i.APOS_STRING_MODE,{className:"string"}),a=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,a,l]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{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:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Fo=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Wo=["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"],Ho=["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"],Go=["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"],Zo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],qo=["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 Ko(i){const e=i.regex,t=Fo(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",l=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Go.join("|")+")"},{begin:":(:)?("+Zo.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+qo.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:r,attribute:Ho.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Wo.join("|")+")\\b"}]}}const Ei=document.createElement("style");Ei.innerText=[Fs,Ws].join(`
|
|
228
|
-
`);document.head.appendChild(
|
|
229
|
-
`).trim();return
|
|
224
|
+
`)&&(n=`\r
|
|
225
|
+
`),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),c=t.root||a(t.file),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(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),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=d.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new d({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 d({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,c="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},p,E;this.stringify(this.root,(k,w,y)=>{if(this.css+=k,w&&y!=="end"&&(h.generated.line=t,h.generated.column=n-1,w.source&&w.source.start?(h.source=this.sourcePath(w),h.original.line=w.source.start.line,h.original.column=w.source.start.column-1,this.map.addMapping(h)):(h.source=c,h.original.line=1,h.original.column=0,this.map.addMapping(h))),E=k.match(/\n/g),E?(t+=E.length,p=k.lastIndexOf(`
|
|
226
|
+
`),n=k.length-p):n+=k.length,w&&y!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(h.source=this.sourcePath(w),h.original.line=w.source.end.line,h.original.column=w.source.end.column-1,h.generated.line=t,h.generated.column=n-2,this.map.addMapping(h)):(h.source=c,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 c=this.opts.to?a(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=a(m(c,this.mapOpts.annotation)));let h=l(c,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 c=n.source.input.from;if(c&&!t[c]){t[c]=!0;let h=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));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 c=s(t).toString();return this.memoizedFileURLs.set(t,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;f==="\\"&&(t=t.replace(/\\/g,"/"));let c=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,c),c}}return Ot=e,Ot}var _t,Rn;function li(){if(Rn)return _t;Rn=1;const a=39,l=34,m=92,f=47,r=10,d=32,s=12,g=9,v=13,u=91,e=93,i=40,t=41,n=123,c=125,h=59,p=42,E=58,k=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return _t=function(I,U={}){let T=I.css.valueOf(),J=U.ignoreErrors,q,be,ae,N,Ee,H,Q,ie,se,fe,ye=T.length,j=0,_e=[],ke=[];function et(){return j}function Re(pe){throw I.error("Unclosed "+pe,j)}function tt(){return ke.length===0&&j>=ye}function Se(pe){if(ke.length)return ke.pop();if(j>=ye)return;let Ae=pe?pe.ignoreUnclosed:!1;switch(q=T.charCodeAt(j),q){case r:case d:case g:case v:case s:{N=j;do N+=1,q=T.charCodeAt(N);while(q===d||q===r||q===g||q===v||q===s);H=["space",T.slice(j,N)],j=N-1;break}case u:case e:case n:case c:case E:case h:case t:{let Ie=String.fromCharCode(q);H=[Ie,Ie,j];break}case i:{if(fe=_e.length?_e.pop()[1]:"",se=T.charCodeAt(j+1),fe==="url"&&se!==a&&se!==l&&se!==d&&se!==r&&se!==g&&se!==s&&se!==v){N=j;do{if(Q=!1,N=T.indexOf(")",N+1),N===-1)if(J||Ae){N=j;break}else Re("bracket");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);H=["brackets",T.slice(j,N+1),j,N],j=N}else N=T.indexOf(")",j+1),be=T.slice(j,N+1),N===-1||b.test(be)?H=["(","(",j]:(H=["brackets",be,j,N],j=N);break}case a:case l:{Ee=q===a?"'":'"',N=j;do{if(Q=!1,N=T.indexOf(Ee,N+1),N===-1)if(J||Ae){N=j+1;break}else Re("string");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);H=["string",T.slice(j,N+1),j,N],j=N;break}case k:{w.lastIndex=j+1,w.test(T),w.lastIndex===0?N=T.length-1:N=w.lastIndex-2,H=["at-word",T.slice(j,N+1),j,N],j=N;break}case m:{for(N=j,ae=!0;T.charCodeAt(N+1)===m;)N+=1,ae=!ae;if(q=T.charCodeAt(N+1),ae&&q!==f&&q!==d&&q!==r&&q!==g&&q!==v&&q!==s&&(N+=1,S.test(T.charAt(N)))){for(;S.test(T.charAt(N+1));)N+=1;T.charCodeAt(N+1)===d&&(N+=1)}H=["word",T.slice(j,N+1),j,N],j=N;break}default:{q===f&&T.charCodeAt(j+1)===p?(N=T.indexOf("*/",j+2)+1,N===0&&(J||Ae?N=T.length:Re("comment")),H=["comment",T.slice(j,N+1),j,N],j=N):(y.lastIndex=j+1,y.test(T),y.lastIndex===0?N=T.length-1:N=y.lastIndex-2,H=["word",T.slice(j,N+1),j,N],_e.push(H),j=N);break}}return j++,H}function nt(pe){ke.push(pe)}return{back:nt,endOfFile:tt,nextToken:Se,position:et}},_t}var Rt,An;function ci(){if(An)return Rt;An=1;let a=Ut(),l=Ve(),m=Xe(),f=Le(),r=$t(),d=li();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 f,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new a;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,c,h=!1,p=!1,E=[],k=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?k.push(t==="("?")":"]"):t==="{"&&k.length>0?k.push("}"):t===k[k.length-1]&&k.pop(),k.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(c=E.length-1,n=E[c];n&&n[0]==="space";)n=E[--c];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){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 c=i-1;c>=0&&(n=e[c],!(n[0]!=="space"&&(t+=1,t===2)));c--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,c;for(let[h,p]of e.entries()){if(n=p,c=n[0],c==="("&&(i+=1),c===")"&&(i-=1),i===0&&c===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return h}t=n}return!1}comment(e){let i=new l;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=d(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 k=e[0][0];if(k===":"||k==="space"||k==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let c;for(;e.length;)if(c=e.shift(),c[0]===":"){t.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),t.raws.between+=c[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let h=[],p;for(;e.length&&(p=e[0][0],!(p!=="space"&&p!=="comment"));)h.push(e.shift());this.precheckMissedSemicolon(e);for(let k=e.length-1;k>=0;k--){if(c=e[k],c[1].toLowerCase()==="!important"){t.important=!0;let w=this.stringFrom(e,k);w=this.spacesFromEnd(e)+w,w!==" !important"&&(t.raws.important=w);break}else if(c[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let b=k;b>0;b--){let S=w[b][0];if(y.trim().startsWith("!")&&S!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=w)}if(c[0]!=="space"&&c[0]!=="comment")break}e.some(k=>k[0]!=="space"&&k[0]!=="comment")&&(t.raws.between+=h.map(k=>k[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,c=null,h=[],p=e[1].startsWith("--"),E=[],k=e;for(;k;){if(t=k[0],E.push(k),t==="("||t==="[")c||(c=k),h.push(t==="("?")":"]");else if(p&&n&&t==="{")c||(c=k),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&&(c=null));k=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),h.length>0&&this.unclosedBracket(c),i&&n){if(!p)for(;E.length&&(k=E[E.length-1][0],!(k!=="space"&&k!=="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 c,h,p=t.length,E="",k=!0,w,y;for(let b=0;b<p;b+=1)c=t[b],h=c[0],h==="space"&&b===p-1&&!n?k=!1:h==="comment"?(y=t[b-1]?t[b-1][0]:"empty",w=t[b+1]?t[b+1][0]:"empty",!s[y]&&!s[w]?E.slice(-1)===","?k=!1:E+=c[1]:k=!1):E+=c[1];if(!k){let b=t.reduce((S,R)=>S+R[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 Rt=v,Rt}var At,Nn;function qt(){if(Nn)return At;Nn=1;let a=xe(),l=Qe(),m=ci();function f(r,d){let s=new l(r,d),g=new m(s);try{g.parse()}catch(v){throw v}return g.root}return At=f,f.default=f,a.registerParse(f),At}var Nt,Mn;function Hn(){if(Mn)return Nt;Mn=1;class a{constructor(m,f={}){if(this.type="warning",this.text=m,f.node&&f.node.source){let r=f.node.rangeBy(f);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in f)this[r]=f[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Nt=a,a.default=a,Nt}var Mt,Pn;function Wt(){if(Pn)return Mt;Pn=1;let a=Hn();class l{get content(){return this.css}constructor(f,r,d){this.processor=f,this.messages=[],this.root=r,this.opts=d,this.css="",this.map=void 0}toString(){return this.css}warn(f,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let d=new a(f,r);return this.messages.push(d),d}warnings(){return this.messages.filter(f=>f.type==="warning")}}return Mt=l,l.default=l,Mt}var Pt,Tn;function Gn(){if(Tn)return Pt;Tn=1;let a=xe(),l=Ft(),m=Wn(),f=qt(),r=Wt(),d=Le(),s=Ke(),{isClean:g,my:v}=Dt();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(w){return typeof w=="object"&&typeof w.then=="function"}function c(w){let y=!1,b=u[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[b,b+"-"+y,t,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:w.append?[b,t,b+"Exit"]:[b,b+"Exit"]}function h(w){let y;return w.type==="document"?y=["Document",t,"DocumentExit"]:w.type==="root"?y=["Root",t,"RootExit"]:y=c(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function p(w){return w[g]=!1,w.nodes&&w.nodes.forEach(y=>p(y)),w}let E={};class k{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,S){this.stringified=!1,this.processed=!1;let R;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))R=p(b);else if(b instanceof k||b instanceof r)R=p(b.root),b.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=b.map);else{let I=f;S.syntax&&(I=S.syntax.parse),S.parser&&(I=S.parser),I.parse&&(I=I.parse);try{R=I(b,S)}catch(U){this.processed=!0,this.error=U}R&&!R[v]&&a.rebuild(R)}this.result=new r(y,R,S),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let S=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=S.postcssPlugin,y.setMessage()):S.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(b,S,R)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([b,R])};for(let b of this.plugins)if(typeof b=="object")for(let S in b){if(!e[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[S])if(typeof b[S]=="object")for(let R in b[S])R==="*"?y(b,S,b[S][R]):y(b,S+"-"+R.toLowerCase(),b[S][R]);else typeof b[S]=="function"&&y(b,S,b[S])}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],S=this.runOnRoot(b);if(n(S))try{await S}catch(R){throw this.handleError(R)}}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 S=this.visitTick(b);if(n(S))try{await S}catch(R){let I=b[b.length-1].node;throw this.handleError(R,I)}}}if(this.listeners.OnceExit)for(let[b,S]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let R=y.nodes.map(I=>S(I,this.helpers));await Promise.all(R)}else await S(y,this.helpers)}catch(R){throw this.handleError(R)}}}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(S=>y.Once(S,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 R=new m(b,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let 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[S,R]of y){this.result.lastPlugin=S;let I;try{I=R(b,this.helpers)}catch(U){throw this.handleError(U,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(n(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:S,visitors:R}=b;if(S.type!=="root"&&S.type!=="document"&&!S.parent){y.pop();return}if(R.length>0&&b.visitorIndex<R.length){let[U,T]=R[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===R.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=U;try{return T(S.toProxy(),this.helpers)}catch(J){throw this.handleError(J,S)}}if(b.iterator!==0){let U=b.iterator,T;for(;T=S.nodes[S.indexes[U]];)if(S.indexes[U]+=1,!T[g]){T[g]=!0,y.push(h(T));return}b.iterator=0,delete S.indexes[U]}let I=b.events;for(;b.eventIndex<I.length;){let U=I[b.eventIndex];if(b.eventIndex+=1,U===t){S.nodes&&S.nodes.length&&(S[g]=!0,b.iterator=S.getIterator());return}else if(this.listeners[U]){b.visitors=this.listeners[U];return}}y.pop()}walkSync(y){y[g]=!0;let b=c(y);for(let S of b)if(S===t)y.nodes&&y.each(R=>{R[g]||this.walkSync(R)});else{let R=this.listeners[S];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return k.registerPostcss=w=>{E=w},Pt=k,k.default=k,d.registerLazyResult(k),l.registerLazyResult(k),Pt}var Tt,Ln;function ui(){if(Ln)return Tt;Ln=1;let a=Wn(),l=qt();const m=Wt();let f=Ke();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=l;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=f;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 a(e,u,this._opts,g);if(t.isMap()){let[n,c]=t.generate();n&&(this.result.css=n),c&&(this.result.map=c)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,g){return this.async().then(s,g)}toString(){return this._css}warnings(){return[]}}return Tt=r,r.default=r,Tt}var Lt,In;function hi(){if(In)return Lt;In=1;let a=Ft(),l=Gn(),m=ui(),f=Le();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 l(this,s,g)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Lt=r,r.default=r,f.registerProcessor(r),a.registerProcessor(r),Lt}var It,zn;function di(){if(zn)return It;zn=1;var a={};let l=Ut(),m=Ve(),f=xe(),r=Bt(),d=Xe(),s=Ft(),g=ai(),v=Qe(),u=Gn(),e=qn(),i=Je(),t=qt(),n=hi(),c=Wt(),h=Le(),p=$t(),E=Ke(),k=Hn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return w.plugin=function(b,S){let R=!1;function I(...T){console&&console.warn&&!R&&(R=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
227
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),a.LANG&&a.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
228
|
+
https://www.w3ctech.com/topic/2226`));let J=S(...T);return J.postcssPlugin=b,J.postcssVersion=new n().version,J}let U;return Object.defineProperty(I,"postcss",{get(){return U||(U=I()),U}}),I.process=function(T,J,q){return w([I(q)]).process(T,J)},I},w.stringify=E,w.parse=t,w.fromJSON=g,w.list=e,w.comment=y=>new m(y),w.atRule=y=>new l(y),w.decl=y=>new d(y),w.rule=y=>new p(y),w.root=y=>new h(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=d,w.Container=f,w.Processor=n,w.Document=s,w.Comment=m,w.Warning=k,w.AtRule=l,w.Result=c,w.Input=v,w.Rule=p,w.Root=h,w.Node=i,u.registerPostcss(w),It=w,w.default=w,It}var fi=di();const K=Un(fi);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;var zt,jn;function pi(){if(jn)return zt;jn=1;const a=(f={})=>{const r=f.prefix,d=/\s+$/.test(r)?r:`${r} `,s=f.ignoreFiles?[].concat(f.ignoreFiles):[],g=f.includeFiles?[].concat(f.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(v){const u=v.root,e=u.source.input.file;if(!(s.length&&e&&l(e,s))&&!(g.length&&e&&!l(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(c=>f.exclude&&m(c,f.exclude)?c:f.transform?f.transform(r,c,d+c,u.source.input.file,i):[":root","body","html"].some(h=>c.startsWith(h))?f.skipGlobalSelectors?c:c.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):d+c))}}}}};function l(f,r){return r.some(d=>d instanceof RegExp?d.test(f):f.includes(d))}function m(f,r){return r.some(d=>d instanceof RegExp?d.test(f):f===d)}return a.postcss=!0,zt=a,zt}var gi=pi();const mi=Un(gi),bi="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}",yi="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 wi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var jt,Bn;function vi(){if(Bn)return jt;Bn=1;function a(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(x=>{const _=o[x],D=typeof _;(D==="object"||D==="function")&&!Object.isFrozen(_)&&a(_)}),o}class l{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function f(o,...x){const _=Object.create(null);for(const D in o)_[D]=o[D];return x.forEach(function(D){for(const V in D)_[V]=D[V]}),_}const r="</span>",d=o=>!!o.scope,s=(o,{prefix:x})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const _=o.split(".");return[`${x}${_.shift()}`,..._.map((D,V)=>`${D}${"_".repeat(V+1)}`)].join(" ")}return`${x}${o}`};class g{constructor(x,_){this.buffer="",this.classPrefix=_.classPrefix,x.walk(this)}addText(x){this.buffer+=m(x)}openNode(x){if(!d(x))return;const _=s(x.scope,{prefix:this.classPrefix});this.span(_)}closeNode(x){d(x)&&(this.buffer+=r)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const v=(o={})=>{const x={children:[]};return Object.assign(x,o),x};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(x){this.top.children.push(x)}openNode(x){const _=v({scope:x});this.add(_),this.stack.push(_)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,_){return typeof _=="string"?x.addText(_):_.children&&(x.openNode(_),_.children.forEach(D=>this._walk(x,D)),x.closeNode(_)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(_=>typeof _=="string")?x.children=[x.children.join("")]:x.children.forEach(_=>{u._collapse(_)}))}}class e extends u{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,_){const D=x.root;_&&(D.scope=`language:${_}`),this.add(D)}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 c(o){return h("(?:",o,")?")}function h(...o){return o.map(x=>i(x)).join("")}function p(o){const x=o[o.length-1];return typeof x=="object"&&x.constructor===Object?(o.splice(o.length-1,1),x):{}}function E(...o){return"("+(p(o).capture?"":"?:")+o.map(x=>i(x)).join("|")+")"}function k(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,x){const _=o&&o.exec(x);return _&&_.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:x}){let _=0;return o.map(D=>{_+=1;const V=_;let X=i(D),M="";for(;X.length>0;){const A=y.exec(X);if(!A){M+=X;break}M+=X.substring(0,A.index),X=X.substring(A.index+A[0].length),A[0][0]==="\\"&&A[1]?M+="\\"+String(Number(A[1])+V):(M+=A[0],A[0]==="("&&_++)}return M}).map(D=>`(${D})`).join(x)}const S=/\b\B/,R="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(o={})=>{const x=/^#![ ]*\//;return o.binary&&(o.begin=h(x,/.*\b/,o.binary,/\b.*/)),f({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(_,D)=>{_.index!==0&&D.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},H={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(o,x,_={}){const D=f({scope:"comment",begin:o,end:x,contains:[]},_);D.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const V=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 D.contains.push({begin:h(/[ ]+/,"(",V,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},ie=Q("//","$"),se=Q("/\\*","\\*/"),fe=Q("#","$"),ye={scope:"number",begin:U,relevance:0},j={scope:"number",begin:T,relevance:0},_e={scope:"number",begin:J,relevance:0},ke={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},et={scope:"title",begin:R,relevance:0},Re={scope:"title",begin:I,relevance:0},tt={begin:"\\.\\s*"+I,relevance:0};var Se=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:_e,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:se,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:j,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(x,_)=>{_.data._beginMatch=x[1]},"on:end":(x,_)=>{_.data._beginMatch!==x[1]&&_.ignoreMatch()}})},HASH_COMMENT_MODE:fe,IDENT_RE:R,MATCH_NOTHING_RE:S,METHOD_GUARD:tt,NUMBER_MODE:ye,NUMBER_RE:U,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:Ee,REGEXP_MODE:ke,RE_STARTERS_RE:q,SHEBANG:be,TITLE_MODE:et,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function nt(o,x){o.input[o.index-1]==="."&&x.ignoreMatch()}function pe(o,x){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Ae(o,x){x&&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,x){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function tr(o,x){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 nr(o,x){o.relevance===void 0&&(o.relevance=1)}const rr=(o,x)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const _=Object.assign({},o);Object.keys(o).forEach(D=>{delete o[D]}),o.keywords=_.keywords,o.begin=h(_.beforeMatch,t(_.begin)),o.starts={relevance:0,contains:[Object.assign(_,{endsParent:!0})]},o.relevance=0,delete _.beforeMatch},ir=["of","and","for","in","not","or","if","then","parent","list","value"],sr="keyword";function Ht(o,x,_=sr){const D=Object.create(null);return typeof o=="string"?V(_,o.split(" ")):Array.isArray(o)?V(_,o):Object.keys(o).forEach(function(X){Object.assign(D,Ht(o[X],x,X))}),D;function V(X,M){x&&(M=M.map(A=>A.toLowerCase())),M.forEach(function(A){const z=A.split("|");D[z[0]]=[X,or(z[0],z[1])]})}}function or(o,x){return x?Number(x):ar(o)?0:1}function ar(o){return ir.includes(o.toLowerCase())}const Gt={},we=o=>{console.error(o)},Zt=(o,...x)=>{console.log(`WARN: ${o}`,...x)},Ce=(o,x)=>{Gt[`${o}/${x}`]||(console.log(`Deprecated as of ${o}. ${x}`),Gt[`${o}/${x}`]=!0)},ze=new Error;function Kt(o,x,{key:_}){let D=0;const V=o[_],X={},M={};for(let A=1;A<=x.length;A++)M[A+D]=V[A],X[A+D]=!0,D+=k(x[A-1]);o[_]=M,o[_]._emit=X,o[_]._multi=!0}function lr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ze;if(typeof o.beginScope!="object"||o.beginScope===null)throw we("beginScope must be object"),ze;Kt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function cr(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ze;if(typeof o.endScope!="object"||o.endScope===null)throw we("endScope must be object"),ze;Kt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function ur(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function hr(o){ur(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),lr(o),cr(o)}function dr(o){function x(M,A){return new RegExp(i(M),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(A?"g":""))}class _{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(A,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,A]),this.matchAt+=k(A)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const A=this.regexes.map(z=>z[1]);this.matcherRe=x(b(A,{joinWith:"|"}),!0),this.lastIndex=0}exec(A){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(A);if(!z)return null;const te=z.findIndex((Ne,it)=>it>0&&Ne!==void 0),Y=this.matchIndexes[te];return z.splice(0,te),Object.assign(z,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(A){if(this.multiRegexes[A])return this.multiRegexes[A];const z=new _;return this.rules.slice(A).forEach(([te,Y])=>z.addRule(te,Y)),z.compile(),this.multiRegexes[A]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(A,z){this.rules.push([A,z]),z.type==="begin"&&this.count++}exec(A){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let te=z.exec(A);if(this.resumingScanAtSamePosition()&&!(te&&te.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,te=Y.exec(A)}return te&&(this.regexIndex+=te.position+1,this.regexIndex===this.count&&this.considerAll()),te}}function V(M){const A=new D;return M.contains.forEach(z=>A.addRule(z.begin,{rule:z,type:"begin"})),M.terminatorEnd&&A.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&A.addRule(M.illegal,{type:"illegal"}),A}function X(M,A){const z=M;if(M.isCompiled)return z;[pe,tr,hr,rr].forEach(Y=>Y(M,A)),o.compilerExtensions.forEach(Y=>Y(M,A)),M.__beforeBegin=null,[Ae,Ie,nr].forEach(Y=>Y(M,A)),M.isCompiled=!0;let te=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),te=M.keywords.$pattern,delete M.keywords.$pattern),te=te||/\w+/,M.keywords&&(M.keywords=Ht(M.keywords,o.case_insensitive)),z.keywordPatternRe=x(te,!0),A&&(M.begin||(M.begin=/\B|\b/),z.beginRe=x(z.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(z.endRe=x(z.end)),z.terminatorEnd=i(z.end)||"",M.endsWithParent&&A.terminatorEnd&&(z.terminatorEnd+=(M.end?"|":"")+A.terminatorEnd)),M.illegal&&(z.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return fr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,z)}),M.starts&&X(M.starts,A),z.matcher=V(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=f(o.classNameAliases||{}),X(o)}function Jt(o){return o?o.endsWithParent||Jt(o.starts):!1}function fr(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(x){return f(o,{variants:null},x)})),o.cachedVariants?o.cachedVariants:Jt(o)?f(o,{starts:o.starts?f(o.starts):null}):Object.isFrozen(o)?f(o):o}var pr="11.11.1";class gr extends Error{constructor(x,_){super(x),this.name="HTMLInjectionError",this.html=_}}const rt=m,Vt=f,Xt=Symbol("nomatch"),mr=7,Qt=function(o){const x=Object.create(null),_=Object.create(null),D=[];let V=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let A={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function z(C){return A.noHighlightRe.test(C)}function te(C){let L=C.className+" ";L+=C.parentNode?C.parentNode.className:"";const $=A.languageDetectRe.exec(L);if($){const G=ge($[1]);return G||(Zt(X.replace("{}",$[1])),Zt("Falling back to no-highlight mode for this block.",C)),G?$[1]:"no-highlight"}return L.split(/\s+/).find(G=>z(G)||ge(G))}function Y(C,L,$){let G="",ee="";typeof L=="object"?(G=C,$=L.ignoreIllegals,ee=L.language):(Ce("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ce("10.7.0",`Please use highlight(code, options) instead.
|
|
229
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ee=C,G=L),$===void 0&&($=!0);const ce={code:G,language:ee};Be("before:highlight",ce);const me=ce.result?ce.result:Ne(ce.language,ce.code,$);return me.code=ce.code,Be("after:highlight",me),me}function Ne(C,L,$,G){const ee=Object.create(null);function ce(O,P){return O.keywords[P]}function me(){if(!B.keywords){ne.addText(Z);return}let O=0;B.keywordPatternRe.lastIndex=0;let P=B.keywordPatternRe.exec(Z),F="";for(;P;){F+=Z.substring(O,P.index);const W=he.case_insensitive?P[0].toLowerCase():P[0],re=ce(B,W);if(re){const[de,Tr]=re;if(ne.addText(F),F="",ee[W]=(ee[W]||0)+1,ee[W]<=mr&&(Fe+=Tr),de.startsWith("_"))F+=P[0];else{const Lr=he.classNameAliases[de]||de;ue(P[0],Lr)}}else F+=P[0];O=B.keywordPatternRe.lastIndex,P=B.keywordPatternRe.exec(Z)}F+=Z.substring(O),ne.addText(F)}function De(){if(Z==="")return;let O=null;if(typeof B.subLanguage=="string"){if(!x[B.subLanguage]){ne.addText(Z);return}O=Ne(B.subLanguage,Z,!0,an[B.subLanguage]),an[B.subLanguage]=O._top}else O=st(Z,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(Fe+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function oe(){B.subLanguage!=null?De():me(),Z=""}function ue(O,P){O!==""&&(ne.startScope(P),ne.addText(O),ne.endScope())}function nn(O,P){let F=1;const W=P.length-1;for(;F<=W;){if(!O._emit[F]){F++;continue}const re=he.classNameAliases[O[F]]||O[F],de=P[F];re?ue(de,re):(Z=de,me(),Z=""),F++}}function rn(O,P){return O.scope&&typeof O.scope=="string"&&ne.openNode(he.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(Z,he.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),Z=""):O.beginScope._multi&&(nn(O.beginScope,P),Z="")),B=Object.create(O,{parent:{value:B}}),B}function sn(O,P,F){let W=w(O.endRe,F);if(W){if(O["on:end"]){const re=new l(O);O["on:end"](P,re),re.isMatchIgnored&&(W=!1)}if(W){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return sn(O.parent,P,F)}function Rr(O){return B.matcher.regexIndex===0?(Z+=O[0],1):(ct=!0,0)}function Ar(O){const P=O[0],F=O.rule,W=new l(F),re=[F.__beforeBegin,F["on:begin"]];for(const de of re)if(de&&(de(O,W),W.isMatchIgnored))return Rr(P);return F.skip?Z+=P:(F.excludeBegin&&(Z+=P),oe(),!F.returnBegin&&!F.excludeBegin&&(Z=P)),rn(F,O),F.returnBegin?0:P.length}function Nr(O){const P=O[0],F=L.substring(O.index),W=sn(B,O,F);if(!W)return Xt;const re=B;B.endScope&&B.endScope._wrap?(oe(),ue(P,B.endScope._wrap)):B.endScope&&B.endScope._multi?(oe(),nn(B.endScope,O)):re.skip?Z+=P:(re.returnEnd||re.excludeEnd||(Z+=P),oe(),re.excludeEnd&&(Z=P));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&(Fe+=B.relevance),B=B.parent;while(B!==W.parent);return W.starts&&rn(W.starts,O),re.returnEnd?0:P.length}function Mr(){const O=[];for(let P=B;P!==he;P=P.parent)P.scope&&O.unshift(P.scope);O.forEach(P=>ne.openNode(P))}let Ue={};function on(O,P){const F=P&&P[0];if(Z+=O,F==null)return oe(),0;if(Ue.type==="begin"&&P.type==="end"&&Ue.index===P.index&&F===""){if(Z+=L.slice(P.index,P.index+1),!V){const W=new Error(`0 width match regex (${C})`);throw W.languageName=C,W.badRule=Ue.rule,W}return 1}if(Ue=P,P.type==="begin")return Ar(P);if(P.type==="illegal"&&!$){const W=new Error('Illegal lexeme "'+F+'" for mode "'+(B.scope||"<unnamed>")+'"');throw W.mode=B,W}else if(P.type==="end"){const W=Nr(P);if(W!==Xt)return W}if(P.type==="illegal"&&F==="")return Z+=`
|
|
230
|
+
`,1;if(lt>1e5&<>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=F,F.length}const he=ge(C);if(!he)throw we(X.replace("{}",C)),new Error('Unknown language: "'+C+'"');const Pr=dr(he);let at="",B=G||Pr;const an={},ne=new A.__emitter(A);Mr();let Z="",Fe=0,ve=0,lt=0,ct=!1;try{if(he.__emitTokens)he.__emitTokens(L,ne);else{for(B.matcher.considerAll();;){lt++,ct?ct=!1:B.matcher.considerAll(),B.matcher.lastIndex=ve;const O=B.matcher.exec(L);if(!O)break;const P=L.substring(ve,O.index),F=on(P,O);ve=O.index+F}on(L.substring(ve))}return ne.finalize(),at=ne.toHTML(),{language:C,value:at,relevance:Fe,illegal:!1,_emitter:ne,_top:B}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:C,value:rt(L),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:ve,context:L.slice(ve-100,ve+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(V)return{language:C,value:rt(L),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:B};throw O}}function it(C){const L={value:rt(C),illegal:!1,relevance:0,_top:M,_emitter:new A.__emitter(A)};return L._emitter.addText(C),L}function st(C,L){L=L||A.languages||Object.keys(x);const $=it(C),G=L.filter(ge).filter(tn).map(oe=>Ne(oe,C,!1));G.unshift($);const ee=G.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(ge(oe.language).supersetOf===ue.language)return 1;if(ge(ue.language).supersetOf===oe.language)return-1}return 0}),[ce,me]=ee,De=ce;return De.secondBest=me,De}function br(C,L,$){const G=L&&_[L]||$;C.classList.add("hljs"),C.classList.add(`language-${G}`)}function ot(C){let L=null;const $=te(C);if(z($))return;if(Be("before:highlightElement",{el:C,language:$}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(A.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(C)),A.throwUnescapedHTML))throw new gr("One of your code blocks includes unescaped HTML.",C.innerHTML);L=C;const G=L.textContent,ee=$?Y(G,{language:$,ignoreIllegals:!0}):st(G);C.innerHTML=ee.value,C.dataset.highlighted="yes",br(C,$,ee.language),C.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(C.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),Be("after:highlightElement",{el:C,result:ee,text:G})}function yr(C){A=Vt(A,C)}const wr=()=>{je(),Ce("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){je(),Ce("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Yt=!1;function je(){function C(){je()}if(document.readyState==="loading"){Yt||window.addEventListener("DOMContentLoaded",C,!1),Yt=!0;return}document.querySelectorAll(A.cssSelector).forEach(ot)}function xr(C,L){let $=null;try{$=L(o)}catch(G){if(we("Language definition for '{}' could not be registered.".replace("{}",C)),V)we(G);else throw G;$=M}$.name||($.name=C),x[C]=$,$.rawDefinition=L.bind(null,o),$.aliases&&en($.aliases,{languageName:C})}function Er(C){delete x[C];for(const L of Object.keys(_))_[L]===C&&delete _[L]}function kr(){return Object.keys(x)}function ge(C){return C=(C||"").toLowerCase(),x[C]||x[_[C]]}function en(C,{languageName:L}){typeof C=="string"&&(C=[C]),C.forEach($=>{_[$.toLowerCase()]=L})}function tn(C){const L=ge(C);return L&&!L.disableAutodetect}function Sr(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=L=>{C["before:highlightBlock"](Object.assign({block:L.el},L))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=L=>{C["after:highlightBlock"](Object.assign({block:L.el},L))})}function Cr(C){Sr(C),D.push(C)}function Or(C){const L=D.indexOf(C);L!==-1&&D.splice(L,1)}function Be(C,L){const $=C;D.forEach(function(G){G[$]&&G[$](L)})}function _r(C){return Ce("10.7.0","highlightBlock will be removed entirely in v12.0"),Ce("10.7.0","Please use highlightElement now."),ot(C)}Object.assign(o,{highlight:Y,highlightAuto:st,highlightAll:je,highlightElement:ot,highlightBlock:_r,configure:yr,initHighlighting:wr,initHighlightingOnLoad:vr,registerLanguage:xr,unregisterLanguage:Er,listLanguages:kr,getLanguage:ge,registerAliases:en,autoDetection:tn,inherit:Vt,addPlugin:Cr,removePlugin:Or}),o.debugMode=function(){V=!1},o.safeMode=function(){V=!0},o.versionString=pr,o.regex={concat:h,lookahead:t,either:E,optional:c,anyNumberOfTimes:n};for(const C in Se)typeof Se[C]=="object"&&a(Se[C]);return Object.assign(o,Se),o},Oe=Qt({});return Oe.newInstance=()=>Qt({}),jt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,jt}var xi=vi();const Ye=wi(xi),Ge="[A-Za-z$_][0-9A-Za-z$_]*",Zn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Kn=["true","false","null","undefined","NaN","Infinity"],Jn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Vn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Xn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yn=[].concat(Xn,Jn,Vn);function Ei(a){const l=a.regex,m=(H,{after:Q})=>{const ie="</"+H[0].slice(1);return H.input.indexOf(ie,Q)!==-1},f=Ge,r={begin:"<>",end:"</>"},d=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(H,Q)=>{const ie=H[0].length+H.index,se=H.input[ie];if(se==="<"||se===","){Q.ignoreMatch();return}se===">"&&(m(H,{after:ie})||Q.ignoreMatch());let fe;const ye=H.input.substring(ie);if(fe=ye.match(/^\s*=/)){Q.ignoreMatch();return}if((fe=ye.match(/^\s+extends\s+/))&&fe.index===0){Q.ignoreMatch();return}}},g={$pattern:Ge,keyword:Zn,literal:Kn,built_in:Yn,"variable.language":Qn},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:[a.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},c={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},p={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,t]},E={className:"comment",variants:[a.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},k=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,c,h,p,{match:/\$\d+/},i];t.contains=k.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(k)});const w=[].concat(E,t.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(w)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y},S={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,l.concat(f,"(",l.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:l.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:{_:[...Jn,...Vn]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,f,/(?=\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 J(H){return l.concat("(?!",H.join("|"),")")}const q={match:l.concat(/\b/,J([...Xn,"super","import"].map(H=>`${H}\\s*\\(`)),f,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},be={begin:l.concat(/\./,l.lookahead(l.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(N)],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:R},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,c,h,p,E,{match:/\$\d+/},i,R,{scope:"attr",match:f+l.lookahead(":"),relevance:0},Ee,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,a.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:d},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,a.inherit(a.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},be,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},q,T,S,ae,{match:/\$[(.]/}]}}function ki(a){const l=a.regex,m=Ei(a),f=Ge,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],d={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},v=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:Ge,keyword:Zn.concat(v),literal:Kn,built_in:Yn.concat(r),"variable.language":Qn},e={className:"meta",begin:"@"+f},i=(h,p,E)=>{const k=h.contains.findIndex(w=>w.label===p);if(k===-1)throw new Error("can not find mode to replace");h.contains.splice(k,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:l.concat(f,l.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,t,n]),m.contains=m.contains.concat([e,d,s,n]),i(m,"shebang",a.SHEBANG()),i(m,"use_strict",g);const c=m.contains.find(h=>h.label==="func.def");return c.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function Si(a){const l=a.regex,m=l.concat(/[\p{L}_]/u,l.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),f=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},d={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=a.inherit(d,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),v=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:f,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:[d,v,g,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[d,s,v,g]}]}]},a.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:l.concat(/</,l.lookahead(l.concat(m,l.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:u}]},{className:"tag",begin:l.concat(/<\//,l.lookahead(l.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Ci=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Oi=["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"],_i=["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"],Ri=[...Oi,..._i],Ai=["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(),Ni=["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(),Mi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Pi=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Ti(a){const l=a.regex,m=Ci(a),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",d=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",g=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,f,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:":("+Ni.join("|")+")"},{begin:":(:)?("+Mi.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Pi.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:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Ai.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ri.join("|")+")\\b"}]}}const er=document.createElement("style");er.innerText=[bi,yi].join(`
|
|
231
|
+
`);document.head.appendChild(er);Ye.registerLanguage("typescript",ki);Ye.registerLanguage("html",Si);Ye.registerLanguage("css",Ti);function Li(...a){const l=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const f=document.createElement("div");return a.forEach(r=>{l.appendChild(r),r.addEventListener("click",()=>{a.forEach(d=>d.removeAttribute("selected")),r.setAttribute("selected",""),f.innerHTML="",f.appendChild(r.content),f.className=r.className,f.classList.add("tab-content")})}),m.appendChild(l),m.appendChild(f),f.classList.add("tab-content"),a[0].setAttribute("selected",""),f.appendChild(a[0].content),m}function Me(a,l){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=a,m.content=l,l.tagName=="PRE"&&m.classList.add("code"),m}function Te(a,l){const m=document.createElement(a);return typeof l=="string"?m.innerHTML=l:l.forEach(f=>{m.appendChild(f)}),m}async function Ii(a,l,m){const f=l.mainContent,r=Te("div",f);r.id=`example-preview-${m}`;const d=typeof l.css=="string"?void 0:l.css?.label,s=typeof l.css=="string"?l.css:l.css?.content,g=Li(Me("Preview",r),Me("HTML",We("html",f)),...s?[Me(d??"CSS",We("css",s))]:[],...l.initializer&&l.initializer.content?[Me(l.initializer.label??"TS",We("typescript",l.initializer.content))]:[],...(l.additionalSources||[]).map(u=>Me(u.label,We(u.language,u.content))));l.description&&a.appendChild(Te("div",l.description));const v=Te("div",[g]);v.classList.add("example"),a.appendChild(v),s&&zi(`#${r.id}`,s),l.initializer?.initialize&&await l.initializer.initialize(r)}function We(a,l){let m=l.split(/\r?\n/).map(f=>{const r=f.indexOf("///");if(r>-1){const d=f.substring(r+3).trimStart();return d?f.replace(/^(\s*)([^\s].*)$/,`$1${d}`):void 0}return f}).filter(f=>typeof f<"u").join(`
|
|
232
|
+
`).trim();return a&&a!="raw"&&(m=Ye.highlight(m,{language:a}).value),Te("pre",[Te("code",m)])}function zi(a,l){const m=document.createElement("style");m.innerHTML=K().use(mi({prefix:a})).process(l).css,document.head.appendChild(m)}async function ji(a,l=document.body){const m=Di(l);let f=0;Object.keys(a).sort().forEach(async r=>{const d=document.createElement("div");d.className="example-container",m.appendChild(d);const s=a[r].default;Ii(d,s,f++)})}function Bi(a){const l=document.createElement("div");l.id="examples-container";const m=a.querySelector("#examples");return m?m.after(l):a.appendChild(l),l}function Di(a){return a.children?Bi(a):a}const Ui=`<h1 id="@cas-smartdesign/z-layout">@cas-smartdesign/z-layout</h1>
|
|
230
233
|
<p>A custom element which positions child elements sequentially (from left to right, top to bottom).</p>
|
|
231
234
|
<h2 id="requirements">Requirements</h2>
|
|
232
235
|
<ul>
|
|
@@ -273,10 +276,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),A=u,v=f),w===void 0&&(
|
|
|
273
276
|
</ul>
|
|
274
277
|
</li>
|
|
275
278
|
</ul>
|
|
276
|
-
`,
|
|
277
|
-
function __vite__mapDeps(indexes) {
|
|
278
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
279
|
-
__vite__mapDeps.viteFileDeps = []
|
|
280
|
-
}
|
|
281
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
282
|
-
}
|
|
279
|
+
`,Fi=document.querySelector("#markdown-container");Fi.innerHTML=Ui;ji(Object.assign({"./examples/1_declarative/index.ts":Dr,"./examples/2_add_remove_block/index.ts":Kr,"./examples/3_declarative-props/index.ts":Yr}),document.querySelector(".markdown-body"));
|