@n24q02m/better-email-mcp 1.35.0-beta.4 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.mjs +2 -2
- package/package.json +3 -3
package/bin/cli.mjs
CHANGED
|
@@ -46,7 +46,7 @@ Details: ${JSON.stringify(r.details,null,2)}`),e}function Ne(r){return async(...
|
|
|
46
46
|
`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&e.parent.type==="document";this.builder(n?t:ke(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(ke(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)}};Ya.exports=cr;cr.default=cr});var ur=B((wb,Ja)=>{"use strict";var cd=_i();function Fi(r,e){new cd(e).stringify(r)}Ja.exports=Fi;Fi.default=Fi});var sn=B((bb,Li)=>{"use strict";Li.exports.isClean=Symbol("isClean");Li.exports.my=Symbol("my")});var dr=B((yb,Za)=>{"use strict";var ud=nn(),Ad=_i(),hd=ur(),{isClean:Ar,my:dd}=sn();function fd(r,e){let t=new r.constructor,n=[[r,t,e]];for(;n.length>0;){let[i,s,o]=n.pop();for(let l in i){if(!Object.prototype.hasOwnProperty.call(i,l)||l==="proxyCache")continue;let a=i[l],c=typeof a;if(l==="parent"&&c==="object")o&&(s[l]=o);else if(l==="source")s[l]=a;else if(Array.isArray(a)){let u=[];s[l]=u;for(let d of a){let A=new d.constructor;u.push(A),n.push([d,A,s])}}else{if(c==="object"&&a!==null){let u=new a.constructor;n.push([a,u,void 0]),a=u}s[l]=a}}}return t}function Fe(r,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,n=1,i=0;for(let s=0;s<r.length;s++){if(n===e.line&&t===e.column){i=s;break}r[s]===`
|
|
47
47
|
`?(t=1,n+=1):t+=1}return i}var hr=class r{get proxyOf(){return this}constructor(e={}){this.raws={},this[Ar]=!1,this[dd]=!0;for(let t of Object.keys(e))if(t!=="__proto__")if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"&&n.parent?this.append(n.clone()):this.append(n)}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=fd(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new ud(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Ar]=!0}markDirty(){if(this[Ar]){this[Ar]=!1;let e=this;for(;e=e.parent;)e[Ar]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Fe(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let s=t.slice(Fe(t,this.source.start),Fe(t,this.source.end)).indexOf(e.word);s!==-1&&(n=this.positionInside(s))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=Fe(i,this.source.start),o=s+e;for(let l=s;l<o;l++)i[l]===`
|
|
48
48
|
`?(t=1,n+=1):t+=1;return{column:t,line:n,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,n={column:this.source.start.column,line:this.source.start.line,offset:Fe(t,this.source.start)},i=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:Fe(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=t.slice(Fe(t,this.source.start),Fe(t,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Fe(t,e.start)}:typeof e.index=="number"&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Fe(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):typeof e.index=="number"&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,t){return new Ad().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,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n=t==null;t=t||new Map;let i=[],s=[[this,i,0]];for(let l=0;l<s.length;l++){let[a,c,u]=s[l],d={};c[u]=d;for(let A in a){if(!Object.prototype.hasOwnProperty.call(a,A)||A==="parent"||A==="proxyCache")continue;let p=a[A];if(Array.isArray(p)){let w=[];d[A]=w;for(let C=0;C<p.length;C++){let b=p[C];typeof b=="object"&&b.toJSON?b.toJSON===r.prototype.toJSON?s.push([b,w,C]):w[C]=b.toJSON(null,t):w[C]=b}}else if(typeof p=="object"&&p.toJSON)p.toJSON===r.prototype.toJSON?s.push([p,d,A]):d[A]=p.toJSON(null,t);else if(A==="source"){if(p==null)continue;let w=t.get(p.input);w==null&&(w=t.size,t.set(p.input,w)),d[A]={end:p.end,inputId:w,start:p.start}}else d[A]=p}}let o=i[0];return n&&(o.inputs=[...t.keys()].map(l=>l.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=hd){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n={}){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}};Za.exports=hr;hr.default=hr});var pr=B((xb,qa)=>{"use strict";var pd=dr(),fr=class extends pd{constructor(e){super(e),this.type="comment"}};qa.exports=fr;fr.default=fr});var mr=B((Cb,ja)=>{"use strict";var gd=dr(),gr=class extends gd{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"}};ja.exports=gr;gr.default=gr});var ze=B((Ib,nl)=>{"use strict";var za=pr(),Xa=mr(),Va=dr(),{isClean:$a,my:el}=sn(),Pi,tl,rl,Qi;function md(r){let e=r.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let n of t.nodes)e.push(n)}}return r.slice()}function wd(r){let e=[r];for(;e.length>0;){let t=e.pop();if(t[$a]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e.push(n)}}var Le=class r extends Va{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 n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){let t=[this];for(;t.length>0;){let n=t.pop();if(n!==this&&n.cleanRaws!==r.prototype.cleanRaws){n.cleanRaws(e);continue}if(Va.prototype.cleanRaws.call(n,e),n.nodes)for(let i of n.nodes)t.push(i)}}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let l of s)this.proxyOf.nodes.splice(n,0,l);let o;for(let l in this.indexes)o=this.indexes[l],n<=o&&(this.indexes[l]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=md(tl(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"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 Xa(e)]}else if(e.selector||e.selectors)e=[new Qi(e)];else if(e.name)e=[new Pi(e)];else if(e.text)e=[new za(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[el]||r.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[$a]&&wd(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:i}=t[t.length-1],s=i.indexes[n];if(s>=i.proxyOf.nodes.length){delete i.indexes[n],t.pop();let a=t[t.length-1];a&&(a.node.indexes[a.iterator]+=1);continue}let o=i.proxyOf.nodes[s],l;try{l=e(o,s)}catch(a){throw o.addToError(a)}if(l===!1){for(let a of t)delete a.node.indexes[a.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):i.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}};Le.registerParse=r=>{tl=r};Le.registerRule=r=>{Qi=r};Le.registerAtRule=r=>{Pi=r};Le.registerRoot=r=>{rl=r};nl.exports=Le;Le.default=Le;Le.rebuild=r=>{let e=[r];for(;e.length>0;){let t=e.pop();if(t.type==="atrule"?Object.setPrototypeOf(t,Pi.prototype):t.type==="rule"?Object.setPrototypeOf(t,Qi.prototype):t.type==="decl"?Object.setPrototypeOf(t,Xa.prototype):t.type==="comment"?Object.setPrototypeOf(t,za.prototype):t.type==="root"&&Object.setPrototypeOf(t,rl.prototype),t[el]=!0,t.nodes)for(let n of t.nodes)e.push(n)}}});var on=B((Sb,sl)=>{"use strict";var il=ze(),Ot=class extends il{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)}};sl.exports=Ot;Ot.default=Ot;il.registerAtRule(Ot)});var an=B((Eb,ll)=>{"use strict";var bd=ze(),ol,al,at=class extends bd{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ol(new al,this,e).stringify()}};at.registerLazyResult=r=>{ol=r};at.registerProcessor=r=>{al=r};ll.exports=at;at.default=at});var ul=B((vb,cl)=>{var yd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",xd=(r,e=21)=>(t=e)=>{let n="",i=t|0;for(;i-- >0;)n+=r[Math.random()*r.length|0];return n},Cd=(r=21)=>{let e="",t=r|0;for(;t-- >0;)e+=yd[Math.random()*64|0];return e};cl.exports={nanoid:Cd,customAlphabet:xd}});var hl=B(Gi=>{var Al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Gi.encode=function(r){if(0<=r&&r<Al.length)return Al[r];throw new TypeError("Must be between 0 and 63: "+r)};Gi.decode=function(r){var e=65,t=90,n=97,i=122,s=48,o=57,l=43,a=47,c=26,u=52;return e<=r&&r<=t?r-e:n<=r&&r<=i?r-n+c:s<=r&&r<=o?r-s+u:r==l?62:r==a?63:-1}});var Ki=B(Wi=>{var dl=hl(),Ui=5,fl=1<<Ui,pl=fl-1,gl=fl;function Id(r){return r<0?(-r<<1)+1:(r<<1)+0}function Sd(r){var e=(r&1)===1,t=r>>1;return e?-t:t}Wi.encode=function(e){var t="",n,i=Id(e);do n=i&pl,i>>>=Ui,i>0&&(n|=gl),t+=dl.encode(n);while(i>0);return t};Wi.decode=function(e,t,n){var i=e.length,s=0,o=0,l,a;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(a=dl.decode(e.charCodeAt(t++)),a===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));l=!!(a&gl),a&=pl,s=s+(a<<o),o+=Ui}while(l);n.value=Sd(s),n.rest=t}});var Mt=B(ie=>{function Ed(r,e,t){if(e in r)return r[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}ie.getArg=Ed;var ml=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,vd=/^data:.+\,.+$/;function wr(r){var e=r.match(ml);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}ie.urlParse=wr;function Nt(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}ie.urlGenerate=Nt;var kd=32;function Bd(r){var e=[];return function(t){for(var n=0;n<e.length;n++)if(e[n].input===t){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=r(t);return e.unshift({input:t,result:s}),e.length>kd&&e.pop(),s}}var Hi=Bd(function(e){var t=e,n=wr(e);if(n){if(!n.path)return e;t=n.path}for(var i=ie.isAbsolute(t),s=[],o=0,l=0;;)if(o=l,l=t.indexOf("/",o),l===-1){s.push(t.slice(o));break}else for(s.push(t.slice(o,l));l<t.length&&t[l]==="/";)l++;for(var a,c=0,l=s.length-1;l>=0;l--)a=s[l],a==="."?s.splice(l,1):a===".."?c++:c>0&&(a===""?(s.splice(l+1,c),c=0):(s.splice(l,2),c--));return t=s.join("/"),t===""&&(t=i?"/":"."),n?(n.path=t,Nt(n)):t});ie.normalize=Hi;function wl(r,e){r===""&&(r="."),e===""&&(e=".");var t=wr(e),n=wr(r);if(n&&(r=n.path||"/"),t&&!t.scheme)return n&&(t.scheme=n.scheme),Nt(t);if(t||e.match(vd))return e;if(n&&!n.host&&!n.path)return n.host=e,Nt(n);var i=e.charAt(0)==="/"?e:Hi(r.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Nt(n)):i}ie.join=wl;ie.isAbsolute=function(r){return r.charAt(0)==="/"||ml.test(r)};function Dd(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var t=0;e.indexOf(r+"/")!==0;){var n=r.lastIndexOf("/");if(n<0||(r=r.slice(0,n),r.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(r.length+1)}ie.relative=Dd;var bl=(function(){var r=Object.create(null);return!("__proto__"in r)})();function yl(r){return r}function Rd(r){return xl(r)?"$"+r:r}ie.toSetString=bl?yl:Rd;function Td(r){return xl(r)?r.slice(1):r}ie.fromSetString=bl?yl:Td;function xl(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(r.charCodeAt(t)!==36)return!1;return!0}function Od(r,e,t){var n=Ge(r.source,e.source);return n!==0||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0||t)||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=r.generatedLine-e.generatedLine,n!==0)?n:Ge(r.name,e.name)}ie.compareByOriginalPositions=Od;function Nd(r,e,t){var n;return n=r.originalLine-e.originalLine,n!==0||(n=r.originalColumn-e.originalColumn,n!==0||t)||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=r.generatedLine-e.generatedLine,n!==0)?n:Ge(r.name,e.name)}ie.compareByOriginalPositionsNoSource=Nd;function Md(r,e,t){var n=r.generatedLine-e.generatedLine;return n!==0||(n=r.generatedColumn-e.generatedColumn,n!==0||t)||(n=Ge(r.source,e.source),n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:Ge(r.name,e.name)}ie.compareByGeneratedPositionsDeflated=Md;function _d(r,e,t){var n=r.generatedColumn-e.generatedColumn;return n!==0||t||(n=Ge(r.source,e.source),n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:Ge(r.name,e.name)}ie.compareByGeneratedPositionsDeflatedNoLine=_d;function Ge(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}function Fd(r,e){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=Ge(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:Ge(r.name,e.name)}ie.compareByGeneratedPositionsInflated=Fd;function Ld(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}ie.parseSourceMapInput=Ld;function Pd(r,e,t){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),t){var n=wr(t);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=wl(Nt(n),e)}return Hi(e)}ie.computeSourceURL=Pd});var Zi=B(Cl=>{var Yi=Mt(),Ji=Object.prototype.hasOwnProperty,lt=typeof Map<"u";function Ue(){this._array=[],this._set=lt?new Map:Object.create(null)}Ue.fromArray=function(e,t){for(var n=new Ue,i=0,s=e.length;i<s;i++)n.add(e[i],t);return n};Ue.prototype.size=function(){return lt?this._set.size:Object.getOwnPropertyNames(this._set).length};Ue.prototype.add=function(e,t){var n=lt?e:Yi.toSetString(e),i=lt?this.has(e):Ji.call(this._set,n),s=this._array.length;(!i||t)&&this._array.push(e),i||(lt?this._set.set(e,s):this._set[n]=s)};Ue.prototype.has=function(e){if(lt)return this._set.has(e);var t=Yi.toSetString(e);return Ji.call(this._set,t)};Ue.prototype.indexOf=function(e){if(lt){var t=this._set.get(e);if(t>=0)return t}else{var n=Yi.toSetString(e);if(Ji.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Ue.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ue.prototype.toArray=function(){return this._array.slice()};Cl.ArraySet=Ue});var El=B(Sl=>{var Il=Mt();function Qd(r,e){var t=r.generatedLine,n=e.generatedLine,i=r.generatedColumn,s=e.generatedColumn;return n>t||n==t&&s>=i||Il.compareByGeneratedPositionsInflated(r,e)<=0}function ln(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ln.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};ln.prototype.add=function(e){Qd(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};ln.prototype.toArray=function(){return this._sorted||(this._array.sort(Il.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Sl.MappingList=ln});var qi=B(vl=>{var br=Ki(),$=Mt(),cn=Zi().ArraySet,Gd=El().MappingList;function Se(r){r||(r={}),this._file=$.getArg(r,"file",null),this._sourceRoot=$.getArg(r,"sourceRoot",null),this._skipValidation=$.getArg(r,"skipValidation",!1),this._ignoreInvalidMapping=$.getArg(r,"ignoreInvalidMapping",!1),this._sources=new cn,this._names=new cn,this._mappings=new Gd,this._sourcesContents=null}Se.prototype._version=3;Se.fromSourceMap=function(e,t){var n=e.sourceRoot,i=new Se(Object.assign(t||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=$.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),i.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=$.relative(n,s)),i._sources.has(o)||i._sources.add(o);var l=e.sourceContentFor(s);l!=null&&i.setSourceContent(s,l)}),i};Se.prototype.addMapping=function(e){var t=$.getArg(e,"generated"),n=$.getArg(e,"original",null),i=$.getArg(e,"source",null),s=$.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,n,i,s)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s}))};Se.prototype.setSourceContent=function(e,t){var n=e;this._sourceRoot!=null&&(n=$.relative(this._sourceRoot,n)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[$.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[$.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Se.prototype.applySourceMap=function(e,t,n){var i=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=$.relative(s,i));var o=new cn,l=new cn;this._mappings.unsortedForEach(function(a){if(a.source===i&&a.originalLine!=null){var c=e.originalPositionFor({line:a.originalLine,column:a.originalColumn});c.source!=null&&(a.source=c.source,n!=null&&(a.source=$.join(n,a.source)),s!=null&&(a.source=$.relative(s,a.source)),a.originalLine=c.line,a.originalColumn=c.column,c.name!=null&&(a.name=c.name))}var u=a.source;u!=null&&!o.has(u)&&o.add(u);var d=a.name;d!=null&&!l.has(d)&&l.add(d)},this),this._sources=o,this._names=l,e.sources.forEach(function(a){var c=e.sourceContentFor(a);c!=null&&(n!=null&&(a=$.join(n,a)),s!=null&&(a=$.relative(s,a)),this.setSourceContent(a,c))},this)};Se.prototype._validateMapping=function(e,t,n,i){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!i)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Se.prototype._serializeMappings=function(){for(var e=0,t=1,n=0,i=0,s=0,o=0,l="",a,c,u,d,A=this._mappings.toArray(),p=0,w=A.length;p<w;p++){if(c=A[p],a="",c.generatedLine!==t)for(e=0;c.generatedLine!==t;)a+=";",t++;else if(p>0){if(!$.compareByGeneratedPositionsInflated(c,A[p-1]))continue;a+=","}a+=br.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),a+=br.encode(d-o),o=d,a+=br.encode(c.originalLine-1-i),i=c.originalLine-1,a+=br.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(u=this._names.indexOf(c.name),a+=br.encode(u-s),s=u)),l+=a}return l};Se.prototype._generateSourcesContent=function(e,t){return e.map(function(n){if(!this._sourcesContents)return null;t!=null&&(n=$.relative(t,n));var i=$.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Se.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Se.prototype.toString=function(){return JSON.stringify(this.toJSON())};vl.SourceMapGenerator=Se});var kl=B(ct=>{ct.GREATEST_LOWER_BOUND=1;ct.LEAST_UPPER_BOUND=2;function ji(r,e,t,n,i,s){var o=Math.floor((e-r)/2)+r,l=i(t,n[o],!0);return l===0?o:l>0?e-o>1?ji(o,e,t,n,i,s):s==ct.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-r>1?ji(r,o,t,n,i,s):s==ct.LEAST_UPPER_BOUND?o:r<0?-1:r}ct.search=function(e,t,n,i){if(t.length===0)return-1;var s=ji(-1,t.length,e,t,n,i||ct.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(t[s],t[s-1],!0)===0;)--s;return s}});var Rl=B(Dl=>{function Ud(r){function e(i,s,o){var l=i[s];i[s]=i[o],i[o]=l}function t(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,l){if(o<l){var a=t(o,l),c=o-1;e(i,a,l);for(var u=i[l],d=o;d<l;d++)s(i[d],u,!1)<=0&&(c+=1,e(i,c,d));e(i,c+1,d);var A=c+1;n(i,s,o,A-1),n(i,s,A+1,l)}}return n}function Wd(r){let e=Ud.toString();return new Function(`return ${e}`)()(r)}var Bl=new WeakMap;Dl.quickSort=function(r,e,t=0){let n=Bl.get(e);n===void 0&&(n=Wd(e),Bl.set(e,n)),n(r,e,t,r.length-1)}});var Nl=B(un=>{var S=Mt(),zi=kl(),_t=Zi().ArraySet,Kd=Ki(),yr=Rl().quickSort;function j(r,e){var t=r;return typeof r=="string"&&(t=S.parseSourceMapInput(r)),t.sections!=null?new Be(t,e):new ae(t,e)}j.fromSourceMap=function(r,e){return ae.fromSourceMap(r,e)};j.prototype._version=3;j.prototype.__generatedMappings=null;Object.defineProperty(j.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});j.prototype.__originalMappings=null;Object.defineProperty(j.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});j.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===";"||n===","};j.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};j.GENERATED_ORDER=1;j.ORIGINAL_ORDER=2;j.GREATEST_LOWER_BOUND=1;j.LEAST_UPPER_BOUND=2;j.prototype.eachMapping=function(e,t,n){var i=t||null,s=n||j.GENERATED_ORDER,o;switch(s){case j.GENERATED_ORDER:o=this._generatedMappings;break;case j.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var l=this.sourceRoot,a=e.bind(i),c=this._names,u=this._sources,d=this._sourceMapURL,A=0,p=o.length;A<p;A++){var w=o[A],C=w.source===null?null:u.at(w.source);C!==null&&(C=S.computeSourceURL(l,C,d)),a({source:C,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:c.at(w.name)})}};j.prototype.allGeneratedPositionsFor=function(e){var t=S.getArg(e,"line"),n={source:S.getArg(e,"source"),originalLine:t,originalColumn:S.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,zi.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var l=o.originalLine;o&&o.originalLine===l;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var a=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==a;)i.push({line:S.getArg(o,"generatedLine",null),column:S.getArg(o,"generatedColumn",null),lastColumn:S.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};un.SourceMapConsumer=j;function ae(r,e){var t=r;typeof r=="string"&&(t=S.parseSourceMapInput(r));var n=S.getArg(t,"version"),i=S.getArg(t,"sources"),s=S.getArg(t,"names",[]),o=S.getArg(t,"sourceRoot",null),l=S.getArg(t,"sourcesContent",null),a=S.getArg(t,"mappings"),c=S.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=S.normalize(o)),i=i.map(String).map(S.normalize).map(function(u){return o&&S.isAbsolute(o)&&S.isAbsolute(u)?S.relative(o,u):u}),this._names=_t.fromArray(s.map(String),!0),this._sources=_t.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return S.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=l,this._mappings=a,this._sourceMapURL=e,this.file=c}ae.prototype=Object.create(j.prototype);ae.prototype.consumer=j;ae.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=S.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==r)return t;return-1};ae.fromSourceMap=function(e,t){var n=Object.create(ae.prototype),i=n._names=_t.fromArray(e._names.toArray(),!0),s=n._sources=_t.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(p){return S.computeSourceURL(n.sourceRoot,p,t)});for(var o=e._mappings.toArray().slice(),l=n.__generatedMappings=[],a=n.__originalMappings=[],c=0,u=o.length;c<u;c++){var d=o[c],A=new Ol;A.generatedLine=d.generatedLine,A.generatedColumn=d.generatedColumn,d.source&&(A.source=s.indexOf(d.source),A.originalLine=d.originalLine,A.originalColumn=d.originalColumn,d.name&&(A.name=i.indexOf(d.name)),a.push(A)),l.push(A)}return yr(n.__originalMappings,S.compareByOriginalPositions),n};ae.prototype._version=3;Object.defineProperty(ae.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Ol(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Vi=S.compareByGeneratedPositionsDeflatedNoLine;function Tl(r,e){let t=r.length,n=r.length-e;if(!(n<=1))if(n==2){let i=r[e],s=r[e+1];Vi(i,s)>0&&(r[e]=s,r[e+1]=i)}else if(n<20)for(let i=e;i<t;i++)for(let s=i;s>e;s--){let o=r[s-1],l=r[s];if(Vi(o,l)<=0)break;r[s-1]=l,r[s]=o}else yr(r,Vi,e)}ae.prototype._parseMappings=function(e,t){var n=1,i=0,s=0,o=0,l=0,a=0,c=e.length,u=0,d={},A={},p=[],w=[],C,b,G,K,N;let H=0;for(;u<c;)if(e.charAt(u)===";")n++,u++,i=0,Tl(w,H),H=w.length;else if(e.charAt(u)===",")u++;else{for(C=new Ol,C.generatedLine=n,K=u;K<c&&!this._charIsMappingSeparator(e,K);K++);for(b=e.slice(u,K),G=[];u<K;)Kd.decode(e,u,A),N=A.value,u=A.rest,G.push(N);if(G.length===2)throw new Error("Found a source, but no line and column");if(G.length===3)throw new Error("Found a source and line, but no column");if(C.generatedColumn=i+G[0],i=C.generatedColumn,G.length>1&&(C.source=l+G[1],l+=G[1],C.originalLine=s+G[2],s=C.originalLine,C.originalLine+=1,C.originalColumn=o+G[3],o=C.originalColumn,G.length>4&&(C.name=a+G[4],a+=G[4])),w.push(C),typeof C.originalLine=="number"){let q=C.source;for(;p.length<=q;)p.push(null);p[q]===null&&(p[q]=[]),p[q].push(C)}}Tl(w,H),this.__generatedMappings=w;for(var Y=0;Y<p.length;Y++)p[Y]!=null&&yr(p[Y],S.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};ae.prototype._findMapping=function(e,t,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return zi.search(e,t,s,o)};ae.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};ae.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",S.compareByGeneratedPositionsDeflated,S.getArg(e,"bias",j.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var s=S.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=S.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=S.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:S.getArg(i,"originalLine",null),column:S.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};ae.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};ae.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=S.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=S.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')};ae.prototype.generatedPositionFor=function(e){var t=S.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:S.getArg(e,"line"),originalColumn:S.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",S.compareByOriginalPositions,S.getArg(e,"bias",j.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:S.getArg(s,"generatedLine",null),column:S.getArg(s,"generatedColumn",null),lastColumn:S.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};un.BasicSourceMapConsumer=ae;function Be(r,e){var t=r;typeof r=="string"&&(t=S.parseSourceMapInput(r));var n=S.getArg(t,"version"),i=S.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new _t,this._names=new _t;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var l=S.getArg(o,"offset"),a=S.getArg(l,"line"),c=S.getArg(l,"column");if(a<s.line||a===s.line&&c<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=l,{generatedOffset:{generatedLine:a+1,generatedColumn:c+1},consumer:new j(S.getArg(o,"map"),e)}})}Be.prototype=Object.create(j.prototype);Be.prototype.constructor=j;Be.prototype._version=3;Object.defineProperty(Be.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)r.push(this._sections[e].consumer.sources[t]);return r}});Be.prototype.originalPositionFor=function(e){var t={generatedLine:S.getArg(e,"line"),generatedColumn:S.getArg(e,"column")},n=zi.search(t,this._sections,function(s,o){var l=s.generatedLine-o.generatedOffset.generatedLine;return l||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Be.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Be.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Be.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer._findSourceIndex(S.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};Be.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var l=s[o],a=i.consumer._sources.at(l.source);a!==null&&(a=S.computeSourceURL(i.consumer.sourceRoot,a,this._sourceMapURL)),this._sources.add(a),a=this._sources.indexOf(a);var c=null;l.name&&(c=i.consumer._names.at(l.name),this._names.add(c),c=this._names.indexOf(c));var u={source:a,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:c};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}yr(this.__generatedMappings,S.compareByGeneratedPositionsDeflated),yr(this.__originalMappings,S.compareByOriginalPositions)};un.IndexedSourceMapConsumer=Be});var _l=B(Ml=>{var Hd=qi().SourceMapGenerator,An=Mt(),Yd=/(\r?\n)/,Jd=10,Ft="$$$isSourceNode$$$";function xe(r,e,t,n,i){this.children=[],this.sourceContents={},this.line=r??null,this.column=e??null,this.source=t??null,this.name=i??null,this[Ft]=!0,n!=null&&this.add(n)}xe.fromStringWithSourceMap=function(e,t,n){var i=new xe,s=e.split(Yd),o=0,l=function(){var A=w(),p=w()||"";return A+p;function w(){return o<s.length?s[o++]:void 0}},a=1,c=0,u=null;return t.eachMapping(function(A){if(u!==null)if(a<A.generatedLine)d(u,l()),a++,c=0;else{var p=s[o]||"",w=p.substr(0,A.generatedColumn-c);s[o]=p.substr(A.generatedColumn-c),c=A.generatedColumn,d(u,w),u=A;return}for(;a<A.generatedLine;)i.add(l()),a++;if(c<A.generatedColumn){var p=s[o]||"";i.add(p.substr(0,A.generatedColumn)),s[o]=p.substr(A.generatedColumn),c=A.generatedColumn}u=A},this),o<s.length&&(u&&d(u,l()),i.add(s.splice(o).join(""))),t.sources.forEach(function(A){var p=t.sourceContentFor(A);p!=null&&(n!=null&&(A=An.join(n,A)),i.setSourceContent(A,p))}),i;function d(A,p){if(A===null||A.source===void 0)i.add(p);else{var w=n?An.join(n,A.source):A.source;i.add(new xe(A.originalLine,A.originalColumn,w,p,A.name))}}};xe.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Ft]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};xe.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Ft]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};xe.prototype.walk=function(e){for(var t,n=0,i=this.children.length;n<i;n++)t=this.children[n],t[Ft]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};xe.prototype.join=function(e){var t,n,i=this.children.length;if(i>0){for(t=[],n=0;n<i-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this};xe.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[Ft]?n.replaceRight(e,t):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this};xe.prototype.setSourceContent=function(e,t){this.sourceContents[An.toSetString(e)]=t};xe.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][Ft]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,n=i.length;t<n;t++)e(An.fromSetString(i[t]),this.sourceContents[i[t]])};xe.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};xe.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new Hd(e),i=!1,s=null,o=null,l=null,a=null;return this.walk(function(c,u){t.code+=c,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||l!==u.column||a!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name}),s=u.source,o=u.line,l=u.column,a=u.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),s=null,i=!1);for(var d=0,A=c.length;d<A;d++)c.charCodeAt(d)===Jd?(t.line++,t.column=0,d+1===A?(s=null,i=!1):i&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:t.line,column:t.column},name:u.name})):t.column++}),this.walkSourceContents(function(c,u){n.setSourceContent(c,u)}),{code:t.code,map:n}};Ml.SourceNode=xe});var dn=B(hn=>{hn.SourceMapGenerator=qi().SourceMapGenerator;hn.SourceMapConsumer=Nl().SourceMapConsumer;hn.SourceNode=_l().SourceNode});var Xi=B((Pb,Pl)=>{"use strict";var{existsSync:Zd,readFileSync:qd}=gt("fs"),{dirname:fn,isAbsolute:jd,join:Vd,relative:zd,sep:Xd}=gt("path"),{SourceMapConsumer:Fl,SourceMapGenerator:Ll}=dn();function $d(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var xr=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=fn(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Fl(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let l=e.match(t)||e.match(n);if(l)return $d(e.substr(l[0].length));let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),new Error("Unsupported source map encoding "+a)}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 n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e,t,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(t){let i=zd(fn(t),e);if(i===".."||i.startsWith(".."+Xd)||jd(i))return}}if(this.root=fn(e),Zd(e))return this.mapFile=e,qd(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 n=t(e);if(n){let i=this.loadFile(n,e,!0);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof Fl)return Ll.fromSourceMap(t).toString();if(t instanceof Ll)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 n=this.annotation;e&&(n=Vd(fn(e),n));let i=this.loadFile(n,e,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Pl.exports=xr;xr.default=xr});var Cr=B((Qb,Kl)=>{"use strict";var{nanoid:ef}=ul(),{isAbsolute:ts,resolve:rs}=gt("path"),{SourceMapConsumer:tf,SourceMapGenerator:rf}=dn(),{fileURLToPath:Ql,pathToFileURL:pn}=gt("url"),Gl=nn(),nf=Xi(),$i=Mi(),es=Symbol("lineToIndexCache"),sf=!!(tf&&rf),Ul=!!(rs&&ts);function Wl(r){if(r[es])return r[es];let e=r.css.split(`
|
|
49
|
-
`),t=new Array(e.length),n=0;for(let i=0,s=e.length;i<s;i++)t[i]=n,n+=e[i].length+1;return r[es]=t,t}var Lt=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]==="\uFFFE"?(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&&(!Ul||/^\w+:\/\//.test(t.from)||ts(t.from)?this.file=t.from:this.file=rs(t.from)),Ul&&sf){let n=new nf(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ef(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let s,o,l,a,c;if(t&&typeof t=="object"){let d=t,A=n;if(typeof d.offset=="number"){a=d.offset;let p=this.fromOffset(a);t=p.line,n=p.col}else t=d.line,n=d.column,a=this.fromLineAndColumn(t,n);if(typeof A.offset=="number"){l=A.offset;let p=this.fromOffset(l);o=p.line,s=p.col}else o=A.line,s=A.column,l=this.fromLineAndColumn(A.line,A.column)}else if(n)a=this.fromLineAndColumn(t,n);else{a=t;let d=this.fromOffset(a);t=d.line,n=d.col}let u=this.origin(t,n,o,s);return u?c=new Gl(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,i.plugin):c=new Gl(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:s,line:o},this.css,this.file,i.plugin),c.input={column:n,endColumn:s,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(pn&&(c.input.url=pn(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Wl(this)[e-1]+t-1}fromOffset(e){let t=Wl(this),n=t[t.length-1],i=0;if(e>=n)i=t.length-1;else{let s=t.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<t[o])s=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let l;if(typeof n=="number"){let d=s.originalPositionFor({column:i-1,line:n});d.source&&(l=d)}let a;ts(o.source)?a=pn(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||pn(this.map.mapFile));let c={column:o.column+1,endColumn:l&&l.column+1,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ql)c.file=Ql(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Kl.exports=Lt;Lt.default=Lt;$i&&$i.registerInput&&$i.registerInput(Lt)});var Pt=B((Gb,Zl)=>{"use strict";var Hl=ze(),Yl,Jl,Xe=class extends Hl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let
|
|
49
|
+
`),t=new Array(e.length),n=0;for(let i=0,s=e.length;i<s;i++)t[i]=n,n+=e[i].length+1;return r[es]=t,t}var Lt=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]==="\uFFFE"?(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&&(!Ul||/^\w+:\/\//.test(t.from)||ts(t.from)?this.file=t.from:this.file=rs(t.from)),Ul&&sf){let n=new nf(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ef(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let s,o,l,a,c;if(t&&typeof t=="object"){let d=t,A=n;if(typeof d.offset=="number"){a=d.offset;let p=this.fromOffset(a);t=p.line,n=p.col}else t=d.line,n=d.column,a=this.fromLineAndColumn(t,n);if(typeof A.offset=="number"){l=A.offset;let p=this.fromOffset(l);o=p.line,s=p.col}else o=A.line,s=A.column,l=this.fromLineAndColumn(A.line,A.column)}else if(n)a=this.fromLineAndColumn(t,n);else{a=t;let d=this.fromOffset(a);t=d.line,n=d.col}let u=this.origin(t,n,o,s);return u?c=new Gl(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,i.plugin):c=new Gl(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:s,line:o},this.css,this.file,i.plugin),c.input={column:n,endColumn:s,endLine:o,endOffset:l,line:t,offset:a,source:this.css},this.file&&(pn&&(c.input.url=pn(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return Wl(this)[e-1]+t-1}fromOffset(e){let t=Wl(this),n=t[t.length-1],i=0;if(e>=n)i=t.length-1;else{let s=t.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<t[o])s=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:rs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let l;if(typeof n=="number"){let d=s.originalPositionFor({column:i-1,line:n});d.source&&(l=d)}let a;ts(o.source)?a=pn(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||pn(this.map.mapFile));let c={column:o.column+1,endColumn:l&&l.column+1,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ql)c.file=Ql(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};Kl.exports=Lt;Lt.default=Lt;$i&&$i.registerInput&&$i.registerInput(Lt)});var Pt=B((Gb,Zl)=>{"use strict";var Hl=ze(),Yl,Jl,Xe=class extends Hl{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=new Set;for(let o of Array.isArray(e)?e:[e])o&&typeof o=="object"&&!o.parent&&o.raws&&typeof o.raws.before<"u"&&i.add(o.raws);let s=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)i.has(o.raws)||(o.raws.before=t.raws.before)}return s}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Yl(new Jl,this,e).stringify()}};Xe.registerLazyResult=r=>{Yl=r};Xe.registerProcessor=r=>{Jl=r};Zl.exports=Xe;Xe.default=Xe;Hl.registerRoot(Xe)});var ns=B((Ub,ql)=>{"use strict";var Ir={comma(r){return Ir.split(r,[","],!0)},space(r){let e=[" ",`
|
|
50
50
|
`," "];return Ir.split(r,e)},split(r,e,t){let n=[],i="",s=!1,o=0,l=!1,a="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&n.push(i.trim()),n}};ql.exports=Ir;Ir.default=Ir});var gn=B((Wb,Vl)=>{"use strict";var jl=ze(),of=ns(),Qt=class extends jl{get selectors(){return of.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Vl.exports=Qt;Qt.default=Qt;jl.registerRule(Qt)});var $l=B((Kb,Xl)=>{"use strict";var af=on(),lf=pr(),cf=mr(),uf=Cr(),Af=Xi(),hf=Pt(),df=gn();function zl(r,e){return r.inputs?r.inputs.map(t=>{let n={...t,__proto__:uf.prototype};return n.map&&(n.map={...n.map,__proto__:Af.prototype}),n}):e}function ff(r,e,t){let n={...r};if(delete n.inputs,delete n.nodes,n.source){let{inputId:s,...o}=n.source;n.source=o,s!=null&&(n.source.input=e[s])}let i;if(n.type==="root")i=new hf(n);else if(n.type==="decl")i=new cf(n);else if(n.type==="rule")i=new df(n);else if(n.type==="comment")i=new lf(n);else if(n.type==="atrule")i=new af(n);else throw new Error("Unknown node type: "+r.type);if(t){i.nodes=t;for(let s of t)s.parent=i}return i}function mn(r,e){if(Array.isArray(r))return r.map(i=>mn(i));let t,n=[{childIndex:0,children:[],inputs:zl(r,e),json:r}];for(;n.length>0;){let i=n[n.length-1],s=i.json.nodes;if(s&&i.childIndex<s.length){let l=s[i.childIndex];i.childIndex+=1,n.push({childIndex:0,children:[],inputs:zl(l,i.inputs),json:l});continue}n.pop();let o=ff(i.json,i.inputs,s?i.children:void 0);n.length>0?n[n.length-1].children.push(o):t=o}return t}Xl.exports=mn;mn.default=mn});var ss=B((Hb,sc)=>{"use strict";var{dirname:wn,relative:tc,resolve:rc,sep:nc}=gt("path"),{SourceMapConsumer:ic,SourceMapGenerator:bn}=dn(),{pathToFileURL:ec}=gt("url"),pf=Cr(),gf=!!(ic&&bn),mf=!!(wn&&rc&&tc&&nc),is=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i,this.originalCSS=i,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=`
|
|
51
51
|
`;this.css.includes(`\r
|
|
52
52
|
`)&&(t=`\r
|
|
@@ -55,7 +55,7 @@ Details: ${JSON.stringify(r.details,null,2)}`),e}function Ne(r){return async(...
|
|
|
55
55
|
`),t=l.length-s):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?wn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=wn(rc(n,this.mapOpts.annotation)));let i=tc(n,e);return this.memoizedPaths.set(e,i),i}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 pf(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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,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(ec){let n=ec(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;nc==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};sc.exports=is});var cc=B((Yb,lc)=>{"use strict";var wf=on(),bf=pr(),yf=mr(),xf=Pt(),oc=gn(),Cf=Ni(),ac={empty:!0,space:!0};function If(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}function os(r,e,t){let n="";for(let i=e;i<t;i++)n+=r[i][1];return n}var as=class{constructor(e){this.input=e,this.root=new xf,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 wf;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let t=new bf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Cf(this.input)}decl(e,t){let n=new yf;this.init(n,e[0][2]);let i=e[e.length-1];i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||If(e)),n.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;n.raws.before+=os(e,0,s),n.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let A=e[s][0];if(A===":"||A==="space"||A==="comment")break;s++}n.prop=os(e,o,s);let l=s,a;for(;s<e.length&&(a=e[s],s++,a[0]!==":");)a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]);n.raws.between=os(e,l,s),(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=s;for(;s<e.length;){let A=e[s][0];if(A!=="space"&&A!=="comment")break;s++}let u=e.slice(c,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let A=e.length-1;A>=0;A--){if(a=e[A],a[1].toLowerCase()==="!important"){n.important=!0;let p=this.stringFrom(e,A);p=this.spacesFromEnd(e)+p,p!==" !important"&&(n.raws.important=p);break}else if(a[1].toLowerCase()==="important"){let p=e.slice(0),w="";for(let C=A;C>0;C--){let b=p[C][0];if(w.trim().startsWith("!")&&b!=="space")break;w=p.pop()[1]+w}w.trim().startsWith("!")&&(n.important=!0,n.raws.important=w,e=p)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(A=>A[0]!=="space"&&A[0]!=="comment")&&(n.raws.between+=u.map(A=>A[1]).join(""),u=[]),this.raw(n,"value",u.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new oc;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,n=null,i=!1,s=null,o=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(n=c[0],a.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(l&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),t=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,i){let s,o,l=n.length,a="",c=!0,u,d;for(let A=0;A<l;A+=1)s=n[A],o=s[0],o==="space"&&A===l-1&&!i?c=!1:o==="comment"?(d=n[A-1]?n[A-1][0]:"empty",u=n[A+1]?n[A+1][0]:"empty",!ac[d]&&!ac[u]?a.slice(-1)===","?c=!1:a+=s[1]:c=!1):a+=s[1];if(!c){let A=n.reduce((p,w)=>p+w[1],"");e.raws[t]={raw:A,value:a}}e[t]=a}rule(e){e.pop();let t=new oc;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+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})}};lc.exports=as});var xn=B((Jb,uc)=>{"use strict";var Sf=ze(),Ef=Cr(),vf=cc();function yn(r,e){let t=new Ef(r,e),n=new vf(t);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
|
|
56
56
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
|
|
57
57
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
|
|
58
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}uc.exports=yn;yn.default=yn;Sf.registerParse(yn)});var ls=B((Zb,Ac)=>{"use strict";var Sr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Ac.exports=Sr;Sr.default=Sr});var Cn=B((qb,hc)=>{"use strict";var kf=ls(),Er=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new kf(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};hc.exports=Er;Er.default=Er});var cs=B((jb,fc)=>{"use strict";var dc={};fc.exports=function(e){dc[e]||(dc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var hs=B((Vb,wc)=>{"use strict";var Bf=ze(),Df=an(),Rf=ss(),Tf=xn(),pc=Cn(),Of=Pt(),Nf=ur(),{isClean:De,my:Mf}=sn(),_f=cs(),Ff={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lf={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},Pf={Once:!0,postcssPlugin:!0,prepare:!0},Gt=0;function vr(r){return typeof r=="object"&&typeof r.then=="function"}function us(r){let e=!1,t=Ff[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Gt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Gt,t+"Exit"]:[t,t+"Exit"]}function gc(r){let e;return r.type==="document"?e=["Document",Gt,"DocumentExit"]:r.type==="root"?e=["Root",Gt,"RootExit"]:e=us(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function mc(r){let e=[r];for(;e.length>0;){let t=e.pop();if(t[De]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return r}var As={},$e=class r{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,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=mc(t);else if(t instanceof r||t instanceof pc)i=mc(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let s=Tf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n)}catch(o){this.processed=!0,this.error=o}i&&!i[Mf]&&Bf.rebuild(i)}this.result=new pc(e,i,n),this.helpers={...As,postcss:As,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,l=s.split("."),a=o.split(".");(l[0]!==a[0]||parseInt(l[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Lf[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Pf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(vr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[De];){e[De]=!0;let t=[gc(e)];for(;t.length>0;){let n=this.visitTick(t);if(vr(n))try{await n}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return vr(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=Nf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let o="";return t(this.result.root,l=>{o+=l}),this.result.css=o,this.result}let s=new Rf(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(vr(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[De];)e[De]=!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 process.env.NODE_ENV!=="production"&&("from"in this.opts||_f("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vr(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[De]){l[De]=!0,e.push(gc(l));return}t.iterator=0,delete n.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Gt){n.nodes&&n.nodes.length&&(n[De]=!0,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[De]=!0;let t=[{eventIndex:0,events:us(e),iterator:0,node:e}];for(;t.length>0;){let n=t[t.length-1],i=n.node;if(n.iterator!==0){let s=n.iterator,o,l=!1;for(;o=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!o[De]){o[De]=!0,t.push({eventIndex:0,events:us(o),iterator:0,node:o}),l=!0;break}if(l)continue;n.iterator=0,delete i.indexes[s]}if(n.eventIndex<n.events.length){let s=n.events[n.eventIndex];if(n.eventIndex+=1,s===Gt)i.nodes&&i.nodes.length&&(n.iterator=i.getIterator());else{let o=this.listeners[s];o&&this.visitSync(o,i.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};$e.registerPostcss=r=>{As=r};wc.exports=$e;$e.default=$e;Of.registerLazyResult($e);Df.registerLazyResult($e)});var yc=B((zb,bc)=>{"use strict";var Qf=ss(),Gf=xn(),Uf=Cn(),Wf=ur(),Kf=cs(),kr=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=Gf;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=Wf;this.result=new Uf(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new Qf(i,void 0,this._opts,t);if(o.isMap()){let[l,a]=o.generate();l&&(this.result.css=l),a&&(this.result.map=a)}else o.clearAnnotation(),this.result.css=o.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 process.env.NODE_ENV!=="production"&&("from"in this._opts||Kf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};bc.exports=kr;kr.default=kr});var Cc=B((Xb,xc)=>{"use strict";var Hf=an(),Yf=hs(),Jf=yc(),Zf=Pt(),ut=class{constructor(e=[]){this.version="8.5.18",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Jf(this,e,t):new Yf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};xc.exports=ut;ut.default=ut;Zf.registerProcessor(ut);Hf.registerProcessor(ut)});var Rc=B(($b,Dc)=>{"use strict";var Ic=on(),Sc=pr(),qf=ze(),jf=nn(),Ec=mr(),vc=an(),Vf=$l(),zf=Cr(),Xf=hs(),$f=ns(),ep=dr(),tp=xn(),ds=Cc(),rp=Cn(),kc=Pt(),Bc=gn(),np=ur(),ip=ls();function Z(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new ds(r)}Z.plugin=function(e,t){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
58
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}uc.exports=yn;yn.default=yn;Sf.registerParse(yn)});var ls=B((Zb,Ac)=>{"use strict";var Sr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Ac.exports=Sr;Sr.default=Sr});var Cn=B((qb,hc)=>{"use strict";var kf=ls(),Er=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new kf(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};hc.exports=Er;Er.default=Er});var cs=B((jb,fc)=>{"use strict";var dc={};fc.exports=function(e){dc[e]||(dc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var hs=B((Vb,wc)=>{"use strict";var Bf=ze(),Df=an(),Rf=ss(),Tf=xn(),pc=Cn(),Of=Pt(),Nf=ur(),{isClean:De,my:Mf}=sn(),_f=cs(),Ff={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Lf={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},Pf={Once:!0,postcssPlugin:!0,prepare:!0},Gt=0;function vr(r){return typeof r=="object"&&typeof r.then=="function"}function us(r){let e=!1,t=Ff[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Gt,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Gt,t+"Exit"]:[t,t+"Exit"]}function gc(r){let e;return r.type==="document"?e=["Document",Gt,"DocumentExit"]:r.type==="root"?e=["Root",Gt,"RootExit"]:e=us(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function mc(r){let e=[r];for(;e.length>0;){let t=e.pop();if(t[De]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return r}var As={},$e=class r{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,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=mc(t);else if(t instanceof r||t instanceof pc)i=mc(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let s=Tf;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n)}catch(o){this.processed=!0,this.error=o}i&&!i[Mf]&&Bf.rebuild(i)}this.result=new pc(e,i,n),this.helpers={...As,postcss:As,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,s=n.postcssVersion,o=this.result.processor.version,l=s.split("."),a=o.split(".");(l[0]!==a[0]||parseInt(l[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Lf[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Pf[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(vr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[De];){e[De]=!0;let t=[gc(e)];for(;t.length>0;){let n=this.visitTick(t);if(vr(n))try{await n}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return vr(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=Nf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let o="";return t(this.result.root,l=>{o+=l}),this.result.css=o,this.result}let s=new Rf(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(vr(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[De];)e[De]=!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 process.env.NODE_ENV!=="production"&&("from"in this.opts||_f("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vr(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(n.toProxy(),this.helpers)}catch(a){throw this.handleError(a,n)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!l[De]){l[De]=!0,e.push(gc(l));return}t.iterator=0,delete n.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Gt){n.nodes&&n.nodes.length&&(n[De]=!0,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[De]=!0;let t=[{eventIndex:0,events:us(e),iterator:0,node:e}];for(;t.length>0;){let n=t[t.length-1],i=n.node;if(n.iterator!==0){let s=n.iterator,o,l=!1;for(;o=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!o[De]){o[De]=!0,t.push({eventIndex:0,events:us(o),iterator:0,node:o}),l=!0;break}if(l)continue;n.iterator=0,delete i.indexes[s]}if(n.eventIndex<n.events.length){let s=n.events[n.eventIndex];if(n.eventIndex+=1,s===Gt)i.nodes&&i.nodes.length&&(n.iterator=i.getIterator());else{let o=this.listeners[s];o&&this.visitSync(o,i.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};$e.registerPostcss=r=>{As=r};wc.exports=$e;$e.default=$e;Of.registerLazyResult($e);Df.registerLazyResult($e)});var yc=B((zb,bc)=>{"use strict";var Qf=ss(),Gf=xn(),Uf=Cn(),Wf=ur(),Kf=cs(),kr=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=Gf;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=Wf;this.result=new Uf(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new Qf(i,void 0,this._opts,t);if(o.isMap()){let[l,a]=o.generate();l&&(this.result.css=l),a&&(this.result.map=a)}else o.clearAnnotation(),this.result.css=o.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 process.env.NODE_ENV!=="production"&&("from"in this._opts||Kf("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};bc.exports=kr;kr.default=kr});var Cc=B((Xb,xc)=>{"use strict";var Hf=an(),Yf=hs(),Jf=yc(),Zf=Pt(),ut=class{constructor(e=[]){this.version="8.5.19",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Jf(this,e,t):new Yf(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};xc.exports=ut;ut.default=ut;Zf.registerProcessor(ut);Hf.registerProcessor(ut)});var Rc=B(($b,Dc)=>{"use strict";var Ic=on(),Sc=pr(),qf=ze(),jf=nn(),Ec=mr(),vc=an(),Vf=$l(),zf=Cr(),Xf=hs(),$f=ns(),ep=dr(),tp=xn(),ds=Cc(),rp=Cn(),kc=Pt(),Bc=gn(),np=ur(),ip=ls();function Z(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new ds(r)}Z.plugin=function(e,t){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
59
59
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
60
60
|
https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new ds().version,l}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,l,a){return Z([i(a)]).process(o,l)},i};Z.stringify=np;Z.parse=tp;Z.fromJSON=Vf;Z.list=$f;Z.comment=r=>new Sc(r);Z.atRule=r=>new Ic(r);Z.decl=r=>new Ec(r);Z.rule=r=>new Bc(r);Z.root=r=>new kc(r);Z.document=r=>new vc(r);Z.CssSyntaxError=jf;Z.Declaration=Ec;Z.Container=qf;Z.Processor=ds;Z.Document=vc;Z.Comment=Sc;Z.Warning=ip;Z.AtRule=Ic;Z.Result=rp;Z.Input=zf;Z.Rule=Bc;Z.Root=kc;Z.Node=ep;Xf.registerPostcss(Z);Dc.exports=Z;Z.default=Z});var Tc=B((fs,ps)=>{(function(r,e){typeof fs=="object"&&typeof ps<"u"?ps.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=e()})(fs,(function(){"use strict";var r=1e3,e=6e4,t=36e5,n="millisecond",i="second",s="minute",o="hour",l="day",a="week",c="month",u="quarter",d="year",A="date",p="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var I=["th","st","nd","rd"],x=k%100;return"["+k+(I[(x-20)%10]||I[x]||I[0])+"]"}},G=function(k,I,x){var h=String(k);return!h||h.length>=I?k:""+Array(I+1-h.length).join(x)+k},K={s:G,z:function(k){var I=-k.utcOffset(),x=Math.abs(I),h=Math.floor(x/60),g=x%60;return(I<=0?"+":"-")+G(h,2,"0")+":"+G(g,2,"0")},m:function k(I,x){if(I.date()<x.date())return-k(x,I);var h=12*(x.year()-I.year())+(x.month()-I.month()),g=I.clone().add(h,c),f=x-g<0,y=I.clone().add(h+(f?-1:1),c);return+(-(h+(x-g)/(f?g-y:y-g))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:c,y:d,w:a,d:l,D:A,h:o,m:s,s:i,ms:n,Q:u}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},N="en",H={};H[N]=b;var Y="$isDayjsObject",q=function(k){return k instanceof le||!(!k||!k[Y])},de=function k(I,x,h){var g;if(!I)return N;if(typeof I=="string"){var f=I.toLowerCase();H[f]&&(g=f),x&&(H[f]=x,g=f);var y=I.split("-");if(!g&&y.length>1)return k(y[0])}else{var M=I.name;H[M]=I,g=M}return!h&&g&&(N=g),g||!h&&N},F=function(k,I){if(q(k))return k.clone();var x=typeof I=="object"?I:{};return x.date=k,x.args=arguments,new le(x)},R=K;R.l=de,R.i=q,R.w=function(k,I){return F(k,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var le=(function(){function k(x){this.$L=de(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[Y]=!0}var I=k.prototype;return I.parse=function(x){this.$d=(function(h){var g=h.date,f=h.utc;if(g===null)return new Date(NaN);if(R.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var y=g.match(w);if(y){var M=y[2]-1||0,U=(y[7]||"0").substring(0,3);return f?new Date(Date.UTC(y[1],M,y[3]||1,y[4]||0,y[5]||0,y[6]||0,U)):new Date(y[1],M,y[3]||1,y[4]||0,y[5]||0,y[6]||0,U)}}return new Date(g)})(x),this.init()},I.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},I.$utils=function(){return R},I.isValid=function(){return this.$d.toString()!==p},I.isSame=function(x,h){var g=F(x);return this.startOf(h)<=g&&g<=this.endOf(h)},I.isAfter=function(x,h){return F(x)<this.startOf(h)},I.isBefore=function(x,h){return this.endOf(h)<F(x)},I.$g=function(x,h,g){return R.u(x)?this[h]:this.set(g,x)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(x,h){var g=this,f=!!R.u(h)||h,y=R.p(x),M=function(L,z){var re=R.w(g.$u?Date.UTC(g.$y,z,L):new Date(g.$y,z,L),g);return f?re:re.endOf(l)},U=function(L,z){return R.w(g.toDate()[L].apply(g.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(z)),g)},te=this.$W,se=this.$M,T=this.$D,_="set"+(this.$u?"UTC":"");switch(y){case d:return f?M(1,0):M(31,11);case c:return f?M(1,se):M(0,se+1);case a:var Ee=this.$locale().weekStart||0,P=(te<Ee?te+7:te)-Ee;return M(f?T-P:T+(6-P),se);case l:case A:return U(_+"Hours",0);case o:return U(_+"Minutes",1);case s:return U(_+"Seconds",2);case i:return U(_+"Milliseconds",3);default:return this.clone()}},I.endOf=function(x){return this.startOf(x,!1)},I.$set=function(x,h){var g,f=R.p(x),y="set"+(this.$u?"UTC":""),M=(g={},g[l]=y+"Date",g[A]=y+"Date",g[c]=y+"Month",g[d]=y+"FullYear",g[o]=y+"Hours",g[s]=y+"Minutes",g[i]=y+"Seconds",g[n]=y+"Milliseconds",g)[f],U=f===l?this.$D+(h-this.$W):h;if(f===c||f===d){var te=this.clone().set(A,1);te.$d[M](U),te.init(),this.$d=te.set(A,Math.min(this.$D,te.daysInMonth())).$d}else M&&this.$d[M](U);return this.init(),this},I.set=function(x,h){return this.clone().$set(x,h)},I.get=function(x){return this[R.p(x)]()},I.add=function(x,h){var g,f=this;x=Number(x);var y=R.p(h),M=function(se){var T=F(f);return R.w(T.date(T.date()+Math.round(se*x)),f)};if(y===c)return this.set(c,this.$M+x);if(y===d)return this.set(d,this.$y+x);if(y===l)return M(1);if(y===a)return M(7);var U=(g={},g[s]=e,g[o]=t,g[i]=r,g)[y]||1,te=this.$d.getTime()+x*U;return R.w(te,this)},I.subtract=function(x,h){return this.add(-1*x,h)},I.format=function(x){var h=this,g=this.$locale();if(!this.isValid())return g.invalidDate||p;var f=x||"YYYY-MM-DDTHH:mm:ssZ",y=R.z(this),M=this.$H,U=this.$m,te=this.$M,se=g.weekdays,T=g.months,_=g.meridiem,Ee=function(z,re,oe,pt){return z&&(z[re]||z(h,f))||oe[re].slice(0,pt)},P=function(z){return R.s(M%12||12,z,"0")},L=_||function(z,re,oe){var pt=z<12?"AM":"PM";return oe?pt.toLowerCase():pt};return f.replace(C,(function(z,re){return re||(function(oe){switch(oe){case"YY":return String(h.$y).slice(-2);case"YYYY":return R.s(h.$y,4,"0");case"M":return te+1;case"MM":return R.s(te+1,2,"0");case"MMM":return Ee(g.monthsShort,te,T,3);case"MMMM":return Ee(T,te);case"D":return h.$D;case"DD":return R.s(h.$D,2,"0");case"d":return String(h.$W);case"dd":return Ee(g.weekdaysMin,h.$W,se,2);case"ddd":return Ee(g.weekdaysShort,h.$W,se,3);case"dddd":return se[h.$W];case"H":return String(M);case"HH":return R.s(M,2,"0");case"h":return P(1);case"hh":return P(2);case"a":return L(M,U,!0);case"A":return L(M,U,!1);case"m":return String(U);case"mm":return R.s(U,2,"0");case"s":return String(h.$s);case"ss":return R.s(h.$s,2,"0");case"SSS":return R.s(h.$ms,3,"0");case"Z":return y}return null})(z)||y.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(x,h,g){var f,y=this,M=R.p(h),U=F(x),te=(U.utcOffset()-this.utcOffset())*e,se=this-U,T=function(){return R.m(y,U)};switch(M){case d:f=T()/12;break;case c:f=T();break;case u:f=T()/3;break;case a:f=(se-te)/6048e5;break;case l:f=(se-te)/864e5;break;case o:f=se/t;break;case s:f=se/e;break;case i:f=se/r;break;default:f=se}return g?f:R.a(f)},I.daysInMonth=function(){return this.endOf(c).$D},I.$locale=function(){return H[this.$L]},I.locale=function(x,h){if(!x)return this.$L;var g=this.clone(),f=de(x,h,!0);return f&&(g.$L=f),g},I.clone=function(){return R.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},k})(),fe=le.prototype;return F.prototype=fe,[["$ms",n],["$s",i],["$m",s],["$H",o],["$W",l],["$M",c],["$y",d],["$D",A]].forEach((function(k){fe[k[1]]=function(I){return this.$g(I,k[0],k[1])}})),F.extend=function(k,I){return k.$i||(k(I,le,F),k.$i=!0),F},F.locale=de,F.isDayjs=q,F.unix=function(k){return F(1e3*k)},F.en=H[N],F.Ls=H,F.p={},F}))});var Nc=B((ey,ms)=>{var In=Tc();function Oc(r){for(r=r.replace(/[\x00-\x20]+/g,"");;){let e=r.indexOf("<!--");if(e===-1)break;let t=r.indexOf("-->",e+4);if(t===-1)break;r=r.substring(0,e)+r.substring(t+3)}return r}function gs(r,e){e=e||{};let t=e.allowedSchemes||["http","https","ftp","mailto","tel","sms"],n=e.allowProtocolRelative!==!1;if(typeof r!="string")return!1;r=Oc(r);let i=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i)return r.match(/^[/\\]{2}/)?!n:!1;let s=i[1].toLowerCase();return t.indexOf(s)===-1}ms.exports=function(r){let e={};return e.options=r||{},e.filterTag=e.options.filterTag||function(t){return t=t.trim(),t.toLowerCase()},e.string=function(t,n){return typeof t!="string"&&(typeof t=="number"||typeof t=="boolean"?t+="":t=""),t=t.trim(),n!==void 0&&t===""&&(t=n),t},e.strings=function(t){return Array.isArray(t)?t.map(function(n){return e.string(n)}):[]},e.integer=function(t,n,i,s){if(n===void 0&&(n=0),typeof t=="number")t=Math.floor(t);else try{t=parseInt(t,10),isNaN(t)&&(t=n)}catch{t=n}return typeof i=="number"&&t<i&&(t=i),typeof s=="number"&&t>s&&(t=s),t},e.padInteger=function(t,n){let i=t+"";for(;i.length<n;)i="0"+i;return i},e.float=function(t,n,i,s){if(n===void 0&&(n=0),typeof t!="number")try{t=parseFloat(t,10),isNaN(t)&&(t=n)}catch{t=n}return typeof i=="number"&&t<i&&(t=i),typeof s=="number"&&t>s&&(t=s),t},e.naughtyHref=gs,e.url=function(t,n,i){if(t=e.string(t,n),t===n)return t;if(t=Oc(t),gs(t)||(t=s(t),t===null))return n;return t;function s(o){return o.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?o:o.match(/^[^/.]+\.[^/.]+/)?(i?"https://":"http://")+o:null}},e.select=function(t,n,i){if(t=e.string(t),!n||!n.length)return i;let s;return typeof n[0]=="object"?(s=n.find(function(o){return o.value===null||o.value===void 0?!1:o.value.toString()===t}),s!=null?s.value:i):(s=n.find(function(o){return o==null?!1:o.toString()===t}),s!==void 0?s:i)},e.boolean=function(t,n){return t===!0?!0:t===!1?!1:(t=e.string(t,n),t===n?t===void 0?!1:t:(t=t.toLowerCase().charAt(0),t===""||t==="n"||t==="0"||t==="f"?!1:t==="t"||t==="y"||t==="1"))},e.addBooleanFilterToCriteria=function(t,n,i,s){s===void 0&&(s=null);let o=typeof t=="object"&&t!==null?t[n]:t;o=o===void 0?s:o,o=e.booleanOrNull(o),o===null||(o?i[n]=!0:i[n]={$ne:!0})},e.booleanOrNull=function(t,n){return t===!0||t===!1||t===null?t:(t=e.string(t,n),t===n?n===void 0?null:t:t==="null"?null:(t=t.toLowerCase().charAt(0),t===""||t==="n"||t==="0"||t==="f"?!1:t==="t"||t==="y"||t==="1"?!0:t==="a"?null:n))},e.date=function(t,n,i){let s;function o(){return n===void 0&&(n=In().format("YYYY-MM-DD")),n}if(typeof t=="string"){if(t.match(/\//)){if(s=t.split("/"),s.length===2)return(i||new Date).getFullYear()+"-"+e.padInteger(s[0],2)+"-"+e.padInteger(s[1],2);if(s.length===3){if(s[2]<100){let l=i||new Date,a=l.getFullYear()%100,c=l.getFullYear()-a,u=parseInt(s[2])+c;u-l.getFullYear()>50&&(u-=100),s[2]=u}return e.padInteger(s[2],4)+"-"+e.padInteger(s[0],2)+"-"+e.padInteger(s[1],2)}else return o()}else if(t.match(/-/))return s=t.split("-"),s.length===2?(i||new Date).getFullYear()+"-"+e.padInteger(s[0],2)+"-"+e.padInteger(s[1],2):s.length===3?e.padInteger(s[0],4)+"-"+e.padInteger(s[1],2)+"-"+e.padInteger(s[2],2):o()}try{return t===null||(t=i||new Date(t),isNaN(t.getTime()))?o():t.getFullYear()+"-"+e.padInteger(t.getMonth()+1,2)+"-"+e.padInteger(t.getDate(),2)}catch{return o()}},e.formatDate=function(t){return In(t).format("YYYY-MM-DD")},e.time=function(t,n){t=e.string(t).toLowerCase(),t=t.trim();let i=t.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let s=parseInt(i[1],10),o=i[3]!==void 0?parseInt(i[3],10):0,l=i[5]!==void 0?parseInt(i[5],10):0,a=i[6]?i[6].toLowerCase():i[6];return a=a&&a.charAt(0),s===12&&a==="a"?s-=12:s===12&&a==="p"||a==="p"&&(s+=12),(s===24||s==="24")&&(s=0),e.padInteger(s,2)+":"+e.padInteger(o,2)+":"+e.padInteger(l,2)}else return n!==void 0?n:In().format("HH:mm")},e.formatTime=function(t){return In(t).format("HH:mm:ss")},e.tags=function(t,n){return typeof t=="string"&&(t=t.split(/,\s*/)),Array.isArray(t)?t.map(l=>e.string(l)).map(n||e.filterTag).filter(l=>l.length>0):[]},e.idRegExp=e.options.idRegExp||/^[A-Za-z0-9_]+$/,e.id=function(t,n){let i=e.string(t,n);return i===n||i.match(e.idRegExp)?i:n},e.ids=function(t){return Array.isArray(t)?t.filter(function(i){return e.id(i)!==void 0}):[]},e};ms.exports.naughtyHref=gs});var Pc=B((ty,Lc)=>{var sp=(ya(),$u(ba)),Mc=Ca(),{isPlainObject:op}=Sa(),_c=Ba(),ap=Ra(),{parse:lp}=Rc(),{naughtyHref:cp}=Nc(),up=["img","audio","video","picture","svg","object","map","iframe","embed"],Ap=["script","style"];function Ut(r,e){r&&Object.keys(r).forEach(function(t){e(r[t],t)})}function We(r,e){return{}.hasOwnProperty.call(r,e)}function Fc(r,e){let t=[];return Ut(r,function(n){e(n)&&t.push(n)}),t}function hp(r){for(let e in r)if(We(r,e))return!1;return!0}function dp(r){return r.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}Lc.exports=Br;var fp=/^[^\0\t\n\f\r /<=>]+$/;function Br(r,e,t){if(r==null)return"";typeof r=="number"&&(r=r.toString());let n="",i="";function s(h,g){let f=this;this.tag=h,this.attribs=g||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){let y=b[b.length-1];y.text+=f.text}},this.updateParentNodeMediaChildren=function(){b.length&&up.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Br.defaults,e),e.parser=Object.assign({},pp,e.parser);let o=function(h){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(h)>-1};Ap.forEach(function(h){o(h)&&!e.allowVulnerableTags&&console.warn(`
|
|
61
61
|
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"codex",
|
|
20
20
|
"opencode"
|
|
21
21
|
],
|
|
22
|
-
"version": "1.35.0
|
|
22
|
+
"version": "1.35.0",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"publishConfig": {
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"@types/node": "^26.1.0",
|
|
81
81
|
"@types/nodemailer": "^6.4.24",
|
|
82
82
|
"@types/sanitize-html": "^2.16.1",
|
|
83
|
-
"@vitest/coverage-v8": "^4.1.
|
|
83
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
84
84
|
"esbuild": "^0.28.1",
|
|
85
85
|
"tsx": "^4.23.0",
|
|
86
86
|
"typescript": "^7.0.2",
|
|
87
|
-
"vitest": "^4.1.
|
|
87
|
+
"vitest": "^4.1.10",
|
|
88
88
|
"wrangler": "^4.107.0"
|
|
89
89
|
},
|
|
90
90
|
"description": "Better MCP server for Email (IMAP/SMTP) with composite tools optimized for AI agents",
|