File: /usr/home/uyu7574470001/htdocs/wp-content/plugins/wp-table-builder/dist/assets/parser-Pf-SsrsV.js
var Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function qt(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var s=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return i[r]}})}),t}const M=i=>i?i.width+" "+i.style+" "+i.color:"",Js=(i,e)=>{var o,a,l,f;const t=e.innerBorderRadius;if(!e.enableInnerBorder||!e.headerInnerBorder&&i.row===0)return{borderRadius:t};const s={borderColor:((o=i.border)==null?void 0:o.color)||((a=e.innerBorder)==null?void 0:a.color)||"#000",borderStyle:"solid"};let n=(l=i.border)==null?void 0:l.width;if(n)e.columnBorderOnly?i.row===0?t&&(s.borderTopLeftRadius=t,s.borderTopRightRadius=t):i.row+i.rowspan===e.rowCount&&t&&(s.borderBottomLeftRadius=t,s.borderBottomRightRadius=t):e.rowBorderOnly?i.col===0?t&&(s.borderTopLeftRadius=t,s.borderBottomLeftRadius=t):i.col+i.colspan===e.colCount&&t&&(s.borderTopRightRadius=t,s.borderBottomRightRadius=t):s.borderRadius=t;else{const u=((f=e.innerBorder)==null?void 0:f.width)||"1px";e.columnBorderOnly?i.row===0?(n=`${u} ${u} 0px ${u}`,t&&(s.borderTopLeftRadius=t,s.borderTopRightRadius=t)):i.row+i.rowspan===e.rowCount?(n=`0px ${u} ${u} ${u}`,t&&(s.borderBottomLeftRadius=t,s.borderBottomRightRadius=t)):n=`0px ${u}`:e.rowBorderOnly?i.col===0?(n=`${u} 0px ${u} ${u}`,t&&(s.borderTopLeftRadius=t,s.borderBottomLeftRadius=t)):i.col+i.colspan===e.colCount?(n=`${u} ${u} ${u} 0px`,t&&(s.borderTopRightRadius=t,s.borderBottomRightRadius=t)):n=`${u} 0px`:(n=u,s.borderRadius=t)}return n?(s.borderWidth=n,s):{borderRadius:t}},qs=i=>{if(!i)return{};const e={};return i.top?(e.borderTop=M(i.top),e.borderRight=M(i.right),e.borderBottom=M(i.bottom),e.borderLeft=M(i.left)):i.width&&(i.color&&i.style?e.border=M(i):(e.borderWidth=i.width,e.borderStyle=i.style,e.borderColor=i.color)),e},Ks=i=>{if(!i)return;if(typeof i=="string")return i;const{top:e,right:t,bottom:r,left:s}=i;return[e??"",t??"",r??"",s??""].join(" ").replace(/\s+/g," ").trim()||void 0},Qs=(i,e="margin")=>{const t={};return i&&(typeof i=="string"?t[e]=i:(t[e+"Top"]=i.top,t[e+"Right"]=i.right,t[e+"Bottom"]=i.bottom,t[e+"Left"]=i.left)),t},Ys=i=>{const e={};return i&&(typeof i=="string"?e.borderRadius=i:i.topLeft&&(e.borderTopLeftRadius=i.topLeft,e.borderTopRightRadius=i.topRight,e.borderBottomRightRadius=i.bottomRight,e.borderBottomLeftRadius=i.bottomLeft)),e},Zs=i=>i?typeof i=="string"?i:i.topLeft+" "+i.topRight+" "+i.bottomRight+" "+i.bottomLeft:"",Xs=(i,e,t)=>{let n;switch(i){case"px":n=t;break;case"rem":n=t*16;break;case"em":n=t*16;break;default:return t}let o;switch(e){case"px":o=n;break;case"rem":o=n/16;break;case"em":o=n/16;break;default:return t}return o},Kt={},ei=i=>{Kt[i.name]=i};var Le={exports:{}},c=String,nt=function(){return{isColorSupported:!1,reset:c,bold:c,dim:c,italic:c,underline:c,inverse:c,hidden:c,strikethrough:c,black:c,red:c,green:c,yellow:c,blue:c,magenta:c,cyan:c,white:c,gray:c,bgBlack:c,bgRed:c,bgGreen:c,bgYellow:c,bgBlue:c,bgMagenta:c,bgCyan:c,bgWhite:c,blackBright:c,redBright:c,greenBright:c,yellowBright:c,blueBright:c,magentaBright:c,cyanBright:c,whiteBright:c,bgBlackBright:c,bgRedBright:c,bgGreenBright:c,bgYellowBright:c,bgBlueBright:c,bgMagentaBright:c,bgCyanBright:c,bgWhiteBright:c}};Le.exports=nt();Le.exports.createColors=nt;var Qt=Le.exports;const Yt={},Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),w=qt(Zt);let Ne=Qt,De=w,me=class ot extends Error{constructor(e,t,r,s,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),s&&(this.source=s),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ot)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Ne.isColorSupported);let r=u=>u,s=u=>u,n=u=>u;if(e){let{bold:u,gray:d,red:p}=Ne.createColors(!0);s=m=>u(p(m)),r=m=>d(m),De&&(n=m=>De(m))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),f=String(l).length;return o.slice(a,l).map((u,d)=>{let p=a+1+d,m=" "+(" "+p).slice(-f)+" | ";if(p===this.line){if(u.length>160){let x=20,h=Math.max(0,this.column-x),L=Math.max(this.column+x,this.endColumn+x),R=u.slice(h,L),le=r(m.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return s(">")+r(m)+n(R)+`
`+le+s("^")}let y=r(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+r(m)+n(u)+`
`+y+s("^")}return" "+r(m)+n(u)}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};var Me=me;me.default=me;const We={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Xt(i){return i[0].toUpperCase()+i.slice(1)}let ge=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:s&&(r+=" "),e.nodes)this.block(e,r+s);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+s+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let s=e.parent,n=0;for(;s&&s.type!=="root";)n+=1,s=s.parent;if(r.includes(`
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<n;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let n=e.nodes[s],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==s||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),s=e.prop+r+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,r){let s;if(r||(r=t),t&&(s=e.raws[t],typeof s<"u"))return s;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return We[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+Xt(r);this[a]?s=this[a](o,e):o.walk(l=>{if(s=l.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=We[r]),o.rawCache[r]=s,s}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return r=s.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let s=r.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof r.raws.before<"u"){let n=r.raws.before.split(`
`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],s=e.raws[t];return s&&s.value===r?s.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var lt=ge;ge.default=ge;let er=lt;function ye(i,e){new er(e).stringify(i)}var re=ye;ye.default=ye;var F={};F.isClean=Symbol("isClean");F.my=Symbol("my");let tr=Me,rr=lt,sr=re,{isClean:k,my:ir}=F;function we(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let s=i[r],n=typeof s;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=s:Array.isArray(s)?t[r]=s.map(o=>we(o,t)):(n==="object"&&s!==null&&(s=we(s)),t[r]=s)}return t}function S(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,s=0;for(let n=0;n<i.length;n++){if(r===e.line&&t===e.column){s=n;break}i[n]===`
`?(t=1,r+=1):t+=1}return s}let be=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[k]=!1,this[ir]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=we(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:r.column,line:r.line},t)}return new tr(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[k]=!0}markDirty(){if(this[k]){this[k]=!1;let e=this;for(;e=e.parent;)e[k]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(S(r,this.source.start),S(r,this.source.end)).indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,s="document"in this.source.input?this.source.input.document:this.source.input.css,n=S(s,this.source.start),o=n+e;for(let a=n;a<o;a++)s[a]===`
`?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:S(t,this.source.start)},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:S(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(S(t,this.source.start),S(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),s=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:S(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line,offset:S(t,e.end)}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line,offset:r.offset+1}),{end:s,start:r}}raw(e,t){return new rr().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let s of e)s===this?r=!0:r?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},s=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){if(a==null)continue;let l=t.get(a.input);l==null&&(l=n,t.set(a.input,n),n++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return s&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=sr){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let s={node:this};for(let n in r)s[n]=r[n];return e.warn(t,s)}};var se=be;be.default=be;let nr=se,xe=class extends nr{constructor(e){super(e),this.type="comment"}};var j=xe;xe.default=xe;let or=se,Se=class extends or{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var ie=Se;Se.default=Se;let at=j,ut=ie,lr=se,{isClean:ft,my:ht}=F,ke,ct,pt,Ie;function dt(i){return i.map(e=>(e.nodes&&(e.nodes=dt(e.nodes)),delete e.source,e))}function mt(i){if(i[ft]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)mt(e)}let C=class gt extends lr{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(...e){for(let t of e){let r=this.normalize(t,this.last);for(let s of r)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],s=e(this.proxyOf.nodes[r],r),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(s=>typeof s=="function"?(n,o)=>s(n.toProxy(),o):s)):t==="every"||t==="some"?r=>e[t]((s,...n)=>r(s.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),s=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of s)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+s.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),s=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],s).reverse();r=this.index(e);for(let a of n)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=dt(ct(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new ut(e)]}else if(e.selector||e.selectors)e=[new Ie(e)];else if(e.name)e=[new ke(e)];else if(e.text)e=[new at(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[ht]||gt.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[ft]&&mt(s),s.raws||(s.raws={}),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let s of r)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let s;try{s=e(t,r)}catch(n){throw t.addToError(n)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,s)}):this.walk((r,s)=>{if(r.type==="atrule"&&r.name===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="atrule")return t(r,s)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,s)}):this.walk((r,s)=>{if(r.type==="decl"&&r.prop===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="decl")return t(r,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,s)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,s)}):this.walk((r,s)=>{if(r.type==="rule"&&r.selector===e)return t(r,s)}):(t=e,this.walk((r,s)=>{if(r.type==="rule")return t(r,s)}))}};C.registerParse=i=>{ct=i};C.registerRule=i=>{Ie=i};C.registerAtRule=i=>{ke=i};C.registerRoot=i=>{pt=i};var v=C;C.default=C;C.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,ke.prototype):i.type==="rule"?Object.setPrototypeOf(i,Ie.prototype):i.type==="decl"?Object.setPrototypeOf(i,ut.prototype):i.type==="comment"?Object.setPrototypeOf(i,at.prototype):i.type==="root"&&Object.setPrototypeOf(i,pt.prototype),i[ht]=!0,i.nodes&&i.nodes.forEach(e=>{C.rebuild(e)})};let yt=v,Z=class extends yt{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Te=Z;Z.default=Z;yt.registerAtRule(Z);let ar=v,wt,bt,B=class extends ar{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new wt(new bt,this,e).stringify()}};B.registerLazyResult=i=>{wt=i};B.registerProcessor=i=>{bt=i};var Be=B;B.default=B;let ur="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fr=(i=21)=>{let e="",t=i|0;for(;t--;)e+=ur[Math.random()*64|0];return e};var hr={nanoid:fr};let{existsSync:cr,readFileSync:pr}=w,{dirname:fe,join:dr}=w,{SourceMapConsumer:Ge,SourceMapGenerator:He}=w;function mr(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let Ce=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,s=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=fe(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Ge(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,o=e.match(s)||e.match(n);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return mr(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),s=e.indexOf("*/",r);r>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,s)))}loadFile(e){if(this.root=fe(e),cr(e))return this.mapFile=e,pr(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let s=this.loadFile(r);if(!s)throw new Error("Unable to load previous source map: "+r.toString());return s}}else{if(t instanceof Ge)return He.fromSourceMap(t).toString();if(t instanceof He)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=dr(fe(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var xt=Ce;Ce.default=Ce;let{nanoid:gr}=hr,{isAbsolute:ve,resolve:Re}=w,{SourceMapConsumer:yr,SourceMapGenerator:wr}=w,{fileURLToPath:Ve,pathToFileURL:D}=w,Je=Me,br=xt,he=w,ce=Symbol("lineToIndexCache"),xr=!!(yr&&wr),qe=!!(Re&&ve);function Ke(i){if(i[ce])return i[ce];let e=i.css.split(`
`),t=new Array(e.length),r=0;for(let s=0,n=e.length;s<n;s++)t[s]=r,r+=e[s].length+1;return i[ce]=t,t}let X=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!qe||/^\w+:\/\//.test(t.from)||ve(t.from)?this.file=t.from:this.file=Re(t.from)),qe&&xr){let r=new br(this.css,t);if(r.text){this.map=r;let s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+gr(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,s={}){let n,o,a,l,f;if(t&&typeof t=="object"){let d=t,p=r;if(typeof d.offset=="number"){l=d.offset;let m=this.fromOffset(l);t=m.line,r=m.col}else t=d.line,r=d.column,l=this.fromLineAndColumn(t,r);if(typeof p.offset=="number"){a=p.offset;let m=this.fromOffset(a);o=m.line,n=m.col}else o=p.line,n=p.column,a=this.fromLineAndColumn(p.line,p.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let d=this.fromOffset(l);t=d.line,r=d.col}let u=this.origin(t,r,o,n);return u?f=new Je(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,s.plugin):f=new Je(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:n,line:o},this.css,this.file,s.plugin),f.input={column:r,endColumn:n,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(D&&(f.input.url=D(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,t){return Ke(this)[e-1]+t-1}fromOffset(e){let t=Ke(this),r=t[t.length-1],s=0;if(e>=r)s=t.length-1;else{let n=t.length-2,o;for(;s<n;)if(o=s+(n-s>>1),e<t[o])n=o-1;else if(e>=t[o+1])s=o+1;else{s=o;break}}return{col:e-t[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Re(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,s){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=n.originalPositionFor({column:s,line:r}));let l;ve(o.source)?l=D(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||D(this.map.mapFile));let f={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Ve)f.file=Ve(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=n.sourceContentFor(o.source);return u&&(f.source=u),f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var ne=X;X.default=X;he&&he.registerInput&&he.registerInput(X);let St=v,Ct,vt,A=class extends St{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let s=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of s)n.raws.before=t.raws.before}return s}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ct(new vt,this,e).stringify()}};A.registerLazyResult=i=>{Ct=i};A.registerProcessor=i=>{vt=i};var N=A;A.default=A;St.registerRoot(A);let _={comma(i){return _.split(i,[","],!0)},space(i){let e=[" ",`
`," "];return _.split(i,e)},split(i,e,t){let r=[],s="",n=!1,o=0,a=!1,l="",f=!1;for(let u of i)f?f=!1:u==="\\"?f=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(n=!0),n?(s!==""&&r.push(s.trim()),s="",n=!1):s+=u;return(t||s!=="")&&r.push(s.trim()),r}};var Rt=_;_.default=_;let Ot=v,Sr=Rt,ee=class extends Ot{get selectors(){return Sr.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var _e=ee;ee.default=ee;Ot.registerRule(ee);let Cr=Te,vr=j,Rr=ie,Or=ne,$r=xt,Ar=N,Er=_e;function U(i,e){if(Array.isArray(i))return i.map(s=>U(s));let{inputs:t,...r}=i;if(t){e=[];for(let s of t){let n={...s,__proto__:Or.prototype};n.map&&(n.map={...n.map,__proto__:$r.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=i.nodes.map(s=>U(s,e))),r.source){let{inputId:s,...n}=r.source;r.source=n,s!=null&&(r.source.input=e[s])}if(r.type==="root")return new Ar(r);if(r.type==="decl")return new Rr(r);if(r.type==="rule")return new Er(r);if(r.type==="comment")return new vr(r);if(r.type==="atrule")return new Cr(r);throw new Error("Unknown node type: "+i.type)}var Pr=U;U.default=U;let{dirname:Q,relative:$t,resolve:At,sep:Et}=w,{SourceMapConsumer:Pt,SourceMapGenerator:Y}=w,{pathToFileURL:Qe}=w,Lr=ne,Mr=!!(Pt&&Y),kr=!!(Q&&At&&$t&&Et),Ir=class{constructor(e,t,r,s){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Q(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Pt(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),kr&&Mr&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Y.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Y({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 Y({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(a,l,f)=>{if(this.css+=a,l&&f!=="end"&&(s.generated.line=e,s.generated.column=t-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=a.match(/\n/g),o?(e+=o.length,n=a.lastIndexOf(`
`),t=a.length-n):t+=a.length,l&&f!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=r,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Q(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Q(At(r,this.mapOpts.annotation)));let s=$t(r,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Lr(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let s=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Qe){let r=Qe(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Et==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Lt=Ir;const pe=39,Ye=34,W=92,Ze=47,G=10,I=32,H=12,V=9,J=13,Tr=91,Br=93,_r=40,Ur=41,zr=123,Fr=125,jr=59,Nr=42,Dr=58,Wr=64,q=/[\t\n\f\r "#'()/;[\\\]{}]/g,K=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Gr=/.[\r\n"'(/\\]/,Xe=/[\da-f]/i;var Mt=function(e,t={}){let r=e.css.valueOf(),s=t.ignoreErrors,n,o,a,l,f,u,d,p,m,y,x=r.length,h=0,L=[],R=[];function le(){return h}function ae(O){throw e.error("Unclosed "+O,h)}function Gt(){return R.length===0&&h>=x}function Ht(O){if(R.length)return R.pop();if(h>=x)return;let ue=O?O.ignoreUnclosed:!1;switch(n=r.charCodeAt(h),n){case G:case I:case V:case J:case H:{l=h;do l+=1,n=r.charCodeAt(l);while(n===I||n===G||n===V||n===J||n===H);u=["space",r.slice(h,l)],h=l-1;break}case Tr:case Br:case zr:case Fr:case Dr:case jr:case Ur:{let je=String.fromCharCode(n);u=[je,je,h];break}case _r:{if(y=L.length?L.pop()[1]:"",m=r.charCodeAt(h+1),y==="url"&&m!==pe&&m!==Ye&&m!==I&&m!==G&&m!==V&&m!==H&&m!==J){l=h;do{if(d=!1,l=r.indexOf(")",l+1),l===-1)if(s||ue){l=h;break}else ae("bracket");for(p=l;r.charCodeAt(p-1)===W;)p-=1,d=!d}while(d);u=["brackets",r.slice(h,l+1),h,l],h=l}else l=r.indexOf(")",h+1),o=r.slice(h,l+1),l===-1||Gr.test(o)?u=["(","(",h]:(u=["brackets",o,h,l],h=l);break}case pe:case Ye:{f=n===pe?"'":'"',l=h;do{if(d=!1,l=r.indexOf(f,l+1),l===-1)if(s||ue){l=h+1;break}else ae("string");for(p=l;r.charCodeAt(p-1)===W;)p-=1,d=!d}while(d);u=["string",r.slice(h,l+1),h,l],h=l;break}case Wr:{q.lastIndex=h+1,q.test(r),q.lastIndex===0?l=r.length-1:l=q.lastIndex-2,u=["at-word",r.slice(h,l+1),h,l],h=l;break}case W:{for(l=h,a=!0;r.charCodeAt(l+1)===W;)l+=1,a=!a;if(n=r.charCodeAt(l+1),a&&n!==Ze&&n!==I&&n!==G&&n!==V&&n!==J&&n!==H&&(l+=1,Xe.test(r.charAt(l)))){for(;Xe.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===I&&(l+=1)}u=["word",r.slice(h,l+1),h,l],h=l;break}default:{n===Ze&&r.charCodeAt(h+1)===Nr?(l=r.indexOf("*/",h+2)+1,l===0&&(s||ue?l=r.length:ae("comment")),u=["comment",r.slice(h,l+1),h,l],h=l):(K.lastIndex=h+1,K.test(r),K.lastIndex===0?l=r.length-1:l=K.lastIndex-2,u=["word",r.slice(h,l+1),h,l],L.push(u),h=l);break}}return h++,u}function Vt(O){R.push(O)}return{back:Vt,endOfFile:Gt,nextToken:Ht,position:le}};let Hr=Te,Vr=j,Jr=ie,qr=N,et=_e,Kr=Mt;const tt={empty:!0,space:!0};function Qr(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}let Yr=class{constructor(e){this.input=e,this.root=new qr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Hr;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,s,n,o=!1,a=!1,l=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(n=l.length-1,s=l[n];s&&s[0]==="space";)s=l[--n];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,s;for(let n=t-1;n>=0&&(s=e[n],!(s[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,r,s,n;for(let[o,a]of e.entries()){if(s=a,n=s[0],n==="("&&(t+=1),n===")"&&(t-=1),t===0&&n===":")if(!r)this.doubleColon(s);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=s}return!1}comment(e){let t=new Vr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let s=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Kr(this.input)}decl(e,t){let r=new Jr;this.init(r,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(s[3]||s[2]||Qr(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(n=e[f],n[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,f);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(n[1].toLowerCase()==="important"){let u=e.slice(0),d="";for(let p=f;p>0;p--){let m=u[p][0];if(d.trim().startsWith("!")&&m!=="space")break;d=u.pop()[1]+d}d.trim().startsWith("!")&&(r.important=!0,r.raws.important=d,e=u)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=o.map(f=>f[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new et;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,s=!1,n=null,o=[],a=e[1].startsWith("--"),l=[],f=e;for(;f;){if(r=f[0],l.push(f),r==="("||r==="[")n||(n=f),o.push(r==="("?")":"]");else if(a&&s&&r==="{")n||(n=f),o.push("}");else if(o.length===0)if(r===";")if(s){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(s=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&s){if(!a)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,s){let n,o,a=r.length,l="",f=!0,u,d;for(let p=0;p<a;p+=1)n=r[p],o=n[0],o==="space"&&p===a-1&&!s?f=!1:o==="comment"?(d=r[p-1]?r[p-1][0]:"empty",u=r[p+1]?r[p+1][0]:"empty",!tt[d]&&!tt[u]?l.slice(-1)===","?f=!1:l+=n[1]:f=!1):l+=n[1];if(!f){let p=r.reduce((m,y)=>m+y[1],"");e.raws[t]={raw:p,value:l}}e[t]=l}rule(e){e.pop();let t=new et;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let s=t;s<e.length;s++)r+=e[s][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var kt=Yr;let Zr=v,Xr=ne,es=kt;function te(i,e){let t=new Xr(i,e),r=new es(t);try{r.parse()}catch(s){throw s}return r.root}var Ue=te;te.default=te;Zr.registerParse(te);let Oe=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var It=Oe;Oe.default=Oe;let ts=It,$e=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new ts(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var ze=$e;$e.default=$e;let rs=v,ss=Be,is=Lt,ns=Ue,rt=ze,os=N,ls=re,{isClean:b,my:as}=F;const us={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fs={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},hs={Once:!0,postcssPlugin:!0,prepare:!0},E=0;function T(i){return typeof i=="object"&&typeof i.then=="function"}function Tt(i){let e=!1,t=us[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,E,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,E,t+"Exit"]:[t,t+"Exit"]}function st(i){let e;return i.type==="document"?e=["Document",E,"DocumentExit"]:i.type==="root"?e=["Root",E,"RootExit"]:e=Tt(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function Ae(i){return i[b]=!1,i.nodes&&i.nodes.forEach(e=>Ae(e)),i}let Ee={},P=class Bt{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(e,t,r){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Ae(t);else if(t instanceof Bt||t instanceof rt)s=Ae(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=ns;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{s=n(t,r)}catch(o){this.processed=!0,this.error=o}s&&!s[as]&&rs.rebuild(s)}this.result=new rt(e,s,r),this.helpers={...Ee,postcss:Ee,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,r,s)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!fs[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!hs[r])if(typeof t[r]=="object")for(let s in t[r])s==="*"?e(t,r,t[r][s]):e(t,r+"-"+s.toLowerCase(),t[r][s]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(T(r))try{await r}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[b];){e[b]=!0;let t=[st(e)];for(;t.length>0;){let r=this.visitTick(t);if(T(r))try{await r}catch(s){let n=t[t.length-1].node;throw this.handleError(s,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(n=>r(n,this.helpers));await Promise.all(s)}else await r(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return T(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ls;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new is(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(T(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[b];)e[b]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,s]of e){this.result.lastPlugin=r;let n;try{n=s(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(T(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[o,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[b]){a[b]=!0,e.push(st(a));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===E){r.nodes&&r.nodes.length&&(r[b]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[b]=!0;let t=Tt(e);for(let r of t)if(r===E)e.nodes&&e.each(s=>{s[b]||this.walkSync(s)});else{let s=this.listeners[r];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}};P.registerPostcss=i=>{Ee=i};var _t=P;P.default=P;os.registerLazyResult(P);ss.registerLazyResult(P);let cs=Lt,ps=Ue;const ds=ze;let ms=re,Pe=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ps;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let s,n=ms;this.result=new ds(this._processor,s,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new cs(n,s,this._opts,t);if(a.isMap()){let[l,f]=a.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var gs=Pe;Pe.default=Pe;let ys=Be,ws=_t,bs=gs,xs=N,z=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new bs(this,e,t):new ws(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ss=z;z.default=z;xs.registerProcessor(z);ys.registerProcessor(z);var it={};let Ut=Te,zt=j,Cs=v,vs=Me,Ft=ie,jt=Be,Rs=Pr,Os=ne,$s=_t,As=Rt,Es=se,Ps=Ue,Fe=Ss,Ls=ze,Nt=N,Dt=_e,Ms=re,ks=It;function g(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Fe(i)}g.plugin=function(e,t){let r=!1;function s(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),it.LANG&&it.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new Fe().version,a}let n;return Object.defineProperty(s,"postcss",{get(){return n||(n=s()),n}}),s.process=function(o,a,l){return g([s(l)]).process(o,a)},s};g.stringify=Ms;g.parse=Ps;g.fromJSON=Rs;g.list=As;g.comment=i=>new zt(i);g.atRule=i=>new Ut(i);g.decl=i=>new Ft(i);g.rule=i=>new Dt(i);g.root=i=>new Nt(i);g.document=i=>new jt(i);g.CssSyntaxError=vs;g.Declaration=Ft;g.Container=Cs;g.Processor=Fe;g.Document=jt;g.Comment=zt;g.Warning=ks;g.AtRule=Ut;g.Result=Ls;g.Input=Os;g.Rule=Dt;g.Root=Nt;g.Node=Es;$s.registerPostcss(g);var Is=g;g.default=g;let Ts=j,Bs=kt,_s=Mt,Us=class extends Bs{checkMissedSemicolon(){}comment(e){let t=new Ts;this.init(t,e[2]);let r=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);t.source.end={column:r.col,line:r.line,offset:e[3]+1};let s=e[1].slice(2);if(s.slice(-2)==="*/"&&(s=s.slice(0,-2)),/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let n=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=_s(this.input,{ignoreErrors:!0})}decl(e){e.length>1&&e.some(t=>t[0]==="word")&&super.decl(e)}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(e){let t=this.colon(e);if(t===!1)return;let r,s;for(r=t-1;r>=0&&e[r][0]!=="word";r--);if(r===0||r<0)return;for(s=r-1;s>=0;s--)if(e[s][0]!=="space"){s+=1;break}let n=e.slice(r),o=e.slice(s,r);e.splice(s,e.length-s),this.spaces=o.map(a=>a[1]).join(""),this.decl(n)}unclosedBracket(){}unexpectedClose(){this.current.raws.after+="}"}unknownWord(e){this.spaces+=e.map(t=>t[1]).join("")}unnamedAtrule(e){e.name=""}};var zs=Us;let{Input:Fs}=Is,js=zs;var Ns=function(e,t){let r=new Fs(e,t),s=new js(r);return s.parse(),s.root};const Ds=Jt(Ns),Wt=i=>i?Object.entries(i).filter(([e,t])=>t!=null&&t!=="").map(([e,t])=>`${e.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${t}`).join("; "):"",wi=i=>i?Object.entries(i).filter(([e,t])=>t!=null&&t!==!1).map(([e,t])=>t===!0?e:e==="style"&&typeof t=="object"?`style="${Wt(t)}"`:e==="class"||e==="className"?`class="${$(t)}"`:`${e}="${String(t).replace(/"/g,""")}"`).join(" "):"",$=i=>i==null?"":i.toString().replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),bi=i=>{var y;const{url:e,target:t,rel:r,convertToAbsolute:s,className:n,style:o,id:a}=i,l=o?`style="${Wt(o)}"`:"",f=n?`class="${$(n)}"`:"",u=a?`id="${$(a)}"`:"";if(!e||e==="")return{tag:"div",attrs:[f,l,u].filter(Boolean).join(" ")};let d=e;s&&!/^https?:\/\//.test(e)&&(d="https://"+e.replace(/^\//,""));const p=((y=r==null?void 0:r.join)==null?void 0:y.call(r," "))||"";return{tag:"a",attrs:[f,l,u,`href="${$(d)}"`,t?`target="${$(t)}"`:"",p?`rel="${$(p)}"`:""].filter(Boolean).join(" ")}},Ws=(i,e=".user-content")=>{const t=new Set(["color","font","font-size","font-weight","font-style","font-family","text-align","text-decoration","text-transform","letter-spacing","line-height","background","background-color","background-image","background-position","background-size","background-repeat","margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","border-radius","box-shadow","opacity","display","max-width","min-width","max-height","min-height","width","height","flex","flex-grow","flex-shrink","flex-basis","justify-content","align-items"]),r=Ds(i);return r.walk(s=>{if(s.type==="atrule"&&(["media","supports"].includes(s.name)||s.remove()),s.type==="decl"){const n=s.prop.toLowerCase(),o=s.value.toLowerCase();if(!t.has(n)){s.remove();return}if(o.includes("expression(")){s.remove();return}if(/url\(\s*['"]?(javascript:|data:)/i.test(o)){s.remove();return}const a=o.match(/url\((.*?)\)/i);if(a){let l=a[1].replace(/['"]/g,"").trim();try{new URL(l,window.location.origin).protocol!=="https:"&&s.remove()}catch{s.remove()}}}s.type==="rule"&&(s.selectors=s.selectors.map(n=>e+" "+n),s.walkDecls(n=>{n.important=!0}))}),r.toString()},xi=async(i,e,t=document)=>{if(!i||!e||!t)return;const r=t.querySelector(`style#wptb-table-${e}`);r&&r.remove();try{const s=Ws(i,`.wptb-table-${e}:not(#wptb-style-isolation):not(#wptb-style-isolation)`),n=t.createElement("style");n.id=`wptb-table-${e}`,n.textContent=s,n.setAttribute("data-table-id",e),t.head.appendChild(n)}catch(s){console.error("Error applying custom styles:",s)}},de=i=>{if(!i||i.type!=="none")return i;let e=oe(i.color);return e&&(e.length===7?e=`${e}00`:e.length===9&&(e=`${e.substring(0,7)}00`)),{type:"solid",color:e}},Si=i=>{const e=i.style;if(e.border){const[s,n,...o]=e.border.split(" "),a=de({type:n,color:o.join(" ")});return{width:s,style:a.type,color:a.color}}if(e.borderWidth){const s=e.borderWidth;if(s.indexOf(" ")>-1)return;const o=de({type:e.borderStyle,color:e.borderColor});return{width:s,style:o.type,color:o.color}}if(!e.borderTop)return;const t={},r=(s,n)=>{if(!n)return;const[o,a,...l]=n.split(" "),f=de({type:a,color:l.join(" ")});t[s]={width:o,style:f.type,color:f.color}};return r("top",e.borderTop),r("right",e.borderRight),r("bottom",e.borderBottom),r("left",e.borderLeft),t},Ci=(i,e,t)=>{var u,d,p,m;const r=t.innerBorders||{};if(!e&&!((u=t.innerBorders)!=null&&u.borderWidth))return;let s=r.borderWidth?parseInt(((d=r.borderWidth)==null?void 0:d.toString())||"0")+"px":void 0,n="solid";const o={},a=i.querySelectorAll("td, th");for(let y=0;y<a.length;y++){const h=a[y].style.borderColor;h&&(o[h]=(o[h]||0)+1)}let l,f=0;for(const y in o)o[y]>f&&(f=o[y],l=y);if(e!=null&&e.style?n=e.style:(p=e==null?void 0:e.left)!=null&&p.style&&(n=e.left.style),!s&&(e!=null&&e.width)?s=parseInt(e.width)+"px":(m=e==null?void 0:e.left)!=null&&m.width&&(s=parseInt(e.left.width)+"px"),!!l)return{width:s,style:n,color:oe(l||"rgb(0, 0, 0)")}},vi=i=>{var r;const e=i.innerBorders||{};return(((r=e.borderRadiuses)==null?void 0:r[e.active||"all"])||0).toString()+"px"},Ri=(i,e)=>{const t=e==null?void 0:e[i];if(t){if(t.toString().includes(" ")){const n=t.split(" ");return n.length===1?{top:n[0],right:n[0],bottom:n[0],left:n[0]}:n.length===2?{top:n[0],right:n[1],bottom:n[0],left:n[1]}:n.length===3?{top:n[0],right:n[1],bottom:n[2],left:n[1]}:{top:n[0],right:n[1],bottom:n[2],left:n[3]}}return t}const r={};let s=!1;if(["Top","Right","Bottom","Left"].map(n=>{const o=e==null?void 0:e[i+n];o&&(r[n.toLowerCase()]=o,s=!0)}),s)return r};function oe(i){if(!(i!=null&&i.startsWith("rgb")))return i;const e=i.replace(/[^\d,.]/g,"").split(",").map(Number),[t,r,s,n]=e,o=l=>Math.max(0,Math.min(255,Math.round(l))).toString(16).padStart(2,"0"),a=n!==void 0&&!isNaN(n)?o(n*255):"";return`#${o(t)}${o(r)}${o(s)}${a}`}function Gs(i){if(!(i!=null&&i.startsWith("hsl")))return i;let[e,t,r]=i.replace(/[^\d,]/g,"").split(",").map(Number);t/=100,r/=100;const s=a=>(a+e/30)%12,n=t*Math.min(r,1-r),o=a=>Math.round(255*(r-n*Math.max(-1,Math.min(s(a)-3,9-s(a),1))));return`#${o(0).toString(16).padStart(2,"0")}${o(8).toString(16).padStart(2,"0")}${o(4).toString(16).padStart(2,"0")}`}function Hs(i){if(!(i!=null&&i.startsWith("rgb")))return i;const e=document.body.style.color;document.body.style.color=i;const t=oe(getComputedStyle(document.body).color);return document.body.style.color=e,t}function Oi(i){return i&&(i.startsWith("#")?i.length===4?`#${i[1]}${i[1]}${i[2]}${i[2]}${i[3]}${i[3]}`:i:i.startsWith("rgb")?oe(i):i.startsWith("hsl")?Gs(i):Hs(i))}export{Kt as B,xi as a,Ci as b,Oi as c,Ri as d,Qs as e,$ as f,vi as g,wi as h,M as i,qs as j,Zs as k,bi as l,Ys as m,Vs as n,Jt as o,Si as p,Js as q,ei as r,Wt as s,Ks as t,Xs as u};