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