@appsurify-testmap/rrweb-player 2.1.1-alpha.6 → 2.1.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,8 @@ var module = { exports };
34
34
  `;this.css.includes(`\r
35
35
  `)&&(t=`\r
36
36
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||si(e.file),r;this.mapOpts.sourcesContent===!1?(r=new qn(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),qa&&Qa&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ii.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ii({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 ii({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
37
- `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.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=i,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!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?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 i=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=si(to(i,this.mapOpts.annotation)));let r=eo(i,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 Ka(this.originalCSS,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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));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(_r){let i=_r(e).toString();return this.memoizedFileURLs.set(e,i),i}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;io==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var so=eu;let tu=Si,us=class extends tu{constructor(e){super(e),this.type="comment"}};var Ai=us;us.default=us;let{isClean:ro,my:no}=Rt,oo=Ei,lo=Ai,iu=Si,ao,Gs,js,uo;function co(s){return s.map(e=>(e.nodes&&(e.nodes=co(e.nodes)),delete e.source,e))}function ho(s){if(s[ro]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)ho(e)}let Re=class fo extends iu{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),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")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of r)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=co(ao(e).nodes);else if(typeof e=="undefined")e=[];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=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new oo(e)]}else if(e.selector)e=[new Gs(e)];else if(e.name)e=[new js(e)];else if(e.text)e=[new lo(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[no]||fo.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[ro]&&ho(r),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(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 i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=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,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}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((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,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]}};Re.registerParse=s=>{ao=s};Re.registerRule=s=>{Gs=s};Re.registerAtRule=s=>{js=s};Re.registerRoot=s=>{uo=s};var Fe=Re;Re.default=Re;Re.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,js.prototype):s.type==="rule"?Object.setPrototypeOf(s,Gs.prototype):s.type==="decl"?Object.setPrototypeOf(s,oo.prototype):s.type==="comment"?Object.setPrototypeOf(s,lo.prototype):s.type==="root"&&Object.setPrototypeOf(s,uo.prototype),s[no]=!0,s.nodes&&s.nodes.forEach(e=>{Re.rebuild(e)})};let su=Fe,po,mo,wt=class extends su{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new po(new mo,this,e).stringify()}};wt.registerLazyResult=s=>{po=s};wt.registerProcessor=s=>{mo=s};var Ys=wt;wt.default=wt;let cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 go=cs;cs.default=cs;let ru=go,hs=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new ru(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Zs=hs;hs.default=hs;const Bi=39,Tr=34,kt=92,kr=47,Pt=10,ot=32,$t=12,Lt=9,Ft=13,nu=91,ou=93,lu=40,au=41,uu=123,cu=125,hu=59,fu=42,pu=58,du=64,Bt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ut=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mu=/.[\r\n"'(/\\]/,Pr=/[\da-f]/i;var gu=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(O){throw e.error("Unclosed "+O,p)}function R(){return w.length===0&&p>=A}function I(O){if(w.length)return w.pop();if(p>=A)return;let X=O?O.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Pt:case ot:case Lt:case Ft:case $t:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ot||o===Pt||o===Lt||o===Ft||o===$t);d=["space",i.slice(p,n)],p=n-1;break}case nu:case ou:case uu:case cu:case pu:case hu:case au:{let z=String.fromCharCode(o);d=[z,z,p];break}case lu:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Bi&&g!==Tr&&g!==ot&&g!==Pt&&g!==Lt&&g!==$t&&g!==Ft){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(r||X){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||mu.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Bi:case Tr:{l=o===Bi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(r||X){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case du:{Bt.lastIndex=p+1,Bt.test(i),Bt.lastIndex===0?n=i.length-1:n=Bt.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case kt:{for(n=p,u=!0;i.charCodeAt(n+1)===kt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==kr&&o!==ot&&o!==Pt&&o!==Lt&&o!==Ft&&o!==$t&&(n+=1,Pr.test(i.charAt(n)))){for(;Pr.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ot&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===kr&&i.charCodeAt(p+1)===fu?(n=i.indexOf("*/",p+2)+1,n===0&&(r||X?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Ut.lastIndex=p+1,Ut.test(i),Ut.lastIndex===0?n=i.length-1:n=Ut.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(O){w.push(O)}return{back:Z,endOfFile:R,nextToken:I,position:v}};let yo=Fe,ui=class extends yo{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 Hs=ui;ui.default=ui;yo.registerAtRule(ui);let wo=Fe,vo,bo,Ke=class extends wo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new vo(new bo,this,e).stringify()}};Ke.registerLazyResult=s=>{vo=s};Ke.registerProcessor=s=>{bo=s};var Nt=Ke;Ke.default=Ke;wo.registerRoot(Ke);let vt={comma(s){return vt.split(s,[","],!0)},space(s){let e=[" ",`
37
+ `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.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=i,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!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?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 i=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=si(to(i,this.mapOpts.annotation)));let r=eo(i,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 Ka(this.originalCSS,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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));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(_r){let i=_r(e).toString();return this.memoizedFileURLs.set(e,i),i}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;io==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var so=eu;let tu=Si,us=class extends tu{constructor(e){super(e),this.type="comment"}};var Ai=us;us.default=us;let{isClean:ro,my:no}=Rt,oo=Ei,lo=Ai,iu=Si,ao,Gs,js,uo;function co(s){return s.map(e=>(e.nodes&&(e.nodes=co(e.nodes)),delete e.source,e))}function ho(s){if(s[ro]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)ho(e)}let Re=class fo extends iu{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),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")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of r)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=co(ao(e).nodes);else if(typeof e=="undefined")e=[];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=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new oo(e)]}else if(e.selector)e=[new Gs(e)];else if(e.name)e=[new js(e)];else if(e.text)e=[new lo(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[no]||fo.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[ro]&&ho(r),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(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 i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=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,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}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((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,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]}};Re.registerParse=s=>{ao=s};Re.registerRule=s=>{Gs=s};Re.registerAtRule=s=>{js=s};Re.registerRoot=s=>{uo=s};var Fe=Re;Re.default=Re;Re.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,js.prototype):s.type==="rule"?Object.setPrototypeOf(s,Gs.prototype):s.type==="decl"?Object.setPrototypeOf(s,oo.prototype):s.type==="comment"?Object.setPrototypeOf(s,lo.prototype):s.type==="root"&&Object.setPrototypeOf(s,uo.prototype),s[no]=!0,s.nodes&&s.nodes.forEach(e=>{Re.rebuild(e)})};let su=Fe,po,mo,wt=class extends su{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new po(new mo,this,e).stringify()}};wt.registerLazyResult=s=>{po=s};wt.registerProcessor=s=>{mo=s};var Ys=wt;wt.default=wt;let cs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 go=cs;cs.default=cs;let ru=go,hs=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new ru(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Zs=hs;hs.default=hs;const Bi="'".charCodeAt(0),Tr='"'.charCodeAt(0),kt="\\".charCodeAt(0),kr="/".charCodeAt(0),Pt=`
38
+ `.charCodeAt(0),ot=" ".charCodeAt(0),$t="\f".charCodeAt(0),Lt=" ".charCodeAt(0),Ft="\r".charCodeAt(0),nu="[".charCodeAt(0),ou="]".charCodeAt(0),lu="(".charCodeAt(0),au=")".charCodeAt(0),uu="{".charCodeAt(0),cu="}".charCodeAt(0),hu=";".charCodeAt(0),fu="*".charCodeAt(0),pu=":".charCodeAt(0),du="@".charCodeAt(0),Bt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ut=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mu=/.[\r\n"'(/\\]/,Pr=/[\da-f]/i;var gu=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(O){throw e.error("Unclosed "+O,p)}function R(){return w.length===0&&p>=A}function I(O){if(w.length)return w.pop();if(p>=A)return;let X=O?O.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Pt:case ot:case Lt:case Ft:case $t:{n=p;do n+=1,o=i.charCodeAt(n);while(o===ot||o===Pt||o===Lt||o===Ft||o===$t);d=["space",i.slice(p,n)],p=n-1;break}case nu:case ou:case uu:case cu:case pu:case hu:case au:{let z=String.fromCharCode(o);d=[z,z,p];break}case lu:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Bi&&g!==Tr&&g!==ot&&g!==Pt&&g!==Lt&&g!==$t&&g!==Ft){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(r||X){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||mu.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Bi:case Tr:{l=o===Bi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(r||X){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===kt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case du:{Bt.lastIndex=p+1,Bt.test(i),Bt.lastIndex===0?n=i.length-1:n=Bt.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case kt:{for(n=p,u=!0;i.charCodeAt(n+1)===kt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==kr&&o!==ot&&o!==Pt&&o!==Lt&&o!==Ft&&o!==$t&&(n+=1,Pr.test(i.charAt(n)))){for(;Pr.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===ot&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===kr&&i.charCodeAt(p+1)===fu?(n=i.indexOf("*/",p+2)+1,n===0&&(r||X?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Ut.lastIndex=p+1,Ut.test(i),Ut.lastIndex===0?n=i.length-1:n=Ut.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(O){w.push(O)}return{back:Z,endOfFile:R,nextToken:I,position:v}};let yo=Fe,ui=class extends yo{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 Hs=ui;ui.default=ui;yo.registerAtRule(ui);let wo=Fe,vo,bo,Ke=class extends wo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new vo(new bo,this,e).stringify()}};Ke.registerLazyResult=s=>{vo=s};Ke.registerProcessor=s=>{bo=s};var Nt=Ke;Ke.default=Ke;wo.registerRoot(Ke);let vt={comma(s){return vt.split(s,[","],!0)},space(s){let e=[" ",`
38
39
  `," "];return vt.split(s,e)},split(s,e,t){let i=[],r="",o=!1,n=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var Co=vt;vt.default=vt;let So=Fe,yu=Co,ci=class extends So{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yu.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Xs=ci;ci.default=ci;So.registerRule(ci);let wu=Ei,vu=gu,bu=Ai,Cu=Hs,Su=Nt,$r=Xs;const Lr={empty:!0,space:!0};function Eu(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let xu=class{constructor(e){this.input=e,this.root=new Su,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 t=new Cu;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){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()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(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 i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[n,l]of e.entries()){if(i=l,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new bu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=vu(this.input)}decl(e,t){let i=new wu;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||Eu(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.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 $r;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,i=null,r=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&r&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(r){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(r=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!r?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!Lr[h]&&!Lr[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new $r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}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 Au=xu;let Ru=Fe,Nu=Au,Mu=xi;function hi(s,e){let t=new Mu(s,e),i=new Nu(t);try{i.parse()}catch(r){throw r}return i.root}var Js=hi;hi.default=hi;Ru.registerParse(hi);let{isClean:be,my:Ou}=Rt,Iu=so,Du=Ci,_u=Fe,Tu=Ys;let Fr=Zs,ku=Js,Pu=Nt;const $u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lu={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},Fu={Once:!0,postcssPlugin:!0,prepare:!0},Qe=0;function lt(s){return typeof s=="object"&&typeof s.then=="function"}function Eo(s){let e=!1,t=$u[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Qe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Qe,t+"Exit"]:[t,t+"Exit"]}function Br(s){let e;return s.type==="document"?e=["Document",Qe,"DocumentExit"]:s.type==="root"?e=["Root",Qe,"RootExit"]:e=Eo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function fs(s){return s[be]=!1,s.nodes&&s.nodes.forEach(e=>fs(e)),s}let ps={},qe=class xo{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=fs(t);else if(t instanceof xo||t instanceof Fr)r=fs(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=ku;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(n){this.processed=!0,this.error=n}r&&!r[Ou]&&_u.rebuild(r)}this.result=new Fr(e,r,i),this.helpers=oe($({},ps),{postcss:ps,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Lu[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Fu[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(lt(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];){e[be]=!0;let t=[Br(e)];for(;t.length>0;){let i=this.visitTick(t);if(lt(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(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(i=>e.Once(i,this.helpers));return lt(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=Du;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Iu(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(lt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[be];)e[be]=!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[i,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(lt(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[n,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[be]){l[be]=!0,e.push(Br(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===Qe){i.nodes&&i.nodes.length&&(i[be]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[be]=!0;let t=Eo(e);for(let i of t)if(i===Qe)e.nodes&&e.each(r=>{r[be]||this.walkSync(r)});else{let r=this.listeners[i];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"}};qe.registerPostcss=s=>{ps=s};var Ao=qe;qe.default=qe;Pu.registerLazyResult(qe);Tu.registerLazyResult(qe);let Bu=so,Uu=Ci;let zu=Js;const Vu=Zs;let ds=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,o=Uu;this.result=new Vu(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new Bu(o,r,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}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=zu;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Wu=ds;ds.default=ds;let Gu=Wu,ju=Ao,Yu=Ys,Zu=Nt,bt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Gu(this,e,t):new ju(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Hu=bt;bt.default=bt;Zu.registerProcessor(bt);Yu.registerProcessor(bt);let Xu=Ei,Ju=Qn,Ku=Ai,Qu=Hs,qu=xi,ec=Nt,tc=Xs;function Ct(s,e){if(Array.isArray(s))return s.map(n=>Ct(n));let r=s,{inputs:t}=r,i=nt(r,["inputs"]);if(t){e=[];for(let n of t){let l=oe($({},n),{__proto__:qu.prototype});l.map&&(l.map=oe($({},l.map),{__proto__:Ju.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=s.nodes.map(n=>Ct(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new ec(i);if(i.type==="decl")return new Xu(i);if(i.type==="rule")return new tc(i);if(i.type==="comment")return new Ku(i);if(i.type==="atrule")return new Qu(i);throw new Error("Unknown node type: "+s.type)}var ic=Ct;Ct.default=Ct;let sc=Ws,Ro=Ei,rc=Ao,nc=Fe,Ks=Hu,oc=Ci,lc=ic,No=Ys,ac=go,Mo=Ai,Oo=Hs,uc=Zs,cc=xi,hc=Js,fc=Co,Io=Xs,Do=Nt,pc=Si;function B(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Ks(s)}B.plugin=function(e,t){let i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
39
40
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
40
41
  https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new Ks().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,l,a){return B([r(a)]).process(n,l)},r};B.stringify=oc;B.parse=hc;B.fromJSON=lc;B.list=fc;B.comment=s=>new Mo(s);B.atRule=s=>new Oo(s);B.decl=s=>new Ro(s);B.rule=s=>new Io(s);B.root=s=>new Do(s);B.document=s=>new No(s);B.CssSyntaxError=sc;B.Declaration=Ro;B.Container=nc;B.Processor=Ks;B.Document=No;B.Comment=Mo;B.Warning=ac;B.AtRule=Oo;B.Result=uc;B.Input=cc;B.Rule=Io;B.Root=Do;B.Node=pc;rc.registerPostcss(B);var dc=B;B.default=B;const Y=Ra(dc);Y.stringify;Y.fromJSON;Y.plugin;Y.parse;Y.list;Y.document;Y.comment;Y.atRule;Y.rule;Y.decl;Y.root;Y.CssSyntaxError;Y.Declaration;Y.Container;Y.Processor;Y.Document;Y.Comment;Y.Warning;Y.AtRule;Y.Result;Y.Input;Y.Rule;Y.Root;Y.Node;const Ur={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function mc(s){let e=Ur[s.tagName]?Ur[s.tagName]:s.tagName;return e==="link"&&s.attributes._cssText&&(e="style"),e}function Ri(s,e){const t=e==null?void 0:e.stylesWithHoverClass.get(s);if(t)return t;let i=s;try{i=Y([xa,Aa]).process(s).css}catch(r){console.warn("Failed to adapt css for replay",r)}return e==null||e.stylesWithHoverClass.set(s,i),i}function zr(){return{stylesWithHoverClass:new Map}}function gc(s,e,t,i){const r=[];for(const a of s.childNodes)a.type===Q.Text&&r.push(a);const o=e.split("/* rr_split */");for(;o.length>1&&o.length>r.length;)o.splice(-2,2,o.slice(-2).join(""));let n="";t&&(n=Ri(o.join(""),i));let l=0;for(let a=0;a<r.length&&a!==o.length;a++){const u=r[a];if(!t)u.textContent=o[a];else if(a<o.length-1){let c=l,h=o[a+1].length;h=Math.min(h,30);let f=!1;for(;h>2;h--){const g=o[a+1].substring(0,h),d=n.substring(l).indexOf(g);if(f=d!==-1,f){c+=d;break}}f||(c+=o[a].length),u.textContent=n.substring(l,c),l=c}else u.textContent=n.substring(l)}}function yc(s,e,t,i){const{doc:r,hackCss:o,cache:n}=i;s.childNodes.length?gc(s,t,o,n):(o&&(t=Ri(t,n)),e.appendChild(r.createTextNode(t)))}function wc(s,e){var t;const{doc:i,hackCss:r,cache:o}=e;switch(s.type){case Q.Document:return i.implementation.createDocument(null,"",null);case Q.DocumentType:return i.implementation.createDocumentType(s.name||"html",s.publicId,s.systemId);case Q.Element:{const n=mc(s);let l;s.isSVG?l=i.createElementNS("http://www.w3.org/2000/svg",n):(s.isCustom&&((t=i.defaultView)!=null&&t.customElements)&&!i.defaultView.customElements.get(s.tagName)&&i.defaultView.customElements.define(s.tagName,class extends i.defaultView.HTMLElement{}),l=i.createElement(n));const a={};for(const u in s.attributes){if(!Object.prototype.hasOwnProperty.call(s.attributes,u))continue;let c=s.attributes[u];if(!(n==="option"&&u==="selected"&&c===!1)&&c!==null){if(c===!0&&(c=""),u.startsWith("rr_")){a[u]=c;continue}if(typeof c=="string"){if(n==="style"&&u==="_cssText"){yc(s,l,c,e);continue}else if(n==="textarea"&&u==="value"){l.appendChild(i.createTextNode(c)),s.childNodes=[];continue}}try{if(s.isSVG&&u==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",u,c.toString());else if(u==="onload"||u==="onclick"||u.substring(0,7)==="onmouse")l.setAttribute("_"+u,c.toString());else if(n==="meta"&&s.attributes["http-equiv"]==="Content-Security-Policy"&&u==="content"){l.setAttribute("csp-content",c.toString());continue}else n==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||n==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&wa(s.attributes.href)==="js"||(n==="img"&&s.attributes.srcset&&s.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",s.attributes.srcset):l.setAttribute(u,c.toString()))}catch(h){}}}for(const u in a){const c=a[u];if(n==="canvas"&&u==="rr_dataURL"){const h=i.createElement("img");h.onload=()=>{const f=l.getContext("2d");f&&f.drawImage(h,0,0,h.width,h.height)},h.src=c.toString(),l.RRNodeType&&(l.rr_dataURL=c.toString())}else if(n==="img"&&u==="rr_dataURL"){const h=l;h.currentSrc.startsWith("data:")||(h.setAttribute("rrweb-original-src",s.attributes.src),h.src=c.toString())}if(u==="rr_width")l.style.setProperty("width",c.toString());else if(u==="rr_height")l.style.setProperty("height",c.toString());else if(u==="rr_mediaCurrentTime"&&typeof c=="number")l.currentTime=c;else if(u==="rr_mediaState")switch(c){case"played":l.play().catch(h=>console.warn("media playback error",h));break;case"paused":l.pause();break}else u==="rr_mediaPlaybackRate"&&typeof c=="number"?l.playbackRate=c:u==="rr_mediaMuted"&&typeof c=="boolean"?l.muted=c:u==="rr_mediaLoop"&&typeof c=="boolean"?l.loop=c:u==="rr_mediaVolume"&&typeof c=="number"?l.volume=c:u==="rr_open_mode"&&l.setAttribute("rr_open_mode",c)}if(s.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case Q.Text:return s.isStyle&&r?i.createTextNode(Ri(s.textContent,o)):i.createTextNode(s.textContent);case Q.CDATA:return i.createCDATASection(s.textContent);case Q.Comment:return i.createComment(s.textContent);default:return null}}function dt(s,e){const{doc:t,mirror:i,skipChild:r=!1,hackCss:o=!0,afterAppend:n,cache:l}=e;if(i.has(s.id)){const u=i.getNode(s.id),c=i.getMeta(u);if(ya(c,s))return i.getNode(s.id)}let a=wc(s,{doc:t,hackCss:o,cache:l});if(!a)return null;if(s.rootId&&i.getNode(s.rootId)!==t&&i.replace(s.rootId,t),s.type===Q.Document&&(t.close(),t.open(),s.compatMode==="BackCompat"&&s.childNodes&&s.childNodes[0].type!==Q.DocumentType&&(s.childNodes[0].type===Q.Element&&"xmlns"in s.childNodes[0].attributes&&s.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):t.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),a=t),i.add(a,s),(s.type===Q.Document||s.type===Q.Element)&&!r)for(const u of s.childNodes){const c=dt(u,{doc:t,mirror:i,skipChild:!1,hackCss:o,afterAppend:n,cache:l});if(!c){console.warn("Failed to rebuild",u);continue}if(u.isShadow&&ma(a)&&a.shadowRoot)a.shadowRoot.appendChild(c);else if(s.type===Q.Document&&u.type==Q.Element){const h=c;let f=null;h.childNodes.forEach(g=>{g.nodeName==="BODY"&&(f=g)}),f?(h.removeChild(f),a.appendChild(c),h.appendChild(f)):a.appendChild(c)}else a.appendChild(c);n&&n(c,u.id)}return a}function vc(s,e){function t(i){e(i)}for(const i of s.getIds())s.has(i)&&t(s.getNode(i))}function bc(s,e){const t=e.getMeta(s);if((t==null?void 0:t.type)!==Q.Element)return;const i=s;for(const r in t.attributes){if(!(Object.prototype.hasOwnProperty.call(t.attributes,r)&&r.startsWith("rr_")))continue;const o=t.attributes[r];r==="rr_scrollLeft"&&(i.scrollLeft=o),r==="rr_scrollTop"&&(i.scrollTop=o)}}function Cc(s,e){const{doc:t,onVisit:i,hackCss:r=!0,afterAppend:o,cache:n,mirror:l=new Yn}=e,a=dt(s,{doc:t,mirror:l,skipChild:!1,hackCss:r,afterAppend:o,cache:n});return vc(l,u=>{i&&i(u),bc(u,l)}),a}var Sc=Object.defineProperty,Ec=(s,e,t)=>e in s?Sc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,C=(s,e,t)=>Ec(s,typeof e!="symbol"?e+"":e,t),xc=Object.defineProperty,Ac=(s,e,t)=>e in s?xc(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Vr=(s,e,t)=>Ac(s,typeof e!="symbol"?e+"":e,t);let Rc=class{constructor(){Vr(this,"idNodeMap",new Map),Vr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const r=this.nodeMetaMap.get(i);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Nc(){return new Rc}const Mc=["change","submit","dragstart","drop","pointerdown","pointerup","input","keydown","keyup","keypress","mouseenter","mouseleave","mouseup","mousedown","click","contextmenu","dblclick","focus","blur","touchstart","touchmove","touchend","touchcancel"],Oc=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onfocus","onblur","onkeydown","onkeypress","onkeyup","onchange","oninput","onsubmit","onreset","onselect","oncontextmenu","ontouchstart","ontouchmove","ontouchend","ontouchcancel"],_o=new WeakSet,Ic=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(s,e,t){if(Ic.call(this,s,e,t),this instanceof Element){const i=s.toLowerCase();Mc.includes(i)&&_o.add(this)}};const Dc=EventTarget.prototype.removeEventListener;EventTarget.prototype.removeEventListener=function(s,e,t){Dc.call(this,s,e,t)};function Wr(){document.querySelectorAll("*").forEach(e=>{Oc.forEach(t=>{e.hasAttribute(t)&&_o.add(e)})})}document.readyState==="complete"||document.readyState==="interactive"?Wr():document.addEventListener("DOMContentLoaded",Wr);function _c(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Tc(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(i){var r=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return s[i]}})}),t}var Qs={exports:{}},G=String,To=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G}};Qs.exports=To();Qs.exports.createColors=To;var kc=Qs.exports;const Pc={},$c=Object.freeze(Object.defineProperty({__proto__:null,default:Pc},Symbol.toStringTag,{value:"Module"})),ge=Tc($c);let Gr=kc,jr=ge,ms=class ko extends Error{constructor(e,t,i,r,o,n){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),n&&(this.plugin=n),typeof t!="undefined"&&typeof i!="undefined"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ko)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Gr.isColorSupported),jr&&e&&(t=jr(t));let i=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),n=String(o).length,l,a;if(e){let{bold:u,gray:c,red:h}=Gr.createColors(!0);l=f=>u(h(f)),a=f=>c(f)}else l=a=u=>u;return i.slice(r,o).map((u,c)=>{let h=r+1+c,f=" "+(" "+h).slice(-n)+" | ";if(h===this.line){let g=a(f.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+u+`
@@ -59,7 +60,8 @@ https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.p
59
60
  `;this.css.includes(`\r
60
61
  `)&&(t=`\r
61
62
  `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||ni(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Lo(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),nh&&rh&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ri.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ri({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 ri({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,n;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
62
- `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.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=i,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!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?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 i=this.opts.to?ni(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ni(Bo(i,this.mapOpts.annotation)));let r=Fo(i,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 sh(this.originalCSS,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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));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(Qr){let i=Qr(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Uo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var zo=oh;let lh=Mi,xs=class extends lh{constructor(e){super(e),this.type="comment"}};var Di=xs;xs.default=xs;let{isClean:Vo,my:Wo}=Mt,Go=Oi,jo=Di,ah=Mi,Yo,er,tr,Zo;function Ho(s){return s.map(e=>(e.nodes&&(e.nodes=Ho(e.nodes)),delete e.source,e))}function Xo(s){if(s[Vo]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Xo(e)}let Ne=class Jo extends ah{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),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")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of r)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ho(Yo(e).nodes);else if(typeof e=="undefined")e=[];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=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Go(e)]}else if(e.selector)e=[new er(e)];else if(e.name)e=[new tr(e)];else if(e.text)e=[new jo(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Wo]||Jo.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Vo]&&Xo(r),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(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 i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=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,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}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((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,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]}};Ne.registerParse=s=>{Yo=s};Ne.registerRule=s=>{er=s};Ne.registerAtRule=s=>{tr=s};Ne.registerRoot=s=>{Zo=s};var Be=Ne;Ne.default=Ne;Ne.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,tr.prototype):s.type==="rule"?Object.setPrototypeOf(s,er.prototype):s.type==="decl"?Object.setPrototypeOf(s,Go.prototype):s.type==="comment"?Object.setPrototypeOf(s,jo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Zo.prototype),s[Wo]=!0,s.nodes&&s.nodes.forEach(e=>{Ne.rebuild(e)})};let uh=Be,Ko,Qo,St=class extends uh{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ko(new Qo,this,e).stringify()}};St.registerLazyResult=s=>{Ko=s};St.registerProcessor=s=>{Qo=s};var ir=St;St.default=St;let As=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 qo=As;As.default=As;let ch=qo,Rs=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new ch(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var sr=Rs;Rs.default=Rs;const Wi=39,qr=34,Wt=92,en=47,Gt=10,at=32,jt=12,Yt=9,Zt=13,hh=91,fh=93,ph=40,dh=41,mh=123,gh=125,yh=59,wh=42,vh=58,bh=64,Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ch=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var Sh=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(O){throw e.error("Unclosed "+O,p)}function R(){return w.length===0&&p>=A}function I(O){if(w.length)return w.pop();if(p>=A)return;let X=O?O.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Gt:case at:case Yt:case Zt:case jt:{n=p;do n+=1,o=i.charCodeAt(n);while(o===at||o===Gt||o===Yt||o===Zt||o===jt);d=["space",i.slice(p,n)],p=n-1;break}case hh:case fh:case mh:case gh:case vh:case yh:case dh:{let z=String.fromCharCode(o);d=[z,z,p];break}case ph:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Wi&&g!==qr&&g!==at&&g!==Gt&&g!==Yt&&g!==jt&&g!==Zt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(r||X){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||Ch.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Wi:case qr:{l=o===Wi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(r||X){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case bh:{Ht.lastIndex=p+1,Ht.test(i),Ht.lastIndex===0?n=i.length-1:n=Ht.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case Wt:{for(n=p,u=!0;i.charCodeAt(n+1)===Wt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==en&&o!==at&&o!==Gt&&o!==Yt&&o!==Zt&&o!==jt&&(n+=1,tn.test(i.charAt(n)))){for(;tn.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===at&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===en&&i.charCodeAt(p+1)===wh?(n=i.indexOf("*/",p+2)+1,n===0&&(r||X?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Xt.lastIndex=p+1,Xt.test(i),Xt.lastIndex===0?n=i.length-1:n=Xt.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(O){w.push(O)}return{back:Z,endOfFile:R,nextToken:I,position:v}};let el=Be,pi=class extends el{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 rr=pi;pi.default=pi;el.registerAtRule(pi);let tl=Be,il,sl,et=class extends tl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new il(new sl,this,e).stringify()}};et.registerLazyResult=s=>{il=s};et.registerProcessor=s=>{sl=s};var Ot=et;et.default=et;tl.registerRoot(et);let Et={comma(s){return Et.split(s,[","],!0)},space(s){let e=[" ",`
63
+ `),t=l.length-n):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.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=i,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!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?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 i=this.opts.to?ni(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ni(Bo(i,this.mapOpts.annotation)));let r=Fo(i,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 sh(this.originalCSS,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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));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(Qr){let i=Qr(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Uo==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var zo=oh;let lh=Mi,xs=class extends lh{constructor(e){super(e),this.type="comment"}};var Di=xs;xs.default=xs;let{isClean:Vo,my:Wo}=Mt,Go=Oi,jo=Di,ah=Mi,Yo,er,tr,Zo;function Ho(s){return s.map(e=>(e.nodes&&(e.nodes=Ho(e.nodes)),delete e.source,e))}function Xo(s){if(s[Vo]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Xo(e)}let Ne=class Jo extends ah{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),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")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of r)this.proxyOf.nodes.splice(i+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],i<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let n;for(let l in this.indexes)n=this.indexes[l],i<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ho(Yo(e).nodes);else if(typeof e=="undefined")e=[];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=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Go(e)]}else if(e.selector)e=[new er(e)];else if(e.name)e=[new tr(e)];else if(e.text)e=[new jo(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Wo]||Jo.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Vo]&&Xo(r),typeof r.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(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 i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=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,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}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((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,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]}};Ne.registerParse=s=>{Yo=s};Ne.registerRule=s=>{er=s};Ne.registerAtRule=s=>{tr=s};Ne.registerRoot=s=>{Zo=s};var Be=Ne;Ne.default=Ne;Ne.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,tr.prototype):s.type==="rule"?Object.setPrototypeOf(s,er.prototype):s.type==="decl"?Object.setPrototypeOf(s,Go.prototype):s.type==="comment"?Object.setPrototypeOf(s,jo.prototype):s.type==="root"&&Object.setPrototypeOf(s,Zo.prototype),s[Wo]=!0,s.nodes&&s.nodes.forEach(e=>{Ne.rebuild(e)})};let uh=Be,Ko,Qo,St=class extends uh{constructor(e){super($({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Ko(new Qo,this,e).stringify()}};St.registerLazyResult=s=>{Ko=s};St.registerProcessor=s=>{Qo=s};var ir=St;St.default=St;let As=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 qo=As;As.default=As;let ch=qo,Rs=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new ch(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var sr=Rs;Rs.default=Rs;const Wi="'".charCodeAt(0),qr='"'.charCodeAt(0),Wt="\\".charCodeAt(0),en="/".charCodeAt(0),Gt=`
64
+ `.charCodeAt(0),at=" ".charCodeAt(0),jt="\f".charCodeAt(0),Yt=" ".charCodeAt(0),Zt="\r".charCodeAt(0),hh="[".charCodeAt(0),fh="]".charCodeAt(0),ph="(".charCodeAt(0),dh=")".charCodeAt(0),mh="{".charCodeAt(0),gh="}".charCodeAt(0),yh=";".charCodeAt(0),wh="*".charCodeAt(0),vh=":".charCodeAt(0),bh="@".charCodeAt(0),Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ch=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var Sh=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,c,h,f,g,d,A=i.length,p=0,m=[],w=[];function v(){return p}function x(O){throw e.error("Unclosed "+O,p)}function R(){return w.length===0&&p>=A}function I(O){if(w.length)return w.pop();if(p>=A)return;let X=O?O.ignoreUnclosed:!1;switch(o=i.charCodeAt(p),o){case Gt:case at:case Yt:case Zt:case jt:{n=p;do n+=1,o=i.charCodeAt(n);while(o===at||o===Gt||o===Yt||o===Zt||o===jt);d=["space",i.slice(p,n)],p=n-1;break}case hh:case fh:case mh:case gh:case vh:case yh:case dh:{let z=String.fromCharCode(o);d=[z,z,p];break}case ph:{if(f=m.length?m.pop()[1]:"",g=i.charCodeAt(p+1),f==="url"&&g!==Wi&&g!==qr&&g!==at&&g!==Gt&&g!==Yt&&g!==jt&&g!==Zt){n=p;do{if(c=!1,n=i.indexOf(")",n+1),n===-1)if(r||X){n=p;break}else x("bracket");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["brackets",i.slice(p,n+1),p,n],p=n}else n=i.indexOf(")",p+1),a=i.slice(p,n+1),n===-1||Ch.test(a)?d=["(","(",p]:(d=["brackets",a,p,n],p=n);break}case Wi:case qr:{l=o===Wi?"'":'"',n=p;do{if(c=!1,n=i.indexOf(l,n+1),n===-1)if(r||X){n=p+1;break}else x("string");for(h=n;i.charCodeAt(h-1)===Wt;)h-=1,c=!c}while(c);d=["string",i.slice(p,n+1),p,n],p=n;break}case bh:{Ht.lastIndex=p+1,Ht.test(i),Ht.lastIndex===0?n=i.length-1:n=Ht.lastIndex-2,d=["at-word",i.slice(p,n+1),p,n],p=n;break}case Wt:{for(n=p,u=!0;i.charCodeAt(n+1)===Wt;)n+=1,u=!u;if(o=i.charCodeAt(n+1),u&&o!==en&&o!==at&&o!==Gt&&o!==Yt&&o!==Zt&&o!==jt&&(n+=1,tn.test(i.charAt(n)))){for(;tn.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===at&&(n+=1)}d=["word",i.slice(p,n+1),p,n],p=n;break}default:{o===en&&i.charCodeAt(p+1)===wh?(n=i.indexOf("*/",p+2)+1,n===0&&(r||X?n=i.length:x("comment")),d=["comment",i.slice(p,n+1),p,n],p=n):(Xt.lastIndex=p+1,Xt.test(i),Xt.lastIndex===0?n=i.length-1:n=Xt.lastIndex-2,d=["word",i.slice(p,n+1),p,n],m.push(d),p=n);break}}return p++,d}function Z(O){w.push(O)}return{back:Z,endOfFile:R,nextToken:I,position:v}};let el=Be,pi=class extends el{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 rr=pi;pi.default=pi;el.registerAtRule(pi);let tl=Be,il,sl,et=class extends tl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new il(new sl,this,e).stringify()}};et.registerLazyResult=s=>{il=s};et.registerProcessor=s=>{sl=s};var Ot=et;et.default=et;tl.registerRoot(et);let Et={comma(s){return Et.split(s,[","],!0)},space(s){let e=[" ",`
63
65
  `," "];return Et.split(s,e)},split(s,e,t){let i=[],r="",o=!1,n=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?n+=1:c===")"?n>0&&(n-=1):n===0&&e.includes(c)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=c;return(t||r!=="")&&i.push(r.trim()),i}};var rl=Et;Et.default=Et;let nl=Be,Eh=rl,di=class extends nl{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Eh.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var nr=di;di.default=di;nl.registerRule(di);let xh=Oi,Ah=Sh,Rh=Di,Nh=rr,Mh=Ot,sn=nr;const rn={empty:!0,space:!0};function Oh(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Ih=class{constructor(e){this.input=e,this.root=new Mh,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 t=new Nh;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?u.push(i==="("?")":"]"):i==="{"&&u.length>0?u.push("}"):i===u[u.length-1]&&u.pop(),u.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){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()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),n&&(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 i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[n,l]of e.entries()){if(i=l,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=i}return!1}comment(e){let t=new Rh;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=Ah(this.input)}decl(e,t){let i=new xh;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||Oh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){i.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=u;f>0;f--){let g=c[f][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(i.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.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 sn;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,i=null,r=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(i=u[0],a.push(u),i==="("||i==="[")o||(o=u),n.push(i==="("?")":"]");else if(l&&r&&i==="{")o||(o=u),n.push("}");else if(n.length===0)if(i===";")if(r){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(r=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let o,n,l=i.length,a="",u=!0,c,h;for(let f=0;f<l;f+=1)o=i[f],n=o[0],n==="space"&&f===l-1&&!r?u=!1:n==="comment"?(h=i[f-1]?i[f-1][0]:"empty",c=i[f+1]?i[f+1][0]:"empty",!rn[h]&&!rn[c]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let f=i.reduce((g,d)=>g+d[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new sn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}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 Dh=Ih;let _h=Be,Th=Dh,kh=Ii;function mi(s,e){let t=new kh(s,e),i=new Th(t);try{i.parse()}catch(r){throw r}return i.root}var or=mi;mi.default=mi;_h.registerParse(mi);let{isClean:Ce,my:Ph}=Mt,$h=zo,Lh=Ni,Fh=Be,Bh=ir;let nn=sr,Uh=or,zh=Ot;const Vh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wh={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},Gh={Once:!0,postcssPlugin:!0,prepare:!0},tt=0;function ut(s){return typeof s=="object"&&typeof s.then=="function"}function ol(s){let e=!1,t=Vh[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,tt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,tt,t+"Exit"]:[t,t+"Exit"]}function on(s){let e;return s.type==="document"?e=["Document",tt,"DocumentExit"]:s.type==="root"?e=["Root",tt,"RootExit"]:e=ol(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Ns(s){return s[Ce]=!1,s.nodes&&s.nodes.forEach(e=>Ns(e)),s}let Ms={},it=class ll{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Ns(t);else if(t instanceof ll||t instanceof nn)r=Ns(t.root),t.map&&(typeof i.map=="undefined"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Uh;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(n){this.processed=!0,this.error=n}r&&!r[Ph]&&Fh.rebuild(r)}this.result=new nn(e,r,i),this.helpers=oe($({},Ms),{postcss:Ms,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Wh[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gh[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(ut(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];){e[Ce]=!0;let t=[on(e)];for(;t.length>0;){let i=this.visitTick(t);if(ut(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(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(i=>e.Once(i,this.helpers));return ut(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=Lh;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new $h(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(ut(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ce];)e[Ce]=!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[i,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ut(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[n,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!l[Ce]){l[Ce]=!0,e.push(on(l));return}t.iterator=0,delete i.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===tt){i.nodes&&i.nodes.length&&(i[Ce]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[Ce]=!0;let t=ol(e);for(let i of t)if(i===tt)e.nodes&&e.each(r=>{r[Ce]||this.walkSync(r)});else{let r=this.listeners[i];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"}};it.registerPostcss=s=>{Ms=s};var al=it;it.default=it;zh.registerLazyResult(it);Bh.registerLazyResult(it);let jh=zo,Yh=Ni;let Zh=or;const Hh=sr;let Os=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,o=Yh;this.result=new Hh(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new jh(o,r,this._opts,t);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}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=Zh;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Xh=Os;Os.default=Os;let Jh=Xh,Kh=al,Qh=ir,qh=Ot,xt=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Jh(this,e,t):new Kh(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ef=xt;xt.default=xt;qh.registerProcessor(xt);Qh.registerProcessor(xt);let tf=Oi,sf=$o,rf=Di,nf=rr,of=Ii,lf=Ot,af=nr;function At(s,e){if(Array.isArray(s))return s.map(n=>At(n));let r=s,{inputs:t}=r,i=nt(r,["inputs"]);if(t){e=[];for(let n of t){let l=oe($({},n),{__proto__:of.prototype});l.map&&(l.map=oe($({},l.map),{__proto__:sf.prototype})),e.push(l)}}if(i.nodes&&(i.nodes=s.nodes.map(n=>At(n,e))),i.source){let o=i.source,{inputId:n}=o,l=nt(o,["inputId"]);i.source=l,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new lf(i);if(i.type==="decl")return new tf(i);if(i.type==="rule")return new af(i);if(i.type==="comment")return new rf(i);if(i.type==="atrule")return new nf(i);throw new Error("Unknown node type: "+s.type)}var uf=At;At.default=At;let cf=qs,ul=Oi,hf=al,ff=Be,lr=ef,pf=Ni,df=uf,cl=ir,mf=qo,hl=Di,fl=rr,gf=sr,yf=Ii,wf=or,vf=rl,pl=nr,dl=Ot,bf=Mi;function U(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new lr(s)}U.plugin=function(e,t){let i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
64
66
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
65
67
  https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new lr().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,l,a){return U([r(a)]).process(n,l)},r};U.stringify=pf;U.parse=wf;U.fromJSON=df;U.list=vf;U.comment=s=>new hl(s);U.atRule=s=>new fl(s);U.decl=s=>new ul(s);U.rule=s=>new pl(s);U.root=s=>new dl(s);U.document=s=>new cl(s);U.CssSyntaxError=cf;U.Declaration=ul;U.Container=ff;U.Processor=lr;U.Document=cl;U.Comment=hl;U.Warning=mf;U.AtRule=fl;U.Result=gf;U.Input=yf;U.Rule=pl;U.Root=dl;U.Node=bf;hf.registerPostcss(U);var Cf=U;U.default=U;const H=_c(Cf);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var D=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(D||{});function Sf(s){const e={},t=/;(?![^(]*\))/g,i=/:(.+)/,r=/\/\*.*?\*\//g;return s.replace(r,"").split(t).forEach(function(o){if(o){const n=o.split(i);n.length>1&&(e[Is(n[0].trim())]=n[1].trim())}}),e}function ln(s){const e=[];for(const t in s){const i=s[t];if(typeof i!="string")continue;const r=Rf(t);e.push(`${r}: ${i};`)}return e.join(" ")}const Ef=/-([a-z])/g,xf=/^--[a-zA-Z0-9-]+$/,Is=s=>xf.test(s)?s:s.replace(Ef,(e,t)=>t?t.toUpperCase():""),Af=/\B([A-Z])/g,Rf=s=>s.replace(Af,"-$1").toLowerCase();class ye{constructor(...e){C(this,"parentElement",null),C(this,"parentNode",null),C(this,"ownerDocument"),C(this,"firstChild",null),C(this,"lastChild",null),C(this,"previousSibling",null),C(this,"nextSibling",null),C(this,"ELEMENT_NODE",1),C(this,"TEXT_NODE",3),C(this,"nodeType"),C(this,"nodeName"),C(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof ye){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class ar extends ye{constructor(...e){super(e),C(this,"nodeType",9),C(this,"nodeName","#document"),C(this,"compatMode","CSS1Compat"),C(this,"RRNodeType",D.Document),C(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===D.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(t=>t.RRNodeType===D.Element&&t.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===D.Element||t===D.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const i=ur(this,e);return i.parentElement=null,i}insertBefore(e,t){const i=e.RRNodeType;if((i===D.Element||i===D.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===i))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${i===D.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=vl(this,e,t);return r.parentElement=null,r}removeChild(e){return bl(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?t="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const i=this.createDocumentType("html",t,"");this.open(),this.appendChild(i)}}createDocument(e,t,i){return new ar}createDocumentType(e,t,i){const r=new ml(e,t,i);return r.ownerDocument=this,r}createElement(e){const t=new _i(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new gl(e);return t.ownerDocument=this,t}createComment(e){const t=new yl(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new wl(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class ml extends ye{constructor(e,t,i){super(),C(this,"nodeType",10),C(this,"RRNodeType",D.DocumentType),C(this,"name"),C(this,"publicId"),C(this,"systemId"),C(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=i,this.nodeName=e}toString(){return"RRDocumentType"}}class _i extends ye{constructor(e){super(),C(this,"nodeType",1),C(this,"RRNodeType",D.Element),C(this,"tagName"),C(this,"attributes",{}),C(this,"shadowRoot",null),C(this,"scrollLeft"),C(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Of(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?Sf(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(i,r,o)=>{if(t.test(i))return;const n=Is(i);r?e[n]=r:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=ln(e)},e.removeProperty=i=>{if(t.test(i))return"";const r=Is(i),o=e[r]||"";return delete e[r],this.attributes.style=ln(e),o},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,i){this.setAttribute(t,i)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return ur(this,e)}insertBefore(e,t){return vl(this,e,t)}removeChild(e){return bl(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class Nf extends _i{constructor(){super(...arguments),C(this,"currentTime"),C(this,"volume"),C(this,"paused"),C(this,"muted"),C(this,"playbackRate"),C(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class Mf extends _i{constructor(){super(...arguments),C(this,"tagName","DIALOG"),C(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class gl extends ye{constructor(e){super(),C(this,"nodeType",3),C(this,"nodeName","#text"),C(this,"RRNodeType",D.Text),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class yl extends ye{constructor(e){super(),C(this,"nodeType",8),C(this,"nodeName","#comment"),C(this,"RRNodeType",D.Comment),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class wl extends ye{constructor(e){super(),C(this,"nodeName","#cdata-section"),C(this,"nodeType",4),C(this,"RRNodeType",D.CDATA),C(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class Of{constructor(e,t){if(C(this,"onChange"),C(this,"classes",[]),C(this,"add",(...i)=>{for(const r of i){const o=String(r);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),C(this,"remove",(...i)=>{this.classes=this.classes.filter(r=>i.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const i=e.trim().split(/\s+/);this.classes.push(...i)}this.onChange=t}}function ur(s,e){return e.parentNode&&e.parentNode.removeChild(e),s.lastChild?(s.lastChild.nextSibling=e,e.previousSibling=s.lastChild):(s.firstChild=e,e.previousSibling=null),s.lastChild=e,e.nextSibling=null,e.parentNode=s,e.parentElement=s,e.ownerDocument=s.ownerDocument,e}function vl(s,e,t){if(!t)return ur(s,e);if(t.parentNode!==s)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return e===t||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=t.previousSibling,t.previousSibling=e,e.nextSibling=t,e.previousSibling?e.previousSibling.nextSibling=e:s.firstChild=e,e.parentElement=s,e.parentNode=s,e.ownerDocument=s.ownerDocument),e}function bl(s,e){if(e.parentNode!==s)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return e.previousSibling?e.previousSibling.nextSibling=e.nextSibling:s.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:s.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var ue=(s=>(s[s.PLACEHOLDER=0]="PLACEHOLDER",s[s.ELEMENT_NODE=1]="ELEMENT_NODE",s[s.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",s[s.TEXT_NODE=3]="TEXT_NODE",s[s.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",s[s.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",s[s.ENTITY_NODE=6]="ENTITY_NODE",s[s.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",s[s.COMMENT_NODE=8]="COMMENT_NODE",s[s.DOCUMENT_NODE=9]="DOCUMENT_NODE",s[s.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",s[s.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",s))(ue||{});const Ds={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},If={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let Se=null;function gi(s,e,t,i=e.mirror||e.ownerDocument.mirror){s=Df(s,e,t,i),Cl(s,e,t,i),_f(s,e,t)}function Df(s,e,t,i){var r;if(t.afterAppend&&!Se&&(Se=new WeakSet,setTimeout(()=>{Se=null},0)),!cr(s,e)){const o=yi(e,t.mirror,i);(r=s.parentNode)==null||r.replaceChild(o,s),s=o}switch(e.RRNodeType){case D.Document:{if(!We(s,e,t.mirror,i)){const o=i.getMeta(e);o&&(t.mirror.removeNodeFromMap(s),s.close(),s.open(),t.mirror.add(s,o),Se==null||Se.add(s))}break}case D.Element:{const o=s,n=e;switch(n.tagName){case"IFRAME":{const l=s.contentDocument;if(!l)break;gi(l,e.contentDocument,t,i);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),Cl(o.shadowRoot,n.shadowRoot,t,i)),Tf(o,n,i);break}}return s}function _f(s,e,t){var i;switch(e.RRNodeType){case D.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case D.Element:{const r=s,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=s,l=o;l.paused!==void 0&&(l.paused?n.pause():n.play()),l.muted!==void 0&&(n.muted=l.muted),l.volume!==void 0&&(n.volume=l.volume),l.currentTime!==void 0&&(n.currentTime=l.currentTime),l.playbackRate!==void 0&&(n.playbackRate=l.playbackRate),l.loop!==void 0&&(n.loop=l.loop);break}case"CANVAS":{const n=e;if(n.rr_dataURL!==null){const l=document.createElement("img");l.onload=()=>{const a=r.getContext("2d");a&&a.drawImage(l,0,0,l.width,l.height)},l.src=n.rr_dataURL}n.canvasMutations.forEach(l=>t.applyCanvas(l.event,l.mutation,s));break}case"STYLE":{const n=r.sheet;n&&e.rules.forEach(l=>t.applyStyleSheetMutation(l,n));break}case"DIALOG":{const n=r,l=o,a=n.open,u=n.matches("dialog:modal"),c=l.open,h=l.isModal,f=u!==h,g=a!==c;if((f||a&&g)&&n.close(),c&&(g||f))try{h?n.showModal():n.show()}catch(d){console.warn(d)}break}}break}case D.Text:case D.Comment:case D.CDATA:{s.textContent!==e.data&&(s.textContent=e.data);break}}Se!=null&&Se.has(s)&&(Se.delete(s),(i=t.afterAppend)==null||i.call(t,s,t.mirror.getId(s)))}function Tf(s,e,t){const i=s.attributes,r=e.attributes;for(const o in r){const n=r[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&Ds[o])s.setAttributeNS(Ds[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=s.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{s.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(i))o in r||s.removeAttribute(o);e.scrollLeft&&(s.scrollLeft=e.scrollLeft),e.scrollTop&&(s.scrollTop=e.scrollTop)}function Cl(s,e,t,i){const r=Array.from(s.childNodes),o=e.childNodes;if(r.length===0&&o.length===0)return;let n=0,l=r.length-1,a=0,u=o.length-1,c=r[n],h=r[l],f=o[a],g=o[u],d,A;for(;n<=l&&a<=u;)if(c===void 0)c=r[++n];else if(h===void 0)h=r[--l];else if(We(c,f,t.mirror,i))c=r[++n],f=o[++a];else if(We(h,g,t.mirror,i))h=r[--l],g=o[--u];else if(We(c,g,t.mirror,i)){try{s.insertBefore(c,h.nextSibling)}catch(w){console.warn(w)}c=r[++n],g=o[--u]}else if(We(h,f,t.mirror,i)){try{s.insertBefore(h,c)}catch(w){console.warn(w)}h=r[--l],f=o[++a]}else{if(!d){d={};for(let v=n;v<=l;v++){const x=r[v];x&&t.mirror.hasNode(x)&&(d[t.mirror.getId(x)]=v)}}A=d[i.getId(f)];const w=r[A];if(A!==void 0&&w&&We(w,f,t.mirror,i)){try{s.insertBefore(w,c)}catch(v){console.warn(v)}r[A]=void 0}else{const v=yi(f,t.mirror,i);s.nodeName==="#document"&&c&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&c.nodeType===c.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&c.nodeType===c.ELEMENT_NODE)&&(s.removeChild(c),t.mirror.removeNodeFromMap(c),c=r[++n]);try{s.insertBefore(v,c||null)}catch(x){console.warn(x)}}f=o[++a]}if(n>l){const w=o[u+1];let v=null;for(w&&(v=t.mirror.getNode(i.getId(w)));a<=u;++a){const x=yi(o[a],t.mirror,i);try{s.insertBefore(x,v)}catch(R){console.warn(R)}}}else if(a>u)for(;n<=l;n++){const w=r[n];if(!(!w||w.parentNode!==s))try{s.removeChild(w),t.mirror.removeNodeFromMap(w)}catch(v){console.warn(v)}}let p=s.firstChild,m=e.firstChild;for(;p!==null&&m!==null;)gi(p,m,t,i),p=p.nextSibling,m=m.nextSibling}function yi(s,e,t){const i=t.getId(s),r=t.getMeta(s);let o=null;if(i>-1&&(o=e.getNode(i)),o!==null&&cr(o,s))return o;switch(s.RRNodeType){case D.Document:o=new Document;break;case D.DocumentType:o=document.implementation.createDocumentType(s.name,s.publicId,s.systemId);break;case D.Element:{let n=s.tagName.toLowerCase();n=If[n]||n,r&&"isSVG"in r&&(r!=null&&r.isSVG)?o=document.createElementNS(Ds.svg,n):o=document.createElement(s.tagName);break}case D.Text:o=document.createTextNode(s.data);break;case D.Comment:o=document.createComment(s.data);break;case D.CDATA:o=document.createCDATASection(s.data);break}r&&e.add(o,$({},r));try{Se==null||Se.add(o)}catch(n){}return o}function cr(s,e){return s.nodeType!==e.nodeType?!1:s.nodeType!==s.ELEMENT_NODE||s.tagName.toUpperCase()===e.tagName}function We(s,e,t,i){const r=t.getId(s),o=i.getId(e);return r===-1||r!==o?!1:cr(s,e)}class rt extends ar{constructor(e){super(),C(this,"UNSERIALIZED_STARTING_ID",-2),C(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),C(this,"mirror",jf()),C(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,i){return new rt}createDocumentType(e,t,i){const r=new kf(e,t,i);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let i;switch(t){case"AUDIO":case"VIDEO":i=new Pf(t);break;case"IFRAME":i=new Bf(t,this.mirror);break;case"CANVAS":i=new Lf(t);break;case"STYLE":i=new Ff(t);break;case"DIALOG":i=new $f(t);break;default:i=new Ti(t);break}return i.ownerDocument=this,i}createComment(e){const t=new zf(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Vf(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Uf(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const kf=ml;class Ti extends _i{constructor(){super(...arguments),C(this,"inputData",null),C(this,"scrollData",null)}}class Pf extends Nf{}class $f extends Mf{}class Lf extends Ti{constructor(){super(...arguments),C(this,"rr_dataURL",null),C(this,"canvasMutations",[])}getContext(){return null}}class Ff extends Ti{constructor(){super(...arguments),C(this,"rules",[])}}class Bf extends Ti{constructor(e,t){super(e),C(this,"contentDocument",new rt),this.contentDocument.mirror=t}}const Uf=gl,zf=yl,Vf=wl;function Wf(s){return s instanceof HTMLFormElement?"FORM":s.tagName.toUpperCase()}function Sl(s,e,t,i){let r;switch(s.nodeType){case ue.DOCUMENT_NODE:i&&i.nodeName==="IFRAME"?r=i.contentDocument:(r=e,r.compatMode=s.compatMode);break;case ue.DOCUMENT_TYPE_NODE:{const n=s;r=e.createDocumentType(n.name,n.publicId,n.systemId);break}case ue.ELEMENT_NODE:{const n=s,l=Wf(n);r=e.createElement(l);const a=r;for(const{name:u,value:c}of Array.from(n.attributes))a.attributes[u]=c;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case ue.TEXT_NODE:r=e.createTextNode(s.textContent||"");break;case ue.CDATA_SECTION_NODE:r=e.createCDATASection(s.data);break;case ue.COMMENT_NODE:r=e.createComment(s.textContent||"");break;case ue.DOCUMENT_FRAGMENT_NODE:r=i.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(s);return e instanceof rt&&(o||(o=El(r,e.unserializedId),t.add(s,o)),e.mirror.add(r,$({},o))),r}function Gf(s,e=Nc(),t=new rt){function i(r,o){const n=Sl(r,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&r.nodeType!==ue.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),r.nodeName==="IFRAME"){const l=r.contentDocument;l&&i(l,n)}else(r.nodeType===ue.DOCUMENT_NODE||r.nodeType===ue.ELEMENT_NODE||r.nodeType===ue.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===ue.ELEMENT_NODE&&r.shadowRoot&&i(r.shadowRoot,n),r.childNodes.forEach(l=>i(l,n)))}return i(s,null),t}function jf(){return new Yf}class Yf{constructor(){C(this,"idNodeMap",new Map),C(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const i=(t=this.getMeta(e))==null?void 0:t.id;return i!=null?i:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(i=>this.removeNodeFromMap(i))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const i=t.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,t)}replace(e,t){const i=this.getNode(e);if(i){const r=this.nodeMetaMap.get(i);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function El(s,e){switch(s.RRNodeType){case D.Document:return{id:e,type:s.RRNodeType,childNodes:[]};case D.DocumentType:{const t=s;return{id:e,type:s.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case D.Element:return{id:e,type:s.RRNodeType,tagName:s.tagName.toLowerCase(),attributes:{},childNodes:[]};case D.Text:return{id:e,type:s.RRNodeType,textContent:s.textContent||""};case D.Comment:return{id:e,type:s.RRNodeType,textContent:s.textContent||""};case D.CDATA:return{id:e,type:s.RRNodeType,textContent:""}}}const an={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},un={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Jt={},Zf=()=>!!globalThis.Zone;function hr(s){if(Jt[s])return Jt[s];const e=globalThis[s],t=e.prototype,i=s in an?an[s]:void 0,r=!!(i&&i.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),o=s in un?un[s]:void 0,n=!!(o&&o.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(r&&n&&!Zf())return Jt[s]=e.prototype,e.prototype;try{const l=document.createElement("iframe");document.body.appendChild(l);const a=l.contentWindow;if(!a)return e.prototype;const u=a[s].prototype;return document.body.removeChild(l),u?Jt[s]=u:t}catch(l){return t}}const Gi={};function Te(s,e,t){var i;const r=`${s}.${String(t)}`;if(Gi[r])return Gi[r].call(e);const o=hr(s),n=(i=Object.getOwnPropertyDescriptor(o,t))==null?void 0:i.get;return n?(Gi[r]=n,n.call(e)):e[t]}const ji={};function xl(s,e,t){const i=`${s}.${String(t)}`;if(ji[i])return ji[i].bind(e);const o=hr(s)[t];return typeof o!="function"?e[t]:(ji[i]=o,o.bind(e))}function Hf(s){return Te("Node",s,"childNodes")}function Xf(s){return Te("Node",s,"parentNode")}function Jf(s){return Te("Node",s,"parentElement")}function Kf(s){return Te("Node",s,"textContent")}function Qf(s,e){return xl("Node",s,"contains")(e)}function qf(s){return xl("Node",s,"getRootNode")()}function ep(s){return!s||!("host"in s)?null:Te("ShadowRoot",s,"host")}function tp(s){return s.styleSheets}function ip(s){return!s||!("shadowRoot"in s)?null:Te("Element",s,"shadowRoot")}function sp(s,e){return Te("Element",s,"querySelector")(e)}function rp(s,e){return Te("Element",s,"querySelectorAll")(e)}function np(){return hr("MutationObserver").constructor}function op(s,e,t){try{if(!(e in s))return()=>{};const i=s[e],r=t(i);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),s[e]=r,()=>{s[e]=i}}catch(i){return()=>{}}}function lp(s){const e=s.tagName.toLowerCase(),t=s.id?`#${s.id}`:"",i=s.classList.length?"."+Array.from(s.classList).join("."):"";return`${e}${t}${i}`}function ap(s){var f;var e,t;const i=(f=(e=s.ownerDocument)==null?void 0:e.defaultView)!=null?f:window,r=s.getBoundingClientRect(),o=i.innerWidth||i.document.documentElement.clientWidth||0,n=i.innerHeight||i.document.documentElement.clientHeight||0,l=r.width>0&&r.height>0&&r.bottom>0&&r.right>0&&r.top<n&&r.left<o,a=(t=i.getComputedStyle)==null?void 0:t.call(i,s),c=!!a&&a.display!=="none"&&a.visibility!=="hidden"&&(parseFloat(a.opacity)||0)>0&&l;let h=0;if(c){const g=Math.max(0,Math.min(r.right,o)-Math.max(r.left,0)),d=Math.max(0,Math.min(r.bottom,n)-Math.max(r.top,0)),A=g*d,p=r.width*r.height;h=p>0?A/p:0}return{isVisible:c,ratio:h}}const up={childNodes:Hf,parentNode:Xf,parentElement:Jf,textContent:Kf,contains:Qf,getRootNode:qf,host:ep,styleSheets:tp,shadowRoot:ip,querySelector:sp,querySelectorAll:rp,mutationObserver:np,patch:op,describeNode:lp,getElementVisibility:ap},Ge=`Please stop import mirror directly. Instead of that,\r