satori 0.32.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -3
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/standalone.cjs +7 -7
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +3 -7
package/dist/standalone.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var Jc=Object.create;var jn=Object.defineProperty;var Zc=Object.getOwnPropertyDescriptor;var ed=Object.getOwnPropertyNames;var td=Object.getPrototypeOf,rd=Object.prototype.hasOwnProperty;var sr=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zr=(e,t)=>{for(var r in t)jn(e,r,{get:t[r],enumerable:!0})},Ia=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ed(t))!rd.call(e,i)&&i!==r&&jn(e,i,{get:()=>t[i],enumerable:!(n=Zc(t,i))||n.enumerable});return e};var _t=(e,t,r)=>(r=e!=null?Jc(td(e)):{},Ia(t||!e||!e.__esModule?jn(r,"default",{value:e,enumerable:!0}):r,e)),Gr=e=>Ia(jn({},"__esModule",{value:!0}),e);var Bt,ja,Va,Hr,Gi,Ut,Tr,md,Yn,ji,Er,kr,Vi,Ha,Hi,Yi,Et,Xi,gd,Ya,Xn=sr(()=>{Bt=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}({}),ja=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Va=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Hr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Gi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Ut=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}({}),Tr=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}({}),md=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Yn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),ji=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),Er=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}({}),kr=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}({}),Vi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Ha=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Hi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Yi=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),Et=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Xi=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),gd={ALIGN_AUTO:Bt.Auto,ALIGN_FLEX_START:Bt.FlexStart,ALIGN_CENTER:Bt.Center,ALIGN_FLEX_END:Bt.FlexEnd,ALIGN_STRETCH:Bt.Stretch,ALIGN_BASELINE:Bt.Baseline,ALIGN_SPACE_BETWEEN:Bt.SpaceBetween,ALIGN_SPACE_AROUND:Bt.SpaceAround,ALIGN_SPACE_EVENLY:Bt.SpaceEvenly,BOX_SIZING_BORDER_BOX:ja.BorderBox,BOX_SIZING_CONTENT_BOX:ja.ContentBox,DIMENSION_WIDTH:Va.Width,DIMENSION_HEIGHT:Va.Height,DIRECTION_INHERIT:Hr.Inherit,DIRECTION_LTR:Hr.LTR,DIRECTION_RTL:Hr.RTL,DISPLAY_FLEX:Gi.Flex,DISPLAY_NONE:Gi.None,DISPLAY_CONTENTS:Gi.Contents,EDGE_LEFT:Ut.Left,EDGE_TOP:Ut.Top,EDGE_RIGHT:Ut.Right,EDGE_BOTTOM:Ut.Bottom,EDGE_START:Ut.Start,EDGE_END:Ut.End,EDGE_HORIZONTAL:Ut.Horizontal,EDGE_VERTICAL:Ut.Vertical,EDGE_ALL:Ut.All,ERRATA_NONE:Tr.None,ERRATA_STRETCH_FLEX_BASIS:Tr.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Tr.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Tr.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Tr.All,ERRATA_CLASSIC:Tr.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:md.WebFlexBasis,FLEX_DIRECTION_COLUMN:Yn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Yn.ColumnReverse,FLEX_DIRECTION_ROW:Yn.Row,FLEX_DIRECTION_ROW_REVERSE:Yn.RowReverse,GUTTER_COLUMN:ji.Column,GUTTER_ROW:ji.Row,GUTTER_ALL:ji.All,JUSTIFY_FLEX_START:Er.FlexStart,JUSTIFY_CENTER:Er.Center,JUSTIFY_FLEX_END:Er.FlexEnd,JUSTIFY_SPACE_BETWEEN:Er.SpaceBetween,JUSTIFY_SPACE_AROUND:Er.SpaceAround,JUSTIFY_SPACE_EVENLY:Er.SpaceEvenly,LOG_LEVEL_ERROR:kr.Error,LOG_LEVEL_WARN:kr.Warn,LOG_LEVEL_INFO:kr.Info,LOG_LEVEL_DEBUG:kr.Debug,LOG_LEVEL_VERBOSE:kr.Verbose,LOG_LEVEL_FATAL:kr.Fatal,MEASURE_MODE_UNDEFINED:Vi.Undefined,MEASURE_MODE_EXACTLY:Vi.Exactly,MEASURE_MODE_AT_MOST:Vi.AtMost,NODE_TYPE_DEFAULT:Ha.Default,NODE_TYPE_TEXT:Ha.Text,OVERFLOW_VISIBLE:Hi.Visible,OVERFLOW_HIDDEN:Hi.Hidden,OVERFLOW_SCROLL:Hi.Scroll,POSITION_TYPE_STATIC:Yi.Static,POSITION_TYPE_RELATIVE:Yi.Relative,POSITION_TYPE_ABSOLUTE:Yi.Absolute,UNIT_UNDEFINED:Et.Undefined,UNIT_POINT:Et.Point,UNIT_PERCENT:Et.Percent,UNIT_AUTO:Et.Auto,WRAP_NO_WRAP:Xi.NoWrap,WRAP_WRAP:Xi.Wrap,WRAP_WRAP_REVERSE:Xi.WrapReverse},Ya=gd});function Qi(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[Et.Point]:e.Node.prototype[i],[Et.Percent]:e.Node.prototype[`${i}Percent`],[Et.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),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),d,m;if(f==="auto")d=Et.Auto,m=void 0;else if(typeof f=="object")d=f.unit,m=f.valueOf();else if(d=typeof f=="string"&&f.endsWith("%")?Et.Percent:Et.Point,m=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(m))throw new Error(`Invalid value ${f} for ${i}`);if(!o[d])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return m!==void 0?o[d].call(this,...u,m):o[d].call(this,...u)})}function r(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,r(o)):this.unsetMeasureFunc()});function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,n(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]:Hr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Ya}}var Xa=sr(()=>{Xn();Xn()});var Ka={};zr(Ka,{default:()=>bd});function bd(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(c,p){r=c,n=p});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),Qa&&(o=Qa),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 l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Se("no native wasm support detected");var f,d=!1;function m(c,p,b){b=p+b;for(var y="";!(p>=b);){var S=c[p++];if(!S)break;if(S&128){var P=c[p++]&63;if((S&224)==192)y+=String.fromCharCode((S&31)<<6|P);else{var A=c[p++]&63;S=(S&240)==224?(S&15)<<12|P<<6|A:(S&7)<<18|P<<12|A<<6|c[p++]&63,65536>S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}var h,g,v,w,_,O,x,E,T;function I(){var c=f.buffer;h=c,t.HEAP8=g=new Int8Array(c),t.HEAP16=w=new Int16Array(c),t.HEAP32=O=new Int32Array(c),t.HEAPU8=v=new Uint8Array(c),t.HEAPU16=_=new Uint16Array(c),t.HEAPU32=x=new Uint32Array(c),t.HEAPF32=E=new Float32Array(c),t.HEAPF64=T=new Float64Array(c)}var N,W=[],z=[],Z=[];function de(){var c=t.preRun.shift();W.unshift(c)}var we=0,ve=null,ue=null;function Se(c){throw t.onAbort&&t.onAbort(c),c="Aborted("+c+")",a(c),d=!0,c=new WebAssembly.RuntimeError(c+". Build with -sASSERTIONS for more info."),n(c),c}function Me(c){return c.startsWith("data:application/octet-stream;base64,")}var te="";if(!Me(te)){var J=te;te=t.locateFile?t.locateFile(J,o):o+J}function ot(){var c=te;try{if(c==te&&u)return new Uint8Array(u);if(Me(c))try{var p=Qc(c.slice(37)),b=new Uint8Array(p.length);for(c=0;c<p.length;++c)b[c]=p.charCodeAt(c);var y=b}catch{throw Error("Converting base64 string to bytes failed.")}else y=void 0;var S=y;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(P){Se(P)}}function He(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return ot()}):fetch(te,{credentials:"same-origin"}).then(function(c){if(!c.ok)throw"failed to load wasm binary file at '"+te+"'";return c.arrayBuffer()}).catch(function(){return ot()})}function ye(c){for(;0<c.length;)c.shift()(t)}function Re(c){if(c===void 0)return"_unknown";c=c.replace(/[^a-zA-Z0-9_]/g,"$");var p=c.charCodeAt(0);return 48<=p&&57>=p?"_"+c:c}function Ze(c,p){return c=Re(c),function(){return p.apply(this,arguments)}}var le=[{},{value:void 0},{value:null},{value:!0},{value:!1}],X=[];function ee(c){var p=Error,b=Ze(c,function(y){this.name=c,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+`
|
|
2
|
-
`+y.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var me=void 0;function G(c){throw new me(c)}var _e=c=>(c||G("Cannot use deleted val. handle = "+c),le[c].value),Ie=c=>{switch(c){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var p=X.length?X.pop():le.length;return le[p]={ga:1,value:c},p}},Ye=void 0,Be=void 0;function pe(c){for(var p="";v[c];)p+=Be[v[c++]];return p}var Ue=[];function Ce(){for(;Ue.length;){var c=Ue.pop();c.M.$=!1,c.delete()}}var et=void 0,Ne={};function br(c,p){for(p===void 0&&G("ptr should not be undefined");c.R;)p=c.ba(p),c=c.R;return p}var Ot={};function Dr(c){c=Ea(c);var p=pe(c);return Ft(c),p}function tr(c,p){var b=Ot[c];return b===void 0&&G(p+" has unknown type "+Dr(c)),b}function vr(){}var yr=!1;function rr(c){--c.count.value,c.count.value===0&&(c.T?c.U.W(c.T):c.P.N.W(c.O))}function It(c,p,b){return p===b?c:b.R===void 0?null:(c=It(c,p,b.R),c===null?null:b.na(c))}var gt={};function st(c,p){return p=br(c,p),Ne[p]}var nr=void 0;function Xe(c){throw new nr(c)}function bt(c,p){return p.P&&p.O||Xe("makeClassHandle requires ptr and ptrType"),!!p.U!=!!p.T&&Xe("Both smartPtrType and smartPtr must be specified"),p.count={value:1},vt(Object.create(c,{M:{value:p}}))}function vt(c){return typeof FinalizationRegistry>"u"?(vt=p=>p,c):(yr=new FinalizationRegistry(p=>{rr(p.M)}),vt=p=>{var b=p.M;return b.T&&yr.register(p,{M:b},p),p},vr=p=>{yr.unregister(p)},vt(c))}var ir={};function Vt(c){for(;c.length;){var p=c.pop();c.pop()(p)}}function qe(c){return this.fromWireType(O[c>>2])}var at={},tt={};function yt(c,p,b){function y(C){C=b(C),C.length!==c.length&&Xe("Mismatched type converter count");for(var F=0;F<c.length;++F)H(c[F],C[F])}c.forEach(function(C){tt[C]=p});var S=Array(p.length),P=[],A=0;p.forEach((C,F)=>{Ot.hasOwnProperty(C)?S[F]=Ot[C]:(P.push(C),at.hasOwnProperty(C)||(at[C]=[]),at[C].push(()=>{S[F]=Ot[C],++A,A===P.length&&y(S)}))}),P.length===0&&y(S)}function Y(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 H(c,p,b={}){if(!("argPackAdvance"in p))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=p.name;if(c||G('type "'+y+'" must have a positive integer typeid pointer'),Ot.hasOwnProperty(c)){if(b.ua)return;G("Cannot register type '"+y+"' twice")}Ot[c]=p,delete tt[c],at.hasOwnProperty(c)&&(p=at[c],delete at[c],p.forEach(S=>S()))}function fe(c){G(c.M.P.N.name+" instance already deleted")}function Q(){}function xe(c,p,b){if(c[p].S===void 0){var y=c[p];c[p]=function(){return c[p].S.hasOwnProperty(arguments.length)||G("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+c[p].S+")!"),c[p].S[arguments.length].apply(this,arguments)},c[p].S=[],c[p].S[y.Z]=y}}function ae(c,p){t.hasOwnProperty(c)?(G("Cannot register public name '"+c+"' twice"),xe(t,c,c),t.hasOwnProperty(void 0)&&G("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[c].S[void 0]=p):t[c]=p}function Te(c,p,b,y,S,P,A,C){this.name=c,this.constructor=p,this.X=b,this.W=y,this.R=S,this.pa=P,this.ba=A,this.na=C,this.ja=[]}function re(c,p,b){for(;p!==b;)p.ba||G("Expected null or instance of "+b.name+", got an instance of "+p.name),c=p.ba(c),p=p.R;return c}function ne(c,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),re(p.M.O,p.M.P.N,this.N))}function ut(c,p){if(p===null){if(this.ea&&G("null is not a valid "+this.name),this.da){var b=this.fa();return c!==null&&c.push(this.W,b),b}return 0}if(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&p.M.P.ca&&G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name),b=re(p.M.O,p.M.P.N,this.N),this.da)switch(p.M.T===void 0&&G("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:p.M.U===this?b=p.M.T:G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name);break;case 1:b=p.M.T;break;case 2:if(p.M.U===this)b=p.M.T;else{var y=p.clone();b=this.xa(b,Ie(function(){y.delete()})),c!==null&&c.push(this.W,b)}break;default:G("Unsupporting sharing policy")}return b}function K(c,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+rt(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),p.M.P.ca&&G("Cannot convert argument of type "+p.M.P.name+" to parameter type "+this.name),re(p.M.O,p.M.P.N,this.N))}function Fe(c,p,b,y){this.name=c,this.N=p,this.ea=b,this.ca=y,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,p.R!==void 0?this.toWireType=ut:(this.toWireType=y?ne:K,this.V=null)}function ze(c,p){t.hasOwnProperty(c)||Xe("Replacing nonexistant public symbol"),t[c]=p,t[c].Z=void 0}function $r(c,p){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),c.includes("j")){var y=t["dynCall_"+c];y=b&&b.length?y.apply(null,[p].concat(b)):y.call(null,p)}else y=N.get(p).apply(null,b);return y}}function Ae(c,p){c=pe(c);var b=c.includes("j")?$r(c,p):N.get(p);return typeof b!="function"&&G("unknown function pointer with signature "+c+": "+p),b}var or=void 0;function $e(c,p){function b(P){S[P]||Ot[P]||(tt[P]?tt[P].forEach(b):(y.push(P),S[P]=!0))}var y=[],S={};throw p.forEach(b),new or(c+": "+y.map(Dr).join([", "]))}function Nt(c,p,b,y,S){var P=p.length;2>P&&G("argTypes array size mismatch! Must at least get return value and 'this' types!");var A=p[1]!==null&&b!==null,C=!1;for(b=1;b<p.length;++b)if(p[b]!==null&&p[b].V===void 0){C=!0;break}var F=p[0].name!=="void",M=P-2,$=Array(M),j=[],ie=[];return function(){if(arguments.length!==M&&G("function "+c+" called with "+arguments.length+" arguments, expected "+M+" args!"),ie.length=0,j.length=A?2:1,j[0]=S,A){var Le=p[1].toWireType(ie,this);j[1]=Le}for(var ce=0;ce<M;++ce)$[ce]=p[ce+2].toWireType(ie,arguments[ce]),j.push($[ce]);if(ce=y.apply(null,j),C)Vt(ie);else for(var it=A?1:2;it<p.length;it++){var St=it===1?Le:$[it-2];p[it].V!==null&&p[it].V(St)}return Le=F?p[0].fromWireType(ce):void 0,Le}}function Ee(c,p){for(var b=[],y=0;y<c;y++)b.push(x[p+4*y>>2]);return b}function Oe(c){4<c&&--le[c].ga===0&&(le[c]=void 0,X.push(c))}function rt(c){if(c===null)return"null";var p=typeof c;return p==="object"||p==="array"||p==="function"?c.toString():""+c}function nt(c,p){switch(p){case 2:return function(b){return this.fromWireType(E[b>>2])};case 3:return function(b){return this.fromWireType(T[b>>3])};default:throw new TypeError("Unknown float type: "+c)}}function xt(c,p,b){switch(p){case 0:return b?function(y){return g[y]}:function(y){return v[y]};case 1:return b?function(y){return w[y>>1]}:function(y){return _[y>>1]};case 2:return b?function(y){return O[y>>2]}:function(y){return x[y>>2]};default:throw new TypeError("Unknown integer type: "+c)}}function wt(c,p){for(var b="",y=0;!(y>=p/2);++y){var S=w[c+2*y>>1];if(S==0)break;b+=String.fromCharCode(S)}return b}function Ge(c,p,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var y=p;b=b<2*c.length?b/2:c.length;for(var S=0;S<b;++S)w[p>>1]=c.charCodeAt(S),p+=2;return w[p>>1]=0,p-y}function lt(c){return 2*c.length}function Br(c,p){for(var b=0,y="";!(b>=p/4);){var S=O[c+4*b>>2];if(S==0)break;++b,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function xr(c,p,b){if(b===void 0&&(b=2147483647),4>b)return 0;var y=p;b=y+b-4;for(var S=0;S<c.length;++S){var P=c.charCodeAt(S);if(55296<=P&&57343>=P){var A=c.charCodeAt(++S);P=65536+((P&1023)<<10)|A&1023}if(O[p>>2]=P,p+=4,p+4>b)break}return O[p>>2]=0,p-y}function Bn(c){for(var p=0,b=0;b<c.length;++b){var y=c.charCodeAt(b);55296<=y&&57343>=y&&++b,p+=4}return p}var Un={};function Ur(c){var p=Un[c];return p===void 0?pe(c):p}var qn=[];function Hc(c){var p=qn.length;return qn.push(c),p}function Yc(c,p){for(var b=Array(c),y=0;y<c;++y)b[y]=tr(x[p+4*y>>2],"parameter "+y);return b}var _a=[],Xc=[null,[],[]];me=t.BindingError=ee("BindingError"),t.count_emval_handles=function(){for(var c=0,p=5;p<le.length;++p)le[p]!==void 0&&++c;return c},t.get_first_emval=function(){for(var c=5;c<le.length;++c)if(le[c]!==void 0)return le[c];return null},Ye=t.PureVirtualError=ee("PureVirtualError");for(var Ta=Array(256),zn=0;256>zn;++zn)Ta[zn]=String.fromCharCode(zn);Be=Ta,t.getInheritedInstanceCount=function(){return Object.keys(Ne).length},t.getLiveInheritedInstances=function(){var c=[],p;for(p in Ne)Ne.hasOwnProperty(p)&&c.push(Ne[p]);return c},t.flushPendingDeletes=Ce,t.setDelayFunction=function(c){et=c,Ue.length&&et&&et(Ce)},nr=t.InternalError=ee("InternalError"),Q.prototype.isAliasOf=function(c){if(!(this instanceof Q&&c instanceof Q))return!1;var p=this.M.P.N,b=this.M.O,y=c.M.P.N;for(c=c.M.O;p.R;)b=p.ba(b),p=p.R;for(;y.R;)c=y.ba(c),y=y.R;return p===y&&b===c},Q.prototype.clone=function(){if(this.M.O||fe(this),this.M.aa)return this.M.count.value+=1,this;var c=vt,p=Object,b=p.create,y=Object.getPrototypeOf(this),S=this.M;return c=c(b.call(p,y,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),c.M.count.value+=1,c.M.$=!1,c},Q.prototype.delete=function(){this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),vr(this),rr(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Q.prototype.isDeleted=function(){return!this.M.O},Q.prototype.deleteLater=function(){return this.M.O||fe(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),Ue.push(this),Ue.length===1&&et&&et(Ce),this.M.$=!0,this},Fe.prototype.qa=function(c){return this.ka&&(c=this.ka(c)),c},Fe.prototype.ha=function(c){this.W&&this.W(c)},Fe.prototype.argPackAdvance=8,Fe.prototype.readValueFromPointer=qe,Fe.prototype.deleteObject=function(c){c!==null&&c.delete()},Fe.prototype.fromWireType=function(c){function p(){return this.da?bt(this.N.X,{P:this.wa,O:b,U:this,T:c}):bt(this.N.X,{P:this,O:c})}var b=this.qa(c);if(!b)return this.ha(c),null;var y=st(this.N,b);if(y!==void 0)return y.M.count.value===0?(y.M.O=b,y.M.T=c,y.clone()):(y=y.clone(),this.ha(c),y);if(y=this.N.pa(b),y=gt[y],!y)return p.call(this);y=this.ca?y.la:y.pointerType;var S=It(b,this.N,y.N);return S===null?p.call(this):this.da?bt(y.N.X,{P:y,O:S,U:this,T:c}):bt(y.N.X,{P:y,O:S})},or=t.UnboundTypeError=ee("UnboundTypeError");var Qc=typeof atob=="function"?atob:function(c){var p="",b=0;c=c.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++)),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(c.charAt(b++));y=y<<2|S>>4,S=(S&15)<<4|P>>2;var C=(P&3)<<6|A;p+=String.fromCharCode(y),P!==64&&(p+=String.fromCharCode(S)),A!==64&&(p+=String.fromCharCode(C))}while(b<c.length);return p},Kc={l:function(c,p,b,y){Se("Assertion failed: "+(c?m(v,c):"")+", at: "+[p?p?m(v,p):"":"unknown filename",b,y?y?m(v,y):"":"unknown function"])},q:function(c,p,b){c=pe(c),p=tr(p,"wrapper"),b=_e(b);var y=[].slice,S=p.N,P=S.X,A=S.R.X,C=S.R.constructor;c=Ze(c,function(){S.R.ja.forEach(function(M){if(this[M]===A[M])throw new Ye("Pure virtual function "+M+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:P}),this.__construct.apply(this,y.call(arguments))}),P.__construct=function(){this===P&&G("Pass correct 'this' to __construct");var M=C.implement.apply(void 0,[this].concat(y.call(arguments)));vr(M);var $=M.M;M.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),vt(this),M=$.O,M=br(S,M),Ne.hasOwnProperty(M)?G("Tried to register registered instance: "+M):Ne[M]=this},P.__destruct=function(){this===P&&G("Pass correct 'this' to __destruct"),vr(this);var M=this.M.O;M=br(S,M),Ne.hasOwnProperty(M)?delete Ne[M]:G("Tried to unregister unregistered instance: "+M)},c.prototype=Object.create(P);for(var F in b)c.prototype[F]=b[F];return Ie(c)},j:function(c){var p=ir[c];delete ir[c];var b=p.fa,y=p.W,S=p.ia,P=S.map(A=>A.ta).concat(S.map(A=>A.za));yt([c],P,A=>{var C={};return S.forEach((F,M)=>{var $=A[M],j=F.ra,ie=F.sa,Le=A[M+S.length],ce=F.ya,it=F.Aa;C[F.oa]={read:St=>$.fromWireType(j(ie,St)),write:(St,qr)=>{var Wt=[];ce(it,St,Le.toWireType(Wt,qr)),Vt(Wt)}}}),[{name:p.name,fromWireType:function(F){var M={},$;for($ in C)M[$]=C[$].read(F);return y(F),M},toWireType:function(F,M){for(var $ in C)if(!($ in M))throw new TypeError('Missing field: "'+$+'"');var j=b();for($ in C)C[$].write(j,M[$]);return F!==null&&F.push(y,j),j},argPackAdvance:8,readValueFromPointer:qe,V:y}]})},v:function(){},B:function(c,p,b,y,S){var P=Y(b);p=pe(p),H(c,{name:p,fromWireType:function(A){return!!A},toWireType:function(A,C){return C?y:S},argPackAdvance:8,readValueFromPointer:function(A){if(b===1)var C=g;else if(b===2)C=w;else if(b===4)C=O;else throw new TypeError("Unknown boolean type size: "+p);return this.fromWireType(C[A>>P])},V:null})},f:function(c,p,b,y,S,P,A,C,F,M,$,j,ie){$=pe($),P=Ae(S,P),C&&(C=Ae(A,C)),M&&(M=Ae(F,M)),ie=Ae(j,ie);var Le=Re($);ae(Le,function(){$e("Cannot construct "+$+" due to unbound types",[y])}),yt([c,p,b],y?[y]:[],function(ce){if(ce=ce[0],y)var it=ce.N,St=it.X;else St=Q.prototype;ce=Ze(Le,function(){if(Object.getPrototypeOf(this)!==qr)throw new me("Use 'new' to construct "+$);if(Wt.Y===void 0)throw new me($+" has no accessible constructor");var Oa=Wt.Y[arguments.length];if(Oa===void 0)throw new me("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Wt.Y).toString()+") parameters instead!");return Oa.apply(this,arguments)});var qr=Object.create(St,{constructor:{value:ce}});ce.prototype=qr;var Wt=new Te($,ce,qr,ie,it,P,C,M);it=new Fe($,Wt,!0,!1),St=new Fe($+"*",Wt,!1,!1);var Pa=new Fe($+" const*",Wt,!1,!0);return gt[c]={pointerType:St,la:Pa},ze(Le,ce),[it,St,Pa]})},d:function(c,p,b,y,S,P,A){var C=Ee(b,y);p=pe(p),P=Ae(S,P),yt([],[c],function(F){function M(){$e("Cannot call "+$+" due to unbound types",C)}F=F[0];var $=F.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]);var j=F.N.constructor;return j[p]===void 0?(M.Z=b-1,j[p]=M):(xe(j,p,$),j[p].S[b-1]=M),yt([],C,function(ie){return ie=Nt($,[ie[0],null].concat(ie.slice(1)),null,P,A),j[p].S===void 0?(ie.Z=b-1,j[p]=ie):j[p].S[b-1]=ie,[]}),[]})},p:function(c,p,b,y,S,P){0<p||Se();var A=Ee(p,b);S=Ae(y,S),yt([],[c],function(C){C=C[0];var F="constructor "+C.name;if(C.N.Y===void 0&&(C.N.Y=[]),C.N.Y[p-1]!==void 0)throw new me("Cannot register multiple constructors with identical number of parameters ("+(p-1)+") for class '"+C.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return C.N.Y[p-1]=()=>{$e("Cannot construct "+C.name+" due to unbound types",A)},yt([],A,function(M){return M.splice(1,0,null),C.N.Y[p-1]=Nt(F,M,null,S,P),[]}),[]})},a:function(c,p,b,y,S,P,A,C){var F=Ee(b,y);p=pe(p),P=Ae(S,P),yt([],[c],function(M){function $(){$e("Cannot call "+j+" due to unbound types",F)}M=M[0];var j=M.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]),C&&M.N.ja.push(p);var ie=M.N.X,Le=ie[p];return Le===void 0||Le.S===void 0&&Le.className!==M.name&&Le.Z===b-2?($.Z=b-2,$.className=M.name,ie[p]=$):(xe(ie,p,j),ie[p].S[b-2]=$),yt([],F,function(ce){return ce=Nt(j,ce,M,P,A),ie[p].S===void 0?(ce.Z=b-2,ie[p]=ce):ie[p].S[b-2]=ce,[]}),[]})},A:function(c,p){p=pe(p),H(c,{name:p,fromWireType:function(b){var y=_e(b);return Oe(b),y},toWireType:function(b,y){return Ie(y)},argPackAdvance:8,readValueFromPointer:qe,V:null})},n:function(c,p,b){b=Y(b),p=pe(p),H(c,{name:p,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:nt(p,b),V:null})},e:function(c,p,b,y,S){p=pe(p),S===-1&&(S=4294967295),S=Y(b);var P=C=>C;if(y===0){var A=32-8*b;P=C=>C<<A>>>A}b=p.includes("unsigned")?function(C,F){return F>>>0}:function(C,F){return F},H(c,{name:p,fromWireType:P,toWireType:b,argPackAdvance:8,readValueFromPointer:xt(p,S,y!==0),V:null})},b:function(c,p,b){function y(P){P>>=2;var A=x;return new S(h,A[P+1],A[P])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][p];b=pe(b),H(c,{name:b,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{ua:!0})},o:function(c,p){p=pe(p);var b=p==="std::string";H(c,{name:p,fromWireType:function(y){var S=x[y>>2],P=y+4;if(b)for(var A=P,C=0;C<=S;++C){var F=P+C;if(C==S||v[F]==0){if(A=A?m(v,A,F-A):"",M===void 0)var M=A;else M+=String.fromCharCode(0),M+=A;A=F+1}}else{for(M=Array(S),C=0;C<S;++C)M[C]=String.fromCharCode(v[P+C]);M=M.join("")}return Ft(y),M},toWireType:function(y,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var P,A=typeof S=="string";if(A||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||G("Cannot pass non-string to std::string"),b&&A){var C=0;for(P=0;P<S.length;++P){var F=S.charCodeAt(P);127>=F?C++:2047>=F?C+=2:55296<=F&&57343>=F?(C+=4,++P):C+=3}P=C}else P=S.length;if(C=Di(4+P+1),F=C+4,x[C>>2]=P,b&&A){if(A=F,F=P+1,P=v,0<F){F=A+F-1;for(var M=0;M<S.length;++M){var $=S.charCodeAt(M);if(55296<=$&&57343>=$){var j=S.charCodeAt(++M);$=65536+(($&1023)<<10)|j&1023}if(127>=$){if(A>=F)break;P[A++]=$}else{if(2047>=$){if(A+1>=F)break;P[A++]=192|$>>6}else{if(65535>=$){if(A+2>=F)break;P[A++]=224|$>>12}else{if(A+3>=F)break;P[A++]=240|$>>18,P[A++]=128|$>>12&63}P[A++]=128|$>>6&63}P[A++]=128|$&63}}P[A]=0}}else if(A)for(A=0;A<P;++A)M=S.charCodeAt(A),255<M&&(Ft(F),G("String has UTF-16 code units that do not fit in 8 bits")),v[F+A]=M;else for(A=0;A<P;++A)v[F+A]=S[A];return y!==null&&y.push(Ft,C),C},argPackAdvance:8,readValueFromPointer:qe,V:function(y){Ft(y)}})},i:function(c,p,b){if(b=pe(b),p===2)var y=wt,S=Ge,P=lt,A=()=>_,C=1;else p===4&&(y=Br,S=xr,P=Bn,A=()=>x,C=2);H(c,{name:b,fromWireType:function(F){for(var M=x[F>>2],$=A(),j,ie=F+4,Le=0;Le<=M;++Le){var ce=F+4+Le*p;(Le==M||$[ce>>C]==0)&&(ie=y(ie,ce-ie),j===void 0?j=ie:(j+=String.fromCharCode(0),j+=ie),ie=ce+p)}return Ft(F),j},toWireType:function(F,M){typeof M!="string"&&G("Cannot pass non-string to C++ string type "+b);var $=P(M),j=Di(4+$+p);return x[j>>2]=$>>C,S(M,j+4,$+p),F!==null&&F.push(Ft,j),j},argPackAdvance:8,readValueFromPointer:qe,V:function(F){Ft(F)}})},k:function(c,p,b,y,S,P){ir[c]={name:pe(p),fa:Ae(b,y),W:Ae(S,P),ia:[]}},h:function(c,p,b,y,S,P,A,C,F,M){ir[c].ia.push({oa:pe(p),ta:b,ra:Ae(y,S),sa:P,za:A,ya:Ae(C,F),Aa:M})},C:function(c,p){p=pe(p),H(c,{va:!0,name:p,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(c,p,b,y,S){c=qn[c],p=_e(p),b=Ur(b);var P=[];return x[y>>2]=Ie(P),c(p,b,P,S)},t:function(c,p,b,y){c=qn[c],p=_e(p),b=Ur(b),c(p,b,null,y)},g:Oe,m:function(c,p){var b=Yc(c,p),y=b[0];p=y.name+"_$"+b.slice(1).map(function(A){return A.name}).join("_")+"$";var S=_a[p];if(S!==void 0)return S;var P=Array(c-1);return S=Hc((A,C,F,M)=>{for(var $=0,j=0;j<c-1;++j)P[j]=b[j+1].readValueFromPointer(M+$),$+=b[j+1].argPackAdvance;for(A=A[C].apply(A,P),j=0;j<c-1;++j)b[j+1].ma&&b[j+1].ma(P[j]);if(!y.va)return y.toWireType(F,A)}),_a[p]=S},D:function(c){4<c&&(le[c].ga+=1)},r:function(c){var p=_e(c);Vt(p),Oe(c)},c:function(){Se("")},x:function(c,p,b){v.copyWithin(c,p,p+b)},w:function(c){var p=v.length;if(c>>>=0,2147483648<c)return!1;for(var b=1;4>=b;b*=2){var y=p*(1+.2/b);y=Math.min(y,c+100663296);var S=Math;y=Math.max(c,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{f.grow(S-h.byteLength+65535>>>16),I();var P=1;break e}catch{}P=void 0}if(P)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(c,p,b,y){for(var S=0,P=0;P<b;P++){var A=x[p>>2],C=x[p+4>>2];p+=8;for(var F=0;F<C;F++){var M=v[A+F],$=Xc[c];M===0||M===10?((c===1?s:a)(m($,0)),$.length=0):$.push(M)}S+=C}return x[y>>2]=S,0}};(function(){function c(S){t.asm=S.exports,f=t.asm.E,I(),N=t.asm.J,z.unshift(t.asm.F),we--,t.monitorRunDependencies&&t.monitorRunDependencies(we),we==0&&(ve!==null&&(clearInterval(ve),ve=null),ue&&(S=ue,ue=null,S()))}function p(S){c(S.instance)}function b(S){return He().then(function(P){return P instanceof WebAssembly.Instance?P:WebAssembly.instantiate(P,y)}).then(function(P){return P}).then(S,function(P){a("failed to asynchronously prepare wasm: "+P),Se(P)})}var y={a:Kc};if(we++,t.monitorRunDependencies&&t.monitorRunDependencies(we),t.instantiateWasm)try{return t.instantiateWasm(y,c)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),n(S)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||Me(te)||typeof fetch!="function"?b(p):fetch(te,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(p,function(P){return a("wasm streaming compile failed: "+P),a("falling back to ArrayBuffer instantiation"),b(p)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Ea=t.___getTypeName=function(){return(Ea=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 Di=t._malloc=function(){return(Di=t._malloc=t.asm.I).apply(null,arguments)},Ft=t._free=function(){return(Ft=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var Gn;ue=function c(){Gn||ka(),Gn||(ue=c)};function ka(){function c(){if(!Gn&&(Gn=!0,t.calledRun=!0,!d)){if(ye(z),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var p=t.postRun.shift();Z.unshift(p)}ye(Z)}}if(!(0<we)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)de();ye(W),0<we||(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 ka(),e.ready}var Qa,Ja=sr(()=>{Qa=""});async function Za(e){let{default:t}=await Promise.resolve().then(()=>(Ja(),Ka));return Qi(await t(e))}var eu=sr(()=>{Xa();Xn()});var Ji={};zr(Ji,{getYoga:()=>Sd,init:()=>wd});async function xd(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.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 r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function wd(e){vd({instantiateWasm(t,r){return xd(e,t).then(({instance:n})=>{r(n)}).catch(Ki),{}}}).then(tu).catch(Ki)}function Sd(){return yd}var vd,tu,Ki,yd,Zi=sr(()=>{eu();vd=Za,yd=new Promise((e,t)=>{tu=e,Ki=t})});var No=q(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Object.defineProperty(Mo,"default",{enumerable:!0,get:()=>$p});function $p(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 cl=q(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Object.defineProperty(Fo,"default",{enumerable:!0,get:()=>Bp});var Bp=["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 dl=q(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Object.defineProperty(Wo,"default",{enumerable:!0,get:()=>Up});function Up(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(n=>e!==!1&&e[n]!==!1).concat(Object.keys(e).filter(n=>e[n]!==!1)))]}});var Do=q(($x,pl)=>{pl.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 vi={};zr(vi,{default:()=>qp});var qp,yi=sr(()=>{qp={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 hl=q($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"default",{enumerable:!0,get:()=>jp});var zp=Gp((yi(),Gr(vi)));function Gp(e){return e&&e.__esModule?e:{default:e}}function on({version:e,from:t,to:r}){zp.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var jp={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 on({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return on({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return on({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return on({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return on({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var ml=q(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Object.defineProperty(Bo,"defaults",{enumerable:!0,get:()=>Vp});function Vp(e,...t){for(let i of t){for(let o in i){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}}return e}});var gl=q(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Object.defineProperty(Uo,"toPath",{enumerable:!0,get:()=>Hp});function Hp(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,r=e.split("]").length-1;if(t!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var vl=q(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});Object.defineProperty(qo,"normalizeConfig",{enumerable:!0,get:()=>Xp});var sn=Yp((yi(),Gr(vi)));function bl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(bl=function(n){return n?r:t})(e)}function Yp(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=bl(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Xp(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(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(n=>!["files","extract","transform"].includes(n)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let n of Object.values(e.content.extract))if(typeof n!="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 n of Object.values(e.content.transform))if(typeof n!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||sn.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 n;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||(n=o.options)===null||n===void 0?void 0:n.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")sn.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 r;e.prefix=(r=e.prefix)!==null&&r!==void 0?r:""}e.content={files:(()=>{let{content:n,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(n)?n:Array.isArray(n==null?void 0:n.content)?n.content:Array.isArray(n==null?void 0:n.files)?n.files:[]})(),extract:(()=>{let n=(()=>{var s,a,u,l,f,d,m,h,g,v;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||(l=u.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(d=f.extract)===null||d===void 0)&&d.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(h=m.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(v=g.options)===null||v===void 0)&&v.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,l;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||(l=u.options)===null||l===void 0)&&l.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof n=="function")i.DEFAULT=n;else if(Array.isArray(n))for(let{extensions:s,extractor:a}of n??[])for(let u of s)i[u]=a;else typeof n=="object"&&n!==null&&Object.assign(i,n);return i})(),transform:(()=>{let n=(()=>{var o,s,a,u,l,f;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:!((l=e.content)===null||l===void 0||(f=l.transform)===null||f===void 0)&&f.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof n=="function"&&(i.DEFAULT=n),typeof n=="object"&&n!==null&&Object.assign(i,n),i})()};for(let n of e.content.files)if(typeof n=="string"&&/{([^,]*?)}/g.test(n)){sn.default.warn("invalid-glob-braces",[`The glob pattern ${(0,sn.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,sn.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var yl=q(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});Object.defineProperty(zo,"default",{enumerable:!0,get:()=>Qp});function Qp(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var xl=q(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});Object.defineProperty(jo,"cloneDeep",{enumerable:!0,get:()=>Go});function Go(e){return Array.isArray(e)?e.map(t=>Go(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Go(r)])):e}});var Vo=q((xi,wl)=>{"use strict";xi.__esModule=!0;xi.default=Zp;function Kp(e){for(var t=e.toLowerCase(),r="",n=!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(n=o===32,!s)break;r+=t[i]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(a),r.length+(n?1:0)]}}var Jp=/\\/;function Zp(e){var t=Jp.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=Kp(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}wl.exports=xi.default});var _l=q((wi,Sl)=>{"use strict";wi.__esModule=!0;wi.default=eh;function eh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}Sl.exports=wi.default});var El=q((Si,Tl)=>{"use strict";Si.__esModule=!0;Si.default=th;function th(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}Tl.exports=Si.default});var Pl=q((_i,kl)=>{"use strict";_i.__esModule=!0;_i.default=rh;function rh(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}kl.exports=_i.default});var an=q(Ct=>{"use strict";Ct.__esModule=!0;Ct.stripComments=Ct.ensureObject=Ct.getProp=Ct.unesc=void 0;var nh=Ti(Vo());Ct.unesc=nh.default;var ih=Ti(_l());Ct.getProp=ih.default;var oh=Ti(El());Ct.ensureObject=oh.default;var sh=Ti(Pl());Ct.stripComments=sh.default;function Ti(e){return e&&e.__esModule?e:{default:e}}});var zt=q((un,Al)=>{"use strict";un.__esModule=!0;un.default=void 0;var Ol=an();function Il(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ah(e,t,r){return t&&Il(e.prototype,t),r&&Il(e,r),e}var uh=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(a){return e(a,n)}):n[i]=e(o,n)}return n},lh=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),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 n in arguments)this.parent.insertBefore(this,arguments[n]);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(n){n===void 0&&(n={});var i=uh(this);for(var o in n)i[o]=n[o];return i},t.appendToPropertyAndEscape=function(n,i,o){this.raws||(this.raws={});var s=this[n],a=this.raws[n];this[n]=s+i,a||o!==i?this.raws[n]=(a||s)+o:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,o){this.raws||(this.raws={}),this[n]=i,this.raws[n]=o},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},ah(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,Ol.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,Ol.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();un.default=lh;Al.exports=un.default});var De=q(ge=>{"use strict";ge.__esModule=!0;ge.UNIVERSAL=ge.ATTRIBUTE=ge.CLASS=ge.COMBINATOR=ge.COMMENT=ge.ID=ge.NESTING=ge.PSEUDO=ge.ROOT=ge.SELECTOR=ge.STRING=ge.TAG=void 0;var fh="tag";ge.TAG=fh;var ch="string";ge.STRING=ch;var dh="selector";ge.SELECTOR=dh;var ph="root";ge.ROOT=ph;var hh="pseudo";ge.PSEUDO=hh;var mh="nesting";ge.NESTING=mh;var gh="id";ge.ID=gh;var bh="comment";ge.COMMENT=bh;var vh="combinator";ge.COMBINATOR=vh;var yh="class";ge.CLASS=yh;var xh="attribute";ge.ATTRIBUTE=xh;var wh="universal";ge.UNIVERSAL=wh});var Ei=q((ln,Ml)=>{"use strict";ln.__esModule=!0;ln.default=void 0;var Sh=Th(zt()),Gt=_h(De());function Ll(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ll=function(){return e},e}function _h(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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function Th(e){return e&&e.__esModule?e:{default:e}}function Eh(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=kh(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 r=e[Symbol.iterator](),r.next.bind(r)}function kh(e,t){if(e){if(typeof e=="string")return Rl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rl(e,t)}}function Rl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ph(e,t,r){return t&&Cl(e.prototype,t),r&&Cl(e,r),e}function Oh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ho(e,t)}function Ho(e,t){return Ho=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ho(e,t)}var Ih=function(e){Oh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.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},r.removeAll=function(){for(var i=Eh(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.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},r.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},r._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},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._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))},r.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}},r.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})},r.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Gt.UNIVERSAL)return i.call(o,s)})},r.split=function(i){var o=this,s=[];return this.reduce(function(a,u,l){var f=i.call(o,u);return s.push(u),f?(a.push(s),s=[]):l===o.length-1&&a.push(s),a},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,o){return this.nodes.reduce(i,o)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},Ph(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}(Sh.default);ln.default=Ih;Ml.exports=ln.default});var Xo=q((fn,Fl)=>{"use strict";fn.__esModule=!0;fn.default=void 0;var Ah=Ch(Ei()),Rh=De();function Ch(e){return e&&e.__esModule?e:{default:e}}function Nl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lh(e,t,r){return t&&Nl(e.prototype,t),r&&Nl(e,r),e}function Mh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yo(e,t)}function Yo(e,t){return Yo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yo(e,t)}var Nh=function(e){Mh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Rh.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Lh(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Ah.default);fn.default=Nh;Fl.exports=fn.default});var Ko=q((cn,Wl)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var Fh=Dh(Ei()),Wh=De();function Dh(e){return e&&e.__esModule?e:{default:e}}function $h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Qo(e,t){return Qo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qo(e,t)}var Bh=function(e){$h(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Wh.SELECTOR,n}return t}(Fh.default);cn.default=Bh;Wl.exports=cn.default});var ki=q((Yx,Dl)=>{"use strict";var Uh={},qh=Uh.hasOwnProperty,zh=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=qh.call(t,i)?t[i]:r[i];return n},Gh=/[ -,\.\/:-@\[-\^`\{-~]/,jh=/[ -,\.\/:-@\[\]\^`\{-~]/,Vh=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Jo=function e(t,r){r=zh(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?f=((f&1023)<<10)+(m&1023)+65536:a--}d="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?Gh.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&jh.test(l)?d="\\"+l:d=l;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(Vh,function(h,g,v){return g&&g.length%2?h:(g||"")+v}),!i&&r.wrap?n+s+n:s};Jo.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Jo.version="3.0.0";Dl.exports=Jo});var es=q((dn,Ul)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Hh=Bl(ki()),Yh=an(),Xh=Bl(zt()),Qh=De();function Bl(e){return e&&e.__esModule?e:{default:e}}function $l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Kh(e,t,r){return t&&$l(e.prototype,t),r&&$l(e,r),e}function Jh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zo(e,t)}function Zo(e,t){return Zo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Zo(e,t)}var Zh=function(e){Jh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Qh.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Kh(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,Hh.default)(i,{isIdentifier:!0});o!==i?((0,Yh.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(Xh.default);dn.default=Zh;Ul.exports=dn.default});var rs=q((pn,ql)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var em=rm(zt()),tm=De();function rm(e){return e&&e.__esModule?e:{default:e}}function nm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ts(e,t)}function ts(e,t){return ts=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ts(e,t)}var im=function(e){nm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=tm.COMMENT,n}return t}(em.default);pn.default=im;ql.exports=pn.default});var is=q((hn,zl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var om=am(zt()),sm=De();function am(e){return e&&e.__esModule?e:{default:e}}function um(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ns(e,t)}var lm=function(e){um(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=sm.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(om.default);hn.default=lm;zl.exports=hn.default});var Pi=q((mn,Vl)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var fm=jl(ki()),cm=an(),dm=jl(zt());function jl(e){return e&&e.__esModule?e:{default:e}}function Gl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pm(e,t,r){return t&&Gl(e.prototype,t),r&&Gl(e,r),e}function hm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,os(e,t)}function os(e,t){return os=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},os(e,t)}var mm=function(e){hm(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},pm(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,fm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,cm.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}(dm.default);mn.default=mm;Vl.exports=mn.default});var as=q((gn,Hl)=>{"use strict";gn.__esModule=!0;gn.default=void 0;var gm=vm(Pi()),bm=De();function vm(e){return e&&e.__esModule?e:{default:e}}function ym(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t)}function ss(e,t){return ss=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ss(e,t)}var xm=function(e){ym(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=bm.TAG,n}return t}(gm.default);gn.default=xm;Hl.exports=gn.default});var ls=q((bn,Yl)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var wm=_m(zt()),Sm=De();function _m(e){return e&&e.__esModule?e:{default:e}}function Tm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function us(e,t){return us=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},us(e,t)}var Em=function(e){Tm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Sm.STRING,n}return t}(wm.default);bn.default=Em;Yl.exports=bn.default});var cs=q((vn,Xl)=>{"use strict";vn.__esModule=!0;vn.default=void 0;var km=Om(Ei()),Pm=De();function Om(e){return e&&e.__esModule?e:{default:e}}function Im(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}function fs(e,t){return fs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},fs(e,t)}var Am=function(e){Im(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Pm.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(km.default);vn.default=Am;Xl.exports=vn.default});var Kl=q((Xx,Ql)=>{Ql.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var bs=q(wn=>{"use strict";wn.__esModule=!0;wn.unescapeValue=gs;wn.default=void 0;var yn=ms(ki()),Rm=ms(Vo()),Cm=ms(Pi()),Lm=De(),ds;function ms(e){return e&&e.__esModule?e:{default:e}}function Jl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mm(e,t,r){return t&&Jl(e.prototype,t),r&&Jl(e,r),e}function Nm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hs(e,t)}function hs(e,t){return hs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hs(e,t)}var xn=Kl(),Fm=/^('|")([^]*)\1$/,Wm=xn(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Dm=xn(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),$m=xn(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function gs(e){var t=!1,r=null,n=e,i=n.match(Fm);return i&&(r=i[1],n=i[2]),n=(0,Rm.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function Bm(e){if(e.quoteMark!==void 0||e.value===void 0)return e;$m();var t=gs(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var Oi=function(e){Nm(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,Bm(n))||this,i.type=Lm.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:xn(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:xn(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 r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=ps[o],a=(0,yn.default)(this._value,s);return a},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,yn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,d=ps[f],m=(0,yn.default)(o,d);if(m.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.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},r._syncRawValue=function(){var i=(0,yn.default)(this._value,ps[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,o){if(this._constructed){var s=(0,yn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},r._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)},r._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Zl);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},r.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 l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var d=this._spacesFor("insensitive");return o+=d.before.length,i==="insensitive"&&this.insensitive?o:-1},r.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=" "),Zl(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Mm(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Dm()}},{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=gs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Wm(),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}(Cm.default);wn.default=Oi;Oi.NO_QUOTE=null;Oi.SINGLE_QUOTE="'";Oi.DOUBLE_QUOTE='"';var ps=(ds={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},ds[null]={isIdentifier:!0},ds);function Zl(e,t){return""+t.before+e+t.after}});var ys=q((Sn,ef)=>{"use strict";Sn.__esModule=!0;Sn.default=void 0;var Um=zm(Pi()),qm=De();function zm(e){return e&&e.__esModule?e:{default:e}}function Gm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vs(e,t)}function vs(e,t){return vs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vs(e,t)}var jm=function(e){Gm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=qm.UNIVERSAL,n.value="*",n}return t}(Um.default);Sn.default=jm;ef.exports=Sn.default});var ws=q((_n,tf)=>{"use strict";_n.__esModule=!0;_n.default=void 0;var Vm=Ym(zt()),Hm=De();function Ym(e){return e&&e.__esModule?e:{default:e}}function Xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xs(e,t)}function xs(e,t){return xs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xs(e,t)}var Qm=function(e){Xm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Hm.COMBINATOR,n}return t}(Vm.default);_n.default=Qm;tf.exports=_n.default});var _s=q((Tn,rf)=>{"use strict";Tn.__esModule=!0;Tn.default=void 0;var Km=Zm(zt()),Jm=De();function Zm(e){return e&&e.__esModule?e:{default:e}}function e0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ss(e,t)}var t0=function(e){e0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Jm.NESTING,n.value="&",n}return t}(Km.default);Tn.default=t0;rf.exports=Tn.default});var of=q((Ii,nf)=>{"use strict";Ii.__esModule=!0;Ii.default=r0;function r0(e){return e.sort(function(t,r){return t-r})}nf.exports=Ii.default});var Ts=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var n0=38;U.ampersand=n0;var i0=42;U.asterisk=i0;var o0=64;U.at=o0;var s0=44;U.comma=s0;var a0=58;U.colon=a0;var u0=59;U.semicolon=u0;var l0=40;U.openParenthesis=l0;var f0=41;U.closeParenthesis=f0;var c0=91;U.openSquare=c0;var d0=93;U.closeSquare=d0;var p0=36;U.dollar=p0;var h0=126;U.tilde=h0;var m0=94;U.caret=m0;var g0=43;U.plus=g0;var b0=61;U.equals=b0;var v0=124;U.pipe=v0;var y0=62;U.greaterThan=y0;var x0=32;U.space=x0;var sf=39;U.singleQuote=sf;var w0=34;U.doubleQuote=w0;var S0=47;U.slash=S0;var _0=33;U.bang=_0;var T0=92;U.backslash=T0;var E0=13;U.cr=E0;var k0=12;U.feed=k0;var P0=10;U.newline=P0;var O0=9;U.tab=O0;var I0=sf;U.str=I0;var A0=-1;U.comment=A0;var R0=-2;U.word=R0;var C0=-3;U.combinator=C0});var lf=q(En=>{"use strict";En.__esModule=!0;En.default=$0;En.FIELDS=void 0;var D=L0(Ts()),Cr,he;function uf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return uf=function(){return e},e}function L0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=uf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var M0=(Cr={},Cr[D.tab]=!0,Cr[D.newline]=!0,Cr[D.cr]=!0,Cr[D.feed]=!0,Cr),N0=(he={},he[D.space]=!0,he[D.tab]=!0,he[D.newline]=!0,he[D.cr]=!0,he[D.feed]=!0,he[D.ampersand]=!0,he[D.asterisk]=!0,he[D.bang]=!0,he[D.comma]=!0,he[D.colon]=!0,he[D.semicolon]=!0,he[D.openParenthesis]=!0,he[D.closeParenthesis]=!0,he[D.openSquare]=!0,he[D.closeSquare]=!0,he[D.singleQuote]=!0,he[D.doubleQuote]=!0,he[D.plus]=!0,he[D.pipe]=!0,he[D.tilde]=!0,he[D.greaterThan]=!0,he[D.equals]=!0,he[D.dollar]=!0,he[D.caret]=!0,he[D.slash]=!0,he),Es={},af="0123456789abcdefABCDEF";for(Ai=0;Ai<af.length;Ai++)Es[af.charCodeAt(Ai)]=!0;var Ai;function F0(e,t){var r=t,n;do{if(n=e.charCodeAt(r),N0[n])return r-1;n===D.backslash?r=W0(e,r)+1:r++}while(r<e.length);return r-1}function W0(e,t){var r=t,n=e.charCodeAt(r+1);if(!M0[n])if(Es[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(Es[n]&&i<6);i<6&&n===D.space&&r++}else r++;return r}var D0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};En.FIELDS=D0;function $0(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,l,f,d,m,h,g,v,w,_,O,x,E,T;function I(N,W){if(e.safe)r+=W,_=r.length-1;else throw e.error("Unclosed "+N,s,a-o,a)}for(;a<i;){switch(l=r.charCodeAt(a),l===D.newline&&(o=a,s+=1),l){case D.space:case D.tab:case D.newline:case D.cr:case D.feed:_=a;do _+=1,l=r.charCodeAt(_),l===D.newline&&(o=_,s+=1);while(l===D.space||l===D.newline||l===D.tab||l===D.cr||l===D.feed);T=D.space,m=s,d=_-o-1,u=_;break;case D.plus:case D.greaterThan:case D.tilde:case D.pipe:_=a;do _+=1,l=r.charCodeAt(_);while(l===D.plus||l===D.greaterThan||l===D.tilde||l===D.pipe);T=D.combinator,m=s,d=a-o,u=_;break;case D.asterisk:case D.ampersand:case D.bang:case D.comma:case D.equals:case D.dollar:case D.caret:case D.openSquare:case D.closeSquare:case D.colon:case D.semicolon:case D.openParenthesis:case D.closeParenthesis:_=a,T=l,m=s,d=a-o,u=_+1;break;case D.singleQuote:case D.doubleQuote:E=l===D.singleQuote?"'":'"',_=a;do for(h=!1,_=r.indexOf(E,_+1),_===-1&&I("quote",E),g=_;r.charCodeAt(g-1)===D.backslash;)g-=1,h=!h;while(h);T=D.str,m=s,d=a-o,u=_+1;break;default:l===D.slash&&r.charCodeAt(a+1)===D.asterisk?(_=r.indexOf("*/",a+2)+1,_===0&&I("comment","*/"),f=r.slice(a,_+1),w=f.split(`
|
|
4
|
-
`),v=w.length-1,v>0?(O=s+v,x=_-w[v].length):(O=s,x=o),T=D.comment,s=O,m=O,d=_-x):l===D.slash?(_=a,T=l,m=s,d=a-o,u=_+1):(_=F0(r,a),T=D.word,m=s,d=_-o),u=_+1;break}t.push([T,s,a-o,m,d,a,u]),x&&(o=x,x=null),a=u}return t}});var bf=q((kn,gf)=>{"use strict";kn.__esModule=!0;kn.default=void 0;var B0=ct(Xo()),ks=ct(Ko()),U0=ct(es()),ff=ct(rs()),q0=ct(is()),z0=ct(as()),Ps=ct(ls()),G0=ct(cs()),cf=Ri(bs()),j0=ct(ys()),Os=ct(ws()),V0=ct(_s()),H0=ct(of()),L=Ri(lf()),B=Ri(Ts()),Y0=Ri(De()),ke=an(),cr,Is;function mf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return mf=function(){return e},e}function Ri(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=mf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function ct(e){return e&&e.__esModule?e:{default:e}}function df(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function X0(e,t,r){return t&&df(e.prototype,t),r&&df(e,r),e}var Cs=(cr={},cr[B.space]=!0,cr[B.cr]=!0,cr[B.feed]=!0,cr[B.newline]=!0,cr[B.tab]=!0,cr),Q0=Object.assign({},Cs,(Is={},Is[B.comment]=!0,Is));function pf(e){return{line:e[L.FIELDS.START_LINE],column:e[L.FIELDS.START_COL]}}function hf(e){return{line:e[L.FIELDS.END_LINE],column:e[L.FIELDS.END_COL]}}function dr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Lr(e){return dr(e[L.FIELDS.START_LINE],e[L.FIELDS.START_COL],e[L.FIELDS.END_LINE],e[L.FIELDS.END_COL])}function As(e,t){if(e)return dr(e[L.FIELDS.START_LINE],e[L.FIELDS.START_COL],t[L.FIELDS.END_LINE],t[L.FIELDS.END_COL])}function Mr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,ke.ensureObject)(e,"raws"),e[t]=(0,ke.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Rs(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function K0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var J0=function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,L.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=As(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new B0.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new ks.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 n=this;return function(i,o){return typeof n.rule=="string"?new Error(i):n.rule.error(i,o)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[L.FIELDS.TYPE]!==B.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[L.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[L.FIELDS.START_POS]);var o=n.length,s={source:dr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[L.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(n[0][L.FIELDS.TYPE]))return this.expected("attribute",n[0][L.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,d=!1;a<o;){var m=n[a],h=this.content(m),g=n[a+1];switch(m[L.FIELDS.TYPE]){case B.space:if(d=!0,this.options.lossy)break;if(f){(0,ke.ensureObject)(s,"spaces",f);var v=s.spaces[f].after||"";s.spaces[f].after=v+h;var w=(0,ke.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+h)}else u=u+h,l=l+h;break;case B.asterisk:if(g[L.FIELDS.TYPE]===B.equals)s.operator=h,f="operator";else if((!s.namespace||f==="namespace"&&!d)&&g){u&&((0,ke.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+h;var _=(0,ke.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=h),f="namespace"}d=!1;break;case B.dollar:if(f==="value"){var O=(0,ke.getProp)(s,"raws","value");s.value+="$",O&&(s.raws.value=O+"$");break}case B.caret:g[L.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),d=!1;break;case B.combinator:if(h==="~"&&g[L.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),h!=="|"){d=!1;break}g[L.FIELDS.TYPE]===B.equals?(s.operator=h,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),d=!1;break;case B.word:if(g&&this.content(g)==="|"&&n[a+2]&&n[a+2][L.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=h,f="namespace";else if(!s.attribute||f==="attribute"&&!d){u&&((0,ke.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+h;var x=(0,ke.getProp)(s,"raws","attribute")||null;x&&(s.raws.attribute+=h),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!d){var E=(0,ke.unesc)(h),T=(0,ke.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+E,s.quoteMark=null,(E!==h||T)&&((0,ke.ensureObject)(s,"raws"),s.raws.value=(T||I)+h),f="value"}else{var N=h==="i"||h==="I";(s.value||s.value==="")&&(s.quoteMark||d)?(s.insensitive=N,(!N||h==="I")&&((0,ke.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h),f="insensitive",u&&((0,ke.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,ke.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=h,s.raws.value&&(s.raws.value+=h))}d=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[L.FIELDS.START_POS]});var W=(0,cf.unescapeValue)(h),z=W.unescaped,Z=W.quoteMark;s.value=z,s.quoteMark=Z,f="value",(0,ke.ensureObject)(s,"raws"),s.raws.value=h,d=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",m[L.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[L.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,f="operator",d=!1;break;case B.comment:if(f)if(d||g&&g[L.FIELDS.TYPE]===B.space||f==="insensitive"){var de=(0,ke.getProp)(s,"spaces",f,"after")||"",we=(0,ke.getProp)(s,"raws","spaces",f,"after")||de;(0,ke.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=we+h}else{var ve=s[f]||"",ue=(0,ke.getProp)(s,"raws",f)||ve;(0,ke.ensureObject)(s,"raws"),s.raws[f]=ue+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:m[L.FIELDS.START_POS]})}a++}Mr(s,"attribute"),Mr(s,"namespace"),this.newNode(new cf.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Cs[this.currToken[L.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[L.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new ff.default({value:this.content(),source:Lr(this.currToken),sourceIndex:this.currToken[L.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<n);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new Ps.default({value:"",source:dr(l[L.FIELDS.START_LINE],l[L.FIELDS.START_COL],f[L.FIELDS.END_LINE],f[L.FIELDS.END_COL]),sourceIndex:l[L.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(n,i){var o=this;i===void 0&&(i=!1);var s="",a="";n.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),d=o.lossySpace(l.rawSpaceBefore,i);s+=f+o.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&d.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][L.FIELDS.TYPE]===B.slash&&this.tokens[n+1]&&this.tokens[n+1][L.FIELDS.TYPE]===B.word&&this.tokens[n+2]&&this.tokens[n+2][L.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,ke.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new Os.default({value:"/"+i+"/",source:dr(this.currToken[L.FIELDS.START_LINE],this.currToken[L.FIELDS.START_COL],this.tokens[this.position+2][L.FIELDS.END_LINE],this.tokens[this.position+2][L.FIELDS.END_COL]),sourceIndex:this.currToken[L.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][L.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,l=a.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(T){return n.newNode(T)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[L.FIELDS.TYPE]===B.combinator?(m=new Os.default({value:this.content(),source:Lr(this.currToken),sourceIndex:this.currToken[L.FIELDS.START_POS]}),this.position++):Cs[this.currToken[L.FIELDS.TYPE]]||d||this.unexpected(),m){if(d){var h=this.convertWhitespaceNodesToSpace(d),g=h.space,v=h.rawSpace;m.spaces.before=g,m.rawSpaceBefore=v}}else{var w=this.convertWhitespaceNodesToSpace(d,!0),_=w.space,O=w.rawSpace;O||(O=_);var x={},E={spaces:{}};_.endsWith(" ")&&O.endsWith(" ")?(x.before=_.slice(0,_.length-1),E.spaces.before=O.slice(0,O.length-1)):_.startsWith(" ")&&O.startsWith(" ")?(x.after=_.slice(1),E.spaces.after=O.slice(1)):E.value=O,m=new Os.default({value:" ",source:As(f,this.tokens[this.position-1]),sourceIndex:f[L.FIELDS.START_POS],spaces:x,raws:E})}return this.currToken&&this.currToken[L.FIELDS.TYPE]===B.space&&(m.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(m)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new ks.default({source:{start:pf(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new ff.default({value:this.content(),source:Lr(n),sourceIndex:n[L.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[L.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[L.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[L.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[L.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[L.FIELDS.TYPE]===B.word)return this.position++,this.word(n);if(this.nextToken[L.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(n)},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new V0.default({value:this.content(),source:Lr(i),sourceIndex:i[L.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===Y0.PSEUDO){var o=new ks.default({source:{start:pf(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[L.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[L.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=hf(this.currToken),this.current.parent.source.end=hf(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[L.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[L.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new Ps.default({value:u,source:dr(a[L.FIELDS.START_LINE],a[L.FIELDS.START_COL],l[L.FIELDS.END_LINE],l[L.FIELDS.END_COL]),sourceIndex:a[L.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[L.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[L.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[L.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new G0.default({value:i,source:As(o,n.currToken),sourceIndex:o[L.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[L.FIELDS.TYPE]===B.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[L.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[L.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[L.FIELDS.TYPE]===B.comma||this.prevToken[L.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[L.FIELDS.TYPE]===B.comma||this.nextToken[L.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new Ps.default({value:this.content(),source:Lr(n),sourceIndex:n[L.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new j0.default({value:this.content(),source:Lr(o),sourceIndex:o[L.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[L.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[L.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Rs(a,".").filter(function(g){var v=a[g-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!v&&!w}),d=Rs(a,"#").filter(function(g){return a[g-1]!=="\\"}),m=Rs(a,"#{");m.length&&(d=d.filter(function(g){return!~m.indexOf(g)}));var h=(0,H0.default)(K0([0].concat(f,d)));h.forEach(function(g,v){var w=h[v+1]||a.length,_=a.slice(g,w);if(v===0&&i)return i.call(o,_,h.length);var O,x=o.currToken,E=x[L.FIELDS.START_POS]+h[v],T=dr(x[1],x[2]+g,x[3],x[2]+(w-1));if(~f.indexOf(g)){var I={value:_.slice(1),source:T,sourceIndex:E};O=new U0.default(Mr(I,"value"))}else if(~d.indexOf(g)){var N={value:_.slice(1),source:T,sourceIndex:E};O=new q0.default(Mr(N,"value"))}else{var W={value:_,source:T,sourceIndex:E};Mr(W,"value"),O=new z0.default(W)}o.newNode(O,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[L.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:n&&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(n,i,o){if(Array.isArray(n)){var s=n.pop();n=n.join(", ")+" or "+s}var a=/^[aeiou]/.test(n[0])?"an":"a";return o?this.error("Expected "+a+" "+n+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[L.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Mr(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[L.FIELDS.START_POS],n[L.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(Q0[this.tokens[i][L.FIELDS.TYPE]]){i++;continue}else return i;return-1},X0(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}();kn.default=J0;gf.exports=kn.default});var yf=q((Pn,vf)=>{"use strict";Pn.__esModule=!0;Pn.default=void 0;var Z0=eg(bf());function eg(e){return e&&e.__esModule?e:{default:e}}var tg=function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var o=new Z0.default(n,this._parseOptions(i));return o.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(n,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(n,i)&&(f=u.toString(),n.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,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 n!="string"&&(a=o.toString(),n.selector=a),{transform:s,root:o,string:a}},t.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},e}();Pn.default=tg;vf.exports=Pn.default});var xf=q(be=>{"use strict";be.__esModule=!0;be.universal=be.tag=be.string=be.selector=be.root=be.pseudo=be.nesting=be.id=be.comment=be.combinator=be.className=be.attribute=void 0;var rg=dt(bs()),ng=dt(es()),ig=dt(ws()),og=dt(rs()),sg=dt(is()),ag=dt(_s()),ug=dt(cs()),lg=dt(Xo()),fg=dt(Ko()),cg=dt(ls()),dg=dt(as()),pg=dt(ys());function dt(e){return e&&e.__esModule?e:{default:e}}var hg=function(t){return new rg.default(t)};be.attribute=hg;var mg=function(t){return new ng.default(t)};be.className=mg;var gg=function(t){return new ig.default(t)};be.combinator=gg;var bg=function(t){return new og.default(t)};be.comment=bg;var vg=function(t){return new sg.default(t)};be.id=vg;var yg=function(t){return new ag.default(t)};be.nesting=yg;var xg=function(t){return new ug.default(t)};be.pseudo=xg;var wg=function(t){return new lg.default(t)};be.root=wg;var Sg=function(t){return new fg.default(t)};be.selector=Sg;var _g=function(t){return new cg.default(t)};be.string=_g;var Tg=function(t){return new dg.default(t)};be.tag=Tg;var Eg=function(t){return new pg.default(t)};be.universal=Eg});var Tf=q(oe=>{"use strict";oe.__esModule=!0;oe.isNode=Ls;oe.isPseudoElement=_f;oe.isPseudoClass=Fg;oe.isContainer=Wg;oe.isNamespace=Dg;oe.isUniversal=oe.isTag=oe.isString=oe.isSelector=oe.isRoot=oe.isPseudo=oe.isNesting=oe.isIdentifier=oe.isComment=oe.isCombinator=oe.isClassName=oe.isAttribute=void 0;var Pe=De(),Qe,kg=(Qe={},Qe[Pe.ATTRIBUTE]=!0,Qe[Pe.CLASS]=!0,Qe[Pe.COMBINATOR]=!0,Qe[Pe.COMMENT]=!0,Qe[Pe.ID]=!0,Qe[Pe.NESTING]=!0,Qe[Pe.PSEUDO]=!0,Qe[Pe.ROOT]=!0,Qe[Pe.SELECTOR]=!0,Qe[Pe.STRING]=!0,Qe[Pe.TAG]=!0,Qe[Pe.UNIVERSAL]=!0,Qe);function Ls(e){return typeof e=="object"&&kg[e.type]}function pt(e,t){return Ls(t)&&t.type===e}var wf=pt.bind(null,Pe.ATTRIBUTE);oe.isAttribute=wf;var Pg=pt.bind(null,Pe.CLASS);oe.isClassName=Pg;var Og=pt.bind(null,Pe.COMBINATOR);oe.isCombinator=Og;var Ig=pt.bind(null,Pe.COMMENT);oe.isComment=Ig;var Ag=pt.bind(null,Pe.ID);oe.isIdentifier=Ag;var Rg=pt.bind(null,Pe.NESTING);oe.isNesting=Rg;var Ms=pt.bind(null,Pe.PSEUDO);oe.isPseudo=Ms;var Cg=pt.bind(null,Pe.ROOT);oe.isRoot=Cg;var Lg=pt.bind(null,Pe.SELECTOR);oe.isSelector=Lg;var Mg=pt.bind(null,Pe.STRING);oe.isString=Mg;var Sf=pt.bind(null,Pe.TAG);oe.isTag=Sf;var Ng=pt.bind(null,Pe.UNIVERSAL);oe.isUniversal=Ng;function _f(e){return Ms(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 Fg(e){return Ms(e)&&!_f(e)}function Wg(e){return!!(Ls(e)&&e.walk)}function Dg(e){return wf(e)||Sf(e)}});var Ef=q(Pt=>{"use strict";Pt.__esModule=!0;var Ns=De();Object.keys(Ns).forEach(function(e){e==="default"||e==="__esModule"||e in Pt&&Pt[e]===Ns[e]||(Pt[e]=Ns[e])});var Fs=xf();Object.keys(Fs).forEach(function(e){e==="default"||e==="__esModule"||e in Pt&&Pt[e]===Fs[e]||(Pt[e]=Fs[e])});var Ws=Tf();Object.keys(Ws).forEach(function(e){e==="default"||e==="__esModule"||e in Pt&&Pt[e]===Ws[e]||(Pt[e]=Ws[e])})});var Of=q((On,Pf)=>{"use strict";On.__esModule=!0;On.default=void 0;var $g=qg(yf()),Bg=Ug(Ef());function kf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return kf=function(){return e},e}function Ug(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=kf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function qg(e){return e&&e.__esModule?e:{default:e}}var Ds=function(t){return new $g.default(t)};Object.assign(Ds,Bg);delete Ds.__esModule;var zg=Ds;On.default=zg;Pf.exports=On.default});var If=q($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});Object.defineProperty($s,"default",{enumerable:!0,get:()=>Gg});function Gg(e){return e.replace(/\\,/g,"\\2c ")}});var Rf=q((nw,Af)=>{"use strict";Af.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 Us=q(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});function jg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}jg(Bs,{parseColor:()=>Kg,formatColor:()=>Jg});var Cf=Vg(Rf());function Vg(e){return e&&e.__esModule?e:{default:e}}var Hg=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Yg=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Kt=/(?:\d+|\d*\.\d+)%?/,Ci=/(?:\s*,\s*|\s+)/,Lf=/\s*[,/]\s*/,Jt=/var\(--(?:[^ )]*?)\)/,Xg=new RegExp(`^(rgb)a?\\(\\s*(${Kt.source}|${Jt.source})(?:${Ci.source}(${Kt.source}|${Jt.source}))?(?:${Ci.source}(${Kt.source}|${Jt.source}))?(?:${Lf.source}(${Kt.source}|${Jt.source}))?\\s*\\)$`),Qg=new RegExp(`^(hsl)a?\\(\\s*((?:${Kt.source})(?:deg|rad|grad|turn)?|${Jt.source})(?:${Ci.source}(${Kt.source}|${Jt.source}))?(?:${Ci.source}(${Kt.source}|${Jt.source}))?(?:${Lf.source}(${Kt.source}|${Jt.source}))?\\s*\\)$`);function Kg(e,{loose:t=!1}={}){var r,n;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Cf.default)return{mode:"rgb",color:Cf.default[e].map(u=>u.toString())};let i=e.replace(Yg,(u,l,f,d,m)=>["#",l,l,f,f,d,d,m?m+m:""].join("")).match(Hg);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(Xg))!==null&&o!==void 0?o:e.match(Qg);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:(r=s[5])===null||r===void 0||(n=r.toString)===null||n===void 0?void 0:n.call(r)}}function Jg({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var zs=q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});function Zg(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Zg(qs,{withAlphaValue:()=>eb,default:()=>tb});var Li=Us();function eb(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Li.parseColor)(e,{loose:!0});return n===null?r:(0,Li.formatColor)({...n,alpha:t})}function tb({color:e,property:t,variable:r}){let n=[].concat(t);if(typeof e=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,e({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=(0,Li.parseColor)(e);return i===null?Object.fromEntries(n.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,e])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,(0,Li.formatColor)({...i,alpha:`var(${r})`})]))}}});var Df=q(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function rb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}rb(Gs,{pattern:()=>ib,withoutCapturing:()=>Nf,any:()=>Ff,optional:()=>ob,zeroOrMore:()=>sb,nestedBrackets:()=>Wf,escape:()=>pr});var Mf=/[\\^$.*+?()[\]{}|]/g,nb=RegExp(Mf.source);function In(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function ib(e){return new RegExp(In(e),"g")}function Nf(e){return new RegExp(`(?:${In(e)})`,"g")}function Ff(e){return`(?:${e.map(In).join("|")})`}function ob(e){return`(?:${In(e)})?`}function sb(e){return`(?:${In(e)})*`}function Wf(e,t,r=1){return Nf([pr(e),/[^\s]*/,r===1?`[^${pr(e)}${pr(t)}s]*`:Ff([`[^${pr(e)}${pr(t)}s]*`,Wf(e,t,r-1)]),/[^\s]*/,pr(t)])}function pr(e){return e&&nb.test(e)?e.replace(Mf,"\\$&"):e||""}});var Bf=q(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});Object.defineProperty(js,"splitAtTopLevelOnly",{enumerable:!0,get:()=>lb});var ab=ub(Df());function $f(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return($f=function(n){return n?r:t})(e)}function ub(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=$f(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function*lb(e,t){let r=new RegExp(`[(){}\\[\\]${ab.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(r)){let f=l[0]===t[s],d=s===u-1,m=f&&d;l[0]==="("&&n++,l[0]===")"&&n--,l[0]==="["&&n++,l[0]==="]"&&n--,l[0]==="{"&&n++,l[0]==="}"&&n--,f&&n===0&&(a===0&&(a=l.index),s++),m&&n===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 qf=q(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});function fb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}fb(Vs,{parseBoxShadowValue:()=>hb,formatBoxShadowValue:()=>mb});var cb=Bf(),db=new Set(["inset","inherit","initial","revert","unset"]),pb=/\ +(?![^(]*\))/g,Uf=/^-?(\d+|\.\d+)(.*?)$/g;function hb(e){return Array.from((0,cb.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(pb),s=new Set;for(let a of o)Uf.lastIndex=0,!s.has("KEYWORD")&&db.has(a)?(i.keyword=a,s.add("KEYWORD")):Uf.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 mb(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 Xf=q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});function gb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}gb(Ys,{normalize:()=>Zt,url:()=>jf,number:()=>yb,percentage:()=>Vf,length:()=>Hf,lineWidth:()=>Sb,shadow:()=>_b,color:()=>Tb,image:()=>Eb,gradient:()=>Yf,position:()=>Ob,familyName:()=>Ib,genericName:()=>Rb,absoluteSize:()=>Lb,relativeSize:()=>Nb});var bb=Us(),vb=qf(),Hs=["min","max","clamp","calc"],Gf=/,(?![^(]*\))/g,Mi=/_(?![^(]*\))/g;function Zt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:Zt(r,!1)).join(""):(e=e.replace(/([^\\])_+/g,(r,n)=>n+" ".repeat(r.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,r=>r.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function jf(e){return e.startsWith("url(")}function yb(e){return!isNaN(Number(e))||Hs.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Vf(e){return e.split(Mi).every(t=>/%$/g.test(t)||Hs.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var xb=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],zf=`(?:${xb.join("|")})`;function Hf(e){return e.split(Mi).every(t=>t==="0"||new RegExp(`${zf}$`).test(t)||Hs.some(r=>new RegExp(`^${r}\\(.+?${zf}`).test(t)))}var wb=new Set(["thin","medium","thick"]);function Sb(e){return wb.has(e)}function _b(e){let t=(0,vb.parseBoxShadowValue)(Zt(e));for(let r of t)if(!r.valid)return!1;return!0}function Tb(e){let t=0;return e.split(Mi).every(n=>(n=Zt(n),n.startsWith("var(")?!0:(0,bb.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Eb(e){let t=0;return e.split(Gf).every(n=>(n=Zt(n),n.startsWith("var(")?!0:jf(n)||Yf(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var kb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Yf(e){e=Zt(e);for(let t of kb)if(e.startsWith(`${t}(`))return!0;return!1}var Pb=new Set(["center","top","right","bottom","left"]);function Ob(e){let t=0;return e.split(Mi).every(n=>(n=Zt(n),n.startsWith("var(")?!0:Pb.has(n)||Hf(n)||Vf(n)?(t++,!0):!1))?t>0:!1}function Ib(e){let t=0;return e.split(Gf).every(n=>(n=Zt(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var Ab=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Rb(e){return Ab.has(e)}var Cb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Lb(e){return Cb.has(e)}var Mb=new Set(["larger","smaller"]);function Nb(e){return Mb.has(e)}});var nc=q(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});function Fb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Fb(Ks,{updateAllClasses:()=>$b,asValue:()=>Rn,parseColorFormat:()=>Xs,asColor:()=>ec,asLookupValue:()=>tc,coerceValue:()=>zb});var Wb=Qs(Of()),Db=Qs(If()),Qf=zs(),Ke=Xf(),Kf=Qs(No());function Qs(e){return e&&e.__esModule?e:{default:e}}function $b(e,t){return(0,Wb.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Db.default)(o.raws.value))})}).processSync(e)}function Zf(e,t){if(!An(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ke.normalize)(r)}function Bb(e,t={},r){let n=t[e];if(n!==void 0)return(0,Kf.default)(n);if(An(e)){let i=Zf(e,r);return i===void 0?void 0:(0,Kf.default)(i)}}function Rn(e,t={},{validate:r=()=>!0}={}){var n;let i=(n=t.values)===null||n===void 0?void 0:n[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Bb(e.slice(1),t.values,r):Zf(e,r)}function An(e){return e.startsWith("[")&&e.endsWith("]")}function Ub(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Xs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function ec(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return Xs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Ub(e);if(s!==void 0){var a,u,l,f;let d=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:An(o)?o.slice(1,-1):void 0;return d===void 0?void 0:(d=Xs(d),An(s)?(0,Qf.withAlphaValue)(d,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,Qf.withAlphaValue)(d,r.theme.opacity[s]))}return Rn(e,t,{validate:Ke.color})}function tc(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function ht(e){return(t,r)=>Rn(t,r,{validate:e})}var rc={any:Rn,color:ec,url:ht(Ke.url),image:ht(Ke.image),length:ht(Ke.length),percentage:ht(Ke.percentage),position:ht(Ke.position),lookup:tc,"generic-name":ht(Ke.genericName),"family-name":ht(Ke.familyName),number:ht(Ke.number),"line-width":ht(Ke.lineWidth),"absolute-size":ht(Ke.absoluteSize),"relative-size":ht(Ke.relativeSize),shadow:ht(Ke.shadow)},Jf=Object.keys(rc);function qb(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function zb(e,t,r,n){if(An(t)){let i=t.slice(1,-1),[o,s]=qb(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!Jf.includes(o))return[];if(s.length>0&&Jf.includes(o))return[Rn(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=rc[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var ic=q(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Object.defineProperty(Js,"default",{enumerable:!0,get:()=>Gb});function Gb(e){return typeof e=="function"?e({}):e}});var lc=q(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});Object.defineProperty(ea,"default",{enumerable:!0,get:()=>fv});var jb=hr(No()),Vb=hr(cl()),Hb=hr(dl()),Yb=hr(Do()),Xb=hr(hl()),ac=ml(),oc=gl(),Qb=vl(),Kb=hr(yl()),Jb=xl(),Zb=nc(),ev=zs(),tv=hr(ic());function hr(e){return e&&e.__esModule?e:{default:e}}function Nr(e){return typeof e=="function"}function Cn(e){return typeof e=="object"&&e!==null}function Ln(e,...t){let r=t.pop();for(let n of t)for(let i in n){let o=r(e[i],n[i]);o===void 0?Cn(e[i])&&Cn(n[i])?e[i]=Ln(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var Zs={colors:Xb.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,jb.default)(e[r]);return n!==void 0&&(t[`-${r}`]=n),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})}};function rv(e,...t){return Nr(e)?e(...t):e}function nv(e){return e.reduce((t,{extend:r})=>Ln(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function iv(e){return{...e.reduce((t,r)=>(0,ac.defaults)(t,r),{}),extend:nv(e)}}function sc(e,t){if(Array.isArray(e)&&Cn(e[0]))return e.concat(t);if(Array.isArray(t)&&Cn(t[0])&&Cn(e))return[e,...t];if(Array.isArray(t))return t}function ov({extend:e,...t}){return Ln(t,e,(r,n)=>!Nr(r)&&!n.some(Nr)?Ln({},r,...n,sc):(i,o)=>Ln({},...[r,...n].map(s=>rv(s,i,o)),sc))}function*sv(e){let t=(0,oc.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=e.match(r);if(n!==null){let[,i,o]=n,s=(0,oc.toPath)(i);s.alpha=o,yield s}}function av(e){let t=(r,n)=>{for(let i of sv(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Nr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Zs):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,Zb.parseColorFormat)(s);return(0,ev.withAlphaValue)(a,i.alpha,(0,tv.default)(a))}return(0,Kb.default)(s)?(0,Jb.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...Zs}),Object.keys(e).reduce((r,n)=>(r[n]=Nr(e[n])?e[n](t,Zs):e[n],r),{})}function uc(e){let t=[];return e.forEach(r=>{t=[...t,r];var n;let i=(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...uc([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function uv(e){return[...e].reduceRight((r,n)=>Nr(n)?n({corePlugins:r}):(0,Hb.default)(n,r),Vb.default)}function lv(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function fv(e){let t=[...uc(e),{prefix:"",important:!1,separator:":",variantOrder:Yb.default.variantOrder}];var r,n;return(0,Qb.normalizeConfig)((0,ac.defaults)({theme:av(ov(iv(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:uv(t.map(i=>i.corePlugins)),plugins:lv(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var fc={};zr(fc,{default:()=>cv});var cv,cc=sr(()=>{cv={yellow:e=>e}});var mc=q(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});function dv(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}dv(ta,{flagEnabled:()=>mv,issueFlagNotices:()=>gv,default:()=>bv});var pv=hc((cc(),Gr(fc))),hv=hc((yi(),Gr(vi)));function hc(e){return e&&e.__esModule?e:{default:e}}var dc={optimizeUniversalDefaults:!1},Mn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function mv(e,t){if(Mn.future.includes(t)){var r,n,i;return e.future==="all"||((i=(n=e==null||(r=e.future)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:dc[t])!==null&&i!==void 0?i:!1)}if(Mn.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:dc[t])!==null&&a!==void 0?a:!1)}return!1}function pc(e){if(e.experimental==="all")return Mn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>Mn.experimental.includes(r)&&e.experimental[r])}function gv(e){if(process.env.JEST_WORKER_ID===void 0&&pc(e).length>0){let t=pc(e).map(r=>pv.default.yellow(r)).join(", ");hv.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 bv=Mn});var bc=q(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});Object.defineProperty(ra,"default",{enumerable:!0,get:()=>gc});var vv=xv(Do()),yv=mc();function xv(e){return e&&e.__esModule?e:{default:e}}function gc(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[vv.default]).slice().reverse().flatMap(o=>gc(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,yv.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var yc=q(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});Object.defineProperty(na,"default",{enumerable:!0,get:()=>_v});var wv=vc(lc()),Sv=vc(bc());function vc(e){return e&&e.__esModule?e:{default:e}}function _v(...e){let[,...t]=(0,Sv.default)(e[0]);return(0,wv.default)([...e,...t])}});var wc=q((gw,xc)=>{var ia=yc();xc.exports=(ia.__esModule?ia:{default:ia}).default});var Gv={};zr(Gv,{default:()=>Sa,init:()=>ru});module.exports=Gr(Gv);var Ma=_t(require("linebreak"),1);var jr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nd=jr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),id=jr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),od=jr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),sd=jr((e,t)=>{t.exports=["Hz","kHz"]}),ad=jr((e,t)=>{t.exports=["s","ms"]}),ud=nd(),Aa=id(),Ra=od(),Ca=sd(),La=ad();function Bi(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(ld(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=$i(e),this.unit="%";return}var t=cd(e);if(!t){this.type="number",this.value=$i(e);return}this.type=pd(t),this.value=$i(e.substr(0,e.length-t.length)),this.unit=t}Bi.prototype.valueOf=function(){return this.value};Bi.prototype.toString=function(){return this.value+(this.unit||"")};function Tt(e){return new Bi(e)}function ld(e){var t=e.match(/\./g);return t?t.length:0}function $i(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var fd=[].concat(Aa,Ca,ud,Ra,La);function cd(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&fd.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var dd=Object.assign(Vn(Aa,"angle"),Vn(Ca,"frequency"),Vn(Ra,"resolution"),Vn(La,"time"));function Vn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function pd(e){return dd[e]||"length"}function Sr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function Na(e){return/^class\s/.test(e.toString())}function zi(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Fa(e){return typeof e=="function"||zi(e)}function Wa(e){return"dangerouslySetInnerHTML"in e}function Da(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function V(e,t,r,n,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 Tt(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*n._viewportWidth/100);case"vh":return~~(o.value*n._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return ar(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function ar(e){let t=new Tt(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 Vr(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 Ve(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var Ui,qi,$a=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),wr=new Map,hd=500;function je(e,t,r){let n=`${t}:${r||""}:${e}`;if(wr.has(n))return wr.get(n);if(!Ui||!qi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Ui=new Intl.Segmenter(r,{granularity:"word"}),qi=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...qi.segment(e)].map(o=>o.segment);else{let o=[...Ui.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(wr.size>=hd){let o=wr.keys().next().value;wr.delete(o)}return wr.set(n,i),i}function R(e,t,r){let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(n+=` ${i}="${o}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ba(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function _r(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Hn(e){return typeof e=="string"}function Ua(e){return typeof e=="number"}function qa(e){return typeof e>"u"}function Dt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Ht(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function za(e,t){if(t==="break-all")return{words:je(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:je(e,"word"),requiredBreaks:[]};let r=new Ma.default(e),n=0,i=r.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(n,i.position);o.push(a),i.required?s.push(!0):s.push(!1),n=i.position,i=r.nextBreak()}return{words:o,requiredBreaks:s}}var Ga=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function $t(e,t=","){let r=[],n=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])&&(r.push(e.slice(n,o).trim()),n=o+1);return r.push(e.slice(n).trim()),r}function ru(e){return Promise.resolve().then(()=>(Zi(),Ji)).then(t=>t.init(e))}function Yt(){return Promise.resolve().then(()=>(Zi(),Ji)).then(e=>e.getYoga())}var nu=Symbol.for("react.fragment");var Kn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var _d=new Set([301,302,303,307,308]);function eo(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function Td(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Kn.test(f))return null;let[d,m,h,g]=f.split(".").map(v=>Number.parseInt(v,10));if([d,m,h,g].some(v=>!Number.isInteger(v)||v<0||v>255))return null;a.push(d<<8|m,h<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function Ed(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function ou(e){let t=Td(e);if(t===null)return!0;let r=Ed(t);return r?eo(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function kd(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Kn.test(t)?eo(t):t.includes(":")?ou(t):!0}function su(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function Pd(e){let t=su(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Kn.test(r)?eo(r):r.includes(":")?ou(r):!1}function Qn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function Od(e){if(Pd(e))throw Qn(e)}var Pr;async function Id(){if(Pr!==void 0)return Pr;if(typeof window<"u")return Pr=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Pr=(r,n)=>t.lookup(r,n),Pr}catch{return Pr=null,null}}async function Ad(e,t){Od(e);let r=su(e);if(!r)throw Qn(e);let{host:n}=r;if(Kn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await Id();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(kd(s))throw Qn(e)}async function iu(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function au(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await Ad(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await iu(o),Qn(n);let s=o.headers.get("location");if(_d.has(o.status)&&s){await iu(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var Rd="image/avif",Jn="image/webp",Zn="image/apng",ei="image/png",ti="image/jpeg",ri="image/gif",to="image/svg+xml";function fu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+r);if(o===192||o===193||o===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function cu(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function du(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function pu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=Ba(500),Yr=new Map,Cd=[ei,Zn,ti,ri,to,Jn],Ld=/<svg[^>]*>/i,Md=/viewBox=['"]([^'"]+)['"]/,Nd=/width=['"](\d*\.?\d+)['"]/,Fd=/height=['"](\d*\.?\d+)['"]/;function Wd(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function Dd(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function uu(e,t){let r=t.match(Ld);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=Md.exec(n),o=Nd.exec(n),s=Fd.exec(n),a=i?_r(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function lu(e){let t,r=$d(new Uint8Array(e));switch(r){case ei:case Zn:t=pu(e);break;case ri:t=du(e);break;case ti:t=fu(e);break;case Jn:t=cu(e);break}if(!Cd.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Wd(e)}`,t]}async function Or(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=lu(e);return[o,...s]}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 o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===to){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,d=uu(e,l);return At.set(e,[f,...d]),[f,...d]}else if(a==="base64"){let l,f=Dd(u);switch(s){case ei:case Zn:l=pu(f);break;case ri:l=du(f);break;case ti:l=fu(f);break;case Jn:l=cu(f);break}return At.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Yr.has(e))return Yr.get(e);let t=At.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>au(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=uu(r,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=lu(o);return[s,...a]}).then(o=>(At.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),At.set(r,[]),[]});return Yr.set(r,i),i}function $d(e){return[255,216,255].every((t,r)=>e[r]===t)?ti:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Bd(e)?Zn:ei:[71,73,70,56].every((t,r)=>e[r]===t)?ri:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Jn:[60,63,120,109,108].every((t,r)=>e[r]===t)?to:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?Rd:null}function Bd(e){let t=new DataView(e.buffer),r,n,i=8,o=!1;for(;!o&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let s=e.subarray(i+4,i+8);r=String.fromCharCode(...s),o=r==="acTL",i+=12+n}return o}var ro={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"},Ud=/[\r\n%#()<>?[\\\]^`{|}"']/g;function ni(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>ni(l,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),(l==="href"||l==="xlinkHref")&&r==="image"?` ${ro[l]||l}="${At.get(f)[0]}"`:` ${ro[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${Ga(l)}:${f}`).join(";")}"`:"";return r===nu?ni(n,s):`<${r}${a}${u}>${ni(n,s)}</${r}>`}async function hu(e){let t=new Set,r=n=>{if(n&&Sr(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>Or(n)))}async function mu(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};r||=n,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,d=_r(r),m=d?d[3]/d[2]:null;return i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,l.width=i,l.height=o,r&&(l.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([h,g])=>(typeof g=="string"&&g.toLowerCase()==="currentcolor"&&(g=f),` ${ro[h]||h}="${g}"`)).join("")}>${ni(u,f)}</svg>`.replace(Ud,encodeURIComponent)}`}var ft="flex",gu={p:{display:ft,marginTop:"1em",marginBottom:"1em"},div:{display:ft},blockquote:{display:ft,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ft,textAlign:"center"},hr:{display:ft,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ft,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ft,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ft,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ft,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ft,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ft,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:ft,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var qd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function no(e){let t={};for(let r in e)(qd.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}var kt=require("css-to-react-native"),Ou=require("css-background-parser"),Iu=require("css-box-shadow"),Au=_t(require("parse-css-color"),1);var bu=_t(require("postcss-value-parser"),1);function zd(e,t){try{let r=new Tt(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function io(e,t,r){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 n=zd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function oo(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=(0,bu.default)(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?io(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...io(r[0],t,!0),...io(r[1],t,!1)}):{}}var vu=require("css-to-react-native");function Xr(e,t){let r=(0,vu.getPropertyName)(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function yu(e){let t=e.maskImage||e.WebkitMaskImage,r={position:Xr(e,"position")||"0% 0%",size:Xr(e,"size")||"100% 100%",repeat:Xr(e,"repeat")||"repeat",origin:Xr(e,"origin")||"border-box",clip:Xr(e,"origin")||"border-box"};return $t(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Gd={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function so(e){let t=e.trim().toLowerCase(),r=Gd[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function ii(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)so(n);return r}var wu=_t(require("parse-css-color"),1);var xu={brightness:1,contrast:1,grayscale:1,invert:1,opacity:1,saturate:1,sepia:1};function Su(e,t,r="black"){if(e==="none")return[];if(typeof e!="string")throw new Error('Invalid `backdropFilter` value: "'+e+'".');let n=$t(e,/\s/).filter(Boolean);if(!n.length)throw new Error('Invalid `backdropFilter` value: "'+e+'".');return n.map(i=>{let o=i.match(/^([a-z-]+)\((.*)\)$/i);if(!o)throw new Error("Invalid filter function in `backdropFilter`.");let s=o[1].toLowerCase(),a=o[2].trim();if(s==="blur"){let u=a?oi(a,t,"blur()"):0;if(u<0)throw new Error("Invalid `blur()` radius in `backdropFilter`.");return{type:"blur",value:u}}if(s==="hue-rotate"){let u=a==="0"||!a?0:ar(a);if(typeof u>"u")throw new Error("Invalid `hue-rotate()` angle in `backdropFilter`.");return{type:"hue-rotate",value:u}}if(s==="drop-shadow")return jd(a,t,r);if(s in xu){let u=s,l=a?Vd(a,`${u}()`):xu[u],f=["grayscale","invert","opacity","sepia"].includes(u)?Math.min(l,1):l;return{type:u,value:f}}throw new Error(`Unsupported \`${s}()\` in \`backdropFilter\`.`)})}function jd(e,t,r){let n=$t(e,/\s/).filter(Boolean),i=r,o=[];for(let l of n)(0,wu.default)(l)?i=l:o.push(l);if(o.length<2||o.length>3)throw new Error("Invalid `drop-shadow()` value in `backdropFilter`.");let s=oi(o[0],t,"drop-shadow()"),a=oi(o[1],t,"drop-shadow()"),u=o[2]?oi(o[2],t,"drop-shadow()"):0;if(u<0)throw new Error("Invalid `drop-shadow()` blur radius in `backdropFilter`.");return{type:"drop-shadow",offsetX:s,offsetY:a,blurRadius:u,color:i}}function oi(e,t,r){let n=V(e,t.fontSize,0,t);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`${r}\` for \`backdropFilter\`.`);return n}function Vd(e,t){let r=e.match(/^([+-]?(?:\d+\.?\d*|\.\d+))%$/),n=r?Number(r[1])/100:Number(e);if(!Number.isFinite(n)||n<0)throw new Error(`Invalid amount \`${e}\` in \`${t}\` for \`backdropFilter\`.`);return n}var ao=_t(require("postcss-value-parser"),1);function _u(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function Tu(e,t){return{...e,...t}}function Kr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=(0,ao.default)(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=Hd(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Qr(o,u):Qr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(r);f.add(a);let d=Kr(l,t,f);Qr(o,String(d))}else if(u!==void 0){let f=Kr(u,t,r);Qr(o,String(f))}else Qr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function Hd(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=ao.default.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Qr(e,t){e.type="word",e.value=t,delete e.nodes}var Yd=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Xd=new Set(["lineHeight"]);function Qd(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function ur(e,t){let r=Number(t);return isNaN(r)?t:Yd.has(e)?Xd.has(e)?r:String(t):r+"px"}function Kd(e,t,r,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:ur(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(o=>o.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[o,s]=t.split("/"),a=(0,kt.getStylesForProperty)(e,o,!0),u=(0,kt.getStylesForProperty)(e,s,!0);for(let l in a)u[l]=ur(e,a[l])+" "+ur(e,u[l]);return u}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let o=ii(t),s=o[0],a=o[1]||s,u=o[2]||s,l=o[3]||a;return{cornerTopLeftShape:s,cornerTopRightShape:a,cornerBottomRightShape:u,cornerBottomLeftShape:l}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||ii(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let i=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(i){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let o=ii(t,2),s=o[0],a=o[1]||s,u={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[i[1]];return{[u[0]]:s,[u[1]]:a}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let o=(0,kt.getStylesForProperty)("border",t,!0);o.borderWidth===1&&!String(t).includes("1px")&&(o.borderWidth=3),o.borderColor==="black"&&!String(t).includes("black")&&(o.borderColor=r);let s={Width:ur(e+"Width",o.borderWidth),Style:Ve(o.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:o.borderColor},a={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in s)a["border"+u+l]=s[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,Iu.parse)(t):t}}if(e==="backdropFilter"||e==="WebkitBackdropFilter")return{_backdropFilters:Su(t,n,r)};if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let o={},s=t.replace(/(-?[\d.]+%)/g,(u,l)=>{let f=~~(Math.random()*1e9);return o[f]=l,f+"px"}),a=(0,kt.getStylesForProperty)("transform",s,!0);for(let u of a.transform)for(let l in u)o[u[l]]&&(u[l]=o[u[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?(0,kt.getStylesForProperty)("backgroundImage",t,!0):(0,kt.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let o={},s=$t(t);for(let a of s){let u=(0,kt.getStylesForProperty)("textShadow",a,!0);for(let l in u)o[l]?o[l].push(u[l]):o[l]=[u[l]]}return o}if(e==="WebkitTextStroke"){t=t.toString().trim();let o=t.split(" ");if(o.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:ur(e,o[0]),WebkitTextStrokeColor:ur(e,o[1])}}if(e==="textDecorationSkipInk"){let o=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(o))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:o}}}function Eu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var ku=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Ru(e){if(typeof e=="string"&&ku.test(e.trim()))return e.trim().replace(ku,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Ru(e[t]);return e}return e}function si(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=_u(e);i=u,o=l}let s=Tu(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?Kr(o.color,s):void 0,l=Zd(u,t.color);r.color=l;for(let f in o){if(f.startsWith("_")){r[f]=o[f];continue}if(f==="color")continue;let d=(0,kt.getPropertyName)(f),m=Kr(o[f],s),h=tp(m,l);try{let g=Kd(d,h,l,t)||Qd(d,(0,kt.getStylesForProperty)(d,ur(d,h),!0),h,l);Object.assign(r,g)}catch(g){throw new Error(g.message+(g.message.includes(h)?`
|
|
5
|
-
`+
|
|
6
|
-
in CSS rule \`${d}: ${h}\`.${Eu(d)}`))}}}if(r.backgroundImage){let{backgrounds:u}=(0,Ou.parseElementStyle)(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=yu(r));let a=Jd(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=oo(r.transformOrigin,a));for(let u in r){let l=r[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=r[u]=V(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=V(l,a,a,t);typeof f<"u"&&(r[u]=f),l=r[u]}if(typeof l=="string"||typeof l=="object"){let f=Ru(l);f&&(r[u]=f),l=r[u]}}if(u==="opacity"&&typeof l=="number"&&(r.opacity=l*t.opacity),u==="transform"){let f=l;for(let d of f){let m=Object.keys(d)[0],h=d[m],g=typeof h=="string"?V(h,a,a,t)??h:h;d[m]=g}}if(u==="textShadowRadius"){let f=l;r.textShadowRadius=f.map(d=>V(d,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;r.textShadowOffset=f.map(({height:d,width:m})=>({height:V(d,a,0,t,!1),width:V(m,a,0,t,!1)}))}}return r}function Jd(e,t){if(typeof e=="number")return e;try{let r=new Tt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function Pu(e){if(e.startsWith("hsl")){let t=(0,Au.default)(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function Zd(e,t){return e&&e.toLowerCase()!=="currentcolor"?Pu(e):Pu(t)}function ep(e,t){return e.replace(/currentcolor/gi,t)}function tp(e,t){return Hn(e)&&(e=ep(e,t)),e}async function uo(e,t,r,n,i){let o=await Yt(),s=Object.assign({},r,si(gu[t],r),si(n,r));if(t==="img"){let[a,u,l]=await Or(i.src);if(u===void 0&&l===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),l=parseInt(i.height)}let f=l/u,d=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),m=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),h=s.width||i.width,g=s.height||i.height,v=typeof h=="number"&&typeof g=="number";v&&(h-=d,g-=m),h===void 0&&g===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof g=="number"?h=g/f:e.setAspectRatio(1/f):g===void 0&&(typeof h=="number"?g=h*f:e.setAspectRatio(1/f)),s.width=v?h+d:h,s.height=v?g+m:g,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=l}if(t==="svg"){let a=i.viewBox||i.viewbox,u=_r(a),l=u?u[3]/u[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=V(d,r.fontSize,1,r),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=V(f,r.fontSize,1,r),d=f*l):(typeof f<"u"&&(f=V(f,r.fontSize,1,r)||f),typeof d<"u"&&(d=V(d,r.fontSize,1,r)||d),f||=u==null?void 0:u[2],d||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&d&&(s.height=d)}return e.setDisplay(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ht(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(Dt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Dt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Dt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Dt(s.minWidth,"minWidth")),e.setOverflow(Ve(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Ht(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Ht(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Ht(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Ht(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(Ve(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Ve(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,Dt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Dt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Dt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Dt(s.right,"right")),typeof s.height<"u"?e.setHeight(Ht(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Ht(s.width,"width")):e.setWidthAuto(),[s,no(s)]}var lo=_t(require("escape-html"),1);var Cu=[1,0,0,1,0,0];function rp(e,t,r){let n=[...Cu];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*r,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Cu];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 l=a*Math.PI/180,f=Math.cos(l),d=Math.sin(l);u[0]=f,u[1]=d,u[2]=-d,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=Vr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function Jr({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||rp(i,r,n);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,d=e+l,m=t+f;a=Vr([1,0,0,1,d,m],Vr(u,[1,0,0,1,-d,-m])),u.__parent&&(a=Vr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Lu({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Jr({left:e,top:t,width:r,height:n},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function fo({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:d,shape:m,decorationShape:h},g){let v="";if(d&&(v=R("rect",{x:n,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let _={href:l,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+R("image",{..._,opacity:u!==1?u:void 0})+(h||"")+(r?"</g>":"")+v,""]}let w={x:n,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+R("text",{...w,fill:g.color,opacity:u!==1?u:void 0},(0,lo.default)(t))+(h||"")+(r?"</g>":"")+v,m?R("text",w,(0,lo.default)(t)):""]}function np(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+r)})}var ai=1.1;function Mu({id:e,width:t,height:r},n,i=!1){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let o=n.shadowColor.length,s="",a="",u=0,l=t,f=0,d=r;for(let m=0;m<o;m++){let h=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-h,u),l=Math.max(n.shadowOffset[m].width+h+t,l),f=Math.min(n.shadowOffset[m].height-h,f),d=Math.max(n.shadowOffset[m].height+h+r,d),i){let g=`satori_s-${e}-result-${m}`;s+=R("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${g}-blur`})+R("feOffset",{in:`${g}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${g}-offset`})+R("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${g}-color`})+R("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=R("feDropShadow",{dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,stdDeviation:n.shadowRadius[m]/2,"flood-color":n.shadowColor[m],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${m}`}:{}});o>1&&(a=R("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return R("filter",{id:`satori_s-${e}`,x:(u/t*100*ai).toFixed(2)+"%",y:(f/r*100*ai).toFixed(2)+"%",width:((l-u)/t*100*ai).toFixed(2)+"%",height:((d-f)/r*100*ai).toFixed(2)+"%"},s+(a?R("feMerge",{},a):""))}function Nu({width:e,height:t,shape:r,opacity:n,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),m=Math.min(-d-(f.inset?f.offsetX:0),0),h=Math.max(d+e-(f.inset?f.offsetX:0),e),g=Math.min(-d-(f.inset?f.offsetY:0),0),v=Math.max(d+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,O=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;l+=R("mask",{id:_,maskUnits:"userSpaceOnUse"},R("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+O.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let x=O.replace(/d="([^"]+)"/,(E,T)=>'d="'+np(T,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(E,T)=>'x="'+(parseFloat(T)+f.offsetX)+'"').replace(/y="([^"]+)"/,(E,T)=>'y="'+(parseFloat(T)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=R("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},x.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(x=R("g",{mask:`url(#${_}-neg)`},x)),l+=R("defs",{},R("filter",{id:w,x:`${m/e*100}%`,y:`${g/t*100}%`,width:`${(h-m)/e*100}%`,height:`${(v-g)/t*100}%`},R("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+R("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+R("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+R("g",{mask:`url(#${_})`,filter:`url(#${w})`,opacity:n},x),f.inset?a+=l:s+=l}return[s,a]}function ip(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let d of r){if(d.y2<o+s||d.y1>n+s)continue;let m=Math.max(e,d.x1-a),h=Math.min(t,d.x2+a);if(m>=h)continue;if(u.length===0){u.push([m,h]);continue}let g=u[u.length-1];m<=g[1]?g[1]=Math.max(g[1],h):u.push([m,h])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[d,m]of u)if(d>f&&l.push([f,d]),f=Math.max(f,m),f>=t)break;return f<t&&l.push([f,t]),l}function co({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:d,fontSize:m,color:h}=a;if(!f||f==="none")return"";let g=Math.max(1,m*.1),v=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,w=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,_=f==="underline"&&(d||"auto")!=="none"&&(s==null?void 0:s.length),O=r+n,x=_?ip(t,t+e,s,v,g,O):[[t,t+e]],E=l==="double"?x.map(([T,I])=>R("line",{x1:T,y1:v+g+1,x2:I,y2:v+g+1,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+x.map(([T,I])=>R("line",{x1:T,y1:v,x2:I,y2:v,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+E+(i?"</g>":"")}function po(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var lr=po("U+0020"),ho=po("U+0009"),Ir=po("U+2026");function Fu(e,t,r){let{fontSize:n,letterSpacing:i}=r,o=new Map;function s(l){let f=o.get(l);return f===void 0&&(f=e.measure(l,{fontSize:n,letterSpacing:i}),o.set(l,f)),f}function a(l){let f=0;for(let d of l)t(d)?f+=n:f+=s(d);return f}function u(l){return a(je(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Wu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=op(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=up(e,i),{words:l,requiredBreaks:f,allowBreakWord:d}=ap(s,o),[m,h]=sp(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:d,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:h}}function op(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=je(e,"word",r).map(n=>je(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function sp(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,l=Ir]=lp(n);if(u)return[u,l]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&Ua(i)&&i>0?[i,Ir]:r==="ellipsis"&&s==="hidden"&&!t?[1,Ir]:[1/0]}function ap(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=za(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function up(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,lr)),n&&(e=e.replace(/([ ]|\t)+/g,lr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function lp(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let o=+n[1],s=n[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var go=_t(require("parse-css-color"),1),fp=new Set([ho]);function cp(e){return fp.has(e)}function mo(e){if(e==="transparent")return!0;let t=(0,go.default)(e);return t?t.alpha===0:!1}function Du(e){if(!e)return!1;let t=(0,go.default)(e);if(!t)return!1;let[r,n,i,o]=t.values;return r===255&&n===255&&i===255&&(o===void 0||o===1)}async function*bo(e,t){let r=await Yt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:d,locale:m,canLoadAdditionalAssets:h}=t,{textAlign:g,textIndent:v=0,lineHeight:w,textWrap:_,fontSize:O,filter:x,tabSize:E=8,letterSpacing:T,_inheritedBackgroundClipTextPath:I,_inheritedBackgroundClipTextHasBackground:N,flexShrink:W}=n,{words:z,requiredBreaks:Z,allowSoftWrap:de,allowBreakWord:we,processedContent:ve,shouldCollapseTabsAndSpaces:ue,lineLimit:Se,blockEllipsis:Me}=Wu(e,n,m),te=dp(r,g);o.insertChild(te,o.getChildCount()),qa(W)&&o.setFlexShrink(1);let J=s.getEngine(O,w,n,m),ot=h?je(ve,"grapheme").filter(Y=>!cp(Y)&&!J.has(Y)):[];yield ot.map(Y=>({word:Y,locale:m})),ot.length&&(J=s.getEngine(O,w,n,m));function He(Y){return!!(d&&Object.prototype.hasOwnProperty.call(d,Y)&&d[Y])}let{measureGrapheme:ye,measureGraphemeArray:Re,measureText:Ze}=Fu(J,He,{fontSize:O,letterSpacing:T}),le=Hn(E)?V(E,O,1,n):ye(lr)*E,X=(Y,H)=>{if(Y.length===0)return{originWidth:0,endingSpacesWidth:0,text:Y};let{index:fe,tabCount:Q}=pp(Y),xe=0;if(Q>0){let Te=Y.slice(0,fe),re=Y.slice(fe+Q),ne=Ze(Te),ut=ne+H;xe=(le===0?ne:(Math.floor(ut/le)+Q)*le)+Ze(re)}else xe=Ze(Y);let ae=Y.trimEnd()===Y?xe:Ze(Y.trimEnd());return{originWidth:xe,endingSpacesWidth:xe-ae,text:Y}},ee=[],me=[],G=[],_e=[],Ie=[];function Ye(Y){let H=0,fe=0,Q=-1,xe=0,ae=0,Te=0,re=0;ee=[],G=[0],_e=[],Ie=[];let ne=0,ut=0;for(;ne<z.length&&H<Se;){let K=z[ne],Fe=Z[ne],ze=0,{originWidth:$r,endingSpacesWidth:Ae,text:or}=X(K,ae);K=or,ze=$r;let $e=Ae;Fe&&Te===0&&(Te=J.height(K));let Nt=g==="justify",Ee=ne&&ae+ze>Y+$e&&de;if(we&&ze>Y&&(!ae||Ee||Fe)){let nt=je(K,"grapheme");z.splice(ne,1,...nt),ae>0&&(ee.push(ae-ut),me.push(re),H++,xe+=Te,ae=0,Te=0,re=0,G.push(1),Q=-1),ut=$e;continue}if(Fe||Ee)ue&&K===lr&&(ze=0),ee.push(ae-ut),me.push(re),H++,xe+=Te,ae=ze,Te=ze?Math.round(J.height(K)):0,re=ze?Math.round(J.baseline(K)):0,G.push(1),Q=-1,Fe||(fe=Math.max(fe,Y));else{ae+=ze;let nt=Math.round(J.height(K));nt>Te&&(Te=nt,re=Math.round(J.baseline(K))),Nt&&G[G.length-1]++}Nt&&Q++,fe=Math.max(fe,ae);let rt=ae-ze;if(ze===0)Ie.push({y:xe,x:rt,width:0,line:H,lineIndex:Q,isImage:!1});else{let nt=je(K,"word");for(let xt=0;xt<nt.length;xt++){let wt=nt[xt],Ge=0,lt=!1;He(wt)?(Ge=O,lt=!0):!f&&wt.length>1?Ge=Ze(wt):Ge=ye(wt),_e.push(wt),Ie.push({y:xe,x:rt,width:Ge,line:H,lineIndex:Q,isImage:lt}),rt+=Ge}}ne++,ut=$e}return ae&&(H<Se&&(xe+=Te),H++,ee.push(ae),me.push(re)),{width:fe,height:xe}}let Be={width:0,height:0};te.setMeasureFunc(Y=>{let{width:H,height:fe}=Ye(Y);if(_==="balance"){let xe=H/2,ae=H,Te=H;for(;xe+1<ae;){Te=(xe+ae)/2;let{height:ne}=Ye(Te);ne>fe?xe=Te:ae=Te}Ye(ae);let re=Math.ceil(ae);return Be={width:re,height:fe},{width:re,height:fe}}if(_==="pretty"&&ee[ee.length-1]<H/3){let Te=H*.9,re=Ye(Te);if(re.height<=fe*1.3)return Be={width:H,height:re.height},{width:H,height:re.height}}let Q=Math.ceil(H);return Be={width:Q,height:fe},{width:Q,height:fe}});let[pe,Ue]=yield,Ce="",et="",Ne=i._inheritedClipPathId,br=i._inheritedMaskId,{left:Ot,top:Dr,width:tr,height:vr}=te.getComputedLayout(),yr=typeof v=="string"?V(v,O,tr,n,!0)||0:v,rr=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),It=pe+Ot,gt=Ue+Dr,{matrix:st,opacity:nr}=Lu({left:Ot,top:Dr,width:tr,height:vr,isInheritingTransform:u},n),Xe="";if(n.textShadowOffset){let{textShadowColor:Y,textShadowOffset:H,textShadowRadius:fe}=n;Xe=Mu({width:Be.width,height:Be.height,id:a},{shadowColor:Y,shadowOffset:H,shadowRadius:fe},mo(n.color)||N&&Du(n.color)),Xe=R("defs",{},Xe)}let bt="",vt="",ir="",Vt=-1,qe={},at={},tt=null,yt=0;for(let Y=0;Y<_e.length;Y++){let H=Ie[Y],fe=Ie[Y+1];if(!H)continue;let Q=_e[Y],xe=null,ae=!1,Te=d&&Object.prototype.hasOwnProperty.call(d,Q)?d[Q]:null,re=H.y,ne=H.x,ut=H.width,K=H.line,Fe=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(K===Vt)continue;let ze=!1;if(K===0&&yr!==0&&(ne+=yr),ee.length>1){let Ee=tr-ee[K];if(g==="right"||g==="end")ne+=Ee;else if(g==="center")ne+=Ee/2;else if(g==="justify"&&K<ee.length-1){let Oe=G[K],rt=Oe>1?Ee/(Oe-1):0;ne+=rt*H.lineIndex,ze=!0}f&&(ne=Math.round(ne))}let $r=me[K],Ae=J.baseline(Q),or=J.height(Q),$e=$r-Ae,Nt=Ee=>!Fe||n.textDecorationLine!=="underline"?void 0:{underlineY:gt+Ee+$e+Ae+Ae*.1,strokeWidth:Math.max(1,O*.1)};if(qe[K]||(qe[K]={left:ne,top:gt+re+$e,ascender:Ae,width:ze?tr:ee[K]}),Se!==1/0){let wt=function(Ge,lt){let Br=je(lt,"grapheme",m),xr="",Bn=0;for(let Un of Br){let Ur=Ge+Re([xr+Un]);if(xr&&Ur+Oe>rr)break;xr+=Un,Bn=Ur}return{subset:xr,resolvedWidth:Bn}},Ee=Me,Oe=ye(Me);Oe>rr&&(Ee=Ir,Oe=ye(Ee));let rt=ye(lr),nt=K<ee.length-1;if(K+1===Se&&(nt||ee[K]>rr)){if(ne+ut+Oe+rt>rr){let{subset:Ge,resolvedWidth:lt}=wt(ne,Q);Q=Ge+Ee,Vt=K,qe[K].width=Math.max(0,lt-qe[K].left),ae=!0}else if(fe&&fe.line!==K)if(g==="center"){let{subset:Ge,resolvedWidth:lt}=wt(ne,Q);Q=Ge+Ee,Vt=K,qe[K].width=Math.max(0,lt-qe[K].left),ae=!0}else{let Ge=_e[Y+1],{subset:lt,resolvedWidth:Br}=wt(ut+ne,Ge);Q=Q+lt+Ee,Vt=K,qe[K].width=Math.max(0,Br-qe[K].left),ae=!0}}}if(Te)re+=0;else if(f){if(!Q.includes(ho)&&!$a.includes(Q)&&_e[Y+1]&&fe&&!fe.isImage&&re===fe.y&&!ae){tt===null&&(yt=ne),tt=tt===null?Q:tt+Q;continue}let Ee=tt===null?Q:tt+Q,Oe=tt===null?ne:yt,rt=H.width+ne-Oe,nt=Nt(re),xt=J.getSVG(Ee.replace(/(\t)+/g,""),{fontSize:O,left:It+Oe,top:gt+re+Ae+$e,letterSpacing:T},nt);xe=xt.path,Fe&&xt.boxes&&xt.boxes.length&&(at[K]||(at[K]=[])).push(...xt.boxes),tt=null,l&&(ir+=R("rect",{x:It+Oe,y:gt+re+$e,width:rt,height:or,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:st||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+R("line",{x1:It+ne,x2:It+ne+H.width,y1:gt+re+$e+Ae,y2:gt+re+$e+Ae,stroke:"#14c000","stroke-width":1,transform:st||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(re+=Ae+$e,Fe&&!Te){let Ee=Nt(re),Oe=J.getSVG(Q.replace(/(\t)+/g,""),{fontSize:O,left:It+ne,top:gt+re,letterSpacing:T},Ee);Oe.boxes&&Oe.boxes.length&&(at[K]||(at[K]=[])).push(...Oe.boxes)}if(xe!==null)vt+=xe+" ";else{let[Ee,Oe]=fo({content:Q,filter:Xe,id:a,left:It+ne,top:gt+re,width:ut,height:or,matrix:st,opacity:nr,image:Te,clipPathId:Ne,debug:l,shape:!!I},n);Ce+=Ee,et+=Oe}if(ae)break}if(n.textDecorationLine&&(bt=Object.entries(qe).map(([Y,H])=>{if(!H)return"";let fe=at[Y]||[];return co({left:It+H.left,top:H.top,width:H.width,ascender:H.ascender,clipPathId:Ne,matrix:st,glyphBoxes:fe},n)}).join("")),vt){let Y=(!mo(n.color)||Xe)&&nr!==0?`<g ${br?`mask="url(#${br})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+R("path",{fill:Xe&&(mo(n.color)||N&&Du(n.color))?"black":n.color,d:vt,transform:st||void 0,opacity:nr!==1?nr:void 0,style:x?`filter:${x}`: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>":"";I&&(et=R("path",{d:vt,transform:st||void 0})),Ce+=(Xe?Xe+R("g",{filter:`url(#satori_s-${a})`},Y+bt):Y+bt)+ir}else bt&&(Ce+=Xe?R("g",{filter:`url(#satori_s-${a})`},bt):bt);return et&&(n._inheritedBackgroundClipTextPath.value+=et),Ce}function dp(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(Ve(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")),r}function pp(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Bu=require("css-gradient-parser");var $u=_t(require("parse-css-color"),1);function ui(e,t,r,n,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&n?+s.offset.value:100;for(let d of t){let{color:m}=d;if(!o.length&&(o.push({offset:0,color:m}),!d.offset||d.offset.value==="0"))continue;let h=typeof d.offset>"u"?void 0:d.offset.unit==="%"?+d.offset.value/a:Number(V(`${d.offset.value}${d.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:h,color:m})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:n?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let l=0,f=1;for(let d=0;d<o.length;d++)if(typeof o[d].offset>"u"){for(f<d&&(f=d);typeof o[f].offset>"u";)f++;o[d].offset=(o[f].offset-o[l].offset)/(f-l)*(d-l)+o[l].offset}else l=d;return i==="mask"?o.map(d=>{let m=(0,$u.default)(d.color);return m?m.alpha===0?{...d,color:"rgba(0, 0, 0, 1)"}:{...d,color:`rgba(255, 255, 255, ${m.alpha})`}:d}):o}function Uu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){let f=(0,Bu.parseLinearGradient)(o),[d,m]=s,h=o.startsWith("repeating"),g,v,w;if(f.orientation.type==="directional")g=mp(f.orientation.value),v=Math.sqrt(Math.pow((g.x2-g.x1)*d,2)+Math.pow((g.y2-g.y1)*m,2));else if(f.orientation.type==="angular"){let{length:T,...I}=gp(ar(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,d,m);v=T,g=I}w=h?bp(f.stops,v,g,u):g;let _=ui(h?hp(f.stops,v):v,f.stops,u,h,l),O=`satori_bi${e}`,x=`satori_pattern_${e}`,E=R("pattern",{id:x,x:a[0]/t,y:a[1]/r,width:n?d/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},R("linearGradient",{id:O,...w,spreadMethod:h?"repeat":"pad"},_.map(T=>R("stop",{offset:(T.offset??0)*100+"%","stop-color":T.color})).join(""))+R("rect",{x:0,y:0,width:d,height:m,fill:`url(#${O})`}));return[x,E]}function hp(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function mp(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function gp(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,d,m=h=>{if(h===0){i=0,o=r,s=0,a=0,u=r;return}else if(h===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i+r,s=Math.abs(t/2-i)+t/2,a=r/2-Math.abs(o-r/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),d=Math.tan(h)*f+r,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-d,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),d=Math.tan(h)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-d,2));return}else h>=Math.PI&&(m(h-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function bp(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:V(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:V(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(o-i)*u+i,d=(a-s)*u+s,m=(o-i)*l+i,h=(a-s)*l+s;return{x1:f,y1:d,x2:m,y2:h}}var zu=require("css-gradient-parser");function Gu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){var ve;let{shape:f,stops:d,position:m,size:h,repeating:g}=(0,zu.parseRadialGradient)(o),[v,w]=s,_=v/2,O=w/2,x=yp(m.x,m.y,v,w,u.fontSize,u);_=x.x,O=x.y;let E=vp(t,d,g,u),T=ui(E,d,u,g,l),I=`satori_radial_${e}`,N=`satori_pattern_${e}`,W=`satori_mask_${e}`,z=wp(f,h,u.fontSize,{x:_,y:O},[v,w],u,g),Z=xp(f,u.fontSize,d,[v,w],u,g,z),de=R("pattern",{id:N,x:a[0]/t,y:a[1]/r,width:n?v/t:"1",height:i?w/r:"1",patternUnits:"objectBoundingBox"},R("radialGradient",{id:I,...Z},T.map(ue=>R("stop",{offset:ue.offset||0,"stop-color":ue.color})).join(""))+R("mask",{id:W},R("rect",{x:0,y:0,width:v,height:w,fill:"#fff"}))+R("rect",{x:0,y:0,width:v,height:w,fill:((ve=T.at(-1))==null?void 0:ve.color)||"transparent"})+R(f,{cx:_,cy:O,width:v,height:w,...z,fill:`url(#${I})`,mask:`url(#${W})`}));return[N,de]}function vp(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:V(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function yp(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,qu(e.value,r,n,"x")):s.x=V(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,qu(t.value,r,n,"y")):s.y=V(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function qu(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function xp(e,t,r,[n,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let d=r.at(-1),m=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:d.offset.unit==="%"?`${Number(d.offset.value)*Math.min(i/n,1)/f}%`:Number(V(`${d.offset.value}${d.offset.unit}`,t,n,o,!0)/m)}}function wp(e,t,r,n,i,o,s){let[a,u]=i,{x:l,y:f}=n,d={},m=0,h=0;if(Sp(t)){if(t.some(g=>g.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(d,{r:Number(V(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(d,{rx:Number(V(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(V(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),li(d,a,u,l,f,s,e),d}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-l),Math.abs(l)),h=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":m=Math.min(Math.abs(a-l),Math.abs(l)),h=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?d.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(d.rx=Math.max(Math.abs(a-l),Math.abs(l)),d.ry=Math.max(Math.abs(u-f),Math.abs(f))),li(d,a,u,l,f,s,e),d;case"closest-side":return e==="circle"?d.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(d.rx=Math.min(Math.abs(a-l),Math.abs(l)),d.ry=Math.min(Math.abs(u-f),Math.abs(f))),li(d,a,u,l,f,s,e),d}return e==="circle"?d.r=Math.sqrt(m*m+h*h):Object.assign(d,ju(m,h)),li(d,a,u,l,f,s,e),d}function li(e,t,r,n,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),{rx:l,ry:f}=ju(a,u);e.ratio=Math.max(l/e.rx,f/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function ju(e,t){let r=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let n=Math.sqrt(e*e+t*t*r*r)/r;return{ry:n,rx:n*r}}}function Sp(e){return!e.some(t=>t.type==="keyword")}var yo=_t(require("parse-css-color"),1);function xo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function _p(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,l=i;if(s==="auto"&&a!=="auto"){let f=xo(a,r);l=f,u=n/i*f}else if(a==="auto"&&s!=="auto"){let f=xo(s,t);u=f,l=i/n*f}return[u,l]}return[t,r]}function vo(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Tt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[n,i]).map((o,s)=>xo(o,[t,r][s]))}async function Zr({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let d=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",h=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),v=h&&g?[t,r]:h?[0,0]:vo(s,{x:t,y:r,defaultX:t,defaultY:r}),w=vo(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Uu({id:e,width:t,height:r,repeatX:d,repeatY:m},o,v,w,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Gu({id:e,width:t,height:r,repeatX:d,repeatY:m},o,v,w,l,f);if(o.startsWith("url(")){let[_,O,x]=await Or(o.slice(4,-1)),E,T;if(h){let[I,N]=_p(s,t,r,O,x);E=I,T=N}else{let I=vo(s,{x:t,y:r,defaultX:0,defaultY:0});E=f==="mask"?O||I[0]:I[0]||O,T=f==="mask"?x||I[1]:I[1]||x}return[`satori_bi${e}`,R("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:w[0]+n,y:w[1]+i,width:d?E:"100%",height:m?T:"100%"},R("image",{x:0,y:0,width:E,height:T,preserveAspectRatio:"none",href:_}))]}if((0,yo.default)(o)){let _=(0,yo.default)(o),[O,x,E,T]=_.values,N=`rgba(${O},${x},${E},${T!==void 0?T:1})`;return[`satori_bi${e}`,R("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},R("rect",{x:0,y:0,width:t,height:r,fill:N}))]}throw new Error(`Invalid background image: "${o}"`)}function Tp([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 fi(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function ci(e){e[0]=e[1]=Math.min(e[0],e[1])}function di(e,t,r,n,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(V(o[0],n,t,i,!0),t),Math.min(V(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var pi=e=>e&&e[0]!==0&&e[1]!==0;function hi(e){return typeof e!="string"?1:so(e)}function mi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,d=Math.pow(Math.sin(f),s),m=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*d+(e[0]-o[0])*m,o[1]+(t[1]-o[1])*d+(e[1]-o[1])*m])}return a}function fr(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function Vu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function Ep(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[l,f,d,m]=i,h=[mi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),mi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),mi([a,u-d[1]],[a-d[0],u],[a,u],[a-d[0],u-d[1]],o[2]),mi([e+m[0],u],[e,u-m[1]],[e,u],[e+m[0],u-m[1]],o[3])];if(s){let v=s.indexOf(!0);if(v===-1)throw new Error("Invalid `partialSides`.");for(;s[(v+3)%4];)v=(v+3)%4;let w=h[v],_=Math.floor(w.length/2),O=`M${fr(w[_])}`,x=v;do{let E=h[x],T=Math.floor(E.length/2);for(let W=T+1;W<E.length;W++)O+=` L${fr(E[W])}`;let I=h[(x+1)%4];O+=` L${fr(I[0])}`;let N=Math.floor(I.length/2);for(let W=1;W<=N;W++)O+=` L${fr(I[W])}`;x=(x+1)%4}while(s[x]&&x!==v);return O}let g=`M${fr(h[0][h[0].length-1])}`;for(let v=0;v<4;v++){let w=h[(v+1)%4];g+=` L${fr(w[0])}`;for(let _=1;_<w.length;_++)g+=` L${fr(w[_])}`}return g+" Z"}function Hu({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[R("clipPath",{id:u},R(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function Xt({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,d=[hi(i.cornerTopLeftShape),hi(i.cornerTopRightShape),hi(i.cornerBottomRightShape),hi(i.cornerBottomLeftShape)],m,h,g,v;if([m,s]=di(s,r,n,f,i),[h,a]=di(a,r,n,f,i),[g,u]=di(u,r,n,f,i),[v,l]=di(l,r,n,f,i),!o&&!pi(s)&&!pi(a)&&!pi(u)&&!pi(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=fi(s[0],a[0],r),[u[0],l[0]]=fi(u[0],l[0],r),[s[1],u[1]]=fi(s[1],u[1],n),[a[1],l[1]]=fi(a[1],l[1],n),m&&ci(s),h&&ci(a),g&&ci(u),v&&ci(l),d.some(T=>T<0)){let T=Math.min(Vu(s,l,r,n),Vu(a,u,r,n));if(T<1)for(let I of[s,a,l,u])I[0]*=T,I[1]*=T}if(d.some(T=>T!==1))return Ep(e,t,r,n,[s,a,l,u],d,o);let w=[];w[0]=[a,a],w[1]=[l,[-l[0],l[1]]],w[2]=[u,[-u[0],-u[1]]],w[3]=[s,[s[0],-s[1]]];let _=`h${r-s[0]-a[0]} a${w[0][0]} 0 0 1 ${w[0][1]}`,O=`v${n-a[1]-l[1]} a${w[1][0]} 0 0 1 ${w[1][1]}`,x=`h${l[0]+u[0]-r} a${w[2][0]} 0 0 1 ${w[2][1]}`,E=`v${u[1]+s[1]-n} a${w[3][0]} 0 0 1 ${w[3][1]}`;if(o){let I=function(ve){let ue=Tp([s,a,l,u][ve]);return ve===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:ve===1?[[e+r-a[0]+ue,t+a[1]-ue],[e+r,t+a[1]]]:ve===2?[[e+r-l[0]+ue,t+n-l[1]+ue],[e+r-l[0],t+n]]:[[e+u[0]-ue,t+n-u[1]+ue],[e,t+n-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 N="",W=I(T),z=`M${W[0]} A${w[(T+3)%4][0]} 0 0 1 ${W[1]}`,Z=0;for(;Z<4&&o[(T+Z)%4];Z++)N+=z+" ",z=[_,O,x,E][(T+Z)%4];let de=(T+Z)%4;N+=z.split(" ")[0];let we=I(de);return N+=` A${w[(de+3)%4][0]} 0 0 1 ${we[0]}`,N}return`M${e+s[0]},${t} ${_} ${O} ${x} ${E}`}function Yu(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Xu({id:e,currentClipPathId:t,borderPath:r,borderType:n,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[R("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},R(n,{x:i,y:o,width:s,height:a,d:r||void 0})),f]}function en({left:e,top:t,width:r,height:n,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Yu(u[f],u[(f+3)%4],a);)f=(f+3)%4;let d=[!1,!1,!1,!1],m=[];for(let h=0;h<4;h++){let g=(f+h)%4,v=(f+h+1)%4,w=u[g],_=u[v];if(d[g]=!0,m=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Yu(w,_,a)){let O=(m[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);O&&(l+=R("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":O*2,"stroke-dasharray":!o&&m[1]==="dashed"?O*2+" "+O:void 0,d:Xt({left:e,top:t,width:r,height:n},a,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let h=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);h&&(l+=R("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":h*2,"stroke-dasharray":!o&&m[1]==="dashed"?h*2+" "+h:void 0,d:Xt({left:e,top:t,width:r,height:n},a,d)}))}return l}function wo({id:e,left:t,top:r,width:n,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),d=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+l,width:n-u-f,height:i-l-d};return R("mask",{id:e},R("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+en({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var Po=require("css-to-react-native");var To={left:0,"x-start":0,center:.5,right:1,"x-end":1},Eo={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function Rt(e){return Math.round(e*1e3)/1e3}function Ku(e,t,r,n){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=$t(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=ko(Qu(a[2]),t,r,n),f=l,d=`M${Rt(l[0])},${Rt(l[1])}`;for(let m of o){let h=Qu(m),g=h.shift();if(g==="close"){if(h.length)throw new Error("Invalid `close` command in `shape()`.");d+=" Z",l=f;continue}if(g==="move"||g==="line"){let v=So(h,l,t,r,n);d+=` ${g==="move"?"M":"L"}${Rt(v[0])},${Rt(v[1])}`,l=v,g==="move"&&(f=v);continue}if(g==="hline"||g==="vline"){let v=g==="hline"?0:1,w=h.shift(),_=h.shift();if(w!=="to"&&w!=="by"||!_||h.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let O=v===0?t:r,x=v===0?To:Eo,E=w==="to"&&_ in x?x[_]*O:Qt(_,O,n);l=[...l],l[v]=w==="by"?l[v]+E:E,d+=` ${v===0?"H":"V"}${Rt(l[v])}`;continue}if(g==="curve"||g==="smooth"){let v=h.indexOf("with"),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v+1),O=w[0],x=So(w,l,t,r,n);if(g==="curve"&&v===-1)throw new Error("A `curve` command requires a control point.");let E=kp(_).map(T=>Pp(T,l,x,t,r,n));if(g==="curve")if(E.length===1)d+=` Q${qt(E[0])} ${qt(x)}`;else if(E.length===2)d+=` C${qt(E[0])} ${qt(E[1])} ${qt(x)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!E.length)d+=` T${qt(x)}`;else if(E.length===1)d+=` S${qt(E[0])} ${qt(x)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=x;continue}if(g==="arc"){let v=h.findIndex(W=>["of","cw","ccw","large","small","rotate"].includes(W)),w=v===-1?h:h.slice(0,v),_=v===-1?[]:h.slice(v),O=So(w,l,t,r,n),x=0,E=0,T=0,I=0,N=0;for(let W=0;W<_.length;W++){let z=_[W];if(z==="of"){let Z=_[++W];if(!Z)throw new Error("Invalid `arc` radius in `shape()`.");let de=_[W+1],we=de&&!["cw","ccw","large","small","rotate"].includes(de);if(we&&W++,we)x=Qt(Z,t,n),E=Qt(de,r,n);else{let ve=Math.sqrt(t*t+r*r)/Math.sqrt(2);x=E=Qt(Z,ve,n)}}else if(z==="cw"||z==="ccw")N=z==="cw"?1:0;else if(z==="large"||z==="small")I=z==="large"?1:0;else if(z==="rotate"){let Z=_[++W];if(!Z)throw new Error("Invalid `arc` rotation in `shape()`.");let de=ar(Z);if(typeof de>"u")throw new Error("Invalid `arc` rotation in `shape()`.");T=de}else throw new Error("Invalid `arc` option in `shape()`.")}d+=` A${Rt(Math.abs(x))},${Rt(Math.abs(E))} ${Rt(T)} ${I} ${N} ${qt(O)}`,l=O;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d,"fill-rule":u}}function Qu(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function kp(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function So(e,t,r,n,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=ko(e.slice(1),r,n,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function Pp(e,t,r,n,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=ko(a,n,i,o,!0);return u==="start"||!u&&!Op(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[r[0]+l[0],r[1]+l[1]]:l}function ko(e,t,r,n,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!_o(f)){let d=Qt(f,t,n);o=l==="left"||l==="x-start"?d:t-d,u++}else o=To[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!_o(f)){let d=Qt(f,r,n);s=l==="top"||l==="y-start"?d:r-d,u++}else s=Eo[l]*r}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=r/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=Qt(l,t,n);else if(s===void 0)s=Qt(l,r,n);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=r/2),[o??(i?0:t/2),s??(i?0:r/2)]}function _o(e){return e in To||e in Eo}function Op(e){return e.some(_o)}function Qt(e,t,r){let n=V(e,r.fontSize,t,r,!0);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return n}function qt(e){return`${Rt(e[0])},${Rt(e[1])}`}var Ar={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function el({width:e,height:t},r,n){function i(f){let d=f.match(Ar.circle);if(!d)return null;let[,m]=d,[h,g=""]=m.split("at").map(_=>_.trim()),{x:v,y:w}=Zu(g,e,t);return{type:"circle",r:V(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:V(v,n.fontSize,e,n,!0),cy:V(w,n.fontSize,t,n,!0)}}function o(f){let d=f.match(Ar.ellipse);if(!d)return null;let[,m]=d,[h,g=""]=m.split("at").map(x=>x.trim()),[v,w]=h.split(" "),{x:_,y:O}=Zu(g,e,t);return{type:"ellipse",rx:V(v||"50%",n.fontSize,e,n,!0),ry:V(w||"50%",n.fontSize,t,n,!0),cx:V(_,n.fontSize,e,n,!0),cy:V(O,n.fontSize,t,n,!0)}}function s(f){let d=f.match(Ar.path);if(!d)return null;let[m,h]=Ju(d[1]);return{type:"path",d:h,"fill-rule":m}}function a(f){let d=f.match(Ar.polygon);if(!d)return null;let[m,h]=Ju(d[1]);return{type:"polygon","fill-rule":m,points:h.split(",").map(g=>g.split(" ").map((v,w)=>V(v,n.fontSize,w===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let d=f.match(Ar.inset);if(!d)return null;let[m,h]=(d[1].includes("round")?d[1]:`${d[1].trim()} round 0`).split("round"),g=(0,Po.getStylesForProperty)("borderRadius",h,!0),v=Object.values(g).map(T=>String(T)).map((T,I)=>V(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),w=Object.values((0,Po.getStylesForProperty)("margin",m,!0)).map(T=>String(T)).map((T,I)=>V(T,n.fontSize,I===0||I===2?t:e,n,!0)||0),_=w[3],O=w[0],x=e-(w[1]+w[3]),E=t-(w[0]+w[2]);return v.some(T=>T>0)?{type:"path",d:Xt({left:_,top:O,width:x,height:E},{...r,...g})}:{type:"rect",x:_,y:O,width:x,height:E}}function l(f){return Ar.shape.test(f)?Ku(f,e,t,n):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function Ju(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function Zu(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=r:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=r/2)}),i}function gi(e){return`satori_cp-${e}`}function tl(e){return`url(#${gi(e)})`}function rl(e,t,r){if(t.clipPath==="none")return"";let n=el(e,t,r),i=t.clipPath,o={type:""};for(let s of Object.keys(n))if(o=n[s](i),o)break;if(o){let{type:s,...a}=o;return R("clipPath",{id:gi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},R(s,a))}return""}function Oo({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let d="",m=l.clipPath&&l.clipPath!=="none"?rl({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)d="";else{let g=m?`satori_ocp-${s}`:gi(s);d=R("clipPath",{id:g,"clip-path":a},R(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let h=wo({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},l);return m+d+h}var Ip=e=>`satori_mi-${e}`;async function Io(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=Ip(a),d="";for(let m=0;m<l;m++){let h=u[m],[g,v]=await Zr({id:`${f}-${m}`,left:n,top:i,width:o,height:s},h,r,"mask");d+=v+R("rect",{x:n,y:i,width:o,height:s,fill:`url(#${g})`})}return d=R("mask",{id:f},d),[f,d]}function nl({id:e,left:t,top:r,width:n,height:i,path:o,type:s,matrix:a,currentClipPath:u,mask:l,filters:f}){if(!f.length)return["",""];let d=`satori_bf-${e}`,m=`satori_bfc-${e}`,h=Rp(f),g="BackgroundImage",v="";f.forEach((O,x)=>{let E=`${d}-${x}`;v+=Ap(O,g,E),g=E});let w=R("filter",{id:d,x:t-h.left,y:r-h.top,width:n+h.left+h.right,height:i+h.top+h.bottom,filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},v)+R("clipPath",{id:m,"clip-path":u},R(s,{x:t,y:r,width:n,height:i,d:o||void 0,transform:a||void 0})),_=R(s,{x:t,y:r,width:n,height:i,d:o||void 0,fill:"#000",transform:a||void 0,filter:`url(#${d})`,"clip-path":`url(#${m})`,mask:l});return[w,_]}function Ap(e,t,r){if(e.type==="blur")return R("feGaussianBlur",{in:t,stdDeviation:e.value,result:r});if(e.type==="hue-rotate")return R("feColorMatrix",{in:t,type:"hueRotate",values:e.value,result:r});if(e.type==="saturate"||e.type==="grayscale")return R("feColorMatrix",{in:t,type:"saturate",values:e.type==="grayscale"?1-e.value:e.value,result:r});if(e.type==="sepia"){let s=e.value,a=1-s;return R("feColorMatrix",{in:t,type:"matrix",values:[a+.393*s,.769*s,.189*s,0,0,.349*s,a+.686*s,.168*s,0,0,.272*s,.534*s,a+.131*s,0,0,0,0,0,1,0].join(" "),result:r})}if(e.type==="drop-shadow"){let s=`${r}-input`;return R("feComposite",{in:t,in2:"SourceAlpha",operator:"in",result:s})+R("feDropShadow",{in:s,dx:e.offsetX,dy:e.offsetY,stdDeviation:e.blurRadius,"flood-color":e.color,result:r})}let n=e.value,i=e.type==="brightness"?{slope:n}:e.type==="contrast"?{slope:n,intercept:.5-.5*n}:e.type==="invert"?{slope:1-2*n,intercept:n}:{slope:n},o=e.type==="opacity"?["A"]:["R","G","B"];return R("feComponentTransfer",{in:t,result:r},o.map(s=>R(`feFunc${s}`,{type:"linear",...i})).join(""))}function Rp(e){let t=0,r=0,n=0,i=0;for(let o of e)if(o.type==="blur"){let s=o.value*3;t=Math.max(t,s),r=Math.max(r,s),n=Math.max(n,s),i=Math.max(i,s)}else if(o.type==="drop-shadow"){let s=o.blurRadius*3;t=Math.max(t,s-o.offsetX),r=Math.max(r,s-o.offsetY),n=Math.max(n,s+o.offsetX),i=Math.max(i,s+o.offsetY)}return{left:t,top:r,right:n,bottom:i}}function Cp(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],l=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new Tt(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function tn({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,d="rect",m="",h="",g=[],v=1,w="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(v=+u.opacity),u.transform&&(m=Jr({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let te=[];for(let J=0;J<u.backgroundImage.length;J++){let ot=u.backgroundImage[J],He=await Zr({id:e+"_"+J,width:n,height:i,left:t,top:r},ot,l);He&&te.unshift(He)}for(let J of te)g.push(`url(#${J[0]})`),h+=J[1],J[2]&&(_+=J[2])}let[O,x]=await Io({id:e,left:t,top:r,width:n,height:i},u,l);h+=x;let E=O?`url(#${O})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,T=Xt({left:t,top:r,width:n,height:i},u);T&&(d="path");let I=u._inheritedClipPathId;a&&(w=R("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:N,filter:W}=u,z=N==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?tl(e):void 0,Z=Oo({left:t,top:r,width:n,height:i,path:T,id:e,matrix:m,currentClipPath:z,src:s},u,l),[de,we]=nl({id:e,left:t,top:r,width:n,height:i,path:T,type:d,matrix:m||void 0,currentClipPath:z,mask:E,filters:u._backdropFilters||[]});h+=de;let ve=g.map(te=>R(d,{x:t,y:r,width:n,height:i,fill:te,d:T||void 0,transform:m||void 0,"clip-path":u.transform?void 0:z,style:W?`filter:${W}`:void 0,mask:u.transform?void 0:E})).join(""),ue=Xu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:I,borderPath:T,borderType:d},u),Se;if(f){let te=(u.borderLeftWidth||0)+(u.paddingLeft||0),J=(u.borderTopWidth||0)+(u.paddingTop||0),ot=(u.borderRightWidth||0)+(u.paddingRight||0),He=(u.borderBottomWidth||0)+(u.paddingBottom||0),ye=n-te-ot,Re=i-J-He,Ze=(u.objectPosition||"center").toString(),[le,X]=Cp(Ze,ye,Re),ee=u.__naturalWidth||ye,me=u.__naturalHeight||Re,G,_e=ye,Ie=Re,Ye=t+te,Be=r+J;if(u.objectFit==="contain"){let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else if(u.objectFit==="cover"){let pe=ye/ee,Ue=Re/me,Ce=Math.max(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else if(u.objectFit==="fill")G="none";else if(u.objectFit==="scale-down")if(ee&&me){let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);if(Ce>=1)_e=ee,Ie=me,G="none",Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re;else{let et=Ce;_e=ee*et,Ie=me*et,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}}else{let pe=ye/ee,Ue=Re/me,Ce=Math.min(pe,Ue);_e=ee*Ce,Ie=me*Ce,Ye=t+te+le-_e*le/ye,Be=r+J+X-Ie*X/Re,G="none"}else G="none";u.transform&&(Se=Hu({id:e,borderRadiusPath:T,borderType:d,left:t,top:r,width:n,height:i},u)),ve+=R("image",{x:Ye,y:Be,width:_e,height:Ie,href:s,preserveAspectRatio:G,transform:m||void 0,style:W?`filter:${W}`:void 0,"clip-path":u.transform?Se?`url(#${Se[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:O?`url(#${O})`:`url(#satori_om-${e})`})}if(ue){h+=ue[0];let te=ue[1];ve+=en({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${te})`}},u)}let Me=Nu({width:n,height:i,id:e,opacity:v,shape:R(d,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:T||void 0,transform:m||void 0,"clip-path":z,mask:E})},u);return(h?R("defs",{},h):"")+(Me?Me[0]:"")+(Se?Se[0]:"")+Z+(v!==1?`<g opacity="${v}">`:"")+(u.transform&&(z||E)?`<g${z?` clip-path="${z}"`:""}${E?` mask="${E}"`:""}>`:"")+we+(_||ve)+(u.transform&&(z||E)?"</g>":"")+(v!==1?"</g>":"")+(Me?Me[1]:"")+w}var ol=String.raw,il=ol`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,sl=()=>new RegExp(ol`\p{RI}{2}|(?)${il}(?:\u200D${il})*`,"gu");var Lp=new RegExp(sl(),"u"),Ao={emoji:Lp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Ro={"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},bi=Object.keys({...Ro,...Ao});function al(e){return bi.includes(e)}function ul(e,t){for(let n of Object.keys(Ao))if(Ao[n].test(e))return[n];let r=Object.keys(Ro).filter(n=>Ro[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function ll(e){if(e)return bi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*rn(e,t){var le;let r=await Yt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Sr(e)||Fa(e.type)){let X;if(!Sr(e))X=bo(String(e),t),yield(await X.next()).value;else{if(Na(e.type))throw new Error("Class component is not supported.");let me;zi(e.type)?me=e.type.render:me=e.type,X=rn(await me(e.props),t),yield(await X.next()).value}await X.next();let ee=yield;return(await X.next(ee)).value}let{type:h,props:g}=e,v=h;if(g&&Wa(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:w,children:_,tw:O,lang:x=u}=g||{},E=ll(x);if(O){let X=m(O,w);w=Object.assign(X,w)}let T=r.Node.create();o.insertChild(T,o.getChildCount());let[I,N]=await uo(T,v,i,w,g),W=I.transform===i.transform;if(W||(I.transform.__parent=i.transform),(I.overflow==="hidden"||I.clipPath&&I.clipPath!=="none")&&(N._inheritedClipPathId=`satori_cp-${n}`,N._inheritedMaskId=`satori_om-${n}`),I.maskImage&&(N._inheritedMaskId=`satori_mi-${n}`),I.backgroundClip==="text"){let X={value:""};N._inheritedBackgroundClipTextPath=X,I._inheritedBackgroundClipTextPath=X,I.backgroundImage&&(N._inheritedBackgroundClipTextHasBackground="true",I._inheritedBackgroundClipTextHasBackground="true")}let z=Da(_),Z=[],de=0,we=[];for(let X of z){let ee=rn(X,{id:n+"-"+de++,parentStyle:I,inheritedStyle:N,isInheritingTransform:!0,parent:T,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:d,locale:E,getTwStyles:m,onNodeDetected:t.onNodeDetected});d?we.push(...(await ee.next()).value||[]):await ee.next(),Z.push(ee)}yield we;for(let X of Z)await X.next();let[ve,ue]=yield,{left:Se,top:Me,width:te,height:J}=T.getComputedLayout();Se+=ve,Me+=ue;let ot="",He="",ye="",{children:Re,...Ze}=g;if((le=t.onNodeDetected)==null||le.call(t,{left:Se,top:Me,width:te,height:J,type:v,props:Ze,key:e.key,textContent:Sr(Re)?void 0:Re}),v==="img"){let X=I.__src;He=await tn({id:n,left:Se,top:Me,width:te,height:J,src:X,isInheritingTransform:W,debug:a},I,N)}else if(v==="svg"){let X=I.color,ee=await mu(e,X);He=await tn({id:n,left:Se,top:Me,width:te,height:J,src:ee,isInheritingTransform:W,debug:a},I,N)}else{let X=w==null?void 0:w.display;if(v==="div"&&_&&typeof _!="string"&&X!=="flex"&&X!=="none"&&X!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');He=await tn({id:n,left:Se,top:Me,width:te,height:J,isInheritingTransform:W,debug:a},I,N)}for(let X of Z)ot+=(await X.next([Se,Me])).value;return I._inheritedBackgroundClipTextPath&&(ye+=R("clipPath",{id:`satori_bct-${n}`,"clip-path":I._inheritedClipPathId?`url(#${I._inheritedClipPathId})`:void 0},I._inheritedBackgroundClipTextPath.value)),ye+He+ot}var Rr=_t(require("@shuding/opentype.js"),1);var fl="unknown";function Mp(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=Np(o,l);t.push({from:a,to:f}),a=f}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function Np(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function Fp(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=Mp(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=n+u/2,f=new Set;for(let x=0;x<a;x++){let E=l+u*x,T=[];for(let I of o){let[N,W]=I.from,[z,Z]=I.to;if(W===Z)continue;let de=Math.min(W,Z),we=Math.max(W,Z);if(E<de||E>=we)continue;let ve=(E-W)/(Z-W),ue=N+(z-N)*ve;T.push(ue)}if(T.length){T.sort((I,N)=>I-N);for(let I=0;I<T.length-1;I+=2){let N=Math.min(T[I],T[I+1]),W=Math.max(T[I],T[I+1]),z=Math.floor(N),Z=Math.ceil(W);for(let de=z;de<Z;de++)f.add(de)}}}if(!f.size)return[];let d=Array.from(f.values()).sort((x,E)=>x-E),m=[],h=d[0],g=d[0];for(let x=1;x<d.length;x++){let E=d[x];E>g+1&&(m.push([h,g+1]),h=E),g=E}m.push([h,g+1]);let v=[],w=r*.6,_=m[0][0],O=m[m.length-1][1];for(let[x,E]of m){let T=Math.min(x,_)-w,I=Math.max(E,O)+w;v.push({x1:T,x2:I,y1:n,y2:i})}return v}function Wp(e,t,[r,n],[i,o]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==o){if(n===t)return-1;if(o===t)return 1}return-1}var Co=new WeakMap,nn=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:r,style:n}){if(!this.fonts.has(t))return null;r==="normal"&&(r=400),r==="bold"&&(r=700),typeof r=="string"&&(r=Number.parseInt(r,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,l,f]=i[s];Wp(r,n,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!al(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${bi.join(", ")}.`);let s=o??fl,a;if(Co.has(i))a=Co.get(i);else{a=Rr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let l=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let d=l.call(a,f);return d===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),d},Co.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${n.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,r.weight,r.style])}}getEngine(t=16,r="normal",{fontFamily:n="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.");n=(Array.isArray(n)?n:[n]).map(x=>x.toLowerCase());let a=[];n.forEach(x=>{let E=this.get({name:x,weight:i,style:o});if(E){a.push(E);return}let T=this.get({name:x+"_unknown",weight:i,style:o});if(T){a.push(T);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let x of u)if(!n.includes(x))if(s){let E=Dp(x);E?E===s?l.push(this.get({name:x,weight:i,style:o})):f.push(this.get({name:x,weight:i,style:o})):d.push(this.get({name:x,weight:i,style:o}))}else d.push(this.get({name:x,weight:i,style:o}));let m=new Map,h=(x,E=!0)=>{let T=[...a,...d,...l,...E?f:[]];if(typeof x>"u")return E?T[T.length-1]:void 0;let I=x.charCodeAt(0);if(m.has(I))return m.get(I);let N=T.find((W,z)=>!!W.charToGlyphIndex(x)||E&&z===T.length-1);return N&&m.set(I,N),N},g=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoAscender:0)||x.ascender)/x.unitsPerEm*t},v=(x,E=!1)=>{var I,N;return((E?(N=(I=x.tables)==null?void 0:I.os2)==null?void 0:N.sTypoDescender:0)||x.descender)/x.unitsPerEm*t},w=(x,E=!1)=>{var T,I;if(typeof r=="string"&&r==="normal"){let N=(E?(I=(T=x.tables)==null?void 0:T.os2)==null?void 0:I.sTypoLineGap:0)||0;return g(x,E)-v(x,E)+N/x.unitsPerEm*t}else if(typeof r=="number")return t*r},_=x=>h(x,!1);return{has:x=>{if(x===`
|
|
7
|
-
`)return!0;let E=_(x);return E?(E._trackBrokenChars=[],E.stringToGlyphs(x),E._trackBrokenChars.length?(E._trackBrokenChars=void 0,!1):!0):!1},baseline:(x,E=typeof x>"u"?a[0]:h(x))=>{let T=g(E),I=v(E),N=T-I;return T+(w(E)-N)/2},height:(x,E=typeof x>"u"?a[0]:h(x))=>w(E),measure:(x,E)=>this.measure(h,x,E),getSVG:(x,E,T)=>this.getSVG(h,x,E,T)}}patchFontFallbackResolver(t,r){let n=[];t._trackBrokenChars=n;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 l=n.shift(),f=r(l);if(f!==t){let d=f.charToGlyph(l),m=t.unitsPerEm/f.unitsPerEm,h=new Rr.default.Path;h.unitsPerEm=t.unitsPerEm,h.commands=d.path.commands.map(v=>{let w={...v};for(let _ in w)typeof w[_]=="number"&&(w[_]*=m);return w});let g=new Rr.default.Glyph({...d,advanceWidth:d.advanceWidth*m,xMin:d.xMin*m,xMax:d.xMax*m,yMin:d.yMin*m,yMax:d.yMax*m,path:h});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,r,{fontSize:n,letterSpacing:i=0}){let o=t(r),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(r,n,{letterSpacing:i/n})}finally{s()}}getSVG(t,r,{fontSize:n,top:i,left:o,letterSpacing:s=0},a){let u=t(r),l=this.patchFontFallbackResolver(u,t);try{if(n===0)return{path:"",boxes:[]};let f=new Rr.default.Path,d=[],m={letterSpacing:s/n},h=new WeakMap;return u.forEachGlyph(r.replace(/\n/g,""),o,i,n,m,function(g,v,w,_){let O;if(!h.has(g))O=g.getPath(v,w,_,m),h.set(g,[v,w,O]);else{let[E,T,I]=h.get(g);O=new Rr.default.Path,O.commands=I.commands.map(N=>{let W={...N};for(let z in W)typeof W[z]=="number"&&((z==="x"||z==="x1"||z==="x2")&&(W[z]+=v-E),(z==="y"||z==="y1"||z==="y2")&&(W[z]+=w-T));return W})}let x=a?Fp(O.commands,a):[];x.length&&d.push(...x),f.extend(O)}),{path:f.toPathData(1),boxes:d}}finally{l()}}};function Dp(e){let t=e.split("_"),r=t[t.length-1];return r===fl?void 0:r}function Lo({width:e,height:t,content:r}){return R("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg","enable-background":r.includes('in="BackgroundImage"')?"new":void 0},r)}var Gc=_t(wc());var Tv=["ios","android","windows","macos","web"];function _c(e){return Tv.includes(e)}var Ev=["portrait","landscape"];function Tc(e){return Ev.includes(e)}var Sc;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Sc||(Sc={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function oa(e){return typeof e=="string"}function sa(e){return typeof e=="object"}var aa;function k(e){return{kind:"complete",style:e}}function We(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=We(o),u=We(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,se.none];switch(i==null?void 0:i[1]){case"rem":return[n,se.rem];case"px":return[n,se.px];case"em":return[n,se.em];case"%":return[n,se.percent];case"vw":return[n,se.vw];case"vh":return[n,se.vh];default:return null}}function jt(e,t,r={}){let n=Lt(t,r);return n===null?null:k({[e]:n})}function Ni(e,t,r){let n=Lt(t);return n!==null&&(r[e]=n),r}function kc(e,t){let r=Lt(t);return r===null?null:{[e]:r}}function Lt(e,t={}){if(e===void 0)return null;let r=We(String(e),t);return r?er(...r,t):null}function er(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case se.rem:return e*16*(n?-1:1);case se.px:return e*(n?-1:1);case se.percent:return`${n?"-":""}${e}%`;case se.none:return e*(n?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ua(e){let t=We(e);if(!t)return null;let[r,n]=t;switch(n){case se.rem:return r*16;case se.px:return r;default:return null}}var kv={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function la(e){return kv[e??""]||"All"}function fa(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=la(i),"")),t]}function mr(e,t={}){if(e.includes("/")){let r=Ec(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),Ec(e,t)}function mt(e,t,r={}){let n=mr(t,r);return n===null?null:k({[e]:n})}function Ec(e,t={}){if(e==="px")return 1;let r=We(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=se.percent,n*=100),i===se.none&&(n=n/4,i=se.rem),er(n,i,t)}function Pv(...e){console.warn(...e)}function Ov(...e){}var Je=typeof process>"u"||((aa=process==null?void 0:process.env)===null||aa===void 0?void 0:aa.JEST_WORKER_ID)===void 0?Pv:Ov;var Iv=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Nn("oldstyle-nums")],["small-caps",Nn("small-caps")],["lining-nums",Nn("lining-nums")],["tabular-nums",Nn("tabular-nums")],["proportional-nums",Nn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ca=Iv;function Nn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Fn=class{constructor(t){this.ir=new Map(ca),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ca,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,r){this.styles.set(t,r)}getIr(t){return this.ir.get(t)}setIr(t,r){this.ir.set(t,r)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,r){this.prefixes.set(t,r)}};function da(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return mt("fontSize",e,r);if(typeof n=="string")return jt("fontSize",n);let i={},[o,s]=n,a=kc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Ni("lineHeight",Pc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Ni("lineHeight",Pc(u,i),i),l&&Ni("letterSpacing",l,i),k(i)}function Pc(e,t){let r=We(e);if(r){let[n,i]=r;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function pa(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=We(n);if(!i)return null;let[o,s]=i;if(s===se.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=er(o,s);return a!==null?k({lineHeight:a}):null}function ha(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let l=i==null?void 0:i[n];if(l)o=l;else{let f=mr(n);return f&&typeof f=="number"?Oc(f,se.px,t,e):null}}if(o==="auto")return Ic(t,e,"auto");let s=We(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),Oc(a,u,t,e)}function Oc(e,t,r,n){let i=er(e,t);return i===null?null:Ic(r,n,i)}function Ic(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function ma(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,l=u.min?ua(u.min):0;l===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?ua(u.max):1/0;return f===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let n=0;return r.forEach(i=>i[2]=n++),t}function ga(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return k({fontFamily:r});let n=r[0];return n?k({fontFamily:n}):null}function gr(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Cc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=Ac(i,o/100),k({[Fi[e].color]:i})}return{kind:"dependent",complete(o){let s=Fi[e].opacity,a=o[s];typeof a=="number"&&(i=Ac(i,a)),o[Fi[e].color]=i}}}function Wn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Fi[e].opacity]:n}}}function Ac(e,t){return e.startsWith("#")?e=Av(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Rc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Fi={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 Av(e){let t=e;e=e.replace(Rv,(s,a,u,l)=>a+a+u+u+l+l);let r=Cv.exec(e);if(!r)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),o=parseInt(r[3],16);return`rgba(${n}, ${i}, ${o}, 1)`}function Cc(e,t){let r=t[e];if(oa(r))return r;if(sa(r)&&oa(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(sa(o))return Cc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var Rv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Cv=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function Mc(e,t){let[r,n]=fa(e);if(r.match(/^(-?(\d)+)?$/))return Lv(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return k({borderStyle:r});let o="border";switch(n){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=gr(o,r,t==null?void 0:t.borderColor);if(s)return s;let a=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let u=r.slice(1,-1),l=mt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function Lv(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let i=r[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return jt(o,i)}function Nc(e,t){if(!t)return null;let[r,n]=fa(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return Lc(jt(i,o));let s=mt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:Lc(s)}function Lc(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 r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,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 Fr(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=n==null?void 0:n[t];if(o){let a=Lt(o,{isNegative:r});if(a!==null)return Fc(e,i,a)}let s=mr(t,{isNegative:r});return s!==null?Fc(e,i,s):null}function Fc(e,t,r){if(e!=="inset")return k({[e]:r});switch(t){case null:return k({top:r,left:r,right:r,bottom:r});case"y":return k({top:r,bottom:r});case"x":return k({left:r,right:r})}}function Dn(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((n=r==null?void 0:r[i])!==null&&n!==void 0?n:t);return Number.isNaN(o)?null:k({[`flex${e}`]:o})}function Wc(e,t){var r,n;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Lt((r=i[2])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Lt((n=i[3])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function ba(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?jt(e,i,r):mt(e,t,r)}function $n(e,t,r={},n){let i=Lt(n==null?void 0:n[t],r);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),mt(e,t,r))}function Dc(e,t,r){let n=r==null?void 0:r[e];if(n){let i=We(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return Mv(o);if(s===se.percent)return Je("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=er(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return mt("letterSpacing",e,{isNegative:t})}function Mv(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function $c(e,t){let r=t==null?void 0:t[e];if(r){let i=We(String(r));if(i)return k({opacity:i[0]})}let n=We(e);return n?k({opacity:n[0]/100}):null}function Bc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Uc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=va(r),o=va(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=va(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function va(e){let t=mr(e);return typeof t=="number"?t:null}var Wr=class{constructor(t,r={},n,i,o){var s,a,u,l,f,d;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let m=t.trim().split(":"),h=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",h=m),this.char=this.string[0];let g=ma((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let v of h)if(g[v]){let w=(u=g[v])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let _=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(_){let[O,x]=(d=g[v])!==null&&d!==void 0?d:[0,0];(_<=O||_>x)&&(this.isNull=!0)}else this.isNull=!0}else _c(v)?this.isNull=v!==o:Tc(v)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==v?this.isNull=!0:this.incrementOrder():this.isNull=!0:v==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:v==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(v)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,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 l=this.char==="m"?"margin":"padding";this.advance(((r=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+1);let f=la(u[1]),d=ha(l,f,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(a=ba("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=ba("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=$n("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=$n("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=$n("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=$n("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=pa(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=da(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=gr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Wn("text",this.rest),a))||this.consumePeeked("font-")&&(a=ga(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=jt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=gr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=gr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Wn("bg",this.rest),a))||this.consumePeeked("border")&&(a=Mc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Wn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Nc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Fr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Fr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Fr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Fr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Fr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Wc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Dn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Dn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Wn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Bc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Uc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=mt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=gr("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=$c(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Dc(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 k({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var r;if(t[0]!=="m")return!1;let n=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!n)return!1;if(!(!((r=this.context.device)===null||r===void 0)&&r.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=n,u=s==="w"?i.width:i.height,l=We(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="px"&&(this.isNull=!0),(o==="min"?u>=f:u<=f)?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,r){return this.string.slice(this.position+t,this.position+r)}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 qc(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,...ya(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(ya)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?ya(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(Nv),r]}function ya(e){return e.trim().split(/\s+/)}function Nv(e,t,r){return r.indexOf(e)===t}function zc(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...Fv(n.handler)}),{}))!==null&&t!==void 0?t:{}}function Fv(e){let t={};return e({addUtilities:r=>{t=r},...Wv}),t}function Mt(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Wv={addComponents:Mt,addBase:Mt,addVariant:Mt,e:Mt,prefix:Mt,theme:Mt,variants:Mt,config:Mt,corePlugins:Mt,matchUtilities:Mt,postcss:null};function jc(e,t){let r=(0,Gc.default)(Dv(e)),n={},i=zc(r.plugins),o={},s=Object.entries(i).map(([g,v])=>typeof v=="string"?(o[g]=v,[g,{kind:"null"}]):[g,k(v)]).filter(([,g])=>g.kind!=="null");function a(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let g=l[u];if(g)return g;let v=new Fn(s);return l[u]=v,v}function d(...g){let v=f(),w={},_=[],O=[],[x,E]=qc(g),T=x.join(" "),I=v.getStyle(T);if(I)return{...I,...E||{}};for(let N of x){let W=v.getIr(N);if(!W&&N in o){let Z=d(o[N]);v.setIr(N,k(Z)),w={...w,...Z};continue}switch(W=new Wr(N,r,v,n,t).parse(),W.kind){case"complete":w={...w,...W.style},v.setIr(N,W);break;case"dependent":_.push(W);break;case"ordered":O.push(W);break;case"null":v.setIr(N,W);break}}if(O.length>0){O.sort((N,W)=>N.order-W.order);for(let N of O)switch(N.styleIr.kind){case"complete":w={...w,...N.styleIr.style};break;case"dependent":_.push(N.styleIr);break}}if(_.length>0){for(let N of _){let W=N.complete(w);W&&Je(W)}Rc(w)}return T!==""&&v.setStyle(T,w),E&&(w={...w,...E}),w}function m(g){let v=d(g.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof v.backgroundColor=="string"?v.backgroundColor:void 0}let h=(g,...v)=>{let w="";return g.forEach((_,O)=>{var x;w+=_+((x=v[O])!==null&&x!==void 0?x:"")}),d(w)};return h.style=d,h.color=m,h.prefixMatch=(...g)=>{let v=g.sort().join(":"),w=f(),_=w.getPrefixMatch(v);if(_!==void 0)return _;let E=new Wr(`${v}:flex`,r,w,n,t).parse().kind!=="null";return w.setPrefixMatch(v,E),E},h.setWindowDimensions=g=>{n.windowDimensions=g,u=a()},h.setFontScale=g=>{n.fontScale=g,u=a()},h.setPixelDensity=g=>{n.pixelDensity=g,u=a()},h.setColorScheme=g=>{n.colorScheme=g,u=a()},h}function Dv(e){return{...e,content:["_no_warnings_please"]}}var Bv={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 Uv(e){return jc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Bv]},"web")}var Wi;function xa({width:e,height:t,config:r}){return Wi||(Wi=Uv(r)),Wi.setWindowDimensions({width:+e,height:+t}),Wi}var wa=new WeakMap;async function Sa(e,t){let r=await Yt();if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;wa.has(t.fonts)?n=wa.get(t.fonts):wa.set(t.fonts,n=new nn(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=qv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),Yr.clear(),await hu(e);let l=rn(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:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(g,v)=>{let _={...xa({width:i,height:o,config:t.tailwindConfig})([g])};return typeof _.lineHeight=="number"&&(_.lineHeight=_.lineHeight/(+_.fontSize||v.fontSize||16)),_.shadowColor&&_.boxShadow&&(_.boxShadow=_.boxShadow.replace(/rgba?\([^)]+\)/,_.shadowColor)),_}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let g=zv(f),v=[],w={};await Promise.all(Object.entries(g).flatMap(([_,O])=>O.map(x=>{let E=`${_}_${x}`;return u.has(E)?null:(u.add(E),t.loadAdditionalAsset(_,x).then(T=>{typeof T=="string"?w[x]=T:T&&(Array.isArray(T)?v.push(...T):v.push(T))}))}))),n.addFonts(v),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let d=(await l.next([0,0])).value,m=s.getComputedWidth(),h=s.getComputedHeight();return s.freeRecursive(),Lo({width:m,height:h,content:d})}function qv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function zv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=ul(n,i).join("|");r[o]=r[o]||"",r[o]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...Vc(je(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=Vc(je(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function Vc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
1
|
+
var ad=Object.create;var Vn=Object.defineProperty;var ud=Object.getOwnPropertyDescriptor;var ld=Object.getOwnPropertyNames;var fd=Object.getPrototypeOf,cd=Object.prototype.hasOwnProperty;var ur=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jr=(e,t)=>{for(var r in t)Vn(e,r,{get:t[r],enumerable:!0})},La=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ld(t))!cd.call(e,i)&&i!==r&&Vn(e,i,{get:()=>t[i],enumerable:!(n=ud(t,i))||n.enumerable});return e};var ct=(e,t,r)=>(r=e!=null?ad(fd(e)):{},La(t||!e||!e.__esModule?Vn(r,"default",{value:e,enumerable:!0}):r,e)),Vr=e=>La(Vn({},"__esModule",{value:!0}),e);var Vt,Xa,Qa,Xr,Vi,Ht,Er,Td,Xn,Hi,kr,Pr,Yi,Ka,Xi,Qi,St,Ki,Ed,Ja,Qn=ur(()=>{Vt=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}({}),Xa=function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e}({}),Qa=function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e}({}),Xr=function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e}({}),Vi=function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e}({}),Ht=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}({}),Er=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}({}),Td=function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e}({}),Xn=function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e}({}),Hi=function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e}({}),kr=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}({}),Pr=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}({}),Yi=function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e}({}),Ka=function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e}({}),Xi=function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e}({}),Qi=function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e}({}),St=function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e}({}),Ki=function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e}({}),Ed={ALIGN_AUTO:Vt.Auto,ALIGN_FLEX_START:Vt.FlexStart,ALIGN_CENTER:Vt.Center,ALIGN_FLEX_END:Vt.FlexEnd,ALIGN_STRETCH:Vt.Stretch,ALIGN_BASELINE:Vt.Baseline,ALIGN_SPACE_BETWEEN:Vt.SpaceBetween,ALIGN_SPACE_AROUND:Vt.SpaceAround,ALIGN_SPACE_EVENLY:Vt.SpaceEvenly,BOX_SIZING_BORDER_BOX:Xa.BorderBox,BOX_SIZING_CONTENT_BOX:Xa.ContentBox,DIMENSION_WIDTH:Qa.Width,DIMENSION_HEIGHT:Qa.Height,DIRECTION_INHERIT:Xr.Inherit,DIRECTION_LTR:Xr.LTR,DIRECTION_RTL:Xr.RTL,DISPLAY_FLEX:Vi.Flex,DISPLAY_NONE:Vi.None,DISPLAY_CONTENTS:Vi.Contents,EDGE_LEFT:Ht.Left,EDGE_TOP:Ht.Top,EDGE_RIGHT:Ht.Right,EDGE_BOTTOM:Ht.Bottom,EDGE_START:Ht.Start,EDGE_END:Ht.End,EDGE_HORIZONTAL:Ht.Horizontal,EDGE_VERTICAL:Ht.Vertical,EDGE_ALL:Ht.All,ERRATA_NONE:Er.None,ERRATA_STRETCH_FLEX_BASIS:Er.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Er.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Er.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Er.All,ERRATA_CLASSIC:Er.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:Td.WebFlexBasis,FLEX_DIRECTION_COLUMN:Xn.Column,FLEX_DIRECTION_COLUMN_REVERSE:Xn.ColumnReverse,FLEX_DIRECTION_ROW:Xn.Row,FLEX_DIRECTION_ROW_REVERSE:Xn.RowReverse,GUTTER_COLUMN:Hi.Column,GUTTER_ROW:Hi.Row,GUTTER_ALL:Hi.All,JUSTIFY_FLEX_START:kr.FlexStart,JUSTIFY_CENTER:kr.Center,JUSTIFY_FLEX_END:kr.FlexEnd,JUSTIFY_SPACE_BETWEEN:kr.SpaceBetween,JUSTIFY_SPACE_AROUND:kr.SpaceAround,JUSTIFY_SPACE_EVENLY:kr.SpaceEvenly,LOG_LEVEL_ERROR:Pr.Error,LOG_LEVEL_WARN:Pr.Warn,LOG_LEVEL_INFO:Pr.Info,LOG_LEVEL_DEBUG:Pr.Debug,LOG_LEVEL_VERBOSE:Pr.Verbose,LOG_LEVEL_FATAL:Pr.Fatal,MEASURE_MODE_UNDEFINED:Yi.Undefined,MEASURE_MODE_EXACTLY:Yi.Exactly,MEASURE_MODE_AT_MOST:Yi.AtMost,NODE_TYPE_DEFAULT:Ka.Default,NODE_TYPE_TEXT:Ka.Text,OVERFLOW_VISIBLE:Xi.Visible,OVERFLOW_HIDDEN:Xi.Hidden,OVERFLOW_SCROLL:Xi.Scroll,POSITION_TYPE_STATIC:Qi.Static,POSITION_TYPE_RELATIVE:Qi.Relative,POSITION_TYPE_ABSOLUTE:Qi.Absolute,UNIT_UNDEFINED:St.Undefined,UNIT_POINT:St.Point,UNIT_PERCENT:St.Percent,UNIT_AUTO:St.Auto,WRAP_NO_WRAP:Ki.NoWrap,WRAP_WRAP:Ki.Wrap,WRAP_WRAP_REVERSE:Ki.WrapReverse},Ja=Ed});function Ji(e){function t(i,o,s){let a=i[o];i[o]=function(){for(var u=arguments.length,l=new Array(u),f=0;f<u;f++)l[f]=arguments[f];return s.call(this,a,...l)}}for(let i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let o={[St.Point]:e.Node.prototype[i],[St.Percent]:e.Node.prototype[`${i}Percent`],[St.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),l=1;l<a;l++)u[l-1]=arguments[l];let f=u.pop(),c,m;if(f==="auto")c=St.Auto,m=void 0;else if(typeof f=="object")c=f.unit,m=f.valueOf();else if(c=typeof f=="string"&&f.endsWith("%")?St.Percent:St.Point,m=parseFloat(f),f!==void 0&&!Number.isNaN(f)&&Number.isNaN(m))throw new Error(`Invalid value ${f} for ${i}`);if(!o[c])throw new Error(`Failed to execute "${i}": Unsupported unit '${f}'`);return m!==void 0?o[c].call(this,...u,m):o[c].call(this,...u)})}function r(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,r(o)):this.unsetMeasureFunc()});function n(i){return e.DirtiedCallback.implement({dirtied:i})}return t(e.Node.prototype,"setDirtiedFunc",function(i,o){i.call(this,n(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]:Xr.LTR;return i.call(this,o,s,a)}),{Config:e.Config,Node:e.Node,...Ja}}var Za=ur(()=>{Qn();Qn()});var tu={};jr(tu,{default:()=>kd});function kd(e){e=e||{};var t;t||(t=typeof e<"u"?e:{});var r,n;t.ready=new Promise(function(d,p){r=d,n=p});var i=Object.assign({},t),o="";typeof document<"u"&&document.currentScript&&(o=document.currentScript.src),eu&&(o=eu),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 l=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Ae("no native wasm support detected");var f,c=!1;function m(d,p,b){b=p+b;for(var v="";!(p>=b);){var S=d[p++];if(!S)break;if(S&128){var P=d[p++]&63;if((S&224)==192)v+=String.fromCharCode((S&31)<<6|P);else{var R=d[p++]&63;S=(S&240)==224?(S&15)<<12|P<<6|R:(S&7)<<18|P<<12|R<<6|d[p++]&63,65536>S?v+=String.fromCharCode(S):(S-=65536,v+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else v+=String.fromCharCode(S)}return v}var h,g,y,w,_,O,E,I,x;function T(){var d=f.buffer;h=d,t.HEAP8=g=new Int8Array(d),t.HEAP16=w=new Int16Array(d),t.HEAP32=O=new Int32Array(d),t.HEAPU8=y=new Uint8Array(d),t.HEAPU16=_=new Uint16Array(d),t.HEAPU32=E=new Uint32Array(d),t.HEAPF32=I=new Float32Array(d),t.HEAPF64=x=new Float64Array(d)}var L,M=[],z=[],X=[];function J(){var d=t.preRun.shift();M.unshift(d)}var he=0,ve=null,ce=null;function Ae(d){throw t.onAbort&&t.onAbort(d),d="Aborted("+d+")",a(d),c=!0,d=new WebAssembly.RuntimeError(d+". Build with -sASSERTIONS for more info."),n(d),d}function Ce(d){return d.startsWith("data:application/octet-stream;base64,")}var re="";if(!Ce(re)){var de=re;re=t.locateFile?t.locateFile(de,o):o+de}function Ie(){var d=re;try{if(d==re&&u)return new Uint8Array(u);if(Ce(d))try{var p=od(d.slice(37)),b=new Uint8Array(p.length);for(d=0;d<p.length;++d)b[d]=p.charCodeAt(d);var v=b}catch{throw Error("Converting base64 string to bytes failed.")}else v=void 0;var S=v;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(P){Ae(P)}}function He(){return u||typeof fetch!="function"?Promise.resolve().then(function(){return Ie()}):fetch(re,{credentials:"same-origin"}).then(function(d){if(!d.ok)throw"failed to load wasm binary file at '"+re+"'";return d.arrayBuffer()}).catch(function(){return Ie()})}function Re(d){for(;0<d.length;)d.shift()(t)}function we(d){if(d===void 0)return"_unknown";d=d.replace(/[^a-zA-Z0-9_]/g,"$");var p=d.charCodeAt(0);return 48<=p&&57>=p?"_"+d:d}function Ft(d,p){return d=we(d),function(){return p.apply(this,arguments)}}var oe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Q=[];function xe(d){var p=Error,b=Ft(d,function(v){this.name=d,this.message=v,v=Error(v).stack,v!==void 0&&(this.stack=this.toString()+`
|
|
2
|
+
`+v.replace(/^Error(:[^\n]*)?\n/,""))});return b.prototype=Object.create(p.prototype),b.prototype.constructor=b,b.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},b}var ee=void 0;function G(d){throw new ee(d)}var Se=d=>(d||G("Cannot use deleted val. handle = "+d),oe[d].value),ke=d=>{switch(d){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var p=Q.length?Q.pop():oe.length;return oe[p]={ga:1,value:d},p}},Be=void 0,Ye=void 0;function se(d){for(var p="";y[d];)p+=Ye[y[d++]];return p}var Ue=[];function Fe(){for(;Ue.length;){var d=Ue.pop();d.M.$=!1,d.delete()}}var tt=void 0,Xe={};function st(d,p){for(p===void 0&&G("ptr should not be undefined");d.R;)p=d.ba(p),d=d.R;return p}var Et={};function Dr(d){d=Ia(d);var p=se(d);return qt(d),p}function $r(d,p){var b=Et[d];return b===void 0&&G(p+" has unknown type "+Dr(d)),b}function Wt(){}var Br=!1;function Ur(d){--d.count.value,d.count.value===0&&(d.T?d.U.W(d.T):d.P.N.W(d.O))}function sr(d,p,b){return p===b?d:b.R===void 0?null:(d=sr(d,p,b.R),d===null?null:b.na(d))}var kt={};function Pt(d,p){return p=st(d,p),Xe[p]}var rt=void 0;function Dt(d){throw new rt(d)}function Qe(d,p){return p.P&&p.O||Dt("makeClassHandle requires ptr and ptrType"),!!p.U!=!!p.T&&Dt("Both smartPtrType and smartPtr must be specified"),p.count={value:1},nt(Object.create(d,{M:{value:p}}))}function nt(d){return typeof FinalizationRegistry>"u"?(nt=p=>p,d):(Br=new FinalizationRegistry(p=>{Ur(p.M)}),nt=p=>{var b=p.M;return b.T&&Br.register(p,{M:b},p),p},Wt=p=>{Br.unregister(p)},nt(d))}var $t={};function vr(d){for(;d.length;){var p=d.pop();d.pop()(p)}}function Ot(d){return this.fromWireType(O[d>>2])}var $e={},It={};function We(d,p,b){function v(C){C=b(C),C.length!==d.length&&Dt("Mismatched type converter count");for(var W=0;W<d.length;++W)V(d[W],C[W])}d.forEach(function(C){It[C]=p});var S=Array(p.length),P=[],R=0;p.forEach((C,W)=>{Et.hasOwnProperty(C)?S[W]=Et[C]:(P.push(C),$e.hasOwnProperty(C)||($e[C]=[]),$e[C].push(()=>{S[W]=Et[C],++R,R===P.length&&v(S)}))}),P.length===0&&v(S)}function xr(d){switch(d){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+d)}}function V(d,p,b={}){if(!("argPackAdvance"in p))throw new TypeError("registerType registeredInstance requires argPackAdvance");var v=p.name;if(d||G('type "'+v+'" must have a positive integer typeid pointer'),Et.hasOwnProperty(d)){if(b.ua)return;G("Cannot register type '"+v+"' twice")}Et[d]=p,delete It[d],$e.hasOwnProperty(d)&&(p=$e[d],delete $e[d],p.forEach(S=>S()))}function K(d){G(d.M.P.N.name+" instance already deleted")}function te(){}function Z(d,p,b){if(d[p].S===void 0){var v=d[p];d[p]=function(){return d[p].S.hasOwnProperty(arguments.length)||G("Function '"+b+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+d[p].S+")!"),d[p].S[arguments.length].apply(this,arguments)},d[p].S=[],d[p].S[v.Z]=v}}function Pe(d,p){t.hasOwnProperty(d)?(G("Cannot register public name '"+d+"' twice"),Z(t,d,d),t.hasOwnProperty(void 0)&&G("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),t[d].S[void 0]=p):t[d]=p}function le(d,p,b,v,S,P,R,C){this.name=d,this.constructor=p,this.X=b,this.W=v,this.R=S,this.pa=P,this.ba=R,this.na=C,this.ja=[]}function ge(d,p,b){for(;p!==b;)p.ba||G("Expected null or instance of "+b.name+", got an instance of "+p.name),d=p.ba(d),p=p.R;return d}function fe(d,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+Oe(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),ge(p.M.O,p.M.P.N,this.N))}function ne(d,p){if(p===null){if(this.ea&&G("null is not a valid "+this.name),this.da){var b=this.fa();return d!==null&&d.push(this.W,b),b}return 0}if(p.M||G('Cannot pass "'+Oe(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&p.M.P.ca&&G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name),b=ge(p.M.O,p.M.P.N,this.N),this.da)switch(p.M.T===void 0&&G("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:p.M.U===this?b=p.M.T:G("Cannot convert argument of type "+(p.M.U?p.M.U.name:p.M.P.name)+" to parameter type "+this.name);break;case 1:b=p.M.T;break;case 2:if(p.M.U===this)b=p.M.T;else{var v=p.clone();b=this.xa(b,ke(function(){v.delete()})),d!==null&&d.push(this.W,b)}break;default:G("Unsupporting sharing policy")}return b}function at(d,p){return p===null?(this.ea&&G("null is not a valid "+this.name),0):(p.M||G('Cannot pass "'+Oe(p)+'" as a '+this.name),p.M.O||G("Cannot pass deleted object as a pointer of type "+this.name),p.M.P.ca&&G("Cannot convert argument of type "+p.M.P.name+" to parameter type "+this.name),ge(p.M.O,p.M.P.N,this.N))}function H(d,p,b,v){this.name=d,this.N=p,this.ea=b,this.ca=v,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,p.R!==void 0?this.toWireType=ne:(this.toWireType=v?fe:at,this.V=null)}function Rt(d,p){t.hasOwnProperty(d)||Dt("Replacing nonexistant public symbol"),t[d]=p,t[d].Z=void 0}function qe(d,p){var b=[];return function(){if(b.length=0,Object.assign(b,arguments),d.includes("j")){var v=t["dynCall_"+d];v=b&&b.length?v.apply(null,[p].concat(b)):v.call(null,p)}else v=L.get(p).apply(null,b);return v}}function ze(d,p){d=se(d);var b=d.includes("j")?qe(d,p):L.get(p);return typeof b!="function"&&G("unknown function pointer with signature "+d+": "+p),b}var it=void 0;function Bt(d,p){function b(P){S[P]||Et[P]||(It[P]?It[P].forEach(b):(v.push(P),S[P]=!0))}var v=[],S={};throw p.forEach(b),new it(d+": "+v.map(Dr).join([", "]))}function Ge(d,p,b,v,S){var P=p.length;2>P&&G("argTypes array size mismatch! Must at least get return value and 'this' types!");var R=p[1]!==null&&b!==null,C=!1;for(b=1;b<p.length;++b)if(p[b]!==null&&p[b].V===void 0){C=!0;break}var W=p[0].name!=="void",F=P-2,$=Array(F),j=[],ie=[];return function(){if(arguments.length!==F&&G("function "+d+" called with "+arguments.length+" arguments, expected "+F+" args!"),ie.length=0,j.length=R?2:1,j[0]=S,R){var Le=p[1].toWireType(ie,this);j[1]=Le}for(var pe=0;pe<F;++pe)$[pe]=p[pe+2].toWireType(ie,arguments[pe]),j.push($[pe]);if(pe=v.apply(null,j),C)vr(ie);else for(var ot=R?1:2;ot<p.length;ot++){var xt=ot===1?Le:$[ot-2];p[ot].V!==null&&p[ot].V(xt)}return Le=W?p[0].fromWireType(pe):void 0,Le}}function Ut(d,p){for(var b=[],v=0;v<d;v++)b.push(E[p+4*v>>2]);return b}function _e(d){4<d&&--oe[d].ga===0&&(oe[d]=void 0,Q.push(d))}function Oe(d){if(d===null)return"null";var p=typeof d;return p==="object"||p==="array"||p==="function"?d.toString():""+d}function ut(d,p){switch(p){case 2:return function(b){return this.fromWireType(I[b>>2])};case 3:return function(b){return this.fromWireType(x[b>>3])};default:throw new TypeError("Unknown float type: "+d)}}function Ke(d,p,b){switch(p){case 0:return b?function(v){return g[v]}:function(v){return y[v]};case 1:return b?function(v){return w[v>>1]}:function(v){return _[v>>1]};case 2:return b?function(v){return O[v>>2]}:function(v){return E[v>>2]};default:throw new TypeError("Unknown integer type: "+d)}}function lt(d,p){for(var b="",v=0;!(v>=p/2);++v){var S=w[d+2*v>>1];if(S==0)break;b+=String.fromCharCode(S)}return b}function vt(d,p,b){if(b===void 0&&(b=2147483647),2>b)return 0;b-=2;var v=p;b=b<2*d.length?b/2:d.length;for(var S=0;S<b;++S)w[p>>1]=d.charCodeAt(S),p+=2;return w[p>>1]=0,p-v}function je(d){return 2*d.length}function ft(d,p){for(var b=0,v="";!(b>=p/4);){var S=O[d+4*b>>2];if(S==0)break;++b,65536<=S?(S-=65536,v+=String.fromCharCode(55296|S>>10,56320|S&1023)):v+=String.fromCharCode(S)}return v}function qr(d,p,b){if(b===void 0&&(b=2147483647),4>b)return 0;var v=p;b=v+b-4;for(var S=0;S<d.length;++S){var P=d.charCodeAt(S);if(55296<=P&&57343>=P){var R=d.charCodeAt(++S);P=65536+((P&1023)<<10)|R&1023}if(O[p>>2]=P,p+=4,p+4>b)break}return O[p>>2]=0,p-v}function wr(d){for(var p=0,b=0;b<d.length;++b){var v=d.charCodeAt(b);55296<=v&&57343>=v&&++b,p+=4}return p}var zn={};function zr(d){var p=zn[d];return p===void 0?se(d):p}var ar=[];function rd(d){var p=ar.length;return ar.push(d),p}function nd(d,p){for(var b=Array(d),v=0;v<d;++v)b[v]=$r(E[p+4*v>>2],"parameter "+v);return b}var Pa=[],id=[null,[],[]];ee=t.BindingError=xe("BindingError"),t.count_emval_handles=function(){for(var d=0,p=5;p<oe.length;++p)oe[p]!==void 0&&++d;return d},t.get_first_emval=function(){for(var d=5;d<oe.length;++d)if(oe[d]!==void 0)return oe[d];return null},Be=t.PureVirtualError=xe("PureVirtualError");for(var Oa=Array(256),Gn=0;256>Gn;++Gn)Oa[Gn]=String.fromCharCode(Gn);Ye=Oa,t.getInheritedInstanceCount=function(){return Object.keys(Xe).length},t.getLiveInheritedInstances=function(){var d=[],p;for(p in Xe)Xe.hasOwnProperty(p)&&d.push(Xe[p]);return d},t.flushPendingDeletes=Fe,t.setDelayFunction=function(d){tt=d,Ue.length&&tt&&tt(Fe)},rt=t.InternalError=xe("InternalError"),te.prototype.isAliasOf=function(d){if(!(this instanceof te&&d instanceof te))return!1;var p=this.M.P.N,b=this.M.O,v=d.M.P.N;for(d=d.M.O;p.R;)b=p.ba(b),p=p.R;for(;v.R;)d=v.ba(d),v=v.R;return p===v&&b===d},te.prototype.clone=function(){if(this.M.O||K(this),this.M.aa)return this.M.count.value+=1,this;var d=nt,p=Object,b=p.create,v=Object.getPrototypeOf(this),S=this.M;return d=d(b.call(p,v,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),d.M.count.value+=1,d.M.$=!1,d},te.prototype.delete=function(){this.M.O||K(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),Wt(this),Ur(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},te.prototype.isDeleted=function(){return!this.M.O},te.prototype.deleteLater=function(){return this.M.O||K(this),this.M.$&&!this.M.aa&&G("Object already scheduled for deletion"),Ue.push(this),Ue.length===1&&tt&&tt(Fe),this.M.$=!0,this},H.prototype.qa=function(d){return this.ka&&(d=this.ka(d)),d},H.prototype.ha=function(d){this.W&&this.W(d)},H.prototype.argPackAdvance=8,H.prototype.readValueFromPointer=Ot,H.prototype.deleteObject=function(d){d!==null&&d.delete()},H.prototype.fromWireType=function(d){function p(){return this.da?Qe(this.N.X,{P:this.wa,O:b,U:this,T:d}):Qe(this.N.X,{P:this,O:d})}var b=this.qa(d);if(!b)return this.ha(d),null;var v=Pt(this.N,b);if(v!==void 0)return v.M.count.value===0?(v.M.O=b,v.M.T=d,v.clone()):(v=v.clone(),this.ha(d),v);if(v=this.N.pa(b),v=kt[v],!v)return p.call(this);v=this.ca?v.la:v.pointerType;var S=sr(b,this.N,v.N);return S===null?p.call(this):this.da?Qe(v.N.X,{P:v,O:S,U:this,T:d}):Qe(v.N.X,{P:v,O:S})},it=t.UnboundTypeError=xe("UnboundTypeError");var od=typeof atob=="function"?atob:function(d){var p="",b=0;d=d.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++)),R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(b++));v=v<<2|S>>4,S=(S&15)<<4|P>>2;var C=(P&3)<<6|R;p+=String.fromCharCode(v),P!==64&&(p+=String.fromCharCode(S)),R!==64&&(p+=String.fromCharCode(C))}while(b<d.length);return p},sd={l:function(d,p,b,v){Ae("Assertion failed: "+(d?m(y,d):"")+", at: "+[p?p?m(y,p):"":"unknown filename",b,v?v?m(y,v):"":"unknown function"])},q:function(d,p,b){d=se(d),p=$r(p,"wrapper"),b=Se(b);var v=[].slice,S=p.N,P=S.X,R=S.R.X,C=S.R.constructor;d=Ft(d,function(){S.R.ja.forEach(function(F){if(this[F]===R[F])throw new Be("Pure virtual function "+F+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:P}),this.__construct.apply(this,v.call(arguments))}),P.__construct=function(){this===P&&G("Pass correct 'this' to __construct");var F=C.implement.apply(void 0,[this].concat(v.call(arguments)));Wt(F);var $=F.M;F.notifyOnDestruction(),$.aa=!0,Object.defineProperties(this,{M:{value:$}}),nt(this),F=$.O,F=st(S,F),Xe.hasOwnProperty(F)?G("Tried to register registered instance: "+F):Xe[F]=this},P.__destruct=function(){this===P&&G("Pass correct 'this' to __destruct"),Wt(this);var F=this.M.O;F=st(S,F),Xe.hasOwnProperty(F)?delete Xe[F]:G("Tried to unregister unregistered instance: "+F)},d.prototype=Object.create(P);for(var W in b)d.prototype[W]=b[W];return ke(d)},j:function(d){var p=$t[d];delete $t[d];var b=p.fa,v=p.W,S=p.ia,P=S.map(R=>R.ta).concat(S.map(R=>R.za));We([d],P,R=>{var C={};return S.forEach((W,F)=>{var $=R[F],j=W.ra,ie=W.sa,Le=R[F+S.length],pe=W.ya,ot=W.Aa;C[W.oa]={read:xt=>$.fromWireType(j(ie,xt)),write:(xt,Gr)=>{var zt=[];pe(ot,xt,Le.toWireType(zt,Gr)),vr(zt)}}}),[{name:p.name,fromWireType:function(W){var F={},$;for($ in C)F[$]=C[$].read(W);return v(W),F},toWireType:function(W,F){for(var $ in C)if(!($ in F))throw new TypeError('Missing field: "'+$+'"');var j=b();for($ in C)C[$].write(j,F[$]);return W!==null&&W.push(v,j),j},argPackAdvance:8,readValueFromPointer:Ot,V:v}]})},v:function(){},B:function(d,p,b,v,S){var P=xr(b);p=se(p),V(d,{name:p,fromWireType:function(R){return!!R},toWireType:function(R,C){return C?v:S},argPackAdvance:8,readValueFromPointer:function(R){if(b===1)var C=g;else if(b===2)C=w;else if(b===4)C=O;else throw new TypeError("Unknown boolean type size: "+p);return this.fromWireType(C[R>>P])},V:null})},f:function(d,p,b,v,S,P,R,C,W,F,$,j,ie){$=se($),P=ze(S,P),C&&(C=ze(R,C)),F&&(F=ze(W,F)),ie=ze(j,ie);var Le=we($);Pe(Le,function(){Bt("Cannot construct "+$+" due to unbound types",[v])}),We([d,p,b],v?[v]:[],function(pe){if(pe=pe[0],v)var ot=pe.N,xt=ot.X;else xt=te.prototype;pe=Ft(Le,function(){if(Object.getPrototypeOf(this)!==Gr)throw new ee("Use 'new' to construct "+$);if(zt.Y===void 0)throw new ee($+" has no accessible constructor");var Ca=zt.Y[arguments.length];if(Ca===void 0)throw new ee("Tried to invoke ctor of "+$+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(zt.Y).toString()+") parameters instead!");return Ca.apply(this,arguments)});var Gr=Object.create(xt,{constructor:{value:pe}});pe.prototype=Gr;var zt=new le($,pe,Gr,ie,ot,P,C,F);ot=new H($,zt,!0,!1),xt=new H($+"*",zt,!1,!1);var Aa=new H($+" const*",zt,!1,!0);return kt[d]={pointerType:xt,la:Aa},Rt(Le,pe),[ot,xt,Aa]})},d:function(d,p,b,v,S,P,R){var C=Ut(b,v);p=se(p),P=ze(S,P),We([],[d],function(W){function F(){Bt("Cannot call "+$+" due to unbound types",C)}W=W[0];var $=W.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]);var j=W.N.constructor;return j[p]===void 0?(F.Z=b-1,j[p]=F):(Z(j,p,$),j[p].S[b-1]=F),We([],C,function(ie){return ie=Ge($,[ie[0],null].concat(ie.slice(1)),null,P,R),j[p].S===void 0?(ie.Z=b-1,j[p]=ie):j[p].S[b-1]=ie,[]}),[]})},p:function(d,p,b,v,S,P){0<p||Ae();var R=Ut(p,b);S=ze(v,S),We([],[d],function(C){C=C[0];var W="constructor "+C.name;if(C.N.Y===void 0&&(C.N.Y=[]),C.N.Y[p-1]!==void 0)throw new ee("Cannot register multiple constructors with identical number of parameters ("+(p-1)+") for class '"+C.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return C.N.Y[p-1]=()=>{Bt("Cannot construct "+C.name+" due to unbound types",R)},We([],R,function(F){return F.splice(1,0,null),C.N.Y[p-1]=Ge(W,F,null,S,P),[]}),[]})},a:function(d,p,b,v,S,P,R,C){var W=Ut(b,v);p=se(p),P=ze(S,P),We([],[d],function(F){function $(){Bt("Cannot call "+j+" due to unbound types",W)}F=F[0];var j=F.name+"."+p;p.startsWith("@@")&&(p=Symbol[p.substring(2)]),C&&F.N.ja.push(p);var ie=F.N.X,Le=ie[p];return Le===void 0||Le.S===void 0&&Le.className!==F.name&&Le.Z===b-2?($.Z=b-2,$.className=F.name,ie[p]=$):(Z(ie,p,j),ie[p].S[b-2]=$),We([],W,function(pe){return pe=Ge(j,pe,F,P,R),ie[p].S===void 0?(pe.Z=b-2,ie[p]=pe):ie[p].S[b-2]=pe,[]}),[]})},A:function(d,p){p=se(p),V(d,{name:p,fromWireType:function(b){var v=Se(b);return _e(b),v},toWireType:function(b,v){return ke(v)},argPackAdvance:8,readValueFromPointer:Ot,V:null})},n:function(d,p,b){b=xr(b),p=se(p),V(d,{name:p,fromWireType:function(v){return v},toWireType:function(v,S){return S},argPackAdvance:8,readValueFromPointer:ut(p,b),V:null})},e:function(d,p,b,v,S){p=se(p),S===-1&&(S=4294967295),S=xr(b);var P=C=>C;if(v===0){var R=32-8*b;P=C=>C<<R>>>R}b=p.includes("unsigned")?function(C,W){return W>>>0}:function(C,W){return W},V(d,{name:p,fromWireType:P,toWireType:b,argPackAdvance:8,readValueFromPointer:Ke(p,S,v!==0),V:null})},b:function(d,p,b){function v(P){P>>=2;var R=E;return new S(h,R[P+1],R[P])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][p];b=se(b),V(d,{name:b,fromWireType:v,argPackAdvance:8,readValueFromPointer:v},{ua:!0})},o:function(d,p){p=se(p);var b=p==="std::string";V(d,{name:p,fromWireType:function(v){var S=E[v>>2],P=v+4;if(b)for(var R=P,C=0;C<=S;++C){var W=P+C;if(C==S||y[W]==0){if(R=R?m(y,R,W-R):"",F===void 0)var F=R;else F+=String.fromCharCode(0),F+=R;R=W+1}}else{for(F=Array(S),C=0;C<S;++C)F[C]=String.fromCharCode(y[P+C]);F=F.join("")}return qt(v),F},toWireType:function(v,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var P,R=typeof S=="string";if(R||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||G("Cannot pass non-string to std::string"),b&&R){var C=0;for(P=0;P<S.length;++P){var W=S.charCodeAt(P);127>=W?C++:2047>=W?C+=2:55296<=W&&57343>=W?(C+=4,++P):C+=3}P=C}else P=S.length;if(C=Bi(4+P+1),W=C+4,E[C>>2]=P,b&&R){if(R=W,W=P+1,P=y,0<W){W=R+W-1;for(var F=0;F<S.length;++F){var $=S.charCodeAt(F);if(55296<=$&&57343>=$){var j=S.charCodeAt(++F);$=65536+(($&1023)<<10)|j&1023}if(127>=$){if(R>=W)break;P[R++]=$}else{if(2047>=$){if(R+1>=W)break;P[R++]=192|$>>6}else{if(65535>=$){if(R+2>=W)break;P[R++]=224|$>>12}else{if(R+3>=W)break;P[R++]=240|$>>18,P[R++]=128|$>>12&63}P[R++]=128|$>>6&63}P[R++]=128|$&63}}P[R]=0}}else if(R)for(R=0;R<P;++R)F=S.charCodeAt(R),255<F&&(qt(W),G("String has UTF-16 code units that do not fit in 8 bits")),y[W+R]=F;else for(R=0;R<P;++R)y[W+R]=S[R];return v!==null&&v.push(qt,C),C},argPackAdvance:8,readValueFromPointer:Ot,V:function(v){qt(v)}})},i:function(d,p,b){if(b=se(b),p===2)var v=lt,S=vt,P=je,R=()=>_,C=1;else p===4&&(v=ft,S=qr,P=wr,R=()=>E,C=2);V(d,{name:b,fromWireType:function(W){for(var F=E[W>>2],$=R(),j,ie=W+4,Le=0;Le<=F;++Le){var pe=W+4+Le*p;(Le==F||$[pe>>C]==0)&&(ie=v(ie,pe-ie),j===void 0?j=ie:(j+=String.fromCharCode(0),j+=ie),ie=pe+p)}return qt(W),j},toWireType:function(W,F){typeof F!="string"&&G("Cannot pass non-string to C++ string type "+b);var $=P(F),j=Bi(4+$+p);return E[j>>2]=$>>C,S(F,j+4,$+p),W!==null&&W.push(qt,j),j},argPackAdvance:8,readValueFromPointer:Ot,V:function(W){qt(W)}})},k:function(d,p,b,v,S,P){$t[d]={name:se(p),fa:ze(b,v),W:ze(S,P),ia:[]}},h:function(d,p,b,v,S,P,R,C,W,F){$t[d].ia.push({oa:se(p),ta:b,ra:ze(v,S),sa:P,za:R,ya:ze(C,W),Aa:F})},C:function(d,p){p=se(p),V(d,{va:!0,name:p,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(d,p,b,v,S){d=ar[d],p=Se(p),b=zr(b);var P=[];return E[v>>2]=ke(P),d(p,b,P,S)},t:function(d,p,b,v){d=ar[d],p=Se(p),b=zr(b),d(p,b,null,v)},g:_e,m:function(d,p){var b=nd(d,p),v=b[0];p=v.name+"_$"+b.slice(1).map(function(R){return R.name}).join("_")+"$";var S=Pa[p];if(S!==void 0)return S;var P=Array(d-1);return S=rd((R,C,W,F)=>{for(var $=0,j=0;j<d-1;++j)P[j]=b[j+1].readValueFromPointer(F+$),$+=b[j+1].argPackAdvance;for(R=R[C].apply(R,P),j=0;j<d-1;++j)b[j+1].ma&&b[j+1].ma(P[j]);if(!v.va)return v.toWireType(W,R)}),Pa[p]=S},D:function(d){4<d&&(oe[d].ga+=1)},r:function(d){var p=Se(d);vr(p),_e(d)},c:function(){Ae("")},x:function(d,p,b){y.copyWithin(d,p,p+b)},w:function(d){var p=y.length;if(d>>>=0,2147483648<d)return!1;for(var b=1;4>=b;b*=2){var v=p*(1+.2/b);v=Math.min(v,d+100663296);var S=Math;v=Math.max(d,v),S=S.min.call(S,2147483648,v+(65536-v%65536)%65536);e:{try{f.grow(S-h.byteLength+65535>>>16),T();var P=1;break e}catch{}P=void 0}if(P)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(d,p,b,v){for(var S=0,P=0;P<b;P++){var R=E[p>>2],C=E[p+4>>2];p+=8;for(var W=0;W<C;W++){var F=y[R+W],$=id[d];F===0||F===10?((d===1?s:a)(m($,0)),$.length=0):$.push(F)}S+=C}return E[v>>2]=S,0}};(function(){function d(S){t.asm=S.exports,f=t.asm.E,T(),L=t.asm.J,z.unshift(t.asm.F),he--,t.monitorRunDependencies&&t.monitorRunDependencies(he),he==0&&(ve!==null&&(clearInterval(ve),ve=null),ce&&(S=ce,ce=null,S()))}function p(S){d(S.instance)}function b(S){return He().then(function(P){return P instanceof WebAssembly.Instance?P:WebAssembly.instantiate(P,v)}).then(function(P){return P}).then(S,function(P){a("failed to asynchronously prepare wasm: "+P),Ae(P)})}var v={a:sd};if(he++,t.monitorRunDependencies&&t.monitorRunDependencies(he),t.instantiateWasm)try{return t.instantiateWasm(v,d)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),n(S)}return function(){return u||typeof WebAssembly.instantiateStreaming!="function"||Ce(re)||typeof fetch!="function"?b(p):fetch(re,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,v).then(p,function(P){return a("wasm streaming compile failed: "+P),a("falling back to ArrayBuffer instantiation"),b(p)})})}().catch(n),{}})(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};var Ia=t.___getTypeName=function(){return(Ia=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 Bi=t._malloc=function(){return(Bi=t._malloc=t.asm.I).apply(null,arguments)},qt=t._free=function(){return(qt=t._free=t.asm.K).apply(null,arguments)};t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.L).apply(null,arguments)};var jn;ce=function d(){jn||Ra(),jn||(ce=d)};function Ra(){function d(){if(!jn&&(jn=!0,t.calledRun=!0,!c)){if(Re(z),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var p=t.postRun.shift();X.unshift(p)}Re(X)}}if(!(0<he)){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)J();Re(M),0<he||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),d()},1)):d())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return Ra(),e.ready}var eu,ru=ur(()=>{eu=""});async function nu(e){let{default:t}=await Promise.resolve().then(()=>(ru(),tu));return Ji(await t(e))}var iu=ur(()=>{Za();Qn()});var eo={};jr(eo,{getYoga:()=>Ad,init:()=>Rd});async function Id(e,t){let r;if(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL?r=await fetch(e):r=await e,typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(o){r.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 r.arrayBuffer();return await WebAssembly.instantiate(i,t)}let n=await WebAssembly.instantiate("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,t);return n instanceof WebAssembly.Instance?{instance:n,module:r}:n}function Rd(e){Pd({instantiateWasm(t,r){return Id(e,t).then(({instance:n})=>{r(n)}).catch(Zi),{}}}).then(ou).catch(Zi)}function Ad(){return Od}var Pd,ou,Zi,Od,to=ur(()=>{iu();Pd=nu,Od=new Promise((e,t)=>{ou=e,Zi=t})});var $o=q(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Object.defineProperty(Do,"default",{enumerable:!0,get:()=>Zp});function Zp(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 xl=q(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Object.defineProperty(Bo,"default",{enumerable:!0,get:()=>eh});var eh=["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 wl=q(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Object.defineProperty(Uo,"default",{enumerable:!0,get:()=>th});function th(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(n=>e!==!1&&e[n]!==!1).concat(Object.keys(e).filter(n=>e[n]!==!1)))]}});var qo=q((rw,Sl)=>{Sl.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 xi={};jr(xi,{default:()=>rh});var rh,wi=ur(()=>{rh={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 _l=q(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});Object.defineProperty(zo,"default",{enumerable:!0,get:()=>oh});var nh=ih((wi(),Vr(xi)));function ih(e){return e&&e.__esModule?e:{default:e}}function un({version:e,from:t,to:r}){nh.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var oh={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 un({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return un({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return un({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return un({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return un({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var Tl=q(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Object.defineProperty(Go,"defaults",{enumerable:!0,get:()=>sh});function sh(e,...t){for(let i of t){for(let o in i){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}}return e}});var El=q(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});Object.defineProperty(jo,"toPath",{enumerable:!0,get:()=>ah});function ah(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,r=e.split("]").length-1;if(t!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var Pl=q(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Object.defineProperty(Vo,"normalizeConfig",{enumerable:!0,get:()=>lh});var ln=uh((wi(),Vr(xi)));function kl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kl=function(n){return n?r:t})(e)}function uh(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kl(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function lh(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(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(n=>!["files","extract","transform"].includes(n)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(n=>typeof n=="string"?!0:!(typeof(n==null?void 0:n.raw)!="string"||n!=null&&n.extension&&typeof(n==null?void 0:n.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let n of Object.values(e.content.extract))if(typeof n!="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 n of Object.values(e.content.transform))if(typeof n!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||ln.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 n;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||(n=o.options)===null||n===void 0?void 0:n.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")ln.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 r;e.prefix=(r=e.prefix)!==null&&r!==void 0?r:""}e.content={files:(()=>{let{content:n,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(n)?n:Array.isArray(n==null?void 0:n.content)?n.content:Array.isArray(n==null?void 0:n.files)?n.files:[]})(),extract:(()=>{let n=(()=>{var s,a,u,l,f,c,m,h,g,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||(l=u.extract)===null||l===void 0)&&l.DEFAULT?e.purge.extract.DEFAULT:!((f=e.content)===null||f===void 0||(c=f.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((m=e.purge)===null||m===void 0||(h=m.options)===null||h===void 0)&&h.extractors?e.purge.options.extractors:!((g=e.content)===null||g===void 0||(y=g.options)===null||y===void 0)&&y.extractors?e.content.options.extractors:{}})(),i={},o=(()=>{var s,a,u,l;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||(l=u.options)===null||l===void 0)&&l.defaultExtractor)return e.content.options.defaultExtractor})();if(o!==void 0&&(i.DEFAULT=o),typeof n=="function")i.DEFAULT=n;else if(Array.isArray(n))for(let{extensions:s,extractor:a}of n??[])for(let u of s)i[u]=a;else typeof n=="object"&&n!==null&&Object.assign(i,n);return i})(),transform:(()=>{let n=(()=>{var o,s,a,u,l,f;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:!((l=e.content)===null||l===void 0||(f=l.transform)===null||f===void 0)&&f.DEFAULT?e.content.transform.DEFAULT:{}})(),i={};return typeof n=="function"&&(i.DEFAULT=n),typeof n=="object"&&n!==null&&Object.assign(i,n),i})()};for(let n of e.content.files)if(typeof n=="string"&&/{([^,]*?)}/g.test(n)){ln.default.warn("invalid-glob-braces",[`The glob pattern ${(0,ln.dim)(n)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,ln.dim)(n.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var Ol=q(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Object.defineProperty(Ho,"default",{enumerable:!0,get:()=>fh});function fh(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Il=q(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Object.defineProperty(Xo,"cloneDeep",{enumerable:!0,get:()=>Yo});function Yo(e){return Array.isArray(e)?e.map(t=>Yo(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Yo(r)])):e}});var Qo=q((Si,Rl)=>{"use strict";Si.__esModule=!0;Si.default=ph;function ch(e){for(var t=e.toLowerCase(),r="",n=!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(n=o===32,!s)break;r+=t[i]}if(r.length!==0){var a=parseInt(r,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(a),r.length+(n?1:0)]}}var dh=/\\/;function ph(e){var t=dh.test(e);if(!t)return e;for(var r="",n=0;n<e.length;n++){if(e[n]==="\\"){var i=ch(e.slice(n+1,n+7));if(i!==void 0){r+=i[0],n+=i[1];continue}if(e[n+1]==="\\"){r+="\\",n++;continue}e.length===n+1&&(r+=e[n]);continue}r+=e[n]}return r}Rl.exports=Si.default});var Cl=q((_i,Al)=>{"use strict";_i.__esModule=!0;_i.default=hh;function hh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();if(!e[i])return;e=e[i]}return e}Al.exports=_i.default});var Ml=q((Ti,Ll)=>{"use strict";Ti.__esModule=!0;Ti.default=mh;function mh(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(;r.length>0;){var i=r.shift();e[i]||(e[i]={}),e=e[i]}}Ll.exports=Ti.default});var Fl=q((Ei,Nl)=>{"use strict";Ei.__esModule=!0;Ei.default=gh;function gh(e){for(var t="",r=e.indexOf("/*"),n=0;r>=0;){t=t+e.slice(n,r);var i=e.indexOf("*/",r+2);if(i<0)return t;n=i+2,r=e.indexOf("/*",n)}return t=t+e.slice(n),t}Nl.exports=Ei.default});var fn=q(Lt=>{"use strict";Lt.__esModule=!0;Lt.stripComments=Lt.ensureObject=Lt.getProp=Lt.unesc=void 0;var bh=ki(Qo());Lt.unesc=bh.default;var yh=ki(Cl());Lt.getProp=yh.default;var vh=ki(Ml());Lt.ensureObject=vh.default;var xh=ki(Fl());Lt.stripComments=xh.default;function ki(e){return e&&e.__esModule?e:{default:e}}});var Xt=q((cn,$l)=>{"use strict";cn.__esModule=!0;cn.default=void 0;var Wl=fn();function Dl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wh(e,t,r){return t&&Dl(e.prototype,t),r&&Dl(e,r),e}var Sh=function e(t,r){if(typeof t!="object"||t===null)return t;var n=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?r&&(n[i]=r):o instanceof Array?n[i]=o.map(function(a){return e(a,n)}):n[i]=e(o,n)}return n},_h=function(){function e(r){r===void 0&&(r={}),Object.assign(this,r),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 n in arguments)this.parent.insertBefore(this,arguments[n]);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(n){n===void 0&&(n={});var i=Sh(this);for(var o in n)i[o]=n[o];return i},t.appendToPropertyAndEscape=function(n,i,o){this.raws||(this.raws={});var s=this[n],a=this.raws[n];this[n]=s+i,a||o!==i?this.raws[n]=(a||s)+o:delete this.raws[n]},t.setPropertyAndEscape=function(n,i,o){this.raws||(this.raws={}),this[n]=i,this.raws[n]=o},t.setPropertyWithoutEscape=function(n,i){this[n]=i,this.raws&&delete this.raws[n]},t.isAtPosition=function(n,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>n||this.source.end.line<n||this.source.start.line===n&&this.source.start.column>i||this.source.end.line===n&&this.source.end.column<i)},t.stringifyProperty=function(n){return this.raws&&this.raws[n]||this[n]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},wh(e,[{key:"rawSpaceBefore",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.before;return n===void 0&&(n=this.spaces&&this.spaces.before),n||""},set:function(n){(0,Wl.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=n}},{key:"rawSpaceAfter",get:function(){var n=this.raws&&this.raws.spaces&&this.raws.spaces.after;return n===void 0&&(n=this.spaces.after),n||""},set:function(n){(0,Wl.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=n}}]),e}();cn.default=_h;$l.exports=cn.default});var De=q(be=>{"use strict";be.__esModule=!0;be.UNIVERSAL=be.ATTRIBUTE=be.CLASS=be.COMBINATOR=be.COMMENT=be.ID=be.NESTING=be.PSEUDO=be.ROOT=be.SELECTOR=be.STRING=be.TAG=void 0;var Th="tag";be.TAG=Th;var Eh="string";be.STRING=Eh;var kh="selector";be.SELECTOR=kh;var Ph="root";be.ROOT=Ph;var Oh="pseudo";be.PSEUDO=Oh;var Ih="nesting";be.NESTING=Ih;var Rh="id";be.ID=Rh;var Ah="comment";be.COMMENT=Ah;var Ch="combinator";be.COMBINATOR=Ch;var Lh="class";be.CLASS=Lh;var Mh="attribute";be.ATTRIBUTE=Mh;var Nh="universal";be.UNIVERSAL=Nh});var Pi=q((dn,zl)=>{"use strict";dn.__esModule=!0;dn.default=void 0;var Fh=Dh(Xt()),Qt=Wh(De());function ql(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ql=function(){return e},e}function Wh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ql();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function Dh(e){return e&&e.__esModule?e:{default:e}}function $h(e,t){var r;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(r=Bh(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 r=e[Symbol.iterator](),r.next.bind(r)}function Bh(e,t){if(e){if(typeof e=="string")return Bl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bl(e,t)}}function Bl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ul(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Uh(e,t,r){return t&&Ul(e.prototype,t),r&&Ul(e,r),e}function qh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}function Ko(e,t){return Ko=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ko(e,t)}var zh=function(e){qh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.append=function(i){return i.parent=this,this.nodes.push(i),this},r.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},r.at=function(i){return this.nodes[i]},r.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},r.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},r.removeAll=function(){for(var i=$h(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.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},r.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},r._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},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._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))},r.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}},r.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})},r.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.ATTRIBUTE)return i.call(o,s)})},r.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.CLASS)return i.call(o,s)})},r.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.COMBINATOR)return i.call(o,s)})},r.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.COMMENT)return i.call(o,s)})},r.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.ID)return i.call(o,s)})},r.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.NESTING)return i.call(o,s)})},r.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.PSEUDO)return i.call(o,s)})},r.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.TAG)return i.call(o,s)})},r.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===Qt.UNIVERSAL)return i.call(o,s)})},r.split=function(i){var o=this,s=[];return this.reduce(function(a,u,l){var f=i.call(o,u);return s.push(u),f?(a.push(s),s=[]):l===o.length-1&&a.push(s),a},[])},r.map=function(i){return this.nodes.map(i)},r.reduce=function(i,o){return this.nodes.reduce(i,o)},r.every=function(i){return this.nodes.every(i)},r.some=function(i){return this.nodes.some(i)},r.filter=function(i){return this.nodes.filter(i)},r.sort=function(i){return this.nodes.sort(i)},r.toString=function(){return this.map(String).join("")},Uh(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}(Fh.default);dn.default=zh;zl.exports=dn.default});var Zo=q((pn,jl)=>{"use strict";pn.__esModule=!0;pn.default=void 0;var Gh=Vh(Pi()),jh=De();function Vh(e){return e&&e.__esModule?e:{default:e}}function Gl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hh(e,t,r){return t&&Gl(e.prototype,t),r&&Gl(e,r),e}function Yh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jo(e,t)}function Jo(e,t){return Jo=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jo(e,t)}var Xh=function(e){Yh(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=jh.ROOT,i}var r=t.prototype;return r.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},r.error=function(i,o){return this._error?this._error(i,o):new Error(i)},Hh(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Gh.default);pn.default=Xh;jl.exports=pn.default});var ts=q((hn,Vl)=>{"use strict";hn.__esModule=!0;hn.default=void 0;var Qh=Jh(Pi()),Kh=De();function Jh(e){return e&&e.__esModule?e:{default:e}}function Zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,es(e,t)}function es(e,t){return es=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},es(e,t)}var em=function(e){Zh(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Kh.SELECTOR,n}return t}(Qh.default);hn.default=em;Vl.exports=hn.default});var Oi=q((cw,Hl)=>{"use strict";var tm={},rm=tm.hasOwnProperty,nm=function(t,r){if(!t)return r;var n={};for(var i in r)n[i]=rm.call(t,i)?t[i]:r[i];return n},im=/[ -,\.\/:-@\[-\^`\{-~]/,om=/[ -,\.\/:-@\[\]\^`\{-~]/,sm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,rs=function e(t,r){r=nm(r,e.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var m=t.charCodeAt(a++);(m&64512)==56320?f=((f&1023)<<10)+(m&1023)+65536:a--}c="\\"+f.toString(16).toUpperCase()+" "}else r.escapeEverything?im.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&n==l||l=="'"&&n==l)||i&&om.test(l)?c="\\"+l:c=l;s+=c}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(sm,function(h,g,y){return g&&g.length%2?h:(g||"")+y}),!i&&r.wrap?n+s+n:s};rs.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};rs.version="3.0.0";Hl.exports=rs});var is=q((mn,Ql)=>{"use strict";mn.__esModule=!0;mn.default=void 0;var am=Xl(Oi()),um=fn(),lm=Xl(Xt()),fm=De();function Xl(e){return e&&e.__esModule?e:{default:e}}function Yl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cm(e,t,r){return t&&Yl(e.prototype,t),r&&Yl(e,r),e}function dm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}function ns(e,t){return ns=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ns(e,t)}var pm=function(e){dm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=fm.CLASS,i._constructed=!0,i}var r=t.prototype;return r.valueToString=function(){return"."+e.prototype.valueToString.call(this)},cm(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,am.default)(i,{isIdentifier:!0});o!==i?((0,um.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(lm.default);mn.default=pm;Ql.exports=mn.default});var ss=q((gn,Kl)=>{"use strict";gn.__esModule=!0;gn.default=void 0;var hm=gm(Xt()),mm=De();function gm(e){return e&&e.__esModule?e:{default:e}}function bm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,os(e,t)}function os(e,t){return os=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},os(e,t)}var ym=function(e){bm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=mm.COMMENT,n}return t}(hm.default);gn.default=ym;Kl.exports=gn.default});var us=q((bn,Jl)=>{"use strict";bn.__esModule=!0;bn.default=void 0;var vm=wm(Xt()),xm=De();function wm(e){return e&&e.__esModule?e:{default:e}}function Sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,as(e,t)}function as(e,t){return as=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},as(e,t)}var _m=function(e){Sm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=xm.ID,i}var r=t.prototype;return r.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(vm.default);bn.default=_m;Jl.exports=bn.default});var Ii=q((yn,tf)=>{"use strict";yn.__esModule=!0;yn.default=void 0;var Tm=ef(Oi()),Em=fn(),km=ef(Xt());function ef(e){return e&&e.__esModule?e:{default:e}}function Zl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pm(e,t,r){return t&&Zl(e.prototype,t),r&&Zl(e,r),e}function Om(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ls(e,t)}function ls(e,t){return ls=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ls(e,t)}var Im=function(e){Om(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},r.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},Pm(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,Tm.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,Em.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}(km.default);yn.default=Im;tf.exports=yn.default});var cs=q((vn,rf)=>{"use strict";vn.__esModule=!0;vn.default=void 0;var Rm=Cm(Ii()),Am=De();function Cm(e){return e&&e.__esModule?e:{default:e}}function Lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}function fs(e,t){return fs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},fs(e,t)}var Mm=function(e){Lm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Am.TAG,n}return t}(Rm.default);vn.default=Mm;rf.exports=vn.default});var ps=q((xn,nf)=>{"use strict";xn.__esModule=!0;xn.default=void 0;var Nm=Wm(Xt()),Fm=De();function Wm(e){return e&&e.__esModule?e:{default:e}}function Dm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ds(e,t)}function ds(e,t){return ds=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ds(e,t)}var $m=function(e){Dm(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=Fm.STRING,n}return t}(Nm.default);xn.default=$m;nf.exports=xn.default});var ms=q((wn,of)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var Bm=qm(Pi()),Um=De();function qm(e){return e&&e.__esModule?e:{default:e}}function zm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hs(e,t)}function hs(e,t){return hs=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hs(e,t)}var Gm=function(e){zm(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type=Um.PSEUDO,i}var r=t.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(Bm.default);wn.default=Gm;of.exports=wn.default});var af=q((dw,sf)=>{sf.exports=function(t,r){return function(...n){return console.warn(r),t(...n)}}});var ws=q(Tn=>{"use strict";Tn.__esModule=!0;Tn.unescapeValue=xs;Tn.default=void 0;var Sn=vs(Oi()),jm=vs(Qo()),Vm=vs(Ii()),Hm=De(),gs;function vs(e){return e&&e.__esModule?e:{default:e}}function uf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ym(e,t,r){return t&&uf(e.prototype,t),r&&uf(e,r),e}function Xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ys(e,t)}function ys(e,t){return ys=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ys(e,t)}var _n=af(),Qm=/^('|")([^]*)\1$/,Km=_n(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),Jm=_n(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Zm=_n(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function xs(e){var t=!1,r=null,n=e,i=n.match(Qm);return i&&(r=i[1],n=i[2]),n=(0,jm.default)(n),n!==e&&(t=!0),{deprecatedUsage:t,unescaped:n,quoteMark:r}}function e0(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Zm();var t=xs(e.value),r=t.quoteMark,n=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=n,e.quoteMark=r,e}var Ri=function(e){Xm(t,e);function t(n){var i;return n===void 0&&(n={}),i=e.call(this,e0(n))||this,i.type=Hm.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:_n(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:_n(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 r=t.prototype;return r.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=bs[o],a=(0,Sn.default)(this._value,s);return a},r._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},r.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},r.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,Sn.default)(o,{isIdentifier:!0});if(u===o)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,c=bs[f],m=(0,Sn.default)(o,c);if(m.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},r.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},r._syncRawValue=function(){var i=(0,Sn.default)(this._value,bs[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},r._handleEscapes=function(i,o){if(this._constructed){var s=(0,Sn.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},r._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)},r._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=lf);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},r.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 l=this._spacesFor("value");o+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?o:-1;o+=f.length,o+=l.after.length;var c=this._spacesFor("insensitive");return o+=c.before.length,i==="insensitive"&&this.insensitive?o:-1},r.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=" "),lf(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Ym(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Jm()}},{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=xs(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Km(),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}(Vm.default);Tn.default=Ri;Ri.NO_QUOTE=null;Ri.SINGLE_QUOTE="'";Ri.DOUBLE_QUOTE='"';var bs=(gs={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},gs[null]={isIdentifier:!0},gs);function lf(e,t){return""+t.before+e+t.after}});var _s=q((En,ff)=>{"use strict";En.__esModule=!0;En.default=void 0;var t0=n0(Ii()),r0=De();function n0(e){return e&&e.__esModule?e:{default:e}}function i0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ss(e,t)}function Ss(e,t){return Ss=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ss(e,t)}var o0=function(e){i0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=r0.UNIVERSAL,n.value="*",n}return t}(t0.default);En.default=o0;ff.exports=En.default});var Es=q((kn,cf)=>{"use strict";kn.__esModule=!0;kn.default=void 0;var s0=u0(Xt()),a0=De();function u0(e){return e&&e.__esModule?e:{default:e}}function l0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ts(e,t)}function Ts(e,t){return Ts=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ts(e,t)}var f0=function(e){l0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=a0.COMBINATOR,n}return t}(s0.default);kn.default=f0;cf.exports=kn.default});var Ps=q((Pn,df)=>{"use strict";Pn.__esModule=!0;Pn.default=void 0;var c0=p0(Xt()),d0=De();function p0(e){return e&&e.__esModule?e:{default:e}}function h0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ks(e,t)}function ks(e,t){return ks=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ks(e,t)}var m0=function(e){h0(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type=d0.NESTING,n.value="&",n}return t}(c0.default);Pn.default=m0;df.exports=Pn.default});var hf=q((Ai,pf)=>{"use strict";Ai.__esModule=!0;Ai.default=g0;function g0(e){return e.sort(function(t,r){return t-r})}pf.exports=Ai.default});var Os=q(U=>{"use strict";U.__esModule=!0;U.combinator=U.word=U.comment=U.str=U.tab=U.newline=U.feed=U.cr=U.backslash=U.bang=U.slash=U.doubleQuote=U.singleQuote=U.space=U.greaterThan=U.pipe=U.equals=U.plus=U.caret=U.tilde=U.dollar=U.closeSquare=U.openSquare=U.closeParenthesis=U.openParenthesis=U.semicolon=U.colon=U.comma=U.at=U.asterisk=U.ampersand=void 0;var b0=38;U.ampersand=b0;var y0=42;U.asterisk=y0;var v0=64;U.at=v0;var x0=44;U.comma=x0;var w0=58;U.colon=w0;var S0=59;U.semicolon=S0;var _0=40;U.openParenthesis=_0;var T0=41;U.closeParenthesis=T0;var E0=91;U.openSquare=E0;var k0=93;U.closeSquare=k0;var P0=36;U.dollar=P0;var O0=126;U.tilde=O0;var I0=94;U.caret=I0;var R0=43;U.plus=R0;var A0=61;U.equals=A0;var C0=124;U.pipe=C0;var L0=62;U.greaterThan=L0;var M0=32;U.space=M0;var mf=39;U.singleQuote=mf;var N0=34;U.doubleQuote=N0;var F0=47;U.slash=F0;var W0=33;U.bang=W0;var D0=92;U.backslash=D0;var $0=13;U.cr=$0;var B0=12;U.feed=B0;var U0=10;U.newline=U0;var q0=9;U.tab=q0;var z0=mf;U.str=z0;var G0=-1;U.comment=G0;var j0=-2;U.word=j0;var V0=-3;U.combinator=V0});var yf=q(On=>{"use strict";On.__esModule=!0;On.default=Z0;On.FIELDS=void 0;var D=H0(Os()),Cr,me;function bf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return bf=function(){return e},e}function H0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=bf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}var Y0=(Cr={},Cr[D.tab]=!0,Cr[D.newline]=!0,Cr[D.cr]=!0,Cr[D.feed]=!0,Cr),X0=(me={},me[D.space]=!0,me[D.tab]=!0,me[D.newline]=!0,me[D.cr]=!0,me[D.feed]=!0,me[D.ampersand]=!0,me[D.asterisk]=!0,me[D.bang]=!0,me[D.comma]=!0,me[D.colon]=!0,me[D.semicolon]=!0,me[D.openParenthesis]=!0,me[D.closeParenthesis]=!0,me[D.openSquare]=!0,me[D.closeSquare]=!0,me[D.singleQuote]=!0,me[D.doubleQuote]=!0,me[D.plus]=!0,me[D.pipe]=!0,me[D.tilde]=!0,me[D.greaterThan]=!0,me[D.equals]=!0,me[D.dollar]=!0,me[D.caret]=!0,me[D.slash]=!0,me),Is={},gf="0123456789abcdefABCDEF";for(Ci=0;Ci<gf.length;Ci++)Is[gf.charCodeAt(Ci)]=!0;var Ci;function Q0(e,t){var r=t,n;do{if(n=e.charCodeAt(r),X0[n])return r-1;n===D.backslash?r=K0(e,r)+1:r++}while(r<e.length);return r-1}function K0(e,t){var r=t,n=e.charCodeAt(r+1);if(!Y0[n])if(Is[n]){var i=0;do r++,i++,n=e.charCodeAt(r+1);while(Is[n]&&i<6);i<6&&n===D.space&&r++}else r++;return r}var J0={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};On.FIELDS=J0;function Z0(e){var t=[],r=e.css.valueOf(),n=r,i=n.length,o=-1,s=1,a=0,u=0,l,f,c,m,h,g,y,w,_,O,E,I,x;function T(L,M){if(e.safe)r+=M,_=r.length-1;else throw e.error("Unclosed "+L,s,a-o,a)}for(;a<i;){switch(l=r.charCodeAt(a),l===D.newline&&(o=a,s+=1),l){case D.space:case D.tab:case D.newline:case D.cr:case D.feed:_=a;do _+=1,l=r.charCodeAt(_),l===D.newline&&(o=_,s+=1);while(l===D.space||l===D.newline||l===D.tab||l===D.cr||l===D.feed);x=D.space,m=s,c=_-o-1,u=_;break;case D.plus:case D.greaterThan:case D.tilde:case D.pipe:_=a;do _+=1,l=r.charCodeAt(_);while(l===D.plus||l===D.greaterThan||l===D.tilde||l===D.pipe);x=D.combinator,m=s,c=a-o,u=_;break;case D.asterisk:case D.ampersand:case D.bang:case D.comma:case D.equals:case D.dollar:case D.caret:case D.openSquare:case D.closeSquare:case D.colon:case D.semicolon:case D.openParenthesis:case D.closeParenthesis:_=a,x=l,m=s,c=a-o,u=_+1;break;case D.singleQuote:case D.doubleQuote:I=l===D.singleQuote?"'":'"',_=a;do for(h=!1,_=r.indexOf(I,_+1),_===-1&&T("quote",I),g=_;r.charCodeAt(g-1)===D.backslash;)g-=1,h=!h;while(h);x=D.str,m=s,c=a-o,u=_+1;break;default:l===D.slash&&r.charCodeAt(a+1)===D.asterisk?(_=r.indexOf("*/",a+2)+1,_===0&&T("comment","*/"),f=r.slice(a,_+1),w=f.split(`
|
|
4
|
+
`),y=w.length-1,y>0?(O=s+y,E=_-w[y].length):(O=s,E=o),x=D.comment,s=O,m=O,c=_-E):l===D.slash?(_=a,x=l,m=s,c=a-o,u=_+1):(_=Q0(r,a),x=D.word,m=s,c=_-o),u=_+1;break}t.push([x,s,a-o,m,c,a,u]),E&&(o=E,E=null),a=u}return t}});var kf=q((In,Ef)=>{"use strict";In.__esModule=!0;In.default=void 0;var eg=ht(Zo()),Rs=ht(ts()),tg=ht(is()),vf=ht(ss()),rg=ht(us()),ng=ht(cs()),As=ht(ps()),ig=ht(ms()),xf=Li(ws()),og=ht(_s()),Cs=ht(Es()),sg=ht(Ps()),ag=ht(hf()),N=Li(yf()),B=Li(Os()),ug=Li(De()),Te=fn(),pr,Ls;function Tf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Tf=function(){return e},e}function Li(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Tf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function ht(e){return e&&e.__esModule?e:{default:e}}function wf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lg(e,t,r){return t&&wf(e.prototype,t),r&&wf(e,r),e}var Fs=(pr={},pr[B.space]=!0,pr[B.cr]=!0,pr[B.feed]=!0,pr[B.newline]=!0,pr[B.tab]=!0,pr),fg=Object.assign({},Fs,(Ls={},Ls[B.comment]=!0,Ls));function Sf(e){return{line:e[N.FIELDS.START_LINE],column:e[N.FIELDS.START_COL]}}function _f(e){return{line:e[N.FIELDS.END_LINE],column:e[N.FIELDS.END_COL]}}function hr(e,t,r,n){return{start:{line:e,column:t},end:{line:r,column:n}}}function Lr(e){return hr(e[N.FIELDS.START_LINE],e[N.FIELDS.START_COL],e[N.FIELDS.END_LINE],e[N.FIELDS.END_COL])}function Ms(e,t){if(e)return hr(e[N.FIELDS.START_LINE],e[N.FIELDS.START_COL],t[N.FIELDS.END_LINE],t[N.FIELDS.END_COL])}function Mr(e,t){var r=e[t];if(typeof r=="string")return r.indexOf("\\")!==-1&&((0,Te.ensureObject)(e,"raws"),e[t]=(0,Te.unesc)(r),e.raws[t]===void 0&&(e.raws[t]=r)),e}function Ns(e,t){for(var r=-1,n=[];(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function cg(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,r){return r===e.indexOf(t)})}var dg=function(){function e(r,n){n===void 0&&(n={}),this.rule=r,this.options=Object.assign({lossy:!1,safe:!1},n),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,N.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Ms(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new eg.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Rs.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 n=this;return function(i,o){return typeof n.rule=="string"?new Error(i):n.rule.error(i,o)}},t.attribute=function(){var n=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[N.FIELDS.TYPE]!==B.closeSquare;)n.push(this.currToken),this.position++;if(this.currToken[N.FIELDS.TYPE]!==B.closeSquare)return this.expected("closing square bracket",this.currToken[N.FIELDS.START_POS]);var o=n.length,s={source:hr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[N.FIELDS.START_POS]};if(o===1&&!~[B.word].indexOf(n[0][N.FIELDS.TYPE]))return this.expected("attribute",n[0][N.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,c=!1;a<o;){var m=n[a],h=this.content(m),g=n[a+1];switch(m[N.FIELDS.TYPE]){case B.space:if(c=!0,this.options.lossy)break;if(f){(0,Te.ensureObject)(s,"spaces",f);var y=s.spaces[f].after||"";s.spaces[f].after=y+h;var w=(0,Te.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+h)}else u=u+h,l=l+h;break;case B.asterisk:if(g[N.FIELDS.TYPE]===B.equals)s.operator=h,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&g){u&&((0,Te.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+h;var _=(0,Te.getProp)(s,"raws","namespace")||null;_&&(s.raws.namespace+=h),f="namespace"}c=!1;break;case B.dollar:if(f==="value"){var O=(0,Te.getProp)(s,"raws","value");s.value+="$",O&&(s.raws.value=O+"$");break}case B.caret:g[N.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),c=!1;break;case B.combinator:if(h==="~"&&g[N.FIELDS.TYPE]===B.equals&&(s.operator=h,f="operator"),h!=="|"){c=!1;break}g[N.FIELDS.TYPE]===B.equals?(s.operator=h,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case B.word:if(g&&this.content(g)==="|"&&n[a+2]&&n[a+2][N.FIELDS.TYPE]!==B.equals&&!s.operator&&!s.namespace)s.namespace=h,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,Te.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+h;var E=(0,Te.getProp)(s,"raws","attribute")||null;E&&(s.raws.attribute+=h),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var I=(0,Te.unesc)(h),x=(0,Te.getProp)(s,"raws","value")||"",T=s.value||"";s.value=T+I,s.quoteMark=null,(I!==h||x)&&((0,Te.ensureObject)(s,"raws"),s.raws.value=(x||T)+h),f="value"}else{var L=h==="i"||h==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=L,(!L||h==="I")&&((0,Te.ensureObject)(s,"raws"),s.raws.insensitiveFlag=h),f="insensitive",u&&((0,Te.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,Te.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=h,s.raws.value&&(s.raws.value+=h))}c=!1;break;case B.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:m[N.FIELDS.START_POS]});var M=(0,xf.unescapeValue)(h),z=M.unescaped,X=M.quoteMark;s.value=z,s.quoteMark=X,f="value",(0,Te.ensureObject)(s,"raws"),s.raws.value=h,c=!1;break;case B.equals:if(!s.attribute)return this.expected("attribute",m[N.FIELDS.START_POS],h);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:m[N.FIELDS.START_POS]});s.operator=s.operator?s.operator+h:h,f="operator",c=!1;break;case B.comment:if(f)if(c||g&&g[N.FIELDS.TYPE]===B.space||f==="insensitive"){var J=(0,Te.getProp)(s,"spaces",f,"after")||"",he=(0,Te.getProp)(s,"raws","spaces",f,"after")||J;(0,Te.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=he+h}else{var ve=s[f]||"",ce=(0,Te.getProp)(s,"raws",f)||ve;(0,Te.ensureObject)(s,"raws"),s.raws[f]=ce+h}else l=l+h;break;default:return this.error('Unexpected "'+h+'" found.',{index:m[N.FIELDS.START_POS]})}a++}Mr(s,"attribute"),Mr(s,"namespace"),this.newNode(new xf.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(n){n<0&&(n=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Fs[this.currToken[N.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[N.FIELDS.TYPE]===B.comment){var u={};s&&(u.before=s,s=""),a=new vf.default({value:this.content(),source:Lr(this.currToken),sourceIndex:this.currToken[N.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<n);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new As.default({value:"",source:hr(l[N.FIELDS.START_LINE],l[N.FIELDS.START_COL],f[N.FIELDS.END_LINE],f[N.FIELDS.END_COL]),sourceIndex:l[N.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(n,i){var o=this;i===void 0&&(i=!1);var s="",a="";n.forEach(function(l){var f=o.lossySpace(l.spaces.before,i),c=o.lossySpace(l.rawSpaceBefore,i);s+=f+o.lossySpace(l.spaces.after,i&&f.length===0),a+=f+l.value+o.lossySpace(l.rawSpaceAfter,i&&c.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(n){return n===void 0&&(n=this.position),this.tokens[n+0]&&this.tokens[n+0][N.FIELDS.TYPE]===B.slash&&this.tokens[n+1]&&this.tokens[n+1][N.FIELDS.TYPE]===B.word&&this.tokens[n+2]&&this.tokens[n+2][N.FIELDS.TYPE]===B.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var n=this.content(this.tokens[this.position+1]),i=(0,Te.unesc)(n).toLowerCase(),o={};i!==n&&(o.value="/"+n+"/");var s=new Cs.default({value:"/"+i+"/",source:hr(this.currToken[N.FIELDS.START_LINE],this.currToken[N.FIELDS.START_COL],this.tokens[this.position+2][N.FIELDS.END_LINE],this.tokens[this.position+2][N.FIELDS.END_COL]),sourceIndex:this.currToken[N.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var n=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][N.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,l=a.rawSpace;l!==void 0&&(s.rawSpaceAfter+=l),s.spaces.after+=u}else o.forEach(function(x){return n.newNode(x)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var m;if(this.isNamedCombinator()?m=this.namedCombinator():this.currToken[N.FIELDS.TYPE]===B.combinator?(m=new Cs.default({value:this.content(),source:Lr(this.currToken),sourceIndex:this.currToken[N.FIELDS.START_POS]}),this.position++):Fs[this.currToken[N.FIELDS.TYPE]]||c||this.unexpected(),m){if(c){var h=this.convertWhitespaceNodesToSpace(c),g=h.space,y=h.rawSpace;m.spaces.before=g,m.rawSpaceBefore=y}}else{var w=this.convertWhitespaceNodesToSpace(c,!0),_=w.space,O=w.rawSpace;O||(O=_);var E={},I={spaces:{}};_.endsWith(" ")&&O.endsWith(" ")?(E.before=_.slice(0,_.length-1),I.spaces.before=O.slice(0,O.length-1)):_.startsWith(" ")&&O.startsWith(" ")?(E.after=_.slice(1),I.spaces.after=O.slice(1)):I.value=O,m=new Cs.default({value:" ",source:Ms(f,this.tokens[this.position-1]),sourceIndex:f[N.FIELDS.START_POS],spaces:E,raws:I})}return this.currToken&&this.currToken[N.FIELDS.TYPE]===B.space&&(m.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(m)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new Rs.default({source:{start:Sf(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},t.comment=function(){var n=this.currToken;this.newNode(new vf.default({value:this.content(),source:Lr(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},t.error=function(n,i){throw this.root.error(n,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[N.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[N.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[N.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[N.FIELDS.START_POS])},t.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[N.FIELDS.TYPE]===B.word)return this.position++,this.word(n);if(this.nextToken[N.FIELDS.TYPE]===B.asterisk)return this.position++,this.universal(n)},t.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new sg.default({value:this.content(),source:Lr(i),sourceIndex:i[N.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===ug.PSEUDO){var o=new Rs.default({source:{start:Sf(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[N.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[N.FIELDS.TYPE]===B.closeParenthesis&&i--,i?this.parse():(this.current.source.end=_f(this.currToken),this.current.parent.source.end=_f(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[N.FIELDS.TYPE]===B.openParenthesis&&i++,this.currToken[N.FIELDS.TYPE]===B.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;n?n.appendToPropertyAndEscape("value",u,u):this.newNode(new As.default({value:u,source:hr(a[N.FIELDS.START_LINE],a[N.FIELDS.START_COL],l[N.FIELDS.END_LINE],l[N.FIELDS.END_COL]),sourceIndex:a[N.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[N.FIELDS.START_POS])},t.pseudo=function(){for(var n=this,i="",o=this.currToken;this.currToken&&this.currToken[N.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[N.FIELDS.TYPE]===B.word)this.splitWord(!1,function(s,a){i+=s,n.newNode(new ig.default({value:i,source:Ms(o,n.currToken),sourceIndex:o[N.FIELDS.START_POS]})),a>1&&n.nextToken&&n.nextToken[N.FIELDS.TYPE]===B.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[N.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[N.FIELDS.START_POS])},t.space=function(){var n=this.content();this.position===0||this.prevToken[N.FIELDS.TYPE]===B.comma||this.prevToken[N.FIELDS.TYPE]===B.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[N.FIELDS.TYPE]===B.comma||this.nextToken[N.FIELDS.TYPE]===B.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},t.string=function(){var n=this.currToken;this.newNode(new As.default({value:this.content(),source:Lr(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},t.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new og.default({value:this.content(),source:Lr(o),sourceIndex:o[N.FIELDS.START_POS]}),n),this.position++},t.splitWord=function(n,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[B.dollar,B.caret,B.equals,B.word].indexOf(s[N.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[N.FIELDS.TYPE]===B.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Ns(a,".").filter(function(g){var y=a[g-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!y&&!w}),c=Ns(a,"#").filter(function(g){return a[g-1]!=="\\"}),m=Ns(a,"#{");m.length&&(c=c.filter(function(g){return!~m.indexOf(g)}));var h=(0,ag.default)(cg([0].concat(f,c)));h.forEach(function(g,y){var w=h[y+1]||a.length,_=a.slice(g,w);if(y===0&&i)return i.call(o,_,h.length);var O,E=o.currToken,I=E[N.FIELDS.START_POS]+h[y],x=hr(E[1],E[2]+g,E[3],E[2]+(w-1));if(~f.indexOf(g)){var T={value:_.slice(1),source:x,sourceIndex:I};O=new tg.default(Mr(T,"value"))}else if(~c.indexOf(g)){var L={value:_.slice(1),source:x,sourceIndex:I};O=new rg.default(Mr(L,"value"))}else{var M={value:_,source:x,sourceIndex:I};Mr(M,"value"),O=new ng.default(M)}o.newNode(O,n),n=null}),this.position++},t.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(n){switch(this.currToken[N.FIELDS.TYPE]){case B.space:this.space();break;case B.comment:this.comment();break;case B.openParenthesis:this.parentheses();break;case B.closeParenthesis:n&&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(n,i,o){if(Array.isArray(n)){var s=n.pop();n=n.join(", ")+" or "+s}var a=/^[aeiou]/.test(n[0])?"an":"a";return o?this.error("Expected "+a+" "+n+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+n+".",{index:i})},t.requiredSpace=function(n){return this.options.lossy?" ":n},t.optionalSpace=function(n){return this.options.lossy?"":n},t.lossySpace=function(n,i){return this.options.lossy?i?" ":"":n},t.parseParenthesisToken=function(n){var i=this.content(n);return n[N.FIELDS.TYPE]===B.space?this.requiredSpace(i):i},t.newNode=function(n,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),n.namespace=i,Mr(n,"namespace")),this.spaces&&(n.spaces.before=this.spaces,this.spaces=""),this.current.append(n)},t.content=function(n){return n===void 0&&(n=this.currToken),this.css.slice(n[N.FIELDS.START_POS],n[N.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(n){n===void 0&&(n=this.position+1);for(var i=n;i<this.tokens.length;)if(fg[this.tokens[i][N.FIELDS.TYPE]]){i++;continue}else return i;return-1},lg(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}();In.default=dg;Ef.exports=In.default});var Of=q((Rn,Pf)=>{"use strict";Rn.__esModule=!0;Rn.default=void 0;var pg=hg(kf());function hg(e){return e&&e.__esModule?e:{default:e}}var mg=function(){function e(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var t=e.prototype;return t._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},t._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},t._root=function(n,i){i===void 0&&(i={});var o=new pg.default(n,this._parseOptions(i));return o.root},t._parseOptions=function(n){return{lossy:this._isLossy(n)}},t._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(n,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(n,i)&&(f=u.toString(),n.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,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 n!="string"&&(a=o.toString(),n.selector=a),{transform:s,root:o,string:a}},t.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},t.astSync=function(n,i){return this._runSync(n,i).root},t.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},t.transformSync=function(n,i){return this._runSync(n,i).transform},t.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},e}();Rn.default=mg;Pf.exports=Rn.default});var If=q(ye=>{"use strict";ye.__esModule=!0;ye.universal=ye.tag=ye.string=ye.selector=ye.root=ye.pseudo=ye.nesting=ye.id=ye.comment=ye.combinator=ye.className=ye.attribute=void 0;var gg=mt(ws()),bg=mt(is()),yg=mt(Es()),vg=mt(ss()),xg=mt(us()),wg=mt(Ps()),Sg=mt(ms()),_g=mt(Zo()),Tg=mt(ts()),Eg=mt(ps()),kg=mt(cs()),Pg=mt(_s());function mt(e){return e&&e.__esModule?e:{default:e}}var Og=function(t){return new gg.default(t)};ye.attribute=Og;var Ig=function(t){return new bg.default(t)};ye.className=Ig;var Rg=function(t){return new yg.default(t)};ye.combinator=Rg;var Ag=function(t){return new vg.default(t)};ye.comment=Ag;var Cg=function(t){return new xg.default(t)};ye.id=Cg;var Lg=function(t){return new wg.default(t)};ye.nesting=Lg;var Mg=function(t){return new Sg.default(t)};ye.pseudo=Mg;var Ng=function(t){return new _g.default(t)};ye.root=Ng;var Fg=function(t){return new Tg.default(t)};ye.selector=Fg;var Wg=function(t){return new Eg.default(t)};ye.string=Wg;var Dg=function(t){return new kg.default(t)};ye.tag=Dg;var $g=function(t){return new Pg.default(t)};ye.universal=$g});var Lf=q(ae=>{"use strict";ae.__esModule=!0;ae.isNode=Ws;ae.isPseudoElement=Cf;ae.isPseudoClass=Qg;ae.isContainer=Kg;ae.isNamespace=Jg;ae.isUniversal=ae.isTag=ae.isString=ae.isSelector=ae.isRoot=ae.isPseudo=ae.isNesting=ae.isIdentifier=ae.isComment=ae.isCombinator=ae.isClassName=ae.isAttribute=void 0;var Ee=De(),Je,Bg=(Je={},Je[Ee.ATTRIBUTE]=!0,Je[Ee.CLASS]=!0,Je[Ee.COMBINATOR]=!0,Je[Ee.COMMENT]=!0,Je[Ee.ID]=!0,Je[Ee.NESTING]=!0,Je[Ee.PSEUDO]=!0,Je[Ee.ROOT]=!0,Je[Ee.SELECTOR]=!0,Je[Ee.STRING]=!0,Je[Ee.TAG]=!0,Je[Ee.UNIVERSAL]=!0,Je);function Ws(e){return typeof e=="object"&&Bg[e.type]}function gt(e,t){return Ws(t)&&t.type===e}var Rf=gt.bind(null,Ee.ATTRIBUTE);ae.isAttribute=Rf;var Ug=gt.bind(null,Ee.CLASS);ae.isClassName=Ug;var qg=gt.bind(null,Ee.COMBINATOR);ae.isCombinator=qg;var zg=gt.bind(null,Ee.COMMENT);ae.isComment=zg;var Gg=gt.bind(null,Ee.ID);ae.isIdentifier=Gg;var jg=gt.bind(null,Ee.NESTING);ae.isNesting=jg;var Ds=gt.bind(null,Ee.PSEUDO);ae.isPseudo=Ds;var Vg=gt.bind(null,Ee.ROOT);ae.isRoot=Vg;var Hg=gt.bind(null,Ee.SELECTOR);ae.isSelector=Hg;var Yg=gt.bind(null,Ee.STRING);ae.isString=Yg;var Af=gt.bind(null,Ee.TAG);ae.isTag=Af;var Xg=gt.bind(null,Ee.UNIVERSAL);ae.isUniversal=Xg;function Cf(e){return Ds(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 Qg(e){return Ds(e)&&!Cf(e)}function Kg(e){return!!(Ws(e)&&e.walk)}function Jg(e){return Rf(e)||Af(e)}});var Mf=q(Tt=>{"use strict";Tt.__esModule=!0;var $s=De();Object.keys($s).forEach(function(e){e==="default"||e==="__esModule"||e in Tt&&Tt[e]===$s[e]||(Tt[e]=$s[e])});var Bs=If();Object.keys(Bs).forEach(function(e){e==="default"||e==="__esModule"||e in Tt&&Tt[e]===Bs[e]||(Tt[e]=Bs[e])});var Us=Lf();Object.keys(Us).forEach(function(e){e==="default"||e==="__esModule"||e in Tt&&Tt[e]===Us[e]||(Tt[e]=Us[e])})});var Wf=q((An,Ff)=>{"use strict";An.__esModule=!0;An.default=void 0;var Zg=rb(Of()),eb=tb(Mf());function Nf(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Nf=function(){return e},e}function tb(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Nf();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}return r.default=e,t&&t.set(e,r),r}function rb(e){return e&&e.__esModule?e:{default:e}}var qs=function(t){return new Zg.default(t)};Object.assign(qs,eb);delete qs.__esModule;var nb=qs;An.default=nb;Ff.exports=An.default});var Df=q(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});Object.defineProperty(zs,"default",{enumerable:!0,get:()=>ib});function ib(e){return e.replace(/\\,/g,"\\2c ")}});var Bf=q((xw,$f)=>{"use strict";$f.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 js=q(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});function ob(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ob(Gs,{parseColor:()=>cb,formatColor:()=>db});var Uf=sb(Bf());function sb(e){return e&&e.__esModule?e:{default:e}}var ab=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,ub=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,rr=/(?:\d+|\d*\.\d+)%?/,Mi=/(?:\s*,\s*|\s+)/,qf=/\s*[,/]\s*/,nr=/var\(--(?:[^ )]*?)\)/,lb=new RegExp(`^(rgb)a?\\(\\s*(${rr.source}|${nr.source})(?:${Mi.source}(${rr.source}|${nr.source}))?(?:${Mi.source}(${rr.source}|${nr.source}))?(?:${qf.source}(${rr.source}|${nr.source}))?\\s*\\)$`),fb=new RegExp(`^(hsl)a?\\(\\s*((?:${rr.source})(?:deg|rad|grad|turn)?|${nr.source})(?:${Mi.source}(${rr.source}|${nr.source}))?(?:${Mi.source}(${rr.source}|${nr.source}))?(?:${qf.source}(${rr.source}|${nr.source}))?\\s*\\)$`);function cb(e,{loose:t=!1}={}){var r,n;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Uf.default)return{mode:"rgb",color:Uf.default[e].map(u=>u.toString())};let i=e.replace(ub,(u,l,f,c,m)=>["#",l,l,f,f,c,c,m?m+m:""].join("")).match(ab);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(lb))!==null&&o!==void 0?o:e.match(fb);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:(r=s[5])===null||r===void 0||(n=r.toString)===null||n===void 0?void 0:n.call(r)}}function db({mode:e,color:t,alpha:r}){let n=r!==void 0;return`${e}(${t.join(" ")}${n?` / ${r}`:""})`}});var Hs=q(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});function pb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}pb(Vs,{withAlphaValue:()=>hb,default:()=>mb});var Ni=js();function hb(e,t,r){if(typeof e=="function")return e({opacityValue:t});let n=(0,Ni.parseColor)(e,{loose:!0});return n===null?r:(0,Ni.formatColor)({...n,alpha:t})}function mb({color:e,property:t,variable:r}){let n=[].concat(t);if(typeof e=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,e({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=(0,Ni.parseColor)(e);return i===null?Object.fromEntries(n.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,e])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,(0,Ni.formatColor)({...i,alpha:`var(${r})`})]))}}});var Hf=q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});function gb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}gb(Ys,{pattern:()=>yb,withoutCapturing:()=>Gf,any:()=>jf,optional:()=>vb,zeroOrMore:()=>xb,nestedBrackets:()=>Vf,escape:()=>mr});var zf=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(zf.source);function Cn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function yb(e){return new RegExp(Cn(e),"g")}function Gf(e){return new RegExp(`(?:${Cn(e)})`,"g")}function jf(e){return`(?:${e.map(Cn).join("|")})`}function vb(e){return`(?:${Cn(e)})?`}function xb(e){return`(?:${Cn(e)})*`}function Vf(e,t,r=1){return Gf([mr(e),/[^\s]*/,r===1?`[^${mr(e)}${mr(t)}s]*`:jf([`[^${mr(e)}${mr(t)}s]*`,Vf(e,t,r-1)]),/[^\s]*/,mr(t)])}function mr(e){return e&&bb.test(e)?e.replace(zf,"\\$&"):e||""}});var Xf=q(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Object.defineProperty(Xs,"splitAtTopLevelOnly",{enumerable:!0,get:()=>_b});var wb=Sb(Hf());function Yf(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Yf=function(n){return n?r:t})(e)}function Sb(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Yf(t);if(r&&r.has(e))return r.get(e);var n={},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(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function*_b(e,t){let r=new RegExp(`[(){}\\[\\]${wb.escape(t)}]`,"g"),n=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(r)){let f=l[0]===t[s],c=s===u-1,m=f&&c;l[0]==="("&&n++,l[0]===")"&&n--,l[0]==="["&&n++,l[0]==="]"&&n--,l[0]==="{"&&n++,l[0]==="}"&&n--,f&&n===0&&(a===0&&(a=l.index),s++),m&&n===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 Kf=q(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});function Tb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Tb(Qs,{parseBoxShadowValue:()=>Ob,formatBoxShadowValue:()=>Ib});var Eb=Xf(),kb=new Set(["inset","inherit","initial","revert","unset"]),Pb=/\ +(?![^(]*\))/g,Qf=/^-?(\d+|\.\d+)(.*?)$/g;function Ob(e){return Array.from((0,Eb.splitAtTopLevelOnly)(e,",")).map(r=>{let n=r.trim(),i={raw:n},o=n.split(Pb),s=new Set;for(let a of o)Qf.lastIndex=0,!s.has("KEYWORD")&&kb.has(a)?(i.keyword=a,s.add("KEYWORD")):Qf.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 Ib(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 ic=q(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});function Rb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Rb(Js,{normalize:()=>ir,url:()=>ec,number:()=>Lb,percentage:()=>tc,length:()=>rc,lineWidth:()=>Fb,shadow:()=>Wb,color:()=>Db,image:()=>$b,gradient:()=>nc,position:()=>qb,familyName:()=>zb,genericName:()=>jb,absoluteSize:()=>Hb,relativeSize:()=>Xb});var Ab=js(),Cb=Kf(),Ks=["min","max","clamp","calc"],Zf=/,(?![^(]*\))/g,Fi=/_(?![^(]*\))/g;function ir(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(r=>/^url\(.*?\)$/.test(r)?r:ir(r,!1)).join(""):(e=e.replace(/([^\\])_+/g,(r,n)=>n+" ".repeat(r.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,r=>r.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function ec(e){return e.startsWith("url(")}function Lb(e){return!isNaN(Number(e))||Ks.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function tc(e){return e.split(Fi).every(t=>/%$/g.test(t)||Ks.some(r=>new RegExp(`^${r}\\(.+?%`).test(t)))}var Mb=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Jf=`(?:${Mb.join("|")})`;function rc(e){return e.split(Fi).every(t=>t==="0"||new RegExp(`${Jf}$`).test(t)||Ks.some(r=>new RegExp(`^${r}\\(.+?${Jf}`).test(t)))}var Nb=new Set(["thin","medium","thick"]);function Fb(e){return Nb.has(e)}function Wb(e){let t=(0,Cb.parseBoxShadowValue)(ir(e));for(let r of t)if(!r.valid)return!1;return!0}function Db(e){let t=0;return e.split(Fi).every(n=>(n=ir(n),n.startsWith("var(")?!0:(0,Ab.parseColor)(n,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function $b(e){let t=0;return e.split(Zf).every(n=>(n=ir(n),n.startsWith("var(")?!0:ec(n)||nc(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(t++,!0):!1))?t>0:!1}var Bb=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function nc(e){e=ir(e);for(let t of Bb)if(e.startsWith(`${t}(`))return!0;return!1}var Ub=new Set(["center","top","right","bottom","left"]);function qb(e){let t=0;return e.split(Fi).every(n=>(n=ir(n),n.startsWith("var(")?!0:Ub.has(n)||rc(n)||tc(n)?(t++,!0):!1))?t>0:!1}function zb(e){let t=0;return e.split(Zf).every(n=>(n=ir(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(t++,!0)))?t>0:!1}var Gb=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function jb(e){return Gb.has(e)}var Vb=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Hb(e){return Vb.has(e)}var Yb=new Set(["larger","smaller"]);function Xb(e){return Yb.has(e)}});var dc=q(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});function Qb(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}Qb(ta,{updateAllClasses:()=>Zb,asValue:()=>Mn,parseColorFormat:()=>Zs,asColor:()=>lc,asLookupValue:()=>fc,coerceValue:()=>ny});var Kb=ea(Wf()),Jb=ea(Df()),oc=Hs(),Ze=ic(),sc=ea($o());function ea(e){return e&&e.__esModule?e:{default:e}}function Zb(e,t){return(0,Kb.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Jb.default)(o.raws.value))})}).processSync(e)}function uc(e,t){if(!Ln(e))return;let r=e.slice(1,-1);if(t(r))return(0,Ze.normalize)(r)}function ey(e,t={},r){let n=t[e];if(n!==void 0)return(0,sc.default)(n);if(Ln(e)){let i=uc(e,r);return i===void 0?void 0:(0,sc.default)(i)}}function Mn(e,t={},{validate:r=()=>!0}={}){var n;let i=(n=t.values)===null||n===void 0?void 0:n[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?ey(e.slice(1),t.values,r):uc(e,r)}function Ln(e){return e.startsWith("[")&&e.endsWith("]")}function ty(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Zs(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:r=1})=>t.replace("<alpha-value>",r)}return e}function lc(e,t={},{tailwindConfig:r={}}={}){var n;if(((n=t.values)===null||n===void 0?void 0:n[e])!==void 0){var i;return Zs((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=ty(e);if(s!==void 0){var a,u,l,f;let c=(f=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&f!==void 0?f:Ln(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=Zs(c),Ln(s)?(0,oc.withAlphaValue)(c,s.slice(1,-1)):((u=r.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,oc.withAlphaValue)(c,r.theme.opacity[s]))}return Mn(e,t,{validate:Ze.color})}function fc(e,t={}){var r;return(r=t.values)===null||r===void 0?void 0:r[e]}function bt(e){return(t,r)=>Mn(t,r,{validate:e})}var cc={any:Mn,color:lc,url:bt(Ze.url),image:bt(Ze.image),length:bt(Ze.length),percentage:bt(Ze.percentage),position:bt(Ze.position),lookup:fc,"generic-name":bt(Ze.genericName),"family-name":bt(Ze.familyName),number:bt(Ze.number),"line-width":bt(Ze.lineWidth),"absolute-size":bt(Ze.absoluteSize),"relative-size":bt(Ze.relativeSize),shadow:bt(Ze.shadow)},ac=Object.keys(cc);function ry(e,t){let r=e.indexOf(t);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function ny(e,t,r,n){if(Ln(t)){let i=t.slice(1,-1),[o,s]=ry(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!ac.includes(o))return[];if(s.length>0&&ac.includes(o))return[Mn(`[${s}]`,r),o]}for(let i of[].concat(e)){let o=cc[i](t,r,{tailwindConfig:n});if(o!==void 0)return[o,i]}return[]}});var pc=q(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});Object.defineProperty(ra,"default",{enumerable:!0,get:()=>iy});function iy(e){return typeof e=="function"?e({}):e}});var yc=q(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});Object.defineProperty(ia,"default",{enumerable:!0,get:()=>Ty});var oy=gr($o()),sy=gr(xl()),ay=gr(wl()),uy=gr(qo()),ly=gr(_l()),gc=Tl(),hc=El(),fy=Pl(),cy=gr(Ol()),dy=Il(),py=dc(),hy=Hs(),my=gr(pc());function gr(e){return e&&e.__esModule?e:{default:e}}function Nr(e){return typeof e=="function"}function Nn(e){return typeof e=="object"&&e!==null}function Fn(e,...t){let r=t.pop();for(let n of t)for(let i in n){let o=r(e[i],n[i]);o===void 0?Nn(e[i])&&Nn(n[i])?e[i]=Fn(e[i],n[i],r):e[i]=n[i]:e[i]=o}return e}var na={colors:ly.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,r)=>{let n=(0,oy.default)(e[r]);return n!==void 0&&(t[`-${r}`]=n),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,r)=>({...t,[`screen-${r}`]:e[r]}),{})}};function gy(e,...t){return Nr(e)?e(...t):e}function by(e){return e.reduce((t,{extend:r})=>Fn(t,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function yy(e){return{...e.reduce((t,r)=>(0,gc.defaults)(t,r),{}),extend:by(e)}}function mc(e,t){if(Array.isArray(e)&&Nn(e[0]))return e.concat(t);if(Array.isArray(t)&&Nn(t[0])&&Nn(e))return[e,...t];if(Array.isArray(t))return t}function vy({extend:e,...t}){return Fn(t,e,(r,n)=>!Nr(r)&&!n.some(Nr)?Fn({},r,...n,mc):(i,o)=>Fn({},...[r,...n].map(s=>gy(s,i,o)),mc))}function*xy(e){let t=(0,hc.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=e.match(r);if(n!==null){let[,i,o]=n,s=(0,hc.toPath)(i);s.alpha=o,yield s}}function wy(e){let t=(r,n)=>{for(let i of xy(r)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Nr(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,na):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,py.parseColorFormat)(s);return(0,hy.withAlphaValue)(a,i.alpha,(0,my.default)(a))}return(0,cy.default)(s)?(0,dy.cloneDeep)(s):s}}return n};return Object.assign(t,{theme:t,...na}),Object.keys(e).reduce((r,n)=>(r[n]=Nr(e[n])?e[n](t,na):e[n],r),{})}function bc(e){let t=[];return e.forEach(r=>{t=[...t,r];var n;let i=(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...bc([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function Sy(e){return[...e].reduceRight((r,n)=>Nr(n)?n({corePlugins:r}):(0,ay.default)(n,r),sy.default)}function _y(e){return[...e].reduceRight((r,n)=>[...r,...n],[])}function Ty(e){let t=[...bc(e),{prefix:"",important:!1,separator:":",variantOrder:uy.default.variantOrder}];var r,n;return(0,fy.normalizeConfig)((0,gc.defaults)({theme:wy(vy(yy(t.map(i=>(r=i==null?void 0:i.theme)!==null&&r!==void 0?r:{})))),corePlugins:Sy(t.map(i=>i.corePlugins)),plugins:_y(e.map(i=>(n=i==null?void 0:i.plugins)!==null&&n!==void 0?n:[]))},...t))}});var vc={};jr(vc,{default:()=>Ey});var Ey,xc=ur(()=>{Ey={yellow:e=>e}});var Tc=q(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});function ky(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}ky(oa,{flagEnabled:()=>Iy,issueFlagNotices:()=>Ry,default:()=>Ay});var Py=_c((xc(),Vr(vc))),Oy=_c((wi(),Vr(xi)));function _c(e){return e&&e.__esModule?e:{default:e}}var wc={optimizeUniversalDefaults:!1},Wn={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Iy(e,t){if(Wn.future.includes(t)){var r,n,i;return e.future==="all"||((i=(n=e==null||(r=e.future)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:wc[t])!==null&&i!==void 0?i:!1)}if(Wn.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:wc[t])!==null&&a!==void 0?a:!1)}return!1}function Sc(e){if(e.experimental==="all")return Wn.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(r=>Wn.experimental.includes(r)&&e.experimental[r])}function Ry(e){if(process.env.JEST_WORKER_ID===void 0&&Sc(e).length>0){let t=Sc(e).map(r=>Py.default.yellow(r)).join(", ");Oy.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 Ay=Wn});var kc=q(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});Object.defineProperty(sa,"default",{enumerable:!0,get:()=>Ec});var Cy=My(qo()),Ly=Tc();function My(e){return e&&e.__esModule?e:{default:e}}function Ec(e){var t;let r=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Cy.default]).slice().reverse().flatMap(o=>Ec(typeof o=="function"?o():o)),n={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(n).filter(o=>(0,Ly.flagEnabled)(e,o)).map(o=>n[o]);return[e,...i,...r]}});var Oc=q(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});Object.defineProperty(aa,"default",{enumerable:!0,get:()=>Wy});var Ny=Pc(yc()),Fy=Pc(kc());function Pc(e){return e&&e.__esModule?e:{default:e}}function Wy(...e){let[,...t]=(0,Fy.default)(e[0]);return(0,Ny.default)([...e,...t])}});var Rc=q((Lw,Ic)=>{var ua=Oc();Ic.exports=(ua.__esModule?ua:{default:ua}).default});var iv={};jr(iv,{default:()=>ka,init:()=>su});module.exports=Vr(iv);var Da=ct(require("linebreak"),1);var Hr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dd=Hr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),pd=Hr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),hd=Hr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),md=Hr((e,t)=>{t.exports=["Hz","kHz"]}),gd=Hr((e,t)=>{t.exports=["s","ms"]}),bd=dd(),Ma=pd(),Na=hd(),Fa=md(),Wa=gd();function qi(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(yd(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Ui(e),this.unit="%";return}var t=xd(e);if(!t){this.type="number",this.value=Ui(e);return}this.type=Sd(t),this.value=Ui(e.substr(0,e.length-t.length)),this.unit=t}qi.prototype.valueOf=function(){return this.value};qi.prototype.toString=function(){return this.value+(this.unit||"")};function wt(e){return new qi(e)}function yd(e){var t=e.match(/\./g);return t?t.length:0}function Ui(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var vd=[].concat(Ma,Fa,bd,Na,Wa);function xd(e){var t=e.match(/\D+$/),r=t&&t[0];if(r&&vd.indexOf(r)===-1)throw new Error("Invalid unit: "+r);return r}var wd=Object.assign(Hn(Ma,"angle"),Hn(Fa,"frequency"),Hn(Na,"resolution"),Hn(Wa,"time"));function Hn(e,t){return Object.fromEntries(e.map(r=>[r,t]))}function Sd(e){return wd[e]||"length"}function _r(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function $a(e){return/^class\s/.test(e.toString())}function ji(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function Ba(e){return typeof e=="function"||ji(e)}function Ua(e){return"dangerouslySetInnerHTML"in e}function qa(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),r=[];for(let n=0;n<t.length;n++){let i=t[n];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&r.length&&typeof r[r.length-1]=="string"?r[r.length-1]+=i:r.push(i))}return r}function Y(e,t,r,n,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 wt(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*n._viewportWidth/100);case"vh":return~~(o.value*n._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return lr(e);if(o.type==="percentage"&&i)return o.value/100*r}}catch{}}function lr(e){let t=new wt(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 Yr(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 Ve(e,t,r,n){let i=t[e];if(typeof i>"u"){if(n&&typeof e<"u")throw new Error(`Invalid value for CSS property "${n}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=r}return i}var zi,Gi,za=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),Sr=new Map,_d=500;function Me(e,t,r){let n=`${t}:${r||""}:${e}`;if(Sr.has(n))return Sr.get(n);if(!zi||!Gi){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");zi=new Intl.Segmenter(r,{granularity:"word"}),Gi=new Intl.Segmenter(r,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Gi.segment(e)].map(o=>o.segment);else{let o=[...zi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let l=a===0?"":s.pop(),f=a===o.length-1?"":o[a+1];s.push(l+"\xA0"+f),a+=2}else s.push(u),a++}i=s}if(Sr.size>=_d){let o=Sr.keys().next().value;Sr.delete(o)}return Sr.set(n,i),i}function A(e,t,r){let n="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(n+=` ${i}="${o}"`);return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}/>`}function Ga(e=20){let t=new Map;function r(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function n(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:n,get:r,clear:i}}function Tr(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Yn(e){return typeof e=="string"}function ja(e){return typeof e=="number"}function Va(e){return typeof e>"u"}function Gt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Jt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let r=parseFloat(e.slice(0,-1));if(isNaN(r)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${r}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Ha(e,t){if(t==="break-all")return{words:Me(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Me(e,"word"),requiredBreaks:[]};let r=new Da.default(e),n=0,i=r.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(n,i.position);o.push(a),i.required?s.push(!0):s.push(!1),n=i.position,i=r.nextBreak()}return{words:o,requiredBreaks:s}}var Ya=e=>e.replaceAll(/([A-Z])/g,(t,r)=>`-${r.toLowerCase()}`);function jt(e,t=","){let r=[],n=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])&&(r.push(e.slice(n,o).trim()),n=o+1);return r.push(e.slice(n).trim()),r}function su(e){return Promise.resolve().then(()=>(to(),eo)).then(t=>t.init(e))}function Zt(){return Promise.resolve().then(()=>(to(),eo)).then(e=>e.getYoga())}var au=Symbol.for("react.fragment");var Jn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;var Cd=new Set([301,302,303,307,308]);function ro(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[r,n,i]=t;return r===0||r===10||r===100&&n>=64&&n<=127||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===0&&i===0||r===192&&n===168||r===198&&(n===18||n===19)||r>=224}function Ld(e){let t=e,r=t.indexOf("%");r!==-1&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=s=>{if(s==="")return[];let a=[],u=s.split(":");for(let l=0;l<u.length;l++){let f=u[l];if(f.includes(".")){if(l!==u.length-1||!Jn.test(f))return null;let[c,m,h,g]=f.split(".").map(y=>Number.parseInt(y,10));if([c,m,h,g].some(y=>!Number.isInteger(y)||y<0||y>255))return null;a.push(c<<8|m,h<<8|g);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;a.push(Number.parseInt(f,16))}return a},o=i(n[0]);if(o===null)return null;if(n.length===2){let s=i(n[1]);if(s===null)return null;let a=8-o.length-s.length;return a<0?null:[...o,...new Array(a).fill(0),...s]}return o.length===8?o:null}function Md(e){let t=a=>e.slice(0,a).every(u=>u===0);if(!(t(6)||t(5)&&e[5]===65535||t(4)&&e[4]===65535&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===0||e[0]===100&&e[1]===65435&&e[2]===1))return null;let n=e[6]>>8&255,i=e[6]&255,o=e[7]>>8&255,s=e[7]&255;return`${n}.${i}.${o}.${s}`}function lu(e){let t=Ld(e);if(t===null)return!0;let r=Md(t);return r?ro(r):!!(t.every(n=>n===0)||t.slice(0,7).every(n=>n===0)&&t[7]===1||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280||t[0]===8193&&t[1]===3512)}function Nd(e){let t=e.toLowerCase().replace(/^\[|\]$/g,"");return Jn.test(t)?ro(t):t.includes(":")?lu(t):!0}function fu(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!=="http:"&&t.protocol!=="https:")return null;let r=t.hostname.toLowerCase().replace(/\.+$/,"");return r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1)),r?{url:t,host:r}:null}function Fd(e){let t=fu(e);if(!t)return!0;let{host:r}=t;return r==="localhost"||r.endsWith(".localhost")||r==="local"||r.endsWith(".local")||r==="internal"||r.endsWith(".internal")?!0:Jn.test(r)?ro(r):r.includes(":")?lu(r):!1}function Kn(e){return new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}function Wd(e){if(Fd(e))throw Kn(e)}var Or;async function Dd(){if(Or!==void 0)return Or;if(typeof window<"u")return Or=null,null;try{let t=await new Function("s","return import(s)")("node:dns/promises");return Or=(r,n)=>t.lookup(r,n),Or}catch{return Or=null,null}}async function $d(e,t){Wd(e);let r=fu(e);if(!r)throw Kn(e);let{host:n}=r;if(Jn.test(n)||n.includes(":"))return;let i=t&&"lookup"in t?t.lookup:await Dd();if(!i)return;let o;try{o=await i(n,{all:!0})}catch{throw new Error(`Can't resolve image host: ${e}`)}if(o.length===0)throw new Error(`Can't resolve image host: ${e}`);for(let{address:s}of o)if(Nd(s))throw Kn(e)}async function uu(e){try{e.body&&typeof e.body.cancel=="function"?await e.body.cancel():typeof e.arrayBuffer=="function"&&await e.arrayBuffer()}catch{}}async function cu(e,t){let r=(t==null?void 0:t.fetch)??globalThis.fetch,n=e;for(let i=0;i<=10;i++){await $d(n,t);let o=await r(n,{redirect:"manual"});if(o.type==="opaqueredirect")throw await uu(o),Kn(n);let s=o.headers.get("location");if(Cd.has(o.status)&&s){await uu(o),n=new URL(s,n).href;continue}return o}throw new Error(`Image source redirected too many times (SSRF protection): ${e}`)}var Bd="image/avif",Zn="image/webp",ei="image/apng",ti="image/png",ri="image/jpeg",ni="image/gif",no="image/svg+xml";function hu(e){let t=new DataView(e),r=4,n=t.byteLength;for(;r<n;){let i=t.getUint16(r,!1);if(i>n)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+r);if(o===192||o===193||o===194)return[t.getUint16(i+7+r,!1),t.getUint16(i+5+r,!1)];r+=i+2}throw new TypeError("Invalid JPEG")}function mu(e){let t=new DataView(e),r=new Uint8Array(e);if(t.byteLength<20||t.getUint32(0)!==1380533830||t.getUint32(8)!==1464156752)throw new TypeError("Invalid WebP");let n=t.getUint32(4,!0)+8;if(n<20||n>t.byteLength)throw new TypeError("Invalid WebP");let i=12;for(;i+8<=n;){let o=t.getUint32(i),s=t.getUint32(i+4,!0),a=i+8,u=a+s;if(u>n)throw new TypeError("Invalid WebP");if(o===1448097824){if(s<10||r[a+3]!==157||r[a+4]!==1||r[a+5]!==42)throw new TypeError("Invalid WebP");let l=t.getUint16(a+6,!0)&16383,f=t.getUint16(a+8,!0)&16383;if(!l||!f)throw new TypeError("Invalid WebP");return[l,f]}if(o===1448097868){if(s<5||r[a]!==47)throw new TypeError("Invalid WebP");let l=t.getUint32(a+1,!0);return[(l&16383)+1,(l>>>14&16383)+1]}if(o===1448097880){if(s<10)throw new TypeError("Invalid WebP");return[r[a+4]+(r[a+5]<<8)+(r[a+6]<<16)+1,r[a+7]+(r[a+8]<<8)+(r[a+9]<<16)+1]}i=u+s%2}throw new TypeError("Invalid WebP")}function gu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function bu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=Ga(500),Qr=new Map,Ud=[ti,ei,ri,ni,no,Zn],qd=/<svg[^>]*>/i,zd=/viewBox=['"]([^'"]+)['"]/,Gd=/width=['"](\d*\.?\d+)['"]/,jd=/height=['"](\d*\.?\d+)['"]/;function Vd(e){let t=new Uint8Array(e),r=32768,n="";for(let i=0;i<t.length;i+=r){let o=t.subarray(i,Math.min(i+r,t.length));n+=String.fromCharCode(...o)}return btoa(n)}function Hd(e){let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}function du(e,t){let r=t.match(qd);if(!r)throw new Error(`Failed to parse SVG from ${e}`);let n=r[0],i=zd.exec(n),o=Gd.exec(n),s=jd.exec(n),a=i?Tr(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],l=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/l]:s?[+s[1]*l,+s[1]]:[u[0],u[1]]}function pu(e){let t,r=Yd(new Uint8Array(e));switch(r){case ti:case ei:t=bu(e);break;case ni:t=gu(e);break;case ri:t=hu(e);break;case Zn:t=mu(e);break}if(!Ud.includes(r))throw new Error(`Unsupported image type: ${r||"unknown"}`);return[`data:${r};base64,${Vd(e)}`,t]}async function Ir(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[o,s]=pu(e);return[o,...s]}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 o;try{o=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:s,encodingType:a,dataString:u}=o;if(s===no){let l=a==="base64"?atob(u):decodeURIComponent(u.replace(/ /g,"%20")),f=a==="base64"?e:`data:image/svg+xml;base64,${btoa(l)}`,c=du(e,l);return At.set(e,[f,...c]),[f,...c]}else if(a==="base64"){let l,f=Hd(u);switch(s){case ti:case ei:l=bu(f);break;case ni:l=gu(f);break;case ri:l=hu(f);break;case Zn:l=mu(f);break}return At.set(e,[e,...l]),[e,...l]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Qr.has(e))return Qr.get(e);let t=At.get(e);if(t)return t;let r=e,i=(typeof window>"u"?()=>cu(r):()=>fetch(r))().then(o=>{let s=o.headers.get("content-type");return s==="image/svg+xml"||s==="application/svg+xml"?o.text():o.arrayBuffer()}).then(o=>{if(typeof o=="string")try{let u=`data:image/svg+xml;base64,${btoa(o)}`,l=du(r,o);return[u,...l]}catch(u){throw new Error(`Failed to parse SVG image: ${u.message}`)}let[s,a]=pu(o);return[s,...a]}).then(o=>(At.set(r,o),o)).catch(o=>{if(o instanceof Error&&o.message.includes("SSRF protection"))throw o;return console.error(`Can't load image ${r}: `+o.message),At.set(r,[]),[]});return Qr.set(r,i),i}function Yd(e){return[255,216,255].every((t,r)=>e[r]===t)?ri:[137,80,78,71,13,10,26,10].every((t,r)=>e[r]===t)?Xd(e)?ei:ti:[71,73,70,56].every((t,r)=>e[r]===t)?ni:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,r)=>!t||e[r]===t)?Zn:[60,63,120,109,108].every((t,r)=>e[r]===t)?no:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,r)=>!t||e[r]===t)?Bd:null}function Xd(e){let t=new DataView(e.buffer),r,n,i=8,o=!1;for(;!o&&r!=="IEND"&&i<e.length;){n=t.getUint32(i);let s=e.subarray(i+4,i+8);r=String.fromCharCode(...s),o=r==="acTL",i+=12+n}return o}var io={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"},Qd=/[\r\n%#()<>?[\\\]^`{|}"']/g;function ii(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>ii(l,t)).join("");if(typeof e!="object")return String(e);let r=e.type;if(r==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),(l==="href"||l==="xlinkHref")&&r==="image"?` ${io[l]||l}="${At.get(f)[0]}"`:` ${io[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${Ya(l)}:${f}`).join(";")}"`:"";return r===au?ii(n,s):`<${r}${a}${u}>${ii(n,s)}</${r}>`}async function yu(e){let t=new Set,r=n=>{if(n&&_r(n)){if(Array.isArray(n)){n.forEach(i=>r(i));return}else if(typeof n=="object")if(n.type==="image"){let i=n.props.href||n.props.xlinkHref;i&&(t.has(i)||t.add(i))}else n.type==="img"&&(t.has(n.props.src)||t.add(n.props.src));Array.isArray(n.props.children)?n.props.children.map(i=>r(i)):r(n.props.children)}};return r(e),Promise.all(Array.from(t).map(n=>Ir(n)))}async function vu(e,t){let{viewBox:r,viewbox:n,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};r||=n,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=Tr(r),m=c?c[3]/c[2]:null;return i=i||m&&o?o/m:null,o=o||m&&i?i*m:null,l.width=i,l.height=o,r&&(l.viewBox=r),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([h,g])=>(typeof g=="string"&&g.toLowerCase()==="currentcolor"&&(g=f),` ${io[h]||h}="${g}"`)).join("")}>${ii(u,f)}</svg>`.replace(Qd,encodeURIComponent)}`}var dt="flex",xu={p:{display:dt,marginTop:"1em",marginBottom:"1em"},div:{display:dt},blockquote:{display:dt,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:dt,textAlign:"center"},hr:{display:dt,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:dt,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:dt,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:dt,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:dt,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:dt,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:dt,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:dt,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var Kd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","fontFeatureSettings","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function oo(e){let t={};for(let r in e)(Kd.has(r)||r.startsWith("--"))&&(t[r]=e[r]);return t}var _t=require("css-to-react-native"),Cu=require("css-background-parser"),Lu=require("css-box-shadow"),Mu=ct(require("parse-css-color"),1);var wu=ct(require("postcss-value-parser"),1);function Jd(e,t){try{let r=new wt(e);switch(r.unit){case"px":return{absolute:r.value};case"em":return{absolute:r.value*t};case"rem":return{absolute:r.value*16};case"%":return{relative:r.value};default:return{}}}catch{return{}}}function so(e,t,r){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 n=Jd(e,t);return n.absolute?{[r?"xAbsolute":"yAbsolute"]:n.absolute}:n.relative?{[r?"xRelative":"yRelative"]:n.relative}:{}}}}function ao(e,t){if(typeof e=="number")return{xAbsolute:e};let r;try{r=(0,wu.default)(e).nodes.filter(n=>n.type==="word").map(n=>n.value)}catch{return{}}return r.length===1?so(r[0],t,!0):r.length===2?((r[0]==="top"||r[0]==="bottom"||r[1]==="left"||r[1]==="right")&&r.reverse(),{...so(r[0],t,!0),...so(r[1],t,!1)}):{}}var Su=require("css-to-react-native");function Kr(e,t){let r=(0,Su.getPropertyName)(`mask-${t}`);return e[r]||e[`WebkitM${r.substring(1)}`]}function _u(e){let t=e.maskImage||e.WebkitMaskImage,r={position:Kr(e,"position")||"0% 0%",size:Kr(e,"size")||"100% 100%",repeat:Kr(e,"repeat")||"repeat",origin:Kr(e,"origin")||"border-box",clip:Kr(e,"origin")||"border-box"};return jt(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...r}))}var Zd={round:1,squircle:2,square:1/0,bevel:0,scoop:-1,notch:-1/0};function uo(e){let t=e.trim().toLowerCase(),r=Zd[t];if(typeof r<"u")return r;let n=t.match(/^superellipse\(\s*(-?infinity|[-+]?(?:\d*\.)?\d+(?:e[-+]?\d+)?)\s*\)$/);if(!n)throw new Error('Invalid corner shape value: "'+e+'".');if(n[1]==="infinity")return 1/0;if(n[1]==="-infinity")return-1/0;let i=Number(n[1]);if(!Number.isFinite(i))throw new Error('Invalid corner shape value: "'+e+'".');return i}function oi(e,t=4){let r=e.match(/superellipse\([^)]*\)|[^\s]+/gi)||[];if(r.length<1||r.length>t)throw new Error('Invalid corner shape value: "'+e+'".');for(let n of r)uo(n);return r}var Eu=ct(require("parse-css-color"),1);var Tu={brightness:1,contrast:1,grayscale:1,invert:1,opacity:1,saturate:1,sepia:1};function ku(e,t,r="black"){if(e==="none")return[];if(typeof e!="string")throw new Error('Invalid `backdropFilter` value: "'+e+'".');let n=jt(e,/\s/).filter(Boolean);if(!n.length)throw new Error('Invalid `backdropFilter` value: "'+e+'".');return n.map(i=>{let o=i.match(/^([a-z-]+)\((.*)\)$/i);if(!o)throw new Error("Invalid filter function in `backdropFilter`.");let s=o[1].toLowerCase(),a=o[2].trim();if(s==="blur"){let u=a?si(a,t,"blur()"):0;if(u<0)throw new Error("Invalid `blur()` radius in `backdropFilter`.");return{type:"blur",value:u}}if(s==="hue-rotate"){let u=a==="0"||!a?0:lr(a);if(typeof u>"u")throw new Error("Invalid `hue-rotate()` angle in `backdropFilter`.");return{type:"hue-rotate",value:u}}if(s==="drop-shadow")return ep(a,t,r);if(s in Tu){let u=s,l=a?tp(a,`${u}()`):Tu[u],f=["grayscale","invert","opacity","sepia"].includes(u)?Math.min(l,1):l;return{type:u,value:f}}throw new Error(`Unsupported \`${s}()\` in \`backdropFilter\`.`)})}function ep(e,t,r){let n=jt(e,/\s/).filter(Boolean),i=r,o=[];for(let l of n)(0,Eu.default)(l)?i=l:o.push(l);if(o.length<2||o.length>3)throw new Error("Invalid `drop-shadow()` value in `backdropFilter`.");let s=si(o[0],t,"drop-shadow()"),a=si(o[1],t,"drop-shadow()"),u=o[2]?si(o[2],t,"drop-shadow()"):0;if(u<0)throw new Error("Invalid `drop-shadow()` blur radius in `backdropFilter`.");return{type:"drop-shadow",offsetX:s,offsetY:a,blurRadius:u,color:i}}function si(e,t,r){let n=Y(e,t.fontSize,0,t);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`${r}\` for \`backdropFilter\`.`);return n}function tp(e,t){let r=e.match(/^([+-]?(?:\d+\.?\d*|\.\d+))%$/),n=r?Number(r[1])/100:Number(e);if(!Number.isFinite(n)||n<0)throw new Error(`Invalid amount \`${e}\` in \`${t}\` for \`backdropFilter\`.`);return n}var lo=ct(require("postcss-value-parser"),1);function Pu(e){let t={},r={};for(let n in e)n.startsWith("--")?t[n]=String(e[n]):r[n]=e[n];return{variables:t,remainingStyle:r}}function Ou(e,t){return{...e,...t}}function Zr(e,t,r=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let n=(0,lo.default)(e),i=!1;if(n.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=rp(o);if(!s)return;let{varName:a,fallback:u}=s;if(r.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?Jr(o,u):Jr(o,"initial");return}let l=t[a];if(l!==void 0){let f=new Set(r);f.add(a);let c=Zr(l,t,f);Jr(o,String(c))}else if(u!==void 0){let f=Zr(u,t,r);Jr(o,String(f))}else Jr(o,"initial")}}),i)return n.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function rp(e){if(!e.nodes||e.nodes.length===0)return null;let t,r=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){r=i;break}}if(!t||t.type!=="word")return null;let n=t.value.trim();if(r!==-1&&r<e.nodes.length-1){let i=e.nodes.slice(r+1),o=lo.default.stringify(i).trim();return{varName:n,fallback:o}}return{varName:n}}function Jr(e,t){e.type="word",e.value=t,delete e.nodes}var np=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),ip=new Set(["lineHeight"]);function op(e,t,r,n){return e==="textDecoration"&&!r.includes(t.textDecorationColor)&&(t.textDecorationColor=n),t}function fr(e,t){let r=Number(t);return isNaN(r)?t:np.has(e)?ip.has(e)?r:String(t):r+"px"}function sp(e,t,r,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:fr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(o=>o.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[o,s]=t.split("/"),a=(0,_t.getStylesForProperty)(e,o,!0),u=(0,_t.getStylesForProperty)(e,s,!0);for(let l in a)u[l]=fr(e,a[l])+" "+fr(e,u[l]);return u}if(e==="cornerShape"){if(typeof t!="string")throw new Error('Invalid `cornerShape` value: "'+t+'".');let o=oi(t),s=o[0],a=o[1]||s,u=o[2]||s,l=o[3]||a;return{cornerTopLeftShape:s,cornerTopRightShape:a,cornerBottomRightShape:u,cornerBottomLeftShape:l}}if(/^corner(TopLeft|TopRight|BottomRight|BottomLeft)Shape$/.test(e)){if(typeof t!="string"||oi(t,1).length!==1)throw new Error("Invalid `"+e+'` value: "'+t+'".');return{[e]:t}}let i=e.match(/^corner(Top|Right|Bottom|Left)Shape$/);if(i){if(typeof t!="string")throw new Error("Invalid `"+e+'` value: "'+t+'".');let o=oi(t,2),s=o[0],a=o[1]||s,u={Top:["cornerTopLeftShape","cornerTopRightShape"],Right:["cornerTopRightShape","cornerBottomRightShape"],Bottom:["cornerBottomLeftShape","cornerBottomRightShape"],Left:["cornerTopLeftShape","cornerBottomLeftShape"]}[i[1]];return{[u[0]]:s,[u[1]]:a}}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let o=(0,_t.getStylesForProperty)("border",t,!0);o.borderWidth===1&&!String(t).includes("1px")&&(o.borderWidth=3),o.borderColor==="black"&&!String(t).includes("black")&&(o.borderColor=r);let s={Width:fr(e+"Width",o.borderWidth),Style:Ve(o.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:o.borderColor},a={};for(let u of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let l in s)a["border"+u+l]=s[l];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,Lu.parse)(t):t}}if(e==="backdropFilter"||e==="WebkitBackdropFilter")return{_backdropFilters:ku(t,n,r)};if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let o={},s=t.replace(/(-?[\d.]+%)/g,(u,l)=>{let f=~~(Math.random()*1e9);return o[f]=l,f+"px"}),a=(0,_t.getStylesForProperty)("transform",s,!0);for(let u of a.transform)for(let l in u)o[u[l]]&&(u[l]=o[u[l]]);return a}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?(0,_t.getStylesForProperty)("backgroundImage",t,!0):(0,_t.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let o={},s=jt(t);for(let a of s){let u=(0,_t.getStylesForProperty)("textShadow",a,!0);for(let l in u)o[l]?o[l].push(u[l]):o[l]=[u[l]]}return o}if(e==="WebkitTextStroke"){t=t.toString().trim();let o=t.split(" ");if(o.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:fr(e,o[0]),WebkitTextStrokeColor:fr(e,o[1])}}if(e==="textDecorationSkipInk"){let o=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(o))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:o}}}function Iu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Ru=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Nu(e){if(typeof e=="string"&&Ru.test(e.trim()))return e.trim().replace(Ru,(t,r,n,i,o)=>`rgba(${r}, ${n}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Nu(e[t]);return e}return e}function ai(e,t){let r={},n={};for(let u in t)u.startsWith("--")&&(n[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:l}=Pu(e);i=u,o=l}let s=Ou(n,i);for(let u in s)r[u]=s[u];if(o){let u=o.color?Zr(o.color,s):void 0,l=up(u,t.color);r.color=l;for(let f in o){if(f.startsWith("_")){r[f]=o[f];continue}if(f==="color")continue;let c=(0,_t.getPropertyName)(f),m=Zr(o[f],s),h=fp(m,l);try{let g=sp(c,h,l,t)||op(c,(0,_t.getStylesForProperty)(c,fr(c,h),!0),h,l);Object.assign(r,g)}catch(g){throw new Error(g.message+(g.message.includes(h)?`
|
|
5
|
+
`+Iu(c):`
|
|
6
|
+
in CSS rule \`${c}: ${h}\`.${Iu(c)}`))}}}if(r.backgroundImage){let{backgrounds:u}=(0,Cu.parseElementStyle)(r);r.backgroundImage=u}(r.maskImage||r.WebkitMaskImage)&&(r.maskImage=_u(r));let a=ap(r.fontSize,t.fontSize);typeof r.fontSize<"u"&&(r.fontSize=a),r.transformOrigin&&(r.transformOrigin=ao(r.transformOrigin,a));for(let u in r){let l=r[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=r[u]=Y(l,a,a,t,!0)/a);else{if(typeof l=="string"){let f=Y(l,a,a,t);typeof f<"u"&&(r[u]=f),l=r[u]}if(typeof l=="string"||typeof l=="object"){let f=Nu(l);f&&(r[u]=f),l=r[u]}}if(u==="opacity"&&typeof l=="number"&&(r.opacity=l*t.opacity),u==="transform"){let f=l;for(let c of f){let m=Object.keys(c)[0],h=c[m],g=typeof h=="string"?Y(h,a,a,t)??h:h;c[m]=g}}if(u==="textShadowRadius"){let f=l;r.textShadowRadius=f.map(c=>Y(c,a,0,t,!1))}if(u==="textShadowOffset"){let f=l;r.textShadowOffset=f.map(({height:c,width:m})=>({height:Y(c,a,0,t,!1),width:Y(m,a,0,t,!1)}))}}return r}function ap(e,t){if(typeof e=="number")return e;try{let r=new wt(e);switch(r.unit){case"em":return r.value*t;case"rem":return r.value*16}}catch{return t}}function Au(e){if(e.startsWith("hsl")){let t=(0,Mu.default)(e),[r,n,i]=t.values;return`hsl(${[r,`${n}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function up(e,t){return e&&e.toLowerCase()!=="currentcolor"?Au(e):Au(t)}function lp(e,t){return e.replace(/currentcolor/gi,t)}function fp(e,t){return Yn(e)&&(e=lp(e,t)),e}async function fo(e,t,r,n,i){let o=await Zt(),s=Object.assign({},r,ai(xu[t],r),ai(n,r));if(t==="img"){let[a,u,l]=await Ir(i.src);if(u===void 0&&l===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),l=parseInt(i.height)}let f=l/u,c=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),m=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),h=s.width||i.width,g=s.height||i.height,y=typeof h=="number"&&typeof g=="number";y&&(h-=c,g-=m),h===void 0&&g===void 0?(h="100%",e.setAspectRatio(1/f)):h===void 0?typeof g=="number"?h=g/f:e.setAspectRatio(1/f):g===void 0&&(typeof h=="number"?g=h*f:e.setAspectRatio(1/f)),s.width=y?h+c:h,s.height=y?g+m:g,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=l}if(t==="svg"){let a=i.viewBox||i.viewbox,u=Tr(a),l=u?u[3]/u[2]:null,{width:f,height:c}=i;typeof f>"u"&&c?l==null?f=0:typeof c=="string"&&c.endsWith("%")?f=parseInt(c)/l+"%":(c=Y(c,r.fontSize,1,r),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=Y(f,r.fontSize,1,r),c=f*l):(typeof f<"u"&&(f=Y(f,r.fontSize,1,r)||f),typeof c<"u"&&(c=Y(c,r.fontSize,1,r)||c),f||=u==null?void 0:u[2],c||=u==null?void 0:u[3]),!s.width&&f&&(s.width=f),!s.height&&c&&(s.height=c)}return e.setDisplay(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Ve(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(Jt(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(Gt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Gt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Gt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Gt(s.minWidth,"minWidth")),e.setOverflow(Ve(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Jt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Jt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Jt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Jt(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(Ve(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(Ve(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,Gt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Gt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Gt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Gt(s.right,"right")),typeof s.height<"u"?e.setHeight(Jt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Jt(s.width,"width")):e.setWidthAuto(),[s,oo(s)]}var co=ct(require("escape-html"),1);var Fu=[1,0,0,1,0,0];function cp(e,t,r){let n=[...Fu];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*r,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Fu];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 l=a*Math.PI/180,f=Math.cos(l),c=Math.sin(l);u[0]=f,u[1]=c,u[2]=-c,u[3]=f;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}n=Yr(u,n)}e.splice(0,e.length),e.push(...n),e.__resolved=!0}function en({left:e,top:t,width:r,height:n},i,o,s){let a;i.__resolved||cp(i,r,n);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*r/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*n/100,c=e+l,m=t+f;a=Yr([1,0,0,1,c,m],Yr(u,[1,0,0,1,-c,-m])),u.__parent&&(a=Yr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Wu({left:e,top:t,width:r,height:n,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=en({left:e,top:t,width:r,height:n},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function po({id:e,content:t,filter:r,left:n,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:m,decorationShape:h},g){let y="";if(c&&(y=A("rect",{x:n,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let _={href:l,x:n,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+A("image",{..._,opacity:u!==1?u:void 0})+(h||"")+(r?"</g>":"")+y,""]}let w={x:n,y:i,width:o,height:s,"font-weight":g.fontWeight,"font-style":g.fontStyle,"font-size":g.fontSize,"font-family":g.fontFamily,"letter-spacing":g.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:g.filter?`filter:${g.filter}`:void 0,"stroke-width":g.WebkitTextStrokeWidth?`${g.WebkitTextStrokeWidth}px`:void 0,stroke:g.WebkitTextStrokeWidth?g.WebkitTextStrokeColor:void 0,"stroke-linejoin":g.WebkitTextStrokeWidth?"round":void 0,"paint-order":g.WebkitTextStrokeWidth?"stroke":void 0};return[(r?`${r}<g filter="url(#satori_s-${e})">`:"")+A("text",{...w,fill:g.color,opacity:u!==1?u:void 0},(0,co.default)(t))+(h||"")+(r?"</g>":"")+y,m?A("text",w,(0,co.default)(t)):""]}function dp(e,t,r){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(n,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+r)})}var ui=1.1;function Du({id:e,width:t,height:r},n,i=!1){if(!n.shadowColor||!n.shadowOffset||typeof n.shadowRadius>"u")return"";let o=n.shadowColor.length,s="",a="",u=0,l=t,f=0,c=r;for(let m=0;m<o;m++){let h=n.shadowRadius[m]*n.shadowRadius[m]/4;if(u=Math.min(n.shadowOffset[m].width-h,u),l=Math.max(n.shadowOffset[m].width+h+t,l),f=Math.min(n.shadowOffset[m].height-h,f),c=Math.max(n.shadowOffset[m].height+h+r,c),i){let g=`satori_s-${e}-result-${m}`;s+=A("feGaussianBlur",{in:"SourceAlpha",stdDeviation:n.shadowRadius[m]/2,result:`${g}-blur`})+A("feOffset",{in:`${g}-blur`,dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,result:`${g}-offset`})+A("feFlood",{"flood-color":n.shadowColor[m],"flood-opacity":1,result:`${g}-color`})+A("feComposite",{in:`${g}-color`,in2:`${g}-offset`,operator:"in",result:o>1?g:void 0})}else s+=A("feDropShadow",{dx:n.shadowOffset[m].width,dy:n.shadowOffset[m].height,stdDeviation:n.shadowRadius[m]/2,"flood-color":n.shadowColor[m],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${m}`}:{}});o>1&&(a=A("feMergeNode",{in:`satori_s-${e}-result-${m}`})+a)}return A("filter",{id:`satori_s-${e}`,x:(u/t*100*ui).toFixed(2)+"%",y:(f/r*100*ui).toFixed(2)+"%",width:((l-u)/t*100*ui).toFixed(2)+"%",height:((c-f)/r*100*ui).toFixed(2)+"%"},s+(a?A("feMerge",{},a):""))}function $u({width:e,height:t,shape:r,opacity:n,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),m=Math.min(-c-(f.inset?f.offsetX:0),0),h=Math.max(c+e-(f.inset?f.offsetX:0),e),g=Math.min(-c-(f.inset?f.offsetY:0),0),y=Math.max(c+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,_=`satori_ms-${i}-${u}`,O=f.spreadRadius?r.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):r;l+=A("mask",{id:_,maskUnits:"userSpaceOnUse"},A("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+O.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=O.replace(/d="([^"]+)"/,(I,x)=>'d="'+dp(x,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(I,x)=>'x="'+(parseFloat(x)+f.offsetX)+'"').replace(/y="([^"]+)"/,(I,x)=>'y="'+(parseFloat(x)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=A("mask",{id:_+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(E=A("g",{mask:`url(#${_}-neg)`},E)),l+=A("defs",{},A("filter",{id:w,x:`${m/e*100}%`,y:`${g/t*100}%`,width:`${(h-m)/e*100}%`,height:`${(y-g)/t*100}%`},A("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+A("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+A("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+A("g",{mask:`url(#${_})`,filter:`url(#${w})`,opacity:n},E),f.inset?a+=l:s+=l}return[s,a]}function pp(e,t,r,n,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let c of r){if(c.y2<o+s||c.y1>n+s)continue;let m=Math.max(e,c.x1-a),h=Math.min(t,c.x2+a);if(m>=h)continue;if(u.length===0){u.push([m,h]);continue}let g=u[u.length-1];m<=g[1]?g[1]=Math.max(g[1],h):u.push([m,h])}if(!u.length)return[[e,t]];let l=[],f=e;for(let[c,m]of u)if(c>f&&l.push([f,c]),f=Math.max(f,m),f>=t)break;return f<t&&l.push([f,t]),l}function ho({width:e,left:t,top:r,ascender:n,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:f,textDecorationSkipInk:c,fontSize:m,color:h}=a;if(!f||f==="none")return"";let g=Math.max(1,m*.1),y=f==="line-through"?r+n*.7:f==="underline"?r+n*1.1:r,w=l==="dashed"?`${g*1.2} ${g*2}`:l==="dotted"?`0 ${g*2}`:void 0,_=f==="underline"&&(c||"auto")!=="none"&&(s==null?void 0:s.length),O=r+n,E=_?pp(t,t+e,s,y,g,O):[[t,t+e]],I=l==="double"?E.map(([x,T])=>A("line",{x1:x,y1:y+g+1,x2:T,y2:y+g+1,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+E.map(([x,T])=>A("line",{x1:x,y1:y,x2:T,y2:y,stroke:u||h,"stroke-width":g,"stroke-dasharray":w,"stroke-linecap":l==="dotted"?"round":"square",transform:o})).join("")+I+(i?"</g>":"")}function mo(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var cr=mo("U+0020"),go=mo("U+0009"),Rr=mo("U+2026");function Bu(e,t,r){let{fontSize:n,letterSpacing:i,fontFeatureSettings:o}=r,s=new Map;function a(c){let m=s.get(c);return m===void 0&&(m=e.measure(c,{fontSize:n,letterSpacing:i,fontFeatureSettings:o}),s.set(c,m)),m}function u(c){return a(c)}function l(c){let m=0,h="",g=()=>{h&&(m+=a(h),h="")};for(let y of c)t(y)?(g(),m+=n):h+=y;return g(),m}function f(c){return l(Me(c,"grapheme"))}return{measureGrapheme:u,measureGraphemeArray:l,measureText:f}}function Uu(e,t,r){let{textTransform:n,whiteSpace:i,wordBreak:o}=t;e=hp(e,n,r);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=bp(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=gp(s,o),[m,h]=mp(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:m,blockEllipsis:h}}function hp(e,t,r){return t==="uppercase"?e=e.toLocaleUpperCase(r):t==="lowercase"?e=e.toLocaleLowerCase(r):t==="capitalize"&&(e=Me(e,"word",r).map(n=>Me(n,"grapheme",r).map((i,o)=>o===0?i.toLocaleUpperCase(r):i).join("")).join("")),e}function mp(e,t){let{textOverflow:r,lineClamp:n,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&n){let[u,l=Rr]=yp(n);if(u)return[u,l]}return r==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&ja(i)&&i>0?[i,Rr]:r==="ellipsis"&&s==="hidden"&&!t?[1,Rr]:[1/0]}function gp(e,t){let r=["break-all","break-word"].includes(t),{words:n,requiredBreaks:i}=Ha(e,t);return{words:n,requiredBreaks:i,allowBreakWord:r}}function bp(e,t){let r=["pre","pre-wrap","pre-line"].includes(t),n=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return r||(e=e.replace(/\n/g,cr)),n&&(e=e.replace(/([ ]|\t)+/g,cr).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:n,allowSoftWrap:i}}function yp(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,r=/^(\d+)\s*'(.*)'$/,n=t.exec(e),i=r.exec(e);if(n){let o=+n[1],s=n[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var yo=ct(require("parse-css-color"),1),vp=new Set([go]);function xp(e){return vp.has(e)}function bo(e){if(e==="transparent")return!0;let t=(0,yo.default)(e);return t?t.alpha===0:!1}function qu(e){if(!e)return!1;let t=(0,yo.default)(e);if(!t)return!1;let[r,n,i,o]=t.values;return r===255&&n===255&&i===255&&(o===void 0||o===1)}async function*vo(e,t){let r=await Zt(),{parentStyle:n,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:m,canLoadAdditionalAssets:h}=t,{textAlign:g,textIndent:y=0,lineHeight:w,textWrap:_,fontSize:O,filter:E,tabSize:I=8,letterSpacing:x,fontFeatureSettings:T,_inheritedBackgroundClipTextPath:L,_inheritedBackgroundClipTextHasBackground:M,flexShrink:z}=n,{words:X,requiredBreaks:J,allowSoftWrap:he,allowBreakWord:ve,processedContent:ce,shouldCollapseTabsAndSpaces:Ae,lineLimit:Ce,blockEllipsis:re}=Uu(e,n,m),de=wp(r,g);o.insertChild(de,o.getChildCount()),Va(z)&&o.setFlexShrink(1);let Ie=s.getEngine(O,w,n,m),He=h?Me(ce,"grapheme").filter(V=>!xp(V)&&!Ie.has(V)):[];yield He.map(V=>({word:V,locale:m})),He.length&&(Ie=s.getEngine(O,w,n,m));function Re(V){return!!(c&&Object.prototype.hasOwnProperty.call(c,V)&&c[V])}let{measureGrapheme:we,measureGraphemeArray:Ft,measureText:oe}=Bu(Ie,Re,{fontSize:O,letterSpacing:x,fontFeatureSettings:T}),Q=Yn(I)?Y(I,O,1,n):we(cr)*I,xe=(V,K)=>{if(V.length===0)return{originWidth:0,endingSpacesWidth:0,text:V};let{index:te,tabCount:Z}=Sp(V),Pe=0;if(Z>0){let ge=V.slice(0,te),fe=V.slice(te+Z),ne=oe(ge),at=ne+K;Pe=(Q===0?ne:(Math.floor(at/Q)+Z)*Q)+oe(fe)}else Pe=oe(V);let le=V.trimEnd()===V?Pe:oe(V.trimEnd());return{originWidth:Pe,endingSpacesWidth:Pe-le,text:V}},ee=[],G=[],Se=[],ke=[],Be=[];function Ye(V){let K=0,te=0,Z=-1,Pe=0,le=0,ge=0,fe=0;ee=[],Se=[0],ke=[],Be=[];let ne=0,at=0;for(;ne<X.length&&K<Ce;){let H=X[ne],Rt=J[ne],qe=0,{originWidth:ze,endingSpacesWidth:it,text:Bt}=xe(H,le);H=Bt,qe=ze;let Ge=it;Rt&&ge===0&&(ge=Ie.height(H));let Ut=g==="justify",_e=ne&&le+qe>V+Ge&&he;if(ve&&qe>V&&(!le||_e||Rt)){let Ke=Me(H,"grapheme");X.splice(ne,1,...Ke),le>0&&(ee.push(le-at),G.push(fe),K++,Pe+=ge,le=0,ge=0,fe=0,Se.push(1),Z=-1),at=Ge;continue}if(Rt||_e)Ae&&H===cr&&(qe=0),ee.push(le-at),G.push(fe),K++,Pe+=ge,le=qe,ge=qe?Math.round(Ie.height(H)):0,fe=qe?Math.round(Ie.baseline(H)):0,Se.push(1),Z=-1,Rt||(te=Math.max(te,V));else{le+=qe;let Ke=Math.round(Ie.height(H));Ke>ge&&(ge=Ke,fe=Math.round(Ie.baseline(H))),Ut&&Se[Se.length-1]++}Ut&&Z++,te=Math.max(te,le);let ut=le-qe;if(qe===0)Be.push({y:Pe,x:ut,width:0,line:K,lineIndex:Z,isImage:!1});else{let Ke=Me(H,"word");for(let lt=0;lt<Ke.length;lt++){let vt=Ke[lt],je=0,ft=!1;Re(vt)?(je=O,ft=!0):!f&&vt.length>1?je=oe(vt):je=we(vt),ke.push(vt),Be.push({y:Pe,x:ut,width:je,line:K,lineIndex:Z,isImage:ft}),ut+=je,lt<Ke.length-1&&x>0&&(ut+=x)}}ne++,at=Ge}return le&&(K<Ce&&(Pe+=ge),K++,ee.push(le),G.push(fe)),{width:te,height:Pe}}let se={width:0,height:0};de.setMeasureFunc(V=>{let{width:K,height:te}=Ye(V);if(_==="balance"){let Pe=K/2,le=K,ge=K;for(;Pe+1<le;){ge=(Pe+le)/2;let{height:ne}=Ye(ge);ne>te?Pe=ge:le=ge}Ye(le);let fe=Math.ceil(le);return se={width:fe,height:te},{width:fe,height:te}}if(_==="pretty"&&ee[ee.length-1]<K/3){let ge=K*.9,fe=Ye(ge);if(fe.height<=te*1.3)return se={width:K,height:fe.height},{width:K,height:fe.height}}let Z=Math.ceil(K);return se={width:Z,height:te},{width:Z,height:te}});let[Ue,Fe]=yield,tt="",Xe="",st=i._inheritedClipPathId,Et=i._inheritedMaskId,{left:Dr,top:$r,width:Wt,height:Br}=de.getComputedLayout(),Ur=typeof y=="string"?Y(y,O,Wt,n,!0)||0:y,sr=o.getComputedWidth()-o.getComputedPadding(r.EDGE_LEFT)-o.getComputedPadding(r.EDGE_RIGHT)-o.getComputedBorder(r.EDGE_LEFT)-o.getComputedBorder(r.EDGE_RIGHT),kt=Ue+Dr,Pt=Fe+$r,{matrix:rt,opacity:Dt}=Wu({left:Dr,top:$r,width:Wt,height:Br,isInheritingTransform:u},n),Qe="";if(n.textShadowOffset){let{textShadowColor:V,textShadowOffset:K,textShadowRadius:te}=n;Qe=Du({width:se.width,height:se.height,id:a},{shadowColor:V,shadowOffset:K,shadowRadius:te},bo(n.color)||M&&qu(n.color)),Qe=A("defs",{},Qe)}let nt="",$t="",vr="",Ot=-1,$e={},It={},We=null,xr=0;for(let V=0;V<ke.length;V++){let K=Be[V],te=Be[V+1];if(!K)continue;let Z=ke[V],Pe=null,le=!1,ge=c&&Object.prototype.hasOwnProperty.call(c,Z)?c[Z]:null,fe=K.y,ne=K.x,at=K.width,H=K.line,Rt=n.textDecorationLine==="underline"&&(n.textDecorationSkipInk||"auto")!=="none";if(H===Ot)continue;let qe=!1;if(H===0&&Ur!==0&&(ne+=Ur),ee.length>1){let _e=Wt-ee[H];if(g==="right"||g==="end")ne+=_e;else if(g==="center")ne+=_e/2;else if(g==="justify"&&H<ee.length-1){let Oe=Se[H],ut=Oe>1?_e/(Oe-1):0;ne+=ut*K.lineIndex,qe=!0}f&&(ne=Math.round(ne))}let ze=G[H],it=Ie.baseline(Z),Bt=Ie.height(Z),Ge=ze-it,Ut=_e=>!Rt||n.textDecorationLine!=="underline"?void 0:{underlineY:Pt+_e+Ge+it+it*.1,strokeWidth:Math.max(1,O*.1)};if($e[H]||($e[H]={left:ne,top:Pt+fe+Ge,ascender:it,width:qe?Wt:ee[H]}),Ce!==1/0){let vt=function(je,ft){let qr=Me(ft,"grapheme",m),wr="",zn=0;for(let zr of qr){let ar=je+Ft([wr+zr]);if(wr&&ar+Oe>sr)break;wr+=zr,zn=ar}return{subset:wr,resolvedWidth:zn}},_e=re,Oe=we(re);Oe>sr&&(_e=Rr,Oe=we(_e));let ut=we(cr),Ke=H<ee.length-1;if(H+1===Ce&&(Ke||ee[H]>sr)){if(ne+at+Oe+ut>sr){let{subset:je,resolvedWidth:ft}=vt(ne,Z);Z=je+_e,Ot=H,$e[H].width=Math.max(0,ft-$e[H].left),le=!0}else if(te&&te.line!==H)if(g==="center"){let{subset:je,resolvedWidth:ft}=vt(ne,Z);Z=je+_e,Ot=H,$e[H].width=Math.max(0,ft-$e[H].left),le=!0}else{let je=ke[V+1],{subset:ft,resolvedWidth:qr}=vt(at+ne,je);Z=Z+ft+_e,Ot=H,$e[H].width=Math.max(0,qr-$e[H].left),le=!0}}}if(ge)fe+=0;else if(f){if(!Z.includes(go)&&!za.includes(Z)&&ke[V+1]&&te&&!te.isImage&&fe===te.y&&!le){We===null&&(xr=ne),We=We===null?Z:We+Z;continue}let _e=We===null?Z:We+Z,Oe=We===null?ne:xr,ut=K.width+ne-Oe,Ke=Ut(fe),lt=Ie.getSVG(_e.replace(/(\t)+/g,""),{fontSize:O,left:kt+Oe,top:Pt+fe+it+Ge,letterSpacing:x,fontFeatureSettings:T},Ke);Pe=lt.path,Rt&<.boxes&<.boxes.length&&(It[H]||(It[H]=[])).push(...lt.boxes),We=null,l&&(vr+=A("rect",{x:kt+Oe,y:Pt+fe+Ge,width:ut,height:Bt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:rt||void 0,"clip-path":st?`url(#${st})`:void 0})+A("line",{x1:kt+ne,x2:kt+ne+K.width,y1:Pt+fe+Ge+it,y2:Pt+fe+Ge+it,stroke:"#14c000","stroke-width":1,transform:rt||void 0,"clip-path":st?`url(#${st})`:void 0}))}else if(fe+=it+Ge,Rt&&!ge){let _e=Ut(fe),Oe=Ie.getSVG(Z.replace(/(\t)+/g,""),{fontSize:O,left:kt+ne,top:Pt+fe,letterSpacing:x,fontFeatureSettings:T},_e);Oe.boxes&&Oe.boxes.length&&(It[H]||(It[H]=[])).push(...Oe.boxes)}if(Pe!==null)$t+=Pe+" ";else{let[_e,Oe]=po({content:Z,filter:Qe,id:a,left:kt+ne,top:Pt+fe,width:at,height:Bt,matrix:rt,opacity:Dt,image:ge,clipPathId:st,debug:l,shape:!!L},n);tt+=_e,Xe+=Oe}if(le)break}if(n.textDecorationLine&&(nt=Object.entries($e).map(([V,K])=>{if(!K)return"";let te=It[V]||[];return ho({left:kt+K.left,top:K.top,width:K.width,ascender:K.ascender,clipPathId:st,matrix:rt,glyphBoxes:te},n)}).join("")),$t){let V=(!bo(n.color)||Qe)&&Dt!==0?`<g ${Et?`mask="url(#${Et})"`:""} ${st?`clip-path="url(#${st})"`:""}>`+A("path",{fill:Qe&&(bo(n.color)||M&&qu(n.color))?"black":n.color,d:$t,transform:rt||void 0,opacity:Dt!==1?Dt:void 0,style:E?`filter:${E}`: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>":"";L&&(Xe=A("path",{d:$t,transform:rt||void 0})),tt+=(Qe?Qe+A("g",{filter:`url(#satori_s-${a})`},V+nt):V+nt)+vr}else nt&&(tt+=Qe?A("g",{filter:`url(#satori_s-${a})`},nt):nt);return Xe&&(n._inheritedBackgroundClipTextPath.value+=Xe),tt}function wp(e,t){let r=e.Node.create();return r.setAlignItems(e.ALIGN_BASELINE),r.setJustifyContent(Ve(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")),r}function Sp(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Gu=require("css-gradient-parser");var zu=ct(require("parse-css-color"),1);function li(e,t,r,n,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&n?+s.offset.value:100;for(let c of t){let{color:m}=c;if(!o.length&&(o.push({offset:0,color:m}),!c.offset||c.offset.value==="0"))continue;let h=typeof c.offset>"u"?void 0:c.offset.unit==="%"?+c.offset.value/a:Number(Y(`${c.offset.value}${c.offset.unit}`,r.fontSize,e,r,!0))/e;o.push({offset:h,color:m})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:n?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let l=0,f=1;for(let c=0;c<o.length;c++)if(typeof o[c].offset>"u"){for(f<c&&(f=c);typeof o[f].offset>"u";)f++;o[c].offset=(o[f].offset-o[l].offset)/(f-l)*(c-l)+o[l].offset}else l=c;return i==="mask"?o.map(c=>{let m=(0,zu.default)(c.color);return m?m.alpha===0?{...c,color:"rgba(0, 0, 0, 1)"}:{...c,color:`rgba(255, 255, 255, ${m.alpha})`}:c}):o}function ju({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){let f=(0,Gu.parseLinearGradient)(o),[c,m]=s,h=o.startsWith("repeating"),g,y,w;if(f.orientation.type==="directional")g=Tp(f.orientation.value),y=Math.sqrt(Math.pow((g.x2-g.x1)*c,2)+Math.pow((g.y2-g.y1)*m,2));else if(f.orientation.type==="angular"){let{length:x,...T}=Ep(lr(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,m);y=x,g=T}w=h?kp(f.stops,y,g,u):g;let _=li(h?_p(f.stops,y):y,f.stops,u,h,l),O=`satori_bi${e}`,E=`satori_pattern_${e}`,I=A("pattern",{id:E,x:a[0]/t,y:a[1]/r,width:n?c/t:"1",height:i?m/r:"1",patternUnits:"objectBoundingBox"},A("linearGradient",{id:O,...w,spreadMethod:h?"repeat":"pad"},_.map(x=>A("stop",{offset:(x.offset??0)*100+"%","stop-color":x.color})).join(""))+A("rect",{x:0,y:0,width:c,height:m,fill:`url(#${O})`}));return[E,I]}function _p(e,t){let r=e[e.length-1],{offset:n}=r;return n?n.unit==="%"?Number(n.value)/100*t:Number(n.value):t}function Tp(e){let t=0,r=0,n=0,i=0;return e.includes("top")?r=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(n=1),!t&&!n&&!r&&!i&&(r=1),{x1:t,y1:r,x2:n,y2:i}}function Ep(e,t,r){let n=Math.pow(r/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,c,m=h=>{if(h===0){i=0,o=r,s=0,a=0,u=r;return}else if(h===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(h>0&&h<Math.PI/2){i=(n*t/2/Math.tan(h)-r/2)/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i+r,s=Math.abs(t/2-i)+t/2,a=r/2-Math.abs(o-r/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(h)-r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f+r,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else if(h>Math.PI/2&&h<Math.PI){i=(r/2+n*t/2/Math.tan(h))/(Math.tan(h)+n/Math.tan(h)),o=Math.tan(h)*i,s=Math.abs(t/2-i)+t/2,a=r/2+Math.abs(o-r/2),f=(t/2/Math.tan(h)+r/2)/(Math.tan(h)+1/Math.tan(h)),c=Math.tan(h)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(r/2-c,2));return}else h>=Math.PI&&(m(h-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return m(e),{x1:i/t,y1:o/r,x2:s/t,y2:a/r,length:u}}function kp(e,t,r,n){let{x1:i,x2:o,y1:s,y2:a}=r,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:Y(`${e[0].offset.value}${e[0].offset.unit}`,n.fontSize,t,n,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:Y(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,n.fontSize,t,n,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,m=(o-i)*l+i,h=(a-s)*l+s;return{x1:f,y1:c,x2:m,y2:h}}var Hu=require("css-gradient-parser");function Yu({id:e,width:t,height:r,repeatX:n,repeatY:i},o,s,a,u,l){var ve;let{shape:f,stops:c,position:m,size:h,repeating:g}=(0,Hu.parseRadialGradient)(o),[y,w]=s,_=y/2,O=w/2,E=Op(m.x,m.y,y,w,u.fontSize,u);_=E.x,O=E.y;let I=Pp(t,c,g,u),x=li(I,c,u,g,l),T=`satori_radial_${e}`,L=`satori_pattern_${e}`,M=`satori_mask_${e}`,z=Rp(f,h,u.fontSize,{x:_,y:O},[y,w],u,g),X=Ip(f,u.fontSize,c,[y,w],u,g,z),J=A("pattern",{id:L,x:a[0]/t,y:a[1]/r,width:n?y/t:"1",height:i?w/r:"1",patternUnits:"objectBoundingBox"},A("radialGradient",{id:T,...X},x.map(ce=>A("stop",{offset:ce.offset||0,"stop-color":ce.color})).join(""))+A("mask",{id:M},A("rect",{x:0,y:0,width:y,height:w,fill:"#fff"}))+A("rect",{x:0,y:0,width:y,height:w,fill:((ve=x.at(-1))==null?void 0:ve.color)||"transparent"})+A(f,{cx:_,cy:O,width:y,height:w,...z,fill:`url(#${T})`,mask:`url(#${M})`}));return[L,J]}function Pp(e,t,r,n){if(!r)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:Y(`${i.offset.value}${i.offset.unit}`,+n.fontSize,e,n,!0)}function Op(e,t,r,n,i,o){let s={x:r/2,y:n/2};return e.type==="keyword"?Object.assign(s,Vu(e.value,r,n,"x")):s.x=Y(`${e.value.value}${e.value.unit}`,i,r,o,!0)??r/2,t.type==="keyword"?Object.assign(s,Vu(t.value,r,n,"y")):s.y=Y(`${t.value.value}${t.value.unit}`,i,n,o,!0)??n/2,s}function Vu(e,t,r,n){switch(e){case"center":return{[n]:n==="x"?t/2:r/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:r}}}function Ip(e,t,r,[n,i],o,s,a){let{r:u,rx:l,ratio:f=1}=a;if(!s)return{spreadMethod:"pad"};let c=r.at(-1),m=e==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:c.offset.unit==="%"?`${Number(c.offset.value)*Math.min(i/n,1)/f}%`:Number(Y(`${c.offset.value}${c.offset.unit}`,t,n,o,!0)/m)}}function Rp(e,t,r,n,i,o,s){let[a,u]=i,{x:l,y:f}=n,c={},m=0,h=0;if(Ap(t)){if(t.some(g=>g.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(c,{r:Number(Y(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0))}):Object.assign(c,{rx:Number(Y(`${t[0].value.value}${t[0].value.unit}`,r,a,o,!0)),ry:Number(Y(`${t[1].value.value}${t[1].value.unit}`,r,u,o,!0))}),fi(c,a,u,l,f,s,e),c}switch(t[0].value){case"farthest-corner":m=Math.max(Math.abs(a-l),Math.abs(l)),h=Math.max(Math.abs(u-f),Math.abs(f));break;case"closest-corner":m=Math.min(Math.abs(a-l),Math.abs(l)),h=Math.min(Math.abs(u-f),Math.abs(f));break;case"farthest-side":return e==="circle"?c.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.max(Math.abs(a-l),Math.abs(l)),c.ry=Math.max(Math.abs(u-f),Math.abs(f))),fi(c,a,u,l,f,s,e),c;case"closest-side":return e==="circle"?c.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-f),Math.abs(f)):(c.rx=Math.min(Math.abs(a-l),Math.abs(l)),c.ry=Math.min(Math.abs(u-f),Math.abs(f))),fi(c,a,u,l,f,s,e),c}return e==="circle"?c.r=Math.sqrt(m*m+h*h):Object.assign(c,Xu(m,h)),fi(c,a,u,l,f,s,e),c}function fi(e,t,r,n,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),{rx:l,ry:f}=Xu(a,u);e.ratio=Math.max(l/e.rx,f/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-n),Math.abs(n)),u=Math.max(Math.abs(r-i),Math.abs(i)),l=Math.sqrt(a*a+u*u);e.ratio=l/e.r,e.ratio>1&&(e.r=l)}}function Xu(e,t){let r=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let n=Math.sqrt(e*e+t*t*r*r)/r;return{ry:n,rx:n*r}}}function Ap(e){return!e.some(t=>t.type==="keyword")}var wo=ct(require("parse-css-color"),1);function So(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Cp(e,t,r,n,i){if(!n||!i)return[t,r];if(e==="cover"){let o=t/n,s=r/i,a=Math.max(o,s);return[n*a,i*a]}if(e==="contain"){let o=t/n,s=r/i,a=Math.min(o,s);return[n*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=n,l=i;if(s==="auto"&&a!=="auto"){let f=So(a,r);l=f,u=n/i*f}else if(a==="auto"&&s!=="auto"){let f=So(s,t);u=f,l=i/n*f}return[u,l]}return[t,r]}function xo(e,{x:t,y:r,defaultX:n,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new wt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[n,i]).map((o,s)=>So(o,[t,r][s]))}async function tn({id:e,width:t,height:r,left:n,top:i},{image:o,size:s,position:a,repeat:u},l,f){u=u||"repeat",f=f||"background";let c=u==="repeat-x"||u==="repeat",m=u==="repeat-y"||u==="repeat",h=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),g=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=h&&g?[t,r]:h?[0,0]:xo(s,{x:t,y:r,defaultX:t,defaultY:r}),w=xo(a,{x:t,y:r,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return ju({id:e,width:t,height:r,repeatX:c,repeatY:m},o,y,w,l,f);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return Yu({id:e,width:t,height:r,repeatX:c,repeatY:m},o,y,w,l,f);if(o.startsWith("url(")){let[_,O,E]=await Ir(o.slice(4,-1)),I,x;if(h){let[T,L]=Cp(s,t,r,O,E);I=T,x=L}else{let T=xo(s,{x:t,y:r,defaultX:0,defaultY:0});I=f==="mask"?O||T[0]:T[0]||O,x=f==="mask"?E||T[1]:T[1]||E}return[`satori_bi${e}`,A("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:w[0]+n,y:w[1]+i,width:c?I:"100%",height:m?x:"100%"},A("image",{x:0,y:0,width:I,height:x,preserveAspectRatio:"none",href:_}))]}if((0,wo.default)(o)){let _=(0,wo.default)(o),[O,E,I,x]=_.values,L=`rgba(${O},${E},${I},${x!==void 0?x:1})`;return[`satori_bi${e}`,A("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:n,y:i,width:t,height:r},A("rect",{x:0,y:0,width:t,height:r,fill:L}))]}throw new Error(`Invalid background image: "${o}"`)}function Lp([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 ci(e,t,r){return r<e+t&&(r/2<e&&r/2<t?e=t=r/2:r/2<e?e=r-t:r/2<t&&(t=r-e)),[e,t]}function di(e){e[0]=e[1]=Math.min(e[0],e[1])}function pi(e,t,r,n,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(Y(o[0],n,t,i,!0),t),Math.min(Y(o[1],n,r,i,!0),r)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,r)]]:[!0,void 0]}var hi=e=>e&&e[0]!==0&&e[1]!==0;function mi(e){return typeof e!="string"?1:uo(e)}function gi(e,t,r,n,i){if(i===1/0)return[e,r,t];if(i===-1/0)return[e,n,t];if(i===0)return[e,[(e[0]+t[0])/2,(e[1]+t[1])/2],t];let o=i<0?r:n,s=Math.pow(2,1-Math.abs(i));if(s===0)return i>0?[e,r,t]:[e,n,t];let a=[],u=16;for(let l=0;l<=u;l++){let f=Math.PI*l/u/2,c=Math.pow(Math.sin(f),s),m=Math.pow(Math.cos(f),s);a.push([o[0]+(t[0]-o[0])*c+(e[0]-o[0])*m,o[1]+(t[1]-o[1])*c+(e[1]-o[1])*m])}return a}function dr(e){return`${Math.round(e[0]*1e3)/1e3},${Math.round(e[1]*1e3)/1e3}`}function Qu(e,t,r,n){return Math.min(1,r/(e[0]+t[0]||r),n/(e[1]+t[1]||n))}function Mp(e,t,r,n,i,o,s){s!=null&&s.every(Boolean)&&(s=void 0);let a=e+r,u=t+n,[l,f,c,m]=i,h=[gi([e,t+l[1]],[e+l[0],t],[e,t],[e+l[0],t+l[1]],o[0]),gi([a-f[0],t],[a,t+f[1]],[a,t],[a-f[0],t+f[1]],o[1]),gi([a,u-c[1]],[a-c[0],u],[a,u],[a-c[0],u-c[1]],o[2]),gi([e+m[0],u],[e,u-m[1]],[e,u],[e+m[0],u-m[1]],o[3])];if(s){let y=s.indexOf(!0);if(y===-1)throw new Error("Invalid `partialSides`.");for(;s[(y+3)%4];)y=(y+3)%4;let w=h[y],_=Math.floor(w.length/2),O=`M${dr(w[_])}`,E=y;do{let I=h[E],x=Math.floor(I.length/2);for(let M=x+1;M<I.length;M++)O+=` L${dr(I[M])}`;let T=h[(E+1)%4];O+=` L${dr(T[0])}`;let L=Math.floor(T.length/2);for(let M=1;M<=L;M++)O+=` L${dr(T[M])}`;E=(E+1)%4}while(s[E]&&E!==y);return O}let g=`M${dr(h[0][h[0].length-1])}`;for(let y=0;y<4;y++){let w=h[(y+1)%4];g+=` L${dr(w[0])}`;for(let _=1;_<w.length;_++)g+=` L${dr(w[_])}`}return g+" Z"}function Ku({id:e,borderRadiusPath:t,borderType:r,left:n,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[A("clipPath",{id:u},A(r,{x:n,y:i,width:o,height:s,d:t||void 0})),u]}function er({left:e,top:t,width:r,height:n},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c=[mi(i.cornerTopLeftShape),mi(i.cornerTopRightShape),mi(i.cornerBottomRightShape),mi(i.cornerBottomLeftShape)],m,h,g,y;if([m,s]=pi(s,r,n,f,i),[h,a]=pi(a,r,n,f,i),[g,u]=pi(u,r,n,f,i),[y,l]=pi(l,r,n,f,i),!o&&!hi(s)&&!hi(a)&&!hi(u)&&!hi(l))return"";if(s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=ci(s[0],a[0],r),[u[0],l[0]]=ci(u[0],l[0],r),[s[1],u[1]]=ci(s[1],u[1],n),[a[1],l[1]]=ci(a[1],l[1],n),m&&di(s),h&&di(a),g&&di(u),y&&di(l),c.some(x=>x<0)){let x=Math.min(Qu(s,l,r,n),Qu(a,u,r,n));if(x<1)for(let T of[s,a,l,u])T[0]*=x,T[1]*=x}if(c.some(x=>x!==1))return Mp(e,t,r,n,[s,a,l,u],c,o);let w=[];w[0]=[a,a],w[1]=[l,[-l[0],l[1]]],w[2]=[u,[-u[0],-u[1]]],w[3]=[s,[s[0],-s[1]]];let _=`h${r-s[0]-a[0]} a${w[0][0]} 0 0 1 ${w[0][1]}`,O=`v${n-a[1]-l[1]} a${w[1][0]} 0 0 1 ${w[1][1]}`,E=`h${l[0]+u[0]-r} a${w[2][0]} 0 0 1 ${w[2][1]}`,I=`v${u[1]+s[1]-n} a${w[3][0]} 0 0 1 ${w[3][1]}`;if(o){let T=function(ve){let ce=Lp([s,a,l,u][ve]);return ve===0?[[e+s[0]-ce,t+s[1]-ce],[e+s[0],t]]:ve===1?[[e+r-a[0]+ce,t+a[1]-ce],[e+r,t+a[1]]]:ve===2?[[e+r-l[0]+ce,t+n-l[1]+ce],[e+r-l[0],t+n]]:[[e+u[0]-ce,t+n-u[1]+ce],[e,t+n-u[1]]]},x=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(x===-1)x=0;else for(;!o[x];)x=(x+1)%4;let L="",M=T(x),z=`M${M[0]} A${w[(x+3)%4][0]} 0 0 1 ${M[1]}`,X=0;for(;X<4&&o[(x+X)%4];X++)L+=z+" ",z=[_,O,E,I][(x+X)%4];let J=(x+X)%4;L+=z.split(" ")[0];let he=T(J);return L+=` A${w[(J+3)%4][0]} 0 0 1 ${he[0]}`,L}return`M${e+s[0]},${t} ${_} ${O} ${E} ${I}`}function Ju(e,t,r){return r[e+"Width"]===r[t+"Width"]&&r[e+"Style"]===r[t+"Style"]&&r[e+"Color"]===r[t+"Color"]}function Zu({id:e,currentClipPathId:t,borderPath:r,borderType:n,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[A("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},A(n,{x:i,y:o,width:s,height:a,d:r||void 0})),f]}function rn({left:e,top:t,width:r,height:n,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(h=>a[h+"Width"]))return"";let l="",f=0;for(;f>0&&Ju(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],m=[];for(let h=0;h<4;h++){let g=(f+h)%4,y=(f+h+1)%4,w=u[g],_=u[y];if(c[g]=!0,m=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!Ju(w,_,a)){let O=(m[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);O&&(l+=A("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":O*2,"stroke-dasharray":!o&&m[1]==="dashed"?O*2+" "+O:void 0,d:er({left:e,top:t,width:r,height:n},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let h=(m[0]||0)+(o&&!s&&a[m[3].replace("border","padding")]||0);h&&(l+=A("path",{width:r,height:n,...i,fill:"none",stroke:o?"#000":m[2],"stroke-width":h*2,"stroke-dasharray":!o&&m[1]==="dashed"?h*2+" "+h:void 0,d:er({left:e,top:t,width:r,height:n},a,c)}))}return l}function _o({id:e,left:t,top:r,width:n,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),f=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),c=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),m={x:t+u,y:r+l,width:n-u-f,height:i-l-c};return A("mask",{id:e},A("rect",{...m,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+rn({left:t,top:r,width:n,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var Io=require("css-to-react-native");var ko={left:0,"x-start":0,center:.5,right:1,"x-end":1},Po={top:0,"y-start":0,center:.5,bottom:1,"y-end":1};function Ct(e){return Math.round(e*1e3)/1e3}function tl(e,t,r,n){let i=e.match(/^shape\((.*)\)$/s);if(!i)return null;let o=jt(i[1]),s=o.shift();if(!s)throw new Error("Invalid `shape()` value.");let a=s.match(/^(?:(nonzero|evenodd)\s+)?from\s+(.+)$/);if(!a)throw new Error("Invalid `shape()` starting point.");let u=a[1]||"nonzero",l=Oo(el(a[2]),t,r,n),f=l,c=`M${Ct(l[0])},${Ct(l[1])}`;for(let m of o){let h=el(m),g=h.shift();if(g==="close"){if(h.length)throw new Error("Invalid `close` command in `shape()`.");c+=" Z",l=f;continue}if(g==="move"||g==="line"){let y=To(h,l,t,r,n);c+=` ${g==="move"?"M":"L"}${Ct(y[0])},${Ct(y[1])}`,l=y,g==="move"&&(f=y);continue}if(g==="hline"||g==="vline"){let y=g==="hline"?0:1,w=h.shift(),_=h.shift();if(w!=="to"&&w!=="by"||!_||h.length)throw new Error(`Invalid \`${g}\` command in \`shape()\`.`);let O=y===0?t:r,E=y===0?ko:Po,I=w==="to"&&_ in E?E[_]*O:tr(_,O,n);l=[...l],l[y]=w==="by"?l[y]+I:I,c+=` ${y===0?"H":"V"}${Ct(l[y])}`;continue}if(g==="curve"||g==="smooth"){let y=h.indexOf("with"),w=y===-1?h:h.slice(0,y),_=y===-1?[]:h.slice(y+1),O=w[0],E=To(w,l,t,r,n);if(g==="curve"&&y===-1)throw new Error("A `curve` command requires a control point.");let I=Np(_).map(x=>Fp(x,l,E,t,r,n));if(g==="curve")if(I.length===1)c+=` Q${Yt(I[0])} ${Yt(E)}`;else if(I.length===2)c+=` C${Yt(I[0])} ${Yt(I[1])} ${Yt(E)}`;else throw new Error("A `curve` command accepts one or two control points.");else if(!I.length)c+=` T${Yt(E)}`;else if(I.length===1)c+=` S${Yt(I[0])} ${Yt(E)}`;else throw new Error("A `smooth` command accepts at most one control point.");l=E;continue}if(g==="arc"){let y=h.findIndex(M=>["of","cw","ccw","large","small","rotate"].includes(M)),w=y===-1?h:h.slice(0,y),_=y===-1?[]:h.slice(y),O=To(w,l,t,r,n),E=0,I=0,x=0,T=0,L=0;for(let M=0;M<_.length;M++){let z=_[M];if(z==="of"){let X=_[++M];if(!X)throw new Error("Invalid `arc` radius in `shape()`.");let J=_[M+1],he=J&&!["cw","ccw","large","small","rotate"].includes(J);if(he&&M++,he)E=tr(X,t,n),I=tr(J,r,n);else{let ve=Math.sqrt(t*t+r*r)/Math.sqrt(2);E=I=tr(X,ve,n)}}else if(z==="cw"||z==="ccw")L=z==="cw"?1:0;else if(z==="large"||z==="small")T=z==="large"?1:0;else if(z==="rotate"){let X=_[++M];if(!X)throw new Error("Invalid `arc` rotation in `shape()`.");let J=lr(X);if(typeof J>"u")throw new Error("Invalid `arc` rotation in `shape()`.");x=J}else throw new Error("Invalid `arc` option in `shape()`.")}c+=` A${Ct(Math.abs(E))},${Ct(Math.abs(I))} ${Ct(x)} ${T} ${L} ${Yt(O)}`,l=O;continue}throw new Error(`Unsupported \`${g}\` command in \`shape()\`.`)}return{type:"path",d:c,"fill-rule":u}}function el(e){return e.trim().replace(/\//g," / ").split(/\s+/).filter(Boolean)}function Np(e){if(!e.length)return[];let t=e.indexOf("/");return t===-1?[e]:[e.slice(0,t),e.slice(t+1)]}function To(e,t,r,n,i){let o=e[0];if(o!=="to"&&o!=="by")throw new Error("A `shape()` command must use `to` or `by`.");let s=Oo(e.slice(1),r,n,i);return o==="by"?[t[0]+s[0],t[1]+s[1]]:s}function Fp(e,t,r,n,i,o){let s=e.indexOf("from"),a=s===-1?e:e.slice(0,s),u=s===-1?void 0:e[s+1];if(s!==-1&&(s+2!==e.length||!u))throw new Error("Invalid control point reference in `shape()`.");let l=Oo(a,n,i,o,!0);return u==="start"||!u&&!Wp(e)?[t[0]+l[0],t[1]+l[1]]:u==="end"?[r[0]+l[0],r[1]+l[1]]:l}function Oo(e,t,r,n,i=!1){if(!e.length||e.length>4)throw new Error("Invalid position in `shape()`.");let o,s,a=[...e];for(let u=0;u<a.length;u++){let l=a[u];if(l==="left"||l==="right"||l==="x-start"||l==="x-end"){let f=a[u+1];if(f&&!Eo(f)){let c=tr(f,t,n);o=l==="left"||l==="x-start"?c:t-c,u++}else o=ko[l]*t}else if(l==="top"||l==="bottom"||l==="y-start"||l==="y-end"){let f=a[u+1];if(f&&!Eo(f)){let c=tr(f,r,n);s=l==="top"||l==="y-start"?c:r-c,u++}else s=Po[l]*r}else if(l==="center")if(o===void 0)o=t/2;else if(s===void 0)s=r/2;else throw new Error("Invalid position in `shape()`.");else if(o===void 0)o=tr(l,t,n);else if(s===void 0)s=tr(l,r,n);else throw new Error("Invalid position in `shape()`.")}return!i&&e.length===1&&s===void 0&&(s=r/2),[o??(i?0:t/2),s??(i?0:r/2)]}function Eo(e){return e in ko||e in Po}function Wp(e){return e.some(Eo)}function tr(e,t,r){let n=Y(e,r.fontSize,t,r,!0);if(typeof n>"u")throw new Error(`Invalid length \`${e}\` in \`shape()\`.`);return n}function Yt(e){return`${Ct(e[0])},${Ct(e[1])}`}var Ar={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/,shape:/shape\((.+)\)/};function il({width:e,height:t},r,n){function i(f){let c=f.match(Ar.circle);if(!c)return null;let[,m]=c,[h,g=""]=m.split("at").map(_=>_.trim()),{x:y,y:w}=nl(g,e,t);return{type:"circle",r:Y(h,n.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),n,!0),cx:Y(y,n.fontSize,e,n,!0),cy:Y(w,n.fontSize,t,n,!0)}}function o(f){let c=f.match(Ar.ellipse);if(!c)return null;let[,m]=c,[h,g=""]=m.split("at").map(E=>E.trim()),[y,w]=h.split(" "),{x:_,y:O}=nl(g,e,t);return{type:"ellipse",rx:Y(y||"50%",n.fontSize,e,n,!0),ry:Y(w||"50%",n.fontSize,t,n,!0),cx:Y(_,n.fontSize,e,n,!0),cy:Y(O,n.fontSize,t,n,!0)}}function s(f){let c=f.match(Ar.path);if(!c)return null;let[m,h]=rl(c[1]);return{type:"path",d:h,"fill-rule":m}}function a(f){let c=f.match(Ar.polygon);if(!c)return null;let[m,h]=rl(c[1]);return{type:"polygon","fill-rule":m,points:h.split(",").map(g=>g.split(" ").map((y,w)=>Y(y,n.fontSize,w===0?e:t,n,!0)).join(" ")).join(",")}}function u(f){let c=f.match(Ar.inset);if(!c)return null;let[m,h]=(c[1].includes("round")?c[1]:`${c[1].trim()} round 0`).split("round"),g=(0,Io.getStylesForProperty)("borderRadius",h,!0),y=Object.values(g).map(x=>String(x)).map((x,T)=>Y(x,n.fontSize,T===0||T===2?t:e,n,!0)||0),w=Object.values((0,Io.getStylesForProperty)("margin",m,!0)).map(x=>String(x)).map((x,T)=>Y(x,n.fontSize,T===0||T===2?t:e,n,!0)||0),_=w[3],O=w[0],E=e-(w[1]+w[3]),I=t-(w[0]+w[2]);return y.some(x=>x>0)?{type:"path",d:er({left:_,top:O,width:E,height:I},{...r,...g})}:{type:"rect",x:_,y:O,width:E,height:I}}function l(f){return Ar.shape.test(f)?tl(f,e,t,n):null}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u,parseShape:l}}function rl(e){let[,t="nonzero",r]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,r]}function nl(e,t,r){let n=e.split(" "),i={x:n[0]||"50%",y:n[1]||"50%"};return n.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=r:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=r/2)}),i}function bi(e){return`satori_cp-${e}`}function ol(e){return`url(#${bi(e)})`}function sl(e,t,r){if(t.clipPath==="none")return"";let n=il(e,t,r),i=t.clipPath,o={type:""};for(let s of Object.keys(n))if(o=n[s](i),o)break;if(o){let{type:s,...a}=o;return A("clipPath",{id:bi(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},A(s,a))}return""}function Ro({left:e,top:t,width:r,height:n,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",m=l.clipPath&&l.clipPath!=="none"?sl({left:e,top:t,width:r,height:n,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let g=m?`satori_ocp-${s}`:bi(s);c=A("clipPath",{id:g,"clip-path":a},A(i?"path":"rect",{x:e,y:t,width:r,height:n,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let h=_o({id:`satori_om-${s}`,left:e,top:t,width:r,height:n,matrix:o,borderOnly:!u},l);return m+c+h}var Dp=e=>`satori_mi-${e}`;async function Ao(e,t,r){if(!t.maskImage)return["",""];let{left:n,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=Dp(a),c="";for(let m=0;m<l;m++){let h=u[m],[g,y]=await tn({id:`${f}-${m}`,left:n,top:i,width:o,height:s},h,r,"mask");c+=y+A("rect",{x:n,y:i,width:o,height:s,fill:`url(#${g})`})}return c=A("mask",{id:f},c),[f,c]}function al({id:e,left:t,top:r,width:n,height:i,path:o,type:s,matrix:a,currentClipPath:u,mask:l,filters:f}){if(!f.length)return["",""];let c=`satori_bf-${e}`,m=`satori_bfc-${e}`,h=Bp(f),g="BackgroundImage",y="";f.forEach((O,E)=>{let I=`${c}-${E}`;y+=$p(O,g,I),g=I});let w=A("filter",{id:c,x:t-h.left,y:r-h.top,width:n+h.left+h.right,height:i+h.top+h.bottom,filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},y)+A("clipPath",{id:m,"clip-path":u},A(s,{x:t,y:r,width:n,height:i,d:o||void 0,transform:a||void 0})),_=A(s,{x:t,y:r,width:n,height:i,d:o||void 0,fill:"#000",transform:a||void 0,filter:`url(#${c})`,"clip-path":`url(#${m})`,mask:l});return[w,_]}function $p(e,t,r){if(e.type==="blur")return A("feGaussianBlur",{in:t,stdDeviation:e.value,result:r});if(e.type==="hue-rotate")return A("feColorMatrix",{in:t,type:"hueRotate",values:e.value,result:r});if(e.type==="saturate"||e.type==="grayscale")return A("feColorMatrix",{in:t,type:"saturate",values:e.type==="grayscale"?1-e.value:e.value,result:r});if(e.type==="sepia"){let s=e.value,a=1-s;return A("feColorMatrix",{in:t,type:"matrix",values:[a+.393*s,.769*s,.189*s,0,0,.349*s,a+.686*s,.168*s,0,0,.272*s,.534*s,a+.131*s,0,0,0,0,0,1,0].join(" "),result:r})}if(e.type==="drop-shadow"){let s=`${r}-input`;return A("feComposite",{in:t,in2:"SourceAlpha",operator:"in",result:s})+A("feDropShadow",{in:s,dx:e.offsetX,dy:e.offsetY,stdDeviation:e.blurRadius,"flood-color":e.color,result:r})}let n=e.value,i=e.type==="brightness"?{slope:n}:e.type==="contrast"?{slope:n,intercept:.5-.5*n}:e.type==="invert"?{slope:1-2*n,intercept:n}:{slope:n},o=e.type==="opacity"?["A"]:["R","G","B"];return A("feComponentTransfer",{in:t,result:r},o.map(s=>A(`feFunc${s}`,{type:"linear",...i})).join(""))}function Bp(e){let t=0,r=0,n=0,i=0;for(let o of e)if(o.type==="blur"){let s=o.value*3;t=Math.max(t,s),r=Math.max(r,s),n=Math.max(n,s),i=Math.max(i,s)}else if(o.type==="drop-shadow"){let s=o.blurRadius*3;t=Math.max(t,s-o.offsetX),r=Math.max(r,s-o.offsetY),n=Math.max(n,s+o.offsetX),i=Math.max(i,s+o.offsetY)}return{left:t,top:r,right:n,bottom:i}}function Up(e,t,r){let n=e.toLowerCase().trim().split(/\s+/),i=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(n.length===1){let u=n[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=n[0],l=n[1];u==="top"||u==="bottom"?(s=i(u,"y"),l==="left"||l==="right"||l==="center"?o=i(l,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):l)):(o=i(u,"x"),s=i(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let f=new wt(u);return f.type==="length"||f.type==="number"?f.value:0}catch{return 0}};return[a(o,t),a(s,r)]}async function nn({id:e,left:t,top:r,width:n,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",m="",h="",g=[],y=1,w="";u.backgroundColor&&g.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(m=en({left:t,top:r,width:n,height:i},u.transform,o,u.transformOrigin));let _="";if(u.backgroundImage){let re=[];for(let de=0;de<u.backgroundImage.length;de++){let Ie=u.backgroundImage[de],He=await tn({id:e+"_"+de,width:n,height:i,left:t,top:r},Ie,l);He&&re.unshift(He)}for(let de of re)g.push(`url(#${de[0]})`),h+=de[1],de[2]&&(_+=de[2])}let[O,E]=await Ao({id:e,left:t,top:r,width:n,height:i},u,l);h+=E;let I=O?`url(#${O})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,x=er({left:t,top:r,width:n,height:i},u);x&&(c="path");let T=u._inheritedClipPathId;a&&(w=A("rect",{x:t,y:r,width:n,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:m||void 0,"clip-path":T?`url(#${T})`:void 0}));let{backgroundClip:L,filter:M}=u,z=L==="text"?`url(#satori_bct-${e})`:T?`url(#${T})`:u.clipPath?ol(e):void 0,X=Ro({left:t,top:r,width:n,height:i,path:x,id:e,matrix:m,currentClipPath:z,src:s},u,l),[J,he]=al({id:e,left:t,top:r,width:n,height:i,path:x,type:c,matrix:m||void 0,currentClipPath:z,mask:I,filters:u._backdropFilters||[]});h+=J;let ve=g.map(re=>A(c,{x:t,y:r,width:n,height:i,fill:re,d:x||void 0,transform:m||void 0,"clip-path":u.transform?void 0:z,style:M?`filter:${M}`:void 0,mask:u.transform?void 0:I})).join(""),ce=Zu({id:e,left:t,top:r,width:n,height:i,currentClipPathId:T,borderPath:x,borderType:c},u),Ae;if(f){let re=(u.borderLeftWidth||0)+(u.paddingLeft||0),de=(u.borderTopWidth||0)+(u.paddingTop||0),Ie=(u.borderRightWidth||0)+(u.paddingRight||0),He=(u.borderBottomWidth||0)+(u.paddingBottom||0),Re=n-re-Ie,we=i-de-He,Ft=(u.objectPosition||"center").toString(),[oe,Q]=Up(Ft,Re,we),xe=u.__naturalWidth||Re,ee=u.__naturalHeight||we,G,Se=Re,ke=we,Be=t+re,Ye=r+de;if(u.objectFit==="contain"){let se=Re/xe,Ue=we/ee,Fe=Math.min(se,Ue);Se=xe*Fe,ke=ee*Fe,Be=t+re+oe-Se*oe/Re,Ye=r+de+Q-ke*Q/we,G="none"}else if(u.objectFit==="cover"){let se=Re/xe,Ue=we/ee,Fe=Math.max(se,Ue);Se=xe*Fe,ke=ee*Fe,Be=t+re+oe-Se*oe/Re,Ye=r+de+Q-ke*Q/we,G="none"}else if(u.objectFit==="fill")G="none";else if(u.objectFit==="scale-down")if(xe&&ee){let se=Re/xe,Ue=we/ee,Fe=Math.min(se,Ue);if(Fe>=1)Se=xe,ke=ee,G="none",Be=t+re+oe-Se*oe/Re,Ye=r+de+Q-ke*Q/we;else{let tt=Fe;Se=xe*tt,ke=ee*tt,Be=t+re+oe-Se*oe/Re,Ye=r+de+Q-ke*Q/we,G="none"}}else{let se=Re/xe,Ue=we/ee,Fe=Math.min(se,Ue);Se=xe*Fe,ke=ee*Fe,Be=t+re+oe-Se*oe/Re,Ye=r+de+Q-ke*Q/we,G="none"}else G="none";u.transform&&(Ae=Ku({id:e,borderRadiusPath:x,borderType:c,left:t,top:r,width:n,height:i},u)),ve+=A("image",{x:Be,y:Ye,width:Se,height:ke,href:s,preserveAspectRatio:G,transform:m||void 0,style:M?`filter:${M}`:void 0,"clip-path":u.transform?Ae?`url(#${Ae[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:O?`url(#${O})`:`url(#satori_om-${e})`})}if(ce){h+=ce[0];let re=ce[1];ve+=rn({left:t,top:r,width:n,height:i,props:{transform:m||void 0,"clip-path":`url(#${re})`}},u)}let Ce=$u({width:n,height:i,id:e,opacity:y,shape:A(c,{x:t,y:r,width:n,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:x||void 0,transform:m||void 0,"clip-path":z,mask:I})},u);return(h?A("defs",{},h):"")+(Ce?Ce[0]:"")+(Ae?Ae[0]:"")+X+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(z||I)?`<g${z?` clip-path="${z}"`:""}${I?` mask="${I}"`:""}>`:"")+he+(_||ve)+(u.transform&&(z||I)?"</g>":"")+(y!==1?"</g>":"")+(Ce?Ce[1]:"")+w}var ll=String.raw,ul=ll`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,fl=()=>new RegExp(ll`\p{RI}{2}|(?)${ul}(?:\u200D${ul})*`,"gu");var qp=new RegExp(fl(),"u"),Co={emoji:qp,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Lo={"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},yi=Object.keys({...Lo,...Co});function cl(e){return yi.includes(e)}function dl(e,t){for(let n of Object.keys(Co))if(Co[n].test(e))return[n];let r=Object.keys(Lo).filter(n=>Lo[n].test(e));if(r.length===0)return["unknown"];if(t){let n=r.findIndex(i=>i===t);n!==-1&&(r.splice(n,1),r.unshift(t))}return r}function pl(e){if(e)return yi.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*on(e,t){var oe;let r=await Zt(),{id:n,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:m}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!_r(e)||Ba(e.type)){let Q;if(!_r(e))Q=vo(String(e),t),yield(await Q.next()).value;else{if($a(e.type))throw new Error("Class component is not supported.");let ee;ji(e.type)?ee=e.type.render:ee=e.type,Q=on(await ee(e.props),t),yield(await Q.next()).value}await Q.next();let xe=yield;return(await Q.next(xe)).value}let{type:h,props:g}=e,y=h;if(g&&Ua(g))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:w,children:_,tw:O,lang:E=u}=g||{},I=pl(E);if(O){let Q=m(O,w);w=Object.assign(Q,w)}let x=r.Node.create();o.insertChild(x,o.getChildCount());let[T,L]=await fo(x,y,i,w,g),M=T.transform===i.transform;if(M||(T.transform.__parent=i.transform),(T.overflow==="hidden"||T.clipPath&&T.clipPath!=="none")&&(L._inheritedClipPathId=`satori_cp-${n}`,L._inheritedMaskId=`satori_om-${n}`),T.maskImage&&(L._inheritedMaskId=`satori_mi-${n}`),T.backgroundClip==="text"){let Q={value:""};L._inheritedBackgroundClipTextPath=Q,T._inheritedBackgroundClipTextPath=Q,T.backgroundImage&&(L._inheritedBackgroundClipTextHasBackground="true",T._inheritedBackgroundClipTextHasBackground="true")}let z=qa(_),X=[],J=0,he=[];for(let Q of z){let xe=on(Q,{id:n+"-"+J++,parentStyle:T,inheritedStyle:L,isInheritingTransform:!0,parent:x,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:I,getTwStyles:m,onNodeDetected:t.onNodeDetected});c?he.push(...(await xe.next()).value||[]):await xe.next(),X.push(xe)}yield he;for(let Q of X)await Q.next();let[ve,ce]=yield,{left:Ae,top:Ce,width:re,height:de}=x.getComputedLayout();Ae+=ve,Ce+=ce;let Ie="",He="",Re="",{children:we,...Ft}=g;if((oe=t.onNodeDetected)==null||oe.call(t,{left:Ae,top:Ce,width:re,height:de,type:y,props:Ft,key:e.key,textContent:_r(we)?void 0:we}),y==="img"){let Q=T.__src;He=await nn({id:n,left:Ae,top:Ce,width:re,height:de,src:Q,isInheritingTransform:M,debug:a},T,L)}else if(y==="svg"){let Q=T.color,xe=await vu(e,Q);He=await nn({id:n,left:Ae,top:Ce,width:re,height:de,src:xe,isInheritingTransform:M,debug:a},T,L)}else{let Q=w==null?void 0:w.display;if(y==="div"&&_&&typeof _!="string"&&Q!=="flex"&&Q!=="none"&&Q!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');He=await nn({id:n,left:Ae,top:Ce,width:re,height:de,isInheritingTransform:M,debug:a},T,L)}for(let Q of X)Ie+=(await Q.next([Ae,Ce])).value;return T._inheritedBackgroundClipTextPath&&(Re+=A("clipPath",{id:`satori_bct-${n}`,"clip-path":T._inheritedClipPathId?`url(#${T._inheritedClipPathId})`:void 0},T._inheritedBackgroundClipTextPath.value)),Re+He+Ie}var sn=ct(require("@shuding/opentype.js"),1),yl=require("fflate");var hl=ct(require("harfbuzzjs"),1),pt=null,vi=null,Mo=new WeakMap,No=typeof FinalizationRegistry=="function"?new FinalizationRegistry(e=>e.destroy()):null;async function ml(){if(!pt){if(vi){await vi;return}vi=(async()=>{if(pt=await hl.default,!pt||typeof pt.createBlob!="function")throw new Error("HarfBuzz module loaded but API is not available")})(),await vi}}function zp(e){if(!pt)throw new Error("HarfBuzz not initialized. Call initHarfBuzz() first.");if(Mo.has(e))return Mo.get(e);let t=e._rawFontData;if(!t)throw new Error("Font does not have _rawFontData. Make sure to store the original ArrayBuffer when loading fonts.");let r=pt.createBlob(new Uint8Array(t)),n=pt.createFace(r,0),i=pt.createFont(n);n.destroy(),r.destroy();let o=e.unitsPerEm;return i.setScale(o,o),Mo.set(e,i),No==null||No.register(e,i),i}function gl(e,t,r={}){if(!pt)throw new Error("HarfBuzz not initialized");if(!t||t.length===0)return[];let{features:n,language:i,script:o,direction:s}=r,a=zp(e),u=pt.createBuffer();try{u.addText(t),u.guessSegmentProperties(),i&&u.setLanguage(i),o&&u.setScript(o),s&&u.setDirection(s);let l;if(n&&Object.keys(n).length>0){let c=[];for(let[m,h]of Object.entries(n))typeof h=="boolean"?c.push(h?`+${m}`:`-${m}`):c.push(`${m}=${h}`);l=c.join(",")}return l?pt.shape(a,u,l):pt.shape(a,u),u.json(a)}finally{u.destroy()}}function bl(e){if(!e||e==="normal")return{};let t={},r=e.split(",").map(n=>n.trim());for(let n of r){let i=n.match(/["']([a-z0-9]{4})["']\s*(?:(on|off|[0-9]+))?/i);if(i){let o=i[1],s=i[2];if(!s||s==="on"||s==="1")t[o]=!0;else if(s==="off"||s==="0")t[o]=!1;else{let a=parseInt(s,10);isNaN(a)||(t[o]=a)}}}return t}var Gp=256;function jp(e){return/^\s$/.test(e)}function Vp(e,t){if(!e)return[];let r=Me(e,"grapheme"),n=[],i="",o=null;for(let s of r){let a;jp(s)&&o!==null&&o.charToGlyphIndex(s)?a=o:a=t(s),o===null?(o=a,i=s):a===o?i+=s:(n.push([i,o]),i=s,o=a)}return i&&o&&n.push([i,o]),n}function Hp(e){let t=new DataView(e),r=t.getUint16(12),n=t.getUint32(16),i=new ArrayBuffer(n),o=new DataView(i),s=new Uint8Array(i);o.setUint32(0,t.getUint32(4)),o.setUint16(4,r);let a=Math.floor(Math.log2(r)),u=(1<<a)*16;o.setUint16(6,u),o.setUint16(8,a),o.setUint16(10,r*16-u);let l=12+r*16;for(let f=0;f<r;f++){let c=44+f*20,m=t.getUint32(c),h=t.getUint32(c+4),g=t.getUint32(c+8),y=t.getUint32(c+12),w=t.getUint32(c+16),_=12+f*16;if(o.setUint32(_,m),o.setUint32(_+4,w),o.setUint32(_+8,l),o.setUint32(_+12,y),g<y){let O=new Uint8Array(e,h+2,g-2),E=new Uint8Array(y);(0,yl.inflateSync)(O,E),s.set(E,l)}else s.set(new Uint8Array(e,h,y),l);l+=y+3&-4}return i}var vl="unknown";function Yp(e){let t=[],r=[0,0],n=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let l=u/s,f=Xp(o,l);t.push({from:a,to:f}),a=f}n=o[o.length-1]};for(let o of e){if(o.type==="M"){r=n=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:n,to:s}),n=s;continue}if(o.type==="Q"){i([n,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([n,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:n,to:r}),n=r)}return t}function Xp(e,t){let r=e;for(;r.length>1;){let n=[];for(let i=0;i<r.length-1;i++)n.push([r[i][0]+(r[i+1][0]-r[i][0])*t,r[i][1]+(r[i+1][1]-r[i][1])*t]);r=n}return r[0]}function Qp(e,t){if(!t)return[];let r=t.strokeWidth,n=t.underlineY-r*.25,i=t.underlineY+r*2.5,o=Yp(e);if(!o.length)return[];let s=i-n,a=Math.max(12,Math.ceil(s/.25)),u=s/a,l=n+u/2,f=new Set;for(let E=0;E<a;E++){let I=l+u*E,x=[];for(let T of o){let[L,M]=T.from,[z,X]=T.to;if(M===X)continue;let J=Math.min(M,X),he=Math.max(M,X);if(I<J||I>=he)continue;let ve=(I-M)/(X-M),ce=L+(z-L)*ve;x.push(ce)}if(x.length){x.sort((T,L)=>T-L);for(let T=0;T<x.length-1;T+=2){let L=Math.min(x[T],x[T+1]),M=Math.max(x[T],x[T+1]),z=Math.floor(L),X=Math.ceil(M);for(let J=z;J<X;J++)f.add(J)}}}if(!f.size)return[];let c=Array.from(f.values()).sort((E,I)=>E-I),m=[],h=c[0],g=c[0];for(let E=1;E<c.length;E++){let I=c[E];I>g+1&&(m.push([h,g+1]),h=I),g=I}m.push([h,g+1]);let y=[],w=r*.6,_=m[0][0],O=m[m.length-1][1];for(let[E,I]of m){let x=Math.min(E,_)-w,T=Math.max(I,O)+w;y.push({x1:x,x2:T,y1:n,y2:i})}return y}function Kp(e,t,[r,n],[i,o]){if(r!==i)return r?!i||r===e?-1:i===e?1:e===400&&r===500||e===500&&r===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?r<e&&i<e?i-r:r<e?-1:i<e?1:r-i:e<r&&e<i?r-i:e<r?-1:e<i?1:i-r:1;if(n!==o){if(n===t)return-1;if(o===t)return 1}return-1}var Fo=new WeakMap,an=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:r,style:n}){if(!this.fonts.has(t))return null;r==="normal"&&(r=400),r==="bold"&&(r=700),typeof r=="string"&&(r=Number.parseInt(r,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,l,f]=i[s];Kp(r,n,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let r of t){let{name:n,data:i,lang:o}=r;if(o&&!cl(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${yi.join(", ")}.`);let s=o??vl,a;if(Fo.has(i))a=Fo.get(i);else{let l="buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i;a=sn.default.parse(l,{lowMemory:!0});let f=new Uint8Array(l),c=f[0]===119&&f[1]===79&&f[2]===70&&f[3]===70;a._rawFontData=c?Hp(l):l;let m=a.charToGlyphIndex;a.charToGlyphIndex=h=>{let g=m.call(a,h);return g===0&&a._trackBrokenChars&&a._trackBrokenChars.push(h),g},Fo.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${n.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,r.weight,r.style])}}getEngine(t=16,r="normal",{fontFamily:n="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.");n=(Array.isArray(n)?n:[n]).map(x=>x.toLowerCase());let a=[];n.forEach(x=>{let T=this.get({name:x,weight:i,style:o});if(T){a.push(T);return}let L=this.get({name:x+"_unknown",weight:i,style:o});if(L){a.push(L);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let x of u)if(!n.includes(x))if(s){let T=Jp(x);T?T===s?l.push(this.get({name:x,weight:i,style:o})):f.push(this.get({name:x,weight:i,style:o})):c.push(this.get({name:x,weight:i,style:o}))}else c.push(this.get({name:x,weight:i,style:o}));let m=new Map,h=(x,T=!0)=>{let L=[...a,...c,...l,...T?f:[]];if(typeof x>"u")return T?L[L.length-1]:void 0;let M=x.charCodeAt(0);if(m.has(M))return m.get(M);let z=L.find((X,J)=>!!X.charToGlyphIndex(x)||T&&J===L.length-1);return z&&m.set(M,z),z},g=(x,T=!1)=>{var M,z;return((T?(z=(M=x.tables)==null?void 0:M.os2)==null?void 0:z.sTypoAscender:0)||x.ascender)/x.unitsPerEm*t},y=(x,T=!1)=>{var M,z;return((T?(z=(M=x.tables)==null?void 0:M.os2)==null?void 0:z.sTypoDescender:0)||x.descender)/x.unitsPerEm*t},w=(x,T=!1)=>{var L,M;if(typeof r=="string"&&r==="normal"){let z=(T?(M=(L=x.tables)==null?void 0:L.os2)==null?void 0:M.sTypoLineGap:0)||0;return g(x,T)-y(x,T)+z/x.unitsPerEm*t}else if(typeof r=="number")return t*r},_=x=>h(x,!1),O=new Map,E=(x,T)=>{let L=`${T||""}\0${x}`,M=O.get(L);if(M!==void 0)return O.delete(L),O.set(L,M),M;let z=T?bl(T):{},X=Vp(x,h).map(([J,he])=>[J,he,gl(he,J,{features:z})]);if(O.size>=Gp){let J=O.keys().next().value;J!==void 0&&O.delete(J)}return O.set(L,X),X};return{has:x=>{if(x===`
|
|
7
|
+
`)return!0;let T=_(x);if(!T)return!1;for(let L of Me(x,"grapheme"))if(!T.charToGlyphIndex(L))return!1;return!0},baseline:(x,T=typeof x>"u"?a[0]:h(x))=>{let L=g(T),M=y(T),z=L-M;return L+(w(T)-z)/2},height:(x,T=typeof x>"u"?a[0]:h(x))=>w(T),measure:(x,T)=>this.measure(x,T,E),getSVG:(x,T,L)=>this.getSVG(x,T,E,L)}}patchFontFallbackResolver(t,r){let n=[];t._trackBrokenChars=n;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 l=n.shift(),f=r(l);if(f!==t){let c=f.charToGlyph(l),m=t.unitsPerEm/f.unitsPerEm,h=new sn.default.Path;h.unitsPerEm=t.unitsPerEm,h.commands=c.path.commands.map(y=>{let w={...y};for(let _ in w)typeof w[_]=="number"&&(w[_]*=m);return w});let g=new sn.default.Glyph({...c,advanceWidth:c.advanceWidth*m,xMin:c.xMin*m,xMax:c.xMax*m,yMin:c.yMin*m,yMax:c.yMax*m,path:h});a[u]=g}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,{fontSize:r,letterSpacing:n=0,fontFeatureSettings:i},o){let s=o(t,i),a=0,u=0;for(let[,f,c]of s){let m=0;for(let h of c)m+=h.ax;a+=m/f.unitsPerEm*r,u+=c.length}let l=n*Math.max(0,u-1);return a+l}getSVG(t,{fontSize:r,top:n,left:i,letterSpacing:o=0,fontFeatureSettings:s},a,u){if(r===0)return{path:"",boxes:[]};let l=a(t.replace(/\n/g,""),s),f=new sn.default.Path,c=[],m=i,h=n,g=!1;for(let[,y,w]of l){let _=r/y.unitsPerEm;for(let O=0;O<w.length;O++){let E=w[O];g&&(m+=o);let I=y.glyphs.get(E.g);if(I&&I.path){let x=m+E.dx*_,T=h+E.dy*_,L=I.getPath(x,T,r,{}),M=u?Qp(L.commands,u):[];M.length&&c.push(...M),f.extend(L)}m+=E.ax*_,g=!0}}return{path:f.toPathData(1),boxes:c}}};function Jp(e){let t=e.split("_"),r=t[t.length-1];return r===vl?void 0:r}function Wo({width:e,height:t,content:r}){return A("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg","enable-background":r.includes('in="BackgroundImage"')?"new":void 0},r)}var Zc=ct(Rc());var Dy=["ios","android","windows","macos","web"];function Cc(e){return Dy.includes(e)}var $y=["portrait","landscape"];function Lc(e){return $y.includes(e)}var Ac;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Ac||(Ac={}));var ue;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(ue||(ue={}));function la(e){return typeof e=="string"}function fa(e){return typeof e=="object"}var ca;function k(e){return{kind:"complete",style:e}}function Ne(e,t={}){let{fractions:r}=t;if(r&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Ne(o),u=Ne(s);return!a||!u?null:[a[0]/u[0],u[1]]}let n=parseFloat(e);if(Number.isNaN(n))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[n,ue.none];switch(i==null?void 0:i[1]){case"rem":return[n,ue.rem];case"px":return[n,ue.px];case"em":return[n,ue.em];case"%":return[n,ue.percent];case"vw":return[n,ue.vw];case"vh":return[n,ue.vh];default:return null}}function Kt(e,t,r={}){let n=Mt(t,r);return n===null?null:k({[e]:n})}function Wi(e,t,r){let n=Mt(t);return n!==null&&(r[e]=n),r}function Nc(e,t){let r=Mt(t);return r===null?null:{[e]:r}}function Mt(e,t={}){if(e===void 0)return null;let r=Ne(String(e),t);return r?or(...r,t):null}function or(e,t,r={}){let{isNegative:n,device:i}=r;switch(t){case ue.rem:return e*16*(n?-1:1);case ue.px:return e*(n?-1:1);case ue.percent:return`${n?"-":""}${e}%`;case ue.none:return e*(n?-1:1);case ue.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(et("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case ue.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(et("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function da(e){let t=Ne(e);if(!t)return null;let[r,n]=t;switch(n){case ue.rem:return r*16;case ue.px:return r;default:return null}}var By={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function pa(e){return By[e??""]||"All"}function ha(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(n,i)=>(t=pa(i),"")),t]}function br(e,t={}){if(e.includes("/")){let r=Mc(e,{...t,fractions:!0});if(r)return r}return e[0]==="["&&(e=e.slice(1,-1)),Mc(e,t)}function yt(e,t,r={}){let n=br(t,r);return n===null?null:k({[e]:n})}function Mc(e,t={}){if(e==="px")return 1;let r=Ne(e,t);if(!r)return null;let[n,i]=r;return t.fractions&&(i=ue.percent,n*=100),i===ue.none&&(n=n/4,i=ue.rem),or(n,i,t)}function Uy(...e){console.warn(...e)}function qy(...e){}var et=typeof process>"u"||((ca=process==null?void 0:process.env)===null||ca===void 0?void 0:ca.JEST_WORKER_ID)===void 0?Uy:qy;var zy=[["aspect-square",k({aspectRatio:1})],["aspect-video",k({aspectRatio:16/9})],["items-center",k({alignItems:"center"})],["items-start",k({alignItems:"flex-start"})],["items-end",k({alignItems:"flex-end"})],["items-baseline",k({alignItems:"baseline"})],["items-stretch",k({alignItems:"stretch"})],["justify-start",k({justifyContent:"flex-start"})],["justify-end",k({justifyContent:"flex-end"})],["justify-center",k({justifyContent:"center"})],["justify-between",k({justifyContent:"space-between"})],["justify-around",k({justifyContent:"space-around"})],["justify-evenly",k({justifyContent:"space-evenly"})],["content-start",k({alignContent:"flex-start"})],["content-end",k({alignContent:"flex-end"})],["content-between",k({alignContent:"space-between"})],["content-around",k({alignContent:"space-around"})],["content-stretch",k({alignContent:"stretch"})],["content-center",k({alignContent:"center"})],["self-auto",k({alignSelf:"auto"})],["self-start",k({alignSelf:"flex-start"})],["self-end",k({alignSelf:"flex-end"})],["self-center",k({alignSelf:"center"})],["self-stretch",k({alignSelf:"stretch"})],["self-baseline",k({alignSelf:"baseline"})],["direction-inherit",k({direction:"inherit"})],["direction-ltr",k({direction:"ltr"})],["direction-rtl",k({direction:"rtl"})],["hidden",k({display:"none"})],["flex",k({display:"flex"})],["flex-row",k({flexDirection:"row"})],["flex-row-reverse",k({flexDirection:"row-reverse"})],["flex-col",k({flexDirection:"column"})],["flex-col-reverse",k({flexDirection:"column-reverse"})],["flex-wrap",k({flexWrap:"wrap"})],["flex-wrap-reverse",k({flexWrap:"wrap-reverse"})],["flex-nowrap",k({flexWrap:"nowrap"})],["flex-auto",k({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",k({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",k({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",k({overflow:"hidden"})],["overflow-visible",k({overflow:"visible"})],["overflow-scroll",k({overflow:"scroll"})],["absolute",k({position:"absolute"})],["relative",k({position:"relative"})],["italic",k({fontStyle:"italic"})],["not-italic",k({fontStyle:"normal"})],["oldstyle-nums",Dn("oldstyle-nums")],["small-caps",Dn("small-caps")],["lining-nums",Dn("lining-nums")],["tabular-nums",Dn("tabular-nums")],["proportional-nums",Dn("proportional-nums")],["font-thin",k({fontWeight:"100"})],["font-100",k({fontWeight:"100"})],["font-extralight",k({fontWeight:"200"})],["font-200",k({fontWeight:"200"})],["font-light",k({fontWeight:"300"})],["font-300",k({fontWeight:"300"})],["font-normal",k({fontWeight:"normal"})],["font-400",k({fontWeight:"400"})],["font-medium",k({fontWeight:"500"})],["font-500",k({fontWeight:"500"})],["font-semibold",k({fontWeight:"600"})],["font-600",k({fontWeight:"600"})],["font-bold",k({fontWeight:"bold"})],["font-700",k({fontWeight:"700"})],["font-extrabold",k({fontWeight:"800"})],["font-800",k({fontWeight:"800"})],["font-black",k({fontWeight:"900"})],["font-900",k({fontWeight:"900"})],["include-font-padding",k({includeFontPadding:!0})],["remove-font-padding",k({includeFontPadding:!1})],["max-w-none",k({maxWidth:"99999%"})],["text-left",k({textAlign:"left"})],["text-center",k({textAlign:"center"})],["text-right",k({textAlign:"right"})],["text-justify",k({textAlign:"justify"})],["text-auto",k({textAlign:"auto"})],["underline",k({textDecorationLine:"underline"})],["line-through",k({textDecorationLine:"line-through"})],["no-underline",k({textDecorationLine:"none"})],["uppercase",k({textTransform:"uppercase"})],["lowercase",k({textTransform:"lowercase"})],["capitalize",k({textTransform:"capitalize"})],["normal-case",k({textTransform:"none"})],["w-auto",k({width:"auto"})],["h-auto",k({height:"auto"})],["shadow-sm",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",k({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",k({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ma=zy;function Dn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var $n=class{constructor(t){this.ir=new Map(ma),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ma,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,r){this.styles.set(t,r)}getIr(t){return this.ir.get(t)}setIr(t,r){this.ir.set(t,r)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,r){this.prefixes.set(t,r)}};function ga(e,t,r={}){let n=t==null?void 0:t[e];if(!n)return yt("fontSize",e,r);if(typeof n=="string")return Kt("fontSize",n);let i={},[o,s]=n,a=Nc("fontSize",o);if(a&&(i=a),typeof s=="string")return k(Wi("lineHeight",Fc(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&Wi("lineHeight",Fc(u,i),i),l&&Wi("letterSpacing",l,i),k(i)}function Fc(e,t){let r=Ne(e);if(r){let[n,i]=r;if((i===ue.none||i===ue.em)&&typeof t.fontSize=="number")return t.fontSize*n}return e}function ba(e,t){var r;let n=(r=t==null?void 0:t[e])!==null&&r!==void 0?r:e.startsWith("[")?e.slice(1,-1):e,i=Ne(n);if(!i)return null;let[o,s]=i;if(s===ue.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=or(o,s);return a!==null?k({lineHeight:a}):null}function ya(e,t,r,n,i){let o="";if(n[0]==="[")o=n.slice(1,-1);else{let l=i==null?void 0:i[n];if(l)o=l;else{let f=br(n);return f&&typeof f=="number"?Wc(f,ue.px,t,e):null}}if(o==="auto")return Dc(t,e,"auto");let s=Ne(o);if(!s)return null;let[a,u]=s;return r&&(a=-a),Wc(a,u,t,e)}function Wc(e,t,r,n){let i=or(e,t);return i===null?null:Dc(r,n,i)}function Dc(e,t,r){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Right`]:r,[`${t}Bottom`]:r,[`${t}Left`]:r}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:r}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:r,[`${t}Bottom`]:r}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:r,[`${t}Right`]:r}};default:return null}}function va(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,l=u.min?da(u.min):0;l===null?et(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?da(u.max):1/0;return f===null?et(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),r=Object.values(t);r.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let n=0;return r.forEach(i=>i[2]=n++),t}function xa(e,t){let r=t==null?void 0:t[e];if(!r)return null;if(typeof r=="string")return k({fontFamily:r});let n=r[0];return n?k({fontFamily:n}):null}function yr(e,t,r){if(!r)return null;let n;t.includes("/")&&([t="",n]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Uc(t,r),!i)return null;if(n){let o=Number(n);if(!Number.isNaN(o))return i=$c(i,o/100),k({[Di[e].color]:i})}return{kind:"dependent",complete(o){let s=Di[e].opacity,a=o[s];typeof a=="number"&&(i=$c(i,a)),o[Di[e].color]=i}}}function Bn(e,t){let r=parseInt(t,10);if(Number.isNaN(r))return null;let n=r/100;return{kind:"complete",style:{[Di[e].opacity]:n}}}function $c(e,t){return e.startsWith("#")?e=Gy(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Bc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Di={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 Gy(e){let t=e;e=e.replace(jy,(s,a,u,l)=>a+a+u+u+l+l);let r=Vy.exec(e);if(!r)return et(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let n=parseInt(r[1],16),i=parseInt(r[2],16),o=parseInt(r[3],16);return`rgba(${n}, ${i}, ${o}, 1)`}function Uc(e,t){let r=t[e];if(la(r))return r;if(fa(r)&&la(r.DEFAULT))return r.DEFAULT;let[n="",...i]=e.split("-");for(;n!==e;){let o=t[n];if(fa(o))return Uc(i.join("-"),o);if(i.length===0)return"";n=`${n}-${i.shift()}`}return""}var jy=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Vy=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function zc(e,t){let[r,n]=ha(e);if(r.match(/^(-?(\d)+)?$/))return Hy(r,n,t==null?void 0:t.borderWidth);if(r=r.replace(/^-/,""),["dashed","solid","dotted"].includes(r))return k({borderStyle:r});let o="border";switch(n){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=yr(o,r,t==null?void 0:t.borderColor);if(s)return s;let a=`border${n==="All"?"":n}Width`;r=r.replace(/^-/,"");let u=r.slice(1,-1),l=yt(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function Hy(e,t,r){if(!r)return null;e=e.replace(/^-/,"");let i=r[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Kt(o,i)}function Gc(e,t){if(!t)return null;let[r,n]=ha(e);r=r.replace(/^-/,""),r===""&&(r="DEFAULT");let i=`border${n==="All"?"":n}Radius`,o=t[r];if(o)return qc(Kt(i,o));let s=yt(i,r);return typeof(s==null?void 0:s.style[i])!="number"?null:qc(s)}function qc(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 r=e.style.borderBottomRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderBottomRightRadius=r,delete e.style.borderBottomRadius);let n=e.style.borderLeftRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderTopLeftRadius=n,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 Fr(e,t,r,n){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=n==null?void 0:n[t];if(o){let a=Mt(o,{isNegative:r});if(a!==null)return jc(e,i,a)}let s=br(t,{isNegative:r});return s!==null?jc(e,i,s):null}function jc(e,t,r){if(e!=="inset")return k({[e]:r});switch(t){case null:return k({top:r,left:r,right:r,bottom:r});case"y":return k({top:r,bottom:r});case"x":return k({left:r,right:r})}}function Un(e,t,r){var n;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((n=r==null?void 0:r[i])!==null&&n!==void 0?n:t);return Number.isNaN(o)?null:k({[`flex${e}`]:o})}function Vc(e,t){var r,n;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return k({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return k({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Mt((r=i[2])!==null&&r!==void 0?r:"");return o?k({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Mt((n=i[3])!==null&&n!==void 0?n:"");return o?k({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function wa(e,t,r={},n){let i=n==null?void 0:n[t];return i!==void 0?Kt(e,i,r):yt(e,t,r)}function qn(e,t,r={},n){let i=Mt(n==null?void 0:n[t],r);return i?k({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),yt(e,t,r))}function Hc(e,t,r){let n=r==null?void 0:r[e];if(n){let i=Ne(n,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===ue.em)return Yy(o);if(s===ue.percent)return et("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=or(o,s,{isNegative:t});return a!==null?k({letterSpacing:a}):null}return yt("letterSpacing",e,{isNegative:t})}function Yy(e){return{kind:"dependent",complete(t){let r=t.fontSize;if(typeof r!="number"||Number.isNaN(r))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*r+Number.EPSILON)*100)/100}}}function Yc(e,t){let r=t==null?void 0:t[e];if(r){let i=Ne(String(r));if(i)return k({opacity:i[0]})}let n=Ne(e);return n?k({opacity:n[0]/100}):null}function Xc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Qc(e){if(e.includes("/")){let[r="",n=""]=e.split("/",2),i=Sa(r),o=Sa(n);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Sa(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Sa(e){let t=br(e);return typeof t=="number"?t:null}var Wr=class{constructor(t,r={},n,i,o){var s,a,u,l,f,c;this.config=r,this.cache=n,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let m=t.trim().split(":"),h=[];m.length===1?this.string=t:(this.string=(s=m.pop())!==null&&s!==void 0?s:"",h=m),this.char=this.string[0];let g=va((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of h)if(g[y]){let w=(u=g[y])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let _=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(_){let[O,E]=(c=g[y])!==null&&c!==void 0?c:[0,0];(_<=O||_>E)&&(this.isNull=!0)}else this.isNull=!0}else Cc(y)?this.isNull=y!==o:Lc(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 r=this.parseUtility();return r?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:r}:r:{kind:"null"}}parseUtility(){var t,r,n,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 l=this.char==="m"?"margin":"padding";this.advance(((r=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+1);let f=pa(u[1]),c=ya(l,f,this.isNegative,this.rest,(n=this.config.theme)===null||n===void 0?void 0:n[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(a=wa("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=wa("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=qn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=qn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=qn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=qn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=ba(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=ga(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=yr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Bn("text",this.rest),a))||this.consumePeeked("font-")&&(a=xa(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&et("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Kt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=yr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=yr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Bn("bg",this.rest),a))||this.consumePeeked("border")&&(a=zc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Bn("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Gc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Fr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Fr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Fr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Fr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Fr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Un("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Un("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Vc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Un("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Un("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Bn("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Xc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Qc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=yt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=yr("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 k({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Yc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Hc(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 k({zIndex:u})}return et(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var r;if(t[0]!=="m")return!1;let n=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!n)return!1;if(!(!((r=this.context.device)===null||r===void 0)&&r.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=n,u=s==="w"?i.width:i.height,l=Ne(a,this.context);if(l===null)return this.isNull=!0,!0;let[f,c]=l;return c!=="px"&&(this.isNull=!0),(o==="min"?u>=f:u<=f)?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,r){return this.string.slice(this.position+t,this.position+r)}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 Kc(e){let t=[],r=null;return e.forEach(n=>{if(typeof n=="string")t=[...t,..._a(n)];else if(Array.isArray(n))t=[...t,...n.flatMap(_a)];else if(typeof n=="object"&&n!==null)for(let[i,o]of Object.entries(n))typeof o=="boolean"?t=[...t,...o?_a(i):[]]:r?r[i]=o:r={[i]:o}}),[t.filter(Boolean).filter(Xy),r]}function _a(e){return e.trim().split(/\s+/)}function Xy(e,t,r){return r.indexOf(e)===t}function Jc(e){var t;return(t=e==null?void 0:e.reduce((r,n)=>({...r,...Qy(n.handler)}),{}))!==null&&t!==void 0?t:{}}function Qy(e){let t={};return e({addUtilities:r=>{t=r},...Ky}),t}function Nt(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Ky={addComponents:Nt,addBase:Nt,addVariant:Nt,e:Nt,prefix:Nt,theme:Nt,variants:Nt,config:Nt,corePlugins:Nt,matchUtilities:Nt,postcss:null};function ed(e,t){let r=(0,Zc.default)(Jy(e)),n={},i=Jc(r.plugins),o={},s=Object.entries(i).map(([g,y])=>typeof y=="string"?(o[g]=y,[g,{kind:"null"}]):[g,k(y)]).filter(([,g])=>g.kind!=="null");function a(){return[n.windowDimensions?`w${n.windowDimensions.width}`:!1,n.windowDimensions?`h${n.windowDimensions.height}`:!1,n.fontScale?`fs${n.fontScale}`:!1,n.colorScheme==="dark"?"dark":!1,n.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let g=l[u];if(g)return g;let y=new $n(s);return l[u]=y,y}function c(...g){let y=f(),w={},_=[],O=[],[E,I]=Kc(g),x=E.join(" "),T=y.getStyle(x);if(T)return{...T,...I||{}};for(let L of E){let M=y.getIr(L);if(!M&&L in o){let X=c(o[L]);y.setIr(L,k(X)),w={...w,...X};continue}switch(M=new Wr(L,r,y,n,t).parse(),M.kind){case"complete":w={...w,...M.style},y.setIr(L,M);break;case"dependent":_.push(M);break;case"ordered":O.push(M);break;case"null":y.setIr(L,M);break}}if(O.length>0){O.sort((L,M)=>L.order-M.order);for(let L of O)switch(L.styleIr.kind){case"complete":w={...w,...L.styleIr.style};break;case"dependent":_.push(L.styleIr);break}}if(_.length>0){for(let L of _){let M=L.complete(w);M&&et(M)}Bc(w)}return x!==""&&y.setStyle(x,w),I&&(w={...w,...I}),w}function m(g){let y=c(g.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let h=(g,...y)=>{let w="";return g.forEach((_,O)=>{var E;w+=_+((E=y[O])!==null&&E!==void 0?E:"")}),c(w)};return h.style=c,h.color=m,h.prefixMatch=(...g)=>{let y=g.sort().join(":"),w=f(),_=w.getPrefixMatch(y);if(_!==void 0)return _;let I=new Wr(`${y}:flex`,r,w,n,t).parse().kind!=="null";return w.setPrefixMatch(y,I),I},h.setWindowDimensions=g=>{n.windowDimensions=g,u=a()},h.setFontScale=g=>{n.fontScale=g,u=a()},h.setPixelDensity=g=>{n.pixelDensity=g,u=a()},h.setColorScheme=g=>{n.colorScheme=g,u=a()},h}function Jy(e){return{...e,content:["_no_warnings_please"]}}var ev={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 tv(e){return ed({...e,plugins:[...(e==null?void 0:e.plugins)??[],ev]},"web")}var $i;function Ta({width:e,height:t,config:r}){return $i||($i=tv(r)),$i.setWindowDimensions({width:+e,height:+t}),$i}var Ea=new WeakMap;async function ka(e,t){let[r]=await Promise.all([Zt(),ml()]);if(!r||!r.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+r);t.fonts=t.fonts||[];let n;Ea.has(t.fonts)?n=Ea.get(t.fonts):Ea.set(t.fonts,n=new an(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=rv(r,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(r.FLEX_DIRECTION_ROW),s.setFlexWrap(r.WRAP_WRAP),s.setAlignContent(r.ALIGN_AUTO),s.setAlignItems(r.ALIGN_FLEX_START),s.setJustifyContent(r.JUSTIFY_FLEX_START),s.setOverflow(r.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),Qr.clear(),await yu(e);let l=on(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:n,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(g,y)=>{let _={...Ta({width:i,height:o,config:t.tailwindConfig})([g])};return typeof _.lineHeight=="number"&&(_.lineHeight=_.lineHeight/(+_.fontSize||y.fontSize||16)),_.shadowColor&&_.boxShadow&&(_.boxShadow=_.boxShadow.replace(/rgba?\([^)]+\)/,_.shadowColor)),_}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let g=nv(f),y=[],w={};await Promise.all(Object.entries(g).flatMap(([_,O])=>O.map(E=>{let I=`${_}_${E}`;return u.has(I)?null:(u.add(I),t.loadAdditionalAsset(_,E).then(x=>{typeof x=="string"?w[E]=x:x&&(Array.isArray(x)?y.push(...x):y.push(x))}))}))),n.addFonts(y),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,r.DIRECTION_LTR);let c=(await l.next([0,0])).value,m=s.getComputedWidth(),h=s.getComputedHeight();return s.freeRecursive(),Wo({width:m,height:h,content:c})}function rv(e,t){if(t){let r=e.Config.create();return r.setPointScaleFactor(t),e.Node.createWithConfig(r)}else return e.Node.create()}function nv(e){let t={},r={};for(let{word:n,locale:i}of e){let o=dl(n,i).join("|");r[o]=r[o]||"",r[o]+=n}return Object.keys(r).forEach(n=>{t[n]=t[n]||[],n==="emoji"?t[n].push(...td(Me(r[n],"grapheme"))):(t[n][0]=t[n][0]||"",t[n][0]+=td(Me(r[n],"grapheme",n==="unknown"?void 0:n)).join(""))}),t}function td(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
8
8
|
//# sourceMappingURL=standalone.cjs.map
|