satori 0.19.2 → 0.20.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.
@@ -1,8 +1,8 @@
1
- var rc=Object.create;var In=Object.defineProperty;var nc=Object.getOwnPropertyDescriptor;var ic=Object.getOwnPropertyNames;var oc=Object.getPrototypeOf,sc=Object.prototype.hasOwnProperty;var Zt=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rn=(e,t)=>{for(var n in t)In(e,n,{get:t[n],enumerable:!0})},Js=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ic(t))!sc.call(e,i)&&i!==n&&In(e,i,{get:()=>t[i],enumerable:!(r=nc(t,i))||r.enumerable});return e};var ac=(e,t,n)=>(n=e!=null?rc(oc(e)):{},Js(t||!e||!e.__esModule?In(n,"default",{value:e,enumerable:!0}):n,e)),Cn=e=>Js(In({},"__esModule",{value:!0}),e);var Nt,pa,ha,Ar,ki,Wt,hr,xc,Wn,Ei,mr,gr,Oi,ma,Pi,Ai,ht,Ii,wc,ga,Dn=Zt(()=>{Nt=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),pa=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),ha=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Ar=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),ki=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Wt=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),hr=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),xc=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Wn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Ei=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),mr=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),gr=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),Oi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),ma=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Pi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ai=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),ht=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Ii=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),wc={ALIGN_AUTO:Nt.Auto,ALIGN_FLEX_START:Nt.FlexStart,ALIGN_CENTER:Nt.Center,ALIGN_FLEX_END:Nt.FlexEnd,ALIGN_STRETCH:Nt.Stretch,ALIGN_BASELINE:Nt.Baseline,ALIGN_SPACE_BETWEEN:Nt.SpaceBetween,ALIGN_SPACE_AROUND:Nt.SpaceAround,ALIGN_SPACE_EVENLY:Nt.SpaceEvenly,BOX_SIZING_BORDER_BOX:pa.BorderBox,BOX_SIZING_CONTENT_BOX:pa.ContentBox,DIMENSION_WIDTH:ha.Width,DIMENSION_HEIGHT:ha.Height,DIRECTION_INHERIT:Ar.Inherit,DIRECTION_LTR:Ar.LTR,DIRECTION_RTL:Ar.RTL,DISPLAY_FLEX:ki.Flex,DISPLAY_NONE:ki.None,DISPLAY_CONTENTS:ki.Contents,EDGE_LEFT:Wt.Left,EDGE_TOP:Wt.Top,EDGE_RIGHT:Wt.Right,EDGE_BOTTOM:Wt.Bottom,EDGE_START:Wt.Start,EDGE_END:Wt.End,EDGE_HORIZONTAL:Wt.Horizontal,EDGE_VERTICAL:Wt.Vertical,EDGE_ALL:Wt.All,ERRATA_NONE:hr.None,ERRATA_STRETCH_FLEX_BASIS:hr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:hr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:hr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:hr.All,ERRATA_CLASSIC:hr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:xc.WebFlexBasis,FLEX_DIRECTION_COLUMN:Wn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Wn.ColumnReverse,FLEX_DIRECTION_ROW:Wn.Row,FLEX_DIRECTION_ROW_REVERSE:Wn.RowReverse,GUTTER_COLUMN:Ei.Column,GUTTER_ROW:Ei.Row,GUTTER_ALL:Ei.All,JUSTIFY_FLEX_START:mr.FlexStart,JUSTIFY_CENTER:mr.Center,JUSTIFY_FLEX_END:mr.FlexEnd,JUSTIFY_SPACE_BETWEEN:mr.SpaceBetween,JUSTIFY_SPACE_AROUND:mr.SpaceAround,JUSTIFY_SPACE_EVENLY:mr.SpaceEvenly,LOG_LEVEL_ERROR:gr.Error,LOG_LEVEL_WARN:gr.Warn,LOG_LEVEL_INFO:gr.Info,LOG_LEVEL_DEBUG:gr.Debug,LOG_LEVEL_VERBOSE:gr.Verbose,LOG_LEVEL_FATAL:gr.Fatal,MEASURE_MODE_UNDEFINED:Oi.Undefined,MEASURE_MODE_EXACTLY:Oi.Exactly,MEASURE_MODE_AT_MOST:Oi.AtMost,NODE_TYPE_DEFAULT:ma.Default,NODE_TYPE_TEXT:ma.Text,OVERFLOW_VISIBLE:Pi.Visible,OVERFLOW_HIDDEN:Pi.Hidden,OVERFLOW_SCROLL:Pi.Scroll,POSITION_TYPE_STATIC:Ai.Static,POSITION_TYPE_RELATIVE:Ai.Relative,POSITION_TYPE_ABSOLUTE:Ai.Absolute,UNIT_UNDEFINED:ht.Undefined,UNIT_POINT:ht.Point,UNIT_PERCENT:ht.Percent,UNIT_AUTO:ht.Auto,WRAP_NO_WRAP:Ii.NoWrap,WRAP_WRAP:Ii.Wrap,WRAP_WRAP_REVERSE:Ii.WrapReverse},ga=wc});function Ri(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];return s.call(this,a,...f)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[ht.Point]:e.Node.prototype[i],[ht.Percent]:e.Node.prototype[`${i}Percent`],[ht.Auto]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];let l=u.pop(),p,h;if(l==="auto")p=ht.Auto,h=void 0;else if(typeof l=="object")p=l.unit,h=l.valueOf();else if(p=typeof l=="string"&&l.endsWith("%")?ht.Percent:ht.Point,h=parseFloat(l),l!==void 0&&!Number.isNaN(l)&&Number.isNaN(h))throw new Error(`Invalid value ${l} for ${i}`);if(!o[p])throw new Error(`Failed to execute "${i}": Unsupported unit '${l}'`);return h!==void 0?o[p].call(this,...u,h):o[p].call(this,...u)})}function n(i){return e.MeasureCallback.implement({measure:function(){let{width:o,height:s}=i(...arguments);return{width:o??NaN,height:s??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(i,o){return o?i.call(this,n(o)):this.unsetMeasureFunc()});function r(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,r(o))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,o)=>o?e.Node.createWithConfig(o):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,o=this.getChildCount();i<o;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ar.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...ga}}var ba=Zt(()=>{Dn();Dn()});var ya={};Rn(ya,{default:()=>Sc});function Sc(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var n,r;t.ready=new Promise(function(c,d){n=c,r=d});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),va&&(o=va),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var s=t.print||console.log.bind(console),a=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null;var u;t.wasmBinary&&(u=t.wasmBinary);var f=t.noExitRuntime||!0;typeof WebAssembly!="object"&&de("no native wasm support detected");var l,p=!1;function h(c,d,m){m=d+m;for(var v="";!(d>=m);){var x=c[d++];if(!x)break;if(x&128){var E=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|E);else{var P=c[d++]&63;x=(x&240)==224?(x&15)<<12|E<<6|P:(x&7)<<18|E<<12|P<<6|c[d++]&63,65536>x?v+=String.fromCharCode(x):(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023))}}else v+=String.fromCharCode(x)}return v}var g,b,y,k,S,I,w,T,O;function C(){var c=l.buffer;g=c,t.HEAP8=b=new Int8Array(c),t.HEAP16=k=new Int16Array(c),t.HEAP32=I=new Int32Array(c),t.HEAPU8=y=new Uint8Array(c),t.HEAPU16=S=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=T=new Float32Array(c),t.HEAPF64=O=new Float64Array(c)}var D,q=[],Y=[],ue=[];function _e(){var c=t.preRun.shift();q.unshift(c)}var ce=0,oe=null,ve=null;function de(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),p=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),r(c),c}function le(c){return c.startsWith("data:application/octet-stream;base64,")}var ee="";if(!le(ee)){var Le=ee;ee=t.locateFile?t.locateFile(Le,o):o+Le}function Oe(){var c=ee;try{if(c==ee&&u)return new Uint8Array(u);if(le(c))try{var d=ec(c.slice(37)),m=new Uint8Array(d.length);for(c=0;c<d.length;++c)m[c]=d.charCodeAt(c);var v=m}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var x=v;if(x)return x;throw"both async and sync fetching of the wasm failed"}catch(E){de(E)}}function Te(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Oe()}):fetch(ee,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+ee+"'";return c.arrayBuffer()}).catch(function(){return Oe()})}function _t(c){for(;0<c.length;)c.shift()(t)}function Me(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var d=c.charCodeAt(0);return 48<=d&&57>=d?"_"+c:c}function Je(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var Pe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],G=[];function Ie(c){var d=Error,m=Je(c,function(v){this.name=c,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
2
- `+v.replace(/^Error(:[^\n]*)?\n/,""))});return m.prototype=Object.create(d.prototype),m.prototype.constructor=m,m.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},m}var Re=void 0;function V(c){throw new Re(c)}var ut=c=>(c||V("Cannot use deleted val. handle = "+c),Pe[c].value),Tt=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=G.length?G.pop():Pe.length;return Pe[d]={ga:1,value:c},d}},$t=void 0,Sn=void 0;function Ee(c){for(var d="";y[c];)d+=Sn[y[c++]];return d}var gt=[];function qt(){for(;gt.length;){var c=gt.pop();c.M.$=!1,c.delete()}}var Be=void 0,Ze={};function ur(c,d){for(d===void 0&&V("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var bt={};function lr(c){c=Ys(c);var d=Ee(c);return Rt(c),d}function _n(c,d){var m=bt[c];return m===void 0&&V(d+" has unknown type "+lr(c)),m}function kt(){}var lt=!1;function ft(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function He(c,d,m){return d===m?c:m.R===void 0?null:(c=He(c,d,m.R),c===null?null:m.na(c))}var Kt={};function ct(c,d){return d=ur(c,d),Ze[d]}var Et=void 0;function Ot(c){throw new Et(c)}function Jt(c,d){return d.P&&d.O||Ot("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Ot("Both smartPtrType and smartPtr must be specified"),d.count={value:1},dt(Object.create(c,{M:{value:d}}))}function dt(c){return typeof FinalizationRegistry>"u"?(dt=d=>d,c):(lt=new FinalizationRegistry(d=>{ft(d.M)}),dt=d=>{var m=d.M;return m.T&&lt.register(d,{M:m},d),d},kt=d=>{lt.unregister(d)},dt(c))}var $e={};function Pt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function qe(c){return this.fromWireType(I[c>>2])}var At={},H={};function j(c,d,m){function v(A){A=m(A),A.length!==c.length&&Ot("Mismatched type converter count");for(var N=0;N<c.length;++N)Q(c[N],A[N])}c.forEach(function(A){H[A]=d});var x=Array(d.length),E=[],P=0;d.forEach((A,N)=>{bt.hasOwnProperty(A)?x[N]=bt[A]:(E.push(A),At.hasOwnProperty(A)||(At[A]=[]),At[A].push(()=>{x[N]=bt[A],++P,P===E.length&&v(x)}))}),E.length===0&&v(x)}function se(c){switch(c){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+c)}}function Q(c,d,m={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=d.name;if(c||V('type "'+v+'" must have a positive integer typeid pointer'),bt.hasOwnProperty(c)){if(m.ua)return;V("Cannot register type '"+v+"' twice")}bt[c]=d,delete H[c],At.hasOwnProperty(c)&&(d=At[c],delete At[c],d.forEach(x=>x()))}function ge(c){V(c.M.P.N.name+" instance already deleted")}function J(){}function pe(c,d,m){if(c[d].S===void 0){var v=c[d];c[d]=function(){return c[d].S.hasOwnProperty(arguments.length)||V("Function '"+m+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[d].S+")!"),c[d].S[arguments.length].apply(this,arguments)},c[d].S=[],c[d].S[v.Z]=v}}function ie(c,d){t.hasOwnProperty(c)?(V("Cannot register public name '"+c+"' twice"),pe(t,c,c),t.hasOwnProperty(void 0)&&V("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=d):t[c]=d}function te(c,d,m,v,x,E,P,A){this.name=c,this.constructor=d,this.X=m,this.W=v,this.R=x,this.pa=E,this.ba=P,this.na=A,this.ja=[]}function Ue(c,d,m){for(;d!==m;)d.ba||V("Expected null or instance of "+m.name+", got an instance of "+d.name),c=d.ba(c),d=d.R;return c}function K(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function vt(c,d){if(d===null){if(this.ea&&V("null is not a valid "+this.name),this.da){var m=this.fa();return c!==null&&c.push(this.W,m),m}return 0}if(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),m=Ue(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&V("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?m=d.M.T:V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:m=d.M.T;break;case 2:if(d.M.U===this)m=d.M.T;else{var v=d.clone();m=this.xa(m,Tt(function(){v.delete()})),c!==null&&c.push(this.W,m)}break;default:V("Unsupporting sharing policy")}return m}function Ne(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&V("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function Ye(c,d,m,v){this.name=c,this.N=d,this.ea=m,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,d.R!==void 0?this.toWireType=vt:(this.toWireType=v?K:Ne,this.V=null)}function et(c,d){t.hasOwnProperty(c)||Ot("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function fr(c,d){var m=[];return function(){if(m.length=0,Object.assign(m,arguments),c.includes("j")){var v=t["dynCall_"+c];v=m&&m.length?v.apply(null,[d].concat(m)):v.call(null,d)}else v=D.get(d).apply(null,m);return v}}function we(c,d){c=Ee(c);var m=c.includes("j")?fr(c,d):D.get(d);return typeof m!="function"&&V("unknown function pointer with signature "+c+": "+d),m}var Ut=void 0;function be(c,d){function m(E){x[E]||bt[E]||(H[E]?H[E].forEach(m):(v.push(E),x[E]=!0))}var v=[],x={};throw d.forEach(m),new Ut(c+": "+v.map(lr).join([", "]))}function Se(c,d,m,v,x){var E=d.length;2>E&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");var P=d[1]!==null&&m!==null,A=!1;for(m=1;m<d.length;++m)if(d[m]!==null&&d[m].V===void 0){A=!0;break}var N=d[0].name!=="void",L=E-2,F=Array(L),z=[],Z=[];return function(){if(arguments.length!==L&&V("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),Z.length=0,z.length=P?2:1,z[0]=x,P){var ke=d[1].toWireType(Z,this);z[1]=ke}for(var ae=0;ae<L;++ae)F[ae]=d[ae+2].toWireType(Z,arguments[ae]),z.push(F[ae]);if(ae=v.apply(null,z),A)Pt(Z);else for(var Ke=P?1:2;Ke<d.length;Ke++){var pt=Ke===1?ke:F[Ke-2];d[Ke].V!==null&&d[Ke].V(pt)}return ke=N?d[0].fromWireType(ae):void 0,ke}}function Xe(c,d){for(var m=[],v=0;v<c;v++)m.push(w[d+4*v>>2]);return m}function We(c){4<c&&--Pe[c].ga===0&&(Pe[c]=void 0,G.push(c))}function Qe(c){if(c===null)return"null";var d=typeof c;return d==="object"||d==="array"||d==="function"?c.toString():""+c}function It(c,d){switch(d){case 2:return function(m){return this.fromWireType(T[m>>2])};case 3:return function(m){return this.fromWireType(O[m>>3])};default:throw new TypeError("Unknown float type: "+c)}}function ze(c,d,m){switch(d){case 0:return m?function(v){return b[v]}:function(v){return y[v]};case 1:return m?function(v){return k[v>>1]}:function(v){return S[v>>1]};case 2:return m?function(v){return I[v>>2]}:function(v){return w[v>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function tt(c,d){for(var m="",v=0;!(v>=d/2);++v){var x=k[c+2*v>>1];if(x==0)break;m+=String.fromCharCode(x)}return m}function kr(c,d,m){if(m===void 0&&(m=2147483647),2>m)return 0;m-=2;var v=d;m=m<2*c.length?m/2:c.length;for(var x=0;x<m;++x)k[d>>1]=c.charCodeAt(x),d+=2;return k[d>>1]=0,d-v}function cr(c){return 2*c.length}function Tn(c,d){for(var m=0,v="";!(m>=d/4);){var x=I[c+4*m>>2];if(x==0)break;++m,65536<=x?(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023)):v+=String.fromCharCode(x)}return v}function kn(c,d,m){if(m===void 0&&(m=2147483647),4>m)return 0;var v=d;m=v+m-4;for(var x=0;x<c.length;++x){var E=c.charCodeAt(x);if(55296<=E&&57343>=E){var P=c.charCodeAt(++x);E=65536+((E&1023)<<10)|P&1023}if(I[d>>2]=E,d+=4,d+4>m)break}return I[d>>2]=0,d-v}function En(c){for(var d=0,m=0;m<c.length;++m){var v=c.charCodeAt(m);55296<=v&&57343>=v&&++m,d+=4}return d}var Qf={};function js(c){var d=Qf[c];return d===void 0?Ee(c):d}var On=[];function Kf(c){var d=On.length;return On.push(c),d}function Jf(c,d){for(var m=Array(c),v=0;v<c;++v)m[v]=_n(w[d+4*v>>2],"parameter "+v);return m}var Vs=[],Zf=[null,[],[]];Re=t.BindingError=Ie("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<Pe.length;++d)Pe[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<Pe.length;++c)if(Pe[c]!==void 0)return Pe[c];return null},$t=t.PureVirtualError=Ie("PureVirtualError");for(var Hs=Array(256),Pn=0;256>Pn;++Pn)Hs[Pn]=String.fromCharCode(Pn);Sn=Hs,t.getInheritedInstanceCount=function(){return Object.keys(Ze).length},t.getLiveInheritedInstances=function(){var c=[],d;for(d in Ze)Ze.hasOwnProperty(d)&&c.push(Ze[d]);return c},t.flushPendingDeletes=qt,t.setDelayFunction=function(c){Be=c,gt.length&&Be&&Be(qt)},Et=t.InternalError=Ie("InternalError"),J.prototype.isAliasOf=function(c){if(!(this instanceof J&&c instanceof J))return!1;var d=this.M.P.N,m=this.M.O,v=c.M.P.N;for(c=c.M.O;d.R;)m=d.ba(m),d=d.R;for(;v.R;)c=v.ba(c),v=v.R;return d===v&&m===c},J.prototype.clone=function(){if(this.M.O||ge(this),this.M.aa)return this.M.count.value+=1,this;var c=dt,d=Object,m=d.create,v=Object.getPrototypeOf(this),x=this.M;return c=c(m.call(d,v,{M:{value:{count:x.count,$:x.$,aa:x.aa,O:x.O,P:x.P,T:x.T,U:x.U}}})),c.M.count.value+=1,c.M.$=!1,c},J.prototype.delete=function(){this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),kt(this),ft(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},J.prototype.isDeleted=function(){return!this.M.O},J.prototype.deleteLater=function(){return this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),gt.push(this),gt.length===1&&Be&&Be(qt),this.M.$=!0,this},Ye.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Ye.prototype.ha=function(c){this.W&&this.W(c)},Ye.prototype.argPackAdvance=8,Ye.prototype.readValueFromPointer=qe,Ye.prototype.deleteObject=function(c){c!==null&&c.delete()},Ye.prototype.fromWireType=function(c){function d(){return this.da?Jt(this.N.X,{P:this.wa,O:m,U:this,T:c}):Jt(this.N.X,{P:this,O:c})}var m=this.qa(c);if(!m)return this.ha(c),null;var v=ct(this.N,m);if(v!==void 0)return v.M.count.value===0?(v.M.O=m,v.M.T=c,v.clone()):(v=v.clone(),this.ha(c),v);if(v=this.N.pa(m),v=Kt[v],!v)return d.call(this);v=this.ca?v.la:v.pointerType;var x=He(m,this.N,v.N);return x===null?d.call(this):this.da?Jt(v.N.X,{P:v,O:x,U:this,T:c}):Jt(v.N.X,{P:v,O:x})},Ut=t.UnboundTypeError=Ie("UnboundTypeError");var ec=typeof atob=="function"?atob:function(c){var d="",m=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++));v=v<<2|x>>4,x=(x&15)<<4|E>>2;var A=(E&3)<<6|P;d+=String.fromCharCode(v),E!==64&&(d+=String.fromCharCode(x)),P!==64&&(d+=String.fromCharCode(A))}while(m<c.length);return d},tc={l:function(c,d,m,v){de("Assertion failed: "+(c?h(y,c):"")+", at: "+[d?d?h(y,d):"":"unknown filename",m,v?v?h(y,v):"":"unknown function"])},q:function(c,d,m){c=Ee(c),d=_n(d,"wrapper"),m=ut(m);var v=[].slice,x=d.N,E=x.X,P=x.R.X,A=x.R.constructor;c=Je(c,function(){x.R.ja.forEach(function(L){if(this[L]===P[L])throw new $t("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:E}),this.__construct.apply(this,v.call(arguments))}),E.__construct=function(){this===E&&V("Pass correct 'this' to __construct");var L=A.implement.apply(void 0,[this].concat(v.call(arguments)));kt(L);var F=L.M;L.notifyOnDestruction(),F.aa=!0,Object.defineProperties(this,{M:{value:F}}),dt(this),L=F.O,L=ur(x,L),Ze.hasOwnProperty(L)?V("Tried to register registered instance: "+L):Ze[L]=this},E.__destruct=function(){this===E&&V("Pass correct 'this' to __destruct"),kt(this);var L=this.M.O;L=ur(x,L),Ze.hasOwnProperty(L)?delete Ze[L]:V("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(E);for(var N in m)c.prototype[N]=m[N];return Tt(c)},j:function(c){var d=$e[c];delete $e[c];var m=d.fa,v=d.W,x=d.ia,E=x.map(P=>P.ta).concat(x.map(P=>P.za));j([c],E,P=>{var A={};return x.forEach((N,L)=>{var F=P[L],z=N.ra,Z=N.sa,ke=P[L+x.length],ae=N.ya,Ke=N.Aa;A[N.oa]={read:pt=>F.fromWireType(z(Z,pt)),write:(pt,Er)=>{var Ct=[];ae(Ke,pt,ke.toWireType(Ct,Er)),Pt(Ct)}}}),[{name:d.name,fromWireType:function(N){var L={},F;for(F in A)L[F]=A[F].read(N);return v(N),L},toWireType:function(N,L){for(var F in A)if(!(F in L))throw new TypeError('Missing field: "'+F+'"');var z=m();for(F in A)A[F].write(z,L[F]);return N!==null&&N.push(v,z),z},argPackAdvance:8,readValueFromPointer:qe,V:v}]})},v:function(){},B:function(c,d,m,v,x){var E=se(m);d=Ee(d),Q(c,{name:d,fromWireType:function(P){return!!P},toWireType:function(P,A){return A?v:x},argPackAdvance:8,readValueFromPointer:function(P){if(m===1)var A=b;else if(m===2)A=k;else if(m===4)A=I;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(A[P>>E])},V:null})},f:function(c,d,m,v,x,E,P,A,N,L,F,z,Z){F=Ee(F),E=we(x,E),A&&(A=we(P,A)),L&&(L=we(N,L)),Z=we(z,Z);var ke=Me(F);ie(ke,function(){be("Cannot construct "+F+" due to unbound types",[v])}),j([c,d,m],v?[v]:[],function(ae){if(ae=ae[0],v)var Ke=ae.N,pt=Ke.X;else pt=J.prototype;ae=Je(ke,function(){if(Object.getPrototypeOf(this)!==Er)throw new Re("Use 'new' to construct "+F);if(Ct.Y===void 0)throw new Re(F+" has no accessible constructor");var Ks=Ct.Y[arguments.length];if(Ks===void 0)throw new Re("Tried to invoke ctor of "+F+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Ct.Y).toString()+") parameters instead!");return Ks.apply(this,arguments)});var Er=Object.create(pt,{constructor:{value:ae}});ae.prototype=Er;var Ct=new te(F,ae,Er,Z,Ke,E,A,L);Ke=new Ye(F,Ct,!0,!1),pt=new Ye(F+"*",Ct,!1,!1);var Qs=new Ye(F+" const*",Ct,!1,!0);return Kt[c]={pointerType:pt,la:Qs},et(ke,ae),[Ke,pt,Qs]})},d:function(c,d,m,v,x,E,P){var A=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(N){function L(){be("Cannot call "+F+" due to unbound types",A)}N=N[0];var F=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var z=N.N.constructor;return z[d]===void 0?(L.Z=m-1,z[d]=L):(pe(z,d,F),z[d].S[m-1]=L),j([],A,function(Z){return Z=Se(F,[Z[0],null].concat(Z.slice(1)),null,E,P),z[d].S===void 0?(Z.Z=m-1,z[d]=Z):z[d].S[m-1]=Z,[]}),[]})},p:function(c,d,m,v,x,E){0<d||de();var P=Xe(d,m);x=we(v,x),j([],[c],function(A){A=A[0];var N="constructor "+A.name;if(A.N.Y===void 0&&(A.N.Y=[]),A.N.Y[d-1]!==void 0)throw new Re("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+A.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return A.N.Y[d-1]=()=>{be("Cannot construct "+A.name+" due to unbound types",P)},j([],P,function(L){return L.splice(1,0,null),A.N.Y[d-1]=Se(N,L,null,x,E),[]}),[]})},a:function(c,d,m,v,x,E,P,A){var N=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(L){function F(){be("Cannot call "+z+" due to unbound types",N)}L=L[0];var z=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),A&&L.N.ja.push(d);var Z=L.N.X,ke=Z[d];return ke===void 0||ke.S===void 0&&ke.className!==L.name&&ke.Z===m-2?(F.Z=m-2,F.className=L.name,Z[d]=F):(pe(Z,d,z),Z[d].S[m-2]=F),j([],N,function(ae){return ae=Se(z,ae,L,E,P),Z[d].S===void 0?(ae.Z=m-2,Z[d]=ae):Z[d].S[m-2]=ae,[]}),[]})},A:function(c,d){d=Ee(d),Q(c,{name:d,fromWireType:function(m){var v=ut(m);return We(m),v},toWireType:function(m,v){return Tt(v)},argPackAdvance:8,readValueFromPointer:qe,V:null})},n:function(c,d,m){m=se(m),d=Ee(d),Q(c,{name:d,fromWireType:function(v){return v},toWireType:function(v,x){return x},argPackAdvance:8,readValueFromPointer:It(d,m),V:null})},e:function(c,d,m,v,x){d=Ee(d),x===-1&&(x=4294967295),x=se(m);var E=A=>A;if(v===0){var P=32-8*m;E=A=>A<<P>>>P}m=d.includes("unsigned")?function(A,N){return N>>>0}:function(A,N){return N},Q(c,{name:d,fromWireType:E,toWireType:m,argPackAdvance:8,readValueFromPointer:ze(d,x,v!==0),V:null})},b:function(c,d,m){function v(E){E>>=2;var P=w;return new x(g,P[E+1],P[E])}var x=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];m=Ee(m),Q(c,{name:m,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(c,d){d=Ee(d);var m=d==="std::string";Q(c,{name:d,fromWireType:function(v){var x=w[v>>2],E=v+4;if(m)for(var P=E,A=0;A<=x;++A){var N=E+A;if(A==x||y[N]==0){if(P=P?h(y,P,N-P):"",L===void 0)var L=P;else L+=String.fromCharCode(0),L+=P;P=N+1}}else{for(L=Array(x),A=0;A<x;++A)L[A]=String.fromCharCode(y[E+A]);L=L.join("")}return Rt(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var E,P=typeof x=="string";if(P||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||V("Cannot pass non-string to std::string"),m&&P){var A=0;for(E=0;E<x.length;++E){var N=x.charCodeAt(E);127>=N?A++:2047>=N?A+=2:55296<=N&&57343>=N?(A+=4,++E):A+=3}E=A}else E=x.length;if(A=vi(4+E+1),N=A+4,w[A>>2]=E,m&&P){if(P=N,N=E+1,E=y,0<N){N=P+N-1;for(var L=0;L<x.length;++L){var F=x.charCodeAt(L);if(55296<=F&&57343>=F){var z=x.charCodeAt(++L);F=65536+((F&1023)<<10)|z&1023}if(127>=F){if(P>=N)break;E[P++]=F}else{if(2047>=F){if(P+1>=N)break;E[P++]=192|F>>6}else{if(65535>=F){if(P+2>=N)break;E[P++]=224|F>>12}else{if(P+3>=N)break;E[P++]=240|F>>18,E[P++]=128|F>>12&63}E[P++]=128|F>>6&63}E[P++]=128|F&63}}E[P]=0}}else if(P)for(P=0;P<E;++P)L=x.charCodeAt(P),255<L&&(Rt(N),V("String has UTF-16 code units that do not fit in 8 bits")),y[N+P]=L;else for(P=0;P<E;++P)y[N+P]=x[P];return v!==null&&v.push(Rt,A),A},argPackAdvance:8,readValueFromPointer:qe,V:function(v){Rt(v)}})},i:function(c,d,m){if(m=Ee(m),d===2)var v=tt,x=kr,E=cr,P=()=>S,A=1;else d===4&&(v=Tn,x=kn,E=En,P=()=>w,A=2);Q(c,{name:m,fromWireType:function(N){for(var L=w[N>>2],F=P(),z,Z=N+4,ke=0;ke<=L;++ke){var ae=N+4+ke*d;(ke==L||F[ae>>A]==0)&&(Z=v(Z,ae-Z),z===void 0?z=Z:(z+=String.fromCharCode(0),z+=Z),Z=ae+d)}return Rt(N),z},toWireType:function(N,L){typeof L!="string"&&V("Cannot pass non-string to C++ string type "+m);var F=E(L),z=vi(4+F+d);return w[z>>2]=F>>A,x(L,z+4,F+d),N!==null&&N.push(Rt,z),z},argPackAdvance:8,readValueFromPointer:qe,V:function(N){Rt(N)}})},k:function(c,d,m,v,x,E){$e[c]={name:Ee(d),fa:we(m,v),W:we(x,E),ia:[]}},h:function(c,d,m,v,x,E,P,A,N,L){$e[c].ia.push({oa:Ee(d),ta:m,ra:we(v,x),sa:E,za:P,ya:we(A,N),Aa:L})},C:function(c,d){d=Ee(d),Q(c,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,d,m,v,x){c=On[c],d=ut(d),m=js(m);var E=[];return w[v>>2]=Tt(E),c(d,m,E,x)},t:function(c,d,m,v){c=On[c],d=ut(d),m=js(m),c(d,m,null,v)},g:We,m:function(c,d){var m=Jf(c,d),v=m[0];d=v.name+"_$"+m.slice(1).map(function(P){return P.name}).join("_")+"$";var x=Vs[d];if(x!==void 0)return x;var E=Array(c-1);return x=Kf((P,A,N,L)=>{for(var F=0,z=0;z<c-1;++z)E[z]=m[z+1].readValueFromPointer(L+F),F+=m[z+1].argPackAdvance;for(P=P[A].apply(P,E),z=0;z<c-1;++z)m[z+1].ma&&m[z+1].ma(E[z]);if(!v.va)return v.toWireType(N,P)}),Vs[d]=x},D:function(c){4<c&&(Pe[c].ga+=1)},r:function(c){var d=ut(c);Pt(d),We(c)},c:function(){de("")},x:function(c,d,m){y.copyWithin(c,d,d+m)},w:function(c){var d=y.length;if(c>>>=0,2147483648<c)return!1;for(var m=1;4>=m;m*=2){var v=d*(1+.2/m);v=Math.min(v,c+100663296);var x=Math;v=Math.max(c,v),x=x.min.call(x,2147483648,v+(65536-v%65536)%65536);e:{try{l.grow(x-g.byteLength+65535>>>16),C();var E=1;break e}catch{}E=void 0}if(E)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,m,v){for(var x=0,E=0;E<m;E++){var P=w[d>>2],A=w[d+4>>2];d+=8;for(var N=0;N<A;N++){var L=y[P+N],F=Zf[c];L===0||L===10?((c===1?s:a)(h(F,0)),F.length=0):F.push(L)}x+=A}return w[v>>2]=x,0}};(function(){function c(x){t.asm=x.exports,l=t.asm.E,C(),D=t.asm.J,Y.unshift(t.asm.F),ce--,t.monitorRunDependencies&&t.monitorRunDependencies(ce),ce==0&&(oe!==null&&(clearInterval(oe),oe=null),ve&&(x=ve,ve=null,x()))}function d(x){c(x.instance)}function m(x){return Te().then(function(E){return E instanceof WebAssembly.Instance?E:WebAssembly.instantiate(E,v)}).then(function(E){return E}).then(x,function(E){a("failed to asynchronously prepare wasm: "+E),de(E)})}var v={a:tc};if(ce++,t.monitorRunDependencies&&t.monitorRunDependencies(ce),t.instantiateWasm)try{return t.instantiateWasm(v,c)}catch(x){a("Module.instantiateWasm callback failed with error: "+x),r(x)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||le(ee)||typeof fetch!="function"?m(d):fetch(ee,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(E){return a("wasm streaming compile failed: "+E),a("falling back to ArrayBuffer instantiation"),m(d)})})}().catch(r),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Ys=t.___getTypeName=function(){return(Ys=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var vi=t._malloc=function(){return(vi=t._malloc=t.asm.I).apply(null,arguments)},Rt=t._free=function(){return(Rt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var An;ve=function c(){An||Xs(),An||(ve=c)};function Xs(){function c(){if(!An&&(An=!0,t.calledRun=!0,!p)){if(_t(Y),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var d=t.postRun.shift();ue.unshift(d)}_t(ue)}}if(!(0<ce)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)_e();_t(q),0<ce||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),c()},1)):c())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return Xs(),e.ready}var va,xa=Zt(()=>{va=""});async function wa(e){let{default:t}=await Promise.resolve().then(()=>(xa(),ya));return Ri(await t(e))}var Sa=Zt(()=>{ba();Dn()});var Li={};Rn(Li,{getYoga:()=>Oc,init:()=>Ec});async function kc(e,t){let n=e;if((typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=await fetch(n)),typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(o){n.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}let r=await WebAssembly.instantiate("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function Ec(e){_c({instantiateWasm(t,n){return kc(e,t).then(({instance:r})=>{n(r)}).catch(Ci),{}}}).then(_a).catch(Ci)}function Oc(){return Tc}var _c,_a,Ci,Tc,Mi=Zt(()=>{Sa();_c=wa,Tc=new Promise((e,t)=>{_a=e,Ci=t})});var no=U(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});Object.defineProperty(ro,"default",{enumerable:!0,get:()=>Cd});function Cd(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var pu=U(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});Object.defineProperty(io,"default",{enumerable:!0,get:()=>Ld});var Ld=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var hu=U(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});Object.defineProperty(oo,"default",{enumerable:!0,get:()=>Md});function Md(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var so=U((Ex,mu)=>{mu.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),caretColor:({theme:e})=>e("colors"),accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),stroke:({theme:e})=>e("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var Jn={};Rn(Jn,{default:()=>Nd});var Nd,Zn=Zt(()=>{Nd={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var gu=U(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});Object.defineProperty(ao,"default",{enumerable:!0,get:()=>Fd});var Wd=Dd((Zn(),Cn(Jn)));function Dd(e){return e&&e.__esModule?e:{default:e}}function $r({version:e,from:t,to:n}){Wd.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var Fd={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return $r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return $r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return $r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return $r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return $r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var bu=U(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});Object.defineProperty(uo,"defaults",{enumerable:!0,get:()=>Bd});function Bd(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var vu=U(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});Object.defineProperty(lo,"toPath",{enumerable:!0,get:()=>$d});function $d(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var xu=U(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});Object.defineProperty(fo,"normalizeConfig",{enumerable:!0,get:()=>Ud});var qr=qd((Zn(),Cn(Jn)));function yu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(yu=function(r){return r?n:t})(e)}function qd(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=yu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function Ud(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||qr.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")qr.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var s,a,u,f,l,p,h,g,b,y;return!((s=e.purge)===null||s===void 0)&&s.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(f=u.extract)===null||f===void 0)&&f.DEFAULT?e.purge.extract.DEFAULT:!((l=e.content)===null||l===void 0||(p=l.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((h=e.purge)===null||h===void 0||(g=h.options)===null||g===void 0)&&g.extractors?e.purge.options.extractors:!((b=e.content)===null||b===void 0||(y=b.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,f;if(!((s=e.purge)===null||s===void 0||(a=s.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(f=u.options)===null||f===void 0)&&f.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:s,extractor:a}of r??[])for(let u of s)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,s,a,u,f,l;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((s=e.content)===null||s===void 0)&&s.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((f=e.content)===null||f===void 0||(l=f.transform)===null||l===void 0)&&l.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){qr.default.warn("invalid-glob-braces",[`The glob pattern ${(0,qr.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,qr.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var wu=U(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});Object.defineProperty(co,"default",{enumerable:!0,get:()=>zd});function zd(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Su=U(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});Object.defineProperty(ho,"cloneDeep",{enumerable:!0,get:()=>po});function po(e){return Array.isArray(e)?e.map(t=>po(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,po(n)])):e}});var mo=U((ei,_u)=>{"use strict";ei.__esModule=!0;ei.default=Vd;function Gd(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!s)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var jd=/\\/;function Vd(e){var t=jd.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=Gd(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}_u.exports=ei.default});var ku=U((ti,Tu)=>{"use strict";ti.__esModule=!0;ti.default=Hd;function Hd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}Tu.exports=ti.default});var Ou=U((ri,Eu)=>{"use strict";ri.__esModule=!0;ri.default=Yd;function Yd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}Eu.exports=ri.default});var Au=U((ni,Pu)=>{"use strict";ni.__esModule=!0;ni.default=Xd;function Xd(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}Pu.exports=ni.default});var Ur=U(xt=>{"use strict";xt.__esModule=!0;xt.stripComments=xt.ensureObject=xt.getProp=xt.unesc=void 0;var Qd=ii(mo());xt.unesc=Qd.default;var Kd=ii(ku());xt.getProp=Kd.default;var Jd=ii(Ou());xt.ensureObject=Jd.default;var Zd=ii(Au());xt.stripComments=Zd.default;function ii(e){return e&&e.__esModule?e:{default:e}}});var Dt=U((zr,Cu)=>{"use strict";zr.__esModule=!0;zr.default=void 0;var Iu=Ur();function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ep(e,t,n){return t&&Ru(e.prototype,t),n&&Ru(e,n),e}var tp=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(a){return e(a,r)}):r[i]=e(o,r)}return r},rp=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=tp(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var s=this[r],a=this.raws[r];this[r]=s+i,a||o!==i?this.raws[r]=(a||s)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},ep(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,Iu.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,Iu.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();zr.default=rp;Cu.exports=zr.default});var Ce=U(he=>{"use strict";he.__esModule=!0;he.UNIVERSAL=he.ATTRIBUTE=he.CLASS=he.COMBINATOR=he.COMMENT=he.ID=he.NESTING=he.PSEUDO=he.ROOT=he.SELECTOR=he.STRING=he.TAG=void 0;var np="tag";he.TAG=np;var ip="string";he.STRING=ip;var op="selector";he.SELECTOR=op;var sp="root";he.ROOT=sp;var ap="pseudo";he.PSEUDO=ap;var up="nesting";he.NESTING=up;var lp="id";he.ID=lp;var fp="comment";he.COMMENT=fp;var cp="combinator";he.COMBINATOR=cp;var dp="class";he.CLASS=dp;var pp="attribute";he.ATTRIBUTE=pp;var hp="universal";he.UNIVERSAL=hp});var oi=U((Gr,Wu)=>{"use strict";Gr.__esModule=!0;Gr.default=void 0;var mp=bp(Dt()),Ft=gp(Ce());function Nu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Nu=function(){return e},e}function gp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Nu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function bp(e){return e&&e.__esModule?e:{default:e}}function vp(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=yp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function yp(e,t){if(e){if(typeof e=="string")return Lu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lu(e,t)}}function Lu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xp(e,t,n){return t&&Mu(e.prototype,t),n&&Mu(e,n),e}function wp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,go(e,t)}function go(e,t){return go=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},go(e,t)}var Sp=function(e){wp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},n.removeAll=function(){for(var i=vp(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},n.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.UNIVERSAL)return i.call(o,s)})},n.split=function(i){var o=this,s=[];return this.reduce(function(a,u,f){var l=i.call(o,u);return s.push(u),l?(a.push(s),s=[]):f===o.length-1&&a.push(s),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},xp(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(mp.default);Gr.default=Sp;Wu.exports=Gr.default});var vo=U((jr,Fu)=>{"use strict";jr.__esModule=!0;jr.default=void 0;var _p=kp(oi()),Tp=Ce();function kp(e){return e&&e.__esModule?e:{default:e}}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ep(e,t,n){return t&&Du(e.prototype,t),n&&Du(e,n),e}function Op(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bo(e,t)}function bo(e,t){return bo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bo(e,t)}var Pp=function(e){Op(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Tp.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Ep(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(_p.default);jr.default=Pp;Fu.exports=jr.default});var xo=U((Vr,Bu)=>{"use strict";Vr.__esModule=!0;Vr.default=void 0;var Ap=Rp(oi()),Ip=Ce();function Rp(e){return e&&e.__esModule?e:{default:e}}function Cp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yo(e,t)}function yo(e,t){return yo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yo(e,t)}var Lp=function(e){Cp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Ip.SELECTOR,r}return t}(Ap.default);Vr.default=Lp;Bu.exports=Vr.default});var si=U((Nx,$u)=>{"use strict";var Mp={},Np=Mp.hasOwnProperty,Wp=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Np.call(t,i)?t[i]:n[i];return r},Dp=/[ -,\.\/:-@\[-\^`\{-~]/,Fp=/[ -,\.\/:-@\[\]\^`\{-~]/,Bp=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wo=function e(t,n){n=Wp(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var f=t.charAt(a++),l=f.charCodeAt(),p=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}p="\\"+l.toString(16).toUpperCase()+" "}else n.escapeEverything?Dp.test(f)?p="\\"+f:p="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+l.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&r==f||f=="'"&&r==f)||i&&Fp.test(f)?p="\\"+f:p=f;s+=p}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Bp,function(g,b,y){return b&&b.length%2?g:(b||"")+y}),!i&&n.wrap?r+s+r:s};wo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};wo.version="3.0.0";$u.exports=wo});var _o=U((Hr,zu)=>{"use strict";Hr.__esModule=!0;Hr.default=void 0;var $p=Uu(si()),qp=Ur(),Up=Uu(Dt()),zp=Ce();function Uu(e){return e&&e.__esModule?e:{default:e}}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gp(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),e}function jp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,So(e,t)}function So(e,t){return So=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},So(e,t)}var Vp=function(e){jp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=zp.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Gp(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,$p.default)(i,{isIdentifier:!0});o!==i?((0,qp.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Up.default);Hr.default=Vp;zu.exports=Hr.default});var ko=U((Yr,Gu)=>{"use strict";Yr.__esModule=!0;Yr.default=void 0;var Hp=Xp(Dt()),Yp=Ce();function Xp(e){return e&&e.__esModule?e:{default:e}}function Qp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,To(e,t)}function To(e,t){return To=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},To(e,t)}var Kp=function(e){Qp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Yp.COMMENT,r}return t}(Hp.default);Yr.default=Kp;Gu.exports=Yr.default});var Oo=U((Xr,ju)=>{"use strict";Xr.__esModule=!0;Xr.default=void 0;var Jp=eh(Dt()),Zp=Ce();function eh(e){return e&&e.__esModule?e:{default:e}}function th(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Eo(e,t)}function Eo(e,t){return Eo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Eo(e,t)}var rh=function(e){th(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Zp.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Jp.default);Xr.default=rh;ju.exports=Xr.default});var ai=U((Qr,Yu)=>{"use strict";Qr.__esModule=!0;Qr.default=void 0;var nh=Hu(si()),ih=Ur(),oh=Hu(Dt());function Hu(e){return e&&e.__esModule?e:{default:e}}function Vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sh(e,t,n){return t&&Vu(e.prototype,t),n&&Vu(e,n),e}function ah(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Po(e,t)}function Po(e,t){return Po=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Po(e,t)}var uh=function(e){ah(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},sh(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var o=(0,nh.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,ih.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(oh.default);Qr.default=uh;Yu.exports=Qr.default});var Io=U((Kr,Xu)=>{"use strict";Kr.__esModule=!0;Kr.default=void 0;var lh=ch(ai()),fh=Ce();function ch(e){return e&&e.__esModule?e:{default:e}}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ao(e,t)}function Ao(e,t){return Ao=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ao(e,t)}var ph=function(e){dh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=fh.TAG,r}return t}(lh.default);Kr.default=ph;Xu.exports=Kr.default});var Co=U((Jr,Qu)=>{"use strict";Jr.__esModule=!0;Jr.default=void 0;var hh=gh(Dt()),mh=Ce();function gh(e){return e&&e.__esModule?e:{default:e}}function bh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ro(e,t)}function Ro(e,t){return Ro=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ro(e,t)}var vh=function(e){bh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=mh.STRING,r}return t}(hh.default);Jr.default=vh;Qu.exports=Jr.default});var Mo=U((Zr,Ku)=>{"use strict";Zr.__esModule=!0;Zr.default=void 0;var yh=wh(oi()),xh=Ce();function wh(e){return e&&e.__esModule?e:{default:e}}function Sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lo(e,t)}function Lo(e,t){return Lo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lo(e,t)}var _h=function(e){Sh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=xh.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(yh.default);Zr.default=_h;Ku.exports=Zr.default});var Zu=U((Wx,Ju)=>{Ju.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var $o=U(rn=>{"use strict";rn.__esModule=!0;rn.unescapeValue=Bo;rn.default=void 0;var en=Fo(si()),Th=Fo(mo()),kh=Fo(ai()),Eh=Ce(),No;function Fo(e){return e&&e.__esModule?e:{default:e}}function el(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oh(e,t,n){return t&&el(e.prototype,t),n&&el(e,n),e}function Ph(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Do(e,t)}function Do(e,t){return Do=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Do(e,t)}var tn=Zu(),Ah=/^('|")([^]*)\1$/,Ih=tn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Rh=tn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Ch=tn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Bo(e){var t=!1,n=null,r=e,i=r.match(Ah);return i&&(n=i[1],r=i[2]),r=(0,Th.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Lh(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Ch();var t=Bo(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var ui=function(e){Ph(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Lh(r))||this,i.type=Eh.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:tn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:tn(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=Wo[o],a=(0,en.default)(this._value,s);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,en.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var l=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=Wo[l],h=(0,en.default)(o,p);if(h.length<u.length)return l}return f}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,en.default)(this._value,Wo[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var s=(0,en.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},n._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=tl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},n.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var f=this._spacesFor("value");o+=f.before.length;var l=this.stringifyProperty("value");if(i==="value")return l?o:-1;o+=l.length,o+=f.after.length;var p=this._spacesFor("insensitive");return o+=p.before.length,i==="insensitive"&&this.insensitive?o:-1},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),tl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Oh(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Rh()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=Bo(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Ih(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(kh.default);rn.default=ui;ui.NO_QUOTE=null;ui.SINGLE_QUOTE="'";ui.DOUBLE_QUOTE='"';var Wo=(No={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},No[null]={isIdentifier:!0},No);function tl(e,t){return""+t.before+e+t.after}});var Uo=U((nn,rl)=>{"use strict";nn.__esModule=!0;nn.default=void 0;var Mh=Wh(ai()),Nh=Ce();function Wh(e){return e&&e.__esModule?e:{default:e}}function Dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qo(e,t)}function qo(e,t){return qo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},qo(e,t)}var Fh=function(e){Dh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Nh.UNIVERSAL,r.value="*",r}return t}(Mh.default);nn.default=Fh;rl.exports=nn.default});var Go=U((on,nl)=>{"use strict";on.__esModule=!0;on.default=void 0;var Bh=qh(Dt()),$h=Ce();function qh(e){return e&&e.__esModule?e:{default:e}}function Uh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zo(e,t)}function zo(e,t){return zo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zo(e,t)}var zh=function(e){Uh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=$h.COMBINATOR,r}return t}(Bh.default);on.default=zh;nl.exports=on.default});var Vo=U((sn,il)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var Gh=Vh(Dt()),jh=Ce();function Vh(e){return e&&e.__esModule?e:{default:e}}function Hh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jo(e,t)}function jo(e,t){return jo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jo(e,t)}var Yh=function(e){Hh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=jh.NESTING,r.value="&",r}return t}(Gh.default);sn.default=Yh;il.exports=sn.default});var sl=U((li,ol)=>{"use strict";li.__esModule=!0;li.default=Xh;function Xh(e){return e.sort(function(t,n){return t-n})}ol.exports=li.default});var Ho=U($=>{"use strict";$.__esModule=!0;$.combinator=$.word=$.comment=$.str=$.tab=$.newline=$.feed=$.cr=$.backslash=$.bang=$.slash=$.doubleQuote=$.singleQuote=$.space=$.greaterThan=$.pipe=$.equals=$.plus=$.caret=$.tilde=$.dollar=$.closeSquare=$.openSquare=$.closeParenthesis=$.openParenthesis=$.semicolon=$.colon=$.comma=$.at=$.asterisk=$.ampersand=void 0;var Qh=38;$.ampersand=Qh;var Kh=42;$.asterisk=Kh;var Jh=64;$.at=Jh;var Zh=44;$.comma=Zh;var em=58;$.colon=em;var tm=59;$.semicolon=tm;var rm=40;$.openParenthesis=rm;var nm=41;$.closeParenthesis=nm;var im=91;$.openSquare=im;var om=93;$.closeSquare=om;var sm=36;$.dollar=sm;var am=126;$.tilde=am;var um=94;$.caret=um;var lm=43;$.plus=lm;var fm=61;$.equals=fm;var cm=124;$.pipe=cm;var dm=62;$.greaterThan=dm;var pm=32;$.space=pm;var al=39;$.singleQuote=al;var hm=34;$.doubleQuote=hm;var mm=47;$.slash=mm;var gm=33;$.bang=gm;var bm=92;$.backslash=bm;var vm=13;$.cr=vm;var ym=12;$.feed=ym;var xm=10;$.newline=xm;var wm=9;$.tab=wm;var Sm=al;$.str=Sm;var _m=-1;$.comment=_m;var Tm=-2;$.word=Tm;var km=-3;$.combinator=km});var fl=U(an=>{"use strict";an.__esModule=!0;an.default=Cm;an.FIELDS=void 0;var W=Em(Ho()),yr,fe;function ll(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ll=function(){return e},e}function Em(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ll();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Om=(yr={},yr[W.tab]=!0,yr[W.newline]=!0,yr[W.cr]=!0,yr[W.feed]=!0,yr),Pm=(fe={},fe[W.space]=!0,fe[W.tab]=!0,fe[W.newline]=!0,fe[W.cr]=!0,fe[W.feed]=!0,fe[W.ampersand]=!0,fe[W.asterisk]=!0,fe[W.bang]=!0,fe[W.comma]=!0,fe[W.colon]=!0,fe[W.semicolon]=!0,fe[W.openParenthesis]=!0,fe[W.closeParenthesis]=!0,fe[W.openSquare]=!0,fe[W.closeSquare]=!0,fe[W.singleQuote]=!0,fe[W.doubleQuote]=!0,fe[W.plus]=!0,fe[W.pipe]=!0,fe[W.tilde]=!0,fe[W.greaterThan]=!0,fe[W.equals]=!0,fe[W.dollar]=!0,fe[W.caret]=!0,fe[W.slash]=!0,fe),Yo={},ul="0123456789abcdefABCDEF";for(fi=0;fi<ul.length;fi++)Yo[ul.charCodeAt(fi)]=!0;var fi;function Am(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Pm[r])return n-1;r===W.backslash?n=Im(e,n)+1:n++}while(n<e.length);return n-1}function Im(e,t){var n=t,r=e.charCodeAt(n+1);if(!Om[r])if(Yo[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(Yo[r]&&i<6);i<6&&r===W.space&&n++}else n++;return n}var Rm={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};an.FIELDS=Rm;function Cm(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,f,l,p,h,g,b,y,k,S,I,w,T,O;function C(D,q){if(e.safe)n+=q,S=n.length-1;else throw e.error("Unclosed "+D,s,a-o,a)}for(;a<i;){switch(f=n.charCodeAt(a),f===W.newline&&(o=a,s+=1),f){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:S=a;do S+=1,f=n.charCodeAt(S),f===W.newline&&(o=S,s+=1);while(f===W.space||f===W.newline||f===W.tab||f===W.cr||f===W.feed);O=W.space,h=s,p=S-o-1,u=S;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:S=a;do S+=1,f=n.charCodeAt(S);while(f===W.plus||f===W.greaterThan||f===W.tilde||f===W.pipe);O=W.combinator,h=s,p=a-o,u=S;break;case W.asterisk:case W.ampersand:case W.bang:case W.comma:case W.equals:case W.dollar:case W.caret:case W.openSquare:case W.closeSquare:case W.colon:case W.semicolon:case W.openParenthesis:case W.closeParenthesis:S=a,O=f,h=s,p=a-o,u=S+1;break;case W.singleQuote:case W.doubleQuote:T=f===W.singleQuote?"'":'"',S=a;do for(g=!1,S=n.indexOf(T,S+1),S===-1&&C("quote",T),b=S;n.charCodeAt(b-1)===W.backslash;)b-=1,g=!g;while(g);O=W.str,h=s,p=a-o,u=S+1;break;default:f===W.slash&&n.charCodeAt(a+1)===W.asterisk?(S=n.indexOf("*/",a+2)+1,S===0&&C("comment","*/"),l=n.slice(a,S+1),k=l.split(`
4
- `),y=k.length-1,y>0?(I=s+y,w=S-k[y].length):(I=s,w=o),O=W.comment,s=I,h=I,p=S-w):f===W.slash?(S=a,O=f,h=s,p=a-o,u=S+1):(S=Am(n,a),O=W.word,h=s,p=S-o),u=S+1;break}t.push([O,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var vl=U((un,bl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Lm=nt(vo()),Xo=nt(xo()),Mm=nt(_o()),cl=nt(ko()),Nm=nt(Oo()),Wm=nt(Io()),Qo=nt(Co()),Dm=nt(Mo()),dl=ci($o()),Fm=nt(Uo()),Ko=nt(Go()),Bm=nt(Vo()),$m=nt(sl()),R=ci(fl()),B=ci(Ho()),qm=ci(Ce()),ye=Ur(),rr,Jo;function gl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return gl=function(){return e},e}function ci(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=gl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function nt(e){return e&&e.__esModule?e:{default:e}}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Um(e,t,n){return t&&pl(e.prototype,t),n&&pl(e,n),e}var ts=(rr={},rr[B.space]=!0,rr[B.cr]=!0,rr[B.feed]=!0,rr[B.newline]=!0,rr[B.tab]=!0,rr),zm=Object.assign({},ts,(Jo={},Jo[B.comment]=!0,Jo));function hl(e){return{line:e[R.FIELDS.START_LINE],column:e[R.FIELDS.START_COL]}}function ml(e){return{line:e[R.FIELDS.END_LINE],column:e[R.FIELDS.END_COL]}}function nr(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function xr(e){return nr(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],e[R.FIELDS.END_LINE],e[R.FIELDS.END_COL])}function Zo(e,t){if(e)return nr(e[R.FIELDS.START_LINE],e[R.FIELDS.START_COL],t[R.FIELDS.END_LINE],t[R.FIELDS.END_COL])}function wr(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,ye.ensureObject)(e,"raws"),e[t]=(0,ye.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function es(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Gm(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var jm=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,R.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Zo(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Lm.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Xo.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[R.FIELDS.TYPE]!==B.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[R.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[R.FIELDS.START_POS]);var o=r.length,s={source:nr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[R.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(r[0][R.FIELDS.TYPE]))return this.expected("attribute",r[0][R.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=r[a],g=this.content(h),b=r[a+1];switch(h[R.FIELDS.TYPE]){case B.space:if(p=!0,this.options.lossy)break;if(l){(0,ye.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+g;var k=(0,ye.getProp)(s,"raws","spaces",l,"after")||null;k&&(s.raws.spaces[l].after=k+g)}else u=u+g,f=f+g;break;case B.asterisk:if(b[R.FIELDS.TYPE]===B.equals)s.operator=g,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+g;var S=(0,ye.getProp)(s,"raws","namespace")||null;S&&(s.raws.namespace+=g),l="namespace"}p=!1;break;case B.dollar:if(l==="value"){var I=(0,ye.getProp)(s,"raws","value");s.value+="$",I&&(s.raws.value=I+"$");break}case B.caret:b[R.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),p=!1;break;case B.combinator:if(g==="~"&&b[R.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),g!=="|"){p=!1;break}b[R.FIELDS.TYPE]===B.equals?(s.operator=g,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case B.word:if(b&&this.content(b)==="|"&&r[a+2]&&r[a+2][R.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=g,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+g;var w=(0,ye.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=g),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var T=(0,ye.unesc)(g),O=(0,ye.getProp)(s,"raws","value")||"",C=s.value||"";s.value=C+T,s.quoteMark=null,(T!==g||O)&&((0,ye.ensureObject)(s,"raws"),s.raws.value=(O||C)+g),l="value"}else{var D=g==="i"||g==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=D,(!D||g==="I")&&((0,ye.ensureObject)(s,"raws"),s.raws.insensitiveFlag=g),l="insensitive",u&&((0,ye.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=g,s.raws.value&&(s.raws.value+=g))}p=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[R.FIELDS.START_POS]});var q=(0,dl.unescapeValue)(g),Y=q.unescaped,ue=q.quoteMark;s.value=Y,s.quoteMark=ue,l="value",(0,ye.ensureObject)(s,"raws"),s.raws.value=g,p=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",h[R.FIELDS.START_POS],g);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[R.FIELDS.START_POS]});s.operator=s.operator?s.operator+g:g,l="operator",p=!1;break;case B.comment:if(l)if(p||b&&b[R.FIELDS.TYPE]===B.space||l==="insensitive"){var _e=(0,ye.getProp)(s,"spaces",l,"after")||"",ce=(0,ye.getProp)(s,"raws","spaces",l,"after")||_e;(0,ye.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=ce+g}else{var oe=s[l]||"",ve=(0,ye.getProp)(s,"raws",l)||oe;(0,ye.ensureObject)(s,"raws"),s.raws[l]=ve+g}else f=f+g;break;default:return this.error('Unexpected "'+g+'" found.',{index:h[R.FIELDS.START_POS]})}a++}wr(s,"attribute"),wr(s,"namespace"),this.newNode(new dl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(ts[this.currToken[R.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[R.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new cl.default({value:this.content(),source:xr(this.currToken),sourceIndex:this.currToken[R.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];o.push(new Qo.default({value:"",source:nr(f[R.FIELDS.START_LINE],f[R.FIELDS.START_COL],l[R.FIELDS.END_LINE],l[R.FIELDS.END_COL]),sourceIndex:f[R.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(f){var l=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=l+o.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+o.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][R.FIELDS.TYPE]===B.slash&&this.tokens[r+1]&&this.tokens[r+1][R.FIELDS.TYPE]===B.word&&this.tokens[r+2]&&this.tokens[r+2][R.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,ye.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new Ko.default({value:"/"+i+"/",source:nr(this.currToken[R.FIELDS.START_LINE],this.currToken[R.FIELDS.START_COL],this.tokens[this.position+2][R.FIELDS.END_LINE],this.tokens[this.position+2][R.FIELDS.END_COL]),sourceIndex:this.currToken[R.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][R.FIELDS.TYPE]===B.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,f=a.rawSpace;f!==void 0&&(s.rawSpaceAfter+=f),s.spaces.after+=u}else o.forEach(function(O){return r.newNode(O)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[R.FIELDS.TYPE]===B.combinator?(h=new Ko.default({value:this.content(),source:xr(this.currToken),sourceIndex:this.currToken[R.FIELDS.START_POS]}),this.position++):ts[this.currToken[R.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var g=this.convertWhitespaceNodesToSpace(p),b=g.space,y=g.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var k=this.convertWhitespaceNodesToSpace(p,!0),S=k.space,I=k.rawSpace;I||(I=S);var w={},T={spaces:{}};S.endsWith(" ")&&I.endsWith(" ")?(w.before=S.slice(0,S.length-1),T.spaces.before=I.slice(0,I.length-1)):S.startsWith(" ")&&I.startsWith(" ")?(w.after=S.slice(1),T.spaces.after=I.slice(1)):T.value=I,h=new Ko.default({value:" ",source:Zo(l,this.tokens[this.position-1]),sourceIndex:l[R.FIELDS.START_POS],spaces:w,raws:T})}return this.currToken&&this.currToken[R.FIELDS.TYPE]===B.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Xo.default({source:{start:hl(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new cl.default({value:this.content(),source:xr(r),sourceIndex:r[R.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[R.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[R.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[R.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[R.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[R.FIELDS.TYPE]===B.word)return this.position++,this.word(r);if(this.nextToken[R.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Bm.default({value:this.content(),source:xr(i),sourceIndex:i[R.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===qm.PSEUDO){var o=new Xo.default({source:{start:hl(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=ml(this.currToken),this.current.parent.source.end=ml(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[R.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[R.FIELDS.TYPE]===B.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new Qo.default({value:u,source:nr(a[R.FIELDS.START_LINE],a[R.FIELDS.START_COL],f[R.FIELDS.END_LINE],f[R.FIELDS.END_COL]),sourceIndex:a[R.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[R.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[R.FIELDS.TYPE]===B.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[R.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new Dm.default({value:i,source:Zo(o,r.currToken),sourceIndex:o[R.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[R.FIELDS.TYPE]===B.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[R.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[R.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[R.FIELDS.TYPE]===B.comma||this.prevToken[R.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[R.FIELDS.TYPE]===B.comma||this.nextToken[R.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new Qo.default({value:this.content(),source:xr(r),sourceIndex:r[R.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new Fm.default({value:this.content(),source:xr(o),sourceIndex:o[R.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[R.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[R.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=es(a,".").filter(function(b){var y=a[b-1]==="\\",k=/^\d+\.\d+%$/.test(a);return!y&&!k}),p=es(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=es(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var g=(0,$m.default)(Gm([0].concat(l,p)));g.forEach(function(b,y){var k=g[y+1]||a.length,S=a.slice(b,k);if(y===0&&i)return i.call(o,S,g.length);var I,w=o.currToken,T=w[R.FIELDS.START_POS]+g[y],O=nr(w[1],w[2]+b,w[3],w[2]+(k-1));if(~l.indexOf(b)){var C={value:S.slice(1),source:O,sourceIndex:T};I=new Mm.default(wr(C,"value"))}else if(~p.indexOf(b)){var D={value:S.slice(1),source:O,sourceIndex:T};I=new Nm.default(wr(D,"value"))}else{var q={value:S,source:O,sourceIndex:T};wr(q,"value"),I=new Wm.default(q)}o.newNode(I,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[R.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:r&&this.missingParenthesis();break;case B.openSquare:this.attribute();break;case B.dollar:case B.caret:case B.equals:case B.word:this.word();break;case B.colon:this.pseudo();break;case B.comma:this.comma();break;case B.asterisk:this.universal();break;case B.ampersand:this.nesting();break;case B.slash:case B.combinator:this.combinator();break;case B.str:this.string();break;case B.closeSquare:this.missingSquareBracket();case B.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[R.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,wr(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[R.FIELDS.START_POS],r[R.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(zm[this.tokens[i][R.FIELDS.TYPE]]){i++;continue}else return i;return-1},Um(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();un.default=jm;bl.exports=un.default});var xl=U((ln,yl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Vm=Hm(vl());function Hm(e){return e&&e.__esModule?e:{default:e}}var Ym=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new Vm.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(f){var l=void 0;return o._shouldUpdateSelector(r,i)&&(l=u.toString(),r.selector=l),{transform:f,root:u,string:l}}).then(s,a)}catch(f){a(f);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();ln.default=Ym;yl.exports=ln.default});var wl=U(me=>{"use strict";me.__esModule=!0;me.universal=me.tag=me.string=me.selector=me.root=me.pseudo=me.nesting=me.id=me.comment=me.combinator=me.className=me.attribute=void 0;var Xm=it($o()),Qm=it(_o()),Km=it(Go()),Jm=it(ko()),Zm=it(Oo()),e0=it(Vo()),t0=it(Mo()),r0=it(vo()),n0=it(xo()),i0=it(Co()),o0=it(Io()),s0=it(Uo());function it(e){return e&&e.__esModule?e:{default:e}}var a0=function(t){return new Xm.default(t)};me.attribute=a0;var u0=function(t){return new Qm.default(t)};me.className=u0;var l0=function(t){return new Km.default(t)};me.combinator=l0;var f0=function(t){return new Jm.default(t)};me.comment=f0;var c0=function(t){return new Zm.default(t)};me.id=c0;var d0=function(t){return new e0.default(t)};me.nesting=d0;var p0=function(t){return new t0.default(t)};me.pseudo=p0;var h0=function(t){return new r0.default(t)};me.root=h0;var m0=function(t){return new n0.default(t)};me.selector=m0;var g0=function(t){return new i0.default(t)};me.string=g0;var b0=function(t){return new o0.default(t)};me.tag=b0;var v0=function(t){return new s0.default(t)};me.universal=v0});var kl=U(re=>{"use strict";re.__esModule=!0;re.isNode=rs;re.isPseudoElement=Tl;re.isPseudoClass=A0;re.isContainer=I0;re.isNamespace=R0;re.isUniversal=re.isTag=re.isString=re.isSelector=re.isRoot=re.isPseudo=re.isNesting=re.isIdentifier=re.isComment=re.isCombinator=re.isClassName=re.isAttribute=void 0;var xe=Ce(),Ge,y0=(Ge={},Ge[xe.ATTRIBUTE]=!0,Ge[xe.CLASS]=!0,Ge[xe.COMBINATOR]=!0,Ge[xe.COMMENT]=!0,Ge[xe.ID]=!0,Ge[xe.NESTING]=!0,Ge[xe.PSEUDO]=!0,Ge[xe.ROOT]=!0,Ge[xe.SELECTOR]=!0,Ge[xe.STRING]=!0,Ge[xe.TAG]=!0,Ge[xe.UNIVERSAL]=!0,Ge);function rs(e){return typeof e=="object"&&y0[e.type]}function ot(e,t){return rs(t)&&t.type===e}var Sl=ot.bind(null,xe.ATTRIBUTE);re.isAttribute=Sl;var x0=ot.bind(null,xe.CLASS);re.isClassName=x0;var w0=ot.bind(null,xe.COMBINATOR);re.isCombinator=w0;var S0=ot.bind(null,xe.COMMENT);re.isComment=S0;var _0=ot.bind(null,xe.ID);re.isIdentifier=_0;var T0=ot.bind(null,xe.NESTING);re.isNesting=T0;var ns=ot.bind(null,xe.PSEUDO);re.isPseudo=ns;var k0=ot.bind(null,xe.ROOT);re.isRoot=k0;var E0=ot.bind(null,xe.SELECTOR);re.isSelector=E0;var O0=ot.bind(null,xe.STRING);re.isString=O0;var _l=ot.bind(null,xe.TAG);re.isTag=_l;var P0=ot.bind(null,xe.UNIVERSAL);re.isUniversal=P0;function Tl(e){return ns(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function A0(e){return ns(e)&&!Tl(e)}function I0(e){return!!(rs(e)&&e.walk)}function R0(e){return Sl(e)||_l(e)}});var El=U(mt=>{"use strict";mt.__esModule=!0;var is=Ce();Object.keys(is).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===is[e]||(mt[e]=is[e])});var os=wl();Object.keys(os).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===os[e]||(mt[e]=os[e])});var ss=kl();Object.keys(ss).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===ss[e]||(mt[e]=ss[e])})});var Al=U((fn,Pl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var C0=N0(xl()),L0=M0(El());function Ol(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ol=function(){return e},e}function M0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ol();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function N0(e){return e&&e.__esModule?e:{default:e}}var as=function(t){return new C0.default(t)};Object.assign(as,L0);delete as.__esModule;var W0=as;fn.default=W0;Pl.exports=fn.default});var Il=U(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});Object.defineProperty(us,"default",{enumerable:!0,get:()=>D0});function D0(e){return e.replace(/\\,/g,"\\2c ")}});var Cl=U((Gx,Rl)=>{"use strict";Rl.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var fs=U(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});function F0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}F0(ls,{parseColor:()=>G0,formatColor:()=>j0});var Ll=B0(Cl());function B0(e){return e&&e.__esModule?e:{default:e}}var $0=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,q0=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ht=/(?:\d+|\d*\.\d+)%?/,di=/(?:\s*,\s*|\s+)/,Ml=/\s*[,/]\s*/,Yt=/var\(--(?:[^ )]*?)\)/,U0=new RegExp(`^(rgb)a?\\(\\s*(${Ht.source}|${Yt.source})(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${Ml.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`),z0=new RegExp(`^(hsl)a?\\(\\s*((?:${Ht.source})(?:deg|rad|grad|turn)?|${Yt.source})(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${Ml.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`);function G0(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Ll.default)return{mode:"rgb",color:Ll.default[e].map(u=>u.toString())};let i=e.replace(q0,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match($0);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let s=(o=e.match(U0))!==null&&o!==void 0?o:e.match(z0);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function j0({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var ds=U(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});function V0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}V0(cs,{withAlphaValue:()=>H0,default:()=>Y0});var pi=fs();function H0(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,pi.parseColor)(e,{loose:!0});return r===null?n:(0,pi.formatColor)({...r,alpha:t})}function Y0({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,pi.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,pi.formatColor)({...i,alpha:`var(${n})`})]))}}});var Bl=U(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});function X0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}X0(ps,{pattern:()=>K0,withoutCapturing:()=>Wl,any:()=>Dl,optional:()=>J0,zeroOrMore:()=>Z0,nestedBrackets:()=>Fl,escape:()=>ir});var Nl=/[\\^$.*+?()[\]{}|]/g,Q0=RegExp(Nl.source);function cn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function K0(e){return new RegExp(cn(e),"g")}function Wl(e){return new RegExp(`(?:${cn(e)})`,"g")}function Dl(e){return`(?:${e.map(cn).join("|")})`}function J0(e){return`(?:${cn(e)})?`}function Z0(e){return`(?:${cn(e)})*`}function Fl(e,t,n=1){return Wl([ir(e),/[^\s]*/,n===1?`[^${ir(e)}${ir(t)}s]*`:Dl([`[^${ir(e)}${ir(t)}s]*`,Fl(e,t,n-1)]),/[^\s]*/,ir(t)])}function ir(e){return e&&Q0.test(e)?e.replace(Nl,"\\$&"):e||""}});var ql=U(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});Object.defineProperty(hs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>rg});var eg=tg(Bl());function $l(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return($l=function(r){return r?n:t})(e)}function tg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=$l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*rg(e,t){let n=new RegExp(`[(){}\\[\\]${eg.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(n)){let l=f[0]===t[s],p=s===u-1,h=l&&p;f[0]==="("&&r++,f[0]===")"&&r--,f[0]==="["&&r++,f[0]==="]"&&r--,f[0]==="{"&&r++,f[0]==="}"&&r--,l&&r===0&&(a===0&&(a=f.index),s++),h&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var zl=U(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});function ng(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ng(ms,{parseBoxShadowValue:()=>ag,formatBoxShadowValue:()=>ug});var ig=ql(),og=new Set(["inset","inherit","initial","revert","unset"]),sg=/\ +(?![^(]*\))/g,Ul=/^-?(\d+|\.\d+)(.*?)$/g;function ag(e){return Array.from((0,ig.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(sg),s=new Set;for(let a of o)Ul.lastIndex=0,!s.has("KEYWORD")&&og.has(a)?(i.keyword=a,s.add("KEYWORD")):Ul.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function ug(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var Ql=U(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});function lg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}lg(bs,{normalize:()=>Xt,url:()=>Vl,number:()=>dg,percentage:()=>Hl,length:()=>Yl,lineWidth:()=>mg,shadow:()=>gg,color:()=>bg,image:()=>vg,gradient:()=>Xl,position:()=>wg,familyName:()=>Sg,genericName:()=>Tg,absoluteSize:()=>Eg,relativeSize:()=>Pg});var fg=fs(),cg=zl(),gs=["min","max","clamp","calc"],jl=/,(?![^(]*\))/g,hi=/_(?![^(]*\))/g;function Xt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Xt(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Vl(e){return e.startsWith("url(")}function dg(e){return!isNaN(Number(e))||gs.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Hl(e){return e.split(hi).every(t=>/%$/g.test(t)||gs.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var pg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Gl=`(?:${pg.join("|")})`;function Yl(e){return e.split(hi).every(t=>t==="0"||new RegExp(`${Gl}$`).test(t)||gs.some(n=>new RegExp(`^${n}\\(.+?${Gl}`).test(t)))}var hg=new Set(["thin","medium","thick"]);function mg(e){return hg.has(e)}function gg(e){let t=(0,cg.parseBoxShadowValue)(Xt(e));for(let n of t)if(!n.valid)return!1;return!0}function bg(e){let t=0;return e.split(hi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:(0,fg.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function vg(e){let t=0;return e.split(jl).every(r=>(r=Xt(r),r.startsWith("var(")?!0:Vl(r)||Xl(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var yg=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Xl(e){e=Xt(e);for(let t of yg)if(e.startsWith(`${t}(`))return!0;return!1}var xg=new Set(["center","top","right","bottom","left"]);function wg(e){let t=0;return e.split(hi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:xg.has(r)||Yl(r)||Hl(r)?(t++,!0):!1))?t>0:!1}function Sg(e){let t=0;return e.split(jl).every(r=>(r=Xt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var _g=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Tg(e){return _g.has(e)}var kg=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Eg(e){return kg.has(e)}var Og=new Set(["larger","smaller"]);function Pg(e){return Og.has(e)}});var of=U(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});function Ag(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Ag(xs,{updateAllClasses:()=>Cg,asValue:()=>pn,parseColorFormat:()=>vs,asColor:()=>tf,asLookupValue:()=>rf,coerceValue:()=>Wg});var Ig=ys(Al()),Rg=ys(Il()),Kl=ds(),je=Ql(),Jl=ys(no());function ys(e){return e&&e.__esModule?e:{default:e}}function Cg(e,t){return(0,Ig.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Rg.default)(o.raws.value))})}).processSync(e)}function ef(e,t){if(!dn(e))return;let n=e.slice(1,-1);if(t(n))return(0,je.normalize)(n)}function Lg(e,t={},n){let r=t[e];if(r!==void 0)return(0,Jl.default)(r);if(dn(e)){let i=ef(e,n);return i===void 0?void 0:(0,Jl.default)(i)}}function pn(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Lg(e.slice(1),t.values,n):ef(e,n)}function dn(e){return e.startsWith("[")&&e.endsWith("]")}function Mg(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function vs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function tf(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return vs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Mg(e);if(s!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&l!==void 0?l:dn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=vs(p),dn(s)?(0,Kl.withAlphaValue)(p,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[s])===void 0?void 0:(0,Kl.withAlphaValue)(p,n.theme.opacity[s]))}return pn(e,t,{validate:je.color})}function rf(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function st(e){return(t,n)=>pn(t,n,{validate:e})}var nf={any:pn,color:tf,url:st(je.url),image:st(je.image),length:st(je.length),percentage:st(je.percentage),position:st(je.position),lookup:rf,"generic-name":st(je.genericName),"family-name":st(je.familyName),number:st(je.number),"line-width":st(je.lineWidth),"absolute-size":st(je.absoluteSize),"relative-size":st(je.relativeSize),shadow:st(je.shadow)},Zl=Object.keys(nf);function Ng(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Wg(e,t,n,r){if(dn(t)){let i=t.slice(1,-1),[o,s]=Ng(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Zl.includes(o))return[];if(s.length>0&&Zl.includes(o))return[pn(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=nf[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var sf=U(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});Object.defineProperty(ws,"default",{enumerable:!0,get:()=>Dg});function Dg(e){return typeof e=="function"?e({}):e}});var cf=U(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});Object.defineProperty(_s,"default",{enumerable:!0,get:()=>nb});var Fg=or(no()),Bg=or(pu()),$g=or(hu()),qg=or(so()),Ug=or(gu()),lf=bu(),af=vu(),zg=xu(),Gg=or(wu()),jg=Su(),Vg=of(),Hg=ds(),Yg=or(sf());function or(e){return e&&e.__esModule?e:{default:e}}function Sr(e){return typeof e=="function"}function hn(e){return typeof e=="object"&&e!==null}function mn(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?hn(e[i])&&hn(r[i])?e[i]=mn(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var Ss={colors:Ug.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Fg.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function Xg(e,...t){return Sr(e)?e(...t):e}function Qg(e){return e.reduce((t,{extend:n})=>mn(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Kg(e){return{...e.reduce((t,n)=>(0,lf.defaults)(t,n),{}),extend:Qg(e)}}function uf(e,t){if(Array.isArray(e)&&hn(e[0]))return e.concat(t);if(Array.isArray(t)&&hn(t[0])&&hn(e))return[e,...t];if(Array.isArray(t))return t}function Jg({extend:e,...t}){return mn(t,e,(n,r)=>!Sr(n)&&!r.some(Sr)?mn({},n,...r,uf):(i,o)=>mn({},...[n,...r].map(s=>Xg(s,i,o)),uf))}function*Zg(e){let t=(0,af.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,af.toPath)(i);s.alpha=o,yield s}}function eb(e){let t=(n,r)=>{for(let i of Zg(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Sr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Ss):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Vg.parseColorFormat)(s);return(0,Hg.withAlphaValue)(a,i.alpha,(0,Yg.default)(a))}return(0,Gg.default)(s)?(0,jg.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...Ss}),Object.keys(e).reduce((n,r)=>(n[r]=Sr(e[r])?e[r](t,Ss):e[r],n),{})}function ff(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...ff([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function tb(e){return[...e].reduceRight((n,r)=>Sr(r)?r({corePlugins:n}):(0,$g.default)(r,n),Bg.default)}function rb(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function nb(e){let t=[...ff(e),{prefix:"",important:!1,separator:":",variantOrder:qg.default.variantOrder}];var n,r;return(0,zg.normalizeConfig)((0,lf.defaults)({theme:eb(Jg(Kg(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:tb(t.map(i=>i.corePlugins)),plugins:rb(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var df={};Rn(df,{default:()=>ib});var ib,pf=Zt(()=>{ib={yellow:e=>e}});var bf=U(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});function ob(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ob(Ts,{flagEnabled:()=>ub,issueFlagNotices:()=>lb,default:()=>fb});var sb=gf((pf(),Cn(df))),ab=gf((Zn(),Cn(Jn)));function gf(e){return e&&e.__esModule?e:{default:e}}var hf={optimizeUniversalDefaults:!1},gn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function ub(e,t){if(gn.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:hf[t])!==null&&i!==void 0?i:!1)}if(gn.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:hf[t])!==null&&a!==void 0?a:!1)}return!1}function mf(e){if(e.experimental==="all")return gn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>gn.experimental.includes(n)&&e.experimental[n])}function lb(e){if(process.env.JEST_WORKER_ID===void 0&&mf(e).length>0){let t=mf(e).map(n=>sb.default.yellow(n)).join(", ");ab.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var fb=gn});var yf=U(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});Object.defineProperty(ks,"default",{enumerable:!0,get:()=>vf});var cb=pb(so()),db=bf();function pb(e){return e&&e.__esModule?e:{default:e}}function vf(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[cb.default]).slice().reverse().flatMap(o=>vf(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,db.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var wf=U(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Object.defineProperty(Es,"default",{enumerable:!0,get:()=>gb});var hb=xf(cf()),mb=xf(yf());function xf(e){return e&&e.__esModule?e:{default:e}}function gb(...e){let[,...t]=(0,mb.default)(e[0]);return(0,hb.default)([...e,...t])}});var _f=U((n1,Sf)=>{var Os=wf();Sf.exports=(Os.__esModule?Os:{default:Os}).default});import yc from"linebreak";var Or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uc=Or((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),lc=Or((e,t)=>{t.exports=["deg","grad","rad","turn"]}),fc=Or((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),cc=Or((e,t)=>{t.exports=["Hz","kHz"]}),dc=Or((e,t)=>{t.exports=["s","ms"]}),pc=uc(),Zs=lc(),ea=fc(),ta=cc(),ra=dc();function xi(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(hc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=yi(e),this.unit="%";return}var t=gc(e);if(!t){this.type="number",this.value=yi(e);return}this.type=vc(t),this.value=yi(e.substr(0,e.length-t.length)),this.unit=t}xi.prototype.valueOf=function(){return this.value};xi.prototype.toString=function(){return this.value+(this.unit||"")};function Lt(e){return new xi(e)}function hc(e){var t=e.match(/\./g);return t?t.length:0}function yi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var mc=[].concat(Zs,ta,pc,ea,ra);function gc(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&mc.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var bc=Object.assign(Ln(Zs,"angle"),Ln(ta,"frequency"),Ln(ea,"resolution"),Ln(ra,"time"));function Ln(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function vc(e){return bc[e]||"length"}function dr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function na(e){return/^class\s/.test(e.toString())}function _i(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function ia(e){return typeof e=="function"||_i(e)}function oa(e){return"dangerouslySetInnerHTML"in e}function sa(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function X(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new Lt(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Ti(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function Ti(e){let t=new Lt(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Pr(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Fe(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var wi,Si,aa=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function De(e,t,n){if(!wi||!Si){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");wi=new Intl.Segmenter(n,{granularity:"word"}),Si=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...Si.segment(e)].map(r=>r.segment);{let r=[...wi.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function M(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function ua(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function pr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Mn(e){return typeof e=="string"}function la(e){return typeof e=="number"}function fa(e){return typeof e>"u"}function Mt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function zt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function ca(e,t){if(t==="break-all")return{words:De(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:De(e,"word"),requiredBreaks:[]};let n=new yc(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var da=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Nn(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}function Pc(e){return Promise.resolve().then(()=>(Mi(),Li)).then(t=>t.init(e))}function Gt(){return Promise.resolve().then(()=>(Mi(),Li)).then(e=>e.getYoga())}var Ac="image/avif",Ic="image/webp",Fn="image/apng",Bn="image/png",$n="image/jpeg",qn="image/gif",Ni="image/svg+xml";function Ea(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function Oa(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Pa(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var yt=ua(100),Ir=new Map,Rc=[Bn,Fn,$n,qn,Ni];function Cc(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Lc(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function Ta(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?pr(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function ka(e){let t,n=Mc(new Uint8Array(e));switch(n){case Bn:case Fn:t=Pa(e);break;case qn:t=Oa(e);break;case $n:t=Ea(e);break}if(!Rc.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${Cc(e)}`,t]}async function br(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=ka(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Ni){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),f=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,l=Ta(e,u);return yt.set(e,[f,...l]),[f,...l]}else if(s==="base64"){let u,f=Lc(a);switch(o){case Bn:case Fn:u=Pa(f);break;case qn:u=Oa(f);break;case $n:u=Ea(f);break}return yt.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),yt.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Ir.has(e))return Ir.get(e);let t=yt.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=Ta(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=ka(i);return[o,...s]}).then(i=>(yt.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),yt.set(n,[]),[]));return Ir.set(n,r),r}function Mc(e){return[255,216,255].every((t,n)=>e[n]===t)?$n:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?Nc(e)?Fn:Bn:[71,73,70,56].every((t,n)=>e[n]===t)?qn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Ic:[60,63,120,109,108].every((t,n)=>e[n]===t)?Ni:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Ac:null}function Nc(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var Wi={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Wc=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Di(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Di(f,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([f,l])=>(typeof l=="string"&&l.toLowerCase()==="currentcolor"&&(l=s),f==="href"&&n==="image"?` ${Wi[f]||f}="${yt.get(l)[0]}"`:` ${Wi[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${da(f)}:${l}`).join(";")}"`:"";return`<${n}${a}${u}>${Di(r,s)}</${n}>`}async function Aa(e){let t=new Set,n=r=>{if(r&&dr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src)));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>br(r)))}async function Ia(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...f}=e.props||{};n||=r,f.xmlns="http://www.w3.org/2000/svg";let l=(a==null?void 0:a.color)||t,p=pr(n),h=p?p[3]/p[2]:null;return i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,f.width=i,f.height=o,n&&(f.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([g,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Wi[g]||g}="${b}"`)).join("")}>${Di(u,l)}</svg>`.replace(Wc,encodeURIComponent)}`}var rt="flex",Ra={p:{display:rt,marginTop:"1em",marginBottom:"1em"},div:{display:rt},blockquote:{display:rt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:rt,textAlign:"center"},hr:{display:rt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:rt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:rt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:rt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:rt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:rt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:rt,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:rt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Dc=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Fi(e){let t={};for(let n in e)Dc.has(n)&&(t[n]=e[n]);return t}import{getPropertyName as qc,getStylesForProperty as jt}from"css-to-react-native";import{parseElementStyle as Uc}from"css-background-parser";import{parse as zc}from"css-box-shadow";import Gc from"parse-css-color";import Fc from"postcss-value-parser";function Bc(e,t){try{let n=new Lt(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Bi(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=Bc(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function $i(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=Fc(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Bi(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Bi(n[0],t,!0),...Bi(n[1],t,!1)}):{}}import{getPropertyName as $c}from"css-to-react-native";function Rr(e,t){let n=$c(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function Ca(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Rr(e,"position")||"0% 0%",size:Rr(e,"size")||"100% 100%",repeat:Rr(e,"repeat")||"repeat",origin:Rr(e,"origin")||"border-box",clip:Rr(e,"origin")||"border-box"};return Nn(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var jc=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Vc=new Set(["lineHeight"]);function Hc(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function er(e,t){let n=Number(t);return isNaN(n)?t:jc.has(e)?Vc.has(e)?n:String(t):n+"px"}function Yc(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:er(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=jt(e,r,!0),s=jt(e,i,!0);for(let a in o)s[a]=er(e,o[a])+" "+er(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=jt("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:er(e+"Width",r.borderWidth),Style:Fe(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?zc(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=jt("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?jt("backgroundImage",t,!0):jt("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Nn(t);for(let o of i){let s=jt("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:er(e,r[0]),WebkitTextStrokeColor:er(e,r[1])}}if(e==="textDecorationSkipInk"){let r=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(r))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:r}}}function La(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Ma=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Wa(e){if(typeof e=="string"&&Ma.test(e.trim()))return e.trim().replace(Ma,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Wa(e[t]);return e}return e}function Un(e,t){let n={};if(e){let i=Qc(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=qc(o),a=Jc(e[o],i);try{let u=Yc(s,a,i)||Hc(s,jt(s,er(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
5
- `+La(s):`
6
- in CSS rule \`${s}: ${a}\`.${La(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=Uc(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=Ca(n));let r=Xc(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=$i(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=X(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=X(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=Wa(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],f=a[u],l=typeof f=="string"?X(f,r,r,t)??f:f;a[u]=l}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>X(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:X(a,r,0,t,!1),width:X(u,r,0,t,!1)}))}}return n}function Xc(e,t){if(typeof e=="number")return e;try{let n=new Lt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function Na(e){if(e.startsWith("hsl")){let t=Gc(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Qc(e,t){return e&&e.toLowerCase()!=="currentcolor"?Na(e):Na(t)}function Kc(e,t){return e.replace(/currentcolor/gi,t)}function Jc(e,t){return Mn(e)&&(e=Kc(e,t)),e}async function qi(e,t,n,r,i){let o=await Gt(),s={...n,...Un(Ra[t],n),...Un(r,n)};if(t==="img"){let[a,u,f]=await br(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),h=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),g=s.width||i.width,b=s.height||i.height,y=typeof g=="number"&&typeof b=="number";y&&(g-=p,b-=h),g===void 0&&b===void 0?(g="100%",e.setAspectRatio(1/l)):g===void 0?typeof b=="number"?g=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof g=="number"?b=g*l:e.setAspectRatio(1/l)),s.width=y?g+p:g,s.height=y?b+h:b,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=pr(a),f=u?u[3]/u[2]:null,{width:l,height:p}=i;typeof l>"u"&&p?f==null?l=0:typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=X(p,n.fontSize,1,n),l=p/f):typeof p>"u"&&l?f==null?l=0:typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=X(l,n.fontSize,1,n),p=l*f):(typeof l<"u"&&(l=X(l,n.fontSize,1,n)||l),typeof p<"u"&&(p=X(p,n.fontSize,1,n)||p),l||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&l&&(s.width=l),!s.height&&p&&(s.height=p)}return e.setDisplay(Fe(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(Fe(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(Fe(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(Fe(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(Fe(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(Fe(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(Fe(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(zt(s.flexBasis,"flexBasis")),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(Mt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Mt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Mt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Mt(s.minWidth,"minWidth")),e.setOverflow(Fe(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,zt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,zt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,zt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,zt(s.marginRight||0)),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setBoxSizing(Fe(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Fe(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Mt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Mt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Mt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Mt(s.right,"right")),typeof s.height<"u"?e.setHeight(zt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(zt(s.width,"width")):e.setWidthAuto(),[s,Fi(s)]}import Fa from"escape-html";var Da=[1,0,0,1,0,0];function Zc(e,t,n){let r=[...Da];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Da];switch(o){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=Pr(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Cr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||Zc(i,n,r);let u=i;if(o)a=u;else{let f=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,l=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,p=e+f,h=t+l;a=Pr([1,0,0,1,p,h],Pr(u,[1,0,0,1,-p,-h])),u.__parent&&(a=Pr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function Ba({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Cr({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Ui({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:h,decorationShape:g},b){let y="";if(p&&(y=M("rect",{x:r,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let S={href:f,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("image",{...S,opacity:u!==1?u:void 0})+(g||"")+(n?"</g>":"")+y,""]}let k={x:r,y:i,width:o,height:s,"font-weight":b.fontWeight,"font-style":b.fontStyle,"font-size":b.fontSize,"font-family":b.fontFamily,"letter-spacing":b.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0,"stroke-width":b.WebkitTextStrokeWidth?`${b.WebkitTextStrokeWidth}px`:void 0,stroke:b.WebkitTextStrokeWidth?b.WebkitTextStrokeColor:void 0,"stroke-linejoin":b.WebkitTextStrokeWidth?"round":void 0,"paint-order":b.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("text",{...k,fill:b.color,opacity:u!==1?u:void 0},Fa(t))+(g||"")+(n?"</g>":"")+y,h?M("text",k,Fa(t)):""]}function ed(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var zn=1.1;function $a({id:e,width:t,height:n},r,i=!1){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let o=r.shadowColor.length,s="",a="",u=0,f=t,l=0,p=n;for(let h=0;h<o;h++){let g=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-g,u),f=Math.max(r.shadowOffset[h].width+g+t,f),l=Math.min(r.shadowOffset[h].height-g,l),p=Math.max(r.shadowOffset[h].height+g+n,p),i){let b=`satori_s-${e}-result-${h}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[h]/2,result:`${b}-blur`})+M("feOffset",{in:`${b}-blur`,dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,result:`${b}-offset`})+M("feFlood",{"flood-color":r.shadowColor[h],"flood-opacity":1,result:`${b}-color`})+M("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=M("feDropShadow",{dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,stdDeviation:r.shadowRadius[h]/2,"flood-color":r.shadowColor[h],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${h}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*zn).toFixed(2)+"%",y:(l/n*100*zn).toFixed(2)+"%",width:((f-u)/t*100*zn).toFixed(2)+"%",height:((p-l)/n*100*zn).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function qa({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let f="",l=o.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),h=Math.min(-p-(l.inset?l.offsetX:0),0),g=Math.max(p+e-(l.inset?l.offsetX:0),e),b=Math.min(-p-(l.inset?l.offsetY:0),0),y=Math.max(p+t-(l.inset?l.offsetY:0),t),k=`satori_s-${i}-${u}`,S=`satori_ms-${i}-${u}`,I=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=M("mask",{id:S,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+I.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=I.replace(/d="([^"]+)"/,(T,O)=>'d="'+ed(O,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(T,O)=>'x="'+(parseFloat(O)+l.offsetX)+'"').replace(/y="([^"]+)"/,(T,O)=>'y="'+(parseFloat(O)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:S+"-neg",maskUnits:"userSpaceOnUse"},w.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(w=M("g",{mask:`url(#${S}-neg)`},w)),f+=M("defs",{},M("filter",{id:k,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(g-h)/e*100}%`,height:`${(y-b)/t*100}%`},M("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+M("g",{mask:`url(#${S})`,filter:`url(#${k})`,opacity:r},w),l.inset?a+=f:s+=f}return[s,a]}function td(e,t,n,r,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of n){if(p.y2<o+s||p.y1>r+s)continue;let h=Math.max(e,p.x1-a),g=Math.min(t,p.x2+a);if(h>=g)continue;if(u.length===0){u.push([h,g]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],g):u.push([h,g])}if(!u.length)return[[e,t]];let f=[],l=e;for(let[p,h]of u)if(p>l&&f.push([l,p]),l=Math.max(l,h),l>=t)break;return l<t&&f.push([l,t]),f}function zi({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:f,textDecorationLine:l,textDecorationSkipInk:p,fontSize:h,color:g}=a;if(!l||l==="none")return"";let b=Math.max(1,h*.1),y=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,k=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,S=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),I=n+r,w=S?td(t,t+e,s,y,b,I):[[t,t+e]],T=f==="double"?w.map(([O,C])=>M("line",{x1:O,y1:y+b+1,x2:C,y2:y+b+1,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([O,C])=>M("line",{x1:O,y1:y,x2:C,y2:y,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+T+(i?"</g>":"")}function Gi(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var tr=Gi("U+0020"),ji=Gi("U+0009"),vr=Gi("U+2026");function Ua(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(f){if(o.has(f))return o.get(f);let l=e.measure(f,{fontSize:r,letterSpacing:i});return o.set(f,l),l}function a(f){let l=0;for(let p of f)t(p)?l+=r:l+=s(p);return l}function u(f){return a(De(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function za(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=rd(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=od(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=id(s,o),[h,g]=nd(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:g}}function rd(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=De(e,"word",n).map(r=>De(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function nd(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,f=vr]=sd(r);if(u)return[u,f]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&la(i)&&i>0?[i,vr]:n==="ellipsis"&&s==="hidden"&&!t?[1,vr]:[1/0]}function id(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=ca(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function od(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,tr)),r&&(e=e.replace(/([ ]|\t)+/g,tr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function sd(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}import ja from"parse-css-color";var ad=new Set([ji]);function ud(e){return ad.has(e)}function Vi(e){if(e==="transparent")return!0;let t=ja(e);return t?t.alpha===0:!1}function Ga(e){if(!e)return!1;let t=ja(e);if(!t)return!1;let[n,r,i,o]=t.values;return n===255&&r===255&&i===255&&(o===void 0||o===1)}async function*Hi(e,t){let n=await Gt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:g}=t,{textAlign:b,lineHeight:y,textWrap:k,fontSize:S,filter:I,tabSize:w=8,letterSpacing:T,_inheritedBackgroundClipTextPath:O,_inheritedBackgroundClipTextHasBackground:C,flexShrink:D}=r,{words:q,requiredBreaks:Y,allowSoftWrap:ue,allowBreakWord:_e,processedContent:ce,shouldCollapseTabsAndSpaces:oe,lineLimit:ve,blockEllipsis:de}=za(e,r,h),le=ld(n,b);o.insertChild(le,o.getChildCount()),fa(D)&&o.setFlexShrink(1);let ee=s.getEngine(S,y,r,h),Le=g?De(ce,"grapheme").filter(H=>!ud(H)&&!ee.has(H)):[];yield Le.map(H=>({word:H,locale:h})),Le.length&&(ee=s.getEngine(S,y,r,h));function Oe(H){return!!(p&&p[H])}let{measureGrapheme:Te,measureGraphemeArray:_t,measureText:Me}=Ua(ee,Oe,{fontSize:S,letterSpacing:T}),Je=Mn(w)?X(w,S,1,r):Te(tr)*w,Pe=(H,j)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:se,tabCount:Q}=fd(H),ge=0;if(Q>0){let pe=H.slice(0,se),ie=H.slice(se+Q),te=Me(pe),Ue=te+j;ge=(Je===0?te:(Math.floor(Ue/Je)+Q)*Je)+Me(ie)}else ge=Me(H);let J=H.trimEnd()===H?ge:Me(H.trimEnd());return{originWidth:ge,endingSpacesWidth:ge-J,text:H}},G=[],Ie=[],Re=[],V=[],ut=[];function Tt(H){let j=0,se=0,Q=-1,ge=0,J=0,pe=0,ie=0;G=[],Re=[0],V=[],ut=[];let te=0,Ue=0;for(;te<q.length&&j<ve;){let K=q[te],vt=Y[te],Ne=0,{originWidth:Ye,endingSpacesWidth:et,text:fr}=Pe(K,J);K=fr,Ne=Ye;let we=et;vt&&pe===0&&(pe=ee.height(K));let Ut=b==="justify",be=te&&J+Ne>H+we&&ue;if(_e&&Ne>H&&(!J||be||vt)){let We=De(K,"grapheme");q.splice(te,1,...We),J>0&&(G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=0,pe=0,ie=0,Re.push(1),Q=-1),Ue=we;continue}if(vt||be)oe&&K===tr&&(Ne=0),G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=Ne,pe=Ne?Math.round(ee.height(K)):0,ie=Ne?Math.round(ee.baseline(K)):0,Re.push(1),Q=-1,vt||(se=Math.max(se,H));else{J+=Ne;let We=Math.round(ee.height(K));We>pe&&(pe=We,ie=Math.round(ee.baseline(K))),Ut&&Re[Re.length-1]++}Ut&&Q++,se=Math.max(se,J);let Xe=J-Ne;if(Ne===0)ut.push({y:ge,x:Xe,width:0,line:j,lineIndex:Q,isImage:!1});else{let We=De(K,"word");for(let Qe=0;Qe<We.length;Qe++){let It=We[Qe],ze=0,tt=!1;Oe(It)?(ze=S,tt=!0):ze=Te(It),V.push(It),ut.push({y:ge,x:Xe,width:ze,line:j,lineIndex:Q,isImage:tt}),Xe+=ze}}te++,Ue=we}return J&&(j<ve&&(ge+=pe),j++,G.push(J),Ie.push(ie)),{width:se,height:ge}}let $t={width:0,height:0};le.setMeasureFunc(H=>{let{width:j,height:se}=Tt(H);if(k==="balance"){let ge=j/2,J=j,pe=j;for(;ge+1<J;){pe=(ge+J)/2;let{height:te}=Tt(pe);te>se?ge=pe:J=pe}Tt(J);let ie=Math.ceil(J);return $t={width:ie,height:se},{width:ie,height:se}}if(k==="pretty"&&G[G.length-1]<j/3){let pe=j*.9,ie=Tt(pe);if(ie.height<=se*1.3)return $t={width:j,height:ie.height},{width:j,height:ie.height}}let Q=Math.ceil(j);return $t={width:Q,height:se},{width:Q,height:se}});let[Sn,Ee]=yield,gt="",qt="",Be=i._inheritedClipPathId,Ze=i._inheritedMaskId,{left:ur,top:bt,width:lr,height:_n}=le.getComputedLayout(),kt=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),lt=Sn+ur,ft=Ee+bt,{matrix:He,opacity:Kt}=Ba({left:ur,top:bt,width:lr,height:_n,isInheritingTransform:u},r),ct="";if(r.textShadowOffset){let{textShadowColor:H,textShadowOffset:j,textShadowRadius:se}=r;ct=$a({width:$t.width,height:$t.height,id:a},{shadowColor:H,shadowOffset:j,shadowRadius:se},Vi(r.color)||C&&Ga(r.color)),ct=M("defs",{},ct)}let Et="",Ot="",Jt="",dt=-1,$e={},Pt={},qe=null,At=0;for(let H=0;H<V.length;H++){let j=ut[H],se=ut[H+1];if(!j)continue;let Q=V[H],ge=null,J=!1,pe=p?p[Q]:null,ie=j.y,te=j.x,Ue=j.width,K=j.line,vt=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(K===dt)continue;let Ne=!1;if(G.length>1){let be=lr-G[K];if(b==="right"||b==="end")te+=be;else if(b==="center")te+=be/2;else if(b==="justify"&&K<G.length-1){let Se=Re[K],Xe=Se>1?be/(Se-1):0;te+=Xe*j.lineIndex,Ne=!0}te=Math.round(te)}let Ye=Ie[K],et=ee.baseline(Q),fr=ee.height(Q),we=Ye-et,Ut=be=>!vt||r.textDecorationLine!=="underline"?void 0:{underlineY:ft+be+we+et+et*.1,strokeWidth:Math.max(1,S*.1)};if($e[K]||($e[K]={left:te,top:ft+ie+we,ascender:et,width:Ne?lr:G[K]}),ve!==1/0){let It=function(ze,tt){let kr=De(tt,"grapheme",h),cr="",Tn=0;for(let kn of kr){let En=ze+_t([cr+kn]);if(cr&&En+Se>kt)break;cr+=kn,Tn=En}return{subset:cr,resolvedWidth:Tn}},be=de,Se=Te(de);Se>kt&&(be=vr,Se=Te(be));let Xe=Te(tr),We=K<G.length-1;if(K+1===ve&&(We||G[K]>kt)){if(te+Ue+Se+Xe>kt){let{subset:ze,resolvedWidth:tt}=It(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else if(se&&se.line!==K)if(b==="center"){let{subset:ze,resolvedWidth:tt}=It(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else{let ze=V[H+1],{subset:tt,resolvedWidth:kr}=It(Ue+te,ze);Q=Q+tt+be,dt=K,$e[K].width=Math.max(0,kr-$e[K].left),J=!0}}}if(pe)ie+=0;else if(l){if(!Q.includes(ji)&&!aa.includes(Q)&&V[H+1]&&se&&!se.isImage&&ie===se.y&&!J){qe===null&&(At=te),qe=qe===null?Q:qe+Q;continue}let be=qe===null?Q:qe+Q,Se=qe===null?te:At,Xe=j.width+te-Se,We=Ut(ie),Qe=ee.getSVG(be.replace(/(\t)+/g,""),{fontSize:S,left:lt+Se,top:ft+ie+et+we,letterSpacing:T},We);ge=Qe.path,vt&&Qe.boxes&&Qe.boxes.length&&(Pt[K]||(Pt[K]=[])).push(...Qe.boxes),qe=null,f&&(Jt+=M("rect",{x:lt+Se,y:ft+ie+we,width:Xe,height:fr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0})+M("line",{x1:lt+te,x2:lt+te+j.width,y1:ft+ie+we+et,y2:ft+ie+we+et,stroke:"#14c000","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else if(ie+=et+we,vt&&!pe){let be=Ut(ie),Se=ee.getSVG(Q.replace(/(\t)+/g,""),{fontSize:S,left:lt+te,top:ft+ie,letterSpacing:T},be);Se.boxes&&Se.boxes.length&&(Pt[K]||(Pt[K]=[])).push(...Se.boxes)}if(ge!==null)Ot+=ge+" ";else{let[be,Se]=Ui({content:Q,filter:ct,id:a,left:lt+te,top:ft+ie,width:Ue,height:fr,matrix:He,opacity:Kt,image:pe,clipPathId:Be,debug:f,shape:!!O},r);gt+=be,qt+=Se}if(J)break}if(r.textDecorationLine&&(Et=Object.entries($e).map(([H,j])=>{if(!j)return"";let se=Pt[H]||[];return zi({left:lt+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Be,matrix:He,glyphBoxes:se},r)}).join("")),Ot){let H=(!Vi(r.color)||ct)&&Kt!==0?`<g ${Ze?`mask="url(#${Ze})"`:""} ${Be?`clip-path="url(#${Be})"`:""}>`+M("path",{fill:ct&&(Vi(r.color)||C&&Ga(r.color))?"black":r.color,d:Ot,transform:He||void 0,opacity:Kt!==1?Kt:void 0,style:I?`filter:${I}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";O&&(qt=M("path",{d:Ot,transform:He||void 0})),gt+=(ct?ct+M("g",{filter:`url(#satori_s-${a})`},H+Et):H+Et)+Jt}else Et&&(gt+=ct?M("g",{filter:`url(#satori_s-${a})`},Et):Et);return qt&&(r._inheritedBackgroundClipTextPath.value+=qt),gt}function ld(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(Fe(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function fd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as dd}from"css-gradient-parser";import cd from"parse-css-color";function Gn(e,t,n,r,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&r?+s.offset.value:100;for(let p of t){let{color:h}=p;if(!o.length&&(o.push({offset:0,color:h}),!p.offset||p.offset.value==="0"))continue;let g=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(X(`${p.offset.value}${p.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:g,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let f=0,l=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(l<p&&(l=p);typeof o[l].offset>"u";)l++;o[p].offset=(o[l].offset-o[f].offset)/(l-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let h=cd(p.color);return h?h.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${h.alpha})`}:p}):o}function Va({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){let l=dd(o),[p,h]=s,g=o.startsWith("repeating"),b,y,k;if(l.orientation.type==="directional")b=hd(l.orientation.value),y=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*h,2));else if(l.orientation.type==="angular"){let{length:O,...C}=md(Ti(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=O,b=C}k=g?gd(l.stops,y,b,u):b;let S=Gn(g?pd(l.stops,y):y,l.stops,u,g,f),I=`satori_bi${e}`,w=`satori_pattern_${e}`,T=M("pattern",{id:w,x:a[0]/t,y:a[1]/n,width:r?p/t:"1",height:i?h/n:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:I,...k,spreadMethod:g?"repeat":"pad"},S.map(O=>M("stop",{offset:(O.offset??0)*100+"%","stop-color":O.color})).join(""))+M("rect",{x:0,y:0,width:p,height:h,fill:`url(#${I})`}));return[w,T]}function pd(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function hd(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function md(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,f,l,p,h=g=>{if(g===0){i=0,o=n,s=0,a=0,u=n;return}else if(g===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(g>0&&g<Math.PI/2){i=(r*t/2/Math.tan(g)-n/2)/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),l=(t/2/Math.tan(g)-n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l+n,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else if(g>Math.PI/2&&g<Math.PI){i=(n/2+r*t/2/Math.tan(g))/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),l=(t/2/Math.tan(g)+n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else g>=Math.PI&&(h(g-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return h(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function gd(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,f=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,l=(o-i)*u+i,p=(a-s)*u+s,h=(o-i)*f+i,g=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:g}}import{parseRadialGradient as bd}from"css-gradient-parser";function Ya({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){var oe;let{shape:l,stops:p,position:h,size:g,repeating:b}=bd(o),[y,k]=s,S=y/2,I=k/2,w=yd(h.x,h.y,y,k,u.fontSize,u);S=w.x,I=w.y;let T=vd(t,p,b,u),O=Gn(T,p,u,b,f),C=`satori_radial_${e}`,D=`satori_pattern_${e}`,q=`satori_mask_${e}`,Y=wd(l,g,u.fontSize,{x:S,y:I},[y,k],u,b),ue=xd(l,u.fontSize,p,[y,k],u,b,Y),_e=M("pattern",{id:D,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?k/n:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:C,...ue},O.map(ve=>M("stop",{offset:ve.offset||0,"stop-color":ve.color})).join(""))+M("mask",{id:q},M("rect",{x:0,y:0,width:y,height:k,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:k,fill:((oe=O.at(-1))==null?void 0:oe.color)||"transparent"})+M(l,{cx:S,cy:I,width:y,height:k,...Y,fill:`url(#${C})`,mask:`url(#${q})`}));return[D,_e]}function vd(e,t,n,r){if(!n)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+r.fontSize,e,r,!0)}function yd(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Ha(e.value,n,r,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,Ha(t.value,n,r,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function Ha(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function xd(e,t,n,[r,i],o,s,a){let{r:u,rx:f,ratio:l=1}=a;if(!s)return{spreadMethod:"pad"};let p=n.at(-1),h=e==="circle"?u*2:f*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/r,1)/l}%`:Number(X(`${p.offset.value}${p.offset.unit}`,t,r,o,!0)/h)}}function wd(e,t,n,r,i,o,s){let[a,u]=i,{x:f,y:l}=r,p={},h=0,g=0;if(Sd(t)){if(t.some(b=>b.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?Object.assign(p,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0))}):Object.assign(p,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,n,u,o,!0))}),jn(p,a,u,f,l,s,e),p}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-f),Math.abs(f)),g=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),g=Math.min(Math.abs(u-l),Math.abs(l));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-l),Math.abs(l))),jn(p,a,u,f,l,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-l),Math.abs(l))),jn(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+g*g):Object.assign(p,Xa(h,g)),jn(p,a,u,f,l,s,e),p}function jn(e,t,n,r,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),{rx:f,ry:l}=Xa(a,u);e.ratio=Math.max(f/e.rx,l/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),f=Math.sqrt(a*a+u*u);e.ratio=f/e.r,e.ratio>1&&(e.r=f)}}function Xa(e,t){let n=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let r=Math.sqrt(e*e+t*t*n*n)/n;return{ry:r,rx:r*n}}}function Sd(e){return!e.some(t=>t.type==="keyword")}import Qa from"parse-css-color";function _d(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Yi(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Lt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>_d(o,[t,n][s]))}async function Lr({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},f,l){u=u||"repeat",l=l||"background";let p=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",g=Yi(s,{x:t,y:n,defaultX:t,defaultY:n}),b=Yi(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Va({id:e,width:t,height:n,repeatX:p,repeatY:h},o,g,b,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Ya({id:e,width:t,height:n,repeatX:p,repeatY:h},o,g,b,f,l);if(o.startsWith("url(")){let y=Yi(s,{x:t,y:n,defaultX:0,defaultY:0}),[k,S,I]=await br(o.slice(4,-1)),w=l==="mask"?S||y[0]:y[0]||S,T=l==="mask"?I||y[1]:y[1]||I;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:b[0]+r,y:b[1]+i,width:p?w:"100%",height:h?T:"100%"},M("image",{x:0,y:0,width:w,height:T,preserveAspectRatio:"none",href:k}))]}if(Qa(o)){let y=Qa(o),[k,S,I,w]=y.values,O=`rgba(${k},${S},${I},${w!==void 0?w:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:i,width:t,height:n},M("rect",{x:0,y:0,width:t,height:n,fill:O}))]}throw new Error(`Invalid background image: "${o}"`)}function Td([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function Vn(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Hn(e){e[0]=e[1]=Math.min(e[0],e[1])}function Yn(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],r,t,i,!0),t),Math.min(X(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Xn=e=>e&&e[0]!==0&&e[1]!==0;function Ka({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Vt({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,h,g,b;if([p,s]=Yn(s,n,r,l,i),[h,a]=Yn(a,n,r,l,i),[g,u]=Yn(u,n,r,l,i),[b,f]=Yn(f,n,r,l,i),!o&&!Xn(s)&&!Xn(a)&&!Xn(u)&&!Xn(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=Vn(s[0],a[0],n),[u[0],f[0]]=Vn(u[0],f[0],n),[s[1],u[1]]=Vn(s[1],u[1],r),[a[1],f[1]]=Vn(a[1],f[1],r),p&&Hn(s),h&&Hn(a),g&&Hn(u),b&&Hn(f);let y=[];y[0]=[a,a],y[1]=[f,[-f[0],f[1]]],y[2]=[u,[-u[0],-u[1]]],y[3]=[s,[s[0],-s[1]]];let k=`h${n-s[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,S=`v${r-a[1]-f[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,I=`h${f[0]+u[0]-n} a${y[2][0]} 0 0 1 ${y[2][1]}`,w=`v${u[1]+s[1]-r} a${y[3][0]} 0 0 1 ${y[3][1]}`;if(o){let O=function(ce){let oe=Td([s,a,f,u][ce]);return ce===0?[[e+s[0]-oe,t+s[1]-oe],[e+s[0],t]]:ce===1?[[e+n-a[0]+oe,t+a[1]-oe],[e+n,t+a[1]]]:ce===2?[[e+n-f[0]+oe,t+r-f[1]+oe],[e+n-f[0],t+r]]:[[e+u[0]-oe,t+r-u[1]+oe],[e,t+r-u[1]]]},T=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(T===-1)T=0;else for(;!o[T];)T=(T+1)%4;let C="",D=O(T),q=`M${D[0]} A${y[(T+3)%4][0]} 0 0 1 ${D[1]}`,Y=0;for(;Y<4&&o[(T+Y)%4];Y++)C+=q+" ",q=[k,S,I,w][(T+Y)%4];let ue=(T+Y)%4;C+=q.split(" ")[0];let _e=O(ue);return C+=` A${y[(ue+3)%4][0]} 0 0 1 ${_e[0]}`,C}return`M${e+s[0]},${t} ${k} ${S} ${I} ${w}`}function Ja(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Za({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[M("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},M(r,{x:i,y:o,width:s,height:a,d:n||void 0})),l]}function Mr({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(g=>a[g+"Width"]))return"";let f="",l=0;for(;l>0&&Ja(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let g=0;g<4;g++){let b=(l+g)%4,y=(l+g+1)%4,k=u[b],S=u[y];if(p[b]=!0,h=[a[k+"Width"],a[k+"Style"],a[k+"Color"],k],!Ja(k,S,a)){let I=(h[0]||0)+(o&&!s&&a[k.replace("border","padding")]||0);I&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":I*2,"stroke-dasharray":!o&&h[1]==="dashed"?I*2+" "+I:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let g=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);g&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":g*2,"stroke-dasharray":!o&&h[1]==="dashed"?g*2+" "+g:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)}))}return f}function Xi({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:n+f,width:r-u-l,height:i-f-p};return M("mask",{id:e},M("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Mr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as eu}from"css-to-react-native";var Nr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function nu({width:e,height:t},n,r){function i(f){let l=f.match(Nr.circle);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(k=>k.trim()),{x:b,y}=ru(g,e,t);return{type:"circle",r:X(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:X(b,r.fontSize,e,r,!0),cy:X(y,r.fontSize,t,r,!0)}}function o(f){let l=f.match(Nr.ellipse);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(I=>I.trim()),[b,y]=h.split(" "),{x:k,y:S}=ru(g,e,t);return{type:"ellipse",rx:X(b||"50%",r.fontSize,e,r,!0),ry:X(y||"50%",r.fontSize,t,r,!0),cx:X(k,r.fontSize,e,r,!0),cy:X(S,r.fontSize,t,r,!0)}}function s(f){let l=f.match(Nr.path);if(!l)return null;let[p,h]=tu(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Nr.polygon);if(!l)return null;let[p,h]=tu(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(g=>g.split(" ").map((b,y)=>X(b,r.fontSize,y===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Nr.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),g=eu("borderRadius",h,!0),b=Object.values(g).map(T=>String(T)).map((T,O)=>X(T,r.fontSize,O===0||O===2?t:e,r,!0)||0),y=Object.values(eu("margin",p,!0)).map(T=>String(T)).map((T,O)=>X(T,r.fontSize,O===0||O===2?t:e,r,!0)||0),k=y[3],S=y[0],I=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(T=>T>0)?{type:"path",d:Vt({left:k,top:S,width:I,height:w},{...n,...g})}:{type:"rect",x:k,y:S,width:I,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function tu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function ru(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Qn(e){return`satori_cp-${e}`}function iu(e){return`url(#${Qn(e)})`}function ou(e,t,n){if(t.clipPath==="none")return"";let r=nu(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:Qn(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function Qi({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,l){let p="",h=f.clipPath&&f.clipPath!=="none"?ou({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,l):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=h?`satori_ocp-${s}`:Qn(s);p=M("clipPath",{id:b,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:f.overflow==="hidden"&&f.transform&&o?o:void 0}))}let g=Xi({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},f);return h+p+g}var kd=e=>`satori_mi-${e}`;async function Ki(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,f=u.length;if(!f)return["",""];let l=kd(a),p="";for(let h=0;h<f;h++){let g=u[h],[b,y]=await Lr({id:`${l}-${h}`,left:r,top:i,width:o,height:s},g,n,"mask");p+=y+M("rect",{x:r,y:i,width:o,height:s,fill:`url(#${b})`})}return p=M("mask",{id:l},p),[l,p]}async function Wr({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let l=!!s,p="rect",h="",g="",b=[],y=1,k="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=Cr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let S="";if(u.backgroundImage){let de=[];for(let le=0;le<u.backgroundImage.length;le++){let ee=u.backgroundImage[le],Le=await Lr({id:e+"_"+le,width:r,height:i,left:t,top:n},ee,f);Le&&de.unshift(Le)}for(let le of de)b.push(`url(#${le[0]})`),g+=le[1],le[2]&&(S+=le[2])}let[I,w]=await Ki({id:e,left:t,top:n,width:r,height:i},u,f);g+=w;let T=I?`url(#${I})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,O=Vt({left:t,top:n,width:r,height:i},u);O&&(p="path");let C=u._inheritedClipPathId;a&&(k=M("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":C?`url(#${C})`:void 0}));let{backgroundClip:D,filter:q}=u,Y=D==="text"?`url(#satori_bct-${e})`:C?`url(#${C})`:u.clipPath?iu(e):void 0,ue=Qi({left:t,top:n,width:r,height:i,path:O,id:e,matrix:h,currentClipPath:Y,src:s},u,f),_e=b.map(de=>M(p,{x:t,y:n,width:r,height:i,fill:de,d:O||void 0,transform:h||void 0,"clip-path":u.transform?void 0:Y,style:q?`filter:${q}`:void 0,mask:u.transform?void 0:T})).join(""),ce=Za({id:e,left:t,top:n,width:r,height:i,currentClipPathId:C,borderPath:O,borderType:p},u),oe;if(l){let de=(u.borderLeftWidth||0)+(u.paddingLeft||0),le=(u.borderTopWidth||0)+(u.paddingTop||0),ee=(u.borderRightWidth||0)+(u.paddingRight||0),Le=(u.borderBottomWidth||0)+(u.paddingBottom||0),Oe="Mid",Te="Mid",Me=(u.objectPosition||"center").toString().trim().toLowerCase().split(/\s+/);if(Me.length===1)switch(Me[0]){case"left":Oe="Min",Te="Mid";break;case"right":Oe="Max",Te="Mid";break;case"top":Oe="Mid",Te="Min";break;case"bottom":Oe="Mid",Te="Max";break;case"center":Oe="Mid",Te="Mid";break}else if(Me.length===2)for(let G of Me)G==="left"?Oe="Min":G==="right"?Oe="Max":G==="center"?Oe="Mid":G==="top"?Te="Min":G==="bottom"&&(Te="Max");let Je=`x${Oe}Y${Te}`,Pe=u.objectFit==="contain"?Je:u.objectFit==="cover"?`${Je} slice`:"none";u.transform&&(oe=Ka({id:e,borderRadiusPath:O,borderType:p,left:t,top:n,width:r,height:i},u)),_e+=M("image",{x:t+de,y:n+le,width:r-de-ee,height:i-le-Le,href:s,preserveAspectRatio:Pe,transform:h||void 0,style:q?`filter:${q}`:void 0,"clip-path":u.transform?oe?`url(#${oe[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:I?`url(#${I})`:`url(#satori_om-${e})`})}if(ce){g+=ce[0];let de=ce[1];_e+=Mr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${de})`}},u)}let ve=qa({width:r,height:i,id:e,opacity:y,shape:M(p,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:O||void 0,transform:h||void 0,"clip-path":Y,mask:T})},u);return(g?M("defs",{},g):"")+(ve?ve[0]:"")+(oe?oe[0]:"")+ue+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(Y||T)?`<g${Y?` clip-path="${Y}"`:""}${T?` mask="${T}"`:""}>`:"")+(S||_e)+(u.transform&&(Y||T)?"</g>":"")+(y!==1?"</g>":"")+(ve?ve[1]:"")+k}var au=String.raw,su=au`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,uu=()=>new RegExp(au`\p{RI}{2}|(?![#*\d](?!\uFE0F?\u20E3))${su}(?:\u200D${su})*`,"gu");var Ed=new RegExp(uu(),"u"),Ji={emoji:Ed,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Zi={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},Kn=Object.keys({...Zi,...Ji});function lu(e){return Kn.includes(e)}function fu(e,t){for(let r of Object.keys(Ji))if(Ji[r].test(e))return[r];let n=Object.keys(Zi).filter(r=>Zi[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function cu(e){if(e)return Kn.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Dr(e,t){var Pe;let n=await Gt(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:l,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!dr(e)||ia(e.type)){let G;if(!dr(e))G=Hi(String(e),t),yield(await G.next()).value;else{if(na(e.type))throw new Error("Class component is not supported.");let Re;_i(e.type)?Re=e.type.render:Re=e.type,G=Dr(await Re(e.props),t),yield(await G.next()).value}await G.next();let Ie=yield;return(await G.next(Ie)).value}let{type:g,props:b}=e,y=g;if(b&&oa(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:k,children:S,tw:I,lang:w=u}=b||{},T=cu(w);if(I){let G=h(I,k);k=Object.assign(G,k)}let O=n.Node.create();o.insertChild(O,o.getChildCount());let[C,D]=await qi(O,y,i,k,b),q=C.transform===i.transform;if(q||(C.transform.__parent=i.transform),(C.overflow==="hidden"||C.clipPath&&C.clipPath!=="none")&&(D._inheritedClipPathId=`satori_cp-${r}`,D._inheritedMaskId=`satori_om-${r}`),C.maskImage&&(D._inheritedMaskId=`satori_mi-${r}`),C.backgroundClip==="text"){let G={value:""};D._inheritedBackgroundClipTextPath=G,C._inheritedBackgroundClipTextPath=G,C.backgroundImage&&(D._inheritedBackgroundClipTextHasBackground="true",C._inheritedBackgroundClipTextHasBackground="true")}let Y=sa(S),ue=[],_e=0,ce=[];for(let G of Y){let Ie=Dr(G,{id:r+"-"+_e++,parentStyle:C,inheritedStyle:D,isInheritingTransform:!0,parent:O,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:T,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?ce.push(...(await Ie.next()).value||[]):await Ie.next(),ue.push(Ie)}yield ce;for(let G of ue)await G.next();let[oe,ve]=yield,{left:de,top:le,width:ee,height:Le}=O.getComputedLayout();de+=oe,le+=ve;let Oe="",Te="",_t="",{children:Me,...Je}=b;if((Pe=t.onNodeDetected)==null||Pe.call(t,{left:de,top:le,width:ee,height:Le,type:y,props:Je,key:e.key,textContent:dr(Me)?void 0:Me}),y==="img"){let G=C.__src;Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,src:G,isInheritingTransform:q,debug:a},C,D)}else if(y==="svg"){let G=C.color,Ie=await Ia(e,G);Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,src:Ie,isInheritingTransform:q,debug:a},C,D)}else{let G=k==null?void 0:k.display;if(y==="div"&&S&&typeof S!="string"&&G!=="flex"&&G!=="none"&&G!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,isInheritingTransform:q,debug:a},C,D)}for(let G of ue)Oe+=(await G.next([de,le])).value;return C._inheritedBackgroundClipTextPath&&(_t+=M("clipPath",{id:`satori_bct-${r}`,"clip-path":C._inheritedClipPathId?`url(#${C._inheritedClipPathId})`:void 0},C._inheritedBackgroundClipTextPath.value)),_t+Te+Oe}import Fr from"@shuding/opentype.js";var du="unknown";function Od(e){let t=[],n=[0,0],r=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let f=u/s,l=Pd(o,f);t.push({from:a,to:l}),a=l}r=o[o.length-1]};for(let o of e){if(o.type==="M"){n=r=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:r,to:s}),r=s;continue}if(o.type==="Q"){i([r,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([r,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:r,to:n}),r=n)}return t}function Pd(e,t){let n=e;for(;n.length>1;){let r=[];for(let i=0;i<n.length-1;i++)r.push([n[i][0]+(n[i+1][0]-n[i][0])*t,n[i][1]+(n[i+1][1]-n[i][1])*t]);n=r}return n[0]}function Ad(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=Od(e);if(!o.length)return[];let s=i-r,a=Math.max(12,Math.ceil(s/.25)),u=s/a,f=r+u/2,l=new Set;for(let w=0;w<a;w++){let T=f+u*w,O=[];for(let C of o){let[D,q]=C.from,[Y,ue]=C.to;if(q===ue)continue;let _e=Math.min(q,ue),ce=Math.max(q,ue);if(T<_e||T>=ce)continue;let oe=(T-q)/(ue-q),ve=D+(Y-D)*oe;O.push(ve)}if(O.length){O.sort((C,D)=>C-D);for(let C=0;C<O.length-1;C+=2){let D=Math.min(O[C],O[C+1]),q=Math.max(O[C],O[C+1]),Y=Math.floor(D),ue=Math.ceil(q);for(let _e=Y;_e<ue;_e++)l.add(_e)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,T)=>w-T),h=[],g=p[0],b=p[0];for(let w=1;w<p.length;w++){let T=p[w];T>b+1&&(h.push([g,b+1]),g=T),b=T}h.push([g,b+1]);let y=[],k=n*.6,S=h[0][0],I=h[h.length-1][1];for(let[w,T]of h){let O=Math.min(w,S)-k,C=Math.max(T,I)+k;y.push({x1:O,x2:C,y1:r,y2:i})}return y}function Id(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var eo=new WeakMap,Br=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,f,l]=i[s];Id(n,r,[a,u],[f,l])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!lu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kn.join(", ")}.`);let s=o??du,a;if(eo.has(i))a=eo.get(i);else{a=Fr.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=l=>{let p=f.call(a,l);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(l),p},eo.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${r.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(w=>w.toLowerCase());let a=[];r.forEach(w=>{let T=this.get({name:w,weight:i,style:o});if(T){a.push(T);return}let O=this.get({name:w+"_unknown",weight:i,style:o});if(O){a.push(O);return}});let u=Array.from(this.fonts.keys()),f=[],l=[],p=[];for(let w of u)if(!r.includes(w))if(s){let T=Rd(w);T?T===s?f.push(this.get({name:w,weight:i,style:o})):l.push(this.get({name:w,weight:i,style:o})):p.push(this.get({name:w,weight:i,style:o}))}else p.push(this.get({name:w,weight:i,style:o}));let h=new Map,g=(w,T=!0)=>{let O=[...a,...p,...f,...T?l:[]];if(typeof w>"u")return T?O[O.length-1]:void 0;let C=w.charCodeAt(0);if(h.has(C))return h.get(C);let D=O.find((q,Y)=>!!q.charToGlyphIndex(w)||T&&Y===O.length-1);return D&&h.set(C,D),D},b=(w,T=!1)=>{var C,D;return((T?(D=(C=w.tables)==null?void 0:C.os2)==null?void 0:D.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,T=!1)=>{var C,D;return((T?(D=(C=w.tables)==null?void 0:C.os2)==null?void 0:D.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},k=(w,T=!1)=>{var O,C;if(typeof n=="string"&&n==="normal"){let D=(T?(C=(O=w.tables)==null?void 0:O.os2)==null?void 0:C.sTypoLineGap:0)||0;return b(w,T)-y(w,T)+D/w.unitsPerEm*t}else if(typeof n=="number")return t*n},S=w=>g(w,!1);return{has:w=>{if(w===`
7
- `)return!0;let T=S(w);return T?(T._trackBrokenChars=[],T.stringToGlyphs(w),T._trackBrokenChars.length?(T._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,T=typeof w>"u"?a[0]:g(w))=>{let O=b(T),C=y(T),D=O-C;return O+(k(T)-D)/2},height:(w,T=typeof w>"u"?a[0]:g(w))=>k(T),measure:(w,T)=>this.measure(g,w,T),getSVG:(w,T,O)=>this.getSVG(g,w,T,O)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,g=new Fr.Path;g.unitsPerEm=t.unitsPerEm,g.commands=p.path.commands.map(y=>{let k={...y};for(let S in k)typeof k[S]=="number"&&(k[S]*=h);return k});let b=new Fr.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:g});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0},a){let u=t(n),f=this.patchFontFallbackResolver(u,t);try{if(r===0)return{path:"",boxes:[]};let l=new Fr.Path,p=[],h={letterSpacing:s/r},g=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,k,S){let I;if(!g.has(b))I=b.getPath(y,k,S,h),g.set(b,[y,k,I]);else{let[T,O,C]=g.get(b);I=new Fr.Path,I.commands=C.commands.map(D=>{let q={...D};for(let Y in q)typeof q[Y]=="number"&&((Y==="x"||Y==="x1"||Y==="x2")&&(q[Y]+=y-T),(Y==="y"||Y==="y1"||Y==="y2")&&(q[Y]+=k-O));return q})}let w=a?Ad(I.commands,a):[];w.length&&p.push(...w),l.extend(I)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function Rd(e){let t=e.split("_"),n=t[t.length-1];return n===du?void 0:n}function to({width:e,height:t,content:n}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var Vf=ac(_f());var bb=["ios","android","windows","macos","web"];function kf(e){return bb.includes(e)}var vb=["portrait","landscape"];function Ef(e){return vb.includes(e)}var Tf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Tf||(Tf={}));var ne;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ne||(ne={}));function Ps(e){return typeof e=="string"}function As(e){return typeof e=="object"}var Is;function _(e){return{kind:"complete",style:e}}function Ae(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ae(o),u=Ae(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,ne.none];switch(i==null?void 0:i[1]){case"rem":return[r,ne.rem];case"px":return[r,ne.px];case"em":return[r,ne.em];case"%":return[r,ne.percent];case"vw":return[r,ne.vw];case"vh":return[r,ne.vh];default:return null}}function Bt(e,t,n={}){let r=wt(t,n);return r===null?null:_({[e]:r})}function mi(e,t,n){let r=wt(t);return r!==null&&(n[e]=r),n}function Pf(e,t){let n=wt(t);return n===null?null:{[e]:n}}function wt(e,t={}){if(e===void 0)return null;let n=Ae(String(e),t);return n?Qt(...n,t):null}function Qt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case ne.rem:return e*16*(r?-1:1);case ne.px:return e*(r?-1:1);case ne.percent:return`${r?"-":""}${e}%`;case ne.none:return e*(r?-1:1);case ne.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Ve("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ne.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Ve("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Rs(e){let t=Ae(e);if(!t)return null;let[n,r]=t;switch(r){case ne.rem:return n*16;case ne.px:return n;default:return null}}var yb={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Cs(e){return yb[e??""]||"All"}function Ls(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Cs(i),"")),t]}function sr(e,t={}){if(e.includes("/")){let n=Of(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Of(e,t)}function at(e,t,n={}){let r=sr(t,n);return r===null?null:_({[e]:r})}function Of(e,t={}){if(e==="px")return 1;let n=Ae(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=ne.percent,r*=100),i===ne.none&&(r=r/4,i=ne.rem),Qt(r,i,t)}function xb(...e){console.warn(...e)}function wb(...e){}var Ve=typeof process>"u"||((Is=process==null?void 0:process.env)===null||Is===void 0?void 0:Is.JEST_WORKER_ID)===void 0?xb:wb;var Sb=[["aspect-square",_({aspectRatio:1})],["aspect-video",_({aspectRatio:16/9})],["items-center",_({alignItems:"center"})],["items-start",_({alignItems:"flex-start"})],["items-end",_({alignItems:"flex-end"})],["items-baseline",_({alignItems:"baseline"})],["items-stretch",_({alignItems:"stretch"})],["justify-start",_({justifyContent:"flex-start"})],["justify-end",_({justifyContent:"flex-end"})],["justify-center",_({justifyContent:"center"})],["justify-between",_({justifyContent:"space-between"})],["justify-around",_({justifyContent:"space-around"})],["justify-evenly",_({justifyContent:"space-evenly"})],["content-start",_({alignContent:"flex-start"})],["content-end",_({alignContent:"flex-end"})],["content-between",_({alignContent:"space-between"})],["content-around",_({alignContent:"space-around"})],["content-stretch",_({alignContent:"stretch"})],["content-center",_({alignContent:"center"})],["self-auto",_({alignSelf:"auto"})],["self-start",_({alignSelf:"flex-start"})],["self-end",_({alignSelf:"flex-end"})],["self-center",_({alignSelf:"center"})],["self-stretch",_({alignSelf:"stretch"})],["self-baseline",_({alignSelf:"baseline"})],["direction-inherit",_({direction:"inherit"})],["direction-ltr",_({direction:"ltr"})],["direction-rtl",_({direction:"rtl"})],["hidden",_({display:"none"})],["flex",_({display:"flex"})],["flex-row",_({flexDirection:"row"})],["flex-row-reverse",_({flexDirection:"row-reverse"})],["flex-col",_({flexDirection:"column"})],["flex-col-reverse",_({flexDirection:"column-reverse"})],["flex-wrap",_({flexWrap:"wrap"})],["flex-wrap-reverse",_({flexWrap:"wrap-reverse"})],["flex-nowrap",_({flexWrap:"nowrap"})],["flex-auto",_({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",_({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",_({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",_({overflow:"hidden"})],["overflow-visible",_({overflow:"visible"})],["overflow-scroll",_({overflow:"scroll"})],["absolute",_({position:"absolute"})],["relative",_({position:"relative"})],["italic",_({fontStyle:"italic"})],["not-italic",_({fontStyle:"normal"})],["oldstyle-nums",bn("oldstyle-nums")],["small-caps",bn("small-caps")],["lining-nums",bn("lining-nums")],["tabular-nums",bn("tabular-nums")],["proportional-nums",bn("proportional-nums")],["font-thin",_({fontWeight:"100"})],["font-100",_({fontWeight:"100"})],["font-extralight",_({fontWeight:"200"})],["font-200",_({fontWeight:"200"})],["font-light",_({fontWeight:"300"})],["font-300",_({fontWeight:"300"})],["font-normal",_({fontWeight:"normal"})],["font-400",_({fontWeight:"400"})],["font-medium",_({fontWeight:"500"})],["font-500",_({fontWeight:"500"})],["font-semibold",_({fontWeight:"600"})],["font-600",_({fontWeight:"600"})],["font-bold",_({fontWeight:"bold"})],["font-700",_({fontWeight:"700"})],["font-extrabold",_({fontWeight:"800"})],["font-800",_({fontWeight:"800"})],["font-black",_({fontWeight:"900"})],["font-900",_({fontWeight:"900"})],["include-font-padding",_({includeFontPadding:!0})],["remove-font-padding",_({includeFontPadding:!1})],["max-w-none",_({maxWidth:"99999%"})],["text-left",_({textAlign:"left"})],["text-center",_({textAlign:"center"})],["text-right",_({textAlign:"right"})],["text-justify",_({textAlign:"justify"})],["text-auto",_({textAlign:"auto"})],["underline",_({textDecorationLine:"underline"})],["line-through",_({textDecorationLine:"line-through"})],["no-underline",_({textDecorationLine:"none"})],["uppercase",_({textTransform:"uppercase"})],["lowercase",_({textTransform:"lowercase"})],["capitalize",_({textTransform:"capitalize"})],["normal-case",_({textTransform:"none"})],["w-auto",_({width:"auto"})],["h-auto",_({height:"auto"})],["shadow-sm",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",_({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Ms=Sb;function bn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var vn=class{constructor(t){this.ir=new Map(Ms),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Ms,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Ns(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return at("fontSize",e,n);if(typeof r=="string")return Bt("fontSize",r);let i={},[o,s]=r,a=Pf("fontSize",o);if(a&&(i=a),typeof s=="string")return _(mi("lineHeight",Af(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&mi("lineHeight",Af(u,i),i),f&&mi("letterSpacing",f,i),_(i)}function Af(e,t){let n=Ae(e);if(n){let[r,i]=n;if((i===ne.none||i===ne.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Ws(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=Ae(r);if(!i)return null;let[o,s]=i;if(s===ne.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?_({lineHeight:a}):null}function Ds(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)o=f;else{let l=sr(r);return l&&typeof l=="number"?If(l,ne.px,t,e):null}}if(o==="auto")return Rf(t,e,"auto");let s=Ae(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),If(a,u,t,e)}function If(e,t,n,r){let i=Qt(e,t);return i===null?null:Rf(n,r,i)}function Rf(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function Fs(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Rs(u.min):0;f===null?Ve(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Rs(u.max):1/0;return l===null?Ve(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}function Bs(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return _({fontFamily:n});let r=n[0];return r?_({fontFamily:r}):null}function ar(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Mf(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=Cf(i,o/100),_({[gi[e].color]:i})}return{kind:"dependent",complete(o){let s=gi[e].opacity,a=o[s];typeof a=="number"&&(i=Cf(i,a)),o[gi[e].color]=i}}}function yn(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[gi[e].opacity]:r}}}function Cf(e,t){return e.startsWith("#")?e=_b(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Lf(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var gi={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function _b(e){let t=e;e=e.replace(Tb,(s,a,u,f)=>a+a+u+u+f+f);let n=kb.exec(e);if(!n)return Ve(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function Mf(e,t){let n=t[e];if(Ps(n))return n;if(As(n)&&Ps(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(As(o))return Mf(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var Tb=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,kb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Wf(e,t){let[n,r]=Ls(e);if(n.match(/^(-?(\d)+)?$/))return Eb(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return _({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=ar(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=at(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function Eb(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Bt(o,i)}function Df(e,t){if(!t)return null;let[n,r]=Ls(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return Nf(Bt(i,o));let s=at(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:Nf(s)}function Nf(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function _r(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=wt(o,{isNegative:n});if(a!==null)return Ff(e,i,a)}let s=sr(t,{isNegative:n});return s!==null?Ff(e,i,s):null}function Ff(e,t,n){if(e!=="inset")return _({[e]:n});switch(t){case null:return _({top:n,left:n,right:n,bottom:n});case"y":return _({top:n,bottom:n});case"x":return _({left:n,right:n})}}function xn(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:_({[`flex${e}`]:o})}function Bf(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return _({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return _({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=wt((n=i[2])!==null&&n!==void 0?n:"");return o?_({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=wt((r=i[3])!==null&&r!==void 0?r:"");return o?_({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function $s(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Bt(e,i,n):at(e,t,n)}function wn(e,t,n={},r){let i=wt(r==null?void 0:r[t],n);return i?_({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),at(e,t,n))}function $f(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Ae(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ne.em)return Ob(o);if(s===ne.percent)return Ve("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?_({letterSpacing:a}):null}return at("letterSpacing",e,{isNegative:t})}function Ob(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function qf(e,t){let n=t==null?void 0:t[e];if(n){let i=Ae(String(n));if(i)return _({opacity:i[0]})}let r=Ae(e);return r?_({opacity:r[0]/100}):null}function Uf(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function zf(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=qs(n),o=qs(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=qs(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function qs(e){let t=sr(e);return typeof t=="number"?t:null}var Tr=class{constructor(t,n={},r,i,o){var s,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),g=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",g=h),this.char=this.string[0];let b=Fs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of g)if(b[y]){let k=(u=b[y])===null||u===void 0?void 0:u[2];k!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+k);let S=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(S){let[I,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(S<=I||S>w)&&(this.isNull=!0)}else this.isNull=!0}else kf(y)?this.isNull=y!==o:Ef(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=Cs(u[1]),p=Ds(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=$s("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=$s("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=wn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=wn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=wn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=wn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Ws(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Ns(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=ar("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=yn("text",this.rest),a))||this.consumePeeked("font-")&&(a=Bs(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Ve("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Bt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=ar("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=ar("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=yn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Wf(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=yn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Df(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=_r("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=_r("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=_r("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=_r("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=_r("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=xn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=xn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Bf(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=xn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=xn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=yn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Uf(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=zf(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=at("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=ar("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return _({elevation:u})}if(this.consumePeeked("opacity-")&&(a=qf(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=$f(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return _({zIndex:u})}return Ve(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,f=Ae(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function Gf(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Us(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Us)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?Us(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Pb),n]}function Us(e){return e.trim().split(/\s+/)}function Pb(e,t,n){return n.indexOf(e)===t}function jf(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Ab(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Ab(e){let t={};return e({addUtilities:n=>{t=n},...Ib}),t}function St(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Ib={addComponents:St,addBase:St,addVariant:St,e:St,prefix:St,theme:St,variants:St,config:St,corePlugins:St,matchUtilities:St,postcss:null};function Hf(e,t){let n=(0,Vf.default)(Rb(e)),r={},i=jf(n.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,_(y)]).filter(([,b])=>b.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new vn(s);return f[u]=y,y}function p(...b){let y=l(),k={},S=[],I=[],[w,T]=Gf(b),O=w.join(" "),C=y.getStyle(O);if(C)return{...C,...T||{}};for(let D of w){let q=y.getIr(D);if(!q&&D in o){let ue=p(o[D]);y.setIr(D,_(ue)),k={...k,...ue};continue}switch(q=new Tr(D,n,y,r,t).parse(),q.kind){case"complete":k={...k,...q.style},y.setIr(D,q);break;case"dependent":S.push(q);break;case"ordered":I.push(q);break;case"null":y.setIr(D,q);break}}if(I.length>0){I.sort((D,q)=>D.order-q.order);for(let D of I)switch(D.styleIr.kind){case"complete":k={...k,...D.styleIr.style};break;case"dependent":S.push(D.styleIr);break}}if(S.length>0){for(let D of S){let q=D.complete(k);q&&Ve(q)}Lf(k)}return O!==""&&y.setStyle(O,k),T&&(k={...k,...T}),k}function h(b){let y=p(b.split(/\s+/g).map(k=>k.replace(/^(bg|text|border)-/,"")).map(k=>`bg-${k}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let g=(b,...y)=>{let k="";return b.forEach((S,I)=>{var w;k+=S+((w=y[I])!==null&&w!==void 0?w:"")}),p(k)};return g.style=p,g.color=h,g.prefixMatch=(...b)=>{let y=b.sort().join(":"),k=l(),S=k.getPrefixMatch(y);if(S!==void 0)return S;let T=new Tr(`${y}:flex`,n,k,r,t).parse().kind!=="null";return k.setPrefixMatch(y,T),T},g.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},g.setFontScale=b=>{r.fontScale=b,u=a()},g.setPixelDensity=b=>{r.pixelDensity=b,u=a()},g.setColorScheme=b=>{r.colorScheme=b,u=a()},g}function Rb(e){return{...e,content:["_no_warnings_please"]}}var Lb={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function Mb(e){return Hf({...e,plugins:[...(e==null?void 0:e.plugins)??[],Lb]},"web")}var bi;function zs({width:e,height:t,config:n}){return bi||(bi=Mb(n)),bi.setWindowDimensions({width:+e,height:+t}),bi}var Gs=new WeakMap;async function Xf(e,t){let n=await Gt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;Gs.has(t.fonts)?r=Gs.get(t.fonts):Gs.set(t.fonts,r=new Br(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=Nb(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set;yt.clear(),Ir.clear(),await Aa(e);let f=Dr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let S={...zs({width:i,height:o,config:t.tailwindConfig})([b])};return typeof S.lineHeight=="number"&&(S.lineHeight=S.lineHeight/(+S.fontSize||y.fontSize||16)),S.shadowColor&&S.boxShadow&&(S.boxShadow=S.boxShadow.replace(/rgba?\([^)]+\)/,S.shadowColor)),S}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=Wb(l),y=[],k={};await Promise.all(Object.entries(b).flatMap(([S,I])=>I.map(w=>{let T=`${S}_${w}`;return u.has(T)?null:(u.add(T),t.loadAdditionalAsset(S,w).then(O=>{typeof O=="string"?k[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,k)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),g=s.getComputedHeight();return s.freeRecursive(),to({width:h,height:g,content:p})}function Nb(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function Wb(e){let t={},n={};for(let{word:r,locale:i}of e){let o=fu(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Yf(De(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Yf(De(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Yf(e){return Array.from(new Set(e))}export{Xf as default,Pc as init};
1
+ var nc=Object.create;var In=Object.defineProperty;var ic=Object.getOwnPropertyDescriptor;var oc=Object.getOwnPropertyNames;var sc=Object.getPrototypeOf,ac=Object.prototype.hasOwnProperty;var Zt=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rn=(e,t)=>{for(var n in t)In(e,n,{get:t[n],enumerable:!0})},Zs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oc(t))!ac.call(e,i)&&i!==n&&In(e,i,{get:()=>t[i],enumerable:!(r=ic(t,i))||r.enumerable});return e};var uc=(e,t,n)=>(n=e!=null?nc(sc(e)):{},Zs(t||!e||!e.__esModule?In(n,"default",{value:e,enumerable:!0}):n,e)),Cn=e=>Zs(In({},"__esModule",{value:!0}),e);var Nt,ha,ma,Ar,ki,Wt,hr,wc,Wn,Ei,mr,gr,Oi,ga,Pi,Ai,ht,Ii,Sc,ba,Dn=Zt(()=>{Nt=function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e}({}),ha=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),ma=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Ar=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),ki=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Wt=function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e}({}),hr=function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e}({}),wc=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Wn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Ei=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),mr=function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e}({}),gr=function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e}({}),Oi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),ga=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Pi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Ai=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),ht=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Ii=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Sc={ALIGN_AUTO:Nt.Auto,ALIGN_FLEX_START:Nt.FlexStart,ALIGN_CENTER:Nt.Center,ALIGN_FLEX_END:Nt.FlexEnd,ALIGN_STRETCH:Nt.Stretch,ALIGN_BASELINE:Nt.Baseline,ALIGN_SPACE_BETWEEN:Nt.SpaceBetween,ALIGN_SPACE_AROUND:Nt.SpaceAround,ALIGN_SPACE_EVENLY:Nt.SpaceEvenly,BOX_SIZING_BORDER_BOX:ha.BorderBox,BOX_SIZING_CONTENT_BOX:ha.ContentBox,DIMENSION_WIDTH:ma.Width,DIMENSION_HEIGHT:ma.Height,DIRECTION_INHERIT:Ar.Inherit,DIRECTION_LTR:Ar.LTR,DIRECTION_RTL:Ar.RTL,DISPLAY_FLEX:ki.Flex,DISPLAY_NONE:ki.None,DISPLAY_CONTENTS:ki.Contents,EDGE_LEFT:Wt.Left,EDGE_TOP:Wt.Top,EDGE_RIGHT:Wt.Right,EDGE_BOTTOM:Wt.Bottom,EDGE_START:Wt.Start,EDGE_END:Wt.End,EDGE_HORIZONTAL:Wt.Horizontal,EDGE_VERTICAL:Wt.Vertical,EDGE_ALL:Wt.All,ERRATA_NONE:hr.None,ERRATA_STRETCH_FLEX_BASIS:hr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:hr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:hr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:hr.All,ERRATA_CLASSIC:hr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:wc.WebFlexBasis,FLEX_DIRECTION_COLUMN:Wn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Wn.ColumnReverse,FLEX_DIRECTION_ROW:Wn.Row,FLEX_DIRECTION_ROW_REVERSE:Wn.RowReverse,GUTTER_COLUMN:Ei.Column,GUTTER_ROW:Ei.Row,GUTTER_ALL:Ei.All,JUSTIFY_FLEX_START:mr.FlexStart,JUSTIFY_CENTER:mr.Center,JUSTIFY_FLEX_END:mr.FlexEnd,JUSTIFY_SPACE_BETWEEN:mr.SpaceBetween,JUSTIFY_SPACE_AROUND:mr.SpaceAround,JUSTIFY_SPACE_EVENLY:mr.SpaceEvenly,LOG_LEVEL_ERROR:gr.Error,LOG_LEVEL_WARN:gr.Warn,LOG_LEVEL_INFO:gr.Info,LOG_LEVEL_DEBUG:gr.Debug,LOG_LEVEL_VERBOSE:gr.Verbose,LOG_LEVEL_FATAL:gr.Fatal,MEASURE_MODE_UNDEFINED:Oi.Undefined,MEASURE_MODE_EXACTLY:Oi.Exactly,MEASURE_MODE_AT_MOST:Oi.AtMost,NODE_TYPE_DEFAULT:ga.Default,NODE_TYPE_TEXT:ga.Text,OVERFLOW_VISIBLE:Pi.Visible,OVERFLOW_HIDDEN:Pi.Hidden,OVERFLOW_SCROLL:Pi.Scroll,POSITION_TYPE_STATIC:Ai.Static,POSITION_TYPE_RELATIVE:Ai.Relative,POSITION_TYPE_ABSOLUTE:Ai.Absolute,UNIT_UNDEFINED:ht.Undefined,UNIT_POINT:ht.Point,UNIT_PERCENT:ht.Percent,UNIT_AUTO:ht.Auto,WRAP_NO_WRAP:Ii.NoWrap,WRAP_WRAP:Ii.Wrap,WRAP_WRAP_REVERSE:Ii.WrapReverse},ba=Sc});function Ri(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];return s.call(this,a,...f)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[ht.Point]:e.Node.prototype[i],[ht.Percent]:e.Node.prototype[`${i}Percent`],[ht.Auto]:e.Node.prototype[`${i}Auto`]};t(e.Node.prototype,i,function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];let l=u.pop(),p,h;if(l==="auto")p=ht.Auto,h=void 0;else if(typeof l=="object")p=l.unit,h=l.valueOf();else if(p=typeof l=="string"&&l.endsWith("%")?ht.Percent:ht.Point,h=parseFloat(l),l!==void 0&&!Number.isNaN(l)&&Number.isNaN(h))throw new Error(`Invalid value ${l} for ${i}`);if(!o[p])throw new Error(`Failed to execute "${i}": Unsupported unit '${l}'`);return h!==void 0?o[p].call(this,...u,h):o[p].call(this,...u)})}function n(i){return e.MeasureCallback.implement({measure:function(){let{width:o,height:s}=i(...arguments);return{width:o??NaN,height:s??NaN}}})}t(e.Node.prototype,"setMeasureFunc",function(i,o){return o?i.call(this,n(o)):this.unsetMeasureFunc()});function r(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,r(o))}),t(e.Config.prototype,"free",function(){e.Config.destroy(this)}),t(e.Node,"create",(i,o)=>o?e.Node.createWithConfig(o):e.Node.createDefault()),t(e.Node.prototype,"free",function(){e.Node.destroy(this)}),t(e.Node.prototype,"freeRecursive",function(){for(let i=0,o=this.getChildCount();i<o;++i)this.getChild(0).freeRecursive();this.free()}),t(e.Node.prototype,"calculateLayout",function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ar.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...ba}}var va=Zt(()=>{Dn();Dn()});var xa={};Rn(xa,{default:()=>_c});function _c(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var n,r;t.ready=new Promise(function(c,d){n=c,r=d});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),ya&&(o=ya),o.indexOf("blob:")!==0?o=o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1):o="";var s=t.print||console.log.bind(console),a=t.printErr||console.warn.bind(console);Object.assign(t,i),i=null;var u;t.wasmBinary&&(u=t.wasmBinary);var f=t.noExitRuntime||!0;typeof WebAssembly!="object"&&de("no native wasm support detected");var l,p=!1;function h(c,d,m){m=d+m;for(var v="";!(d>=m);){var x=c[d++];if(!x)break;if(x&128){var E=c[d++]&63;if((x&224)==192)v+=String.fromCharCode((x&31)<<6|E);else{var P=c[d++]&63;x=(x&240)==224?(x&15)<<12|E<<6|P:(x&7)<<18|E<<12|P<<6|c[d++]&63,65536>x?v+=String.fromCharCode(x):(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023))}}else v+=String.fromCharCode(x)}return v}var g,b,y,k,S,R,w,_,O;function A(){var c=l.buffer;g=c,t.HEAP8=b=new Int8Array(c),t.HEAP16=k=new Int16Array(c),t.HEAP32=R=new Int32Array(c),t.HEAPU8=y=new Uint8Array(c),t.HEAPU16=S=new Uint16Array(c),t.HEAPU32=w=new Uint32Array(c),t.HEAPF32=_=new Float32Array(c),t.HEAPF64=O=new Float64Array(c)}var D,q=[],Y=[],ue=[];function _e(){var c=t.preRun.shift();q.unshift(c)}var ce=0,oe=null,ve=null;function de(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),p=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),r(c),c}function le(c){return c.startsWith("data:application/octet-stream;base64,")}var ee="";if(!le(ee)){var Le=ee;ee=t.locateFile?t.locateFile(Le,o):o+Le}function Oe(){var c=ee;try{if(c==ee&&u)return new Uint8Array(u);if(le(c))try{var d=tc(c.slice(37)),m=new Uint8Array(d.length);for(c=0;c<d.length;++c)m[c]=d.charCodeAt(c);var v=m}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var x=v;if(x)return x;throw"both async and sync fetching of the wasm failed"}catch(E){de(E)}}function Te(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Oe()}):fetch(ee,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+ee+"'";return c.arrayBuffer()}).catch(function(){return Oe()})}function _t(c){for(;0<c.length;)c.shift()(t)}function Me(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var d=c.charCodeAt(0);return 48<=d&&57>=d?"_"+c:c}function Je(c,d){return c=Me(c),function(){return d.apply(this,arguments)}}var Pe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],G=[];function Ie(c){var d=Error,m=Je(c,function(v){this.name=c,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
2
+ `+v.replace(/^Error(:[^\n]*)?\n/,""))});return m.prototype=Object.create(d.prototype),m.prototype.constructor=m,m.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},m}var Re=void 0;function V(c){throw new Re(c)}var ut=c=>(c||V("Cannot use deleted val. handle = "+c),Pe[c].value),Tt=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var d=G.length?G.pop():Pe.length;return Pe[d]={ga:1,value:c},d}},$t=void 0,Sn=void 0;function Ee(c){for(var d="";y[c];)d+=Sn[y[c++]];return d}var gt=[];function qt(){for(;gt.length;){var c=gt.pop();c.M.$=!1,c.delete()}}var Be=void 0,Ze={};function ur(c,d){for(d===void 0&&V("ptr should not be undefined");c.R;)d=c.ba(d),c=c.R;return d}var bt={};function lr(c){c=Xs(c);var d=Ee(c);return Rt(c),d}function _n(c,d){var m=bt[c];return m===void 0&&V(d+" has unknown type "+lr(c)),m}function kt(){}var lt=!1;function ft(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function He(c,d,m){return d===m?c:m.R===void 0?null:(c=He(c,d,m.R),c===null?null:m.na(c))}var Kt={};function ct(c,d){return d=ur(c,d),Ze[d]}var Et=void 0;function Ot(c){throw new Et(c)}function Jt(c,d){return d.P&&d.O||Ot("makeClassHandle requires ptr and ptrType"),!!d.U!=!!d.T&&Ot("Both smartPtrType and smartPtr must be specified"),d.count={value:1},dt(Object.create(c,{M:{value:d}}))}function dt(c){return typeof FinalizationRegistry>"u"?(dt=d=>d,c):(lt=new FinalizationRegistry(d=>{ft(d.M)}),dt=d=>{var m=d.M;return m.T&&lt.register(d,{M:m},d),d},kt=d=>{lt.unregister(d)},dt(c))}var $e={};function Pt(c){for(;c.length;){var d=c.pop();c.pop()(d)}}function qe(c){return this.fromWireType(R[c>>2])}var At={},H={};function j(c,d,m){function v(I){I=m(I),I.length!==c.length&&Ot("Mismatched type converter count");for(var N=0;N<c.length;++N)Q(c[N],I[N])}c.forEach(function(I){H[I]=d});var x=Array(d.length),E=[],P=0;d.forEach((I,N)=>{bt.hasOwnProperty(I)?x[N]=bt[I]:(E.push(I),At.hasOwnProperty(I)||(At[I]=[]),At[I].push(()=>{x[N]=bt[I],++P,P===E.length&&v(x)}))}),E.length===0&&v(x)}function se(c){switch(c){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+c)}}function Q(c,d,m={}){if(!("argPackAdvance"in d))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=d.name;if(c||V('type "'+v+'" must have a positive integer typeid pointer'),bt.hasOwnProperty(c)){if(m.ua)return;V("Cannot register type '"+v+"' twice")}bt[c]=d,delete H[c],At.hasOwnProperty(c)&&(d=At[c],delete At[c],d.forEach(x=>x()))}function ge(c){V(c.M.P.N.name+" instance already deleted")}function J(){}function pe(c,d,m){if(c[d].S===void 0){var v=c[d];c[d]=function(){return c[d].S.hasOwnProperty(arguments.length)||V("Function '"+m+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[d].S+")!"),c[d].S[arguments.length].apply(this,arguments)},c[d].S=[],c[d].S[v.Z]=v}}function ie(c,d){t.hasOwnProperty(c)?(V("Cannot register public name '"+c+"' twice"),pe(t,c,c),t.hasOwnProperty(void 0)&&V("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=d):t[c]=d}function te(c,d,m,v,x,E,P,I){this.name=c,this.constructor=d,this.X=m,this.W=v,this.R=x,this.pa=E,this.ba=P,this.na=I,this.ja=[]}function Ue(c,d,m){for(;d!==m;)d.ba||V("Expected null or instance of "+m.name+", got an instance of "+d.name),c=d.ba(c),d=d.R;return c}function K(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function vt(c,d){if(d===null){if(this.ea&&V("null is not a valid "+this.name),this.da){var m=this.fa();return c!==null&&c.push(this.W,m),m}return 0}if(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&d.M.P.ca&&V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name),m=Ue(d.M.O,d.M.P.N,this.N),this.da)switch(d.M.T===void 0&&V("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:d.M.U===this?m=d.M.T:V("Cannot convert argument of type "+(d.M.U?d.M.U.name:d.M.P.name)+" to parameter type "+this.name);break;case 1:m=d.M.T;break;case 2:if(d.M.U===this)m=d.M.T;else{var v=d.clone();m=this.xa(m,Tt(function(){v.delete()})),c!==null&&c.push(this.W,m)}break;default:V("Unsupporting sharing policy")}return m}function Ne(c,d){return d===null?(this.ea&&V("null is not a valid "+this.name),0):(d.M||V('Cannot pass "'+Qe(d)+'" as a '+this.name),d.M.O||V("Cannot pass deleted object as a pointer of type "+this.name),d.M.P.ca&&V("Cannot convert argument of type "+d.M.P.name+" to parameter type "+this.name),Ue(d.M.O,d.M.P.N,this.N))}function Ye(c,d,m,v){this.name=c,this.N=d,this.ea=m,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,d.R!==void 0?this.toWireType=vt:(this.toWireType=v?K:Ne,this.V=null)}function et(c,d){t.hasOwnProperty(c)||Ot("Replacing nonexistant public symbol"),t[c]=d,t[c].Z=void 0}function fr(c,d){var m=[];return function(){if(m.length=0,Object.assign(m,arguments),c.includes("j")){var v=t["dynCall_"+c];v=m&&m.length?v.apply(null,[d].concat(m)):v.call(null,d)}else v=D.get(d).apply(null,m);return v}}function we(c,d){c=Ee(c);var m=c.includes("j")?fr(c,d):D.get(d);return typeof m!="function"&&V("unknown function pointer with signature "+c+": "+d),m}var Ut=void 0;function be(c,d){function m(E){x[E]||bt[E]||(H[E]?H[E].forEach(m):(v.push(E),x[E]=!0))}var v=[],x={};throw d.forEach(m),new Ut(c+": "+v.map(lr).join([", "]))}function Se(c,d,m,v,x){var E=d.length;2>E&&V("argTypes array size mismatch! Must at least get return value and 'this' types!");var P=d[1]!==null&&m!==null,I=!1;for(m=1;m<d.length;++m)if(d[m]!==null&&d[m].V===void 0){I=!0;break}var N=d[0].name!=="void",L=E-2,F=Array(L),z=[],Z=[];return function(){if(arguments.length!==L&&V("function "+c+" called with "+arguments.length+" arguments, expected "+L+" args!"),Z.length=0,z.length=P?2:1,z[0]=x,P){var ke=d[1].toWireType(Z,this);z[1]=ke}for(var ae=0;ae<L;++ae)F[ae]=d[ae+2].toWireType(Z,arguments[ae]),z.push(F[ae]);if(ae=v.apply(null,z),I)Pt(Z);else for(var Ke=P?1:2;Ke<d.length;Ke++){var pt=Ke===1?ke:F[Ke-2];d[Ke].V!==null&&d[Ke].V(pt)}return ke=N?d[0].fromWireType(ae):void 0,ke}}function Xe(c,d){for(var m=[],v=0;v<c;v++)m.push(w[d+4*v>>2]);return m}function We(c){4<c&&--Pe[c].ga===0&&(Pe[c]=void 0,G.push(c))}function Qe(c){if(c===null)return"null";var d=typeof c;return d==="object"||d==="array"||d==="function"?c.toString():""+c}function It(c,d){switch(d){case 2:return function(m){return this.fromWireType(_[m>>2])};case 3:return function(m){return this.fromWireType(O[m>>3])};default:throw new TypeError("Unknown float type: "+c)}}function ze(c,d,m){switch(d){case 0:return m?function(v){return b[v]}:function(v){return y[v]};case 1:return m?function(v){return k[v>>1]}:function(v){return S[v>>1]};case 2:return m?function(v){return R[v>>2]}:function(v){return w[v>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function tt(c,d){for(var m="",v=0;!(v>=d/2);++v){var x=k[c+2*v>>1];if(x==0)break;m+=String.fromCharCode(x)}return m}function kr(c,d,m){if(m===void 0&&(m=2147483647),2>m)return 0;m-=2;var v=d;m=m<2*c.length?m/2:c.length;for(var x=0;x<m;++x)k[d>>1]=c.charCodeAt(x),d+=2;return k[d>>1]=0,d-v}function cr(c){return 2*c.length}function Tn(c,d){for(var m=0,v="";!(m>=d/4);){var x=R[c+4*m>>2];if(x==0)break;++m,65536<=x?(x-=65536,v+=String.fromCharCode(55296|x>>10,56320|x&1023)):v+=String.fromCharCode(x)}return v}function kn(c,d,m){if(m===void 0&&(m=2147483647),4>m)return 0;var v=d;m=v+m-4;for(var x=0;x<c.length;++x){var E=c.charCodeAt(x);if(55296<=E&&57343>=E){var P=c.charCodeAt(++x);E=65536+((E&1023)<<10)|P&1023}if(R[d>>2]=E,d+=4,d+4>m)break}return R[d>>2]=0,d-v}function En(c){for(var d=0,m=0;m<c.length;++m){var v=c.charCodeAt(m);55296<=v&&57343>=v&&++m,d+=4}return d}var Kf={};function Vs(c){var d=Kf[c];return d===void 0?Ee(c):d}var On=[];function Jf(c){var d=On.length;return On.push(c),d}function Zf(c,d){for(var m=Array(c),v=0;v<c;++v)m[v]=_n(w[d+4*v>>2],"parameter "+v);return m}var Hs=[],ec=[null,[],[]];Re=t.BindingError=Ie("BindingError"),t.count_emval_handles=function(){for(var c=0,d=5;d<Pe.length;++d)Pe[d]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<Pe.length;++c)if(Pe[c]!==void 0)return Pe[c];return null},$t=t.PureVirtualError=Ie("PureVirtualError");for(var Ys=Array(256),Pn=0;256>Pn;++Pn)Ys[Pn]=String.fromCharCode(Pn);Sn=Ys,t.getInheritedInstanceCount=function(){return Object.keys(Ze).length},t.getLiveInheritedInstances=function(){var c=[],d;for(d in Ze)Ze.hasOwnProperty(d)&&c.push(Ze[d]);return c},t.flushPendingDeletes=qt,t.setDelayFunction=function(c){Be=c,gt.length&&Be&&Be(qt)},Et=t.InternalError=Ie("InternalError"),J.prototype.isAliasOf=function(c){if(!(this instanceof J&&c instanceof J))return!1;var d=this.M.P.N,m=this.M.O,v=c.M.P.N;for(c=c.M.O;d.R;)m=d.ba(m),d=d.R;for(;v.R;)c=v.ba(c),v=v.R;return d===v&&m===c},J.prototype.clone=function(){if(this.M.O||ge(this),this.M.aa)return this.M.count.value+=1,this;var c=dt,d=Object,m=d.create,v=Object.getPrototypeOf(this),x=this.M;return c=c(m.call(d,v,{M:{value:{count:x.count,$:x.$,aa:x.aa,O:x.O,P:x.P,T:x.T,U:x.U}}})),c.M.count.value+=1,c.M.$=!1,c},J.prototype.delete=function(){this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),kt(this),ft(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},J.prototype.isDeleted=function(){return!this.M.O},J.prototype.deleteLater=function(){return this.M.O||ge(this),this.M.$&&!this.M.aa&&V("Object already scheduled for deletion"),gt.push(this),gt.length===1&&Be&&Be(qt),this.M.$=!0,this},Ye.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Ye.prototype.ha=function(c){this.W&&this.W(c)},Ye.prototype.argPackAdvance=8,Ye.prototype.readValueFromPointer=qe,Ye.prototype.deleteObject=function(c){c!==null&&c.delete()},Ye.prototype.fromWireType=function(c){function d(){return this.da?Jt(this.N.X,{P:this.wa,O:m,U:this,T:c}):Jt(this.N.X,{P:this,O:c})}var m=this.qa(c);if(!m)return this.ha(c),null;var v=ct(this.N,m);if(v!==void 0)return v.M.count.value===0?(v.M.O=m,v.M.T=c,v.clone()):(v=v.clone(),this.ha(c),v);if(v=this.N.pa(m),v=Kt[v],!v)return d.call(this);v=this.ca?v.la:v.pointerType;var x=He(m,this.N,v.N);return x===null?d.call(this):this.da?Jt(v.N.X,{P:v,O:x,U:this,T:c}):Jt(v.N.X,{P:v,O:x})},Ut=t.UnboundTypeError=Ie("UnboundTypeError");var tc=typeof atob=="function"?atob:function(c){var d="",m=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(m++));v=v<<2|x>>4,x=(x&15)<<4|E>>2;var I=(E&3)<<6|P;d+=String.fromCharCode(v),E!==64&&(d+=String.fromCharCode(x)),P!==64&&(d+=String.fromCharCode(I))}while(m<c.length);return d},rc={l:function(c,d,m,v){de("Assertion failed: "+(c?h(y,c):"")+", at: "+[d?d?h(y,d):"":"unknown filename",m,v?v?h(y,v):"":"unknown function"])},q:function(c,d,m){c=Ee(c),d=_n(d,"wrapper"),m=ut(m);var v=[].slice,x=d.N,E=x.X,P=x.R.X,I=x.R.constructor;c=Je(c,function(){x.R.ja.forEach(function(L){if(this[L]===P[L])throw new $t("Pure virtual function "+L+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:E}),this.__construct.apply(this,v.call(arguments))}),E.__construct=function(){this===E&&V("Pass correct 'this' to __construct");var L=I.implement.apply(void 0,[this].concat(v.call(arguments)));kt(L);var F=L.M;L.notifyOnDestruction(),F.aa=!0,Object.defineProperties(this,{M:{value:F}}),dt(this),L=F.O,L=ur(x,L),Ze.hasOwnProperty(L)?V("Tried to register registered instance: "+L):Ze[L]=this},E.__destruct=function(){this===E&&V("Pass correct 'this' to __destruct"),kt(this);var L=this.M.O;L=ur(x,L),Ze.hasOwnProperty(L)?delete Ze[L]:V("Tried to unregister unregistered instance: "+L)},c.prototype=Object.create(E);for(var N in m)c.prototype[N]=m[N];return Tt(c)},j:function(c){var d=$e[c];delete $e[c];var m=d.fa,v=d.W,x=d.ia,E=x.map(P=>P.ta).concat(x.map(P=>P.za));j([c],E,P=>{var I={};return x.forEach((N,L)=>{var F=P[L],z=N.ra,Z=N.sa,ke=P[L+x.length],ae=N.ya,Ke=N.Aa;I[N.oa]={read:pt=>F.fromWireType(z(Z,pt)),write:(pt,Er)=>{var Ct=[];ae(Ke,pt,ke.toWireType(Ct,Er)),Pt(Ct)}}}),[{name:d.name,fromWireType:function(N){var L={},F;for(F in I)L[F]=I[F].read(N);return v(N),L},toWireType:function(N,L){for(var F in I)if(!(F in L))throw new TypeError('Missing field: "'+F+'"');var z=m();for(F in I)I[F].write(z,L[F]);return N!==null&&N.push(v,z),z},argPackAdvance:8,readValueFromPointer:qe,V:v}]})},v:function(){},B:function(c,d,m,v,x){var E=se(m);d=Ee(d),Q(c,{name:d,fromWireType:function(P){return!!P},toWireType:function(P,I){return I?v:x},argPackAdvance:8,readValueFromPointer:function(P){if(m===1)var I=b;else if(m===2)I=k;else if(m===4)I=R;else throw new TypeError("Unknown boolean type size: "+d);return this.fromWireType(I[P>>E])},V:null})},f:function(c,d,m,v,x,E,P,I,N,L,F,z,Z){F=Ee(F),E=we(x,E),I&&(I=we(P,I)),L&&(L=we(N,L)),Z=we(z,Z);var ke=Me(F);ie(ke,function(){be("Cannot construct "+F+" due to unbound types",[v])}),j([c,d,m],v?[v]:[],function(ae){if(ae=ae[0],v)var Ke=ae.N,pt=Ke.X;else pt=J.prototype;ae=Je(ke,function(){if(Object.getPrototypeOf(this)!==Er)throw new Re("Use 'new' to construct "+F);if(Ct.Y===void 0)throw new Re(F+" has no accessible constructor");var Js=Ct.Y[arguments.length];if(Js===void 0)throw new Re("Tried to invoke ctor of "+F+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Ct.Y).toString()+") parameters instead!");return Js.apply(this,arguments)});var Er=Object.create(pt,{constructor:{value:ae}});ae.prototype=Er;var Ct=new te(F,ae,Er,Z,Ke,E,I,L);Ke=new Ye(F,Ct,!0,!1),pt=new Ye(F+"*",Ct,!1,!1);var Ks=new Ye(F+" const*",Ct,!1,!0);return Kt[c]={pointerType:pt,la:Ks},et(ke,ae),[Ke,pt,Ks]})},d:function(c,d,m,v,x,E,P){var I=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(N){function L(){be("Cannot call "+F+" due to unbound types",I)}N=N[0];var F=N.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]);var z=N.N.constructor;return z[d]===void 0?(L.Z=m-1,z[d]=L):(pe(z,d,F),z[d].S[m-1]=L),j([],I,function(Z){return Z=Se(F,[Z[0],null].concat(Z.slice(1)),null,E,P),z[d].S===void 0?(Z.Z=m-1,z[d]=Z):z[d].S[m-1]=Z,[]}),[]})},p:function(c,d,m,v,x,E){0<d||de();var P=Xe(d,m);x=we(v,x),j([],[c],function(I){I=I[0];var N="constructor "+I.name;if(I.N.Y===void 0&&(I.N.Y=[]),I.N.Y[d-1]!==void 0)throw new Re("Cannot register multiple constructors with identical number of parameters ("+(d-1)+") for class '"+I.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return I.N.Y[d-1]=()=>{be("Cannot construct "+I.name+" due to unbound types",P)},j([],P,function(L){return L.splice(1,0,null),I.N.Y[d-1]=Se(N,L,null,x,E),[]}),[]})},a:function(c,d,m,v,x,E,P,I){var N=Xe(m,v);d=Ee(d),E=we(x,E),j([],[c],function(L){function F(){be("Cannot call "+z+" due to unbound types",N)}L=L[0];var z=L.name+"."+d;d.startsWith("@@")&&(d=Symbol[d.substring(2)]),I&&L.N.ja.push(d);var Z=L.N.X,ke=Z[d];return ke===void 0||ke.S===void 0&&ke.className!==L.name&&ke.Z===m-2?(F.Z=m-2,F.className=L.name,Z[d]=F):(pe(Z,d,z),Z[d].S[m-2]=F),j([],N,function(ae){return ae=Se(z,ae,L,E,P),Z[d].S===void 0?(ae.Z=m-2,Z[d]=ae):Z[d].S[m-2]=ae,[]}),[]})},A:function(c,d){d=Ee(d),Q(c,{name:d,fromWireType:function(m){var v=ut(m);return We(m),v},toWireType:function(m,v){return Tt(v)},argPackAdvance:8,readValueFromPointer:qe,V:null})},n:function(c,d,m){m=se(m),d=Ee(d),Q(c,{name:d,fromWireType:function(v){return v},toWireType:function(v,x){return x},argPackAdvance:8,readValueFromPointer:It(d,m),V:null})},e:function(c,d,m,v,x){d=Ee(d),x===-1&&(x=4294967295),x=se(m);var E=I=>I;if(v===0){var P=32-8*m;E=I=>I<<P>>>P}m=d.includes("unsigned")?function(I,N){return N>>>0}:function(I,N){return N},Q(c,{name:d,fromWireType:E,toWireType:m,argPackAdvance:8,readValueFromPointer:ze(d,x,v!==0),V:null})},b:function(c,d,m){function v(E){E>>=2;var P=w;return new x(g,P[E+1],P[E])}var x=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][d];m=Ee(m),Q(c,{name:m,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(c,d){d=Ee(d);var m=d==="std::string";Q(c,{name:d,fromWireType:function(v){var x=w[v>>2],E=v+4;if(m)for(var P=E,I=0;I<=x;++I){var N=E+I;if(I==x||y[N]==0){if(P=P?h(y,P,N-P):"",L===void 0)var L=P;else L+=String.fromCharCode(0),L+=P;P=N+1}}else{for(L=Array(x),I=0;I<x;++I)L[I]=String.fromCharCode(y[E+I]);L=L.join("")}return Rt(v),L},toWireType:function(v,x){x instanceof ArrayBuffer&&(x=new Uint8Array(x));var E,P=typeof x=="string";if(P||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int8Array||V("Cannot pass non-string to std::string"),m&&P){var I=0;for(E=0;E<x.length;++E){var N=x.charCodeAt(E);127>=N?I++:2047>=N?I+=2:55296<=N&&57343>=N?(I+=4,++E):I+=3}E=I}else E=x.length;if(I=vi(4+E+1),N=I+4,w[I>>2]=E,m&&P){if(P=N,N=E+1,E=y,0<N){N=P+N-1;for(var L=0;L<x.length;++L){var F=x.charCodeAt(L);if(55296<=F&&57343>=F){var z=x.charCodeAt(++L);F=65536+((F&1023)<<10)|z&1023}if(127>=F){if(P>=N)break;E[P++]=F}else{if(2047>=F){if(P+1>=N)break;E[P++]=192|F>>6}else{if(65535>=F){if(P+2>=N)break;E[P++]=224|F>>12}else{if(P+3>=N)break;E[P++]=240|F>>18,E[P++]=128|F>>12&63}E[P++]=128|F>>6&63}E[P++]=128|F&63}}E[P]=0}}else if(P)for(P=0;P<E;++P)L=x.charCodeAt(P),255<L&&(Rt(N),V("String has UTF-16 code units that do not fit in 8 bits")),y[N+P]=L;else for(P=0;P<E;++P)y[N+P]=x[P];return v!==null&&v.push(Rt,I),I},argPackAdvance:8,readValueFromPointer:qe,V:function(v){Rt(v)}})},i:function(c,d,m){if(m=Ee(m),d===2)var v=tt,x=kr,E=cr,P=()=>S,I=1;else d===4&&(v=Tn,x=kn,E=En,P=()=>w,I=2);Q(c,{name:m,fromWireType:function(N){for(var L=w[N>>2],F=P(),z,Z=N+4,ke=0;ke<=L;++ke){var ae=N+4+ke*d;(ke==L||F[ae>>I]==0)&&(Z=v(Z,ae-Z),z===void 0?z=Z:(z+=String.fromCharCode(0),z+=Z),Z=ae+d)}return Rt(N),z},toWireType:function(N,L){typeof L!="string"&&V("Cannot pass non-string to C++ string type "+m);var F=E(L),z=vi(4+F+d);return w[z>>2]=F>>I,x(L,z+4,F+d),N!==null&&N.push(Rt,z),z},argPackAdvance:8,readValueFromPointer:qe,V:function(N){Rt(N)}})},k:function(c,d,m,v,x,E){$e[c]={name:Ee(d),fa:we(m,v),W:we(x,E),ia:[]}},h:function(c,d,m,v,x,E,P,I,N,L){$e[c].ia.push({oa:Ee(d),ta:m,ra:we(v,x),sa:E,za:P,ya:we(I,N),Aa:L})},C:function(c,d){d=Ee(d),Q(c,{va:!0,name:d,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,d,m,v,x){c=On[c],d=ut(d),m=Vs(m);var E=[];return w[v>>2]=Tt(E),c(d,m,E,x)},t:function(c,d,m,v){c=On[c],d=ut(d),m=Vs(m),c(d,m,null,v)},g:We,m:function(c,d){var m=Zf(c,d),v=m[0];d=v.name+"_$"+m.slice(1).map(function(P){return P.name}).join("_")+"$";var x=Hs[d];if(x!==void 0)return x;var E=Array(c-1);return x=Jf((P,I,N,L)=>{for(var F=0,z=0;z<c-1;++z)E[z]=m[z+1].readValueFromPointer(L+F),F+=m[z+1].argPackAdvance;for(P=P[I].apply(P,E),z=0;z<c-1;++z)m[z+1].ma&&m[z+1].ma(E[z]);if(!v.va)return v.toWireType(N,P)}),Hs[d]=x},D:function(c){4<c&&(Pe[c].ga+=1)},r:function(c){var d=ut(c);Pt(d),We(c)},c:function(){de("")},x:function(c,d,m){y.copyWithin(c,d,d+m)},w:function(c){var d=y.length;if(c>>>=0,2147483648<c)return!1;for(var m=1;4>=m;m*=2){var v=d*(1+.2/m);v=Math.min(v,c+100663296);var x=Math;v=Math.max(c,v),x=x.min.call(x,2147483648,v+(65536-v%65536)%65536);e:{try{l.grow(x-g.byteLength+65535>>>16),A();var E=1;break e}catch{}E=void 0}if(E)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,d,m,v){for(var x=0,E=0;E<m;E++){var P=w[d>>2],I=w[d+4>>2];d+=8;for(var N=0;N<I;N++){var L=y[P+N],F=ec[c];L===0||L===10?((c===1?s:a)(h(F,0)),F.length=0):F.push(L)}x+=I}return w[v>>2]=x,0}};(function(){function c(x){t.asm=x.exports,l=t.asm.E,A(),D=t.asm.J,Y.unshift(t.asm.F),ce--,t.monitorRunDependencies&&t.monitorRunDependencies(ce),ce==0&&(oe!==null&&(clearInterval(oe),oe=null),ve&&(x=ve,ve=null,x()))}function d(x){c(x.instance)}function m(x){return Te().then(function(E){return E instanceof WebAssembly.Instance?E:WebAssembly.instantiate(E,v)}).then(function(E){return E}).then(x,function(E){a("failed to asynchronously prepare wasm: "+E),de(E)})}var v={a:rc};if(ce++,t.monitorRunDependencies&&t.monitorRunDependencies(ce),t.instantiateWasm)try{return t.instantiateWasm(v,c)}catch(x){a("Module.instantiateWasm callback failed with error: "+x),r(x)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||le(ee)||typeof fetch!="function"?m(d):fetch(ee,{credentials:"same-origin"}).then(function(x){return WebAssembly.instantiateStreaming(x,v).then(d,function(E){return a("wasm streaming compile failed: "+E),a("falling back to ArrayBuffer instantiation"),m(d)})})}().catch(r),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Xs=t.___getTypeName=function(){return(Xs=t.___getTypeName=t.asm.G).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.H).apply(null,arguments)};var vi=t._malloc=function(){return(vi=t._malloc=t.asm.I).apply(null,arguments)},Rt=t._free=function(){return(Rt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var An;ve=function c(){An||Qs(),An||(ve=c)};function Qs(){function c(){if(!An&&(An=!0,t.calledRun=!0,!p)){if(_t(Y),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var d=t.postRun.shift();ue.unshift(d)}_t(ue)}}if(!(0<ce)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)_e();_t(q),0<ce||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),c()},1)):c())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return Qs(),e.ready}var ya,wa=Zt(()=>{ya=""});async function Sa(e){let{default:t}=await Promise.resolve().then(()=>(wa(),xa));return Ri(await t(e))}var _a=Zt(()=>{va();Dn()});var Li={};Rn(Li,{getYoga:()=>Pc,init:()=>Oc});async function Ec(e,t){let n=e;if((typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=await fetch(n)),typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(o){n.headers.get("Content-Type")!=="application/wasm"&&console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o)}let i=await n.arrayBuffer();return await WebAssembly.instantiate(i,t)}let r=await WebAssembly.instantiate("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,t);return r instanceof WebAssembly.Instance?{instance:r,module:n}:r}function Oc(e){Tc({instantiateWasm(t,n){return Ec(e,t).then(({instance:r})=>{n(r)}).catch(Ci),{}}}).then(Ta).catch(Ci)}function Pc(){return kc}var Tc,Ta,Ci,kc,Mi=Zt(()=>{_a();Tc=Sa,kc=new Promise((e,t)=>{Ta=e,Ci=t})});var io=U(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});Object.defineProperty(no,"default",{enumerable:!0,get:()=>Ld});function Ld(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");if(e.includes("var(")||e.includes("calc("))return`calc(${e} * -1)`}});var hu=U(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});Object.defineProperty(oo,"default",{enumerable:!0,get:()=>Md});var Md=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]});var mu=U(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});Object.defineProperty(so,"default",{enumerable:!0,get:()=>Nd});function Nd(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var ao=U((Ox,gu)=>{gu.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),caretColor:({theme:e})=>e("colors"),accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),stroke:({theme:e})=>e("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}});var Jn={};Rn(Jn,{default:()=>Wd});var Wd,Zn=Zt(()=>{Wd={info(e,t){console.info(...Array.isArray(e)?[e]:[t,e])},warn(e,t){console.warn(...Array.isArray(e)?[e]:[t,e])},risk(e,t){console.error(...Array.isArray(e)?[e]:[t,e])}}});var bu=U(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});Object.defineProperty(uo,"default",{enumerable:!0,get:()=>Bd});var Dd=Fd((Zn(),Cn(Jn)));function Fd(e){return e&&e.__esModule?e:{default:e}}function $r({version:e,from:t,to:n}){Dd.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var Bd={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return $r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return $r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return $r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return $r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return $r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var vu=U(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});Object.defineProperty(lo,"defaults",{enumerable:!0,get:()=>$d});function $d(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var yu=U(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});Object.defineProperty(fo,"toPath",{enumerable:!0,get:()=>qd});function qd(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var wu=U(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});Object.defineProperty(co,"normalizeConfig",{enumerable:!0,get:()=>zd});var qr=Ud((Zn(),Cn(Jn)));function xu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(xu=function(r){return r?n:t})(e)}function Ud(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=xu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function zd(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||qr.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")qr.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var s,a,u,f,l,p,h,g,b,y;return!((s=e.purge)===null||s===void 0)&&s.extract?e.purge.extract:!((a=e.content)===null||a===void 0)&&a.extract?e.content.extract:!((u=e.purge)===null||u===void 0||(f=u.extract)===null||f===void 0)&&f.DEFAULT?e.purge.extract.DEFAULT:!((l=e.content)===null||l===void 0||(p=l.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((h=e.purge)===null||h===void 0||(g=h.options)===null||g===void 0)&&g.extractors?e.purge.options.extractors:!((b=e.content)===null||b===void 0||(y=b.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,f;if(!((s=e.purge)===null||s===void 0||(a=s.options)===null||a===void 0)&&a.defaultExtractor)return e.purge.options.defaultExtractor;if(!((u=e.content)===null||u===void 0||(f=u.options)===null||f===void 0)&&f.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:s,extractor:a}of r??[])for(let u of s)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,s,a,u,f,l;return!((o=e.purge)===null||o===void 0)&&o.transform?e.purge.transform:!((s=e.content)===null||s===void 0)&&s.transform?e.content.transform:!((a=e.purge)===null||a===void 0||(u=a.transform)===null||u===void 0)&&u.DEFAULT?e.purge.transform.DEFAULT:!((f=e.content)===null||f===void 0||(l=f.transform)===null||l===void 0)&&l.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){qr.default.warn("invalid-glob-braces",[`The glob pattern ${(0,qr.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,qr.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var Su=U(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});Object.defineProperty(po,"default",{enumerable:!0,get:()=>Gd});function Gd(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var _u=U(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});Object.defineProperty(mo,"cloneDeep",{enumerable:!0,get:()=>ho});function ho(e){return Array.isArray(e)?e.map(t=>ho(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,ho(n)])):e}});var go=U((ei,Tu)=>{"use strict";ei.__esModule=!0;ei.default=Hd;function jd(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!s)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var Vd=/\\/;function Hd(e){var t=Vd.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=jd(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}Tu.exports=ei.default});var Eu=U((ti,ku)=>{"use strict";ti.__esModule=!0;ti.default=Yd;function Yd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}ku.exports=ti.default});var Pu=U((ri,Ou)=>{"use strict";ri.__esModule=!0;ri.default=Xd;function Xd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}Ou.exports=ri.default});var Iu=U((ni,Au)=>{"use strict";ni.__esModule=!0;ni.default=Qd;function Qd(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}Au.exports=ni.default});var Ur=U(xt=>{"use strict";xt.__esModule=!0;xt.stripComments=xt.ensureObject=xt.getProp=xt.unesc=void 0;var Kd=ii(go());xt.unesc=Kd.default;var Jd=ii(Eu());xt.getProp=Jd.default;var Zd=ii(Pu());xt.ensureObject=Zd.default;var ep=ii(Iu());xt.stripComments=ep.default;function ii(e){return e&&e.__esModule?e:{default:e}}});var Dt=U((zr,Lu)=>{"use strict";zr.__esModule=!0;zr.default=void 0;var Ru=Ur();function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tp(e,t,n){return t&&Cu(e.prototype,t),n&&Cu(e,n),e}var rp=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(a){return e(a,r)}):r[i]=e(o,r)}return r},np=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=rp(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var s=this[r],a=this.raws[r];this[r]=s+i,a||o!==i?this.raws[r]=(a||s)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},tp(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,Ru.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,Ru.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();zr.default=np;Lu.exports=zr.default});var Ce=U(he=>{"use strict";he.__esModule=!0;he.UNIVERSAL=he.ATTRIBUTE=he.CLASS=he.COMBINATOR=he.COMMENT=he.ID=he.NESTING=he.PSEUDO=he.ROOT=he.SELECTOR=he.STRING=he.TAG=void 0;var ip="tag";he.TAG=ip;var op="string";he.STRING=op;var sp="selector";he.SELECTOR=sp;var ap="root";he.ROOT=ap;var up="pseudo";he.PSEUDO=up;var lp="nesting";he.NESTING=lp;var fp="id";he.ID=fp;var cp="comment";he.COMMENT=cp;var dp="combinator";he.COMBINATOR=dp;var pp="class";he.CLASS=pp;var hp="attribute";he.ATTRIBUTE=hp;var mp="universal";he.UNIVERSAL=mp});var oi=U((Gr,Du)=>{"use strict";Gr.__esModule=!0;Gr.default=void 0;var gp=vp(Dt()),Ft=bp(Ce());function Wu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Wu=function(){return e},e}function bp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Wu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function vp(e){return e&&e.__esModule?e:{default:e}}function yp(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=xp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function xp(e,t){if(e){if(typeof e=="string")return Mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mu(e,t)}}function Mu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wp(e,t,n){return t&&Nu(e.prototype,t),n&&Nu(e,n),e}function Sp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bo(e,t)}function bo(e,t){return bo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bo(e,t)}var _p=function(e){Sp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},n.removeAll=function(){for(var i=yp(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},n.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Ft.UNIVERSAL)return i.call(o,s)})},n.split=function(i){var o=this,s=[];return this.reduce(function(a,u,f){var l=i.call(o,u);return s.push(u),l?(a.push(s),s=[]):f===o.length-1&&a.push(s),a},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},wp(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(gp.default);Gr.default=_p;Du.exports=Gr.default});var yo=U((jr,Bu)=>{"use strict";jr.__esModule=!0;jr.default=void 0;var Tp=Ep(oi()),kp=Ce();function Ep(e){return e&&e.__esModule?e:{default:e}}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Op(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function Pp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}function vo(e,t){return vo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vo(e,t)}var Ap=function(e){Pp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=kp.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Op(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Tp.default);jr.default=Ap;Bu.exports=jr.default});var wo=U((Vr,$u)=>{"use strict";Vr.__esModule=!0;Vr.default=void 0;var Ip=Cp(oi()),Rp=Ce();function Cp(e){return e&&e.__esModule?e:{default:e}}function Lp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xo(e,t)}function xo(e,t){return xo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xo(e,t)}var Mp=function(e){Lp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Rp.SELECTOR,r}return t}(Ip.default);Vr.default=Mp;$u.exports=Vr.default});var si=U((Wx,qu)=>{"use strict";var Np={},Wp=Np.hasOwnProperty,Dp=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Wp.call(t,i)?t[i]:n[i];return r},Fp=/[ -,\.\/:-@\[-\^`\{-~]/,Bp=/[ -,\.\/:-@\[\]\^`\{-~]/,$p=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,So=function e(t,n){n=Dp(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var f=t.charAt(a++),l=f.charCodeAt(),p=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<u){var h=t.charCodeAt(a++);(h&64512)==56320?l=((l&1023)<<10)+(h&1023)+65536:a--}p="\\"+l.toString(16).toUpperCase()+" "}else n.escapeEverything?Fp.test(f)?p="\\"+f:p="\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+l.toString(16).toUpperCase()+" ":f=="\\"||!i&&(f=='"'&&r==f||f=="'"&&r==f)||i&&Bp.test(f)?p="\\"+f:p=f;s+=p}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace($p,function(g,b,y){return b&&b.length%2?g:(b||"")+y}),!i&&n.wrap?r+s+r:s};So.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};So.version="3.0.0";qu.exports=So});var To=U((Hr,Gu)=>{"use strict";Hr.__esModule=!0;Hr.default=void 0;var qp=zu(si()),Up=Ur(),zp=zu(Dt()),Gp=Ce();function zu(e){return e&&e.__esModule?e:{default:e}}function Uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jp(e,t,n){return t&&Uu(e.prototype,t),n&&Uu(e,n),e}function Vp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_o(e,t)}function _o(e,t){return _o=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_o(e,t)}var Hp=function(e){Vp(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Gp.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},jp(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,qp.default)(i,{isIdentifier:!0});o!==i?((0,Up.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(zp.default);Hr.default=Hp;Gu.exports=Hr.default});var Eo=U((Yr,ju)=>{"use strict";Yr.__esModule=!0;Yr.default=void 0;var Yp=Qp(Dt()),Xp=Ce();function Qp(e){return e&&e.__esModule?e:{default:e}}function Kp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ko(e,t)}function ko(e,t){return ko=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ko(e,t)}var Jp=function(e){Kp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Xp.COMMENT,r}return t}(Yp.default);Yr.default=Jp;ju.exports=Yr.default});var Po=U((Xr,Vu)=>{"use strict";Xr.__esModule=!0;Xr.default=void 0;var Zp=th(Dt()),eh=Ce();function th(e){return e&&e.__esModule?e:{default:e}}function rh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Oo(e,t)}function Oo(e,t){return Oo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Oo(e,t)}var nh=function(e){rh(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=eh.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Zp.default);Xr.default=nh;Vu.exports=Xr.default});var ai=U((Qr,Xu)=>{"use strict";Qr.__esModule=!0;Qr.default=void 0;var ih=Yu(si()),oh=Ur(),sh=Yu(Dt());function Yu(e){return e&&e.__esModule?e:{default:e}}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ah(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function uh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ao(e,t)}function Ao(e,t){return Ao=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ao(e,t)}var lh=function(e){uh(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},ah(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var o=(0,ih.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,oh.ensureObject)(this,"raws"),this.raws.namespace=o):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(sh.default);Qr.default=lh;Xu.exports=Qr.default});var Ro=U((Kr,Qu)=>{"use strict";Kr.__esModule=!0;Kr.default=void 0;var fh=dh(ai()),ch=Ce();function dh(e){return e&&e.__esModule?e:{default:e}}function ph(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Io(e,t)}function Io(e,t){return Io=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Io(e,t)}var hh=function(e){ph(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ch.TAG,r}return t}(fh.default);Kr.default=hh;Qu.exports=Kr.default});var Lo=U((Jr,Ku)=>{"use strict";Jr.__esModule=!0;Jr.default=void 0;var mh=bh(Dt()),gh=Ce();function bh(e){return e&&e.__esModule?e:{default:e}}function vh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Co(e,t)}function Co(e,t){return Co=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Co(e,t)}var yh=function(e){vh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=gh.STRING,r}return t}(mh.default);Jr.default=yh;Ku.exports=Jr.default});var No=U((Zr,Ju)=>{"use strict";Zr.__esModule=!0;Zr.default=void 0;var xh=Sh(oi()),wh=Ce();function Sh(e){return e&&e.__esModule?e:{default:e}}function _h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mo(e,t)}function Mo(e,t){return Mo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mo(e,t)}var Th=function(e){_h(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=wh.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(xh.default);Zr.default=Th;Ju.exports=Zr.default});var el=U((Dx,Zu)=>{Zu.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var qo=U(rn=>{"use strict";rn.__esModule=!0;rn.unescapeValue=$o;rn.default=void 0;var en=Bo(si()),kh=Bo(go()),Eh=Bo(ai()),Oh=Ce(),Wo;function Bo(e){return e&&e.__esModule?e:{default:e}}function tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ph(e,t,n){return t&&tl(e.prototype,t),n&&tl(e,n),e}function Ah(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t)}function Fo(e,t){return Fo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fo(e,t)}var tn=el(),Ih=/^('|")([^]*)\1$/,Rh=tn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Ch=tn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Lh=tn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function $o(e){var t=!1,n=null,r=e,i=r.match(Ih);return i&&(n=i[1],r=i[2]),r=(0,kh.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Mh(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Lh();var t=$o(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var ui=function(e){Ah(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Mh(r))||this,i.type=Oh.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:tn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:tn(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=Do[o],a=(0,en.default)(this._value,s);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,en.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var f=this.preferredQuoteMark(i);if(f===t.NO_QUOTE){var l=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=Do[l],h=(0,en.default)(o,p);if(h.length<u.length)return l}return f}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,en.default)(this._value,Do[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var s=(0,en.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},n._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=rl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},n.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var f=this._spacesFor("value");o+=f.before.length;var l=this.stringifyProperty("value");if(i==="value")return l?o:-1;o+=l.length,o+=f.after.length;var p=this._spacesFor("insensitive");return o+=p.before.length,i==="insensitive"&&this.insensitive?o:-1},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),rl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Ph(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Ch()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=$o(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Rh(),a===this._value&&u===this._quoteMark)return;this._value=a,this._quoteMark=u,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(Eh.default);rn.default=ui;ui.NO_QUOTE=null;ui.SINGLE_QUOTE="'";ui.DOUBLE_QUOTE='"';var Do=(Wo={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Wo[null]={isIdentifier:!0},Wo);function rl(e,t){return""+t.before+e+t.after}});var zo=U((nn,nl)=>{"use strict";nn.__esModule=!0;nn.default=void 0;var Nh=Dh(ai()),Wh=Ce();function Dh(e){return e&&e.__esModule?e:{default:e}}function Fh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uo(e,t)}function Uo(e,t){return Uo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Uo(e,t)}var Bh=function(e){Fh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Wh.UNIVERSAL,r.value="*",r}return t}(Nh.default);nn.default=Bh;nl.exports=nn.default});var jo=U((on,il)=>{"use strict";on.__esModule=!0;on.default=void 0;var $h=Uh(Dt()),qh=Ce();function Uh(e){return e&&e.__esModule?e:{default:e}}function zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Go(e,t)}function Go(e,t){return Go=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Go(e,t)}var Gh=function(e){zh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=qh.COMBINATOR,r}return t}($h.default);on.default=Gh;il.exports=on.default});var Ho=U((sn,ol)=>{"use strict";sn.__esModule=!0;sn.default=void 0;var jh=Hh(Dt()),Vh=Ce();function Hh(e){return e&&e.__esModule?e:{default:e}}function Yh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function Vo(e,t){return Vo=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Vo(e,t)}var Xh=function(e){Yh(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Vh.NESTING,r.value="&",r}return t}(jh.default);sn.default=Xh;ol.exports=sn.default});var al=U((li,sl)=>{"use strict";li.__esModule=!0;li.default=Qh;function Qh(e){return e.sort(function(t,n){return t-n})}sl.exports=li.default});var Yo=U($=>{"use strict";$.__esModule=!0;$.combinator=$.word=$.comment=$.str=$.tab=$.newline=$.feed=$.cr=$.backslash=$.bang=$.slash=$.doubleQuote=$.singleQuote=$.space=$.greaterThan=$.pipe=$.equals=$.plus=$.caret=$.tilde=$.dollar=$.closeSquare=$.openSquare=$.closeParenthesis=$.openParenthesis=$.semicolon=$.colon=$.comma=$.at=$.asterisk=$.ampersand=void 0;var Kh=38;$.ampersand=Kh;var Jh=42;$.asterisk=Jh;var Zh=64;$.at=Zh;var em=44;$.comma=em;var tm=58;$.colon=tm;var rm=59;$.semicolon=rm;var nm=40;$.openParenthesis=nm;var im=41;$.closeParenthesis=im;var om=91;$.openSquare=om;var sm=93;$.closeSquare=sm;var am=36;$.dollar=am;var um=126;$.tilde=um;var lm=94;$.caret=lm;var fm=43;$.plus=fm;var cm=61;$.equals=cm;var dm=124;$.pipe=dm;var pm=62;$.greaterThan=pm;var hm=32;$.space=hm;var ul=39;$.singleQuote=ul;var mm=34;$.doubleQuote=mm;var gm=47;$.slash=gm;var bm=33;$.bang=bm;var vm=92;$.backslash=vm;var ym=13;$.cr=ym;var xm=12;$.feed=xm;var wm=10;$.newline=wm;var Sm=9;$.tab=Sm;var _m=ul;$.str=_m;var Tm=-1;$.comment=Tm;var km=-2;$.word=km;var Em=-3;$.combinator=Em});var cl=U(an=>{"use strict";an.__esModule=!0;an.default=Lm;an.FIELDS=void 0;var W=Om(Yo()),yr,fe;function fl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return fl=function(){return e},e}function Om(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=fl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Pm=(yr={},yr[W.tab]=!0,yr[W.newline]=!0,yr[W.cr]=!0,yr[W.feed]=!0,yr),Am=(fe={},fe[W.space]=!0,fe[W.tab]=!0,fe[W.newline]=!0,fe[W.cr]=!0,fe[W.feed]=!0,fe[W.ampersand]=!0,fe[W.asterisk]=!0,fe[W.bang]=!0,fe[W.comma]=!0,fe[W.colon]=!0,fe[W.semicolon]=!0,fe[W.openParenthesis]=!0,fe[W.closeParenthesis]=!0,fe[W.openSquare]=!0,fe[W.closeSquare]=!0,fe[W.singleQuote]=!0,fe[W.doubleQuote]=!0,fe[W.plus]=!0,fe[W.pipe]=!0,fe[W.tilde]=!0,fe[W.greaterThan]=!0,fe[W.equals]=!0,fe[W.dollar]=!0,fe[W.caret]=!0,fe[W.slash]=!0,fe),Xo={},ll="0123456789abcdefABCDEF";for(fi=0;fi<ll.length;fi++)Xo[ll.charCodeAt(fi)]=!0;var fi;function Im(e,t){var n=t,r;do{if(r=e.charCodeAt(n),Am[r])return n-1;r===W.backslash?n=Rm(e,n)+1:n++}while(n<e.length);return n-1}function Rm(e,t){var n=t,r=e.charCodeAt(n+1);if(!Pm[r])if(Xo[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(Xo[r]&&i<6);i<6&&r===W.space&&n++}else n++;return n}var Cm={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};an.FIELDS=Cm;function Lm(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,f,l,p,h,g,b,y,k,S,R,w,_,O;function A(D,q){if(e.safe)n+=q,S=n.length-1;else throw e.error("Unclosed "+D,s,a-o,a)}for(;a<i;){switch(f=n.charCodeAt(a),f===W.newline&&(o=a,s+=1),f){case W.space:case W.tab:case W.newline:case W.cr:case W.feed:S=a;do S+=1,f=n.charCodeAt(S),f===W.newline&&(o=S,s+=1);while(f===W.space||f===W.newline||f===W.tab||f===W.cr||f===W.feed);O=W.space,h=s,p=S-o-1,u=S;break;case W.plus:case W.greaterThan:case W.tilde:case W.pipe:S=a;do S+=1,f=n.charCodeAt(S);while(f===W.plus||f===W.greaterThan||f===W.tilde||f===W.pipe);O=W.combinator,h=s,p=a-o,u=S;break;case W.asterisk:case W.ampersand:case W.bang:case W.comma:case W.equals:case W.dollar:case W.caret:case W.openSquare:case W.closeSquare:case W.colon:case W.semicolon:case W.openParenthesis:case W.closeParenthesis:S=a,O=f,h=s,p=a-o,u=S+1;break;case W.singleQuote:case W.doubleQuote:_=f===W.singleQuote?"'":'"',S=a;do for(g=!1,S=n.indexOf(_,S+1),S===-1&&A("quote",_),b=S;n.charCodeAt(b-1)===W.backslash;)b-=1,g=!g;while(g);O=W.str,h=s,p=a-o,u=S+1;break;default:f===W.slash&&n.charCodeAt(a+1)===W.asterisk?(S=n.indexOf("*/",a+2)+1,S===0&&A("comment","*/"),l=n.slice(a,S+1),k=l.split(`
4
+ `),y=k.length-1,y>0?(R=s+y,w=S-k[y].length):(R=s,w=o),O=W.comment,s=R,h=R,p=S-w):f===W.slash?(S=a,O=f,h=s,p=a-o,u=S+1):(S=Im(n,a),O=W.word,h=s,p=S-o),u=S+1;break}t.push([O,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var yl=U((un,vl)=>{"use strict";un.__esModule=!0;un.default=void 0;var Mm=nt(yo()),Qo=nt(wo()),Nm=nt(To()),dl=nt(Eo()),Wm=nt(Po()),Dm=nt(Ro()),Ko=nt(Lo()),Fm=nt(No()),pl=ci(qo()),Bm=nt(zo()),Jo=nt(jo()),$m=nt(Ho()),qm=nt(al()),C=ci(cl()),B=ci(Yo()),Um=ci(Ce()),ye=Ur(),rr,Zo;function bl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return bl=function(){return e},e}function ci(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=bl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function nt(e){return e&&e.__esModule?e:{default:e}}function hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zm(e,t,n){return t&&hl(e.prototype,t),n&&hl(e,n),e}var rs=(rr={},rr[B.space]=!0,rr[B.cr]=!0,rr[B.feed]=!0,rr[B.newline]=!0,rr[B.tab]=!0,rr),Gm=Object.assign({},rs,(Zo={},Zo[B.comment]=!0,Zo));function ml(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function gl(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function nr(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function xr(e){return nr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function es(e,t){if(e)return nr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function wr(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,ye.ensureObject)(e,"raws"),e[t]=(0,ye.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function ts(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function jm(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var Vm=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=es(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Mm.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Qo.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==B.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var o=r.length,s={source:nr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(r[0][C.FIELDS.TYPE]))return this.expected("attribute",r[0][C.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=r[a],g=this.content(h),b=r[a+1];switch(h[C.FIELDS.TYPE]){case B.space:if(p=!0,this.options.lossy)break;if(l){(0,ye.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+g;var k=(0,ye.getProp)(s,"raws","spaces",l,"after")||null;k&&(s.raws.spaces[l].after=k+g)}else u=u+g,f=f+g;break;case B.asterisk:if(b[C.FIELDS.TYPE]===B.equals)s.operator=g,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+g;var S=(0,ye.getProp)(s,"raws","namespace")||null;S&&(s.raws.namespace+=g),l="namespace"}p=!1;break;case B.dollar:if(l==="value"){var R=(0,ye.getProp)(s,"raws","value");s.value+="$",R&&(s.raws.value=R+"$");break}case B.caret:b[C.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),p=!1;break;case B.combinator:if(g==="~"&&b[C.FIELDS.TYPE]===B.equals&&(s.operator=g,l="operator"),g!=="|"){p=!1;break}b[C.FIELDS.TYPE]===B.equals?(s.operator=g,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case B.word:if(b&&this.content(b)==="|"&&r[a+2]&&r[a+2][C.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=g,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,ye.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+g;var w=(0,ye.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=g),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var _=(0,ye.unesc)(g),O=(0,ye.getProp)(s,"raws","value")||"",A=s.value||"";s.value=A+_,s.quoteMark=null,(_!==g||O)&&((0,ye.ensureObject)(s,"raws"),s.raws.value=(O||A)+g),l="value"}else{var D=g==="i"||g==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=D,(!D||g==="I")&&((0,ye.ensureObject)(s,"raws"),s.raws.insensitiveFlag=g),l="insensitive",u&&((0,ye.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,ye.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=g,s.raws.value&&(s.raws.value+=g))}p=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[C.FIELDS.START_POS]});var q=(0,pl.unescapeValue)(g),Y=q.unescaped,ue=q.quoteMark;s.value=Y,s.quoteMark=ue,l="value",(0,ye.ensureObject)(s,"raws"),s.raws.value=g,p=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",h[C.FIELDS.START_POS],g);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[C.FIELDS.START_POS]});s.operator=s.operator?s.operator+g:g,l="operator",p=!1;break;case B.comment:if(l)if(p||b&&b[C.FIELDS.TYPE]===B.space||l==="insensitive"){var _e=(0,ye.getProp)(s,"spaces",l,"after")||"",ce=(0,ye.getProp)(s,"raws","spaces",l,"after")||_e;(0,ye.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=ce+g}else{var oe=s[l]||"",ve=(0,ye.getProp)(s,"raws",l)||oe;(0,ye.ensureObject)(s,"raws"),s.raws[l]=ve+g}else f=f+g;break;default:return this.error('Unexpected "'+g+'" found.',{index:h[C.FIELDS.START_POS]})}a++}wr(s,"attribute"),wr(s,"namespace"),this.newNode(new pl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(rs[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[C.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new dl.default({value:this.content(),source:xr(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];o.push(new Ko.default({value:"",source:nr(f[C.FIELDS.START_LINE],f[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:f[C.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(f){var l=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=l+o.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+o.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][C.FIELDS.TYPE]===B.slash&&this.tokens[r+1]&&this.tokens[r+1][C.FIELDS.TYPE]===B.word&&this.tokens[r+2]&&this.tokens[r+2][C.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,ye.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new Jo.default({value:"/"+i+"/",source:nr(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===B.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,f=a.rawSpace;f!==void 0&&(s.rawSpaceAfter+=f),s.spaces.after+=u}else o.forEach(function(O){return r.newNode(O)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===B.combinator?(h=new Jo.default({value:this.content(),source:xr(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):rs[this.currToken[C.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var g=this.convertWhitespaceNodesToSpace(p),b=g.space,y=g.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var k=this.convertWhitespaceNodesToSpace(p,!0),S=k.space,R=k.rawSpace;R||(R=S);var w={},_={spaces:{}};S.endsWith(" ")&&R.endsWith(" ")?(w.before=S.slice(0,S.length-1),_.spaces.before=R.slice(0,R.length-1)):S.startsWith(" ")&&R.startsWith(" ")?(w.after=S.slice(1),_.spaces.after=R.slice(1)):_.value=R,h=new Jo.default({value:" ",source:es(l,this.tokens[this.position-1]),sourceIndex:l[C.FIELDS.START_POS],spaces:w,raws:_})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===B.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Qo.default({source:{start:ml(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new dl.default({value:this.content(),source:xr(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===B.word)return this.position++,this.word(r);if(this.nextToken[C.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new $m.default({value:this.content(),source:xr(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===Um.PSEUDO){var o=new Qo.default({source:{start:ml(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=gl(this.currToken),this.current.parent.source.end=gl(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===B.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new Ko.default({value:u,source:nr(a[C.FIELDS.START_LINE],a[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:a[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===B.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new Fm.default({value:i,source:es(o,r.currToken),sourceIndex:o[C.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[C.FIELDS.TYPE]===B.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===B.comma||this.prevToken[C.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===B.comma||this.nextToken[C.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new Ko.default({value:this.content(),source:xr(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new Bm.default({value:this.content(),source:xr(o),sourceIndex:o[C.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[C.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[C.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=ts(a,".").filter(function(b){var y=a[b-1]==="\\",k=/^\d+\.\d+%$/.test(a);return!y&&!k}),p=ts(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=ts(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var g=(0,qm.default)(jm([0].concat(l,p)));g.forEach(function(b,y){var k=g[y+1]||a.length,S=a.slice(b,k);if(y===0&&i)return i.call(o,S,g.length);var R,w=o.currToken,_=w[C.FIELDS.START_POS]+g[y],O=nr(w[1],w[2]+b,w[3],w[2]+(k-1));if(~l.indexOf(b)){var A={value:S.slice(1),source:O,sourceIndex:_};R=new Nm.default(wr(A,"value"))}else if(~p.indexOf(b)){var D={value:S.slice(1),source:O,sourceIndex:_};R=new Wm.default(wr(D,"value"))}else{var q={value:S,source:O,sourceIndex:_};wr(q,"value"),R=new Dm.default(q)}o.newNode(R,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[C.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:r&&this.missingParenthesis();break;case B.openSquare:this.attribute();break;case B.dollar:case B.caret:case B.equals:case B.word:this.word();break;case B.colon:this.pseudo();break;case B.comma:this.comma();break;case B.asterisk:this.universal();break;case B.ampersand:this.nesting();break;case B.slash:case B.combinator:this.combinator();break;case B.str:this.string();break;case B.closeSquare:this.missingSquareBracket();case B.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[C.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,wr(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[C.FIELDS.START_POS],r[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(Gm[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},zm(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();un.default=Vm;vl.exports=un.default});var wl=U((ln,xl)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Hm=Ym(yl());function Ym(e){return e&&e.__esModule?e:{default:e}}var Xm=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new Hm.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(f){var l=void 0;return o._shouldUpdateSelector(r,i)&&(l=u.toString(),r.selector=l),{transform:f,root:u,string:l}}).then(s,a)}catch(f){a(f);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();ln.default=Xm;xl.exports=ln.default});var Sl=U(me=>{"use strict";me.__esModule=!0;me.universal=me.tag=me.string=me.selector=me.root=me.pseudo=me.nesting=me.id=me.comment=me.combinator=me.className=me.attribute=void 0;var Qm=it(qo()),Km=it(To()),Jm=it(jo()),Zm=it(Eo()),e0=it(Po()),t0=it(Ho()),r0=it(No()),n0=it(yo()),i0=it(wo()),o0=it(Lo()),s0=it(Ro()),a0=it(zo());function it(e){return e&&e.__esModule?e:{default:e}}var u0=function(t){return new Qm.default(t)};me.attribute=u0;var l0=function(t){return new Km.default(t)};me.className=l0;var f0=function(t){return new Jm.default(t)};me.combinator=f0;var c0=function(t){return new Zm.default(t)};me.comment=c0;var d0=function(t){return new e0.default(t)};me.id=d0;var p0=function(t){return new t0.default(t)};me.nesting=p0;var h0=function(t){return new r0.default(t)};me.pseudo=h0;var m0=function(t){return new n0.default(t)};me.root=m0;var g0=function(t){return new i0.default(t)};me.selector=g0;var b0=function(t){return new o0.default(t)};me.string=b0;var v0=function(t){return new s0.default(t)};me.tag=v0;var y0=function(t){return new a0.default(t)};me.universal=y0});var El=U(re=>{"use strict";re.__esModule=!0;re.isNode=ns;re.isPseudoElement=kl;re.isPseudoClass=I0;re.isContainer=R0;re.isNamespace=C0;re.isUniversal=re.isTag=re.isString=re.isSelector=re.isRoot=re.isPseudo=re.isNesting=re.isIdentifier=re.isComment=re.isCombinator=re.isClassName=re.isAttribute=void 0;var xe=Ce(),Ge,x0=(Ge={},Ge[xe.ATTRIBUTE]=!0,Ge[xe.CLASS]=!0,Ge[xe.COMBINATOR]=!0,Ge[xe.COMMENT]=!0,Ge[xe.ID]=!0,Ge[xe.NESTING]=!0,Ge[xe.PSEUDO]=!0,Ge[xe.ROOT]=!0,Ge[xe.SELECTOR]=!0,Ge[xe.STRING]=!0,Ge[xe.TAG]=!0,Ge[xe.UNIVERSAL]=!0,Ge);function ns(e){return typeof e=="object"&&x0[e.type]}function ot(e,t){return ns(t)&&t.type===e}var _l=ot.bind(null,xe.ATTRIBUTE);re.isAttribute=_l;var w0=ot.bind(null,xe.CLASS);re.isClassName=w0;var S0=ot.bind(null,xe.COMBINATOR);re.isCombinator=S0;var _0=ot.bind(null,xe.COMMENT);re.isComment=_0;var T0=ot.bind(null,xe.ID);re.isIdentifier=T0;var k0=ot.bind(null,xe.NESTING);re.isNesting=k0;var is=ot.bind(null,xe.PSEUDO);re.isPseudo=is;var E0=ot.bind(null,xe.ROOT);re.isRoot=E0;var O0=ot.bind(null,xe.SELECTOR);re.isSelector=O0;var P0=ot.bind(null,xe.STRING);re.isString=P0;var Tl=ot.bind(null,xe.TAG);re.isTag=Tl;var A0=ot.bind(null,xe.UNIVERSAL);re.isUniversal=A0;function kl(e){return is(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function I0(e){return is(e)&&!kl(e)}function R0(e){return!!(ns(e)&&e.walk)}function C0(e){return _l(e)||Tl(e)}});var Ol=U(mt=>{"use strict";mt.__esModule=!0;var os=Ce();Object.keys(os).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===os[e]||(mt[e]=os[e])});var ss=Sl();Object.keys(ss).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===ss[e]||(mt[e]=ss[e])});var as=El();Object.keys(as).forEach(function(e){e==="default"||e==="__esModule"||e in mt&&mt[e]===as[e]||(mt[e]=as[e])})});var Il=U((fn,Al)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var L0=W0(wl()),M0=N0(Ol());function Pl(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Pl=function(){return e},e}function N0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Pl();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function W0(e){return e&&e.__esModule?e:{default:e}}var us=function(t){return new L0.default(t)};Object.assign(us,M0);delete us.__esModule;var D0=us;fn.default=D0;Al.exports=fn.default});var Rl=U(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});Object.defineProperty(ls,"default",{enumerable:!0,get:()=>F0});function F0(e){return e.replace(/\\,/g,"\\2c ")}});var Ll=U((jx,Cl)=>{"use strict";Cl.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var cs=U(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});function B0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}B0(fs,{parseColor:()=>j0,formatColor:()=>V0});var Ml=$0(Ll());function $0(e){return e&&e.__esModule?e:{default:e}}var q0=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,U0=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ht=/(?:\d+|\d*\.\d+)%?/,di=/(?:\s*,\s*|\s+)/,Nl=/\s*[,/]\s*/,Yt=/var\(--(?:[^ )]*?)\)/,z0=new RegExp(`^(rgb)a?\\(\\s*(${Ht.source}|${Yt.source})(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${Nl.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`),G0=new RegExp(`^(hsl)a?\\(\\s*((?:${Ht.source})(?:deg|rad|grad|turn)?|${Yt.source})(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${di.source}(${Ht.source}|${Yt.source}))?(?:${Nl.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`);function j0(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Ml.default)return{mode:"rgb",color:Ml.default[e].map(u=>u.toString())};let i=e.replace(U0,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match(q0);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let s=(o=e.match(z0))!==null&&o!==void 0?o:e.match(G0);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function V0({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var ps=U(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});function H0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}H0(ds,{withAlphaValue:()=>Y0,default:()=>X0});var pi=cs();function Y0(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,pi.parseColor)(e,{loose:!0});return r===null?n:(0,pi.formatColor)({...r,alpha:t})}function X0({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,pi.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,pi.formatColor)({...i,alpha:`var(${n})`})]))}}});var $l=U(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});function Q0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Q0(hs,{pattern:()=>J0,withoutCapturing:()=>Dl,any:()=>Fl,optional:()=>Z0,zeroOrMore:()=>eg,nestedBrackets:()=>Bl,escape:()=>ir});var Wl=/[\\^$.*+?()[\]{}|]/g,K0=RegExp(Wl.source);function cn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function J0(e){return new RegExp(cn(e),"g")}function Dl(e){return new RegExp(`(?:${cn(e)})`,"g")}function Fl(e){return`(?:${e.map(cn).join("|")})`}function Z0(e){return`(?:${cn(e)})?`}function eg(e){return`(?:${cn(e)})*`}function Bl(e,t,n=1){return Dl([ir(e),/[^\s]*/,n===1?`[^${ir(e)}${ir(t)}s]*`:Fl([`[^${ir(e)}${ir(t)}s]*`,Bl(e,t,n-1)]),/[^\s]*/,ir(t)])}function ir(e){return e&&K0.test(e)?e.replace(Wl,"\\$&"):e||""}});var Ul=U(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});Object.defineProperty(ms,"splitAtTopLevelOnly",{enumerable:!0,get:()=>ng});var tg=rg($l());function ql(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ql=function(r){return r?n:t})(e)}function rg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ql(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*ng(e,t){let n=new RegExp(`[(){}\\[\\]${tg.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(n)){let l=f[0]===t[s],p=s===u-1,h=l&&p;f[0]==="("&&r++,f[0]===")"&&r--,f[0]==="["&&r++,f[0]==="]"&&r--,f[0]==="{"&&r++,f[0]==="}"&&r--,l&&r===0&&(a===0&&(a=f.index),s++),h&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var Gl=U(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});function ig(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ig(gs,{parseBoxShadowValue:()=>ug,formatBoxShadowValue:()=>lg});var og=Ul(),sg=new Set(["inset","inherit","initial","revert","unset"]),ag=/\ +(?![^(]*\))/g,zl=/^-?(\d+|\.\d+)(.*?)$/g;function ug(e){return Array.from((0,og.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(ag),s=new Set;for(let a of o)zl.lastIndex=0,!s.has("KEYWORD")&&sg.has(a)?(i.keyword=a,s.add("KEYWORD")):zl.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function lg(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var Kl=U(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});function fg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}fg(vs,{normalize:()=>Xt,url:()=>Hl,number:()=>pg,percentage:()=>Yl,length:()=>Xl,lineWidth:()=>gg,shadow:()=>bg,color:()=>vg,image:()=>yg,gradient:()=>Ql,position:()=>Sg,familyName:()=>_g,genericName:()=>kg,absoluteSize:()=>Og,relativeSize:()=>Ag});var cg=cs(),dg=Gl(),bs=["min","max","clamp","calc"],Vl=/,(?![^(]*\))/g,hi=/_(?![^(]*\))/g;function Xt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Xt(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Hl(e){return e.startsWith("url(")}function pg(e){return!isNaN(Number(e))||bs.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Yl(e){return e.split(hi).every(t=>/%$/g.test(t)||bs.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var hg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],jl=`(?:${hg.join("|")})`;function Xl(e){return e.split(hi).every(t=>t==="0"||new RegExp(`${jl}$`).test(t)||bs.some(n=>new RegExp(`^${n}\\(.+?${jl}`).test(t)))}var mg=new Set(["thin","medium","thick"]);function gg(e){return mg.has(e)}function bg(e){let t=(0,dg.parseBoxShadowValue)(Xt(e));for(let n of t)if(!n.valid)return!1;return!0}function vg(e){let t=0;return e.split(hi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:(0,cg.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function yg(e){let t=0;return e.split(Vl).every(r=>(r=Xt(r),r.startsWith("var(")?!0:Hl(r)||Ql(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var xg=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Ql(e){e=Xt(e);for(let t of xg)if(e.startsWith(`${t}(`))return!0;return!1}var wg=new Set(["center","top","right","bottom","left"]);function Sg(e){let t=0;return e.split(hi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:wg.has(r)||Xl(r)||Yl(r)?(t++,!0):!1))?t>0:!1}function _g(e){let t=0;return e.split(Vl).every(r=>(r=Xt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Tg=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function kg(e){return Tg.has(e)}var Eg=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Og(e){return Eg.has(e)}var Pg=new Set(["larger","smaller"]);function Ag(e){return Pg.has(e)}});var sf=U(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});function Ig(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Ig(ws,{updateAllClasses:()=>Lg,asValue:()=>pn,parseColorFormat:()=>ys,asColor:()=>rf,asLookupValue:()=>nf,coerceValue:()=>Dg});var Rg=xs(Il()),Cg=xs(Rl()),Jl=ps(),je=Kl(),Zl=xs(io());function xs(e){return e&&e.__esModule?e:{default:e}}function Lg(e,t){return(0,Rg.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Cg.default)(o.raws.value))})}).processSync(e)}function tf(e,t){if(!dn(e))return;let n=e.slice(1,-1);if(t(n))return(0,je.normalize)(n)}function Mg(e,t={},n){let r=t[e];if(r!==void 0)return(0,Zl.default)(r);if(dn(e)){let i=tf(e,n);return i===void 0?void 0:(0,Zl.default)(i)}}function pn(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Mg(e.slice(1),t.values,n):tf(e,n)}function dn(e){return e.startsWith("[")&&e.endsWith("]")}function Ng(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function ys(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function rf(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return ys((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Ng(e);if(s!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&l!==void 0?l:dn(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=ys(p),dn(s)?(0,Jl.withAlphaValue)(p,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[s])===void 0?void 0:(0,Jl.withAlphaValue)(p,n.theme.opacity[s]))}return pn(e,t,{validate:je.color})}function nf(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function st(e){return(t,n)=>pn(t,n,{validate:e})}var of={any:pn,color:rf,url:st(je.url),image:st(je.image),length:st(je.length),percentage:st(je.percentage),position:st(je.position),lookup:nf,"generic-name":st(je.genericName),"family-name":st(je.familyName),number:st(je.number),"line-width":st(je.lineWidth),"absolute-size":st(je.absoluteSize),"relative-size":st(je.relativeSize),shadow:st(je.shadow)},ef=Object.keys(of);function Wg(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Dg(e,t,n,r){if(dn(t)){let i=t.slice(1,-1),[o,s]=Wg(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!ef.includes(o))return[];if(s.length>0&&ef.includes(o))return[pn(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=of[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var af=U(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Object.defineProperty(Ss,"default",{enumerable:!0,get:()=>Fg});function Fg(e){return typeof e=="function"?e({}):e}});var df=U(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Object.defineProperty(Ts,"default",{enumerable:!0,get:()=>ib});var Bg=or(io()),$g=or(hu()),qg=or(mu()),Ug=or(ao()),zg=or(bu()),ff=vu(),uf=yu(),Gg=wu(),jg=or(Su()),Vg=_u(),Hg=sf(),Yg=ps(),Xg=or(af());function or(e){return e&&e.__esModule?e:{default:e}}function Sr(e){return typeof e=="function"}function hn(e){return typeof e=="object"&&e!==null}function mn(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?hn(e[i])&&hn(r[i])?e[i]=mn(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var _s={colors:zg.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Bg.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function Qg(e,...t){return Sr(e)?e(...t):e}function Kg(e){return e.reduce((t,{extend:n})=>mn(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Jg(e){return{...e.reduce((t,n)=>(0,ff.defaults)(t,n),{}),extend:Kg(e)}}function lf(e,t){if(Array.isArray(e)&&hn(e[0]))return e.concat(t);if(Array.isArray(t)&&hn(t[0])&&hn(e))return[e,...t];if(Array.isArray(t))return t}function Zg({extend:e,...t}){return mn(t,e,(n,r)=>!Sr(n)&&!r.some(Sr)?mn({},n,...r,lf):(i,o)=>mn({},...[n,...r].map(s=>Qg(s,i,o)),lf))}function*eb(e){let t=(0,uf.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,uf.toPath)(i);s.alpha=o,yield s}}function tb(e){let t=(n,r)=>{for(let i of eb(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Sr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,_s):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Hg.parseColorFormat)(s);return(0,Yg.withAlphaValue)(a,i.alpha,(0,Xg.default)(a))}return(0,jg.default)(s)?(0,Vg.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,..._s}),Object.keys(e).reduce((n,r)=>(n[r]=Sr(e[r])?e[r](t,_s):e[r],n),{})}function cf(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...cf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function rb(e){return[...e].reduceRight((n,r)=>Sr(r)?r({corePlugins:n}):(0,qg.default)(r,n),$g.default)}function nb(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function ib(e){let t=[...cf(e),{prefix:"",important:!1,separator:":",variantOrder:Ug.default.variantOrder}];var n,r;return(0,Gg.normalizeConfig)((0,ff.defaults)({theme:tb(Zg(Jg(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:rb(t.map(i=>i.corePlugins)),plugins:nb(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var pf={};Rn(pf,{default:()=>ob});var ob,hf=Zt(()=>{ob={yellow:e=>e}});var vf=U(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});function sb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}sb(ks,{flagEnabled:()=>lb,issueFlagNotices:()=>fb,default:()=>cb});var ab=bf((hf(),Cn(pf))),ub=bf((Zn(),Cn(Jn)));function bf(e){return e&&e.__esModule?e:{default:e}}var mf={optimizeUniversalDefaults:!1},gn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function lb(e,t){if(gn.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:mf[t])!==null&&i!==void 0?i:!1)}if(gn.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:mf[t])!==null&&a!==void 0?a:!1)}return!1}function gf(e){if(e.experimental==="all")return gn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>gn.experimental.includes(n)&&e.experimental[n])}function fb(e){if(process.env.JEST_WORKER_ID===void 0&&gf(e).length>0){let t=gf(e).map(n=>ab.default.yellow(n)).join(", ");ub.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var cb=gn});var xf=U(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Object.defineProperty(Es,"default",{enumerable:!0,get:()=>yf});var db=hb(ao()),pb=vf();function hb(e){return e&&e.__esModule?e:{default:e}}function yf(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[db.default]).slice().reverse().flatMap(o=>yf(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,pb.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var Sf=U(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Object.defineProperty(Os,"default",{enumerable:!0,get:()=>bb});var mb=wf(df()),gb=wf(xf());function wf(e){return e&&e.__esModule?e:{default:e}}function bb(...e){let[,...t]=(0,gb.default)(e[0]);return(0,mb.default)([...e,...t])}});var Tf=U((i1,_f)=>{var Ps=Sf();_f.exports=(Ps.__esModule?Ps:{default:Ps}).default});import xc from"linebreak";var Or=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=Or((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),fc=Or((e,t)=>{t.exports=["deg","grad","rad","turn"]}),cc=Or((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),dc=Or((e,t)=>{t.exports=["Hz","kHz"]}),pc=Or((e,t)=>{t.exports=["s","ms"]}),hc=lc(),ea=fc(),ta=cc(),ra=dc(),na=pc();function xi(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(mc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=yi(e),this.unit="%";return}var t=bc(e);if(!t){this.type="number",this.value=yi(e);return}this.type=yc(t),this.value=yi(e.substr(0,e.length-t.length)),this.unit=t}xi.prototype.valueOf=function(){return this.value};xi.prototype.toString=function(){return this.value+(this.unit||"")};function Lt(e){return new xi(e)}function mc(e){var t=e.match(/\./g);return t?t.length:0}function yi(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var gc=[].concat(ea,ra,hc,ta,na);function bc(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&gc.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var vc=Object.assign(Ln(ea,"angle"),Ln(ra,"frequency"),Ln(ta,"resolution"),Ln(na,"time"));function Ln(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function yc(e){return vc[e]||"length"}function dr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ia(e){return/^class\s/.test(e.toString())}function _i(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function oa(e){return typeof e=="function"||_i(e)}function sa(e){return"dangerouslySetInnerHTML"in e}function aa(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function X(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new Lt(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Ti(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function Ti(e){let t=new Lt(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Pr(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Fe(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var wi,Si,ua=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function De(e,t,n){if(!wi||!Si){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");wi=new Intl.Segmenter(n,{granularity:"word"}),Si=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...Si.segment(e)].map(r=>r.segment);{let r=[...wi.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function M(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function la(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function pr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Mn(e){return typeof e=="string"}function fa(e){return typeof e=="number"}function ca(e){return typeof e>"u"}function Mt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function zt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function da(e,t){if(t==="break-all")return{words:De(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:De(e,"word"),requiredBreaks:[]};let n=new xc(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var pa=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Nn(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}function Ac(e){return Promise.resolve().then(()=>(Mi(),Li)).then(t=>t.init(e))}function Gt(){return Promise.resolve().then(()=>(Mi(),Li)).then(e=>e.getYoga())}var Ic="image/avif",Rc="image/webp",Fn="image/apng",Bn="image/png",$n="image/jpeg",qn="image/gif",Ni="image/svg+xml";function Oa(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function Pa(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Aa(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var yt=la(100),Ir=new Map,Cc=[Bn,Fn,$n,qn,Ni];function Lc(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Mc(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function ka(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?pr(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function Ea(e){let t,n=Nc(new Uint8Array(e));switch(n){case Bn:case Fn:t=Aa(e);break;case qn:t=Pa(e);break;case $n:t=Oa(e);break}if(!Cc.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${Lc(e)}`,t]}async function br(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=Ea(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Ni){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),f=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,l=ka(e,u);return yt.set(e,[f,...l]),[f,...l]}else if(s==="base64"){let u,f=Mc(a);switch(o){case Bn:case Fn:u=Aa(f);break;case qn:u=Pa(f);break;case $n:u=Oa(f);break}return yt.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),yt.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Ir.has(e))return Ir.get(e);let t=yt.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=ka(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=Ea(i);return[o,...s]}).then(i=>(yt.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),yt.set(n,[]),[]));return Ir.set(n,r),r}function Nc(e){return[255,216,255].every((t,n)=>e[n]===t)?$n:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?Wc(e)?Fn:Bn:[71,73,70,56].every((t,n)=>e[n]===t)?qn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Rc:[60,63,120,109,108].every((t,n)=>e[n]===t)?Ni:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Ic:null}function Wc(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var Wi={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Dc=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Di(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Di(f,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([f,l])=>(typeof l=="string"&&l.toLowerCase()==="currentcolor"&&(l=s),(f==="href"||f==="xlinkHref")&&n==="image"?` ${Wi[f]||f}="${yt.get(l)[0]}"`:` ${Wi[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${pa(f)}:${l}`).join(";")}"`:"";return`<${n}${a}${u}>${Di(r,s)}</${n}>`}async function Ia(e){let t=new Set,n=r=>{if(r&&dr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else if(typeof r=="object")if(r.type==="image"){let i=r.props.href||r.props.xlinkHref;i&&(t.has(i)||t.add(i))}else r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>br(r)))}async function Ra(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...f}=e.props||{};n||=r,f.xmlns="http://www.w3.org/2000/svg";let l=(a==null?void 0:a.color)||t,p=pr(n),h=p?p[3]/p[2]:null;return i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,f.width=i,f.height=o,n&&(f.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([g,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Wi[g]||g}="${b}"`)).join("")}>${Di(u,l)}</svg>`.replace(Dc,encodeURIComponent)}`}var rt="flex",Ca={p:{display:rt,marginTop:"1em",marginBottom:"1em"},div:{display:rt},blockquote:{display:rt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:rt,textAlign:"center"},hr:{display:rt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:rt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:rt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:rt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:rt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:rt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:rt,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:rt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Fc=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function Fi(e){let t={};for(let n in e)Fc.has(n)&&(t[n]=e[n]);return t}import{getPropertyName as Uc,getStylesForProperty as jt}from"css-to-react-native";import{parseElementStyle as zc}from"css-background-parser";import{parse as Gc}from"css-box-shadow";import jc from"parse-css-color";import Bc from"postcss-value-parser";function $c(e,t){try{let n=new Lt(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Bi(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=$c(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function $i(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=Bc(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Bi(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Bi(n[0],t,!0),...Bi(n[1],t,!1)}):{}}import{getPropertyName as qc}from"css-to-react-native";function Rr(e,t){let n=qc(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function La(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Rr(e,"position")||"0% 0%",size:Rr(e,"size")||"100% 100%",repeat:Rr(e,"repeat")||"repeat",origin:Rr(e,"origin")||"border-box",clip:Rr(e,"origin")||"border-box"};return Nn(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var Vc=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Hc=new Set(["lineHeight"]);function Yc(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function er(e,t){let n=Number(t);return isNaN(n)?t:Vc.has(e)?Hc.has(e)?n:String(t):n+"px"}function Xc(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:er(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=jt(e,r,!0),s=jt(e,i,!0);for(let a in o)s[a]=er(e,o[a])+" "+er(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=jt("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:er(e+"Width",r.borderWidth),Style:Fe(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?Gc(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=jt("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?jt("backgroundImage",t,!0):jt("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Nn(t);for(let o of i){let s=jt("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:er(e,r[0]),WebkitTextStrokeColor:er(e,r[1])}}if(e==="textDecorationSkipInk"){let r=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(r))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:r}}}function Ma(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Na=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Da(e){if(typeof e=="string"&&Na.test(e.trim()))return e.trim().replace(Na,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Da(e[t]);return e}return e}function Un(e,t){let n={};if(e){let i=Kc(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=Uc(o),a=Zc(e[o],i);try{let u=Xc(s,a,i)||Yc(s,jt(s,er(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
5
+ `+Ma(s):`
6
+ in CSS rule \`${s}: ${a}\`.${Ma(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=zc(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=La(n));let r=Qc(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=$i(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=X(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=X(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=Da(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],f=a[u],l=typeof f=="string"?X(f,r,r,t)??f:f;a[u]=l}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>X(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:X(a,r,0,t,!1),width:X(u,r,0,t,!1)}))}}return n}function Qc(e,t){if(typeof e=="number")return e;try{let n=new Lt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function Wa(e){if(e.startsWith("hsl")){let t=jc(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Kc(e,t){return e&&e.toLowerCase()!=="currentcolor"?Wa(e):Wa(t)}function Jc(e,t){return e.replace(/currentcolor/gi,t)}function Zc(e,t){return Mn(e)&&(e=Jc(e,t)),e}async function qi(e,t,n,r,i){let o=await Gt(),s={...n,...Un(Ca[t],n),...Un(r,n)};if(t==="img"){let[a,u,f]=await br(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),h=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),g=s.width||i.width,b=s.height||i.height,y=typeof g=="number"&&typeof b=="number";y&&(g-=p,b-=h),g===void 0&&b===void 0?(g="100%",e.setAspectRatio(1/l)):g===void 0?typeof b=="number"?g=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof g=="number"?b=g*l:e.setAspectRatio(1/l)),s.width=y?g+p:g,s.height=y?b+h:b,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=pr(a),f=u?u[3]/u[2]:null,{width:l,height:p}=i;typeof l>"u"&&p?f==null?l=0:typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=X(p,n.fontSize,1,n),l=p/f):typeof p>"u"&&l?f==null?l=0:typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=X(l,n.fontSize,1,n),p=l*f):(typeof l<"u"&&(l=X(l,n.fontSize,1,n)||l),typeof p<"u"&&(p=X(p,n.fontSize,1,n)||p),l||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&l&&(s.width=l),!s.height&&p&&(s.height=p)}return e.setDisplay(Fe(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(Fe(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(Fe(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(Fe(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(Fe(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(Fe(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(Fe(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(zt(s.flexBasis,"flexBasis")),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(Mt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Mt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Mt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Mt(s.minWidth,"minWidth")),e.setOverflow(Fe(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,zt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,zt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,zt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,zt(s.marginRight||0)),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setBoxSizing(Fe(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Fe(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Mt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Mt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Mt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Mt(s.right,"right")),typeof s.height<"u"?e.setHeight(zt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(zt(s.width,"width")):e.setWidthAuto(),[s,Fi(s)]}import Ba from"escape-html";var Fa=[1,0,0,1,0,0];function ed(e,t,n){let r=[...Fa];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Fa];switch(o){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=Pr(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Cr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||ed(i,n,r);let u=i;if(o)a=u;else{let f=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,l=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,p=e+f,h=t+l;a=Pr([1,0,0,1,p,h],Pr(u,[1,0,0,1,-p,-h])),u.__parent&&(a=Pr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function $a({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Cr({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Ui({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:h,decorationShape:g},b){let y="";if(p&&(y=M("rect",{x:r,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let S={href:f,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("image",{...S,opacity:u!==1?u:void 0})+(g||"")+(n?"</g>":"")+y,""]}let k={x:r,y:i,width:o,height:s,"font-weight":b.fontWeight,"font-style":b.fontStyle,"font-size":b.fontSize,"font-family":b.fontFamily,"letter-spacing":b.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0,"stroke-width":b.WebkitTextStrokeWidth?`${b.WebkitTextStrokeWidth}px`:void 0,stroke:b.WebkitTextStrokeWidth?b.WebkitTextStrokeColor:void 0,"stroke-linejoin":b.WebkitTextStrokeWidth?"round":void 0,"paint-order":b.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("text",{...k,fill:b.color,opacity:u!==1?u:void 0},Ba(t))+(g||"")+(n?"</g>":"")+y,h?M("text",k,Ba(t)):""]}function td(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var zn=1.1;function qa({id:e,width:t,height:n},r,i=!1){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let o=r.shadowColor.length,s="",a="",u=0,f=t,l=0,p=n;for(let h=0;h<o;h++){let g=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-g,u),f=Math.max(r.shadowOffset[h].width+g+t,f),l=Math.min(r.shadowOffset[h].height-g,l),p=Math.max(r.shadowOffset[h].height+g+n,p),i){let b=`satori_s-${e}-result-${h}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[h]/2,result:`${b}-blur`})+M("feOffset",{in:`${b}-blur`,dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,result:`${b}-offset`})+M("feFlood",{"flood-color":r.shadowColor[h],"flood-opacity":1,result:`${b}-color`})+M("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=M("feDropShadow",{dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,stdDeviation:r.shadowRadius[h]/2,"flood-color":r.shadowColor[h],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${h}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*zn).toFixed(2)+"%",y:(l/n*100*zn).toFixed(2)+"%",width:((f-u)/t*100*zn).toFixed(2)+"%",height:((p-l)/n*100*zn).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function Ua({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let f="",l=o.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),h=Math.min(-p-(l.inset?l.offsetX:0),0),g=Math.max(p+e-(l.inset?l.offsetX:0),e),b=Math.min(-p-(l.inset?l.offsetY:0),0),y=Math.max(p+t-(l.inset?l.offsetY:0),t),k=`satori_s-${i}-${u}`,S=`satori_ms-${i}-${u}`,R=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=M("mask",{id:S,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+R.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=R.replace(/d="([^"]+)"/,(_,O)=>'d="'+td(O,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(_,O)=>'x="'+(parseFloat(O)+l.offsetX)+'"').replace(/y="([^"]+)"/,(_,O)=>'y="'+(parseFloat(O)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:S+"-neg",maskUnits:"userSpaceOnUse"},w.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(w=M("g",{mask:`url(#${S}-neg)`},w)),f+=M("defs",{},M("filter",{id:k,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(g-h)/e*100}%`,height:`${(y-b)/t*100}%`},M("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+M("g",{mask:`url(#${S})`,filter:`url(#${k})`,opacity:r},w),l.inset?a+=f:s+=f}return[s,a]}function rd(e,t,n,r,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of n){if(p.y2<o+s||p.y1>r+s)continue;let h=Math.max(e,p.x1-a),g=Math.min(t,p.x2+a);if(h>=g)continue;if(u.length===0){u.push([h,g]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],g):u.push([h,g])}if(!u.length)return[[e,t]];let f=[],l=e;for(let[p,h]of u)if(p>l&&f.push([l,p]),l=Math.max(l,h),l>=t)break;return l<t&&f.push([l,t]),f}function zi({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:f,textDecorationLine:l,textDecorationSkipInk:p,fontSize:h,color:g}=a;if(!l||l==="none")return"";let b=Math.max(1,h*.1),y=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,k=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,S=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),R=n+r,w=S?rd(t,t+e,s,y,b,R):[[t,t+e]],_=f==="double"?w.map(([O,A])=>M("line",{x1:O,y1:y+b+1,x2:A,y2:y+b+1,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([O,A])=>M("line",{x1:O,y1:y,x2:A,y2:y,stroke:u||g,"stroke-width":b,"stroke-dasharray":k,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+_+(i?"</g>":"")}function Gi(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var tr=Gi("U+0020"),ji=Gi("U+0009"),vr=Gi("U+2026");function za(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(f){if(o.has(f))return o.get(f);let l=e.measure(f,{fontSize:r,letterSpacing:i});return o.set(f,l),l}function a(f){let l=0;for(let p of f)t(p)?l+=r:l+=s(p);return l}function u(f){return a(De(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Ga(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=nd(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=sd(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=od(s,o),[h,g]=id(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:g}}function nd(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=De(e,"word",n).map(r=>De(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function id(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,f=vr]=ad(r);if(u)return[u,f]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&fa(i)&&i>0?[i,vr]:n==="ellipsis"&&s==="hidden"&&!t?[1,vr]:[1/0]}function od(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=da(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function sd(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,tr)),r&&(e=e.replace(/([ ]|\t)+/g,tr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function ad(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}import Va from"parse-css-color";var ud=new Set([ji]);function ld(e){return ud.has(e)}function Vi(e){if(e==="transparent")return!0;let t=Va(e);return t?t.alpha===0:!1}function ja(e){if(!e)return!1;let t=Va(e);if(!t)return!1;let[n,r,i,o]=t.values;return n===255&&r===255&&i===255&&(o===void 0||o===1)}async function*Hi(e,t){let n=await Gt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:g}=t,{textAlign:b,lineHeight:y,textWrap:k,fontSize:S,filter:R,tabSize:w=8,letterSpacing:_,_inheritedBackgroundClipTextPath:O,_inheritedBackgroundClipTextHasBackground:A,flexShrink:D}=r,{words:q,requiredBreaks:Y,allowSoftWrap:ue,allowBreakWord:_e,processedContent:ce,shouldCollapseTabsAndSpaces:oe,lineLimit:ve,blockEllipsis:de}=Ga(e,r,h),le=fd(n,b);o.insertChild(le,o.getChildCount()),ca(D)&&o.setFlexShrink(1);let ee=s.getEngine(S,y,r,h),Le=g?De(ce,"grapheme").filter(H=>!ld(H)&&!ee.has(H)):[];yield Le.map(H=>({word:H,locale:h})),Le.length&&(ee=s.getEngine(S,y,r,h));function Oe(H){return!!(p&&p[H])}let{measureGrapheme:Te,measureGraphemeArray:_t,measureText:Me}=za(ee,Oe,{fontSize:S,letterSpacing:_}),Je=Mn(w)?X(w,S,1,r):Te(tr)*w,Pe=(H,j)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:se,tabCount:Q}=cd(H),ge=0;if(Q>0){let pe=H.slice(0,se),ie=H.slice(se+Q),te=Me(pe),Ue=te+j;ge=(Je===0?te:(Math.floor(Ue/Je)+Q)*Je)+Me(ie)}else ge=Me(H);let J=H.trimEnd()===H?ge:Me(H.trimEnd());return{originWidth:ge,endingSpacesWidth:ge-J,text:H}},G=[],Ie=[],Re=[],V=[],ut=[];function Tt(H){let j=0,se=0,Q=-1,ge=0,J=0,pe=0,ie=0;G=[],Re=[0],V=[],ut=[];let te=0,Ue=0;for(;te<q.length&&j<ve;){let K=q[te],vt=Y[te],Ne=0,{originWidth:Ye,endingSpacesWidth:et,text:fr}=Pe(K,J);K=fr,Ne=Ye;let we=et;vt&&pe===0&&(pe=ee.height(K));let Ut=b==="justify",be=te&&J+Ne>H+we&&ue;if(_e&&Ne>H&&(!J||be||vt)){let We=De(K,"grapheme");q.splice(te,1,...We),J>0&&(G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=0,pe=0,ie=0,Re.push(1),Q=-1),Ue=we;continue}if(vt||be)oe&&K===tr&&(Ne=0),G.push(J-Ue),Ie.push(ie),j++,ge+=pe,J=Ne,pe=Ne?Math.round(ee.height(K)):0,ie=Ne?Math.round(ee.baseline(K)):0,Re.push(1),Q=-1,vt||(se=Math.max(se,H));else{J+=Ne;let We=Math.round(ee.height(K));We>pe&&(pe=We,ie=Math.round(ee.baseline(K))),Ut&&Re[Re.length-1]++}Ut&&Q++,se=Math.max(se,J);let Xe=J-Ne;if(Ne===0)ut.push({y:ge,x:Xe,width:0,line:j,lineIndex:Q,isImage:!1});else{let We=De(K,"word");for(let Qe=0;Qe<We.length;Qe++){let It=We[Qe],ze=0,tt=!1;Oe(It)?(ze=S,tt=!0):ze=Te(It),V.push(It),ut.push({y:ge,x:Xe,width:ze,line:j,lineIndex:Q,isImage:tt}),Xe+=ze}}te++,Ue=we}return J&&(j<ve&&(ge+=pe),j++,G.push(J),Ie.push(ie)),{width:se,height:ge}}let $t={width:0,height:0};le.setMeasureFunc(H=>{let{width:j,height:se}=Tt(H);if(k==="balance"){let ge=j/2,J=j,pe=j;for(;ge+1<J;){pe=(ge+J)/2;let{height:te}=Tt(pe);te>se?ge=pe:J=pe}Tt(J);let ie=Math.ceil(J);return $t={width:ie,height:se},{width:ie,height:se}}if(k==="pretty"&&G[G.length-1]<j/3){let pe=j*.9,ie=Tt(pe);if(ie.height<=se*1.3)return $t={width:j,height:ie.height},{width:j,height:ie.height}}let Q=Math.ceil(j);return $t={width:Q,height:se},{width:Q,height:se}});let[Sn,Ee]=yield,gt="",qt="",Be=i._inheritedClipPathId,Ze=i._inheritedMaskId,{left:ur,top:bt,width:lr,height:_n}=le.getComputedLayout(),kt=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),lt=Sn+ur,ft=Ee+bt,{matrix:He,opacity:Kt}=$a({left:ur,top:bt,width:lr,height:_n,isInheritingTransform:u},r),ct="";if(r.textShadowOffset){let{textShadowColor:H,textShadowOffset:j,textShadowRadius:se}=r;ct=qa({width:$t.width,height:$t.height,id:a},{shadowColor:H,shadowOffset:j,shadowRadius:se},Vi(r.color)||A&&ja(r.color)),ct=M("defs",{},ct)}let Et="",Ot="",Jt="",dt=-1,$e={},Pt={},qe=null,At=0;for(let H=0;H<V.length;H++){let j=ut[H],se=ut[H+1];if(!j)continue;let Q=V[H],ge=null,J=!1,pe=p?p[Q]:null,ie=j.y,te=j.x,Ue=j.width,K=j.line,vt=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(K===dt)continue;let Ne=!1;if(G.length>1){let be=lr-G[K];if(b==="right"||b==="end")te+=be;else if(b==="center")te+=be/2;else if(b==="justify"&&K<G.length-1){let Se=Re[K],Xe=Se>1?be/(Se-1):0;te+=Xe*j.lineIndex,Ne=!0}te=Math.round(te)}let Ye=Ie[K],et=ee.baseline(Q),fr=ee.height(Q),we=Ye-et,Ut=be=>!vt||r.textDecorationLine!=="underline"?void 0:{underlineY:ft+be+we+et+et*.1,strokeWidth:Math.max(1,S*.1)};if($e[K]||($e[K]={left:te,top:ft+ie+we,ascender:et,width:Ne?lr:G[K]}),ve!==1/0){let It=function(ze,tt){let kr=De(tt,"grapheme",h),cr="",Tn=0;for(let kn of kr){let En=ze+_t([cr+kn]);if(cr&&En+Se>kt)break;cr+=kn,Tn=En}return{subset:cr,resolvedWidth:Tn}},be=de,Se=Te(de);Se>kt&&(be=vr,Se=Te(be));let Xe=Te(tr),We=K<G.length-1;if(K+1===ve&&(We||G[K]>kt)){if(te+Ue+Se+Xe>kt){let{subset:ze,resolvedWidth:tt}=It(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else if(se&&se.line!==K)if(b==="center"){let{subset:ze,resolvedWidth:tt}=It(te,Q);Q=ze+be,dt=K,$e[K].width=Math.max(0,tt-$e[K].left),J=!0}else{let ze=V[H+1],{subset:tt,resolvedWidth:kr}=It(Ue+te,ze);Q=Q+tt+be,dt=K,$e[K].width=Math.max(0,kr-$e[K].left),J=!0}}}if(pe)ie+=0;else if(l){if(!Q.includes(ji)&&!ua.includes(Q)&&V[H+1]&&se&&!se.isImage&&ie===se.y&&!J){qe===null&&(At=te),qe=qe===null?Q:qe+Q;continue}let be=qe===null?Q:qe+Q,Se=qe===null?te:At,Xe=j.width+te-Se,We=Ut(ie),Qe=ee.getSVG(be.replace(/(\t)+/g,""),{fontSize:S,left:lt+Se,top:ft+ie+et+we,letterSpacing:_},We);ge=Qe.path,vt&&Qe.boxes&&Qe.boxes.length&&(Pt[K]||(Pt[K]=[])).push(...Qe.boxes),qe=null,f&&(Jt+=M("rect",{x:lt+Se,y:ft+ie+we,width:Xe,height:fr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0})+M("line",{x1:lt+te,x2:lt+te+j.width,y1:ft+ie+we+et,y2:ft+ie+we+et,stroke:"#14c000","stroke-width":1,transform:He||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else if(ie+=et+we,vt&&!pe){let be=Ut(ie),Se=ee.getSVG(Q.replace(/(\t)+/g,""),{fontSize:S,left:lt+te,top:ft+ie,letterSpacing:_},be);Se.boxes&&Se.boxes.length&&(Pt[K]||(Pt[K]=[])).push(...Se.boxes)}if(ge!==null)Ot+=ge+" ";else{let[be,Se]=Ui({content:Q,filter:ct,id:a,left:lt+te,top:ft+ie,width:Ue,height:fr,matrix:He,opacity:Kt,image:pe,clipPathId:Be,debug:f,shape:!!O},r);gt+=be,qt+=Se}if(J)break}if(r.textDecorationLine&&(Et=Object.entries($e).map(([H,j])=>{if(!j)return"";let se=Pt[H]||[];return zi({left:lt+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Be,matrix:He,glyphBoxes:se},r)}).join("")),Ot){let H=(!Vi(r.color)||ct)&&Kt!==0?`<g ${Ze?`mask="url(#${Ze})"`:""} ${Be?`clip-path="url(#${Be})"`:""}>`+M("path",{fill:ct&&(Vi(r.color)||A&&ja(r.color))?"black":r.color,d:Ot,transform:He||void 0,opacity:Kt!==1?Kt:void 0,style:R?`filter:${R}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";O&&(qt=M("path",{d:Ot,transform:He||void 0})),gt+=(ct?ct+M("g",{filter:`url(#satori_s-${a})`},H+Et):H+Et)+Jt}else Et&&(gt+=ct?M("g",{filter:`url(#satori_s-${a})`},Et):Et);return qt&&(r._inheritedBackgroundClipTextPath.value+=qt),gt}function fd(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(Fe(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function cd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}import{parseLinearGradient as pd}from"css-gradient-parser";import dd from"parse-css-color";function Gn(e,t,n,r,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&r?+s.offset.value:100;for(let p of t){let{color:h}=p;if(!o.length&&(o.push({offset:0,color:h}),!p.offset||p.offset.value==="0"))continue;let g=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(X(`${p.offset.value}${p.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:g,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let f=0,l=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(l<p&&(l=p);typeof o[l].offset>"u";)l++;o[p].offset=(o[l].offset-o[f].offset)/(l-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let h=dd(p.color);return h?h.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${h.alpha})`}:p}):o}function Ha({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){let l=pd(o),[p,h]=s,g=o.startsWith("repeating"),b,y,k;if(l.orientation.type==="directional")b=md(l.orientation.value),y=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*h,2));else if(l.orientation.type==="angular"){let{length:O,...A}=gd(Ti(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=O,b=A}k=g?bd(l.stops,y,b,u):b;let S=Gn(g?hd(l.stops,y):y,l.stops,u,g,f),R=`satori_bi${e}`,w=`satori_pattern_${e}`,_=M("pattern",{id:w,x:a[0]/t,y:a[1]/n,width:r?p/t:"1",height:i?h/n:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:R,...k,spreadMethod:g?"repeat":"pad"},S.map(O=>M("stop",{offset:(O.offset??0)*100+"%","stop-color":O.color})).join(""))+M("rect",{x:0,y:0,width:p,height:h,fill:`url(#${R})`}));return[w,_]}function hd(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function md(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function gd(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,f,l,p,h=g=>{if(g===0){i=0,o=n,s=0,a=0,u=n;return}else if(g===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(g>0&&g<Math.PI/2){i=(r*t/2/Math.tan(g)-n/2)/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),l=(t/2/Math.tan(g)-n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l+n,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else if(g>Math.PI/2&&g<Math.PI){i=(n/2+r*t/2/Math.tan(g))/(Math.tan(g)+r/Math.tan(g)),o=Math.tan(g)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),l=(t/2/Math.tan(g)+n/2)/(Math.tan(g)+1/Math.tan(g)),p=Math.tan(g)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else g>=Math.PI&&(h(g-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return h(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function bd(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,f=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,l=(o-i)*u+i,p=(a-s)*u+s,h=(o-i)*f+i,g=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:g}}import{parseRadialGradient as vd}from"css-gradient-parser";function Xa({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){var oe;let{shape:l,stops:p,position:h,size:g,repeating:b}=vd(o),[y,k]=s,S=y/2,R=k/2,w=xd(h.x,h.y,y,k,u.fontSize,u);S=w.x,R=w.y;let _=yd(t,p,b,u),O=Gn(_,p,u,b,f),A=`satori_radial_${e}`,D=`satori_pattern_${e}`,q=`satori_mask_${e}`,Y=Sd(l,g,u.fontSize,{x:S,y:R},[y,k],u,b),ue=wd(l,u.fontSize,p,[y,k],u,b,Y),_e=M("pattern",{id:D,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?k/n:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:A,...ue},O.map(ve=>M("stop",{offset:ve.offset||0,"stop-color":ve.color})).join(""))+M("mask",{id:q},M("rect",{x:0,y:0,width:y,height:k,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:k,fill:((oe=O.at(-1))==null?void 0:oe.color)||"transparent"})+M(l,{cx:S,cy:R,width:y,height:k,...Y,fill:`url(#${A})`,mask:`url(#${q})`}));return[D,_e]}function yd(e,t,n,r){if(!n)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+r.fontSize,e,r,!0)}function xd(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Ya(e.value,n,r,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,Ya(t.value,n,r,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function Ya(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function wd(e,t,n,[r,i],o,s,a){let{r:u,rx:f,ratio:l=1}=a;if(!s)return{spreadMethod:"pad"};let p=n.at(-1),h=e==="circle"?u*2:f*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/r,1)/l}%`:Number(X(`${p.offset.value}${p.offset.unit}`,t,r,o,!0)/h)}}function Sd(e,t,n,r,i,o,s){let[a,u]=i,{x:f,y:l}=r,p={},h=0,g=0;if(_d(t)){if(t.some(b=>b.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?Object.assign(p,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0))}):Object.assign(p,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,n,u,o,!0))}),jn(p,a,u,f,l,s,e),p}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-f),Math.abs(f)),g=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),g=Math.min(Math.abs(u-l),Math.abs(l));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-l),Math.abs(l))),jn(p,a,u,f,l,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-l),Math.abs(l))),jn(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+g*g):Object.assign(p,Qa(h,g)),jn(p,a,u,f,l,s,e),p}function jn(e,t,n,r,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),{rx:f,ry:l}=Qa(a,u);e.ratio=Math.max(f/e.rx,l/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),f=Math.sqrt(a*a+u*u);e.ratio=f/e.r,e.ratio>1&&(e.r=f)}}function Qa(e,t){let n=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let r=Math.sqrt(e*e+t*t*n*n)/n;return{ry:r,rx:r*n}}}function _d(e){return!e.some(t=>t.type==="keyword")}import Ka from"parse-css-color";function Xi(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Td(e,t,n,r,i){if(!r||!i)return[t,n];if(e==="cover"){let o=t/r,s=n/i,a=Math.max(o,s);return[r*a,i*a]}if(e==="contain"){let o=t/r,s=n/i,a=Math.min(o,s);return[r*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=r,f=i;if(s==="auto"&&a!=="auto"){let l=Xi(a,n);f=l,u=r/i*l}else if(a==="auto"&&s!=="auto"){let l=Xi(s,t);u=l,f=i/r*l}return[u,f]}return[t,n]}function Yi(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Lt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>Xi(o,[t,n][s]))}async function Lr({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},f,l){u=u||"repeat",l=l||"background";let p=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",g=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),b=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=g&&b?[t,n]:g?[0,0]:Yi(s,{x:t,y:n,defaultX:t,defaultY:n}),k=Yi(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Ha({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,k,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Xa({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,k,f,l);if(o.startsWith("url(")){let[S,R,w]=await br(o.slice(4,-1)),_,O;if(g){let[A,D]=Td(s,t,n,R,w);_=A,O=D}else{let A=Yi(s,{x:t,y:n,defaultX:0,defaultY:0});_=l==="mask"?R||A[0]:A[0]||R,O=l==="mask"?w||A[1]:A[1]||w}return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:k[0]+r,y:k[1]+i,width:p?_:"100%",height:h?O:"100%"},M("image",{x:0,y:0,width:_,height:O,preserveAspectRatio:"none",href:S}))]}if(Ka(o)){let S=Ka(o),[R,w,_,O]=S.values,D=`rgba(${R},${w},${_},${O!==void 0?O:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:i,width:t,height:n},M("rect",{x:0,y:0,width:t,height:n,fill:D}))]}throw new Error(`Invalid background image: "${o}"`)}function kd([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function Vn(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Hn(e){e[0]=e[1]=Math.min(e[0],e[1])}function Yn(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],r,t,i,!0),t),Math.min(X(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Xn=e=>e&&e[0]!==0&&e[1]!==0;function Ja({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Vt({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,h,g,b;if([p,s]=Yn(s,n,r,l,i),[h,a]=Yn(a,n,r,l,i),[g,u]=Yn(u,n,r,l,i),[b,f]=Yn(f,n,r,l,i),!o&&!Xn(s)&&!Xn(a)&&!Xn(u)&&!Xn(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=Vn(s[0],a[0],n),[u[0],f[0]]=Vn(u[0],f[0],n),[s[1],u[1]]=Vn(s[1],u[1],r),[a[1],f[1]]=Vn(a[1],f[1],r),p&&Hn(s),h&&Hn(a),g&&Hn(u),b&&Hn(f);let y=[];y[0]=[a,a],y[1]=[f,[-f[0],f[1]]],y[2]=[u,[-u[0],-u[1]]],y[3]=[s,[s[0],-s[1]]];let k=`h${n-s[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,S=`v${r-a[1]-f[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,R=`h${f[0]+u[0]-n} a${y[2][0]} 0 0 1 ${y[2][1]}`,w=`v${u[1]+s[1]-r} a${y[3][0]} 0 0 1 ${y[3][1]}`;if(o){let O=function(ce){let oe=kd([s,a,f,u][ce]);return ce===0?[[e+s[0]-oe,t+s[1]-oe],[e+s[0],t]]:ce===1?[[e+n-a[0]+oe,t+a[1]-oe],[e+n,t+a[1]]]:ce===2?[[e+n-f[0]+oe,t+r-f[1]+oe],[e+n-f[0],t+r]]:[[e+u[0]-oe,t+r-u[1]+oe],[e,t+r-u[1]]]},_=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(_===-1)_=0;else for(;!o[_];)_=(_+1)%4;let A="",D=O(_),q=`M${D[0]} A${y[(_+3)%4][0]} 0 0 1 ${D[1]}`,Y=0;for(;Y<4&&o[(_+Y)%4];Y++)A+=q+" ",q=[k,S,R,w][(_+Y)%4];let ue=(_+Y)%4;A+=q.split(" ")[0];let _e=O(ue);return A+=` A${y[(ue+3)%4][0]} 0 0 1 ${_e[0]}`,A}return`M${e+s[0]},${t} ${k} ${S} ${R} ${w}`}function Za(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function eu({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[M("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},M(r,{x:i,y:o,width:s,height:a,d:n||void 0})),l]}function Mr({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(g=>a[g+"Width"]))return"";let f="",l=0;for(;l>0&&Za(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let g=0;g<4;g++){let b=(l+g)%4,y=(l+g+1)%4,k=u[b],S=u[y];if(p[b]=!0,h=[a[k+"Width"],a[k+"Style"],a[k+"Color"],k],!Za(k,S,a)){let R=(h[0]||0)+(o&&!s&&a[k.replace("border","padding")]||0);R&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":R*2,"stroke-dasharray":!o&&h[1]==="dashed"?R*2+" "+R:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let g=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);g&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":g*2,"stroke-dasharray":!o&&h[1]==="dashed"?g*2+" "+g:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)}))}return f}function Qi({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:n+f,width:r-u-l,height:i-f-p};return M("mask",{id:e},M("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Mr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}import{getStylesForProperty as tu}from"css-to-react-native";var Nr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function iu({width:e,height:t},n,r){function i(f){let l=f.match(Nr.circle);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(k=>k.trim()),{x:b,y}=nu(g,e,t);return{type:"circle",r:X(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:X(b,r.fontSize,e,r,!0),cy:X(y,r.fontSize,t,r,!0)}}function o(f){let l=f.match(Nr.ellipse);if(!l)return null;let[,p]=l,[h,g=""]=p.split("at").map(R=>R.trim()),[b,y]=h.split(" "),{x:k,y:S}=nu(g,e,t);return{type:"ellipse",rx:X(b||"50%",r.fontSize,e,r,!0),ry:X(y||"50%",r.fontSize,t,r,!0),cx:X(k,r.fontSize,e,r,!0),cy:X(S,r.fontSize,t,r,!0)}}function s(f){let l=f.match(Nr.path);if(!l)return null;let[p,h]=ru(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Nr.polygon);if(!l)return null;let[p,h]=ru(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(g=>g.split(" ").map((b,y)=>X(b,r.fontSize,y===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Nr.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),g=tu("borderRadius",h,!0),b=Object.values(g).map(_=>String(_)).map((_,O)=>X(_,r.fontSize,O===0||O===2?t:e,r,!0)||0),y=Object.values(tu("margin",p,!0)).map(_=>String(_)).map((_,O)=>X(_,r.fontSize,O===0||O===2?t:e,r,!0)||0),k=y[3],S=y[0],R=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(_=>_>0)?{type:"path",d:Vt({left:k,top:S,width:R,height:w},{...n,...g})}:{type:"rect",x:k,y:S,width:R,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function ru(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function nu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Qn(e){return`satori_cp-${e}`}function ou(e){return`url(#${Qn(e)})`}function su(e,t,n){if(t.clipPath==="none")return"";let r=iu(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:Qn(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function Ki({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,l){let p="",h=f.clipPath&&f.clipPath!=="none"?su({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,l):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=h?`satori_ocp-${s}`:Qn(s);p=M("clipPath",{id:b,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:f.overflow==="hidden"&&f.transform&&o?o:void 0}))}let g=Qi({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},f);return h+p+g}var Ed=e=>`satori_mi-${e}`;async function Ji(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,f=u.length;if(!f)return["",""];let l=Ed(a),p="";for(let h=0;h<f;h++){let g=u[h],[b,y]=await Lr({id:`${l}-${h}`,left:r,top:i,width:o,height:s},g,n,"mask");p+=y+M("rect",{x:r,y:i,width:o,height:s,fill:`url(#${b})`})}return p=M("mask",{id:l},p),[l,p]}async function Wr({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let l=!!s,p="rect",h="",g="",b=[],y=1,k="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=Cr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let S="";if(u.backgroundImage){let de=[];for(let le=0;le<u.backgroundImage.length;le++){let ee=u.backgroundImage[le],Le=await Lr({id:e+"_"+le,width:r,height:i,left:t,top:n},ee,f);Le&&de.unshift(Le)}for(let le of de)b.push(`url(#${le[0]})`),g+=le[1],le[2]&&(S+=le[2])}let[R,w]=await Ji({id:e,left:t,top:n,width:r,height:i},u,f);g+=w;let _=R?`url(#${R})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,O=Vt({left:t,top:n,width:r,height:i},u);O&&(p="path");let A=u._inheritedClipPathId;a&&(k=M("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":A?`url(#${A})`:void 0}));let{backgroundClip:D,filter:q}=u,Y=D==="text"?`url(#satori_bct-${e})`:A?`url(#${A})`:u.clipPath?ou(e):void 0,ue=Ki({left:t,top:n,width:r,height:i,path:O,id:e,matrix:h,currentClipPath:Y,src:s},u,f),_e=b.map(de=>M(p,{x:t,y:n,width:r,height:i,fill:de,d:O||void 0,transform:h||void 0,"clip-path":u.transform?void 0:Y,style:q?`filter:${q}`:void 0,mask:u.transform?void 0:_})).join(""),ce=eu({id:e,left:t,top:n,width:r,height:i,currentClipPathId:A,borderPath:O,borderType:p},u),oe;if(l){let de=(u.borderLeftWidth||0)+(u.paddingLeft||0),le=(u.borderTopWidth||0)+(u.paddingTop||0),ee=(u.borderRightWidth||0)+(u.paddingRight||0),Le=(u.borderBottomWidth||0)+(u.paddingBottom||0),Oe="Mid",Te="Mid",Me=(u.objectPosition||"center").toString().trim().toLowerCase().split(/\s+/);if(Me.length===1)switch(Me[0]){case"left":Oe="Min",Te="Mid";break;case"right":Oe="Max",Te="Mid";break;case"top":Oe="Mid",Te="Min";break;case"bottom":Oe="Mid",Te="Max";break;case"center":Oe="Mid",Te="Mid";break}else if(Me.length===2)for(let G of Me)G==="left"?Oe="Min":G==="right"?Oe="Max":G==="center"?Oe="Mid":G==="top"?Te="Min":G==="bottom"&&(Te="Max");let Je=`x${Oe}Y${Te}`,Pe=u.objectFit==="contain"?Je:u.objectFit==="cover"?`${Je} slice`:"none";u.transform&&(oe=Ja({id:e,borderRadiusPath:O,borderType:p,left:t,top:n,width:r,height:i},u)),_e+=M("image",{x:t+de,y:n+le,width:r-de-ee,height:i-le-Le,href:s,preserveAspectRatio:Pe,transform:h||void 0,style:q?`filter:${q}`:void 0,"clip-path":u.transform?oe?`url(#${oe[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:R?`url(#${R})`:`url(#satori_om-${e})`})}if(ce){g+=ce[0];let de=ce[1];_e+=Mr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${de})`}},u)}let ve=Ua({width:r,height:i,id:e,opacity:y,shape:M(p,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:O||void 0,transform:h||void 0,"clip-path":Y,mask:_})},u);return(g?M("defs",{},g):"")+(ve?ve[0]:"")+(oe?oe[0]:"")+ue+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(Y||_)?`<g${Y?` clip-path="${Y}"`:""}${_?` mask="${_}"`:""}>`:"")+(S||_e)+(u.transform&&(Y||_)?"</g>":"")+(y!==1?"</g>":"")+(ve?ve[1]:"")+k}var uu=String.raw,au=uu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,lu=()=>new RegExp(uu`\p{RI}{2}|(?![#*\d](?!\uFE0F?\u20E3))${au}(?:\u200D${au})*`,"gu");var Od=new RegExp(lu(),"u"),Zi={emoji:Od,symbol:/\p{Symbol}/u,math:/\p{Math}/u},eo={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},Kn=Object.keys({...eo,...Zi});function fu(e){return Kn.includes(e)}function cu(e,t){for(let r of Object.keys(Zi))if(Zi[r].test(e))return[r];let n=Object.keys(eo).filter(r=>eo[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function du(e){if(e)return Kn.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Dr(e,t){var Pe;let n=await Gt(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:l,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!dr(e)||oa(e.type)){let G;if(!dr(e))G=Hi(String(e),t),yield(await G.next()).value;else{if(ia(e.type))throw new Error("Class component is not supported.");let Re;_i(e.type)?Re=e.type.render:Re=e.type,G=Dr(await Re(e.props),t),yield(await G.next()).value}await G.next();let Ie=yield;return(await G.next(Ie)).value}let{type:g,props:b}=e,y=g;if(b&&sa(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:k,children:S,tw:R,lang:w=u}=b||{},_=du(w);if(R){let G=h(R,k);k=Object.assign(G,k)}let O=n.Node.create();o.insertChild(O,o.getChildCount());let[A,D]=await qi(O,y,i,k,b),q=A.transform===i.transform;if(q||(A.transform.__parent=i.transform),(A.overflow==="hidden"||A.clipPath&&A.clipPath!=="none")&&(D._inheritedClipPathId=`satori_cp-${r}`,D._inheritedMaskId=`satori_om-${r}`),A.maskImage&&(D._inheritedMaskId=`satori_mi-${r}`),A.backgroundClip==="text"){let G={value:""};D._inheritedBackgroundClipTextPath=G,A._inheritedBackgroundClipTextPath=G,A.backgroundImage&&(D._inheritedBackgroundClipTextHasBackground="true",A._inheritedBackgroundClipTextHasBackground="true")}let Y=aa(S),ue=[],_e=0,ce=[];for(let G of Y){let Ie=Dr(G,{id:r+"-"+_e++,parentStyle:A,inheritedStyle:D,isInheritingTransform:!0,parent:O,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:_,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?ce.push(...(await Ie.next()).value||[]):await Ie.next(),ue.push(Ie)}yield ce;for(let G of ue)await G.next();let[oe,ve]=yield,{left:de,top:le,width:ee,height:Le}=O.getComputedLayout();de+=oe,le+=ve;let Oe="",Te="",_t="",{children:Me,...Je}=b;if((Pe=t.onNodeDetected)==null||Pe.call(t,{left:de,top:le,width:ee,height:Le,type:y,props:Je,key:e.key,textContent:dr(Me)?void 0:Me}),y==="img"){let G=A.__src;Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,src:G,isInheritingTransform:q,debug:a},A,D)}else if(y==="svg"){let G=A.color,Ie=await Ra(e,G);Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,src:Ie,isInheritingTransform:q,debug:a},A,D)}else{let G=k==null?void 0:k.display;if(y==="div"&&S&&typeof S!="string"&&G!=="flex"&&G!=="none"&&G!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');Te=await Wr({id:r,left:de,top:le,width:ee,height:Le,isInheritingTransform:q,debug:a},A,D)}for(let G of ue)Oe+=(await G.next([de,le])).value;return A._inheritedBackgroundClipTextPath&&(_t+=M("clipPath",{id:`satori_bct-${r}`,"clip-path":A._inheritedClipPathId?`url(#${A._inheritedClipPathId})`:void 0},A._inheritedBackgroundClipTextPath.value)),_t+Te+Oe}import Fr from"@shuding/opentype.js";var pu="unknown";function Pd(e){let t=[],n=[0,0],r=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let f=u/s,l=Ad(o,f);t.push({from:a,to:l}),a=l}r=o[o.length-1]};for(let o of e){if(o.type==="M"){n=r=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:r,to:s}),r=s;continue}if(o.type==="Q"){i([r,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([r,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:r,to:n}),r=n)}return t}function Ad(e,t){let n=e;for(;n.length>1;){let r=[];for(let i=0;i<n.length-1;i++)r.push([n[i][0]+(n[i+1][0]-n[i][0])*t,n[i][1]+(n[i+1][1]-n[i][1])*t]);n=r}return n[0]}function Id(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=Pd(e);if(!o.length)return[];let s=i-r,a=Math.max(12,Math.ceil(s/.25)),u=s/a,f=r+u/2,l=new Set;for(let w=0;w<a;w++){let _=f+u*w,O=[];for(let A of o){let[D,q]=A.from,[Y,ue]=A.to;if(q===ue)continue;let _e=Math.min(q,ue),ce=Math.max(q,ue);if(_<_e||_>=ce)continue;let oe=(_-q)/(ue-q),ve=D+(Y-D)*oe;O.push(ve)}if(O.length){O.sort((A,D)=>A-D);for(let A=0;A<O.length-1;A+=2){let D=Math.min(O[A],O[A+1]),q=Math.max(O[A],O[A+1]),Y=Math.floor(D),ue=Math.ceil(q);for(let _e=Y;_e<ue;_e++)l.add(_e)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,_)=>w-_),h=[],g=p[0],b=p[0];for(let w=1;w<p.length;w++){let _=p[w];_>b+1&&(h.push([g,b+1]),g=_),b=_}h.push([g,b+1]);let y=[],k=n*.6,S=h[0][0],R=h[h.length-1][1];for(let[w,_]of h){let O=Math.min(w,S)-k,A=Math.max(_,R)+k;y.push({x1:O,x2:A,y1:r,y2:i})}return y}function Rd(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var to=new WeakMap,Br=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,f,l]=i[s];Rd(n,r,[a,u],[f,l])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!fu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kn.join(", ")}.`);let s=o??pu,a;if(to.has(i))a=to.get(i);else{a=Fr.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=l=>{let p=f.call(a,l);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(l),p},to.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${r.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(w=>w.toLowerCase());let a=[];r.forEach(w=>{let _=this.get({name:w,weight:i,style:o});if(_){a.push(_);return}let O=this.get({name:w+"_unknown",weight:i,style:o});if(O){a.push(O);return}});let u=Array.from(this.fonts.keys()),f=[],l=[],p=[];for(let w of u)if(!r.includes(w))if(s){let _=Cd(w);_?_===s?f.push(this.get({name:w,weight:i,style:o})):l.push(this.get({name:w,weight:i,style:o})):p.push(this.get({name:w,weight:i,style:o}))}else p.push(this.get({name:w,weight:i,style:o}));let h=new Map,g=(w,_=!0)=>{let O=[...a,...p,...f,..._?l:[]];if(typeof w>"u")return _?O[O.length-1]:void 0;let A=w.charCodeAt(0);if(h.has(A))return h.get(A);let D=O.find((q,Y)=>!!q.charToGlyphIndex(w)||_&&Y===O.length-1);return D&&h.set(A,D),D},b=(w,_=!1)=>{var A,D;return((_?(D=(A=w.tables)==null?void 0:A.os2)==null?void 0:D.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,_=!1)=>{var A,D;return((_?(D=(A=w.tables)==null?void 0:A.os2)==null?void 0:D.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},k=(w,_=!1)=>{var O,A;if(typeof n=="string"&&n==="normal"){let D=(_?(A=(O=w.tables)==null?void 0:O.os2)==null?void 0:A.sTypoLineGap:0)||0;return b(w,_)-y(w,_)+D/w.unitsPerEm*t}else if(typeof n=="number")return t*n},S=w=>g(w,!1);return{has:w=>{if(w===`
7
+ `)return!0;let _=S(w);return _?(_._trackBrokenChars=[],_.stringToGlyphs(w),_._trackBrokenChars.length?(_._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,_=typeof w>"u"?a[0]:g(w))=>{let O=b(_),A=y(_),D=O-A;return O+(k(_)-D)/2},height:(w,_=typeof w>"u"?a[0]:g(w))=>k(_),measure:(w,_)=>this.measure(g,w,_),getSVG:(w,_,O)=>this.getSVG(g,w,_,O)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,g=new Fr.Path;g.unitsPerEm=t.unitsPerEm,g.commands=p.path.commands.map(y=>{let k={...y};for(let S in k)typeof k[S]=="number"&&(k[S]*=h);return k});let b=new Fr.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:g});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0},a){let u=t(n),f=this.patchFontFallbackResolver(u,t);try{if(r===0)return{path:"",boxes:[]};let l=new Fr.Path,p=[],h={letterSpacing:s/r},g=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,k,S){let R;if(!g.has(b))R=b.getPath(y,k,S,h),g.set(b,[y,k,R]);else{let[_,O,A]=g.get(b);R=new Fr.Path,R.commands=A.commands.map(D=>{let q={...D};for(let Y in q)typeof q[Y]=="number"&&((Y==="x"||Y==="x1"||Y==="x2")&&(q[Y]+=y-_),(Y==="y"||Y==="y1"||Y==="y2")&&(q[Y]+=k-O));return q})}let w=a?Id(R.commands,a):[];w.length&&p.push(...w),l.extend(R)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function Cd(e){let t=e.split("_"),n=t[t.length-1];return n===pu?void 0:n}function ro({width:e,height:t,content:n}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var Hf=uc(Tf());var vb=["ios","android","windows","macos","web"];function Ef(e){return vb.includes(e)}var yb=["portrait","landscape"];function Of(e){return yb.includes(e)}var kf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(kf||(kf={}));var ne;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ne||(ne={}));function As(e){return typeof e=="string"}function Is(e){return typeof e=="object"}var Rs;function T(e){return{kind:"complete",style:e}}function Ae(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ae(o),u=Ae(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,ne.none];switch(i==null?void 0:i[1]){case"rem":return[r,ne.rem];case"px":return[r,ne.px];case"em":return[r,ne.em];case"%":return[r,ne.percent];case"vw":return[r,ne.vw];case"vh":return[r,ne.vh];default:return null}}function Bt(e,t,n={}){let r=wt(t,n);return r===null?null:T({[e]:r})}function mi(e,t,n){let r=wt(t);return r!==null&&(n[e]=r),n}function Af(e,t){let n=wt(t);return n===null?null:{[e]:n}}function wt(e,t={}){if(e===void 0)return null;let n=Ae(String(e),t);return n?Qt(...n,t):null}function Qt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case ne.rem:return e*16*(r?-1:1);case ne.px:return e*(r?-1:1);case ne.percent:return`${r?"-":""}${e}%`;case ne.none:return e*(r?-1:1);case ne.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Ve("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ne.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Ve("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Cs(e){let t=Ae(e);if(!t)return null;let[n,r]=t;switch(r){case ne.rem:return n*16;case ne.px:return n;default:return null}}var xb={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ls(e){return xb[e??""]||"All"}function Ms(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Ls(i),"")),t]}function sr(e,t={}){if(e.includes("/")){let n=Pf(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Pf(e,t)}function at(e,t,n={}){let r=sr(t,n);return r===null?null:T({[e]:r})}function Pf(e,t={}){if(e==="px")return 1;let n=Ae(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=ne.percent,r*=100),i===ne.none&&(r=r/4,i=ne.rem),Qt(r,i,t)}function wb(...e){console.warn(...e)}function Sb(...e){}var Ve=typeof process>"u"||((Rs=process==null?void 0:process.env)===null||Rs===void 0?void 0:Rs.JEST_WORKER_ID)===void 0?wb:Sb;var _b=[["aspect-square",T({aspectRatio:1})],["aspect-video",T({aspectRatio:16/9})],["items-center",T({alignItems:"center"})],["items-start",T({alignItems:"flex-start"})],["items-end",T({alignItems:"flex-end"})],["items-baseline",T({alignItems:"baseline"})],["items-stretch",T({alignItems:"stretch"})],["justify-start",T({justifyContent:"flex-start"})],["justify-end",T({justifyContent:"flex-end"})],["justify-center",T({justifyContent:"center"})],["justify-between",T({justifyContent:"space-between"})],["justify-around",T({justifyContent:"space-around"})],["justify-evenly",T({justifyContent:"space-evenly"})],["content-start",T({alignContent:"flex-start"})],["content-end",T({alignContent:"flex-end"})],["content-between",T({alignContent:"space-between"})],["content-around",T({alignContent:"space-around"})],["content-stretch",T({alignContent:"stretch"})],["content-center",T({alignContent:"center"})],["self-auto",T({alignSelf:"auto"})],["self-start",T({alignSelf:"flex-start"})],["self-end",T({alignSelf:"flex-end"})],["self-center",T({alignSelf:"center"})],["self-stretch",T({alignSelf:"stretch"})],["self-baseline",T({alignSelf:"baseline"})],["direction-inherit",T({direction:"inherit"})],["direction-ltr",T({direction:"ltr"})],["direction-rtl",T({direction:"rtl"})],["hidden",T({display:"none"})],["flex",T({display:"flex"})],["flex-row",T({flexDirection:"row"})],["flex-row-reverse",T({flexDirection:"row-reverse"})],["flex-col",T({flexDirection:"column"})],["flex-col-reverse",T({flexDirection:"column-reverse"})],["flex-wrap",T({flexWrap:"wrap"})],["flex-wrap-reverse",T({flexWrap:"wrap-reverse"})],["flex-nowrap",T({flexWrap:"nowrap"})],["flex-auto",T({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",T({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",T({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",T({overflow:"hidden"})],["overflow-visible",T({overflow:"visible"})],["overflow-scroll",T({overflow:"scroll"})],["absolute",T({position:"absolute"})],["relative",T({position:"relative"})],["italic",T({fontStyle:"italic"})],["not-italic",T({fontStyle:"normal"})],["oldstyle-nums",bn("oldstyle-nums")],["small-caps",bn("small-caps")],["lining-nums",bn("lining-nums")],["tabular-nums",bn("tabular-nums")],["proportional-nums",bn("proportional-nums")],["font-thin",T({fontWeight:"100"})],["font-100",T({fontWeight:"100"})],["font-extralight",T({fontWeight:"200"})],["font-200",T({fontWeight:"200"})],["font-light",T({fontWeight:"300"})],["font-300",T({fontWeight:"300"})],["font-normal",T({fontWeight:"normal"})],["font-400",T({fontWeight:"400"})],["font-medium",T({fontWeight:"500"})],["font-500",T({fontWeight:"500"})],["font-semibold",T({fontWeight:"600"})],["font-600",T({fontWeight:"600"})],["font-bold",T({fontWeight:"bold"})],["font-700",T({fontWeight:"700"})],["font-extrabold",T({fontWeight:"800"})],["font-800",T({fontWeight:"800"})],["font-black",T({fontWeight:"900"})],["font-900",T({fontWeight:"900"})],["include-font-padding",T({includeFontPadding:!0})],["remove-font-padding",T({includeFontPadding:!1})],["max-w-none",T({maxWidth:"99999%"})],["text-left",T({textAlign:"left"})],["text-center",T({textAlign:"center"})],["text-right",T({textAlign:"right"})],["text-justify",T({textAlign:"justify"})],["text-auto",T({textAlign:"auto"})],["underline",T({textDecorationLine:"underline"})],["line-through",T({textDecorationLine:"line-through"})],["no-underline",T({textDecorationLine:"none"})],["uppercase",T({textTransform:"uppercase"})],["lowercase",T({textTransform:"lowercase"})],["capitalize",T({textTransform:"capitalize"})],["normal-case",T({textTransform:"none"})],["w-auto",T({width:"auto"})],["h-auto",T({height:"auto"})],["shadow-sm",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",T({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",T({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Ns=_b;function bn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var vn=class{constructor(t){this.ir=new Map(Ns),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Ns,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Ws(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return at("fontSize",e,n);if(typeof r=="string")return Bt("fontSize",r);let i={},[o,s]=r,a=Af("fontSize",o);if(a&&(i=a),typeof s=="string")return T(mi("lineHeight",If(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&mi("lineHeight",If(u,i),i),f&&mi("letterSpacing",f,i),T(i)}function If(e,t){let n=Ae(e);if(n){let[r,i]=n;if((i===ne.none||i===ne.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Ds(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=Ae(r);if(!i)return null;let[o,s]=i;if(s===ne.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?T({lineHeight:a}):null}function Fs(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)o=f;else{let l=sr(r);return l&&typeof l=="number"?Rf(l,ne.px,t,e):null}}if(o==="auto")return Cf(t,e,"auto");let s=Ae(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),Rf(a,u,t,e)}function Rf(e,t,n,r){let i=Qt(e,t);return i===null?null:Cf(n,r,i)}function Cf(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function Bs(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Cs(u.min):0;f===null?Ve(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Cs(u.max):1/0;return l===null?Ve(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}function $s(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return T({fontFamily:n});let r=n[0];return r?T({fontFamily:r}):null}function ar(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Nf(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=Lf(i,o/100),T({[gi[e].color]:i})}return{kind:"dependent",complete(o){let s=gi[e].opacity,a=o[s];typeof a=="number"&&(i=Lf(i,a)),o[gi[e].color]=i}}}function yn(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[gi[e].opacity]:r}}}function Lf(e,t){return e.startsWith("#")?e=Tb(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Mf(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var gi={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function Tb(e){let t=e;e=e.replace(kb,(s,a,u,f)=>a+a+u+u+f+f);let n=Eb.exec(e);if(!n)return Ve(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function Nf(e,t){let n=t[e];if(As(n))return n;if(Is(n)&&As(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Is(o))return Nf(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var kb=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Eb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Df(e,t){let[n,r]=Ms(e);if(n.match(/^(-?(\d)+)?$/))return Ob(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return T({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=ar(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=at(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function Ob(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Bt(o,i)}function Ff(e,t){if(!t)return null;let[n,r]=Ms(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return Wf(Bt(i,o));let s=at(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:Wf(s)}function Wf(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function _r(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=wt(o,{isNegative:n});if(a!==null)return Bf(e,i,a)}let s=sr(t,{isNegative:n});return s!==null?Bf(e,i,s):null}function Bf(e,t,n){if(e!=="inset")return T({[e]:n});switch(t){case null:return T({top:n,left:n,right:n,bottom:n});case"y":return T({top:n,bottom:n});case"x":return T({left:n,right:n})}}function xn(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:T({[`flex${e}`]:o})}function $f(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return T({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return T({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=wt((n=i[2])!==null&&n!==void 0?n:"");return o?T({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=wt((r=i[3])!==null&&r!==void 0?r:"");return o?T({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function qs(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Bt(e,i,n):at(e,t,n)}function wn(e,t,n={},r){let i=wt(r==null?void 0:r[t],n);return i?T({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),at(e,t,n))}function qf(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Ae(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ne.em)return Pb(o);if(s===ne.percent)return Ve("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?T({letterSpacing:a}):null}return at("letterSpacing",e,{isNegative:t})}function Pb(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function Uf(e,t){let n=t==null?void 0:t[e];if(n){let i=Ae(String(n));if(i)return T({opacity:i[0]})}let r=Ae(e);return r?T({opacity:r[0]/100}):null}function zf(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Gf(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Us(n),o=Us(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Us(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Us(e){let t=sr(e);return typeof t=="number"?t:null}var Tr=class{constructor(t,n={},r,i,o){var s,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),g=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",g=h),this.char=this.string[0];let b=Bs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of g)if(b[y]){let k=(u=b[y])===null||u===void 0?void 0:u[2];k!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+k);let S=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(S){let[R,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(S<=R||S>w)&&(this.isNull=!0)}else this.isNull=!0}else Ef(y)?this.isNull=y!==o:Of(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=Ls(u[1]),p=Fs(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=qs("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=qs("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=wn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=wn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=wn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=wn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Ds(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Ws(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=ar("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=yn("text",this.rest),a))||this.consumePeeked("font-")&&(a=$s(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Ve("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Bt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=ar("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=ar("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=yn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Df(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=yn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Ff(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=_r("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=_r("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=_r("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=_r("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=_r("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=xn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=xn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=$f(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=xn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=xn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=yn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=zf(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Gf(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=at("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=ar("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return T({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Uf(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=qf(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return T({zIndex:u})}return Ve(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,f=Ae(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function jf(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...zs(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(zs)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?zs(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Ab),n]}function zs(e){return e.trim().split(/\s+/)}function Ab(e,t,n){return n.indexOf(e)===t}function Vf(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Ib(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Ib(e){let t={};return e({addUtilities:n=>{t=n},...Rb}),t}function St(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Rb={addComponents:St,addBase:St,addVariant:St,e:St,prefix:St,theme:St,variants:St,config:St,corePlugins:St,matchUtilities:St,postcss:null};function Yf(e,t){let n=(0,Hf.default)(Cb(e)),r={},i=Vf(n.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,T(y)]).filter(([,b])=>b.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new vn(s);return f[u]=y,y}function p(...b){let y=l(),k={},S=[],R=[],[w,_]=jf(b),O=w.join(" "),A=y.getStyle(O);if(A)return{...A,..._||{}};for(let D of w){let q=y.getIr(D);if(!q&&D in o){let ue=p(o[D]);y.setIr(D,T(ue)),k={...k,...ue};continue}switch(q=new Tr(D,n,y,r,t).parse(),q.kind){case"complete":k={...k,...q.style},y.setIr(D,q);break;case"dependent":S.push(q);break;case"ordered":R.push(q);break;case"null":y.setIr(D,q);break}}if(R.length>0){R.sort((D,q)=>D.order-q.order);for(let D of R)switch(D.styleIr.kind){case"complete":k={...k,...D.styleIr.style};break;case"dependent":S.push(D.styleIr);break}}if(S.length>0){for(let D of S){let q=D.complete(k);q&&Ve(q)}Mf(k)}return O!==""&&y.setStyle(O,k),_&&(k={...k,..._}),k}function h(b){let y=p(b.split(/\s+/g).map(k=>k.replace(/^(bg|text|border)-/,"")).map(k=>`bg-${k}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let g=(b,...y)=>{let k="";return b.forEach((S,R)=>{var w;k+=S+((w=y[R])!==null&&w!==void 0?w:"")}),p(k)};return g.style=p,g.color=h,g.prefixMatch=(...b)=>{let y=b.sort().join(":"),k=l(),S=k.getPrefixMatch(y);if(S!==void 0)return S;let _=new Tr(`${y}:flex`,n,k,r,t).parse().kind!=="null";return k.setPrefixMatch(y,_),_},g.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},g.setFontScale=b=>{r.fontScale=b,u=a()},g.setPixelDensity=b=>{r.pixelDensity=b,u=a()},g.setColorScheme=b=>{r.colorScheme=b,u=a()},g}function Cb(e){return{...e,content:["_no_warnings_please"]}}var Mb={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function Nb(e){return Yf({...e,plugins:[...(e==null?void 0:e.plugins)??[],Mb]},"web")}var bi;function Gs({width:e,height:t,config:n}){return bi||(bi=Nb(n)),bi.setWindowDimensions({width:+e,height:+t}),bi}var js=new WeakMap;async function Qf(e,t){let n=await Gt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;js.has(t.fonts)?r=js.get(t.fonts):js.set(t.fonts,r=new Br(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=Wb(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set;yt.clear(),Ir.clear(),await Ia(e);let f=Dr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let S={...Gs({width:i,height:o,config:t.tailwindConfig})([b])};return typeof S.lineHeight=="number"&&(S.lineHeight=S.lineHeight/(+S.fontSize||y.fontSize||16)),S.shadowColor&&S.boxShadow&&(S.boxShadow=S.boxShadow.replace(/rgba?\([^)]+\)/,S.shadowColor)),S}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=Db(l),y=[],k={};await Promise.all(Object.entries(b).flatMap(([S,R])=>R.map(w=>{let _=`${S}_${w}`;return u.has(_)?null:(u.add(_),t.loadAdditionalAsset(S,w).then(O=>{typeof O=="string"?k[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,k)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),g=s.getComputedHeight();return s.freeRecursive(),ro({width:h,height:g,content:p})}function Wb(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function Db(e){let t={},n={};for(let{word:r,locale:i}of e){let o=cu(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Xf(De(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Xf(De(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Xf(e){return Array.from(new Set(e))}export{Qf as default,Ac as init};
8
8
  //# sourceMappingURL=standalone.js.map