@posthog/rrdom 0.0.3 → 0.0.5

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.
@@ -11,33 +11,33 @@
11
11
  }(this, () => {
12
12
  var exports = {};
13
13
  var module = { exports };
14
- "use strict";var Is=Object.defineProperty,Ps=Object.defineProperties;var $s=Object.getOwnPropertyDescriptors;var Q=Object.getOwnPropertySymbols;var ht=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var ut=(i,e,t)=>e in i?Is(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,v=(i,e)=>{for(var t in e||(e={}))ht.call(e,t)&&ut(i,t,e[t]);if(Q)for(var t of Q(e))ct.call(e,t)&&ut(i,t,e[t]);return i},B=(i,e)=>Ps(i,$s(e));var xe=(i,e)=>{var t={};for(var s in i)ht.call(i,s)&&e.indexOf(s)<0&&(t[s]=i[s]);if(i!=null&&Q)for(var s of Q(i))e.indexOf(s)<0&&ct.call(i,s)&&(t[s]=i[s]);return t};var Ls=Object.defineProperty,ks=(i,e,t)=>e in i?Ls(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,c=(i,e,t)=>ks(i,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Us=Object.defineProperty,Fs=(i,e,t)=>e in i?Us(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ft=(i,e,t)=>Fs(i,typeof e!="symbol"?e+"":e,t);let Bs=class{constructor(){ft(this,"idNodeMap",new Map),ft(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-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(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function zs(){return new Bs}function js(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Gs(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?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(i).forEach(function(s){var r=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:function(){return i[s]}})}),t}var Ve={exports:{}},w=String,Mt=function(){return{isColorSupported:!1,reset:w,bold:w,dim:w,italic:w,underline:w,inverse:w,hidden:w,strikethrough:w,black:w,red:w,green:w,yellow:w,blue:w,magenta:w,cyan:w,white:w,gray:w,bgBlack:w,bgRed:w,bgGreen:w,bgYellow:w,bgBlue:w,bgMagenta:w,bgCyan:w,bgWhite:w}};Ve.exports=Mt();Ve.exports.createColors=Mt;var Ws=Ve.exports;const Vs={},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),N=Gs(Ys);let pt=Ws,mt=N,De=class _t extends Error{constructor(e,t,s,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 s!="undefined"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,_t)}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=pt.isColorSupported),mt&&e&&(t=mt(t));let s=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,s.length),n=String(o).length,l,a;if(e){let{bold:u,gray:h,red:p}=pt.createColors(!0);l=m=>u(p(m)),a=m=>h(m)}else l=a=u=>u;return s.slice(r,o).map((u,h)=>{let p=r+1+h,m=" "+(" "+p).slice(-n)+" | ";if(p===this.line){let R=a(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(m)+u+`
15
- `+R+l("^")}return" "+a(m)+u}).join(`
16
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
14
+ "use strict";var yr=Object.defineProperty,Rr=Object.defineProperties;var Er=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable;var at=(t,e,s)=>e in t?yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,k=(t,e)=>{for(var s in e||(e={}))ut.call(e,s)&&at(t,s,e[s]);if(K)for(var s of K(e))ht.call(e,s)&&at(t,s,e[s]);return t},Y=(t,e)=>Rr(t,Er(e));var de=(t,e)=>{var s={};for(var u in t)ut.call(t,u)&&e.indexOf(u)<0&&(s[u]=t[u]);if(t!=null&&K)for(var u of K(t))e.indexOf(u)<0&&ht.call(t,u)&&(s[u]=t[u]);return s};var br=Object.defineProperty,Cr=(t,e,s)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,x=(t,e,s)=>Cr(t,typeof e!="symbol"?e+"":e,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var vr=Object.defineProperty,xr=(t,e,s)=>e in t?vr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,ct=(t,e,s)=>xr(t,typeof e!="symbol"?e+"":e,s);let Sr=class{constructor(){ct(this,"idNodeMap",new Map),ct(this,"nodeMetaMap",new WeakMap)}getId(e){var s;if(!e)return-1;const u=(s=this.getMeta(e))==null?void 0:s.id;return u!=null?u:-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 s=this.getId(e);this.idNodeMap.delete(s),e.childNodes&&e.childNodes.forEach(u=>this.removeNodeFromMap(u))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,s){const u=s.id;this.idNodeMap.set(u,e),this.nodeMetaMap.set(e,s)}replace(e,s){const u=this.getNode(e);if(u){const r=this.nodeMetaMap.get(u);r&&this.nodeMetaMap.set(s,r)}this.idNodeMap.set(e,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Nr(){return new Sr}function Or(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var s=function u(){return this instanceof u?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(u){var r=Object.getOwnPropertyDescriptor(t,u);Object.defineProperty(s,u,r.get?r:{enumerable:!0,get:function(){return t[u]}})}),s}var ee={exports:{}},ft;function Ar(){if(ft)return ee.exports;ft=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};return ee.exports=e(),ee.exports.createColors=e,ee.exports}const Mr={},_r=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"})),U=Dr(_r);var me,pt;function Ge(){if(pt)return me;pt=1;let t=Ar(),e=U;class s extends Error{constructor(r,l,a,d,h,m){super(r),this.name="CssSyntaxError",this.reason=r,h&&(this.file=h),d&&(this.source=d),m&&(this.plugin=m),typeof l!="undefined"&&typeof a!="undefined"&&(typeof l=="number"?(this.line=l,this.column=a):(this.line=l.line,this.column=l.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(r){if(!this.source)return"";let l=this.source;r==null&&(r=t.isColorSupported),e&&r&&(l=e(l));let a=l.split(/\r?\n/),d=Math.max(this.line-3,0),h=Math.min(this.line+2,a.length),m=String(h).length,i,c;if(r){let{bold:o,gray:n,red:p}=t.createColors(!0);i=f=>o(p(f)),c=f=>n(f)}else i=c=o=>o;return a.slice(d,h).map((o,n)=>{let p=d+1+n,f=" "+(" "+p).slice(-m)+" | ";if(p===this.line){let g=c(f.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+c(f)+o+`
15
+ `+g+i("^")}return" "+c(f)+o}).join(`
16
+ `)}toString(){let r=this.showSourceCode();return r&&(r=`
17
17
 
18
- `+e+`
19
- `),this.name+": "+this.message+e}};var Ye=De;De.default=De;var H={};H.isClean=Symbol("isClean");H.my=Symbol("my");const dt={after:`
18
+ `+r+`
19
+ `),this.name+": "+this.message+r}}return me=s,s.default=s,me}var te={},dt;function $e(){return dt||(dt=1,te.isClean=Symbol("isClean"),te.my=Symbol("my")),te}var ge,mt;function Wt(){if(mt)return ge;mt=1;const t={after:`
20
20
  `,beforeClose:`
21
21
  `,beforeComment:`
22
22
  `,beforeDecl:`
23
23
  `,beforeOpen:" ",beforeRule:`
24
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hs(i){return i[0].toUpperCase()+i.slice(1)}let Ae=class{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:r&&(s+=" "),e.nodes)this.block(e,s+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(s+r+o,e)}}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(s.includes(`
25
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let l=0;l<o;l++)s+=n}return s}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],n=this.raw(o,"before");n&&this.builder(n),this.stringify(o,t!==r||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),r=e.prop+s+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,s){let r;if(s||(s=t),t&&(r=e.raws[t],typeof r!="undefined"))return r;let o=e.parent;if(s==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return dt[s];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[s]!="undefined")return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let l="raw"+Hs(s);this[l]?r=this[l](n,e):n.walk(a=>{if(r=a.raws[t],typeof r!="undefined")return!1})}return typeof r=="undefined"&&(r=dt[s]),n.rawCache[s]=r,r}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return t=s.raws.after,t.includes(`
26
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
27
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(r=>{if(typeof r.raws.before!="undefined")return s=r.raws.before,s.includes(`
28
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return t=s.raws.before,t.includes(`
29
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between!="undefined")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof s.raws.before!="undefined"){let o=s.raws.before.split(`
30
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Tt=Ae;Ae.default=Ae;let Js=Tt;function Me(i,e){new Js(e).stringify(i)}var de=Me;Me.default=Me;let{isClean:q,my:Xs}=H,Zs=Ye,Qs=Tt,qs=de;function _e(i,e){let t=new i.constructor;for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s)||s==="proxyCache")continue;let r=i[s],o=typeof r;s==="parent"&&o==="object"?e&&(t[s]=e):s==="source"?t[s]=r:Array.isArray(r)?t[s]=r.map(n=>_e(n,t)):(o==="object"&&r!==null&&(r=_e(r)),t[s]=r)}return t}let Te=class{constructor(e={}){this.raws={},this[q]=!1,this[Xs]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let s of e[t])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=_e(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:s,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:s.column,line:s.line},t)}return new Zs(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[q]){this[q]=!1;let e=this;for(;e=e.parent;)e[q]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(s=this.positionInside(r,t))}return s}positionInside(e,t){let s=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let n=0;n<e;n++)s[n]===`
31
- `?(r=1,o+=1):r+=1;return{column:r,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),s=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return new Qs().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let s={},r=t==null;t=t||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let l=this[n];if(Array.isArray(l))s[n]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)s[n]=l.toJSON(null,t);else if(n==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),s[n]={end:l.end,inputId:a,start:l.start}}else s[n]=l}return r&&(s.inputs=[...t.keys()].map(n=>n.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qs){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}warn(e,t,s){let r={node:this};for(let o in s)r[o]=s[o];return e.warn(t,r)}get proxyOf(){return this}};var ge=Te;Te.default=Te;let Ks=ge,Ie=class extends Ks{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e=B(v({},e),{value:String(e.value)})),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var we=Ie;Ie.default=Ie;let er="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tr=(i,e=21)=>(t=e)=>{let s="",r=t;for(;r--;)s+=i[Math.random()*i.length|0];return s},sr=(i=21)=>{let e="",t=i;for(;t--;)e+=er[Math.random()*64|0];return e};var rr={nanoid:sr,customAlphabet:tr};let{SourceMapConsumer:gt,SourceMapGenerator:wt}=N,{existsSync:ir,readFileSync:nr}=N,{dirname:Se,join:or}=N;function lr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Pe=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,r=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Se(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new gt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||s.test(e))return lr(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(e){if(this.root=Se(e),ir(e))return this.mapFile=e,nr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let s=t(e);if(s){let r=this.loadFile(s);if(!r)throw new Error("Unable to load previous source map: "+s.toString());return r}}else{if(t instanceof gt)return wt.fromSourceMap(t).toString();if(t instanceof wt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let s=this.annotation;return e&&(s=or(Se(e),s)),this.loadFile(s)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var It=Pe;Pe.default=Pe;let{SourceMapConsumer:ar,SourceMapGenerator:ur}=N,{fileURLToPath:yt,pathToFileURL:K}=N,{isAbsolute:$e,resolve:Le}=N,{nanoid:hr}=rr,ve=N,Rt=Ye,cr=It,Ne=Symbol("fromOffsetCache"),fr=!!(ar&&ur),Et=!!(Le&&$e),he=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Et||/^\w+:\/\//.test(t.from)||$e(t.from)?this.file=t.from:this.file=Le(t.from)),Et&&fr){let s=new cr(this.css,t);if(s.text){this.map=s;let r=s.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+hr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let o,n,l;if(t&&typeof t=="object"){let u=t,h=s;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);t=p.line,s=p.col}else t=u.line,s=u.column;if(typeof h.offset=="number"){let p=this.fromOffset(h.offset);n=p.line,l=p.col}else n=h.line,l=h.column}else if(!s){let u=this.fromOffset(t);t=u.line,s=u.col}let a=this.origin(t,s,n,l);return a?o=new Rt(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):o=new Rt(e,n===void 0?t:{column:s,line:t},n===void 0?s:{column:l,line:n},this.css,this.file,r.plugin),o.input={column:s,endColumn:l,endLine:n,line:t,source:this.css},this.file&&(K&&(o.input.url=K(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,s;if(this[Ne])s=this[Ne];else{let o=this.css.split(`
32
- `);s=new Array(o.length);let n=0;for(let l=0,a=o.length;l<a;l++)s[l]=n,n+=o[l].length+1;this[Ne]=s}t=s[s.length-1];let r=0;if(e>=t)r=s.length-1;else{let o=s.length-2,n;for(;r<o;)if(n=r+(o-r>>1),e<s[n])o=n-1;else if(e>=s[n+1])r=n+1;else{r=n;break}}return{col:e-s[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Le(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,r){if(!this.map)return!1;let o=this.map.consumer(),n=o.originalPositionFor({column:t,line:e});if(!n.source)return!1;let l;typeof s=="number"&&(l=o.originalPositionFor({column:r,line:s}));let a;$e(n.source)?a=K(n.source):a=new URL(n.source,this.map.consumer().sourceRoot||K(this.map.mapFile));let u={column:n.column,endColumn:l&&l.column,endLine:l&&l.line,line:n.line,url:a.toString()};if(a.protocol==="file:")if(yt)u.file=yt(a);else throw new Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(n.source);return h&&(u.source=h),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map=v({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var ye=he;he.default=he;ve&&ve.registerInput&&ve.registerInput(he);let{SourceMapConsumer:Pt,SourceMapGenerator:le}=N,{dirname:ae,relative:$t,resolve:Lt,sep:kt}=N,{pathToFileURL:bt}=N,pr=ye,mr=!!(Pt&&le),dr=!!(ae&&Lt&&$t&&kt),gr=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
24
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(u){return u[0].toUpperCase()+u.slice(1)}class s{constructor(r){this.builder=r}atrule(r,l){let a="@"+r.name,d=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName!="undefined"?a+=r.raws.afterName:d&&(a+=" "),r.nodes)this.block(r,a+d);else{let h=(r.raws.between||"")+(l?";":"");this.builder(a+d+h,r)}}beforeAfter(r,l){let a;r.type==="decl"?a=this.raw(r,null,"beforeDecl"):r.type==="comment"?a=this.raw(r,null,"beforeComment"):l==="before"?a=this.raw(r,null,"beforeRule"):a=this.raw(r,null,"beforeClose");let d=r.parent,h=0;for(;d&&d.type!=="root";)h+=1,d=d.parent;if(a.includes(`
25
+ `)){let m=this.raw(r,null,"indent");if(m.length)for(let i=0;i<h;i++)a+=m}return a}block(r,l){let a=this.raw(r,"between","beforeOpen");this.builder(l+a+"{",r,"start");let d;r.nodes&&r.nodes.length?(this.body(r),d=this.raw(r,"after")):d=this.raw(r,"after","emptyBody"),d&&this.builder(d),this.builder("}",r,"end")}body(r){let l=r.nodes.length-1;for(;l>0&&r.nodes[l].type==="comment";)l-=1;let a=this.raw(r,"semicolon");for(let d=0;d<r.nodes.length;d++){let h=r.nodes[d],m=this.raw(h,"before");m&&this.builder(m),this.stringify(h,l!==d||a)}}comment(r){let l=this.raw(r,"left","commentLeft"),a=this.raw(r,"right","commentRight");this.builder("/*"+l+r.text+a+"*/",r)}decl(r,l){let a=this.raw(r,"between","colon"),d=r.prop+a+this.rawValue(r,"value");r.important&&(d+=r.raws.important||" !important"),l&&(d+=";"),this.builder(d,r)}document(r){this.body(r)}raw(r,l,a){let d;if(a||(a=l),l&&(d=r.raws[l],typeof d!="undefined"))return d;let h=r.parent;if(a==="before"&&(!h||h.type==="root"&&h.first===r||h&&h.type==="document"))return"";if(!h)return t[a];let m=r.root();if(m.rawCache||(m.rawCache={}),typeof m.rawCache[a]!="undefined")return m.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(r,a);{let i="raw"+e(a);this[i]?d=this[i](m,r):m.walk(c=>{if(d=c.raws[l],typeof d!="undefined")return!1})}return typeof d=="undefined"&&(d=t[a]),m.rawCache[a]=d,d}rawBeforeClose(r){let l;return r.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after!="undefined")return l=a.raws.after,l.includes(`
26
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawBeforeComment(r,l){let a;return r.walkComments(d=>{if(typeof d.raws.before!="undefined")return a=d.raws.before,a.includes(`
27
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a=="undefined"?a=this.raw(l,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(r,l){let a;return r.walkDecls(d=>{if(typeof d.raws.before!="undefined")return a=d.raws.before,a.includes(`
28
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a=="undefined"?a=this.raw(l,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(r){let l;return r.walk(a=>{if(a.type!=="decl"&&(l=a.raws.between,typeof l!="undefined"))return!1}),l}rawBeforeRule(r){let l;return r.walk(a=>{if(a.nodes&&(a.parent!==r||r.first!==a)&&typeof a.raws.before!="undefined")return l=a.raws.before,l.includes(`
29
+ `)&&(l=l.replace(/[^\n]+$/,"")),!1}),l&&(l=l.replace(/\S/g,"")),l}rawColon(r){let l;return r.walkDecls(a=>{if(typeof a.raws.between!="undefined")return l=a.raws.between.replace(/[^\s:]/g,""),!1}),l}rawEmptyBody(r){let l;return r.walk(a=>{if(a.nodes&&a.nodes.length===0&&(l=a.raws.after,typeof l!="undefined"))return!1}),l}rawIndent(r){if(r.raws.indent)return r.raws.indent;let l;return r.walk(a=>{let d=a.parent;if(d&&d!==r&&d.parent&&d.parent===r&&typeof a.raws.before!="undefined"){let h=a.raws.before.split(`
30
+ `);return l=h[h.length-1],l=l.replace(/\S/g,""),!1}}),l}rawSemicolon(r){let l;return r.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(l=a.raws.semicolon,typeof l!="undefined"))return!1}),l}rawValue(r,l){let a=r[l],d=r.raws[l];return d&&d.value===a?d.raw:a}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,l){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,l)}}return ge=s,s.default=s,ge}var we,gt;function ie(){if(gt)return we;gt=1;let t=Wt();function e(s,u){new t(u).stringify(s)}return we=e,e.default=e,we}var ye,wt;function ne(){if(wt)return ye;wt=1;let{isClean:t,my:e}=$e(),s=Ge(),u=Wt(),r=ie();function l(d,h){let m=new d.constructor;for(let i in d){if(!Object.prototype.hasOwnProperty.call(d,i)||i==="proxyCache")continue;let c=d[i],o=typeof c;i==="parent"&&o==="object"?h&&(m[i]=h):i==="source"?m[i]=c:Array.isArray(c)?m[i]=c.map(n=>l(n,m)):(o==="object"&&c!==null&&(c=l(c)),m[i]=c)}return m}class a{constructor(h={}){this.raws={},this[t]=!1,this[e]=!0;for(let m in h)if(m==="nodes"){this.nodes=[];for(let i of h[m])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[m]=h[m]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let m=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${m.input.from}:${m.start.line}:${m.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let m in h)this[m]=h[m];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let m=l(this);for(let i in h)m[i]=h[i];return m}cloneAfter(h={}){let m=this.clone(h);return this.parent.insertAfter(this,m),m}cloneBefore(h={}){let m=this.clone(h);return this.parent.insertBefore(this,m),m}error(h,m={}){if(this.source){let{end:i,start:c}=this.rangeBy(m);return this.source.input.error(h,{column:c.column,line:c.line},{column:i.column,line:i.line},m)}return new s(h)}getProxyProcessor(){return{get(h,m){return m==="proxyOf"?h:m==="root"?()=>h.root().toProxy():h[m]},set(h,m,i){return h[m]===i||(h[m]=i,(m==="prop"||m==="value"||m==="name"||m==="params"||m==="important"||m==="text")&&h.markDirty()),!0}}}markDirty(){if(this[t]){this[t]=!1;let h=this;for(;h=h.parent;)h[t]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h,m){let i=this.source.start;if(h.index)i=this.positionInside(h.index,m);else if(h.word){m=this.toString();let c=m.indexOf(h.word);c!==-1&&(i=this.positionInside(c,m))}return i}positionInside(h,m){let i=m||this.toString(),c=this.source.start.column,o=this.source.start.line;for(let n=0;n<h;n++)i[n]===`
31
+ `?(c=1,o+=1):c+=1;return{column:c,line:o}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h){let m={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:m.column+1,line:m.line};if(h.word){let c=this.toString(),o=c.indexOf(h.word);o!==-1&&(m=this.positionInside(o,c),i=this.positionInside(o+h.word.length,c))}else h.start?m={column:h.start.column,line:h.start.line}:h.index&&(m=this.positionInside(h.index)),h.end?i={column:h.end.column,line:h.end.line}:typeof h.endIndex=="number"?i=this.positionInside(h.endIndex):h.index&&(i=this.positionInside(h.index+1));return(i.line<m.line||i.line===m.line&&i.column<=m.column)&&(i={column:m.column+1,line:m.line}),{end:i,start:m}}raw(h,m){return new u().raw(this,h,m)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let m=this,i=!1;for(let c of h)c===this?i=!0:i?(this.parent.insertAfter(m,c),m=c):this.parent.insertBefore(m,c);i||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,m){let i={},c=m==null;m=m||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let p=this[n];if(Array.isArray(p))i[n]=p.map(f=>typeof f=="object"&&f.toJSON?f.toJSON(null,m):f);else if(typeof p=="object"&&p.toJSON)i[n]=p.toJSON(null,m);else if(n==="source"){let f=m.get(p.input);f==null&&(f=o,m.set(p.input,o),o++),i[n]={end:p.end,inputId:f,start:p.start}}else i[n]=p}return c&&(i.inputs=[...m.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=r){h.stringify&&(h=h.stringify);let m="";return h(this,i=>{m+=i}),m}warn(h,m,i){let c={node:this};for(let o in i)c[o]=i[o];return h.warn(m,c)}get proxyOf(){return this}}return ye=a,a.default=a,ye}var Re,yt;function oe(){if(yt)return Re;yt=1;let t=ne();class e extends t{constructor(u){u&&typeof u.value!="undefined"&&typeof u.value!="string"&&(u=Y(k({},u),{value:String(u.value)})),super(u),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Re=e,e.default=e,Re}var Ee,Rt;function Tr(){if(Rt)return Ee;Rt=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ee={nanoid:(u=21)=>{let r="",l=u;for(;l--;)r+=t[Math.random()*64|0];return r},customAlphabet:(u,r=21)=>(l=r)=>{let a="",d=l;for(;d--;)a+=u[Math.random()*u.length|0];return a}},Ee}var be,Et;function jt(){if(Et)return be;Et=1;let{SourceMapConsumer:t,SourceMapGenerator:e}=U,{existsSync:s,readFileSync:u}=U,{dirname:r,join:l}=U;function a(h){return Buffer?Buffer.from(h,"base64").toString():window.atob(h)}class d{constructor(m,i){if(i.map===!1)return;this.loadAnnotation(m),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=r(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(m){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(o.test(m)||n.test(m))return decodeURIComponent(m.substr(RegExp.lastMatch.length));if(i.test(m)||c.test(m))return a(m.substr(RegExp.lastMatch.length));let p=m.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(m){return m.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(m){return typeof m!="object"?!1:typeof m.mappings=="string"||typeof m._mappings=="string"||Array.isArray(m.sections)}loadAnnotation(m){let i=m.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let c=m.lastIndexOf(i.pop()),o=m.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(m.substring(c,o)))}loadFile(m){if(this.root=r(m),s(m))return this.mapFile=m,u(m,"utf-8").toString().trim()}loadMap(m,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(m);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof t)return e.fromSourceMap(i).toString();if(i instanceof e)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return m&&(c=l(r(m),c)),this.loadFile(c)}}}startWith(m,i){return m?m.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return be=d,d.default=d,be}var Ce,bt;function le(){if(bt)return Ce;bt=1;let{SourceMapConsumer:t,SourceMapGenerator:e}=U,{fileURLToPath:s,pathToFileURL:u}=U,{isAbsolute:r,resolve:l}=U,{nanoid:a}=Tr(),d=U,h=Ge(),m=jt(),i=Symbol("fromOffsetCache"),c=!!(t&&e),o=!!(l&&r);class n{constructor(f,g={}){if(f===null||typeof f=="undefined"||typeof f=="object"&&!f.toString)throw new Error(`PostCSS received ${f} instead of CSS string`);if(this.css=f.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!o||/^\w+:\/\//.test(g.from)||r(g.from)?this.file=g.from:this.file=l(g.from)),o&&c){let b=new m(this.css,g);if(b.text){this.map=b;let R=b.consumer().file;!this.file&&R&&(this.file=this.mapResolve(R))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(f,g,b,R={}){let E,v,y;if(g&&typeof g=="object"){let C=g,N=b;if(typeof C.offset=="number"){let M=this.fromOffset(C.offset);g=M.line,b=M.col}else g=C.line,b=C.column;if(typeof N.offset=="number"){let M=this.fromOffset(N.offset);v=M.line,y=M.col}else v=N.line,y=N.column}else if(!b){let C=this.fromOffset(g);g=C.line,b=C.col}let w=this.origin(g,b,v,y);return w?E=new h(f,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,R.plugin):E=new h(f,v===void 0?g:{column:b,line:g},v===void 0?b:{column:y,line:v},this.css,this.file,R.plugin),E.input={column:b,endColumn:y,endLine:v,line:g,source:this.css},this.file&&(u&&(E.input.url=u(this.file).toString()),E.input.file=this.file),E}fromOffset(f){let g,b;if(this[i])b=this[i];else{let E=this.css.split(`
32
+ `);b=new Array(E.length);let v=0;for(let y=0,w=E.length;y<w;y++)b[y]=v,v+=E[y].length+1;this[i]=b}g=b[b.length-1];let R=0;if(f>=g)R=b.length-1;else{let E=b.length-2,v;for(;R<E;)if(v=R+(E-R>>1),f<b[v])E=v-1;else if(f>=b[v+1])R=v+1;else{R=v;break}}return{col:f-b[R]+1,line:R+1}}mapResolve(f){return/^\w+:\/\//.test(f)?f:l(this.map.consumer().sourceRoot||this.map.root||".",f)}origin(f,g,b,R){if(!this.map)return!1;let E=this.map.consumer(),v=E.originalPositionFor({column:g,line:f});if(!v.source)return!1;let y;typeof b=="number"&&(y=E.originalPositionFor({column:R,line:b}));let w;r(v.source)?w=u(v.source):w=new URL(v.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let C={column:v.column,endColumn:y&&y.column,endLine:y&&y.line,line:v.line,url:w.toString()};if(w.protocol==="file:")if(s)C.file=s(w);else throw new Error("file: protocol is not available in this PostCSS build");let N=E.sourceContentFor(v.source);return N&&(C.source=N),C}toJSON(){let f={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(f[g]=this[g]);return this.map&&(f.map=k({},this.map),f.map.consumerCache&&(f.map.consumerCache=void 0)),f}get from(){return this.file||this.id}}return Ce=n,n.default=n,d&&d.registerInput&&d.registerInput(n),Ce}var ve,Ct;function Gt(){if(Ct)return ve;Ct=1;let{SourceMapConsumer:t,SourceMapGenerator:e}=U,{dirname:s,relative:u,resolve:r,sep:l}=U,{pathToFileURL:a}=U,d=le(),h=!!(t&&e),m=!!(s&&r&&u&&l);class i{constructor(o,n,p,f){this.stringify=o,this.mapOpts=p.map||{},this.root=n,this.opts=p,this.css=f,this.originalCSS=f,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let n=`
33
33
  `;this.css.includes(`\r
34
- `)&&(t=`\r
35
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||ae(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Pt(e.text),r.sourcesContent&&(r.sourcesContent=null)):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(s)))}}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(),dr&&mr&&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=le.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new le({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 le({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,s="<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=s,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,n=l.lastIndexOf(`
36
- `),t=l.length-n):t+=l.length,a&&u!=="start"){let h=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=s,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 s=this.opts.to?ae(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=ae(Lt(s,this.mapOpts.annotation)));let r=$t(s,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 pr(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 s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));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(bt){let s=bt(e).toString();return this.memoizedFileURLs.set(e,s),s}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;kt==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var Ut=gr;let wr=ge,ke=class extends wr{constructor(e){super(e),this.type="comment"}};var Re=ke;ke.default=ke;let{isClean:Ft,my:Bt}=H,zt=we,jt=Re,yr=ge,Gt,He,Je,Wt;function Vt(i){return i.map(e=>(e.nodes&&(e.nodes=Vt(e.nodes)),delete e.source,e))}function Yt(i){if(i[Ft]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Yt(e)}let M=class Ht extends yr{append(...e){for(let t of e){let s=this.normalize(t,this.last);for(let r of s)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(),s,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(s=this.indexes[t],r=e(this.proxyOf.nodes[s],s),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")?(...s)=>e[t](...s.map(r=>typeof r=="function"?(o,n)=>r(o.toProxy(),n):r)):t==="every"||t==="some"?s=>e[t]((r,...o)=>s(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(s=>s.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(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 s=this.index(e),r=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let n of r)this.proxyOf.nodes.splice(s+1,0,n);let o;for(let n in this.indexes)o=this.indexes[n],s<o&&(this.indexes[n]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),r=s===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[s],r).reverse();s=this.index(e);for(let l of o)this.proxyOf.nodes.splice(s,0,l);let n;for(let l in this.indexes)n=this.indexes[l],s<=n&&(this.indexes[l]=n+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Vt(Gt(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 zt(e)]}else if(e.selector)e=[new He(e)];else if(e.name)e=[new Je(e)];else if(e.text)e=[new jt(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Bt]||Ht.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Ft]&&Yt(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 s=this.normalize(t,this.first,"prepend").reverse();for(let r of s)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+s.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 s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=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,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}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((s,r)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if(s.type==="atrule"&&s.name===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="atrule")return t(s,r)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if(s.type==="decl"&&s.prop===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="decl")return t(s,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if(s.type==="rule"&&s.selector===e)return t(s,r)}):(t=e,this.walk((s,r)=>{if(s.type==="rule")return t(s,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]}};M.registerParse=i=>{Gt=i};M.registerRule=i=>{He=i};M.registerAtRule=i=>{Je=i};M.registerRoot=i=>{Wt=i};var I=M;M.default=M;M.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Je.prototype):i.type==="rule"?Object.setPrototypeOf(i,He.prototype):i.type==="decl"?Object.setPrototypeOf(i,zt.prototype):i.type==="comment"?Object.setPrototypeOf(i,jt.prototype):i.type==="root"&&Object.setPrototypeOf(i,Wt.prototype),i[Bt]=!0,i.nodes&&i.nodes.forEach(e=>{M.rebuild(e)})};let Rr=I,Jt,Xt,G=class extends Rr{constructor(e){super(v({type:"document"},e)),this.nodes||(this.nodes=[])}toResult(e={}){return new Jt(new Xt,this,e).stringify()}};G.registerLazyResult=i=>{Jt=i};G.registerProcessor=i=>{Xt=i};var Xe=G;G.default=G;let Ue=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}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 Zt=Ue;Ue.default=Ue;let Er=Zt,Fe=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,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 s=new Er(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Ze=Fe;Fe.default=Fe;const Oe=39,Ct=34,ee=92,xt=47,te=10,z=32,se=12,re=9,ie=13,br=91,Cr=93,xr=40,Sr=41,vr=123,Nr=125,Or=59,Dr=42,Ar=58,Mr=64,ne=/[\t\n\f\r "#'()/;[\\\]{}]/g,oe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_r=/.[\r\n"'(/\\]/,St=/[\da-f]/i;var Tr=function(e,t={}){let s=e.css.valueOf(),r=t.ignoreErrors,o,n,l,a,u,h,p,m,R,E,T=s.length,f=0,_=[],b=[];function C(){return f}function S(P){throw e.error("Unclosed "+P,f)}function be(){return b.length===0&&f>=T}function _s(P){if(b.length)return b.pop();if(f>=T)return;let Ce=P?P.ignoreUnclosed:!1;switch(o=s.charCodeAt(f),o){case te:case z:case re:case ie:case se:{n=f;do n+=1,o=s.charCodeAt(n);while(o===z||o===te||o===re||o===ie||o===se);E=["space",s.slice(f,n)],f=n-1;break}case br:case Cr:case vr:case Nr:case Ar:case Or:case Sr:{let at=String.fromCharCode(o);E=[at,at,f];break}case xr:{if(m=_.length?_.pop()[1]:"",R=s.charCodeAt(f+1),m==="url"&&R!==Oe&&R!==Ct&&R!==z&&R!==te&&R!==re&&R!==se&&R!==ie){n=f;do{if(h=!1,n=s.indexOf(")",n+1),n===-1)if(r||Ce){n=f;break}else S("bracket");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,h=!h}while(h);E=["brackets",s.slice(f,n+1),f,n],f=n}else n=s.indexOf(")",f+1),a=s.slice(f,n+1),n===-1||_r.test(a)?E=["(","(",f]:(E=["brackets",a,f,n],f=n);break}case Oe:case Ct:{l=o===Oe?"'":'"',n=f;do{if(h=!1,n=s.indexOf(l,n+1),n===-1)if(r||Ce){n=f+1;break}else S("string");for(p=n;s.charCodeAt(p-1)===ee;)p-=1,h=!h}while(h);E=["string",s.slice(f,n+1),f,n],f=n;break}case Mr:{ne.lastIndex=f+1,ne.test(s),ne.lastIndex===0?n=s.length-1:n=ne.lastIndex-2,E=["at-word",s.slice(f,n+1),f,n],f=n;break}case ee:{for(n=f,u=!0;s.charCodeAt(n+1)===ee;)n+=1,u=!u;if(o=s.charCodeAt(n+1),u&&o!==xt&&o!==z&&o!==te&&o!==re&&o!==ie&&o!==se&&(n+=1,St.test(s.charAt(n)))){for(;St.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===z&&(n+=1)}E=["word",s.slice(f,n+1),f,n],f=n;break}default:{o===xt&&s.charCodeAt(f+1)===Dr?(n=s.indexOf("*/",f+2)+1,n===0&&(r||Ce?n=s.length:S("comment")),E=["comment",s.slice(f,n+1),f,n],f=n):(oe.lastIndex=f+1,oe.test(s),oe.lastIndex===0?n=s.length-1:n=oe.lastIndex-2,E=["word",s.slice(f,n+1),f,n],_.push(E),f=n);break}}return f++,E}function Ts(P){b.push(P)}return{back:Ts,endOfFile:be,nextToken:_s,position:C}};let Qt=I,ce=class extends Qt{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 Qe=ce;ce.default=ce;Qt.registerAtRule(ce);let qt=I,Kt,es,L=class extends qt{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t){if(s==="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 s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new Kt(new es,this,e).stringify()}};L.registerLazyResult=i=>{Kt=i};L.registerProcessor=i=>{es=i};var J=L;L.default=L;qt.registerRoot(L);let W={comma(i){return W.split(i,[","],!0)},space(i){let e=[" ",`
37
- `," "];return W.split(i,e)},split(i,e,t){let s=[],r="",o=!1,n=0,l=!1,a="",u=!1;for(let h of i)u?u=!1:h==="\\"?u=!0:l?h===a&&(l=!1):h==='"'||h==="'"?(l=!0,a=h):h==="("?n+=1:h===")"?n>0&&(n-=1):n===0&&e.includes(h)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=h;return(t||r!=="")&&s.push(r.trim()),s}};var ts=W;W.default=W;let ss=I,Ir=ts,fe=class extends ss{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ir.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var qe=fe;fe.default=fe;ss.registerRule(fe);let Pr=we,$r=Tr,Lr=Re,kr=Qe,Ur=J,vt=qe;const Nt={empty:!0,space:!0};function Fr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let Br=class{constructor(e){this.input=e,this.root=new Ur,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 kr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,r,o,n=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?u.push(s==="("?")":"]"):s==="{"&&u.length>0?u.push("}"):s===u[u.length-1]&&u.pop(),u.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){l=!0;break}else if(s==="}"){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 s=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(s+=1,s===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,s,r,o;for(let[n,l]of e.entries()){if(s=l,r=s[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(s);else{if(o[0]==="word"&&o[1]==="progid")continue;return n}o=s}return!1}comment(e){let t=new Lr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let r=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=$r(this.input)}decl(e,t){let s=new Pr;this.init(s,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(r[3]||r[2]||Fr(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){s.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),s.raws.between+=o[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.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"){s.important=!0;let h=this.stringFrom(e,u);h=this.spacesFromEnd(e)+h,h!==" !important"&&(s.raws.important=h);break}else if(o[1].toLowerCase()==="important"){let h=e.slice(0),p="";for(let m=u;m>0;m--){let R=h[m][0];if(p.trim().indexOf("!")===0&&R!=="space")break;p=h.pop()[1]+p}p.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=p,e=h)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(s.raws.between+=n.map(u=>u[1]).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.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 vt;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,s=null,r=!1,o=null,n=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(s=u[0],a.push(u),s==="("||s==="[")o||(o=u),n.push(s==="("?")":"]");else if(l&&r&&s==="{")o||(o=u),n.push("}");else if(n.length===0)if(s===";")if(r){this.decl(a,l);return}else break;else if(s==="{"){this.rule(a);return}else if(s==="}"){this.tokenizer.back(a.pop()),t=!0;break}else s===":"&&(r=!0);else s===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,s,r){let o,n,l=s.length,a="",u=!0,h,p;for(let m=0;m<l;m+=1)o=s[m],n=o[0],n==="space"&&m===l-1&&!r?u=!1:n==="comment"?(p=s[m-1]?s[m-1][0]:"empty",h=s[m+1]?s[m+1][0]:"empty",!Nt[p]&&!Nt[h]?a.slice(-1)===","?u=!1:a+=o[1]:u=!1):a+=o[1];if(!u){let m=s.reduce((R,E)=>R+E[1],"");e.raws[t]={raw:m,value:a}}e[t]=a}rule(e){e.pop();let t=new vt;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}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 zr=Br;let jr=I,Gr=zr,Wr=ye;function pe(i,e){let t=new Wr(i,e),s=new Gr(t);try{s.parse()}catch(r){throw r}return s.root}var Ke=pe;pe.default=pe;jr.registerParse(pe);let{isClean:O,my:Vr}=H,Yr=Ut,Hr=de,Jr=I,Xr=Xe;let Ot=Ze,Zr=Ke,Qr=J;const qr={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Kr={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},ei={Once:!0,postcssPlugin:!0,prepare:!0},k=0;function j(i){return typeof i=="object"&&typeof i.then=="function"}function rs(i){let e=!1,t=qr[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,k,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,k,t+"Exit"]:[t,t+"Exit"]}function Dt(i){let e;return i.type==="document"?e=["Document",k,"DocumentExit"]:i.type==="root"?e=["Root",k,"RootExit"]:e=rs(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Be(i){return i[O]=!1,i.nodes&&i.nodes.forEach(e=>Be(e)),i}let ze={},U=class is{constructor(e,t,s){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=Be(t);else if(t instanceof is||t instanceof Ot)r=Be(t.root),t.map&&(typeof s.map=="undefined"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let o=Zr;s.syntax&&(o=s.syntax.parse),s.parser&&(o=s.parser),o.parse&&(o=o.parse);try{r=o(t,s)}catch(n){this.processed=!0,this.error=n}r&&!r[Vr]&&Jr.rebuild(r)}this.result=new Ot(e,r,s),this.helpers=B(v({},ze),{postcss:ze,result:this.result}),this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?v(v({},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 s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,s,r)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Kr[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ei[s])if(typeof t[s]=="object")for(let r in t[s])r==="*"?e(t,s,t[s][r]):e(t,s+"-"+r.toLowerCase(),t[s][r]);else typeof t[s]=="function"&&e(t,s,t[s])}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],s=this.runOnRoot(t);if(j(s))try{await s}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];){e[O]=!0;let t=[Dt(e)];for(;t.length>0;){let s=this.visitTick(t);if(j(s))try{await s}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>s(o,this.helpers));await Promise.all(r)}else await s(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(s=>e.Once(s,this.helpers));return j(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=Hr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Yr(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(j(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[O];)e[O]=!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[s,r]of e){this.result.lastPlugin=s;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(j(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if(s.type!=="root"&&s.type!=="document"&&!s.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(s.toProxy(),this.helpers)}catch(a){throw this.handleError(a,s)}}if(t.iterator!==0){let n=t.iterator,l;for(;l=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!l[O]){l[O]=!0,e.push(Dt(l));return}t.iterator=0,delete s.indexes[n]}let o=t.events;for(;t.eventIndex<o.length;){let n=o[t.eventIndex];if(t.eventIndex+=1,n===k){s.nodes&&s.nodes.length&&(s[O]=!0,t.iterator=s.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[O]=!0;let t=rs(e);for(let s of t)if(s===k)e.nodes&&e.each(r=>{r[O]||this.walkSync(r)});else{let r=this.listeners[s];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"}};U.registerPostcss=i=>{ze=i};var ns=U;U.default=U;Qr.registerLazyResult(U);Xr.registerLazyResult(U);let ti=Ut,si=de;let ri=Ke;const ii=Ze;let je=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let r,o=si;this.result=new ii(this._processor,r,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let l=new ti(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=ri;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ni=je;je.default=je;let oi=ni,li=ns,ai=Xe,ui=J,V=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new oi(this,e,t):new li(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var hi=V;V.default=V;ui.registerProcessor(V);ai.registerProcessor(V);let ci=we,fi=It,pi=Re,mi=Qe,di=ye,gi=J,wi=qe;function Y(i,e){if(Array.isArray(i))return i.map(n=>Y(n));let r=i,{inputs:t}=r,s=xe(r,["inputs"]);if(t){e=[];for(let n of t){let l=B(v({},n),{__proto__:di.prototype});l.map&&(l.map=B(v({},l.map),{__proto__:fi.prototype})),e.push(l)}}if(s.nodes&&(s.nodes=i.nodes.map(n=>Y(n,e))),s.source){let o=s.source,{inputId:n}=o,l=xe(o,["inputId"]);s.source=l,n!=null&&(s.source.input=e[n])}if(s.type==="root")return new gi(s);if(s.type==="decl")return new ci(s);if(s.type==="rule")return new wi(s);if(s.type==="comment")return new pi(s);if(s.type==="atrule")return new mi(s);throw new Error("Unknown node type: "+i.type)}var yi=Y;Y.default=Y;let Ri=Ye,os=we,Ei=ns,bi=I,et=hi,Ci=de,xi=yi,ls=Xe,Si=Zt,as=Re,us=Qe,vi=Ze,Ni=ye,Oi=Ke,Di=ts,hs=qe,cs=J,Ai=ge;function g(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new et(i)}g.plugin=function(e,t){let s=!1;function r(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
38
- 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:
39
- https://www.w3ctech.com/topic/2226`));let l=t(...n);return l.postcssPlugin=e,l.postcssVersion=new et().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(n,l,a){return g([r(a)]).process(n,l)},r};g.stringify=Ci;g.parse=Oi;g.fromJSON=xi;g.list=Di;g.comment=i=>new as(i);g.atRule=i=>new us(i);g.decl=i=>new os(i);g.rule=i=>new hs(i);g.root=i=>new cs(i);g.document=i=>new ls(i);g.CssSyntaxError=Ri;g.Declaration=os;g.Container=bi;g.Processor=et;g.Document=ls;g.Comment=as;g.Warning=Si;g.AtRule=us;g.Result=vi;g.Input=Ni;g.Rule=hs;g.Root=cs;g.Node=Ai;Ei.registerPostcss(g);var Mi=g;g.default=g;const y=js(Mi);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;var d=(i=>(i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment",i))(d||{});function _i(i){const e={},t=/;(?![^(]*\))/g,s=/:(.+)/,r=/\/\*.*?\*\//g;return i.replace(r,"").split(t).forEach(function(o){if(o){const n=o.split(s);n.length>1&&(e[Ge(n[0].trim())]=n[1].trim())}}),e}function At(i){const e=[];for(const t in i){const s=i[t];if(typeof s!="string")continue;const r=$i(t);e.push(`${r}: ${s};`)}return e.join(" ")}const Ti=/-([a-z])/g,Ii=/^--[a-zA-Z0-9-]+$/,Ge=i=>Ii.test(i)?i:i.replace(Ti,(e,t)=>t?t.toUpperCase():""),Pi=/\B([A-Z])/g,$i=i=>i.replace(Pi,"-$1").toLowerCase();class A{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 A){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 Ee extends A{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 s=nt(this,e);return s.parentElement=null,s}insertBefore(e,t){const s=e.RRNodeType;if((s===d.Element||s===d.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${s===d.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=ds(this,e,t);return r.parentElement=null,r}removeChild(e){return gs(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 s=this.createDocumentType("html",t,"");this.open(),this.appendChild(s)}}createDocument(e,t,s){return new Ee}createDocumentType(e,t,s){const r=new tt(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=new X(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new st(e);return t.ownerDocument=this,t}createComment(e){const t=new rt(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new it(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class tt extends A{constructor(e,t,s){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=s,this.nodeName=e}toString(){return"RRDocumentType"}}class X extends A{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 ms(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?_i(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(s,r,o)=>{if(t.test(s))return;const n=Ge(s);r?e[n]=r:delete e[n],o==="important"&&(e[n]+=" !important"),this.attributes.style=At(e)},e.removeProperty=s=>{if(t.test(s))return"";const r=Ge(s),o=e[r]||"";return delete e[r],this.attributes.style=At(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,s){this.setAttribute(t,s)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return nt(this,e)}insertBefore(e,t){return ds(this,e,t)}removeChild(e){return gs(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 fs extends X{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 ps extends X{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 st extends A{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 rt extends A{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 it extends A{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 ms{constructor(e,t){if(c(this,"onChange"),c(this,"classes",[]),c(this,"add",(...s)=>{for(const r of s){const o=String(r);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),c(this,"remove",(...s)=>{this.classes=this.classes.filter(r=>s.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const s=e.trim().split(/\s+/);this.classes.push(...s)}this.onChange=t}}function nt(i,e){return e.parentNode&&e.parentNode.removeChild(e),i.lastChild?(i.lastChild.nextSibling=e,e.previousSibling=i.lastChild):(i.firstChild=e,e.previousSibling=null),i.lastChild=e,e.nextSibling=null,e.parentNode=i,e.parentElement=i,e.ownerDocument=i.ownerDocument,e}function ds(i,e,t){if(!t)return nt(i,e);if(t.parentNode!==i)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:i.firstChild=e,e.parentElement=i,e.parentNode=i,e.ownerDocument=i.ownerDocument),e}function gs(i,e){if(e.parentNode!==i)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:i.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:i.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var x=(i=>(i[i.PLACEHOLDER=0]="PLACEHOLDER",i[i.ELEMENT_NODE=1]="ELEMENT_NODE",i[i.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",i[i.TEXT_NODE=3]="TEXT_NODE",i[i.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",i[i.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",i[i.ENTITY_NODE=6]="ENTITY_NODE",i[i.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",i[i.COMMENT_NODE=8]="COMMENT_NODE",i[i.DOCUMENT_NODE=9]="DOCUMENT_NODE",i[i.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",i[i.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",i))(x||{});const We={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},Li={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 D=null;function ot(i,e,t,s=e.mirror||e.ownerDocument.mirror){i=ki(i,e,t,s),ws(i,e,t,s),Ui(i,e,t)}function ki(i,e,t,s){var r;if(t.afterAppend&&!D&&(D=new WeakSet,setTimeout(()=>{D=null},0)),!lt(i,e)){const o=me(e,t.mirror,s);(r=i.parentNode)==null||r.replaceChild(o,i),i=o}switch(e.RRNodeType){case d.Document:{if(!$(i,e,t.mirror,s)){const o=s.getMeta(e);o&&(t.mirror.removeNodeFromMap(i),i.close(),i.open(),t.mirror.add(i,o),D==null||D.add(i))}break}case d.Element:{const o=i,n=e;switch(n.tagName){case"IFRAME":{const l=i.contentDocument;if(!l)break;ot(l,e.contentDocument,t,s);break}}n.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),ws(o.shadowRoot,n.shadowRoot,t,s)),Fi(o,n,s);break}}return i}function Ui(i,e,t){var s;switch(e.RRNodeType){case d.Document:{const r=e.scrollData;r&&t.applyScroll(r,!0);break}case d.Element:{const r=i,o=e;switch(o.scrollData&&t.applyScroll(o.scrollData,!0),o.inputData&&t.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{const n=i,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,i));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"),h=l.open,p=l.isModal,m=u!==p,R=a!==h;if((m||a&&R)&&n.close(),h&&(R||m))try{p?n.showModal():n.show()}catch(E){console.warn(E)}break}}break}case d.Text:case d.Comment:case d.CDATA:{i.textContent!==e.data&&(i.textContent=e.data);break}}D!=null&&D.has(i)&&(D.delete(i),(s=t.afterAppend)==null||s.call(t,i,t.mirror.getId(i)))}function Fi(i,e,t){const s=i.attributes,r=e.attributes;for(const o in r){const n=r[o],l=t.getMeta(e);if(l!=null&&l.isSVG&&We[o])i.setAttributeNS(We[o],o,n);else if(e.tagName==="CANVAS"&&o==="rr_dataURL"){const a=document.createElement("img");a.src=n,a.onload=()=>{const u=i.getContext("2d");u&&u.drawImage(a,0,0,a.width,a.height)}}else{if(e.tagName==="IFRAME"&&o==="srcdoc")continue;try{i.setAttribute(o,n)}catch(a){console.warn(a)}}}for(const{name:o}of Array.from(s))o in r||i.removeAttribute(o);e.scrollLeft&&(i.scrollLeft=e.scrollLeft),e.scrollTop&&(i.scrollTop=e.scrollTop)}function ws(i,e,t,s){const r=Array.from(i.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,h=r[n],p=r[l],m=o[a],R=o[u],E,T;for(;n<=l&&a<=u;)if(h===void 0)h=r[++n];else if(p===void 0)p=r[--l];else if($(h,m,t.mirror,s))h=r[++n],m=o[++a];else if($(p,R,t.mirror,s))p=r[--l],R=o[--u];else if($(h,R,t.mirror,s)){try{i.insertBefore(h,p.nextSibling)}catch(b){console.warn(b)}h=r[++n],R=o[--u]}else if($(p,m,t.mirror,s)){try{i.insertBefore(p,h)}catch(b){console.warn(b)}p=r[--l],m=o[++a]}else{if(!E){E={};for(let C=n;C<=l;C++){const S=r[C];S&&t.mirror.hasNode(S)&&(E[t.mirror.getId(S)]=C)}}T=E[s.getId(m)];const b=r[T];if(T!==void 0&&b&&$(b,m,t.mirror,s)){try{i.insertBefore(b,h)}catch(C){console.warn(C)}r[T]=void 0}else{const C=me(m,t.mirror,s);i.nodeName==="#document"&&h&&(C.nodeType===C.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||C.nodeType===C.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(i.removeChild(h),t.mirror.removeNodeFromMap(h),h=r[++n]);try{i.insertBefore(C,h||null)}catch(S){console.warn(S)}}m=o[++a]}if(n>l){const b=o[u+1];let C=null;for(b&&(C=t.mirror.getNode(s.getId(b)));a<=u;++a){const S=me(o[a],t.mirror,s);try{i.insertBefore(S,C)}catch(be){console.warn(be)}}}else if(a>u)for(;n<=l;n++){const b=r[n];if(!(!b||b.parentNode!==i))try{i.removeChild(b),t.mirror.removeNodeFromMap(b)}catch(C){console.warn(C)}}let f=i.firstChild,_=e.firstChild;for(;f!==null&&_!==null;)ot(f,_,t,s),f=f.nextSibling,_=_.nextSibling}function me(i,e,t){const s=t.getId(i),r=t.getMeta(i);let o=null;if(s>-1&&(o=e.getNode(s)),o!==null&&lt(o,i))return o;switch(i.RRNodeType){case d.Document:o=new Document;break;case d.DocumentType:o=document.implementation.createDocumentType(i.name,i.publicId,i.systemId);break;case d.Element:{let n=i.tagName.toLowerCase();n=Li[n]||n,r&&"isSVG"in r&&(r!=null&&r.isSVG)?o=document.createElementNS(We.svg,n):o=document.createElement(i.tagName);break}case d.Text:o=document.createTextNode(i.data);break;case d.Comment:o=document.createComment(i.data);break;case d.CDATA:o=document.createCDATASection(i.data);break}r&&e.add(o,v({},r));try{D==null||D.add(o)}catch(n){}return o}function lt(i,e){return i.nodeType!==e.nodeType?!1:i.nodeType!==i.ELEMENT_NODE||i.tagName.toUpperCase()===e.tagName}function $(i,e,t,s){const r=t.getId(i),o=s.getId(e);return r===-1||r!==o?!1:lt(i,e)}class F extends Ee{constructor(e){super(),c(this,"UNSERIALIZED_STARTING_ID",-2),c(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),c(this,"mirror",Ds()),c(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,s){return new F}createDocumentType(e,t,s){const r=new ys(e,t,s);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let s;switch(t){case"AUDIO":case"VIDEO":s=new Rs(t);break;case"IFRAME":s=new xs(t,this.mirror);break;case"CANVAS":s=new bs(t);break;case"STYLE":s=new Cs(t);break;case"DIALOG":s=new Es(t);break;default:s=new Z(t);break}return s.ownerDocument=this,s}createComment(e){const t=new vs(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Ns(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Ss(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 ys=tt;class Z extends X{constructor(){super(...arguments),c(this,"inputData",null),c(this,"scrollData",null)}}class Rs extends fs{}class Es extends ps{}class bs extends Z{constructor(){super(...arguments),c(this,"rr_dataURL",null),c(this,"canvasMutations",[])}getContext(){return null}}class Cs extends Z{constructor(){super(...arguments),c(this,"rules",[])}}class xs extends Z{constructor(e,t){super(e),c(this,"contentDocument",new F),this.contentDocument.mirror=t}}const Ss=st,vs=rt,Ns=it;function Bi(i){return i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}function Os(i,e,t,s){let r;switch(i.nodeType){case x.DOCUMENT_NODE:s&&s.nodeName==="IFRAME"?r=s.contentDocument:(r=e,r.compatMode=i.compatMode);break;case x.DOCUMENT_TYPE_NODE:{const n=i;r=e.createDocumentType(n.name,n.publicId,n.systemId);break}case x.ELEMENT_NODE:{const n=i,l=Bi(n);r=e.createElement(l);const a=r;for(const{name:u,value:h}of Array.from(n.attributes))a.attributes[u]=h;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case x.TEXT_NODE:r=e.createTextNode(i.textContent||"");break;case x.CDATA_SECTION_NODE:r=e.createCDATASection(i.data);break;case x.COMMENT_NODE:r=e.createComment(i.textContent||"");break;case x.DOCUMENT_FRAGMENT_NODE:r=s.attachShadow({mode:"open"});break;default:return null}let o=t.getMeta(i);return e instanceof F&&(o||(o=Ms(r,e.unserializedId),t.add(i,o)),e.mirror.add(r,v({},o))),r}function zi(i,e=zs(),t=new F){function s(r,o){const n=Os(r,t,e,o);if(n!==null)if((o==null?void 0:o.nodeName)!=="IFRAME"&&r.nodeType!==x.DOCUMENT_FRAGMENT_NODE&&(o==null||o.appendChild(n),n.parentNode=o,n.parentElement=o),r.nodeName==="IFRAME"){const l=r.contentDocument;l&&s(l,n)}else(r.nodeType===x.DOCUMENT_NODE||r.nodeType===x.ELEMENT_NODE||r.nodeType===x.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===x.ELEMENT_NODE&&r.shadowRoot&&s(r.shadowRoot,n),r.childNodes.forEach(l=>s(l,n)))}return s(i,null),t}function Ds(){return new As}class As{constructor(){c(this,"idNodeMap",new Map),c(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const s=(t=this.getMeta(e))==null?void 0:t.id;return s!=null?s:-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(s=>this.removeNodeFromMap(s))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const s=t.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,t)}replace(e,t){const s=this.getNode(e);if(s){const r=this.nodeMetaMap.get(s);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ms(i,e){switch(i.RRNodeType){case d.Document:return{id:e,type:i.RRNodeType,childNodes:[]};case d.DocumentType:{const t=i;return{id:e,type:i.RRNodeType,name:t.name,publicId:t.publicId,systemId:t.systemId}}case d.Element:return{id:e,type:i.RRNodeType,tagName:i.tagName.toLowerCase(),attributes:{},childNodes:[]};case d.Text:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.Comment:return{id:e,type:i.RRNodeType,textContent:i.textContent||""};case d.CDATA:return{id:e,type:i.RRNodeType,textContent:""}}}function ji(i,e){return ue(i,e,"")}function ue(i,e,t){let s=`${t}${e.getId(i)} ${i.toString()}
40
- `;if(i.RRNodeType===d.Element){const r=i;r.shadowRoot&&(s+=ue(r.shadowRoot,e,t+" "))}for(const r of i.childNodes)s+=ue(r,e,t+" ");return i.nodeName==="IFRAME"&&(s+=ue(i.contentDocument,e,t+" ")),s}exports.BaseRRCDATASection=it;exports.BaseRRComment=rt;exports.BaseRRDialogElement=ps;exports.BaseRRDocument=Ee;exports.BaseRRDocumentType=tt;exports.BaseRRElement=X;exports.BaseRRMediaElement=fs;exports.BaseRRNode=A;exports.BaseRRText=st;exports.ClassList=ms;exports.Mirror=As;exports.NodeType=x;exports.RRCDATASection=Ns;exports.RRCanvasElement=bs;exports.RRComment=vs;exports.RRDialogElement=Es;exports.RRDocument=F;exports.RRDocumentType=ys;exports.RRElement=Z;exports.RRIFrameElement=xs;exports.RRMediaElement=Rs;exports.RRNode=A;exports.RRStyleElement=Cs;exports.RRText=Ss;exports.buildFromDom=zi;exports.buildFromNode=Os;exports.createMirror=Ds;exports.createOrGetNode=me;exports.diff=ot;exports.getDefaultSN=Ms;exports.printRRDom=ji;
34
+ `)&&(n=`\r
35
+ `),this.css+=n+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let n=this.toUrl(this.path(o.file)),p=o.root||s(o.file),f;this.mapOpts.sourcesContent===!1?(f=new t(o.text),f.sourcesContent&&(f.sourcesContent=null)):f=o.consumer(),this.map.applySourceMap(f,n,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let n=this.root.nodes.length-1;n>=0;n--)o=this.root.nodes[n],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),m&&h&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,n=>{o+=n}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=e.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new e({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 e({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,n=1,p="<no source>",f={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,b;this.stringify(this.root,(R,E,v)=>{if(this.css+=R,E&&v!=="end"&&(f.generated.line=o,f.generated.column=n-1,E.source&&E.source.start?(f.source=this.sourcePath(E),f.original.line=E.source.start.line,f.original.column=E.source.start.column-1,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,this.map.addMapping(f))),g=R.match(/\n/g),g?(o+=g.length,b=R.lastIndexOf(`
36
+ `),n=R.length-b):n+=R.length,E&&v!=="start"){let y=E.parent||{raws:{}};(!(E.type==="decl"||E.type==="atrule"&&!E.nodes)||E!==y.last||y.raws.semicolon)&&(E.source&&E.source.end?(f.source=this.sourcePath(E),f.original.line=E.source.end.line,f.original.column=E.source.end.column-1,f.generated.line=o,f.generated.column=n-2,this.map.addMapping(f)):(f.source=p,f.original.line=1,f.original.column=0,f.generated.line=o,f.generated.column=n-1,this.map.addMapping(f)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o!="undefined"&&o!==!0?!1:this.previous().length?this.previous().some(n=>n.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(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let n=this.memoizedPaths.get(o);if(n)return n;let p=this.opts.to?s(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=s(r(p,this.mapOpts.annotation)));let f=u(p,o);return this.memoizedPaths.set(o,f),f}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let n=o.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let o=new d(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(n=>{if(n.source){let p=n.source.input.from;if(p&&!o[p]){o[p]=!0;let f=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(f,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let n=this.memoizedFileURLs.get(o);if(n)return n;if(a){let p=a(o).toString();return this.memoizedFileURLs.set(o,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let n=this.memoizedURLs.get(o);if(n)return n;l==="\\"&&(o=o.replace(/\\/g,"/"));let p=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,p),p}}return ve=i,ve}var xe,vt;function ae(){if(vt)return xe;vt=1;let t=ne();class e extends t{constructor(u){super(u),this.type="comment"}}return xe=e,e.default=e,xe}var Se,xt;function W(){if(xt)return Se;xt=1;let{isClean:t,my:e}=$e(),s=oe(),u=ae(),r=ne(),l,a,d,h;function m(o){return o.map(n=>(n.nodes&&(n.nodes=m(n.nodes)),delete n.source,n))}function i(o){if(o[t]=!1,o.proxyOf.nodes)for(let n of o.proxyOf.nodes)i(n)}class c extends r{append(...n){for(let p of n){let f=this.normalize(p,this.last);for(let g of f)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let p of this.nodes)p.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let p=this.getIterator(),f,g;for(;this.indexes[p]<this.proxyOf.nodes.length&&(f=this.indexes[p],g=n(this.proxyOf.nodes[f],f),g!==!1);)this.indexes[p]+=1;return delete this.indexes[p],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,p){return p==="proxyOf"?n:n[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...f)=>n[p](...f.map(g=>typeof g=="function"?(b,R)=>g(b.toProxy(),R):g)):p==="every"||p==="some"?f=>n[p]((g,...b)=>f(g.toProxy(),...b)):p==="root"?()=>n.root().toProxy():p==="nodes"?n.nodes.map(f=>f.toProxy()):p==="first"||p==="last"?n[p].toProxy():n[p]:n[p]},set(n,p,f){return n[p]===f||(n[p]=f,(p==="name"||p==="params"||p==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,p){let f=this.index(n),g=this.normalize(p,this.proxyOf.nodes[f]).reverse();f=this.index(n);for(let R of g)this.proxyOf.nodes.splice(f+1,0,R);let b;for(let R in this.indexes)b=this.indexes[R],f<b&&(this.indexes[R]=b+g.length);return this.markDirty(),this}insertBefore(n,p){let f=this.index(n),g=f===0?"prepend":!1,b=this.normalize(p,this.proxyOf.nodes[f],g).reverse();f=this.index(n);for(let E of b)this.proxyOf.nodes.splice(f,0,E);let R;for(let E in this.indexes)R=this.indexes[E],f<=R&&(this.indexes[E]=R+b.length);return this.markDirty(),this}normalize(n,p){if(typeof n=="string")n=m(l(n).nodes);else if(typeof n=="undefined")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value=="undefined")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new s(n)]}else if(n.selector)n=[new a(n)];else if(n.name)n=[new d(n)];else if(n.text)n=[new u(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[e]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[t]&&i(g),typeof g.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(g.raws.before=p.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let p of n){let f=this.normalize(p,this.first,"prepend").reverse();for(let g of f)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+f.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let p;for(let f in this.indexes)p=this.indexes[f],p>=n&&(this.indexes[f]=p-1);return this.markDirty(),this}replaceValues(n,p,f){return f||(f=p,p={}),this.walkDecls(g=>{p.props&&!p.props.includes(g.prop)||p.fast&&!g.value.includes(p.fast)||(g.value=g.value.replace(n,f))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((p,f)=>{let g;try{g=n(p,f)}catch(b){throw p.addToError(b)}return g!==!1&&p.walk&&(g=p.walk(n)),g})}walkAtRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="atrule"&&n.test(f.name))return p(f,g)}):this.walk((f,g)=>{if(f.type==="atrule"&&f.name===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="atrule")return p(f,g)}))}walkComments(n){return this.walk((p,f)=>{if(p.type==="comment")return n(p,f)})}walkDecls(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="decl"&&n.test(f.prop))return p(f,g)}):this.walk((f,g)=>{if(f.type==="decl"&&f.prop===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="decl")return p(f,g)}))}walkRules(n,p){return p?n instanceof RegExp?this.walk((f,g)=>{if(f.type==="rule"&&n.test(f.selector))return p(f,g)}):this.walk((f,g)=>{if(f.type==="rule"&&f.selector===n)return p(f,g)}):(p=n,this.walk((f,g)=>{if(f.type==="rule")return p(f,g)}))}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]}}return c.registerParse=o=>{l=o},c.registerRule=o=>{a=o},c.registerAtRule=o=>{d=o},c.registerRoot=o=>{h=o},Se=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,d.prototype):o.type==="rule"?Object.setPrototypeOf(o,a.prototype):o.type==="decl"?Object.setPrototypeOf(o,s.prototype):o.type==="comment"?Object.setPrototypeOf(o,u.prototype):o.type==="root"&&Object.setPrototypeOf(o,h.prototype),o[e]=!0,o.nodes&&o.nodes.forEach(n=>{c.rebuild(n)})},Se}var Ne,St;function Ve(){if(St)return Ne;St=1;let t=W(),e,s;class u extends t{constructor(l){super(k({type:"document"},l)),this.nodes||(this.nodes=[])}toResult(l={}){return new e(new s,this,l).stringify()}}return u.registerLazyResult=r=>{e=r},u.registerProcessor=r=>{s=r},Ne=u,u.default=u,Ne}var Oe,Nt;function $t(){if(Nt)return Oe;Nt=1;let t={};return Oe=function(s){t[s]||(t[s]=!0,typeof console!="undefined"&&console.warn&&console.warn(s))},Oe}var De,Ot;function Vt(){if(Ot)return De;Ot=1;class t{constructor(s,u={}){if(this.type="warning",this.text=s,u.node&&u.node.source){let r=u.node.rangeBy(u);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in u)this[r]=u[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return De=t,t.default=t,De}var Ae,Dt;function Ye(){if(Dt)return Ae;Dt=1;let t=Vt();class e{constructor(u,r,l){this.processor=u,this.messages=[],this.root=r,this.opts=l,this.css=void 0,this.map=void 0}toString(){return this.css}warn(u,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let l=new t(u,r);return this.messages.push(l),l}warnings(){return this.messages.filter(u=>u.type==="warning")}get content(){return this.css}}return Ae=e,e.default=e,Ae}var Me,At;function Ir(){if(At)return Me;At=1;const t=39,e=34,s=92,u=47,r=10,l=32,a=12,d=9,h=13,m=91,i=93,c=40,o=41,n=123,p=125,f=59,g=42,b=58,R=64,E=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return Me=function(N,M={}){let O=N.css.valueOf(),P=M.ignoreErrors,T,S,it,he,Z,z,j,nt,q,L,ot=O.length,D=0,ce=[],Q=[];function dr(){return D}function fe(G){throw N.error("Unclosed "+G,D)}function mr(){return Q.length===0&&D>=ot}function gr(G){if(Q.length)return Q.pop();if(D>=ot)return;let pe=G?G.ignoreUnclosed:!1;switch(T=O.charCodeAt(D),T){case r:case l:case d:case h:case a:{S=D;do S+=1,T=O.charCodeAt(S);while(T===l||T===r||T===d||T===h||T===a);L=["space",O.slice(D,S)],D=S-1;break}case m:case i:case n:case p:case b:case f:case o:{let lt=String.fromCharCode(T);L=[lt,lt,D];break}case c:{if(nt=ce.length?ce.pop()[1]:"",q=O.charCodeAt(D+1),nt==="url"&&q!==t&&q!==e&&q!==l&&q!==r&&q!==d&&q!==a&&q!==h){S=D;do{if(z=!1,S=O.indexOf(")",S+1),S===-1)if(P||pe){S=D;break}else fe("bracket");for(j=S;O.charCodeAt(j-1)===s;)j-=1,z=!z}while(z);L=["brackets",O.slice(D,S+1),D,S],D=S}else S=O.indexOf(")",D+1),he=O.slice(D,S+1),S===-1||y.test(he)?L=["(","(",D]:(L=["brackets",he,D,S],D=S);break}case t:case e:{it=T===t?"'":'"',S=D;do{if(z=!1,S=O.indexOf(it,S+1),S===-1)if(P||pe){S=D+1;break}else fe("string");for(j=S;O.charCodeAt(j-1)===s;)j-=1,z=!z}while(z);L=["string",O.slice(D,S+1),D,S],D=S;break}case R:{E.lastIndex=D+1,E.test(O),E.lastIndex===0?S=O.length-1:S=E.lastIndex-2,L=["at-word",O.slice(D,S+1),D,S],D=S;break}case s:{for(S=D,Z=!0;O.charCodeAt(S+1)===s;)S+=1,Z=!Z;if(T=O.charCodeAt(S+1),Z&&T!==u&&T!==l&&T!==r&&T!==d&&T!==h&&T!==a&&(S+=1,w.test(O.charAt(S)))){for(;w.test(O.charAt(S+1));)S+=1;O.charCodeAt(S+1)===l&&(S+=1)}L=["word",O.slice(D,S+1),D,S],D=S;break}default:{T===u&&O.charCodeAt(D+1)===g?(S=O.indexOf("*/",D+2)+1,S===0&&(P||pe?S=O.length:fe("comment")),L=["comment",O.slice(D,S+1),D,S],D=S):(v.lastIndex=D+1,v.test(O),v.lastIndex===0?S=O.length-1:S=v.lastIndex-2,L=["word",O.slice(D,S+1),D,S],ce.push(L),D=S);break}}return D++,L}function wr(G){Q.push(G)}return{back:wr,endOfFile:mr,nextToken:gr,position:dr}},Me}var _e,Mt;function He(){if(Mt)return _e;Mt=1;let t=W();class e extends t{constructor(u){super(u),this.type="atrule"}append(...u){return this.proxyOf.nodes||(this.nodes=[]),super.append(...u)}prepend(...u){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...u)}}return _e=e,e.default=e,t.registerAtRule(e),_e}var Te,_t;function H(){if(_t)return Te;_t=1;let t=W(),e,s;class u extends t{constructor(l){super(l),this.type="root",this.nodes||(this.nodes=[])}normalize(l,a,d){let h=super.normalize(l);if(a){if(d==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let m of h)m.raws.before=a.raws.before}return h}removeChild(l,a){let d=this.index(l);return!a&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(l)}toResult(l={}){return new e(new s,this,l).stringify()}}return u.registerLazyResult=r=>{e=r},u.registerProcessor=r=>{s=r},Te=u,u.default=u,t.registerRoot(u),Te}var Ie,Tt;function Yt(){if(Tt)return Ie;Tt=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let s=[" ",`
37
+ `," "];return t.split(e,s)},split(e,s,u){let r=[],l="",a=!1,d=0,h=!1,m="",i=!1;for(let c of e)i?i=!1:c==="\\"?i=!0:h?c===m&&(h=!1):c==='"'||c==="'"?(h=!0,m=c):c==="("?d+=1:c===")"?d>0&&(d-=1):d===0&&s.includes(c)&&(a=!0),a?(l!==""&&r.push(l.trim()),l="",a=!1):l+=c;return(u||l!=="")&&r.push(l.trim()),r}};return Ie=t,t.default=t,Ie}var Pe,It;function Je(){if(It)return Pe;It=1;let t=W(),e=Yt();class s extends t{constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return e.comma(this.selector)}set selectors(r){let l=this.selector?this.selector.match(/,\s*/):null,a=l?l[0]:","+this.raw("between","beforeOpen");this.selector=r.join(a)}}return Pe=s,s.default=s,t.registerRule(s),Pe}var Le,Pt;function Pr(){if(Pt)return Le;Pt=1;let t=oe(),e=Ir(),s=ae(),u=He(),r=H(),l=Je();const a={empty:!0,space:!0};function d(m){for(let i=m.length-1;i>=0;i--){let c=m[i],o=c[3]||c[2];if(o)return o}}class h{constructor(i){this.input=i,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new u;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,n,p,f=!1,g=!1,b=[],R=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?R.push(o==="("?")":"]"):o==="{"&&R.length>0?R.push("}"):o===R[R.length-1]&&R.pop(),R.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(b.length>0){for(p=b.length-1,n=b[p];n&&n[0]==="space";)n=b[--p];n&&(c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++)}this.end(i);break}else b.push(i);else b.push(i);if(this.tokenizer.endOfFile()){f=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(b),b.length?(c.raws.afterName=this.spacesAndCommentsFromStart(b),this.raw(c,"params",b),f&&(i=b[b.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,n;for(let p=c-1;p>=0&&(n=i[p],!(n[0]!=="space"&&(o+=1,o===2)));p--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let c=0,o,n,p;for(let[f,g]of i.entries()){if(o=g,n=o[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!p)this.doubleColon(o);else{if(p[0]==="word"&&p[1]==="progid")continue;return f}p=o}return!1}comment(i){let c=new s;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let n=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=n[2],c.raws.left=n[1],c.raws.right=n[3]}}createTokenizer(){this.tokenizer=e(this.input)}decl(i,c){let o=new t;this.init(o,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(n[3]||n[2]||d(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let R=i[0][0];if(R===":"||R==="space"||R==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let p;for(;i.length;)if(p=i.shift(),p[0]===":"){o.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),o.raws.between+=p[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let f=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)f.push(i.shift());this.precheckMissedSemicolon(i);for(let R=i.length-1;R>=0;R--){if(p=i[R],p[1].toLowerCase()==="!important"){o.important=!0;let E=this.stringFrom(i,R);E=this.spacesFromEnd(i)+E,E!==" !important"&&(o.raws.important=E);break}else if(p[1].toLowerCase()==="important"){let E=i.slice(0),v="";for(let y=R;y>0;y--){let w=E[y][0];if(v.trim().indexOf("!")===0&&w!=="space")break;v=E.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,i=E)}if(p[0]!=="space"&&p[0]!=="comment")break}i.some(R=>R[0]!=="space"&&R[0]!=="comment")&&(o.raws.between+=f.map(R=>R[1]).join(""),f=[]),this.raw(o,"value",f.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new l;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,n=!1,p=null,f=[],g=i[1].startsWith("--"),b=[],R=i;for(;R;){if(o=R[0],b.push(R),o==="("||o==="[")p||(p=R),f.push(o==="("?")":"]");else if(g&&n&&o==="{")p||(p=R),f.push("}");else if(f.length===0)if(o===";")if(n){this.decl(b,g);return}else break;else if(o==="{"){this.rule(b);return}else if(o==="}"){this.tokenizer.back(b.pop()),c=!0;break}else o===":"&&(n=!0);else o===f[f.length-1]&&(f.pop(),f.length===0&&(p=null));R=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),f.length>0&&this.unclosedBracket(p),c&&n){if(!g)for(;b.length&&(R=b[b.length-1][0],!(R!=="space"&&R!=="comment"));)this.tokenizer.back(b.pop());this.decl(b,g)}else this.unknownWord(b)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,n){let p,f,g=o.length,b="",R=!0,E,v;for(let y=0;y<g;y+=1)p=o[y],f=p[0],f==="space"&&y===g-1&&!n?R=!1:f==="comment"?(v=o[y-1]?o[y-1][0]:"empty",E=o[y+1]?o[y+1][0]:"empty",!a[v]&&!a[E]?b.slice(-1)===","?R=!1:b+=p[1]:R=!1):b+=p[1];if(!R){let y=o.reduce((w,C)=>w+C[1],"");i.raws[c]={raw:y,value:b}}i[c]=b}rule(i){i.pop();let c=new l;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let n=c;n<i.length;n++)o+=i[n][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Le=h,Le}var ke,Lt;function Xe(){if(Lt)return ke;Lt=1;let t=W(),e=Pr(),s=le();function u(r,l){let a=new s(r,l),d=new e(a);try{d.parse()}catch(h){throw h}return d.root}return ke=u,u.default=u,t.registerParse(u),ke}var Ue,kt;function Ht(){if(kt)return Ue;kt=1;let{isClean:t,my:e}=$e(),s=Gt(),u=ie(),r=W(),l=Ve(),a=$t(),d=Ye(),h=Xe(),m=H();const i={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c={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},o={Once:!0,postcssPlugin:!0,prepare:!0},n=0;function p(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let y=!1,w=i[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[w,w+"-"+y,n,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:v.append?[w,n,w+"Exit"]:[w,w+"Exit"]}function g(v){let y;return v.type==="document"?y=["Document",n,"DocumentExit"]:v.type==="root"?y=["Root",n,"RootExit"]:y=f(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function b(v){return v[t]=!1,v.nodes&&v.nodes.forEach(y=>b(y)),v}let R={};class E{constructor(y,w,C){this.stringified=!1,this.processed=!1;let N;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))N=b(w);else if(w instanceof E||w instanceof d)N=b(w.root),w.map&&(typeof C.map=="undefined"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let M=h;C.syntax&&(M=C.syntax.parse),C.parser&&(M=C.parser),M.parse&&(M=M.parse);try{N=M(w,C)}catch(O){this.processed=!0,this.error=O}N&&!N[e]&&r.rebuild(N)}this.result=new d(y,N,C),this.helpers=Y(k({},R),{postcss:R,result:this.result}),this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?k(k({},M),M.prepare(this.result)):M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(N){console&&console.error&&console.error(N)}return y}prepareVisitors(){this.listeners={};let y=(w,C,N)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,N])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!c[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!o[C])if(typeof w[C]=="object")for(let N in w[C])N==="*"?y(w,C,w[C][N]):y(w,C+"-"+N.toLowerCase(),w[C][N]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(p(C))try{await C}catch(N){throw this.handleError(N)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[t];){y[t]=!0;let w=[g(y)];for(;w.length>0;){let C=this.visitTick(w);if(p(C))try{await C}catch(N){let M=w[w.length-1].node;throw this.handleError(N,M)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let N=y.nodes.map(M=>C(M,this.helpers));await Promise.all(N)}else await C(y,this.helpers)}catch(N){throw this.handleError(N)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return p(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=u;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let N=new s(w,this.result.root,this.result.opts).generate();return this.result.css=N[0],this.result.map=N[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(p(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[t];)y[t]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,N]of y){this.result.lastPlugin=C;let M;try{M=N(w,this.helpers)}catch(O){throw this.handleError(O,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(p(M))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:N}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(N.length>0&&w.visitorIndex<N.length){let[O,P]=N[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===N.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=O;try{return P(C.toProxy(),this.helpers)}catch(T){throw this.handleError(T,C)}}if(w.iterator!==0){let O=w.iterator,P;for(;P=C.nodes[C.indexes[O]];)if(C.indexes[O]+=1,!P[t]){P[t]=!0,y.push(g(P));return}w.iterator=0,delete C.indexes[O]}let M=w.events;for(;w.eventIndex<M.length;){let O=M[w.eventIndex];if(w.eventIndex+=1,O===n){C.nodes&&C.nodes.length&&(C[t]=!0,w.iterator=C.getIterator());return}else if(this.listeners[O]){w.visitors=this.listeners[O];return}}y.pop()}walkSync(y){y[t]=!0;let w=f(y);for(let C of w)if(C===n)y.nodes&&y.each(N=>{N[t]||this.walkSync(N)});else{let N=this.listeners[C];if(N&&this.visitSync(N,y.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"}}return E.registerPostcss=v=>{R=v},Ue=E,E.default=E,m.registerLazyResult(E),l.registerLazyResult(E),Ue}var Fe,Ut;function Lr(){if(Ut)return Fe;Ut=1;let t=Gt(),e=ie(),s=$t(),u=Xe();const r=Ye();class l{constructor(d,h,m){h=h.toString(),this.stringified=!1,this._processor=d,this._css=h,this._opts=m,this._map=void 0;let i,c=e;this.result=new r(this._processor,i,this._opts),this.result.css=h;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let n=new t(c,i,this._opts,h);if(n.isMap()){let[p,f]=n.generate();p&&(this.result.css=p),f&&(this.result.map=f)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(d){return this.async().catch(d)}finally(d){return this.async().then(d,d)}sync(){if(this.error)throw this.error;return this.result}then(d,h){return this.async().then(d,h)}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 d,h=u;try{d=h(this._css,this._opts)}catch(m){this.error=m}if(this.error)throw this.error;return this._root=d,d}get[Symbol.toStringTag](){return"NoWorkResult"}}return Fe=l,l.default=l,Fe}var Be,Ft;function kr(){if(Ft)return Be;Ft=1;let t=Lr(),e=Ht(),s=Ve(),u=H();class r{constructor(a=[]){this.version="8.4.38",this.plugins=this.normalize(a)}normalize(a){let d=[];for(let h of a)if(h.postcss===!0?h=h():h.postcss&&(h=h.postcss),typeof h=="object"&&Array.isArray(h.plugins))d=d.concat(h.plugins);else if(typeof h=="object"&&h.postcssPlugin)d.push(h);else if(typeof h=="function")d.push(h);else if(!(typeof h=="object"&&(h.parse||h.stringify)))throw new Error(h+" is not a PostCSS plugin");return d}process(a,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new t(this,a,d):new e(this,a,d)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Be=r,r.default=r,u.registerProcessor(r),s.registerProcessor(r),Be}var ze,Bt;function Ur(){if(Bt)return ze;Bt=1;let t=oe(),e=jt(),s=ae(),u=He(),r=le(),l=H(),a=Je();function d(h,m){if(Array.isArray(h))return h.map(p=>d(p));let o=h,{inputs:i}=o,c=de(o,["inputs"]);if(i){m=[];for(let p of i){let f=Y(k({},p),{__proto__:r.prototype});f.map&&(f.map=Y(k({},f.map),{__proto__:e.prototype})),m.push(f)}}if(c.nodes&&(c.nodes=h.nodes.map(p=>d(p,m))),c.source){let n=c.source,{inputId:p}=n,f=de(n,["inputId"]);c.source=f,p!=null&&(c.source.input=m[p])}if(c.type==="root")return new l(c);if(c.type==="decl")return new t(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new s(c);if(c.type==="atrule")return new u(c);throw new Error("Unknown node type: "+h.type)}return ze=d,d.default=d,ze}var qe,zt;function Fr(){if(zt)return qe;zt=1;let t=Ge(),e=oe(),s=Ht(),u=W(),r=kr(),l=ie(),a=Ur(),d=Ve(),h=Vt(),m=ae(),i=He(),c=Ye(),o=le(),n=Xe(),p=Yt(),f=Je(),g=H(),b=ne();function R(...E){return E.length===1&&Array.isArray(E[0])&&(E=E[0]),new r(E)}return R.plugin=function(v,y){let w=!1;function C(...M){console&&console.warn&&!w&&(w=!0,console.warn(v+`: postcss.plugin was deprecated. Migration guide:
38
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(v+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
39
+ https://www.w3ctech.com/topic/2226`));let O=y(...M);return O.postcssPlugin=v,O.postcssVersion=new r().version,O}let N;return Object.defineProperty(C,"postcss",{get(){return N||(N=C()),N}}),C.process=function(M,O,P){return R([C(P)]).process(M,O)},C},R.stringify=l,R.parse=n,R.fromJSON=a,R.list=p,R.comment=E=>new m(E),R.atRule=E=>new i(E),R.decl=E=>new e(E),R.rule=E=>new f(E),R.root=E=>new g(E),R.document=E=>new d(E),R.CssSyntaxError=t,R.Declaration=e,R.Container=u,R.Processor=r,R.Document=d,R.Comment=m,R.Warning=h,R.AtRule=i,R.Result=c,R.Input=o,R.Rule=f,R.Root=g,R.Node=b,s.registerPostcss(R),qe=R,R.default=R,qe}var Br=Fr();const _=Or(Br);_.stringify;_.fromJSON;_.plugin;_.parse;_.list;_.document;_.comment;_.atRule;_.rule;_.decl;_.root;_.CssSyntaxError;_.Declaration;_.Container;_.Processor;_.Document;_.Comment;_.Warning;_.AtRule;_.Result;_.Input;_.Rule;_.Root;_.Node;var A=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(A||{});function zr(t){const e={},s=/;(?![^(]*\))/g,u=/:(.+)/,r=/\/\*.*?\*\//g;return t.replace(r,"").split(s).forEach(function(l){if(l){const a=l.split(u);a.length>1&&(e[We(a[0].trim())]=a[1].trim())}}),e}function qt(t){const e=[];for(const s in t){const u=t[s];if(typeof u!="string")continue;const r=Gr(s);e.push(`${r}: ${u};`)}return e.join(" ")}const qr=/-([a-z])/g,Wr=/^--[a-zA-Z0-9-]+$/,We=t=>Wr.test(t)?t:t.replace(qr,(e,s)=>s?s.toUpperCase():""),jr=/\B([A-Z])/g,Gr=t=>t.replace(jr,"-$1").toLowerCase();class B{constructor(...e){x(this,"parentElement",null),x(this,"parentNode",null),x(this,"ownerDocument"),x(this,"firstChild",null),x(this,"lastChild",null),x(this,"previousSibling",null),x(this,"nextSibling",null),x(this,"ELEMENT_NODE",1),x(this,"TEXT_NODE",3),x(this,"nodeType"),x(this,"nodeName"),x(this,"RRNodeType")}get childNodes(){const e=[];let s=this.firstChild;for(;s;)e.push(s),s=s.nextSibling;return e}contains(e){if(e instanceof B){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,s){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 ue extends B{constructor(...e){super(e),x(this,"nodeType",9),x(this,"nodeName","#document"),x(this,"compatMode","CSS1Compat"),x(this,"RRNodeType",A.Document),x(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===A.Element&&e.tagName==="HTML")||null}get body(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(s=>s.RRNodeType===A.Element&&s.tagName==="BODY"))||null}get head(){var e;return((e=this.documentElement)==null?void 0:e.childNodes.find(s=>s.RRNodeType===A.Element&&s.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const s=e.RRNodeType;if((s===A.Element||s===A.DocumentType)&&this.childNodes.some(r=>r.RRNodeType===s))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${s===A.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const u=tt(this,e);return u.parentElement=null,u}insertBefore(e,s){const u=e.RRNodeType;if((u===A.Element||u===A.DocumentType)&&this.childNodes.some(l=>l.RRNodeType===u))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${u===A.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=Qt(this,e,s);return r.parentElement=null,r}removeChild(e){return Kt(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let s;if(e==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?s="-//W3C//DTD XHTML 1.0 Transitional//EN":e==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(s="-//W3C//DTD HTML 4.0 Transitional//EN"),s){const u=this.createDocumentType("html",s,"");this.open(),this.appendChild(u)}}createDocument(e,s,u){return new ue}createDocumentType(e,s,u){const r=new Ze(e,s,u);return r.ownerDocument=this,r}createElement(e){const s=new J(e);return s.ownerDocument=this,s}createElementNS(e,s){return this.createElement(s)}createTextNode(e){const s=new Qe(e);return s.ownerDocument=this,s}createComment(e){const s=new Ke(e);return s.ownerDocument=this,s}createCDATASection(e){const s=new et(e);return s.ownerDocument=this,s}toString(){return"RRDocument"}}class Ze extends B{constructor(e,s,u){super(),x(this,"nodeType",10),x(this,"RRNodeType",A.DocumentType),x(this,"name"),x(this,"publicId"),x(this,"systemId"),x(this,"textContent",null),this.name=e,this.publicId=s,this.systemId=u,this.nodeName=e}toString(){return"RRDocumentType"}}class J extends B{constructor(e){super(),x(this,"nodeType",1),x(this,"RRNodeType",A.Element),x(this,"tagName"),x(this,"attributes",{}),x(this,"shadowRoot",null),x(this,"scrollLeft"),x(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(s=>e+=s.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Zt(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?zr(this.attributes.style):{},s=/\B([A-Z])/g;return e.setProperty=(u,r,l)=>{if(s.test(u))return;const a=We(u);r?e[a]=r:delete e[a],l==="important"&&(e[a]+=" !important"),this.attributes.style=qt(e)},e.removeProperty=u=>{if(s.test(u))return"";const r=We(u),l=e[r]||"";return delete e[r],this.attributes.style=qt(e),l},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,s){this.attributes[e]=s}setAttributeNS(e,s,u){this.setAttribute(s,u)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return tt(this,e)}insertBefore(e,s){return Qt(this,e,s)}removeChild(e){return Kt(this,e)}attachShadow(e){const s=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=s,s}dispatchEvent(e){return!0}toString(){let e="";for(const s in this.attributes)e+=`${s}="${this.attributes[s]}" `;return`${this.tagName} ${e}`}}class Jt extends J{constructor(){super(...arguments),x(this,"currentTime"),x(this,"volume"),x(this,"paused"),x(this,"muted"),x(this,"playbackRate"),x(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 Xt extends J{constructor(){super(...arguments),x(this,"tagName","DIALOG"),x(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 Qe extends B{constructor(e){super(),x(this,"nodeType",3),x(this,"nodeName","#text"),x(this,"RRNodeType",A.Text),x(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 Ke extends B{constructor(e){super(),x(this,"nodeType",8),x(this,"nodeName","#comment"),x(this,"RRNodeType",A.Comment),x(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 et extends B{constructor(e){super(),x(this,"nodeName","#cdata-section"),x(this,"nodeType",4),x(this,"RRNodeType",A.CDATA),x(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 Zt{constructor(e,s){if(x(this,"onChange"),x(this,"classes",[]),x(this,"add",(...u)=>{for(const r of u){const l=String(r);this.classes.indexOf(l)>=0||this.classes.push(l)}this.onChange&&this.onChange(this.classes.join(" "))}),x(this,"remove",(...u)=>{this.classes=this.classes.filter(r=>u.indexOf(r)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),e){const u=e.trim().split(/\s+/);this.classes.push(...u)}this.onChange=s}}function tt(t,e){return e.parentNode&&e.parentNode.removeChild(e),t.lastChild?(t.lastChild.nextSibling=e,e.previousSibling=t.lastChild):(t.firstChild=e,e.previousSibling=null),t.lastChild=e,e.nextSibling=null,e.parentNode=t,e.parentElement=t,e.ownerDocument=t.ownerDocument,e}function Qt(t,e,s){if(!s)return tt(t,e);if(s.parentNode!==t)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===s||(e.parentNode&&e.parentNode.removeChild(e),e.previousSibling=s.previousSibling,s.previousSibling=e,e.nextSibling=s,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,e.parentElement=t,e.parentNode=t,e.ownerDocument=t.ownerDocument),e}function Kt(t,e){if(e.parentNode!==t)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:t.firstChild=e.nextSibling,e.nextSibling?e.nextSibling.previousSibling=e.previousSibling:t.lastChild=e.previousSibling,e.previousSibling=null,e.nextSibling=null,e.parentElement=null,e.parentNode=null,e}var I=(t=>(t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",t))(I||{});const je={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},$r={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 F=null;function rt(t,e,s,u=e.mirror||e.ownerDocument.mirror){t=Vr(t,e,s,u),er(t,e,s,u),Yr(t,e,s)}function Vr(t,e,s,u){var r;if(s.afterAppend&&!F&&(F=new WeakSet,setTimeout(()=>{F=null},0)),!st(t,e)){const l=se(e,s.mirror,u);(r=t.parentNode)==null||r.replaceChild(l,t),t=l}switch(e.RRNodeType){case A.Document:{if(!$(t,e,s.mirror,u)){const l=u.getMeta(e);l&&(s.mirror.removeNodeFromMap(t),t.close(),t.open(),s.mirror.add(t,l),F==null||F.add(t))}break}case A.Element:{const l=t,a=e;switch(a.tagName){case"IFRAME":{const d=t.contentDocument;if(!d)break;rt(d,e.contentDocument,s,u);break}}a.shadowRoot&&(l.shadowRoot||l.attachShadow({mode:"open"}),er(l.shadowRoot,a.shadowRoot,s,u)),Hr(l,a,u);break}}return t}function Yr(t,e,s){var u;switch(e.RRNodeType){case A.Document:{const r=e.scrollData;r&&s.applyScroll(r,!0);break}case A.Element:{const r=t,l=e;switch(l.scrollData&&s.applyScroll(l.scrollData,!0),l.inputData&&s.applyInput(l.inputData),l.tagName){case"AUDIO":case"VIDEO":{const a=t,d=l;d.paused!==void 0&&(d.paused?a.pause():a.play()),d.muted!==void 0&&(a.muted=d.muted),d.volume!==void 0&&(a.volume=d.volume),d.currentTime!==void 0&&(a.currentTime=d.currentTime),d.playbackRate!==void 0&&(a.playbackRate=d.playbackRate),d.loop!==void 0&&(a.loop=d.loop);break}case"CANVAS":{const a=e;if(a.rr_dataURL!==null){const d=document.createElement("img");d.onload=()=>{const h=r.getContext("2d");h&&h.drawImage(d,0,0,d.width,d.height)},d.src=a.rr_dataURL}a.canvasMutations.forEach(d=>s.applyCanvas(d.event,d.mutation,t));break}case"STYLE":{const a=r.sheet;a&&e.rules.forEach(d=>s.applyStyleSheetMutation(d,a));break}case"DIALOG":{const a=r,d=l,h=a.open,m=a.matches("dialog:modal"),i=d.open,c=d.isModal,o=m!==c,n=h!==i;if((o||h&&n)&&a.close(),i&&(n||o))try{c?a.showModal():a.show()}catch(p){console.warn(p)}break}}break}case A.Text:case A.Comment:case A.CDATA:{t.textContent!==e.data&&(t.textContent=e.data);break}}F!=null&&F.has(t)&&(F.delete(t),(u=s.afterAppend)==null||u.call(s,t,s.mirror.getId(t)))}function Hr(t,e,s){const u=t.attributes,r=e.attributes;for(const l in r){const a=r[l],d=s.getMeta(e);if(d!=null&&d.isSVG&&je[l])t.setAttributeNS(je[l],l,a);else if(e.tagName==="CANVAS"&&l==="rr_dataURL"){const h=document.createElement("img");h.src=a,h.onload=()=>{const m=t.getContext("2d");m&&m.drawImage(h,0,0,h.width,h.height)}}else{if(e.tagName==="IFRAME"&&l==="srcdoc")continue;try{t.setAttribute(l,a)}catch(h){console.warn(h)}}}for(const{name:l}of Array.from(u))l in r||t.removeAttribute(l);e.scrollLeft&&(t.scrollLeft=e.scrollLeft),e.scrollTop&&(t.scrollTop=e.scrollTop)}function er(t,e,s,u){const r=Array.from(t.childNodes),l=e.childNodes;if(r.length===0&&l.length===0)return;let a=0,d=r.length-1,h=0,m=l.length-1,i=r[a],c=r[d],o=l[h],n=l[m],p,f;for(;a<=d&&h<=m;)if(i===void 0)i=r[++a];else if(c===void 0)c=r[--d];else if($(i,o,s.mirror,u))i=r[++a],o=l[++h];else if($(c,n,s.mirror,u))c=r[--d],n=l[--m];else if($(i,n,s.mirror,u)){try{t.insertBefore(i,c.nextSibling)}catch(R){console.warn(R)}i=r[++a],n=l[--m]}else if($(c,o,s.mirror,u)){try{t.insertBefore(c,i)}catch(R){console.warn(R)}c=r[--d],o=l[++h]}else{if(!p){p={};for(let E=a;E<=d;E++){const v=r[E];v&&s.mirror.hasNode(v)&&(p[s.mirror.getId(v)]=E)}}f=p[u.getId(o)];const R=r[f];if(f!==void 0&&R&&$(R,o,s.mirror,u)){try{t.insertBefore(R,i)}catch(E){console.warn(E)}r[f]=void 0}else{const E=se(o,s.mirror,u);t.nodeName==="#document"&&i&&(E.nodeType===E.DOCUMENT_TYPE_NODE&&i.nodeType===i.DOCUMENT_TYPE_NODE||E.nodeType===E.ELEMENT_NODE&&i.nodeType===i.ELEMENT_NODE)&&(t.removeChild(i),s.mirror.removeNodeFromMap(i),i=r[++a]);try{t.insertBefore(E,i||null)}catch(v){console.warn(v)}}o=l[++h]}if(a>d){const R=l[m+1];let E=null;for(R&&(E=s.mirror.getNode(u.getId(R)));h<=m;++h){const v=se(l[h],s.mirror,u);try{t.insertBefore(v,E)}catch(y){console.warn(y)}}}else if(h>m)for(;a<=d;a++){const R=r[a];if(!(!R||R.parentNode!==t))try{t.removeChild(R),s.mirror.removeNodeFromMap(R)}catch(E){console.warn(E)}}let g=t.firstChild,b=e.firstChild;for(;g!==null&&b!==null;)rt(g,b,s,u),g=g.nextSibling,b=b.nextSibling}function se(t,e,s){const u=s.getId(t),r=s.getMeta(t);let l=null;if(u>-1&&(l=e.getNode(u)),l!==null&&st(l,t))return l;switch(t.RRNodeType){case A.Document:l=new Document;break;case A.DocumentType:l=document.implementation.createDocumentType(t.name,t.publicId,t.systemId);break;case A.Element:{let a=t.tagName.toLowerCase();a=$r[a]||a,r&&"isSVG"in r&&(r!=null&&r.isSVG)?l=document.createElementNS(je.svg,a):l=document.createElement(t.tagName);break}case A.Text:l=document.createTextNode(t.data);break;case A.Comment:l=document.createComment(t.data);break;case A.CDATA:l=document.createCDATASection(t.data);break}r&&e.add(l,k({},r));try{F==null||F.add(l)}catch(a){}return l}function st(t,e){return t.nodeType!==e.nodeType?!1:t.nodeType!==t.ELEMENT_NODE||t.tagName.toUpperCase()===e.tagName}function $(t,e,s,u){const r=s.getId(t),l=u.getId(e);return r===-1||r!==l?!1:st(t,e)}class V extends ue{constructor(e){super(),x(this,"UNSERIALIZED_STARTING_ID",-2),x(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),x(this,"mirror",cr()),x(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,s,u){return new V}createDocumentType(e,s,u){const r=new tr(e,s,u);return r.ownerDocument=this,r}createElement(e){const s=e.toUpperCase();let u;switch(s){case"AUDIO":case"VIDEO":u=new rr(s);break;case"IFRAME":u=new or(s,this.mirror);break;case"CANVAS":u=new ir(s);break;case"STYLE":u=new nr(s);break;case"DIALOG":u=new sr(s);break;default:u=new X(s);break}return u.ownerDocument=this,u}createComment(e){const s=new ar(e);return s.ownerDocument=this,s}createCDATASection(e){const s=new ur(e);return s.ownerDocument=this,s}createTextNode(e){const s=new lr(e);return s.ownerDocument=this,s}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const tr=Ze;class X extends J{constructor(){super(...arguments),x(this,"inputData",null),x(this,"scrollData",null)}}class rr extends Jt{}class sr extends Xt{}class ir extends X{constructor(){super(...arguments),x(this,"rr_dataURL",null),x(this,"canvasMutations",[])}getContext(){return null}}class nr extends X{constructor(){super(...arguments),x(this,"rules",[])}}class or extends X{constructor(e,s){super(e),x(this,"contentDocument",new V),this.contentDocument.mirror=s}}const lr=Qe,ar=Ke,ur=et;function Jr(t){return t instanceof HTMLFormElement?"FORM":t.tagName.toUpperCase()}function hr(t,e,s,u){let r;switch(t.nodeType){case I.DOCUMENT_NODE:u&&u.nodeName==="IFRAME"?r=u.contentDocument:(r=e,r.compatMode=t.compatMode);break;case I.DOCUMENT_TYPE_NODE:{const a=t;r=e.createDocumentType(a.name,a.publicId,a.systemId);break}case I.ELEMENT_NODE:{const a=t,d=Jr(a);r=e.createElement(d);const h=r;for(const{name:m,value:i}of Array.from(a.attributes))h.attributes[m]=i;a.scrollLeft&&(h.scrollLeft=a.scrollLeft),a.scrollTop&&(h.scrollTop=a.scrollTop);break}case I.TEXT_NODE:r=e.createTextNode(t.textContent||"");break;case I.CDATA_SECTION_NODE:r=e.createCDATASection(t.data);break;case I.COMMENT_NODE:r=e.createComment(t.textContent||"");break;case I.DOCUMENT_FRAGMENT_NODE:r=u.attachShadow({mode:"open"});break;default:return null}let l=s.getMeta(t);return e instanceof V&&(l||(l=pr(r,e.unserializedId),s.add(t,l)),e.mirror.add(r,k({},l))),r}function Xr(t,e=Nr(),s=new V){function u(r,l){const a=hr(r,s,e,l);if(a!==null)if((l==null?void 0:l.nodeName)!=="IFRAME"&&r.nodeType!==I.DOCUMENT_FRAGMENT_NODE&&(l==null||l.appendChild(a),a.parentNode=l,a.parentElement=l),r.nodeName==="IFRAME"){const d=r.contentDocument;d&&u(d,a)}else(r.nodeType===I.DOCUMENT_NODE||r.nodeType===I.ELEMENT_NODE||r.nodeType===I.DOCUMENT_FRAGMENT_NODE)&&(r.nodeType===I.ELEMENT_NODE&&r.shadowRoot&&u(r.shadowRoot,a),r.childNodes.forEach(d=>u(d,a)))}return u(t,null),s}function cr(){return new fr}class fr{constructor(){x(this,"idNodeMap",new Map),x(this,"nodeMetaMap",new WeakMap)}getId(e){var s;if(!e)return-1;const u=(s=this.getMeta(e))==null?void 0:s.id;return u!=null?u:-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 s=this.getId(e);this.idNodeMap.delete(s),e.childNodes&&e.childNodes.forEach(u=>this.removeNodeFromMap(u))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,s){const u=s.id;this.idNodeMap.set(u,e),this.nodeMetaMap.set(e,s)}replace(e,s){const u=this.getNode(e);if(u){const r=this.nodeMetaMap.get(u);r&&this.nodeMetaMap.set(s,r)}this.idNodeMap.set(e,s)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function pr(t,e){switch(t.RRNodeType){case A.Document:return{id:e,type:t.RRNodeType,childNodes:[]};case A.DocumentType:{const s=t;return{id:e,type:t.RRNodeType,name:s.name,publicId:s.publicId,systemId:s.systemId}}case A.Element:return{id:e,type:t.RRNodeType,tagName:t.tagName.toLowerCase(),attributes:{},childNodes:[]};case A.Text:return{id:e,type:t.RRNodeType,textContent:t.textContent||""};case A.Comment:return{id:e,type:t.RRNodeType,textContent:t.textContent||""};case A.CDATA:return{id:e,type:t.RRNodeType,textContent:""}}}function Zr(t,e){return re(t,e,"")}function re(t,e,s){let u=`${s}${e.getId(t)} ${t.toString()}
40
+ `;if(t.RRNodeType===A.Element){const r=t;r.shadowRoot&&(u+=re(r.shadowRoot,e,s+" "))}for(const r of t.childNodes)u+=re(r,e,s+" ");return t.nodeName==="IFRAME"&&(u+=re(t.contentDocument,e,s+" ")),u}exports.BaseRRCDATASection=et;exports.BaseRRComment=Ke;exports.BaseRRDialogElement=Xt;exports.BaseRRDocument=ue;exports.BaseRRDocumentType=Ze;exports.BaseRRElement=J;exports.BaseRRMediaElement=Jt;exports.BaseRRNode=B;exports.BaseRRText=Qe;exports.ClassList=Zt;exports.Mirror=fr;exports.NodeType=I;exports.RRCDATASection=ur;exports.RRCanvasElement=ir;exports.RRComment=ar;exports.RRDialogElement=sr;exports.RRDocument=V;exports.RRDocumentType=tr;exports.RRElement=X;exports.RRIFrameElement=or;exports.RRMediaElement=rr;exports.RRNode=B;exports.RRStyleElement=nr;exports.RRText=lr;exports.buildFromDom=Xr;exports.buildFromNode=hr;exports.createMirror=cr;exports.createOrGetNode=se;exports.diff=rt;exports.getDefaultSN=pr;exports.printRRDom=Zr;
41
41
  if (typeof module.exports == "object" && typeof exports == "object") {
42
42
  var __cp = (to, from, except, desc) => {
43
43
  if ((from && typeof from === "object") || typeof from === "function") {