satori 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ql=Object.create;var Dr=Object.defineProperty;var Bl=Object.getOwnPropertyDescriptor;var zl=Object.getOwnPropertyNames;var Ul=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty;var Yo=(e,t)=>()=>(e&&(t=e(e=0)),t);var P=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sn=(e,t)=>{for(var n in t)Dr(e,n,{get:t[n],enumerable:!0})},Xo=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zl(t))!Gl.call(e,i)&&i!==n&&Dr(e,i,{get:()=>t[i],enumerable:!(r=Bl(t,i))||r.enumerable});return e};var nt=(e,t,n)=>(n=e!=null?ql(Ul(e)):{},Xo(t||!e||!e.__esModule?Dr(n,"default",{value:e,enumerable:!0}):n,e)),Lt=e=>Xo(Dr({},"__esModule",{value:!0}),e);var Qn=P(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Object.defineProperty(Xn,"default",{enumerable:!0,get:()=>Hf});function Hf(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 ra=P(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Object.defineProperty(Kn,"default",{enumerable:!0,get:()=>Vf});var Vf=["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 na=P(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Object.defineProperty(Jn,"default",{enumerable:!0,get:()=>Yf});function Yf(e,t){return e===void 0?t:Array.isArray(e)?e:[...new Set(t.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}});var Zn=P((pv,ia)=>{ia.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 Zr={};Sn(Zr,{default:()=>Xf});var Xf,en=Yo(()=>{Xf={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 oa=P(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});Object.defineProperty(ei,"default",{enumerable:!0,get:()=>Jf});var Qf=Kf((en(),Lt(Zr)));function Kf(e){return e&&e.__esModule?e:{default:e}}function Gt({version:e,from:t,to:n}){Qf.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}var Jf={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 Gt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Gt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Gt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Gt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Gt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var sa=P(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});Object.defineProperty(ti,"defaults",{enumerable:!0,get:()=>Zf});function Zf(e,...t){for(let i of t){for(let o in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,o)||(e[o]=i[o])}for(let o of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,o)||(e[o]=i[o])}}return e}});var aa=P(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});Object.defineProperty(ri,"toPath",{enumerable:!0,get:()=>ec});function ec(e){if(Array.isArray(e))return e;let t=e.split("[").length-1,n=e.split("]").length-1;if(t!==n)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}});var la=P(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});Object.defineProperty(ni,"normalizeConfig",{enumerable:!0,get:()=>rc});var jt=tc((en(),Lt(Zr)));function ua(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ua=function(r){return r?n:t})(e)}function tc(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ua(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function rc(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(r=>!["files","extract","transform"].includes(r)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(r=>typeof r=="string"?!0:!(typeof(r==null?void 0:r.raw)!="string"||r!=null&&r.extension&&typeof(r==null?void 0:r.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let r of Object.values(e.content.extract))if(typeof r!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let r of Object.values(e.content.transform))if(typeof r!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1}return!0}return!1})()||jt.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var r;let{content:i,purge:o,safelist:s}=e;return Array.isArray(s)?s:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(o==null?void 0:o.safelist)?o.safelist:Array.isArray(o==null||(r=o.options)===null||r===void 0?void 0:r.safelist)?o.options.safelist:[]})(),typeof e.prefix=="function")jt.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var n;e.prefix=(n=e.prefix)!==null&&n!==void 0?n:""}e.content={files:(()=>{let{content:r,purge:i}=e;return Array.isArray(i)?i:Array.isArray(i==null?void 0:i.content)?i.content:Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(r==null?void 0:r.files)?r.files:[]})(),extract:(()=>{let r=(()=>{var s,a,u,l,f,c,p,d,h,m;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:!((p=e.purge)===null||p===void 0||(d=p.options)===null||d===void 0)&&d.extractors?e.purge.options.extractors:!((h=e.content)===null||h===void 0||(m=h.options)===null||m===void 0)&&m.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 r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:s,extractor:a}of r??[])for(let u of s)i[u]=a;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var o,s,a,u,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 r=="function"&&(i.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(i,r),i})()};for(let r of e.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){jt.default.warn("invalid-glob-braces",[`The glob pattern ${(0,jt.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,jt.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var fa=P(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});Object.defineProperty(ii,"default",{enumerable:!0,get:()=>nc});function nc(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var ca=P(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});Object.defineProperty(si,"cloneDeep",{enumerable:!0,get:()=>oi});function oi(e){return Array.isArray(e)?e.map(t=>oi(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,oi(n)])):e}});var ai=P((tn,da)=>{"use strict";tn.__esModule=!0;tn.default=sc;function ic(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var o=t.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(r=o===32,!s)break;n+=t[i]}if(n.length!==0){var a=parseInt(n,16),u=a>=55296&&a<=57343;return u||a===0||a>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(a),n.length+(r?1:0)]}}var oc=/\\/;function sc(e){var t=oc.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=ic(e.slice(r+1,r+7));if(i!==void 0){n+=i[0],r+=i[1];continue}if(e[r+1]==="\\"){n+="\\",r++;continue}e.length===r+1&&(n+=e[r]);continue}n+=e[r]}return n}da.exports=tn.default});var ha=P((rn,pa)=>{"use strict";rn.__esModule=!0;rn.default=ac;function ac(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();if(!e[i])return;e=e[i]}return e}pa.exports=rn.default});var ga=P((nn,ma)=>{"use strict";nn.__esModule=!0;nn.default=uc;function uc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(;n.length>0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}}ma.exports=nn.default});var va=P((on,ba)=>{"use strict";on.__esModule=!0;on.default=lc;function lc(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t=t+e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t=t+e.slice(r),t}ba.exports=on.default});var Ht=P(Ce=>{"use strict";Ce.__esModule=!0;Ce.stripComments=Ce.ensureObject=Ce.getProp=Ce.unesc=void 0;var fc=sn(ai());Ce.unesc=fc.default;var cc=sn(ha());Ce.getProp=cc.default;var dc=sn(ga());Ce.ensureObject=dc.default;var pc=sn(va());Ce.stripComments=pc.default;function sn(e){return e&&e.__esModule?e:{default:e}}});var We=P((Vt,wa)=>{"use strict";Vt.__esModule=!0;Vt.default=void 0;var ya=Ht();function xa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hc(e,t,n){return t&&xa(e.prototype,t),n&&xa(e,n),e}var mc=function e(t,n){if(typeof t!="object"||t===null)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s=typeof o;i==="parent"&&s==="object"?n&&(r[i]=n):o instanceof Array?r[i]=o.map(function(a){return e(a,r)}):r[i]=e(o,r)}return r},gc=function(){function e(n){n===void 0&&(n={}),Object.assign(this,n),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var r in arguments)this.parent.insertBefore(this,arguments[r]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(r){r===void 0&&(r={});var i=mc(this);for(var o in r)i[o]=r[o];return i},t.appendToPropertyAndEscape=function(r,i,o){this.raws||(this.raws={});var s=this[r],a=this.raws[r];this[r]=s+i,a||o!==i?this.raws[r]=(a||s)+o:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,o){this.raws||(this.raws={}),this[r]=i,this.raws[r]=o},t.setPropertyWithoutEscape=function(r,i){this[r]=i,this.raws&&delete this.raws[r]},t.isAtPosition=function(r,i){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>r||this.source.end.line<r||this.source.start.line===r&&this.source.start.column>i||this.source.end.line===r&&this.source.end.column<i)},t.stringifyProperty=function(r){return this.raws&&this.raws[r]||this[r]},t.valueToString=function(){return String(this.stringifyProperty("value"))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},hc(e,[{key:"rawSpaceBefore",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.before;return r===void 0&&(r=this.spaces&&this.spaces.before),r||""},set:function(r){(0,ya.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=r}},{key:"rawSpaceAfter",get:function(){var r=this.raws&&this.raws.spaces&&this.raws.spaces.after;return r===void 0&&(r=this.spaces.after),r||""},set:function(r){(0,ya.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();Vt.default=gc;wa.exports=Vt.default});var ne=P(G=>{"use strict";G.__esModule=!0;G.UNIVERSAL=G.ATTRIBUTE=G.CLASS=G.COMBINATOR=G.COMMENT=G.ID=G.NESTING=G.PSEUDO=G.ROOT=G.SELECTOR=G.STRING=G.TAG=void 0;var bc="tag";G.TAG=bc;var vc="string";G.STRING=vc;var yc="selector";G.SELECTOR=yc;var xc="root";G.ROOT=xc;var wc="pseudo";G.PSEUDO=wc;var Sc="nesting";G.NESTING=Sc;var _c="id";G.ID=_c;var kc="comment";G.COMMENT=kc;var Tc="combinator";G.COMBINATOR=Tc;var Ec="class";G.CLASS=Ec;var Oc="attribute";G.ATTRIBUTE=Oc;var Pc="universal";G.UNIVERSAL=Pc});var an=P((Yt,Ta)=>{"use strict";Yt.__esModule=!0;Yt.default=void 0;var Ic=Rc(We()),$e=Ac(ne());function ka(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ka=function(){return e},e}function Ac(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ka();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Rc(e){return e&&e.__esModule?e:{default:e}}function Lc(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Cc(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Cc(e,t){if(e){if(typeof e=="string")return Sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sa(e,t)}}function Sa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mc(e,t,n){return t&&_a(e.prototype,t),n&&_a(e,n),e}function Dc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ui(e,t)}function ui(e,t){return ui=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ui(e,t)}var Nc=function(e){Dc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=i&&(this.indexes[s]=o-1);return this},n.removeAll=function(){for(var i=Lc(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],s<=a&&(this.indexes[u]=a+1);return this},n.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var a;for(var u in this.indexes)a=this.indexes[u],a<=s&&(this.indexes[u]=a+1);return this},n._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(a){if(a.atPosition){var u=a.atPosition(i,o);if(u)return s=u,!1}else if(a.isAtPosition(i,o))return s=a,!1}),s},n.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,a;this.indexes[o]<this.length&&(s=this.indexes[o],a=i(this.at(s),s),a!==!1);)this.indexes[o]+=1;if(delete this.indexes[o],a===!1)return!1}},n.walk=function(i){return this.each(function(o,s){var a=i(o,s);if(a!==!1&&o.length&&(a=o.walk(i)),a===!1)return!1})},n.walkAttributes=function(i){var o=this;return this.walk(function(s){if(s.type===$e.ATTRIBUTE)return i.call(o,s)})},n.walkClasses=function(i){var o=this;return this.walk(function(s){if(s.type===$e.CLASS)return i.call(o,s)})},n.walkCombinators=function(i){var o=this;return this.walk(function(s){if(s.type===$e.COMBINATOR)return i.call(o,s)})},n.walkComments=function(i){var o=this;return this.walk(function(s){if(s.type===$e.COMMENT)return i.call(o,s)})},n.walkIds=function(i){var o=this;return this.walk(function(s){if(s.type===$e.ID)return i.call(o,s)})},n.walkNesting=function(i){var o=this;return this.walk(function(s){if(s.type===$e.NESTING)return i.call(o,s)})},n.walkPseudos=function(i){var o=this;return this.walk(function(s){if(s.type===$e.PSEUDO)return i.call(o,s)})},n.walkTags=function(i){var o=this;return this.walk(function(s){if(s.type===$e.TAG)return i.call(o,s)})},n.walkUniversals=function(i){var o=this;return this.walk(function(s){if(s.type===$e.UNIVERSAL)return i.call(o,s)})},n.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},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,o){return this.nodes.reduce(i,o)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},Mc(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}(Ic.default);Yt.default=Nc;Ta.exports=Yt.default});var fi=P((Xt,Oa)=>{"use strict";Xt.__esModule=!0;Xt.default=void 0;var Fc=$c(an()),Wc=ne();function $c(e){return e&&e.__esModule?e:{default:e}}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qc(e,t,n){return t&&Ea(e.prototype,t),n&&Ea(e,n),e}function Bc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,li(e,t)}function li(e,t){return li=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},li(e,t)}var zc=function(e){Bc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Wc.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(o,s){return o.push(String(s)),o},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,o){return this._error?this._error(i,o):new Error(i)},qc(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Fc.default);Xt.default=zc;Oa.exports=Xt.default});var di=P((Qt,Pa)=>{"use strict";Qt.__esModule=!0;Qt.default=void 0;var Uc=jc(an()),Gc=ne();function jc(e){return e&&e.__esModule?e:{default:e}}function Hc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ci(e,t)}function ci(e,t){return ci=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ci(e,t)}var Vc=function(e){Hc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Gc.SELECTOR,r}return t}(Uc.default);Qt.default=Vc;Pa.exports=Qt.default});var un=P((Sv,Ia)=>{"use strict";var Yc={},Xc=Yc.hasOwnProperty,Qc=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=Xc.call(t,i)?t[i]:n[i];return r},Kc=/[ -,\.\/:-@\[-\^`\{-~]/,Jc=/[ -,\.\/:-@\[\]\^`\{-~]/,Zc=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,pi=function e(t,n){n=Qc(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,o=t.charAt(0),s="",a=0,u=t.length;a<u;){var l=t.charAt(a++),f=l.charCodeAt(),c=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&a<u){var p=t.charCodeAt(a++);(p&64512)==56320?f=((f&1023)<<10)+(p&1023)+65536:a--}c="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Kc.test(l)?c="\\"+l:c="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?c="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&Jc.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(Zc,function(d,h,m){return h&&h.length%2?d:(h||"")+m}),!i&&n.wrap?r+s+r:s};pi.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};pi.version="3.0.0";Ia.exports=pi});var mi=P((Kt,La)=>{"use strict";Kt.__esModule=!0;Kt.default=void 0;var ed=Ra(un()),td=Ht(),rd=Ra(We()),nd=ne();function Ra(e){return e&&e.__esModule?e:{default:e}}function Aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function id(e,t,n){return t&&Aa(e.prototype,t),n&&Aa(e,n),e}function od(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hi(e,t)}function hi(e,t){return hi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},hi(e,t)}var sd=function(e){od(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=nd.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},id(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=(0,ed.default)(i,{isIdentifier:!0});o!==i?((0,td.ensureObject)(this,"raws"),this.raws.value=o):this.raws&&delete this.raws.value}this._value=i}}]),t}(rd.default);Kt.default=sd;La.exports=Kt.default});var bi=P((Jt,Ca)=>{"use strict";Jt.__esModule=!0;Jt.default=void 0;var ad=ld(We()),ud=ne();function ld(e){return e&&e.__esModule?e:{default:e}}function fd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gi(e,t)}function gi(e,t){return gi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gi(e,t)}var cd=function(e){fd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ud.COMMENT,r}return t}(ad.default);Jt.default=cd;Ca.exports=Jt.default});var yi=P((Zt,Ma)=>{"use strict";Zt.__esModule=!0;Zt.default=void 0;var dd=hd(We()),pd=ne();function hd(e){return e&&e.__esModule?e:{default:e}}function md(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vi(e,t)}function vi(e,t){return vi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},vi(e,t)}var gd=function(e){md(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=pd.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(dd.default);Zt.default=gd;Ma.exports=Zt.default});var ln=P((er,Fa)=>{"use strict";er.__esModule=!0;er.default=void 0;var bd=Na(un()),vd=Ht(),yd=Na(We());function Na(e){return e&&e.__esModule?e:{default:e}}function Da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xd(e,t,n){return t&&Da(e.prototype,t),n&&Da(e,n),e}function wd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xi(e,t)}function xi(e,t){return xi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xi(e,t)}var Sd=function(e){wd(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},xd(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,bd.default)(i,{isIdentifier:!0});this._namespace=i,o!==i?((0,vd.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}(yd.default);er.default=Sd;Fa.exports=er.default});var Si=P((tr,Wa)=>{"use strict";tr.__esModule=!0;tr.default=void 0;var _d=Td(ln()),kd=ne();function Td(e){return e&&e.__esModule?e:{default:e}}function Ed(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wi(e,t)}function wi(e,t){return wi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wi(e,t)}var Od=function(e){Ed(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=kd.TAG,r}return t}(_d.default);tr.default=Od;Wa.exports=tr.default});var ki=P((rr,$a)=>{"use strict";rr.__esModule=!0;rr.default=void 0;var Pd=Ad(We()),Id=ne();function Ad(e){return e&&e.__esModule?e:{default:e}}function Rd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_i(e,t)}function _i(e,t){return _i=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_i(e,t)}var Ld=function(e){Rd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Id.STRING,r}return t}(Pd.default);rr.default=Ld;$a.exports=rr.default});var Ei=P((nr,qa)=>{"use strict";nr.__esModule=!0;nr.default=void 0;var Cd=Dd(an()),Md=ne();function Dd(e){return e&&e.__esModule?e:{default:e}}function Nd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ti(e,t)}function Ti(e,t){return Ti=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ti(e,t)}var Fd=function(e){Nd(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Md.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(Cd.default);nr.default=Fd;qa.exports=nr.default});var za=P((_v,Ba)=>{Ba.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var Li=P(sr=>{"use strict";sr.__esModule=!0;sr.unescapeValue=Ri;sr.default=void 0;var ir=Ai(un()),Wd=Ai(ai()),$d=Ai(ln()),qd=ne(),Oi;function Ai(e){return e&&e.__esModule?e:{default:e}}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bd(e,t,n){return t&&Ua(e.prototype,t),n&&Ua(e,n),e}function zd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ii(e,t)}function Ii(e,t){return Ii=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ii(e,t)}var or=za(),Ud=/^('|")([^]*)\1$/,Gd=or(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),jd=or(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),Hd=or(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Ri(e){var t=!1,n=null,r=e,i=r.match(Ud);return i&&(n=i[1],r=i[2]),r=(0,Wd.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function Vd(e){if(e.quoteMark!==void 0||e.value===void 0)return e;Hd();var t=Ri(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var fn=function(e){zd(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,Vd(r))||this,i.type=qd.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:or(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:or(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var o=this._determineQuoteMark(i),s=Pi[o],a=(0,ir.default)(this._value,s);return a},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,o){o===void 0&&(o={}),this._value=i,this._quoteMark=this._determineQuoteMark(o),this._syncRawValue()},n.smartQuoteMark=function(i){var o=this.value,s=o.replace(/[^']/g,"").length,a=o.replace(/[^"]/g,"").length;if(s+a===0){var u=(0,ir.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=Pi[f],p=(0,ir.default)(o,c);if(p.length<u.length)return f}return l}else return a===s?this.preferredQuoteMark(i):a<s?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var o=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return o===void 0&&(o=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),o===void 0&&(o=t.DOUBLE_QUOTE),o},n._syncRawValue=function(){var i=(0,ir.default)(this._value,Pi[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,o){if(this._constructed){var s=(0,ir.default)(o,{isIdentifier:!0});s!==o?this.raws[i]=s:delete this.raws[i]}},n._spacesFor=function(i){var o={before:"",after:""},s=this.spaces[i]||{},a=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(o,s,a)},n._stringFor=function(i,o,s){o===void 0&&(o=i),s===void 0&&(s=Ga);var a=this._spacesFor(o);return s(this.stringifyProperty(i),a)},n.offsetOf=function(i){var o=1,s=this._spacesFor("attribute");if(o+=s.before.length,i==="namespace"||i==="ns")return this.namespace?o:-1;if(i==="attributeNS"||(o+=this.namespaceString.length,this.namespace&&(o+=1),i==="attribute"))return o;o+=this.stringifyProperty("attribute").length,o+=s.after.length;var a=this._spacesFor("operator");o+=a.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?o:-1;o+=u.length,o+=a.after.length;var 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},n.toString=function(){var i=this,o=[this.rawSpaceBefore,"["];return o.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(o.push(this._stringFor("operator")),o.push(this._stringFor("value")),o.push(this._stringFor("insensitiveFlag","insensitive",function(s,a){return s.length>0&&!i.quoted&&a.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(a.before=" "),Ga(s,a)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Bd(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){jd()}},{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=Ri(i),s=o.deprecatedUsage,a=o.unescaped,u=o.quoteMark;if(s&&Gd(),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}($d.default);sr.default=fn;fn.NO_QUOTE=null;fn.SINGLE_QUOTE="'";fn.DOUBLE_QUOTE='"';var Pi=(Oi={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Oi[null]={isIdentifier:!0},Oi);function Ga(e,t){return""+t.before+e+t.after}});var Mi=P((ar,ja)=>{"use strict";ar.__esModule=!0;ar.default=void 0;var Yd=Qd(ln()),Xd=ne();function Qd(e){return e&&e.__esModule?e:{default:e}}function Kd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ci(e,t)}function Ci(e,t){return Ci=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ci(e,t)}var Jd=function(e){Kd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Xd.UNIVERSAL,r.value="*",r}return t}(Yd.default);ar.default=Jd;ja.exports=ar.default});var Ni=P((ur,Ha)=>{"use strict";ur.__esModule=!0;ur.default=void 0;var Zd=tp(We()),ep=ne();function tp(e){return e&&e.__esModule?e:{default:e}}function rp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Di(e,t)}function Di(e,t){return Di=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Di(e,t)}var np=function(e){rp(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ep.COMBINATOR,r}return t}(Zd.default);ur.default=np;Ha.exports=ur.default});var Wi=P((lr,Va)=>{"use strict";lr.__esModule=!0;lr.default=void 0;var ip=sp(We()),op=ne();function sp(e){return e&&e.__esModule?e:{default:e}}function ap(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fi(e,t)}function Fi(e,t){return Fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fi(e,t)}var up=function(e){ap(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=op.NESTING,r.value="&",r}return t}(ip.default);lr.default=up;Va.exports=lr.default});var Xa=P((cn,Ya)=>{"use strict";cn.__esModule=!0;cn.default=lp;function lp(e){return e.sort(function(t,n){return t-n})}Ya.exports=cn.default});var $i=P(O=>{"use strict";O.__esModule=!0;O.combinator=O.word=O.comment=O.str=O.tab=O.newline=O.feed=O.cr=O.backslash=O.bang=O.slash=O.doubleQuote=O.singleQuote=O.space=O.greaterThan=O.pipe=O.equals=O.plus=O.caret=O.tilde=O.dollar=O.closeSquare=O.openSquare=O.closeParenthesis=O.openParenthesis=O.semicolon=O.colon=O.comma=O.at=O.asterisk=O.ampersand=void 0;var fp=38;O.ampersand=fp;var cp=42;O.asterisk=cp;var dp=64;O.at=dp;var pp=44;O.comma=pp;var hp=58;O.colon=hp;var mp=59;O.semicolon=mp;var gp=40;O.openParenthesis=gp;var bp=41;O.closeParenthesis=bp;var vp=91;O.openSquare=vp;var yp=93;O.closeSquare=yp;var xp=36;O.dollar=xp;var wp=126;O.tilde=wp;var Sp=94;O.caret=Sp;var _p=43;O.plus=_p;var kp=61;O.equals=kp;var Tp=124;O.pipe=Tp;var Ep=62;O.greaterThan=Ep;var Op=32;O.space=Op;var Qa=39;O.singleQuote=Qa;var Pp=34;O.doubleQuote=Pp;var Ip=47;O.slash=Ip;var Ap=33;O.bang=Ap;var Rp=92;O.backslash=Rp;var Lp=13;O.cr=Lp;var Cp=12;O.feed=Cp;var Mp=10;O.newline=Mp;var Dp=9;O.tab=Dp;var Np=Qa;O.str=Np;var Fp=-1;O.comment=Fp;var Wp=-2;O.word=Wp;var $p=-3;O.combinator=$p});var Za=P(fr=>{"use strict";fr.__esModule=!0;fr.default=Hp;fr.FIELDS=void 0;var k=qp($i()),St,U;function Ja(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ja=function(){return e},e}function qp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ja();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var Bp=(St={},St[k.tab]=!0,St[k.newline]=!0,St[k.cr]=!0,St[k.feed]=!0,St),zp=(U={},U[k.space]=!0,U[k.tab]=!0,U[k.newline]=!0,U[k.cr]=!0,U[k.feed]=!0,U[k.ampersand]=!0,U[k.asterisk]=!0,U[k.bang]=!0,U[k.comma]=!0,U[k.colon]=!0,U[k.semicolon]=!0,U[k.openParenthesis]=!0,U[k.closeParenthesis]=!0,U[k.openSquare]=!0,U[k.closeSquare]=!0,U[k.singleQuote]=!0,U[k.doubleQuote]=!0,U[k.plus]=!0,U[k.pipe]=!0,U[k.tilde]=!0,U[k.greaterThan]=!0,U[k.equals]=!0,U[k.dollar]=!0,U[k.caret]=!0,U[k.slash]=!0,U),qi={},Ka="0123456789abcdefABCDEF";for(dn=0;dn<Ka.length;dn++)qi[Ka.charCodeAt(dn)]=!0;var dn;function Up(e,t){var n=t,r;do{if(r=e.charCodeAt(n),zp[r])return n-1;r===k.backslash?n=Gp(e,n)+1:n++}while(n<e.length);return n-1}function Gp(e,t){var n=t,r=e.charCodeAt(n+1);if(!Bp[r])if(qi[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(qi[r]&&i<6);i<6&&r===k.space&&n++}else n++;return n}var jp={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};fr.FIELDS=jp;function Hp(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,o=-1,s=1,a=0,u=0,l,f,c,p,d,h,m,w,b,T,y,v,x;function I(A,L){if(e.safe)n+=L,b=n.length-1;else throw e.error("Unclosed "+A,s,a-o,a)}for(;a<i;){switch(l=n.charCodeAt(a),l===k.newline&&(o=a,s+=1),l){case k.space:case k.tab:case k.newline:case k.cr:case k.feed:b=a;do b+=1,l=n.charCodeAt(b),l===k.newline&&(o=b,s+=1);while(l===k.space||l===k.newline||l===k.tab||l===k.cr||l===k.feed);x=k.space,p=s,c=b-o-1,u=b;break;case k.plus:case k.greaterThan:case k.tilde:case k.pipe:b=a;do b+=1,l=n.charCodeAt(b);while(l===k.plus||l===k.greaterThan||l===k.tilde||l===k.pipe);x=k.combinator,p=s,c=a-o,u=b;break;case k.asterisk:case k.ampersand:case k.bang:case k.comma:case k.equals:case k.dollar:case k.caret:case k.openSquare:case k.closeSquare:case k.colon:case k.semicolon:case k.openParenthesis:case k.closeParenthesis:b=a,x=l,p=s,c=a-o,u=b+1;break;case k.singleQuote:case k.doubleQuote:v=l===k.singleQuote?"'":'"',b=a;do for(d=!1,b=n.indexOf(v,b+1),b===-1&&I("quote",v),h=b;n.charCodeAt(h-1)===k.backslash;)h-=1,d=!d;while(d);x=k.str,p=s,c=a-o,u=b+1;break;default:l===k.slash&&n.charCodeAt(a+1)===k.asterisk?(b=n.indexOf("*/",a+2)+1,b===0&&I("comment","*/"),f=n.slice(a,b+1),w=f.split(`
|
|
3
|
-
`),m=w.length-1,m>0?(T=s+m,y=b-w[m].length):(T=s,y=o),x=k.comment,s=T,p=T,c=b-y):l===k.slash?(b=a,x=l,p=s,c=a-o,u=b+1):(b=Up(n,a),x=k.word,p=s,c=b-o),u=b+1;break}t.push([x,s,a-o,p,c,a,u]),y&&(o=y,y=null),a=u}return t}});var au=P((cr,su)=>{"use strict";cr.__esModule=!0;cr.default=void 0;var Vp=ve(fi()),Bi=ve(di()),Yp=ve(mi()),eu=ve(bi()),Xp=ve(yi()),Qp=ve(Si()),zi=ve(ki()),Kp=ve(Ei()),tu=pn(Li()),Jp=ve(Mi()),Ui=ve(Ni()),Zp=ve(Wi()),eh=ve(Xa()),S=pn(Za()),E=pn($i()),th=pn(ne()),X=Ht(),st,Gi;function ou(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ou=function(){return e},e}function pn(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ou();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ve(e){return e&&e.__esModule?e:{default:e}}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rh(e,t,n){return t&&ru(e.prototype,t),n&&ru(e,n),e}var Vi=(st={},st[E.space]=!0,st[E.cr]=!0,st[E.feed]=!0,st[E.newline]=!0,st[E.tab]=!0,st),nh=Object.assign({},Vi,(Gi={},Gi[E.comment]=!0,Gi));function nu(e){return{line:e[S.FIELDS.START_LINE],column:e[S.FIELDS.START_COL]}}function iu(e){return{line:e[S.FIELDS.END_LINE],column:e[S.FIELDS.END_COL]}}function at(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function _t(e){return at(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],e[S.FIELDS.END_LINE],e[S.FIELDS.END_COL])}function ji(e,t){if(e)return at(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],t[S.FIELDS.END_LINE],t[S.FIELDS.END_COL])}function kt(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,X.ensureObject)(e,"raws"),e[t]=(0,X.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Hi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function ih(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var oh=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,S.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=ji(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Vp.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Bi.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[S.FIELDS.TYPE]!==E.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[S.FIELDS.TYPE]!==E.closeSquare)return this.expected("closing square bracket",this.currToken[S.FIELDS.START_POS]);var o=r.length,s={source:at(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[S.FIELDS.START_POS]};if(o===1&&!~[E.word].indexOf(r[0][S.FIELDS.TYPE]))return this.expected("attribute",r[0][S.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,c=!1;a<o;){var p=r[a],d=this.content(p),h=r[a+1];switch(p[S.FIELDS.TYPE]){case E.space:if(c=!0,this.options.lossy)break;if(f){(0,X.ensureObject)(s,"spaces",f);var m=s.spaces[f].after||"";s.spaces[f].after=m+d;var w=(0,X.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+d)}else u=u+d,l=l+d;break;case E.asterisk:if(h[S.FIELDS.TYPE]===E.equals)s.operator=d,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&h){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+d;var b=(0,X.getProp)(s,"raws","namespace")||null;b&&(s.raws.namespace+=d),f="namespace"}c=!1;break;case E.dollar:if(f==="value"){var T=(0,X.getProp)(s,"raws","value");s.value+="$",T&&(s.raws.value=T+"$");break}case E.caret:h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),c=!1;break;case E.combinator:if(d==="~"&&h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),d!=="|"){c=!1;break}h[S.FIELDS.TYPE]===E.equals?(s.operator=d,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case E.word:if(h&&this.content(h)==="|"&&r[a+2]&&r[a+2][S.FIELDS.TYPE]!==E.equals&&!s.operator&&!s.namespace)s.namespace=d,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+d;var y=(0,X.getProp)(s,"raws","attribute")||null;y&&(s.raws.attribute+=d),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var v=(0,X.unesc)(d),x=(0,X.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+v,s.quoteMark=null,(v!==d||x)&&((0,X.ensureObject)(s,"raws"),s.raws.value=(x||I)+d),f="value"}else{var A=d==="i"||d==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=A,(!A||d==="I")&&((0,X.ensureObject)(s,"raws"),s.raws.insensitiveFlag=d),f="insensitive",u&&((0,X.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=d,s.raws.value&&(s.raws.value+=d))}c=!1;break;case E.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:p[S.FIELDS.START_POS]});var L=(0,tu.unescapeValue)(d),H=L.unescaped,ie=L.quoteMark;s.value=H,s.quoteMark=ie,f="value",(0,X.ensureObject)(s,"raws"),s.raws.value=d,c=!1;break;case E.equals:if(!s.attribute)return this.expected("attribute",p[S.FIELDS.START_POS],d);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:p[S.FIELDS.START_POS]});s.operator=s.operator?s.operator+d:d,f="operator",c=!1;break;case E.comment:if(f)if(c||h&&h[S.FIELDS.TYPE]===E.space||f==="insensitive"){var ae=(0,X.getProp)(s,"spaces",f,"after")||"",fe=(0,X.getProp)(s,"raws","spaces",f,"after")||ae;(0,X.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=fe+d}else{var K=s[f]||"",oe=(0,X.getProp)(s,"raws",f)||K;(0,X.ensureObject)(s,"raws"),s.raws[f]=oe+d}else l=l+d;break;default:return this.error('Unexpected "'+d+'" found.',{index:p[S.FIELDS.START_POS]})}a++}kt(s,"attribute"),kt(s,"namespace"),this.newNode(new tu.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Vi[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[S.FIELDS.TYPE]===E.comment){var u={};s&&(u.before=s,s=""),a=new eu.default({value:this.content(),source:_t(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new zi.default({value:"",source:at(l[S.FIELDS.START_LINE],l[S.FIELDS.START_COL],f[S.FIELDS.END_LINE],f[S.FIELDS.END_COL]),sourceIndex:l[S.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(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(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][S.FIELDS.TYPE]===E.slash&&this.tokens[r+1]&&this.tokens[r+1][S.FIELDS.TYPE]===E.word&&this.tokens[r+2]&&this.tokens[r+2][S.FIELDS.TYPE]===E.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,X.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new Ui.default({value:"/"+i+"/",source:at(this.currToken[S.FIELDS.START_LINE],this.currToken[S.FIELDS.START_COL],this.tokens[this.position+2][S.FIELDS.END_LINE],this.tokens[this.position+2][S.FIELDS.END_COL]),sourceIndex:this.currToken[S.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][S.FIELDS.TYPE]===E.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 r.newNode(x)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var p;if(this.isNamedCombinator()?p=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===E.combinator?(p=new Ui.default({value:this.content(),source:_t(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):Vi[this.currToken[S.FIELDS.TYPE]]||c||this.unexpected(),p){if(c){var d=this.convertWhitespaceNodesToSpace(c),h=d.space,m=d.rawSpace;p.spaces.before=h,p.rawSpaceBefore=m}}else{var w=this.convertWhitespaceNodesToSpace(c,!0),b=w.space,T=w.rawSpace;T||(T=b);var y={},v={spaces:{}};b.endsWith(" ")&&T.endsWith(" ")?(y.before=b.slice(0,b.length-1),v.spaces.before=T.slice(0,T.length-1)):b.startsWith(" ")&&T.startsWith(" ")?(y.after=b.slice(1),v.spaces.after=T.slice(1)):v.value=T,p=new Ui.default({value:" ",source:ji(f,this.tokens[this.position-1]),sourceIndex:f[S.FIELDS.START_POS],spaces:y,raws:v})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===E.space&&(p.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(p)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Bi.default({source:{start:nu(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new eu.default({value:this.content(),source:_t(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[S.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[S.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[S.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[S.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[S.FIELDS.TYPE]===E.word)return this.position++,this.word(r);if(this.nextToken[S.FIELDS.TYPE]===E.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Zp.default({value:this.content(),source:_t(i),sourceIndex:i[S.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===th.PSEUDO){var o=new Bi.default({source:{start:nu(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,i?this.parse():(this.current.source.end=iu(this.currToken),this.current.parent.source.end=iu(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new zi.default({value:u,source:at(a[S.FIELDS.START_LINE],a[S.FIELDS.START_COL],l[S.FIELDS.END_LINE],l[S.FIELDS.END_COL]),sourceIndex:a[S.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[S.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[S.FIELDS.TYPE]===E.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[S.FIELDS.TYPE]===E.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new Kp.default({value:i,source:ji(o,r.currToken),sourceIndex:o[S.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[S.FIELDS.TYPE]===E.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[S.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[S.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[S.FIELDS.TYPE]===E.comma||this.prevToken[S.FIELDS.TYPE]===E.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[S.FIELDS.TYPE]===E.comma||this.nextToken[S.FIELDS.TYPE]===E.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new zi.default({value:this.content(),source:_t(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new Jp.default({value:this.content(),source:_t(o),sourceIndex:o[S.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[E.dollar,E.caret,E.equals,E.word].indexOf(s[S.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[S.FIELDS.TYPE]===E.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Hi(a,".").filter(function(h){var m=a[h-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!m&&!w}),c=Hi(a,"#").filter(function(h){return a[h-1]!=="\\"}),p=Hi(a,"#{");p.length&&(c=c.filter(function(h){return!~p.indexOf(h)}));var d=(0,eh.default)(ih([0].concat(f,c)));d.forEach(function(h,m){var w=d[m+1]||a.length,b=a.slice(h,w);if(m===0&&i)return i.call(o,b,d.length);var T,y=o.currToken,v=y[S.FIELDS.START_POS]+d[m],x=at(y[1],y[2]+h,y[3],y[2]+(w-1));if(~f.indexOf(h)){var I={value:b.slice(1),source:x,sourceIndex:v};T=new Yp.default(kt(I,"value"))}else if(~c.indexOf(h)){var A={value:b.slice(1),source:x,sourceIndex:v};T=new Xp.default(kt(A,"value"))}else{var L={value:b,source:x,sourceIndex:v};kt(L,"value"),T=new Qp.default(L)}o.newNode(T,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[S.FIELDS.TYPE]){case E.space:this.space();break;case E.comment:this.comment();break;case E.openParenthesis:this.parentheses();break;case E.closeParenthesis:r&&this.missingParenthesis();break;case E.openSquare:this.attribute();break;case E.dollar:case E.caret:case E.equals:case E.word:this.word();break;case E.colon:this.pseudo();break;case E.comma:this.comma();break;case E.asterisk:this.universal();break;case E.ampersand:this.nesting();break;case E.slash:case E.combinator:this.combinator();break;case E.str:this.string();break;case E.closeSquare:this.missingSquareBracket();case E.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[S.FIELDS.TYPE]===E.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,kt(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[S.FIELDS.START_POS],r[S.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(nh[this.tokens[i][S.FIELDS.TYPE]]){i++;continue}else return i;return-1},rh(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}();cr.default=oh;su.exports=cr.default});var lu=P((dr,uu)=>{"use strict";dr.__esModule=!0;dr.default=void 0;var sh=ah(au());function ah(e){return e&&e.__esModule?e:{default:e}}var uh=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new sh.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();dr.default=uh;uu.exports=dr.default});var fu=P(j=>{"use strict";j.__esModule=!0;j.universal=j.tag=j.string=j.selector=j.root=j.pseudo=j.nesting=j.id=j.comment=j.combinator=j.className=j.attribute=void 0;var lh=ye(Li()),fh=ye(mi()),ch=ye(Ni()),dh=ye(bi()),ph=ye(yi()),hh=ye(Wi()),mh=ye(Ei()),gh=ye(fi()),bh=ye(di()),vh=ye(ki()),yh=ye(Si()),xh=ye(Mi());function ye(e){return e&&e.__esModule?e:{default:e}}var wh=function(t){return new lh.default(t)};j.attribute=wh;var Sh=function(t){return new fh.default(t)};j.className=Sh;var _h=function(t){return new ch.default(t)};j.combinator=_h;var kh=function(t){return new dh.default(t)};j.comment=kh;var Th=function(t){return new ph.default(t)};j.id=Th;var Eh=function(t){return new hh.default(t)};j.nesting=Eh;var Oh=function(t){return new mh.default(t)};j.pseudo=Oh;var Ph=function(t){return new gh.default(t)};j.root=Ph;var Ih=function(t){return new bh.default(t)};j.selector=Ih;var Ah=function(t){return new vh.default(t)};j.string=Ah;var Rh=function(t){return new yh.default(t)};j.tag=Rh;var Lh=function(t){return new xh.default(t)};j.universal=Lh});var hu=P(N=>{"use strict";N.__esModule=!0;N.isNode=Yi;N.isPseudoElement=pu;N.isPseudoClass=Uh;N.isContainer=Gh;N.isNamespace=jh;N.isUniversal=N.isTag=N.isString=N.isSelector=N.isRoot=N.isPseudo=N.isNesting=N.isIdentifier=N.isComment=N.isCombinator=N.isClassName=N.isAttribute=void 0;var Q=ne(),ce,Ch=(ce={},ce[Q.ATTRIBUTE]=!0,ce[Q.CLASS]=!0,ce[Q.COMBINATOR]=!0,ce[Q.COMMENT]=!0,ce[Q.ID]=!0,ce[Q.NESTING]=!0,ce[Q.PSEUDO]=!0,ce[Q.ROOT]=!0,ce[Q.SELECTOR]=!0,ce[Q.STRING]=!0,ce[Q.TAG]=!0,ce[Q.UNIVERSAL]=!0,ce);function Yi(e){return typeof e=="object"&&Ch[e.type]}function xe(e,t){return Yi(t)&&t.type===e}var cu=xe.bind(null,Q.ATTRIBUTE);N.isAttribute=cu;var Mh=xe.bind(null,Q.CLASS);N.isClassName=Mh;var Dh=xe.bind(null,Q.COMBINATOR);N.isCombinator=Dh;var Nh=xe.bind(null,Q.COMMENT);N.isComment=Nh;var Fh=xe.bind(null,Q.ID);N.isIdentifier=Fh;var Wh=xe.bind(null,Q.NESTING);N.isNesting=Wh;var Xi=xe.bind(null,Q.PSEUDO);N.isPseudo=Xi;var $h=xe.bind(null,Q.ROOT);N.isRoot=$h;var qh=xe.bind(null,Q.SELECTOR);N.isSelector=qh;var Bh=xe.bind(null,Q.STRING);N.isString=Bh;var du=xe.bind(null,Q.TAG);N.isTag=du;var zh=xe.bind(null,Q.UNIVERSAL);N.isUniversal=zh;function pu(e){return Xi(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 Uh(e){return Xi(e)&&!pu(e)}function Gh(e){return!!(Yi(e)&&e.walk)}function jh(e){return cu(e)||du(e)}});var mu=P(Pe=>{"use strict";Pe.__esModule=!0;var Qi=ne();Object.keys(Qi).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Qi[e]||(Pe[e]=Qi[e])});var Ki=fu();Object.keys(Ki).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ki[e]||(Pe[e]=Ki[e])});var Ji=hu();Object.keys(Ji).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ji[e]||(Pe[e]=Ji[e])})});var vu=P((pr,bu)=>{"use strict";pr.__esModule=!0;pr.default=void 0;var Hh=Xh(lu()),Vh=Yh(mu());function gu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return gu=function(){return e},e}function Yh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=gu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Xh(e){return e&&e.__esModule?e:{default:e}}var Zi=function(t){return new Hh.default(t)};Object.assign(Zi,Vh);delete Zi.__esModule;var Qh=Zi;pr.default=Qh;bu.exports=pr.default});var yu=P(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});Object.defineProperty(eo,"default",{enumerable:!0,get:()=>Kh});function Kh(e){return e.replace(/\\,/g,"\\2c ")}});var wu=P((Rv,xu)=>{"use strict";xu.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 ro=P(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});function Jh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Jh(to,{parseColor:()=>im,formatColor:()=>om});var Su=Zh(wu());function Zh(e){return e&&e.__esModule?e:{default:e}}var em=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,tm=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Qe=/(?:\d+|\d*\.\d+)%?/,hn=/(?:\s*,\s*|\s+)/,_u=/\s*[,/]\s*/,Ke=/var\(--(?:[^ )]*?)\)/,rm=new RegExp(`^(rgb)a?\\(\\s*(${Qe.source}|${Ke.source})(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${_u.source}(${Qe.source}|${Ke.source}))?\\s*\\)$`),nm=new RegExp(`^(hsl)a?\\(\\s*((?:${Qe.source})(?:deg|rad|grad|turn)?|${Ke.source})(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${_u.source}(${Qe.source}|${Ke.source}))?\\s*\\)$`);function im(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Su.default)return{mode:"rgb",color:Su.default[e].map(u=>u.toString())};let i=e.replace(tm,(u,l,f,c,p)=>["#",l,l,f,f,c,c,p?p+p:""].join("")).match(em);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(rm))!==null&&o!==void 0?o:e.match(nm);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function om({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var io=P(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});function sm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}sm(no,{withAlphaValue:()=>am,default:()=>um});var mn=ro();function am(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,mn.parseColor)(e,{loose:!0});return r===null?n:(0,mn.formatColor)({...r,alpha:t})}function um({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,mn.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,mn.formatColor)({...i,alpha:`var(${n})`})]))}}});var Pu=P(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function lm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}lm(oo,{pattern:()=>cm,withoutCapturing:()=>Tu,any:()=>Eu,optional:()=>dm,zeroOrMore:()=>pm,nestedBrackets:()=>Ou,escape:()=>ut});var ku=/[\\^$.*+?()[\]{}|]/g,fm=RegExp(ku.source);function hr(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function cm(e){return new RegExp(hr(e),"g")}function Tu(e){return new RegExp(`(?:${hr(e)})`,"g")}function Eu(e){return`(?:${e.map(hr).join("|")})`}function dm(e){return`(?:${hr(e)})?`}function pm(e){return`(?:${hr(e)})*`}function Ou(e,t,n=1){return Tu([ut(e),/[^\s]*/,n===1?`[^${ut(e)}${ut(t)}s]*`:Eu([`[^${ut(e)}${ut(t)}s]*`,Ou(e,t,n-1)]),/[^\s]*/,ut(t)])}function ut(e){return e&&fm.test(e)?e.replace(ku,"\\$&"):e||""}});var Au=P(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});Object.defineProperty(so,"splitAtTopLevelOnly",{enumerable:!0,get:()=>gm});var hm=mm(Pu());function Iu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Iu=function(r){return r?n:t})(e)}function mm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Iu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*gm(e,t){let n=new RegExp(`[(){}\\[\\]${hm.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[s],c=s===u-1,p=f&&c;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(a===0&&(a=l.index),s++),p&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var Lu=P(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});function bm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}bm(ao,{parseBoxShadowValue:()=>wm,formatBoxShadowValue:()=>Sm});var vm=Au(),ym=new Set(["inset","inherit","initial","revert","unset"]),xm=/\ +(?![^(]*\))/g,Ru=/^-?(\d+|\.\d+)(.*?)$/g;function wm(e){return Array.from((0,vm.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(xm),s=new Set;for(let a of o)Ru.lastIndex=0,!s.has("KEYWORD")&&ym.has(a)?(i.keyword=a,s.add("KEYWORD")):Ru.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 Sm(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 $u=P(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});function _m(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}_m(lo,{normalize:()=>Je,url:()=>Du,number:()=>Em,percentage:()=>Nu,length:()=>Fu,lineWidth:()=>Im,shadow:()=>Am,color:()=>Rm,image:()=>Lm,gradient:()=>Wu,position:()=>Dm,familyName:()=>Nm,genericName:()=>Wm,absoluteSize:()=>qm,relativeSize:()=>zm});var km=ro(),Tm=Lu(),uo=["min","max","clamp","calc"],Mu=/,(?![^(]*\))/g,gn=/_(?![^(]*\))/g;function Je(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Je(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Du(e){return e.startsWith("url(")}function Em(e){return!isNaN(Number(e))||uo.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Nu(e){return e.split(gn).every(t=>/%$/g.test(t)||uo.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Om=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Cu=`(?:${Om.join("|")})`;function Fu(e){return e.split(gn).every(t=>t==="0"||new RegExp(`${Cu}$`).test(t)||uo.some(n=>new RegExp(`^${n}\\(.+?${Cu}`).test(t)))}var Pm=new Set(["thin","medium","thick"]);function Im(e){return Pm.has(e)}function Am(e){let t=(0,Tm.parseBoxShadowValue)(Je(e));for(let n of t)if(!n.valid)return!1;return!0}function Rm(e){let t=0;return e.split(gn).every(r=>(r=Je(r),r.startsWith("var(")?!0:(0,km.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Lm(e){let t=0;return e.split(Mu).every(r=>(r=Je(r),r.startsWith("var(")?!0:Du(r)||Wu(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Cm=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Wu(e){e=Je(e);for(let t of Cm)if(e.startsWith(`${t}(`))return!0;return!1}var Mm=new Set(["center","top","right","bottom","left"]);function Dm(e){let t=0;return e.split(gn).every(r=>(r=Je(r),r.startsWith("var(")?!0:Mm.has(r)||Fu(r)||Nu(r)?(t++,!0):!1))?t>0:!1}function Nm(e){let t=0;return e.split(Mu).every(r=>(r=Je(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Fm=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Wm(e){return Fm.has(e)}var $m=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function qm(e){return $m.has(e)}var Bm=new Set(["larger","smaller"]);function zm(e){return Bm.has(e)}});var Vu=P(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});function Um(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Um(po,{updateAllClasses:()=>Hm,asValue:()=>gr,parseColorFormat:()=>fo,asColor:()=>Gu,asLookupValue:()=>ju,coerceValue:()=>Qm});var Gm=co(vu()),jm=co(yu()),qu=io(),de=$u(),Bu=co(Qn());function co(e){return e&&e.__esModule?e:{default:e}}function Hm(e,t){return(0,Gm.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,jm.default)(o.raws.value))})}).processSync(e)}function Uu(e,t){if(!mr(e))return;let n=e.slice(1,-1);if(t(n))return(0,de.normalize)(n)}function Vm(e,t={},n){let r=t[e];if(r!==void 0)return(0,Bu.default)(r);if(mr(e)){let i=Uu(e,n);return i===void 0?void 0:(0,Bu.default)(i)}}function gr(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Vm(e.slice(1),t.values,n):Uu(e,n)}function mr(e){return e.startsWith("[")&&e.endsWith("]")}function Ym(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function fo(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Gu(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return fo((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Ym(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:mr(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=fo(c),mr(s)?(0,qu.withAlphaValue)(c,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,qu.withAlphaValue)(c,n.theme.opacity[s]))}return gr(e,t,{validate:de.color})}function ju(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function we(e){return(t,n)=>gr(t,n,{validate:e})}var Hu={any:gr,color:Gu,url:we(de.url),image:we(de.image),length:we(de.length),percentage:we(de.percentage),position:we(de.position),lookup:ju,"generic-name":we(de.genericName),"family-name":we(de.familyName),number:we(de.number),"line-width":we(de.lineWidth),"absolute-size":we(de.absoluteSize),"relative-size":we(de.relativeSize),shadow:we(de.shadow)},zu=Object.keys(Hu);function Xm(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Qm(e,t,n,r){if(mr(t)){let i=t.slice(1,-1),[o,s]=Xm(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!zu.includes(o))return[];if(s.length>0&&zu.includes(o))return[gr(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=Hu[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Yu=P(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});Object.defineProperty(ho,"default",{enumerable:!0,get:()=>Km});function Km(e){return typeof e=="function"?e({}):e}});var Zu=P(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});Object.defineProperty(go,"default",{enumerable:!0,get:()=>b0});var Jm=lt(Qn()),Zm=lt(ra()),e0=lt(na()),t0=lt(Zn()),r0=lt(oa()),Ku=sa(),Xu=aa(),n0=la(),i0=lt(fa()),o0=ca(),s0=Vu(),a0=io(),u0=lt(Yu());function lt(e){return e&&e.__esModule?e:{default:e}}function Tt(e){return typeof e=="function"}function br(e){return typeof e=="object"&&e!==null}function vr(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?br(e[i])&&br(r[i])?e[i]=vr(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var mo={colors:r0.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Jm.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function l0(e,...t){return Tt(e)?e(...t):e}function f0(e){return e.reduce((t,{extend:n})=>vr(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function c0(e){return{...e.reduce((t,n)=>(0,Ku.defaults)(t,n),{}),extend:f0(e)}}function Qu(e,t){if(Array.isArray(e)&&br(e[0]))return e.concat(t);if(Array.isArray(t)&&br(t[0])&&br(e))return[e,...t];if(Array.isArray(t))return t}function d0({extend:e,...t}){return vr(t,e,(n,r)=>!Tt(n)&&!r.some(Tt)?vr({},n,...r,Qu):(i,o)=>vr({},...[n,...r].map(s=>l0(s,i,o)),Qu))}function*p0(e){let t=(0,Xu.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,Xu.toPath)(i);s.alpha=o,yield s}}function h0(e){let t=(n,r)=>{for(let i of p0(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Tt(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,mo):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,s0.parseColorFormat)(s);return(0,a0.withAlphaValue)(a,i.alpha,(0,u0.default)(a))}return(0,i0.default)(s)?(0,o0.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...mo}),Object.keys(e).reduce((n,r)=>(n[r]=Tt(e[r])?e[r](t,mo):e[r],n),{})}function Ju(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Ju([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function m0(e){return[...e].reduceRight((n,r)=>Tt(r)?r({corePlugins:n}):(0,e0.default)(r,n),Zm.default)}function g0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function b0(e){let t=[...Ju(e),{prefix:"",important:!1,separator:":",variantOrder:t0.default.variantOrder}];var n,r;return(0,n0.normalizeConfig)((0,Ku.defaults)({theme:h0(d0(c0(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:m0(t.map(i=>i.corePlugins)),plugins:g0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var el={};Sn(el,{default:()=>v0});var v0,tl=Yo(()=>{v0={yellow:e=>e}});var ol=P(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});function y0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}y0(bo,{flagEnabled:()=>S0,issueFlagNotices:()=>_0,default:()=>k0});var x0=il((tl(),Lt(el))),w0=il((en(),Lt(Zr)));function il(e){return e&&e.__esModule?e:{default:e}}var rl={optimizeUniversalDefaults:!1},yr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function S0(e,t){if(yr.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:rl[t])!==null&&i!==void 0?i:!1)}if(yr.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:rl[t])!==null&&a!==void 0?a:!1)}return!1}function nl(e){if(e.experimental==="all")return yr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>yr.experimental.includes(n)&&e.experimental[n])}function _0(e){if(process.env.JEST_WORKER_ID===void 0&&nl(e).length>0){let t=nl(e).map(n=>x0.default.yellow(n)).join(", ");w0.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 k0=yr});var al=P(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});Object.defineProperty(vo,"default",{enumerable:!0,get:()=>sl});var T0=O0(Zn()),E0=ol();function O0(e){return e&&e.__esModule?e:{default:e}}function sl(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[T0.default]).slice().reverse().flatMap(o=>sl(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,E0.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var ll=P(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});Object.defineProperty(yo,"default",{enumerable:!0,get:()=>A0});var P0=ul(Zu()),I0=ul(al());function ul(e){return e&&e.__esModule?e:{default:e}}function A0(...e){let[,...t]=(0,I0.default)(e[0]);return(0,P0.default)([...e,...t])}});var cl=P((Gv,fl)=>{var xo=ll();fl.exports=(xo.__esModule?xo:{default:xo}).default});var K0={};Sn(K0,{default:()=>Wo});module.exports=Lt(K0);var es=nt(require("linebreak"),1),ts=require("yoga-layout/load");var Ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jl=Ct((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Hl=Ct((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Vl=Ct((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Yl=Ct((e,t)=>{t.exports=["Hz","kHz"]}),Xl=Ct((e,t)=>{t.exports=["s","ms"]}),Ql=jl(),Qo=Hl(),Ko=Vl(),Jo=Yl(),Zo=Xl();function kn(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(Kl(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=_n(e),this.unit="%";return}var t=Zl(e);if(!t){this.type="number",this.value=_n(e);return}this.type=tf(t),this.value=_n(e.substr(0,e.length-t.length)),this.unit=t}kn.prototype.valueOf=function(){return this.value};kn.prototype.toString=function(){return this.value+(this.unit||"")};function Ne(e){return new kn(e)}function Kl(e){var t=e.match(/\./g);return t?t.length:0}function _n(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Jl=[].concat(Qo,Jo,Ql,Ko,Zo);function Zl(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Jl.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var ef=Object.assign(Nr(Qo,"angle"),Nr(Jo,"frequency"),Nr(Ko,"resolution"),Nr(Zo,"time"));function Nr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function tf(e){return ef[e]||"length"}var rf=(0,ts.loadYoga)();function Ve(){return rf}function vt(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function rs(e){return/^class\s/.test(e.toString())}function ns(e){return"dangerouslySetInnerHTML"in e}function is(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function R(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new Ne(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return On(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function On(e){let t=new Ne(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 Mt(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 le(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var Tn,En,os=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function ue(e,t,n){if(!Tn||!En){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Tn=new Intl.Segmenter(n,{granularity:"word"}),En=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...En.segment(e)].map(r=>r.segment);{let r=[...Tn.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function _(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function ss(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function yt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Fr(e){return typeof e=="string"}function as(e){return typeof e=="number"}function us(e){return typeof e>"u"}function Fe(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Ye(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function ls(e,t){if(t==="break-all")return{words:ue(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:ue(e,"word"),requiredBreaks:[]};let n=new es.default(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var fs=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Wr(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}var nf="image/avif",of="image/webp",$r="image/apng",qr="image/png",Br="image/jpeg",zr="image/gif",Pn="image/svg+xml";function ps(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function hs(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function ms(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Le=ss(100),Dt=new Map,sf=[qr,$r,Br,zr,Pn];function af(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function uf(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function cs(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?yt(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function ds(e){let t,n=lf(new Uint8Array(e));switch(n){case qr:case $r:t=ms(e);break;case zr:t=hs(e);break;case Br:t=ps(e);break}if(!sf.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${af(e)}`,t]}async function xt(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=ds(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Pn){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),l=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,f=cs(e,u);return Le.set(e,[l,...f]),[l,...f]}else if(s==="base64"){let u,l=uf(a);switch(o){case qr:case $r:u=ms(l);break;case zr:u=hs(l);break;case Br:u=ps(l);break}return Le.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),Le.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Dt.has(e))return Dt.get(e);let t=Le.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=cs(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=ds(i);return[o,...s]}).then(i=>(Le.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),Le.set(n,[]),[]));return Dt.set(n,r),r}function lf(e){return[255,216,255].every((t,n)=>e[n]===t)?Br:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?ff(e)?$r:qr:[71,73,70,56].every((t,n)=>e[n]===t)?zr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?of:[60,63,120,109,108].every((t,n)=>e[n]===t)?Pn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?nf:null}function ff(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var In={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"},cf=/[\r\n%#()<>?[\\\]^`{|}"']/g;function An(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>An(l,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),l==="href"&&n==="image"?` ${In[l]||l}="${Le.get(f)[0]}"`:` ${In[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${fs(l)}:${f}`).join(";")}"`:"";return`<${n}${a}${u}>${An(r,s)}</${n}>`}async function gs(e){let t=new Set,n=r=>{if(r&&vt(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src)));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>xt(r)))}async function bs(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=yt(n),p=c?c[3]/c[2]:null;return i=i||p&&o?o/p:null,o=o||p&&i?i*p:null,l.width=i,l.height=o,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([d,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${In[d]||d}="${h}"`)).join("")}>${An(u,f)}</svg>`.replace(cf,encodeURIComponent)}`}var be="flex",vs={p:{display:be,marginTop:"1em",marginBottom:"1em"},div:{display:be},blockquote:{display:be,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:be,textAlign:"center"},hr:{display:be,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:be,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:be,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:be,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:be,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:be,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:be,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:be,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var df=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Rn(e){let t={};for(let n in e)df.has(n)&&(t[n]=e[n]);return t}var Oe=require("css-to-react-native"),Ts=require("css-background-parser"),Es=require("css-box-shadow"),Os=nt(require("parse-css-color"),1);var ys=nt(require("postcss-value-parser"),1);function pf(e,t){try{let n=new Ne(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Ln(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=pf(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Cn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,ys.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Ln(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Ln(n[0],t,!0),...Ln(n[1],t,!1)}):{}}var xs=require("css-to-react-native");function Nt(e,t){let n=(0,xs.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function ws(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Nt(e,"position")||"0% 0%",size:Nt(e,"size")||"100% 100%",repeat:Nt(e,"repeat")||"repeat",origin:Nt(e,"origin")||"border-box",clip:Nt(e,"origin")||"border-box"};return Wr(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var hf=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),mf=new Set(["lineHeight"]);function gf(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function it(e,t){let n=Number(t);return isNaN(n)?t:hf.has(e)?mf.has(e)?n:String(t):n+"px"}function bf(e,t,n){if(e==="lineHeight")return{lineHeight:it(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=(0,Oe.getStylesForProperty)(e,r,!0),s=(0,Oe.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=it(e,o[a])+" "+it(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Oe.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:it(e+"Width",r.borderWidth),Style:le(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,Es.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=(0,Oe.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(t)?(0,Oe.getStylesForProperty)("backgroundImage",t,!0):(0,Oe.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Wr(t);for(let o of i){let s=(0,Oe.getStylesForProperty)("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:it(e,r[0]),WebkitTextStrokeColor:it(e,r[1])}}}function Ss(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var _s=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Ps(e){if(typeof e=="string"&&_s.test(e.trim()))return e.trim().replace(_s,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Ps(e[t]);return e}return e}function Ur(e,t){let n={};if(e){let i=yf(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=(0,Oe.getPropertyName)(o),a=wf(e[o],i);try{let u=bf(s,a,i)||gf(s,(0,Oe.getStylesForProperty)(s,it(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
3
|
+
`),m=w.length-1,m>0?(T=s+m,y=b-w[m].length):(T=s,y=o),x=k.comment,s=T,p=T,c=b-y):l===k.slash?(b=a,x=l,p=s,c=a-o,u=b+1):(b=Up(n,a),x=k.word,p=s,c=b-o),u=b+1;break}t.push([x,s,a-o,p,c,a,u]),y&&(o=y,y=null),a=u}return t}});var au=P((cr,su)=>{"use strict";cr.__esModule=!0;cr.default=void 0;var Vp=ve(fi()),Bi=ve(di()),Yp=ve(mi()),eu=ve(bi()),Xp=ve(yi()),Qp=ve(Si()),zi=ve(ki()),Kp=ve(Ei()),tu=pn(Li()),Jp=ve(Mi()),Ui=ve(Ni()),Zp=ve(Wi()),eh=ve(Xa()),S=pn(Za()),E=pn($i()),th=pn(ne()),X=Ht(),st,Gi;function ou(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return ou=function(){return e},e}function pn(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ou();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ve(e){return e&&e.__esModule?e:{default:e}}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rh(e,t,n){return t&&ru(e.prototype,t),n&&ru(e,n),e}var Vi=(st={},st[E.space]=!0,st[E.cr]=!0,st[E.feed]=!0,st[E.newline]=!0,st[E.tab]=!0,st),nh=Object.assign({},Vi,(Gi={},Gi[E.comment]=!0,Gi));function nu(e){return{line:e[S.FIELDS.START_LINE],column:e[S.FIELDS.START_COL]}}function iu(e){return{line:e[S.FIELDS.END_LINE],column:e[S.FIELDS.END_COL]}}function at(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function _t(e){return at(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],e[S.FIELDS.END_LINE],e[S.FIELDS.END_COL])}function ji(e,t){if(e)return at(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],t[S.FIELDS.END_LINE],t[S.FIELDS.END_COL])}function kt(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,X.ensureObject)(e,"raws"),e[t]=(0,X.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Hi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function ih(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var oh=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,S.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=ji(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Vp.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new Bi.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[S.FIELDS.TYPE]!==E.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[S.FIELDS.TYPE]!==E.closeSquare)return this.expected("closing square bracket",this.currToken[S.FIELDS.START_POS]);var o=r.length,s={source:at(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[S.FIELDS.START_POS]};if(o===1&&!~[E.word].indexOf(r[0][S.FIELDS.TYPE]))return this.expected("attribute",r[0][S.FIELDS.START_POS]);for(var a=0,u="",l="",f=null,c=!1;a<o;){var p=r[a],d=this.content(p),h=r[a+1];switch(p[S.FIELDS.TYPE]){case E.space:if(c=!0,this.options.lossy)break;if(f){(0,X.ensureObject)(s,"spaces",f);var m=s.spaces[f].after||"";s.spaces[f].after=m+d;var w=(0,X.getProp)(s,"raws","spaces",f,"after")||null;w&&(s.raws.spaces[f].after=w+d)}else u=u+d,l=l+d;break;case E.asterisk:if(h[S.FIELDS.TYPE]===E.equals)s.operator=d,f="operator";else if((!s.namespace||f==="namespace"&&!c)&&h){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,l=""),s.namespace=(s.namespace||"")+d;var b=(0,X.getProp)(s,"raws","namespace")||null;b&&(s.raws.namespace+=d),f="namespace"}c=!1;break;case E.dollar:if(f==="value"){var T=(0,X.getProp)(s,"raws","value");s.value+="$",T&&(s.raws.value=T+"$");break}case E.caret:h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),c=!1;break;case E.combinator:if(d==="~"&&h[S.FIELDS.TYPE]===E.equals&&(s.operator=d,f="operator"),d!=="|"){c=!1;break}h[S.FIELDS.TYPE]===E.equals?(s.operator=d,f="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),c=!1;break;case E.word:if(h&&this.content(h)==="|"&&r[a+2]&&r[a+2][S.FIELDS.TYPE]!==E.equals&&!s.operator&&!s.namespace)s.namespace=d,f="namespace";else if(!s.attribute||f==="attribute"&&!c){u&&((0,X.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=l,l=""),s.attribute=(s.attribute||"")+d;var y=(0,X.getProp)(s,"raws","attribute")||null;y&&(s.raws.attribute+=d),f="attribute"}else if(!s.value&&s.value!==""||f==="value"&&!c){var v=(0,X.unesc)(d),x=(0,X.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+v,s.quoteMark=null,(v!==d||x)&&((0,X.ensureObject)(s,"raws"),s.raws.value=(x||I)+d),f="value"}else{var A=d==="i"||d==="I";(s.value||s.value==="")&&(s.quoteMark||c)?(s.insensitive=A,(!A||d==="I")&&((0,X.ensureObject)(s,"raws"),s.raws.insensitiveFlag=d),f="insensitive",u&&((0,X.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),l&&((0,X.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=l,l="")):(s.value||s.value==="")&&(f="value",s.value+=d,s.raws.value&&(s.raws.value+=d))}c=!1;break;case E.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:p[S.FIELDS.START_POS]});var L=(0,tu.unescapeValue)(d),H=L.unescaped,ie=L.quoteMark;s.value=H,s.quoteMark=ie,f="value",(0,X.ensureObject)(s,"raws"),s.raws.value=d,c=!1;break;case E.equals:if(!s.attribute)return this.expected("attribute",p[S.FIELDS.START_POS],d);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:p[S.FIELDS.START_POS]});s.operator=s.operator?s.operator+d:d,f="operator",c=!1;break;case E.comment:if(f)if(c||h&&h[S.FIELDS.TYPE]===E.space||f==="insensitive"){var ae=(0,X.getProp)(s,"spaces",f,"after")||"",fe=(0,X.getProp)(s,"raws","spaces",f,"after")||ae;(0,X.ensureObject)(s,"raws","spaces",f),s.raws.spaces[f].after=fe+d}else{var K=s[f]||"",oe=(0,X.getProp)(s,"raws",f)||K;(0,X.ensureObject)(s,"raws"),s.raws[f]=oe+d}else l=l+d;break;default:return this.error('Unexpected "'+d+'" found.',{index:p[S.FIELDS.START_POS]})}a++}kt(s,"attribute"),kt(s,"namespace"),this.newNode(new tu.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(Vi[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[S.FIELDS.TYPE]===E.comment){var u={};s&&(u.before=s,s=""),a=new eu.default({value:this.content(),source:_t(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];o.push(new zi.default({value:"",source:at(l[S.FIELDS.START_LINE],l[S.FIELDS.START_COL],f[S.FIELDS.END_LINE],f[S.FIELDS.END_COL]),sourceIndex:l[S.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(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(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][S.FIELDS.TYPE]===E.slash&&this.tokens[r+1]&&this.tokens[r+1][S.FIELDS.TYPE]===E.word&&this.tokens[r+2]&&this.tokens[r+2][S.FIELDS.TYPE]===E.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,X.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new Ui.default({value:"/"+i+"/",source:at(this.currToken[S.FIELDS.START_LINE],this.currToken[S.FIELDS.START_COL],this.tokens[this.position+2][S.FIELDS.END_LINE],this.tokens[this.position+2][S.FIELDS.END_COL]),sourceIndex:this.currToken[S.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][S.FIELDS.TYPE]===E.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 r.newNode(x)})}return}var f=this.currToken,c=void 0;i>this.position&&(c=this.parseWhitespaceEquivalentTokens(i));var p;if(this.isNamedCombinator()?p=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===E.combinator?(p=new Ui.default({value:this.content(),source:_t(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):Vi[this.currToken[S.FIELDS.TYPE]]||c||this.unexpected(),p){if(c){var d=this.convertWhitespaceNodesToSpace(c),h=d.space,m=d.rawSpace;p.spaces.before=h,p.rawSpaceBefore=m}}else{var w=this.convertWhitespaceNodesToSpace(c,!0),b=w.space,T=w.rawSpace;T||(T=b);var y={},v={spaces:{}};b.endsWith(" ")&&T.endsWith(" ")?(y.before=b.slice(0,b.length-1),v.spaces.before=T.slice(0,T.length-1)):b.startsWith(" ")&&T.startsWith(" ")?(y.after=b.slice(1),v.spaces.after=T.slice(1)):v.value=T,p=new Ui.default({value:" ",source:ji(f,this.tokens[this.position-1]),sourceIndex:f[S.FIELDS.START_POS],spaces:y,raws:v})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===E.space&&(p.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(p)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new Bi.default({source:{start:nu(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new eu.default({value:this.content(),source:_t(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[S.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[S.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[S.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[S.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[S.FIELDS.TYPE]===E.word)return this.position++,this.word(r);if(this.nextToken[S.FIELDS.TYPE]===E.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Zp.default({value:this.content(),source:_t(i),sourceIndex:i[S.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===th.PSEUDO){var o=new Bi.default({source:{start:nu(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,i?this.parse():(this.current.source.end=iu(this.currToken),this.current.parent.source.end=iu(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===E.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===E.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new zi.default({value:u,source:at(a[S.FIELDS.START_LINE],a[S.FIELDS.START_COL],l[S.FIELDS.END_LINE],l[S.FIELDS.END_COL]),sourceIndex:a[S.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[S.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[S.FIELDS.TYPE]===E.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[S.FIELDS.TYPE]===E.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new Kp.default({value:i,source:ji(o,r.currToken),sourceIndex:o[S.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[S.FIELDS.TYPE]===E.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[S.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[S.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[S.FIELDS.TYPE]===E.comma||this.prevToken[S.FIELDS.TYPE]===E.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[S.FIELDS.TYPE]===E.comma||this.nextToken[S.FIELDS.TYPE]===E.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new zi.default({value:this.content(),source:_t(r),sourceIndex:r[S.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new Jp.default({value:this.content(),source:_t(o),sourceIndex:o[S.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[E.dollar,E.caret,E.equals,E.word].indexOf(s[S.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[S.FIELDS.TYPE]===E.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}s=this.nextToken}var f=Hi(a,".").filter(function(h){var m=a[h-1]==="\\",w=/^\d+\.\d+%$/.test(a);return!m&&!w}),c=Hi(a,"#").filter(function(h){return a[h-1]!=="\\"}),p=Hi(a,"#{");p.length&&(c=c.filter(function(h){return!~p.indexOf(h)}));var d=(0,eh.default)(ih([0].concat(f,c)));d.forEach(function(h,m){var w=d[m+1]||a.length,b=a.slice(h,w);if(m===0&&i)return i.call(o,b,d.length);var T,y=o.currToken,v=y[S.FIELDS.START_POS]+d[m],x=at(y[1],y[2]+h,y[3],y[2]+(w-1));if(~f.indexOf(h)){var I={value:b.slice(1),source:x,sourceIndex:v};T=new Yp.default(kt(I,"value"))}else if(~c.indexOf(h)){var A={value:b.slice(1),source:x,sourceIndex:v};T=new Xp.default(kt(A,"value"))}else{var L={value:b,source:x,sourceIndex:v};kt(L,"value"),T=new Qp.default(L)}o.newNode(T,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[S.FIELDS.TYPE]){case E.space:this.space();break;case E.comment:this.comment();break;case E.openParenthesis:this.parentheses();break;case E.closeParenthesis:r&&this.missingParenthesis();break;case E.openSquare:this.attribute();break;case E.dollar:case E.caret:case E.equals:case E.word:this.word();break;case E.colon:this.pseudo();break;case E.comma:this.comma();break;case E.asterisk:this.universal();break;case E.ampersand:this.nesting();break;case E.slash:case E.combinator:this.combinator();break;case E.str:this.string();break;case E.closeSquare:this.missingSquareBracket();case E.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[S.FIELDS.TYPE]===E.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,kt(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[S.FIELDS.START_POS],r[S.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(nh[this.tokens[i][S.FIELDS.TYPE]]){i++;continue}else return i;return-1},rh(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}();cr.default=oh;su.exports=cr.default});var lu=P((dr,uu)=>{"use strict";dr.__esModule=!0;dr.default=void 0;var sh=ah(au());function ah(e){return e&&e.__esModule?e:{default:e}}var uh=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new sh.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(l){var f=void 0;return o._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(s,a)}catch(l){a(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();dr.default=uh;uu.exports=dr.default});var fu=P(j=>{"use strict";j.__esModule=!0;j.universal=j.tag=j.string=j.selector=j.root=j.pseudo=j.nesting=j.id=j.comment=j.combinator=j.className=j.attribute=void 0;var lh=ye(Li()),fh=ye(mi()),ch=ye(Ni()),dh=ye(bi()),ph=ye(yi()),hh=ye(Wi()),mh=ye(Ei()),gh=ye(fi()),bh=ye(di()),vh=ye(ki()),yh=ye(Si()),xh=ye(Mi());function ye(e){return e&&e.__esModule?e:{default:e}}var wh=function(t){return new lh.default(t)};j.attribute=wh;var Sh=function(t){return new fh.default(t)};j.className=Sh;var _h=function(t){return new ch.default(t)};j.combinator=_h;var kh=function(t){return new dh.default(t)};j.comment=kh;var Th=function(t){return new ph.default(t)};j.id=Th;var Eh=function(t){return new hh.default(t)};j.nesting=Eh;var Oh=function(t){return new mh.default(t)};j.pseudo=Oh;var Ph=function(t){return new gh.default(t)};j.root=Ph;var Ih=function(t){return new bh.default(t)};j.selector=Ih;var Ah=function(t){return new vh.default(t)};j.string=Ah;var Rh=function(t){return new yh.default(t)};j.tag=Rh;var Lh=function(t){return new xh.default(t)};j.universal=Lh});var hu=P(N=>{"use strict";N.__esModule=!0;N.isNode=Yi;N.isPseudoElement=pu;N.isPseudoClass=Uh;N.isContainer=Gh;N.isNamespace=jh;N.isUniversal=N.isTag=N.isString=N.isSelector=N.isRoot=N.isPseudo=N.isNesting=N.isIdentifier=N.isComment=N.isCombinator=N.isClassName=N.isAttribute=void 0;var Q=ne(),ce,Ch=(ce={},ce[Q.ATTRIBUTE]=!0,ce[Q.CLASS]=!0,ce[Q.COMBINATOR]=!0,ce[Q.COMMENT]=!0,ce[Q.ID]=!0,ce[Q.NESTING]=!0,ce[Q.PSEUDO]=!0,ce[Q.ROOT]=!0,ce[Q.SELECTOR]=!0,ce[Q.STRING]=!0,ce[Q.TAG]=!0,ce[Q.UNIVERSAL]=!0,ce);function Yi(e){return typeof e=="object"&&Ch[e.type]}function xe(e,t){return Yi(t)&&t.type===e}var cu=xe.bind(null,Q.ATTRIBUTE);N.isAttribute=cu;var Mh=xe.bind(null,Q.CLASS);N.isClassName=Mh;var Dh=xe.bind(null,Q.COMBINATOR);N.isCombinator=Dh;var Nh=xe.bind(null,Q.COMMENT);N.isComment=Nh;var Fh=xe.bind(null,Q.ID);N.isIdentifier=Fh;var Wh=xe.bind(null,Q.NESTING);N.isNesting=Wh;var Xi=xe.bind(null,Q.PSEUDO);N.isPseudo=Xi;var $h=xe.bind(null,Q.ROOT);N.isRoot=$h;var qh=xe.bind(null,Q.SELECTOR);N.isSelector=qh;var Bh=xe.bind(null,Q.STRING);N.isString=Bh;var du=xe.bind(null,Q.TAG);N.isTag=du;var zh=xe.bind(null,Q.UNIVERSAL);N.isUniversal=zh;function pu(e){return Xi(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 Uh(e){return Xi(e)&&!pu(e)}function Gh(e){return!!(Yi(e)&&e.walk)}function jh(e){return cu(e)||du(e)}});var mu=P(Pe=>{"use strict";Pe.__esModule=!0;var Qi=ne();Object.keys(Qi).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Qi[e]||(Pe[e]=Qi[e])});var Ki=fu();Object.keys(Ki).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ki[e]||(Pe[e]=Ki[e])});var Ji=hu();Object.keys(Ji).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ji[e]||(Pe[e]=Ji[e])})});var vu=P((pr,bu)=>{"use strict";pr.__esModule=!0;pr.default=void 0;var Hh=Xh(lu()),Vh=Yh(mu());function gu(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return gu=function(){return e},e}function Yh(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=gu();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Xh(e){return e&&e.__esModule?e:{default:e}}var Zi=function(t){return new Hh.default(t)};Object.assign(Zi,Vh);delete Zi.__esModule;var Qh=Zi;pr.default=Qh;bu.exports=pr.default});var yu=P(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});Object.defineProperty(eo,"default",{enumerable:!0,get:()=>Kh});function Kh(e){return e.replace(/\\,/g,"\\2c ")}});var wu=P((Rv,xu)=>{"use strict";xu.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 ro=P(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});function Jh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Jh(to,{parseColor:()=>im,formatColor:()=>om});var Su=Zh(wu());function Zh(e){return e&&e.__esModule?e:{default:e}}var em=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,tm=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Qe=/(?:\d+|\d*\.\d+)%?/,hn=/(?:\s*,\s*|\s+)/,_u=/\s*[,/]\s*/,Ke=/var\(--(?:[^ )]*?)\)/,rm=new RegExp(`^(rgb)a?\\(\\s*(${Qe.source}|${Ke.source})(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${_u.source}(${Qe.source}|${Ke.source}))?\\s*\\)$`),nm=new RegExp(`^(hsl)a?\\(\\s*((?:${Qe.source})(?:deg|rad|grad|turn)?|${Ke.source})(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${hn.source}(${Qe.source}|${Ke.source}))?(?:${_u.source}(${Qe.source}|${Ke.source}))?\\s*\\)$`);function im(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Su.default)return{mode:"rgb",color:Su.default[e].map(u=>u.toString())};let i=e.replace(tm,(u,l,f,c,p)=>["#",l,l,f,f,c,c,p?p+p:""].join("")).match(em);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(rm))!==null&&o!==void 0?o:e.match(nm);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function om({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var io=P(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});function sm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}sm(no,{withAlphaValue:()=>am,default:()=>um});var mn=ro();function am(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,mn.parseColor)(e,{loose:!0});return r===null?n:(0,mn.formatColor)({...r,alpha:t})}function um({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,mn.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,mn.formatColor)({...i,alpha:`var(${n})`})]))}}});var Pu=P(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function lm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}lm(oo,{pattern:()=>cm,withoutCapturing:()=>Tu,any:()=>Eu,optional:()=>dm,zeroOrMore:()=>pm,nestedBrackets:()=>Ou,escape:()=>ut});var ku=/[\\^$.*+?()[\]{}|]/g,fm=RegExp(ku.source);function hr(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function cm(e){return new RegExp(hr(e),"g")}function Tu(e){return new RegExp(`(?:${hr(e)})`,"g")}function Eu(e){return`(?:${e.map(hr).join("|")})`}function dm(e){return`(?:${hr(e)})?`}function pm(e){return`(?:${hr(e)})*`}function Ou(e,t,n=1){return Tu([ut(e),/[^\s]*/,n===1?`[^${ut(e)}${ut(t)}s]*`:Eu([`[^${ut(e)}${ut(t)}s]*`,Ou(e,t,n-1)]),/[^\s]*/,ut(t)])}function ut(e){return e&&fm.test(e)?e.replace(ku,"\\$&"):e||""}});var Au=P(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});Object.defineProperty(so,"splitAtTopLevelOnly",{enumerable:!0,get:()=>gm});var hm=mm(Pu());function Iu(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Iu=function(r){return r?n:t})(e)}function mm(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Iu(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*gm(e,t){let n=new RegExp(`[(){}\\[\\]${hm.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[s],c=s===u-1,p=f&&c;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(a===0&&(a=l.index),s++),p&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var Lu=P(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});function bm(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}bm(ao,{parseBoxShadowValue:()=>wm,formatBoxShadowValue:()=>Sm});var vm=Au(),ym=new Set(["inset","inherit","initial","revert","unset"]),xm=/\ +(?![^(]*\))/g,Ru=/^-?(\d+|\.\d+)(.*?)$/g;function wm(e){return Array.from((0,vm.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(xm),s=new Set;for(let a of o)Ru.lastIndex=0,!s.has("KEYWORD")&&ym.has(a)?(i.keyword=a,s.add("KEYWORD")):Ru.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 Sm(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 $u=P(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});function _m(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}_m(lo,{normalize:()=>Je,url:()=>Du,number:()=>Em,percentage:()=>Nu,length:()=>Fu,lineWidth:()=>Im,shadow:()=>Am,color:()=>Rm,image:()=>Lm,gradient:()=>Wu,position:()=>Dm,familyName:()=>Nm,genericName:()=>Wm,absoluteSize:()=>qm,relativeSize:()=>zm});var km=ro(),Tm=Lu(),uo=["min","max","clamp","calc"],Mu=/,(?![^(]*\))/g,gn=/_(?![^(]*\))/g;function Je(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Je(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function Du(e){return e.startsWith("url(")}function Em(e){return!isNaN(Number(e))||uo.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function Nu(e){return e.split(gn).every(t=>/%$/g.test(t)||uo.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Om=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],Cu=`(?:${Om.join("|")})`;function Fu(e){return e.split(gn).every(t=>t==="0"||new RegExp(`${Cu}$`).test(t)||uo.some(n=>new RegExp(`^${n}\\(.+?${Cu}`).test(t)))}var Pm=new Set(["thin","medium","thick"]);function Im(e){return Pm.has(e)}function Am(e){let t=(0,Tm.parseBoxShadowValue)(Je(e));for(let n of t)if(!n.valid)return!1;return!0}function Rm(e){let t=0;return e.split(gn).every(r=>(r=Je(r),r.startsWith("var(")?!0:(0,km.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Lm(e){let t=0;return e.split(Mu).every(r=>(r=Je(r),r.startsWith("var(")?!0:Du(r)||Wu(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Cm=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Wu(e){e=Je(e);for(let t of Cm)if(e.startsWith(`${t}(`))return!0;return!1}var Mm=new Set(["center","top","right","bottom","left"]);function Dm(e){let t=0;return e.split(gn).every(r=>(r=Je(r),r.startsWith("var(")?!0:Mm.has(r)||Fu(r)||Nu(r)?(t++,!0):!1))?t>0:!1}function Nm(e){let t=0;return e.split(Mu).every(r=>(r=Je(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Fm=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Wm(e){return Fm.has(e)}var $m=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function qm(e){return $m.has(e)}var Bm=new Set(["larger","smaller"]);function zm(e){return Bm.has(e)}});var Vu=P(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});function Um(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Um(po,{updateAllClasses:()=>Hm,asValue:()=>gr,parseColorFormat:()=>fo,asColor:()=>Gu,asLookupValue:()=>ju,coerceValue:()=>Qm});var Gm=co(vu()),jm=co(yu()),qu=io(),de=$u(),Bu=co(Qn());function co(e){return e&&e.__esModule?e:{default:e}}function Hm(e,t){return(0,Gm.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,jm.default)(o.raws.value))})}).processSync(e)}function Uu(e,t){if(!mr(e))return;let n=e.slice(1,-1);if(t(n))return(0,de.normalize)(n)}function Vm(e,t={},n){let r=t[e];if(r!==void 0)return(0,Bu.default)(r);if(mr(e)){let i=Uu(e,n);return i===void 0?void 0:(0,Bu.default)(i)}}function gr(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?Vm(e.slice(1),t.values,n):Uu(e,n)}function mr(e){return e.startsWith("[")&&e.endsWith("]")}function Ym(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function fo(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Gu(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return fo((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=Ym(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:mr(o)?o.slice(1,-1):void 0;return c===void 0?void 0:(c=fo(c),mr(s)?(0,qu.withAlphaValue)(c,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[s])===void 0?void 0:(0,qu.withAlphaValue)(c,n.theme.opacity[s]))}return gr(e,t,{validate:de.color})}function ju(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function we(e){return(t,n)=>gr(t,n,{validate:e})}var Hu={any:gr,color:Gu,url:we(de.url),image:we(de.image),length:we(de.length),percentage:we(de.percentage),position:we(de.position),lookup:ju,"generic-name":we(de.genericName),"family-name":we(de.familyName),number:we(de.number),"line-width":we(de.lineWidth),"absolute-size":we(de.absoluteSize),"relative-size":we(de.relativeSize),shadow:we(de.shadow)},zu=Object.keys(Hu);function Xm(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function Qm(e,t,n,r){if(mr(t)){let i=t.slice(1,-1),[o,s]=Xm(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!zu.includes(o))return[];if(s.length>0&&zu.includes(o))return[gr(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=Hu[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Yu=P(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});Object.defineProperty(ho,"default",{enumerable:!0,get:()=>Km});function Km(e){return typeof e=="function"?e({}):e}});var Zu=P(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});Object.defineProperty(go,"default",{enumerable:!0,get:()=>b0});var Jm=lt(Qn()),Zm=lt(ra()),e0=lt(na()),t0=lt(Zn()),r0=lt(oa()),Ku=sa(),Xu=aa(),n0=la(),i0=lt(fa()),o0=ca(),s0=Vu(),a0=io(),u0=lt(Yu());function lt(e){return e&&e.__esModule?e:{default:e}}function Tt(e){return typeof e=="function"}function br(e){return typeof e=="object"&&e!==null}function vr(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?br(e[i])&&br(r[i])?e[i]=vr(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var mo={colors:r0.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,Jm.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function l0(e,...t){return Tt(e)?e(...t):e}function f0(e){return e.reduce((t,{extend:n})=>vr(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function c0(e){return{...e.reduce((t,n)=>(0,Ku.defaults)(t,n),{}),extend:f0(e)}}function Qu(e,t){if(Array.isArray(e)&&br(e[0]))return e.concat(t);if(Array.isArray(t)&&br(t[0])&&br(e))return[e,...t];if(Array.isArray(t))return t}function d0({extend:e,...t}){return vr(t,e,(n,r)=>!Tt(n)&&!r.some(Tt)?vr({},n,...r,Qu):(i,o)=>vr({},...[n,...r].map(s=>l0(s,i,o)),Qu))}function*p0(e){let t=(0,Xu.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,Xu.toPath)(i);s.alpha=o,yield s}}function h0(e){let t=(n,r)=>{for(let i of p0(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Tt(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,mo):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,s0.parseColorFormat)(s);return(0,a0.withAlphaValue)(a,i.alpha,(0,u0.default)(a))}return(0,i0.default)(s)?(0,o0.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...mo}),Object.keys(e).reduce((n,r)=>(n[r]=Tt(e[r])?e[r](t,mo):e[r],n),{})}function Ju(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Ju([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function m0(e){return[...e].reduceRight((n,r)=>Tt(r)?r({corePlugins:n}):(0,e0.default)(r,n),Zm.default)}function g0(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function b0(e){let t=[...Ju(e),{prefix:"",important:!1,separator:":",variantOrder:t0.default.variantOrder}];var n,r;return(0,n0.normalizeConfig)((0,Ku.defaults)({theme:h0(d0(c0(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:m0(t.map(i=>i.corePlugins)),plugins:g0(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var el={};Sn(el,{default:()=>v0});var v0,tl=Yo(()=>{v0={yellow:e=>e}});var ol=P(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});function y0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}y0(bo,{flagEnabled:()=>S0,issueFlagNotices:()=>_0,default:()=>k0});var x0=il((tl(),Lt(el))),w0=il((en(),Lt(Zr)));function il(e){return e&&e.__esModule?e:{default:e}}var rl={optimizeUniversalDefaults:!1},yr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function S0(e,t){if(yr.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:rl[t])!==null&&i!==void 0?i:!1)}if(yr.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:rl[t])!==null&&a!==void 0?a:!1)}return!1}function nl(e){if(e.experimental==="all")return yr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>yr.experimental.includes(n)&&e.experimental[n])}function _0(e){if(process.env.JEST_WORKER_ID===void 0&&nl(e).length>0){let t=nl(e).map(n=>x0.default.yellow(n)).join(", ");w0.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 k0=yr});var al=P(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});Object.defineProperty(vo,"default",{enumerable:!0,get:()=>sl});var T0=O0(Zn()),E0=ol();function O0(e){return e&&e.__esModule?e:{default:e}}function sl(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[T0.default]).slice().reverse().flatMap(o=>sl(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,E0.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var ll=P(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});Object.defineProperty(yo,"default",{enumerable:!0,get:()=>A0});var P0=ul(Zu()),I0=ul(al());function ul(e){return e&&e.__esModule?e:{default:e}}function A0(...e){let[,...t]=(0,I0.default)(e[0]);return(0,P0.default)([...e,...t])}});var cl=P((Gv,fl)=>{var xo=ll();fl.exports=(xo.__esModule?xo:{default:xo}).default});var K0={};Sn(K0,{default:()=>Wo});module.exports=Lt(K0);var es=nt(require("linebreak"),1),ts=require("yoga-layout/load");var Ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jl=Ct((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Hl=Ct((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Vl=Ct((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Yl=Ct((e,t)=>{t.exports=["Hz","kHz"]}),Xl=Ct((e,t)=>{t.exports=["s","ms"]}),Ql=jl(),Qo=Hl(),Ko=Vl(),Jo=Yl(),Zo=Xl();function kn(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(Kl(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=_n(e),this.unit="%";return}var t=Zl(e);if(!t){this.type="number",this.value=_n(e);return}this.type=tf(t),this.value=_n(e.substr(0,e.length-t.length)),this.unit=t}kn.prototype.valueOf=function(){return this.value};kn.prototype.toString=function(){return this.value+(this.unit||"")};function Ne(e){return new kn(e)}function Kl(e){var t=e.match(/\./g);return t?t.length:0}function _n(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Jl=[].concat(Qo,Jo,Ql,Ko,Zo);function Zl(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Jl.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var ef=Object.assign(Nr(Qo,"angle"),Nr(Jo,"frequency"),Nr(Ko,"resolution"),Nr(Zo,"time"));function Nr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function tf(e){return ef[e]||"length"}var rf=(0,ts.loadYoga)();function Ve(){return rf}function vt(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function rs(e){return/^class\s/.test(e.toString())}function ns(e){return"dangerouslySetInnerHTML"in e}function is(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function R(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new Ne(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return On(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function On(e){let t=new Ne(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 Mt(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 le(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var Tn,En,os=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function ue(e,t,n){if(!Tn||!En){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Tn=new Intl.Segmenter(n,{granularity:"word"}),En=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...En.segment(e)].map(r=>r.segment);{let r=[...Tn.segment(e)].map(s=>s.segment),i=[],o=0;for(;o<r.length;){let s=r[o];if(s=="\xA0"){let a=o===0?"":i.pop(),u=o===r.length-1?"":r[o+1];i.push(a+"\xA0"+u),o+=2}else i.push(s),o++}return i}}function _(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function ss(e=20){let t=new Map;function n(o,s){if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function r(o){if(!t.has(o))return;let a=t.get(o);return t.delete(o),t.set(o,a),a}function i(){t.clear()}return{set:n,get:r,clear:i}}function yt(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Fr(e){return typeof e=="string"}function as(e){return typeof e=="number"}function us(e){return typeof e>"u"}function Fe(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function Ye(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function ls(e,t){if(t==="break-all")return{words:ue(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:ue(e,"word"),requiredBreaks:[]};let n=new es.default(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var fs=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Wr(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}var nf="image/avif",of="image/webp",$r="image/apng",qr="image/png",Br="image/jpeg",zr="image/gif",Pn="image/svg+xml";function ps(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function hs(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function ms(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Le=ss(100),Dt=new Map,sf=[qr,$r,Br,zr,Pn];function af(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function uf(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function cs(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?yt(r[1]):null,o=n.match(/width=['"](\d*\.\d+|\d+)['"]/),s=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let a=i?[i[2],i[3]]:[+o[1],+s[1]],u=a[0]/a[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/u]:s?[+s[1]*u,+s[1]]:[a[0],a[1]]}function ds(e){let t,n=lf(new Uint8Array(e));switch(n){case qr:case $r:t=ms(e);break;case zr:t=hs(e);break;case Br:t=ps(e);break}if(!sf.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${af(e)}`,t]}async function xt(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=ds(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===Pn){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),l=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,f=cs(e,u);return Le.set(e,[l,...f]),[l,...f]}else if(s==="base64"){let u,l=uf(a);switch(o){case qr:case $r:u=ms(l);break;case zr:u=hs(l);break;case Br:u=ps(l);break}return Le.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),Le.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Dt.has(e))return Dt.get(e);let t=Le.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=cs(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=ds(i);return[o,...s]}).then(i=>(Le.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),Le.set(n,[]),[]));return Dt.set(n,r),r}function lf(e){return[255,216,255].every((t,n)=>e[n]===t)?Br:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?ff(e)?$r:qr:[71,73,70,56].every((t,n)=>e[n]===t)?zr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?of:[60,63,120,109,108].every((t,n)=>e[n]===t)?Pn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?nf:null}function ff(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var In={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"},cf=/[\r\n%#()<>?[\\\]^`{|}"']/g;function An(e,t){if(!e)return"";if(Array.isArray(e))return e.map(l=>An(l,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([l,f])=>(typeof f=="string"&&f.toLowerCase()==="currentcolor"&&(f=s),l==="href"&&n==="image"?` ${In[l]||l}="${Le.get(f)[0]}"`:` ${In[l]||l}="${f}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([l,f])=>`${fs(l)}:${f}`).join(";")}"`:"";return`<${n}${a}${u}>${An(r,s)}</${n}>`}async function gs(e){let t=new Set,n=r=>{if(r&&vt(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else typeof r=="object"&&(r.type==="image"?t.has(r.props.href)||t.add(r.props.href):r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src)));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>xt(r)))}async function bs(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(a==null?void 0:a.color)||t,c=yt(n),p=c?c[3]/c[2]:null;return i=i||p&&o?o/p:null,o=o||p&&i?i*p:null,l.width=i,l.height=o,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([d,h])=>(typeof h=="string"&&h.toLowerCase()==="currentcolor"&&(h=f),` ${In[d]||d}="${h}"`)).join("")}>${An(u,f)}</svg>`.replace(cf,encodeURIComponent)}`}var be="flex",vs={p:{display:be,marginTop:"1em",marginBottom:"1em"},div:{display:be},blockquote:{display:be,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:be,textAlign:"center"},hr:{display:be,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:be,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:be,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:be,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:be,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:be,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:be,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:be,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var df=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Rn(e){let t={};for(let n in e)df.has(n)&&(t[n]=e[n]);return t}var Oe=require("css-to-react-native"),Ts=require("css-background-parser"),Es=require("css-box-shadow"),Os=nt(require("parse-css-color"),1);var ys=nt(require("postcss-value-parser"),1);function pf(e,t){try{let n=new Ne(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function Ln(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=pf(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Cn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,ys.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Ln(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Ln(n[0],t,!0),...Ln(n[1],t,!1)}):{}}var xs=require("css-to-react-native");function Nt(e,t){let n=(0,xs.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function ws(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Nt(e,"position")||"0% 0%",size:Nt(e,"size")||"100% 100%",repeat:Nt(e,"repeat")||"repeat",origin:Nt(e,"origin")||"border-box",clip:Nt(e,"origin")||"border-box"};return Wr(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var hf=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),mf=new Set(["lineHeight"]);function gf(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function it(e,t){let n=Number(t);return isNaN(n)?t:hf.has(e)?mf.has(e)?n:String(t):n+"px"}function bf(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:it(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=(0,Oe.getStylesForProperty)(e,r,!0),s=(0,Oe.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=it(e,o[a])+" "+it(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Oe.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:it(e+"Width",r.borderWidth),Style:le(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,Es.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=(0,Oe.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(t)?(0,Oe.getStylesForProperty)("backgroundImage",t,!0):(0,Oe.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Wr(t);for(let o of i){let s=(0,Oe.getStylesForProperty)("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:it(e,r[0]),WebkitTextStrokeColor:it(e,r[1])}}}function Ss(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var _s=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Ps(e){if(typeof e=="string"&&_s.test(e.trim()))return e.trim().replace(_s,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Ps(e[t]);return e}return e}function Ur(e,t){let n={};if(e){let i=yf(e.color,t.color);n.color=i;for(let o in e){if(o.startsWith("_")){n[o]=e[o];continue}if(o==="color")continue;let s=(0,Oe.getPropertyName)(o),a=wf(e[o],i);try{let u=bf(s,a,i)||gf(s,(0,Oe.getStylesForProperty)(s,it(s,a),!0),a,i);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(a)?`
|
|
4
4
|
`+Ss(s):`
|
|
5
|
-
in CSS rule \`${s}: ${a}\`.${Ss(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,Ts.parseElementStyle)(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=ws(n));let r=vf(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Cn(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=R(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=R(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=Ps(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],l=a[u],f=typeof l=="string"?R(l,r,r,t)??l:l;a[u]=f}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>R(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:R(a,r,0,t,!1),width:R(u,r,0,t,!1)}))}}return n}function vf(e,t){if(typeof e=="number")return e;try{let n=new Ne(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function ks(e){if(e.startsWith("hsl")){let t=(0,Os.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function yf(e,t){return e&&e.toLowerCase()!=="currentcolor"?ks(e):ks(t)}function xf(e,t){return e.replace(/currentcolor/gi,t)}function wf(e,t){return Fr(e)&&(e=xf(e,t)),e}async function Mn(e,t,n,r,i){let o=await Ve(),s={...n,...Ur(vs[t],n),...Ur(r,n)};if(t==="img"){let[a,u,l]=await xt(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),p=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),d=s.width||i.width,h=s.height||i.height,m=typeof d=="number"&&typeof h=="number";m&&(d-=c,h-=p),d===void 0&&h===void 0?(d="100%",e.setAspectRatio(1/f)):d===void 0?typeof h=="number"?d=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof d=="number"?h=d*f:e.setAspectRatio(1/f)),s.width=m?d+c:d,s.height=m?h+p:h,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=yt(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=R(c,n.fontSize,1,n),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=R(f,n.fontSize,1,n),c=f*l):(typeof f<"u"&&(f=R(f,n.fontSize,1,n)||f),typeof c<"u"&&(c=R(c,n.fontSize,1,n)||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(le(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(le(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(le(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(le(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(le(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(le(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(le(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(Ye(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(Fe(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Fe(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Fe(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Fe(s.minWidth,"minWidth")),e.setOverflow(le(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Ye(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Ye(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Ye(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Ye(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(le(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(le(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,Fe(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Fe(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Fe(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Fe(s.right,"right")),typeof s.height<"u"?e.setHeight(Ye(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Ye(s.width,"width")):e.setWidthAuto(),[s,Rn(s)]}var Dn=nt(require("escape-html"),1);var Is=[1,0,0,1,0,0];function Sf(e,t,n){let r=[...Is];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Is];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}r=Mt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Ft({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||Sf(i,n,r);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,c=e+l,p=t+f;a=Mt([1,0,0,1,c,p],Mt(u,[1,0,0,1,-c,-p])),u.__parent&&(a=Mt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function As({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Ft({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Nn({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:p,decorationShape:d},h){let m="";if(c&&(m=_("rect",{x:r,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 b={href:l,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+_("image",{...b,opacity:u!==1?u:void 0})+(d||"")+(n?"</g>":"")+m,""]}let w={x:r,y:i,width:o,height:s,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-size":h.fontSize,"font-family":h.fontFamily,"letter-spacing":h.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0,"stroke-width":h.WebkitTextStrokeWidth?`${h.WebkitTextStrokeWidth}px`:void 0,stroke:h.WebkitTextStrokeWidth?h.WebkitTextStrokeColor:void 0,"stroke-linejoin":h.WebkitTextStrokeWidth?"round":void 0,"paint-order":h.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+_("text",{...w,fill:h.color,opacity:u!==1?u:void 0},(0,Dn.default)(t))+(d||"")+(n?"</g>":"")+m,p?_("text",w,(0,Dn.default)(t)):""]}function _f(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var Gr=1.1;function Rs({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,o="",s="",a=0,u=t,l=0,f=n;for(let c=0;c<i;c++){let p=r.shadowRadius[c]*r.shadowRadius[c]/4;a=Math.min(r.shadowOffset[c].width-p,a),u=Math.max(r.shadowOffset[c].width+p+t,u),l=Math.min(r.shadowOffset[c].height-p,l),f=Math.max(r.shadowOffset[c].height+p+n,f),o+=_("feDropShadow",{dx:r.shadowOffset[c].width,dy:r.shadowOffset[c].height,stdDeviation:r.shadowRadius[c]/2,"flood-color":r.shadowColor[c],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${c}`}:{}}),i>1&&(s=_("feMergeNode",{in:`satori_s-${e}-result-${c}`})+s)}return _("filter",{id:`satori_s-${e}`,x:(a/t*100*Gr).toFixed(2)+"%",y:(l/n*100*Gr).toFixed(2)+"%",width:((u-a)/t*100*Gr).toFixed(2)+"%",height:((f-l)/n*100*Gr).toFixed(2)+"%"},o+(s?_("feMerge",{},s):""))}function Ls({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),p=Math.min(-c-(f.inset?f.offsetX:0),0),d=Math.max(c+e-(f.inset?f.offsetX:0),e),h=Math.min(-c-(f.inset?f.offsetY:0),0),m=Math.max(c+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,T=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=_("mask",{id:b,maskUnits:"userSpaceOnUse"},_("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+T.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let y=T.replace(/d="([^"]+)"/,(v,x)=>'d="'+_f(x,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(v,x)=>'x="'+(parseFloat(x)+f.offsetX)+'"').replace(/y="([^"]+)"/,(v,x)=>'y="'+(parseFloat(x)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=_("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},y.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(y=_("g",{mask:`url(#${b}-neg)`},y)),l+=_("defs",{},_("filter",{id:w,x:`${p/e*100}%`,y:`${h/t*100}%`,width:`${(d-p)/e*100}%`,height:`${(m-h)/t*100}%`},_("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+_("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+_("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+_("g",{mask:`url(#${b})`,filter:`url(#${w})`,opacity:r},y),f.inset?a+=l:s+=l}return[s,a]}function Fn({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o},s){let{textDecorationColor:a,textDecorationStyle:u,textDecorationLine:l,fontSize:f,color:c}=s;if(!l||l==="none")return"";let p=Math.max(1,f*.1),d=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,h=u==="dashed"?`${p*1.2} ${p*2}`:u==="dotted"?`0 ${p*2}`:void 0,m=u==="double"?_("line",{x1:t,y1:d+p+1,x2:t+e,y2:d+p+1,stroke:a||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":u==="dotted"?"round":"square",transform:o}):"";return(i?`<g clip-path="url(#${i})">`:"")+_("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:a||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":u==="dotted"?"round":"square",transform:o})+m+(i?"</g>":"")}function Wn(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ot=Wn("U+0020"),$n=Wn("U+0009"),wt=Wn("U+2026");function Cs(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(l){if(o.has(l))return o.get(l);let f=e.measure(l,{fontSize:r,letterSpacing:i});return o.set(l,f),f}function a(l){let f=0;for(let c of l)t(c)?f+=r:f+=s(c);return f}function u(l){return a(ue(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Ms(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=kf(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Of(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=Ef(s,o),[p,d]=Tf(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:p,blockEllipsis:d}}function kf(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=ue(e,"word",n).map(r=>ue(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Tf(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,l=wt]=Pf(r);if(u)return[u,l]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&as(i)&&i>0?[i,wt]:n==="ellipsis"&&s==="hidden"&&!t?[1,wt]:[1/0]}function Ef(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=ls(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function Of(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,ot)),r&&(e=e.replace(/([ ]|\t)+/g,ot).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Pf(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var If=new Set([$n]);function Af(e){return If.has(e)}async function*qn(e,t){let n=await Ve(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:p,canLoadAdditionalAssets:d}=t,{textAlign:h,lineHeight:m,textWrap:w,fontSize:b,filter:T,tabSize:y=8,letterSpacing:v,_inheritedBackgroundClipTextPath:x,flexShrink:I}=r,{words:A,requiredBreaks:L,allowSoftWrap:H,allowBreakWord:ie,processedContent:ae,shouldCollapseTabsAndSpaces:fe,lineLimit:K,blockEllipsis:oe}=Ms(e,r,p),te=Rf(n,h);o.insertChild(te,o.getChildCount()),us(I)&&o.setFlexShrink(1);let W=s.getEngine(b,m,r,p),_e=d?ue(ae,"grapheme").filter(M=>!Af(M)&&!W.has(M)):[];yield _e.map(M=>({word:M,locale:p})),_e.length&&(W=s.getEngine(b,m,r,p));function Ie(M){return!!(c&&c[M])}let{measureGrapheme:he,measureGraphemeArray:Tr,measureText:et}=Cs(W,Ie,{fontSize:b,letterSpacing:v}),Pt=Fr(y)?R(y,b,1,r):he(ot)*y,Er=(M,$)=>{if(M.length===0)return{originWidth:0,endingSpacesWidth:0,text:M};let{index:J,tabCount:q}=Lf(M),Z=0;if(q>0){let ee=M.slice(0,J),V=M.slice(J+q),z=et(ee),Re=z+$;Z=(Pt===0?z:(Math.floor(Re/Pt)+q)*Pt)+et(V)}else Z=et(M);let B=M.trimEnd()===M?Z:et(M.trimEnd());return{originWidth:Z,endingSpacesWidth:Z-B,text:M}},C=[],me=[],dt=[],pt=[],It=[];function Or(M){let $=0,J=0,q=-1,Z=0,B=0,ee=0,V=0;C=[],dt=[0],pt=[],It=[];let z=0,Re=0;for(;z<A.length&&$<K;){let D=A[z],tt=L[z],ge=0,{originWidth:Ue,endingSpacesWidth:Cr,text:Ge}=Er(D,B);D=Ge,ge=Ue;let Y=Cr;tt&&ee===0&&(ee=W.height(D));let se=h==="justify",je=z&&B+ge>M+Y&&H;if(ie&&ge>M&&(!B||je||tt)){let ke=ue(D,"grapheme");A.splice(z,1,...ke),B>0&&(C.push(B-Re),me.push(V),$++,Z+=ee,B=0,ee=0,V=0,dt.push(1),q=-1),Re=Y;continue}if(tt||je)fe&&D===ot&&(ge=0),C.push(B-Re),me.push(V),$++,Z+=ee,B=ge,ee=ge?Math.round(W.height(D)):0,V=ge?Math.round(W.baseline(D)):0,dt.push(1),q=-1,tt||(J=Math.max(J,M));else{B+=ge;let ke=Math.round(W.height(D));ke>ee&&(ee=ke,V=Math.round(W.baseline(D))),se&&dt[dt.length-1]++}se&&q++,J=Math.max(J,B);let Mr=B-ge;if(ge===0)It.push({y:Z,x:Mr,width:0,line:$,lineIndex:q,isImage:!1});else{let ke=ue(D,"word");for(let Te=0;Te<ke.length;Te++){let Ee=ke[Te],He=0,rt=!1;Ie(Ee)?(He=b,rt=!0):He=he(Ee),pt.push(Ee),It.push({y:Z,x:Mr,width:He,line:$,lineIndex:q,isImage:rt}),Mr+=He}}z++,Re=Y}return B&&($<K&&(Z+=ee),$++,C.push(B),me.push(V)),{width:J,height:Z}}let At={width:0,height:0};te.setMeasureFunc(M=>{let{width:$,height:J}=Or(M);if(w==="balance"){let Z=$/2,B=$,ee=$;for(;Z+1<B;){ee=(Z+B)/2;let{height:z}=Or(ee);z>J?Z=ee:B=ee}Or(B);let V=Math.ceil(B);return At={width:V,height:J},{width:V,height:J}}if(w==="pretty"&&C[C.length-1]<$/3){let ee=$*.9,V=Or(ee);if(V.height<=J*1.3)return At={width:$,height:V.height},{width:$,height:V.height}}let q=Math.ceil($);return At={width:q,height:J},{width:q,height:J}});let[Fl,Wl]=yield,xn="",Pr="",Be=i._inheritedClipPathId,$o=i._inheritedMaskId,{left:qo,top:Bo,width:wn,height:$l}=te.getComputedLayout(),Ir=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),ht=Fl+qo,mt=Wl+Bo,{matrix:Ae,opacity:Ar}=As({left:qo,top:Bo,width:wn,height:$l,isInheritingTransform:u},r),gt="";if(r.textShadowOffset){let{textShadowColor:M,textShadowOffset:$,textShadowRadius:J}=r;gt=Rs({width:At.width,height:At.height,id:a},{shadowColor:M,shadowOffset:$,shadowRadius:J}),gt=_("defs",{},gt)}let Rt="",Rr="",zo="",Lr=-1,bt={},ze=null,Uo=0;for(let M=0;M<pt.length;M++){let $=It[M],J=It[M+1];if(!$)continue;let q=pt[M],Z=null,B=!1,ee=c?c[q]:null,V=$.y,z=$.x,Re=$.width,D=$.line;if(D===Lr)continue;let tt=!1;if(C.length>1){let Y=wn-C[D];if(h==="right"||h==="end")z+=Y;else if(h==="center")z+=Y/2;else if(h==="justify"&&D<C.length-1){let se=dt[D],je=se>1?Y/(se-1):0;z+=je*$.lineIndex,tt=!0}z=Math.round(z)}let ge=me[D],Ue=W.baseline(q),Cr=W.height(q),Ge=ge-Ue;if(bt[D]||(bt[D]=[z,mt+V+Ge,Ue,tt?wn:C[D]]),K!==1/0){let ke=function(Te,Ee){let He=ue(Ee,"grapheme",p),rt="",jo=0;for(let Ho of He){let Vo=Te+Tr([rt+Ho]);if(rt&&Vo+se>Ir)break;rt+=Ho,jo=Vo}return{subset:rt,resolvedWidth:jo}},Y=oe,se=he(oe);se>Ir&&(Y=wt,se=he(Y));let je=he(ot),Go=D<C.length-1;if(D+1===K&&(Go||C[D]>Ir)){if(z+Re+se+je>Ir){let{subset:Te,resolvedWidth:Ee}=ke(z,q);q=Te+Y,Lr=D,bt[D][2]=Ee,B=!0}else if(J&&J.line!==D)if(h==="center"){let{subset:Te,resolvedWidth:Ee}=ke(z,q);q=Te+Y,Lr=D,bt[D][2]=Ee,B=!0}else{let Te=pt[M+1],{subset:Ee,resolvedWidth:He}=ke(Re+z,Te);q=q+Ee+Y,Lr=D,bt[D][2]=He,B=!0}}}if(ee)V+=0;else if(f){if(!q.includes($n)&&!os.includes(q)&&pt[M+1]&&J&&!J.isImage&&V===J.y&&!B){ze===null&&(Uo=z),ze=ze===null?q:ze+q;continue}let Y=ze===null?q:ze+q,se=ze===null?z:Uo,je=$.width+z-se;Z=W.getSVG(Y.replace(/(\t)+/g,""),{fontSize:b,left:ht+se,top:mt+V+Ue+Ge,letterSpacing:v}),ze=null,l&&(zo+=_("rect",{x:ht+se,y:mt+V+Ge,width:je,height:Cr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0})+_("line",{x1:ht+z,x2:ht+z+$.width,y1:mt+V+Ge+Ue,y2:mt+V+Ge+Ue,stroke:"#14c000","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else V+=Ue+Ge;if(r.textDecorationLine){let Y=bt[D];Y&&!Y[4]&&(Rt+=Fn({left:ht+Y[0],top:Y[1],width:Y[3],ascender:Y[2],clipPathId:Be,matrix:Ae},r),Y[4]=1)}if(Z!==null)Rr+=Z+" ";else{let[Y,se]=Nn({content:q,filter:gt,id:a,left:ht+z,top:mt+V,width:Re,height:Cr,matrix:Ae,opacity:Ar,image:ee,clipPathId:Be,debug:l,shape:!!x,decorationShape:Rt},r);xn+=Y,Pr+=se,Rt=""}if(B)break}if(Rr){let M=r.color!=="transparent"&&Ar!==0?`<g ${$o?`mask="url(#${$o})"`:""} ${Be?`clip-path="url(#${Be})"`:""}>`+_("path",{fill:r.color,d:Rr,transform:Ae||void 0,opacity:Ar!==1?Ar:void 0,style:T?`filter:${T}`: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>":"";x&&(Pr=_("path",{d:Rr,transform:Ae||void 0})),xn+=(gt?gt+_("g",{filter:`url(#satori_s-${a})`},M+Rt):M+Rt)+zo}return Pr&&(r._inheritedBackgroundClipTextPath.value+=Pr),xn}function Rf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(le(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function Lf(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Ns=require("css-gradient-parser");var Ds=nt(require("parse-css-color"),1);function jr(e,t,n,r,i){let o=[];for(let l of t){let{color:f}=l;if(!o.length&&(o.push({offset:0,color:f}),!l.offset||l.offset.value==="0"))continue;let c=typeof l.offset>"u"?void 0:l.offset.unit==="%"?+l.offset.value/100:Number(R(`${l.offset.value}${l.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:c,color:f})}o.length||o.push({offset:0,color:"transparent"});let s=o[o.length-1];s.offset!==1&&(typeof s.offset>"u"?s.offset=1:r?o[o.length-1]={offset:1,color:s.color}:o.push({offset:1,color:s.color}));let a=0,u=1;for(let l=0;l<o.length;l++)if(typeof o[l].offset>"u"){for(u<l&&(u=l);typeof o[u].offset>"u";)u++;o[l].offset=(o[u].offset-o[a].offset)/(u-a)*(l-a)+o[a].offset}else a=l;return i==="mask"?o.map(l=>{let f=(0,Ds.default)(l.color);return f?f.alpha===0?{...l,color:"rgba(0, 0, 0, 1)"}:{...l,color:`rgba(255, 255, 255, ${f.alpha})`}:l}):o}function Fs({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){let f=(0,Ns.parseLinearGradient)(o),[c,p]=s,d=o.startsWith("repeating"),h,m,w;if(f.orientation.type==="directional")h=Mf(f.orientation.value),m=Math.sqrt(Math.pow((h.x2-h.x1)*c,2)+Math.pow((h.y2-h.y1)*p,2));else if(f.orientation.type==="angular"){let{length:x,...I}=Df(On(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,p);m=x,h=I}w=d?Nf(f.stops,m,h,u):h;let b=jr(d?Cf(f.stops,m):m,f.stops,u,d,l),T=`satori_bi${e}`,y=`satori_pattern_${e}`,v=_("pattern",{id:y,x:a[0]/t,y:a[1]/n,width:r?c/t:"1",height:i?p/n:"1",patternUnits:"objectBoundingBox"},_("linearGradient",{id:T,...w,spreadMethod:d?"repeat":"pad"},b.map(x=>_("stop",{offset:(x.offset??0)*100+"%","stop-color":x.color})).join(""))+_("rect",{x:0,y:0,width:c,height:p,fill:`url(#${T})`}));return[y,v]}function Cf(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function Mf(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function Df(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,c,p=d=>{if(d===0){i=0,o=n,s=0,a=0,u=n;return}else if(d===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(d>0&&d<Math.PI/2){i=(r*t/2/Math.tan(d)-n/2)/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(d)-n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f+n,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else if(d>Math.PI/2&&d<Math.PI){i=(n/2+r*t/2/Math.tan(d))/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),f=(t/2/Math.tan(d)+n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else d>=Math.PI&&(p(d-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return p(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function Nf(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:R(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:R(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,p=(o-i)*l+i,d=(a-s)*l+s;return{x1:f,y1:c,x2:p,y2:d}}var $s=require("css-gradient-parser");function qs({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){var ie;let{shape:f,stops:c,position:p,size:d}=(0,$s.parseRadialGradient)(o),[h,m]=s,w=h/2,b=m/2,T=Ff(p.x,p.y,h,m,u.fontSize,u);w=T.x,b=T.y;let y=jr(t,c,u,!1,l),v=`satori_radial_${e}`,x=`satori_pattern_${e}`,I=`satori_mask_${e}`,A=Wf(f,d,u.fontSize,{x:w,y:b},[h,m],u),L=_("pattern",{id:x,x:a[0]/t,y:a[1]/n,width:r?h/t:"1",height:i?m/n:"1",patternUnits:"objectBoundingBox"},_("radialGradient",{id:v},y.map(ae=>_("stop",{offset:ae.offset||0,"stop-color":ae.color})).join(""))+_("mask",{id:I},_("rect",{x:0,y:0,width:h,height:m,fill:"#fff"}))+_("rect",{x:0,y:0,width:h,height:m,fill:((ie=y.at(-1))==null?void 0:ie.color)||"transparent"})+_(f,{cx:w,cy:b,width:h,height:m,...A,fill:`url(#${v})`,mask:`url(#${I})`}));return[x,L]}function Ff(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Ws(e.value,n,r,"x")):s.x=R(`${e.value.value}${e.value.unit}`,i,n,o,!0)||n/2,t.type==="keyword"?Object.assign(s,Ws(t.value,n,r,"y")):s.y=R(`${t.value.value}${t.value.unit}`,i,r,o,!0)||r/2,s}function Ws(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function Wf(e,t,n,r,i,o){let[s,a]=i,{x:u,y:l}=r,f={},c=0,p=0;if($f(t)){if(t.some(d=>d.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"?{r:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0))}:{rx:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0)),ry:Number(R(`${t[1].value.value}${t[1].value.unit}`,n,a,o,!0))}}switch(t[0].value){case"farthest-corner":c=Math.max(Math.abs(s-u),Math.abs(u)),p=Math.max(Math.abs(a-l),Math.abs(l));break;case"closest-corner":c=Math.min(Math.abs(s-u),Math.abs(u)),p=Math.min(Math.abs(a-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.max(Math.abs(s-u),Math.abs(u)),f.ry=Math.max(Math.abs(a-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.min(Math.abs(s-u),Math.abs(u)),f.ry=Math.min(Math.abs(a-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(c*c+p*p);else{let d=p!==0?c/p:1;c===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(c*c+p*p*d*d)/d,f.rx=f.ry*d)}return f}function $f(e){return!e.some(t=>t.type==="keyword")}function qf(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Bn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Ne(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>qf(o,[t,n][s]))}async function Wt({id:e,width:t,height:n,left:r,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",p=u==="repeat-y"||u==="repeat",d=Bn(s,{x:t,y:n,defaultX:t,defaultY:n}),h=Bn(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Fs({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("radial-gradient("))return qs({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("url(")){let m=Bn(s,{x:t,y:n,defaultX:0,defaultY:0}),[w,b,T]=await xt(o.slice(4,-1)),y=f==="mask"?b||m[0]:m[0]||b,v=f==="mask"?T||m[1]:m[1]||T;return[`satori_bi${e}`,_("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:h[0]+r,y:h[1]+i,width:c?y:"100%",height:p?v:"100%"},_("image",{x:0,y:0,width:y,height:v,preserveAspectRatio:"none",href:w}))]}throw new Error(`Invalid background image: "${o}"`)}function Bf([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 Hr(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Vr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Yr(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(R(o[0],r,t,i,!0),t),Math.min(R(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Xr=e=>e&&e[0]!==0&&e[1]!==0;function Bs({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[_("clipPath",{id:u},_(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Xe({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c,p,d,h;if([c,s]=Yr(s,n,r,f,i),[p,a]=Yr(a,n,r,f,i),[d,u]=Yr(u,n,r,f,i),[h,l]=Yr(l,n,r,f,i),!o&&!Xr(s)&&!Xr(a)&&!Xr(u)&&!Xr(l))return"";s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=Hr(s[0],a[0],n),[u[0],l[0]]=Hr(u[0],l[0],n),[s[1],u[1]]=Hr(s[1],u[1],r),[a[1],l[1]]=Hr(a[1],l[1],r),c&&Vr(s),p&&Vr(a),d&&Vr(u),h&&Vr(l);let m=[];m[0]=[a,a],m[1]=[l,[-l[0],l[1]]],m[2]=[u,[-u[0],-u[1]]],m[3]=[s,[s[0],-s[1]]];let w=`h${n-s[0]-a[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,b=`v${r-a[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,T=`h${l[0]+u[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,y=`v${u[1]+s[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(o){let x=function(fe){let K=Bf([s,a,l,u][fe]);return fe===0?[[e+s[0]-K,t+s[1]-K],[e+s[0],t]]:fe===1?[[e+n-a[0]+K,t+a[1]-K],[e+n,t+a[1]]]:fe===2?[[e+n-l[0]+K,t+r-l[1]+K],[e+n-l[0],t+r]]:[[e+u[0]-K,t+r-u[1]+K],[e,t+r-u[1]]]},v=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(v===-1)v=0;else for(;!o[v];)v=(v+1)%4;let I="",A=x(v),L=`M${A[0]} A${m[(v+3)%4][0]} 0 0 1 ${A[1]}`,H=0;for(;H<4&&o[(v+H)%4];H++)I+=L+" ",L=[w,b,T,y][(v+H)%4];let ie=(v+H)%4;I+=L.split(" ")[0];let ae=x(ie);return I+=` A${m[(ie+3)%4][0]} 0 0 1 ${ae[0]}`,I}return`M${e+s[0]},${t} ${w} ${b} ${T} ${y}`}function zs(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Us({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[_("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},_(r,{x:i,y:o,width:s,height:a,d:n||void 0})),f]}function $t({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(d=>a[d+"Width"]))return"";let l="",f=0;for(;f>0&&zs(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],p=[];for(let d=0;d<4;d++){let h=(f+d)%4,m=(f+d+1)%4,w=u[h],b=u[m];if(c[h]=!0,p=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!zs(w,b,a)){let T=(p[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);T&&(l+=_("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":T*2,"stroke-dasharray":!o&&p[1]==="dashed"?T*2+" "+T:void 0,d:Xe({left:e,top:t,width:n,height:r},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let d=(p[0]||0)+(o&&!s&&a[p[3].replace("border","padding")]||0);d&&(l+=_("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":d*2,"stroke-dasharray":!o&&p[1]==="dashed"?d*2+" "+d:void 0,d:Xe({left:e,top:t,width:n,height:r},a,c)}))}return l}function zn({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),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),p={x:t+u,y:n+l,width:r-u-f,height:i-l-c};return _("mask",{id:e},_("rect",{...p,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+$t({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var Un=require("css-to-react-native"),qt={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Hs({width:e,height:t},n,r){function i(l){let f=l.match(qt.circle);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(w=>w.trim()),{x:h,y:m}=js(d,e,t);return{type:"circle",r:R(p,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:R(h,r.fontSize,e,r,!0),cy:R(m,r.fontSize,t,r,!0)}}function o(l){let f=l.match(qt.ellipse);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(T=>T.trim()),[h,m]=p.split(" "),{x:w,y:b}=js(d,e,t);return{type:"ellipse",rx:R(h||"50%",r.fontSize,e,r,!0),ry:R(m||"50%",r.fontSize,t,r,!0),cx:R(w,r.fontSize,e,r,!0),cy:R(b,r.fontSize,t,r,!0)}}function s(l){let f=l.match(qt.path);if(!f)return null;let[c,p]=Gs(f[1]);return{type:"path",d:p,"fill-rule":c}}function a(l){let f=l.match(qt.polygon);if(!f)return null;let[c,p]=Gs(f[1]);return{type:"polygon","fill-rule":c,points:p.split(",").map(d=>d.split(" ").map((h,m)=>R(h,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function u(l){let f=l.match(qt.inset);if(!f)return null;let[c,p]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),d=(0,Un.getStylesForProperty)("borderRadius",p,!0),h=Object.values(d).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),m=Object.values((0,Un.getStylesForProperty)("margin",c,!0)).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),w=m[3],b=m[0],T=e-(m[1]+m[3]),y=t-(m[0]+m[2]);return h.some(v=>v>0)?{type:"path",d:Xe({left:w,top:b,width:T,height:y},{...n,...d})}:{type:"rect",x:w,y:b,width:T,height:y}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function Gs(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function js(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Qr(e){return`satori_cp-${e}`}function Vs(e){return`url(#${Qr(e)})`}function Ys(e,t,n){if(t.clipPath==="none")return"";let r=Hs(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return _("clipPath",{id:Qr(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},_(s,a))}return""}function Gn({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",p=l.clipPath&&l.clipPath!=="none"?Ys({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let h=p?`satori_ocp-${s}`:Qr(s);c=_("clipPath",{id:h,"clip-path":a},_(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let d=zn({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},l);return p+c+d}var zf=e=>`satori_mi-${e}`;async function jn(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=zf(a),c="";for(let p=0;p<l;p++){let d=u[p],[h,m]=await Wt({id:`${f}-${p}`,left:r,top:i,width:o,height:s},d,n,"mask");c+=m+_("rect",{x:r,y:i,width:o,height:s,fill:`url(#${h})`})}return c=_("mask",{id:f},c),[f,c]}async function Bt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",p="",d="",h=[],m=1,w="";u.backgroundColor&&h.push(u.backgroundColor),u.opacity!==void 0&&(m=+u.opacity),u.transform&&(p=Ft({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let b="";if(u.backgroundImage){let te=[];for(let W=0;W<u.backgroundImage.length;W++){let _e=u.backgroundImage[W],Ie=await Wt({id:e+"_"+W,width:r,height:i,left:t,top:n},_e,l);Ie&&te.unshift(Ie)}for(let W of te)h.push(`url(#${W[0]})`),d+=W[1],W[2]&&(b+=W[2])}let[T,y]=await jn({id:e,left:t,top:n,width:r,height:i},u,l);d+=y;let v=T?`url(#${T})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,x=Xe({left:t,top:n,width:r,height:i},u);x&&(c="path");let I=u._inheritedClipPathId;a&&(w=_("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:A,filter:L}=u,H=A==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?Vs(e):void 0,ie=Gn({left:t,top:n,width:r,height:i,path:x,id:e,matrix:p,currentClipPath:H,src:s},u,l),ae=h.map(te=>_(c,{x:t,y:n,width:r,height:i,fill:te,d:x||void 0,transform:p||void 0,"clip-path":u.transform?void 0:H,style:L?`filter:${L}`:void 0,mask:u.transform?void 0:v})).join(""),fe=Us({id:e,left:t,top:n,width:r,height:i,currentClipPathId:I,borderPath:x,borderType:c},u),K;if(f){let te=(u.borderLeftWidth||0)+(u.paddingLeft||0),W=(u.borderTopWidth||0)+(u.paddingTop||0),_e=(u.borderRightWidth||0)+(u.paddingRight||0),Ie=(u.borderBottomWidth||0)+(u.paddingBottom||0),he=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";u.transform&&(K=Bs({id:e,borderRadiusPath:x,borderType:c,left:t,top:n,width:r,height:i},u)),ae+=_("image",{x:t+te,y:n+W,width:r-te-_e,height:i-W-Ie,href:s,preserveAspectRatio:he,transform:p||void 0,style:L?`filter:${L}`:void 0,"clip-path":u.transform?K?`url(#${K[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:T?`url(#${T})`:`url(#satori_om-${e})`})}if(fe){d+=fe[0];let te=fe[1];ae+=$t({left:t,top:n,width:r,height:i,props:{transform:p||void 0,"clip-path":`url(#${te})`}},u)}let oe=Ls({width:r,height:i,id:e,opacity:m,shape:_(c,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:x||void 0,transform:p||void 0,"clip-path":H,mask:v})},u);return(d?_("defs",{},d):"")+(oe?oe[0]:"")+(K?K[0]:"")+ie+(m!==1?`<g opacity="${m}">`:"")+(u.transform&&(H||v)?`<g${H?` clip-path="${H}"`:""}${v?` mask="${v}"`:""}>`:"")+(b||ae)+(u.transform&&(H||v)?"</g>":"")+(m!==1?"</g>":"")+(oe?oe[1]:"")+w}var Qs=String.raw,Xs=Qs`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Ks=()=>new RegExp(Qs`\p{RI}{2}|(?)${Xs}(?:\u200D${Xs})*`,"gu");var Uf=new RegExp(Ks(),"u"),Hn={emoji:Uf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Vn={"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},Kr=Object.keys({...Vn,...Hn});function Js(e){return Kr.includes(e)}function Zs(e,t){for(let r of Object.keys(Hn))if(Hn[r].test(e))return[r];let n=Object.keys(Vn).filter(r=>Vn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function ea(e){if(e)return Kr.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*zt(e,t){var Er;let n=await Ve(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!vt(e)||typeof e.type=="function"){let C;if(!vt(e))C=qn(String(e),t),yield(await C.next()).value;else{if(rs(e.type))throw new Error("Class component is not supported.");C=zt(await e.type(e.props),t),yield(await C.next()).value}await C.next();let me=yield;return(await C.next(me)).value}let{type:d,props:h}=e;if(h&&ns(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:w,tw:b,lang:T=u}=h||{},y=ea(T);if(b){let C=p(b,m);m=Object.assign(C,m)}let v=n.Node.create();o.insertChild(v,o.getChildCount());let[x,I]=await Mn(v,d,i,m,h),A=x.transform===i.transform;if(A||(x.transform.__parent=i.transform),(x.overflow==="hidden"||x.clipPath&&x.clipPath!=="none")&&(I._inheritedClipPathId=`satori_cp-${r}`,I._inheritedMaskId=`satori_om-${r}`),x.maskImage&&(I._inheritedMaskId=`satori_mi-${r}`),x.backgroundClip==="text"){let C={value:""};I._inheritedBackgroundClipTextPath=C,x._inheritedBackgroundClipTextPath=C}let L=is(w),H=[],ie=0,ae=[];for(let C of L){let me=zt(C,{id:r+"-"+ie++,parentStyle:x,inheritedStyle:I,isInheritingTransform:!0,parent:v,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:y,getTwStyles:p,onNodeDetected:t.onNodeDetected});c?ae.push(...(await me.next()).value||[]):await me.next(),H.push(me)}yield ae;for(let C of H)await C.next();let[fe,K]=yield,{left:oe,top:te,width:W,height:_e}=v.getComputedLayout();oe+=fe,te+=K;let Ie="",he="",Tr="",{children:et,...Pt}=h;if((Er=t.onNodeDetected)==null||Er.call(t,{left:oe,top:te,width:W,height:_e,type:d,props:Pt,key:e.key,textContent:vt(et)?void 0:et}),d==="img"){let C=x.__src;he=await Bt({id:r,left:oe,top:te,width:W,height:_e,src:C,isInheritingTransform:A,debug:a},x,I)}else if(d==="svg"){let C=x.color,me=await bs(e,C);he=await Bt({id:r,left:oe,top:te,width:W,height:_e,src:me,isInheritingTransform:A,debug:a},x,I)}else{let C=m==null?void 0:m.display;if(d==="div"&&w&&typeof w!="string"&&C!=="flex"&&C!=="none"&&C!=="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 Bt({id:r,left:oe,top:te,width:W,height:_e,isInheritingTransform:A,debug:a},x,I)}for(let C of H)Ie+=(await C.next([oe,te])).value;return x._inheritedBackgroundClipTextPath&&(Tr+=_("clipPath",{id:`satori_bct-${r}`,"clip-path":x._inheritedClipPathId?`url(#${x._inheritedClipPathId})`:void 0},x._inheritedBackgroundClipTextPath.value)),Tr+he+Ie}var Jr=nt(require("@shuding/opentype.js"),1);var ta="unknown";function Gf(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var Ut=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,l,f]=i[s];Gf(n,r,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Js(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kr.join(", ")}.`);let s=o??ta,a=Jr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let c=u.call(a,f);return c===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),c},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${s}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(y=>y.toLowerCase());let a=[];r.forEach(y=>{let v=this.get({name:y,weight:i,style:o});if(v){a.push(v);return}let x=this.get({name:y+"_unknown",weight:i,style:o});if(x){a.push(x);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let y of u)if(!r.includes(y))if(s){let v=jf(y);v?v===s?l.push(this.get({name:y,weight:i,style:o})):f.push(this.get({name:y,weight:i,style:o})):c.push(this.get({name:y,weight:i,style:o}))}else c.push(this.get({name:y,weight:i,style:o}));let p=new Map,d=(y,v=!0)=>{let x=[...a,...c,...l,...v?f:[]];if(typeof y>"u")return v?x[x.length-1]:void 0;let I=y.charCodeAt(0);if(p.has(I))return p.get(I);let A=x.find((L,H)=>!!L.charToGlyphIndex(y)||v&&H===x.length-1);return A&&p.set(I,A),A},h=(y,v=!1)=>{var I,A;return((v?(A=(I=y.tables)==null?void 0:I.os2)==null?void 0:A.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},m=(y,v=!1)=>{var I,A;return((v?(A=(I=y.tables)==null?void 0:I.os2)==null?void 0:A.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},w=(y,v=!1)=>{var x,I;if(typeof n=="string"&&n==="normal"){let A=(v?(I=(x=y.tables)==null?void 0:x.os2)==null?void 0:I.sTypoLineGap:0)||0;return h(y,v)-m(y,v)+A/y.unitsPerEm*t}else if(typeof n=="number")return t*n},b=y=>d(y,!1);return{has:y=>{if(y===`
|
|
5
|
+
in CSS rule \`${s}: ${a}\`.${Ss(s)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,Ts.parseElementStyle)(n);n.backgroundImage=i}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=ws(n));let r=vf(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Cn(n.transformOrigin,r));for(let i in n){let o=n[i];if(i==="lineHeight")typeof o=="string"&&o!=="normal"&&(o=n[i]=R(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=R(o,r,r,t);typeof s<"u"&&(n[i]=s),o=n[i]}if(typeof o=="string"||typeof o=="object"){let s=Ps(o);s&&(n[i]=s),o=n[i]}}if(i==="opacity"&&typeof o=="number"&&(n.opacity=o*t.opacity),i==="transform"){let s=o;for(let a of s){let u=Object.keys(a)[0],l=a[u],f=typeof l=="string"?R(l,r,r,t)??l:l;a[u]=f}}if(i==="textShadowRadius"){let s=o;n.textShadowRadius=s.map(a=>R(a,r,0,t,!1))}if(i==="textShadowOffset"){let s=o;n.textShadowOffset=s.map(({height:a,width:u})=>({height:R(a,r,0,t,!1),width:R(u,r,0,t,!1)}))}}return n}function vf(e,t){if(typeof e=="number")return e;try{let n=new Ne(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function ks(e){if(e.startsWith("hsl")){let t=(0,Os.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function yf(e,t){return e&&e.toLowerCase()!=="currentcolor"?ks(e):ks(t)}function xf(e,t){return e.replace(/currentcolor/gi,t)}function wf(e,t){return Fr(e)&&(e=xf(e,t)),e}async function Mn(e,t,n,r,i){let o=await Ve(),s={...n,...Ur(vs[t],n),...Ur(r,n)};if(t==="img"){let[a,u,l]=await xt(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),p=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),d=s.width||i.width,h=s.height||i.height,m=typeof d=="number"&&typeof h=="number";m&&(d-=c,h-=p),d===void 0&&h===void 0?(d="100%",e.setAspectRatio(1/f)):d===void 0?typeof h=="number"?d=h/f:e.setAspectRatio(1/f):h===void 0&&(typeof d=="number"?h=d*f:e.setAspectRatio(1/f)),s.width=m?d+c:d,s.height=m?h+p:h,s.__src=a}if(t==="svg"){let a=i.viewBox||i.viewbox,u=yt(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=R(c,n.fontSize,1,n),f=c/l):typeof c>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?c=parseInt(f)*l+"%":(f=R(f,n.fontSize,1,n),c=f*l):(typeof f<"u"&&(f=R(f,n.fontSize,1,n)||f),typeof c<"u"&&(c=R(c,n.fontSize,1,n)||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(le(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(le(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(le(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(le(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(le(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(le(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(le(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(Ye(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(Fe(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Fe(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Fe(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Fe(s.minWidth,"minWidth")),e.setOverflow(le(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,Ye(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,Ye(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,Ye(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,Ye(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(le(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(le(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,Fe(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Fe(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Fe(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Fe(s.right,"right")),typeof s.height<"u"?e.setHeight(Ye(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(Ye(s.width,"width")):e.setWidthAuto(),[s,Rn(s)]}var Dn=nt(require("escape-html"),1);var Is=[1,0,0,1,0,0];function Sf(e,t,n){let r=[...Is];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...Is];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}r=Mt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Ft({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||Sf(i,n,r);let u=i;if(o)a=u;else{let l=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,f=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,c=e+l,p=t+f;a=Mt([1,0,0,1,c,p],Mt(u,[1,0,0,1,-c,-p])),u.__parent&&(a=Mt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function As({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=Ft({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Nn({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:l,clipPathId:f,debug:c,shape:p,decorationShape:d},h){let m="";if(c&&(m=_("rect",{x:r,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 b={href:l,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+_("image",{...b,opacity:u!==1?u:void 0})+(d||"")+(n?"</g>":"")+m,""]}let w={x:r,y:i,width:o,height:s,"font-weight":h.fontWeight,"font-style":h.fontStyle,"font-size":h.fontSize,"font-family":h.fontFamily,"letter-spacing":h.letterSpacing||void 0,transform:a||void 0,"clip-path":f?`url(#${f})`:void 0,style:h.filter?`filter:${h.filter}`:void 0,"stroke-width":h.WebkitTextStrokeWidth?`${h.WebkitTextStrokeWidth}px`:void 0,stroke:h.WebkitTextStrokeWidth?h.WebkitTextStrokeColor:void 0,"stroke-linejoin":h.WebkitTextStrokeWidth?"round":void 0,"paint-order":h.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+_("text",{...w,fill:h.color,opacity:u!==1?u:void 0},(0,Dn.default)(t))+(d||"")+(n?"</g>":"")+m,p?_("text",w,(0,Dn.default)(t)):""]}function _f(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var Gr=1.1;function Rs({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,o="",s="",a=0,u=t,l=0,f=n;for(let c=0;c<i;c++){let p=r.shadowRadius[c]*r.shadowRadius[c]/4;a=Math.min(r.shadowOffset[c].width-p,a),u=Math.max(r.shadowOffset[c].width+p+t,u),l=Math.min(r.shadowOffset[c].height-p,l),f=Math.max(r.shadowOffset[c].height+p+n,f),o+=_("feDropShadow",{dx:r.shadowOffset[c].width,dy:r.shadowOffset[c].height,stdDeviation:r.shadowRadius[c]/2,"flood-color":r.shadowColor[c],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${c}`}:{}}),i>1&&(s=_("feMergeNode",{in:`satori_s-${e}-result-${c}`})+s)}return _("filter",{id:`satori_s-${e}`,x:(a/t*100*Gr).toFixed(2)+"%",y:(l/n*100*Gr).toFixed(2)+"%",width:((u-a)/t*100*Gr).toFixed(2)+"%",height:((f-l)/n*100*Gr).toFixed(2)+"%"},o+(s?_("feMerge",{},s):""))}function Ls({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let l="",f=o.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let c=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),p=Math.min(-c-(f.inset?f.offsetX:0),0),d=Math.max(c+e-(f.inset?f.offsetX:0),e),h=Math.min(-c-(f.inset?f.offsetY:0),0),m=Math.max(c+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,T=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=_("mask",{id:b,maskUnits:"userSpaceOnUse"},_("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+T.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let y=T.replace(/d="([^"]+)"/,(v,x)=>'d="'+_f(x,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(v,x)=>'x="'+(parseFloat(x)+f.offsetX)+'"').replace(/y="([^"]+)"/,(v,x)=>'y="'+(parseFloat(x)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=_("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},y.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(y=_("g",{mask:`url(#${b}-neg)`},y)),l+=_("defs",{},_("filter",{id:w,x:`${p/e*100}%`,y:`${h/t*100}%`,width:`${(d-p)/e*100}%`,height:`${(m-h)/t*100}%`},_("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+_("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+_("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+_("g",{mask:`url(#${b})`,filter:`url(#${w})`,opacity:r},y),f.inset?a+=l:s+=l}return[s,a]}function Fn({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o},s){let{textDecorationColor:a,textDecorationStyle:u,textDecorationLine:l,fontSize:f,color:c}=s;if(!l||l==="none")return"";let p=Math.max(1,f*.1),d=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,h=u==="dashed"?`${p*1.2} ${p*2}`:u==="dotted"?`0 ${p*2}`:void 0,m=u==="double"?_("line",{x1:t,y1:d+p+1,x2:t+e,y2:d+p+1,stroke:a||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":u==="dotted"?"round":"square",transform:o}):"";return(i?`<g clip-path="url(#${i})">`:"")+_("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:a||c,"stroke-width":p,"stroke-dasharray":h,"stroke-linecap":u==="dotted"?"round":"square",transform:o})+m+(i?"</g>":"")}function Wn(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ot=Wn("U+0020"),$n=Wn("U+0009"),wt=Wn("U+2026");function Cs(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(l){if(o.has(l))return o.get(l);let f=e.measure(l,{fontSize:r,letterSpacing:i});return o.set(l,f),f}function a(l){let f=0;for(let c of l)t(c)?f+=r:f+=s(c);return f}function u(l){return a(ue(l,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function Ms(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=kf(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Of(e,i),{words:l,requiredBreaks:f,allowBreakWord:c}=Ef(s,o),[p,d]=Tf(t,u);return{words:l,requiredBreaks:f,allowSoftWrap:u,allowBreakWord:c,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:p,blockEllipsis:d}}function kf(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=ue(e,"word",n).map(r=>ue(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Tf(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,l=wt]=Pf(r);if(u)return[u,l]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&as(i)&&i>0?[i,wt]:n==="ellipsis"&&s==="hidden"&&!t?[1,wt]:[1/0]}function Ef(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=ls(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function Of(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,ot)),r&&(e=e.replace(/([ ]|\t)+/g,ot).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Pf(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var If=new Set([$n]);function Af(e){return If.has(e)}async function*qn(e,t){let n=await Ve(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:c,locale:p,canLoadAdditionalAssets:d}=t,{textAlign:h,lineHeight:m,textWrap:w,fontSize:b,filter:T,tabSize:y=8,letterSpacing:v,_inheritedBackgroundClipTextPath:x,flexShrink:I}=r,{words:A,requiredBreaks:L,allowSoftWrap:H,allowBreakWord:ie,processedContent:ae,shouldCollapseTabsAndSpaces:fe,lineLimit:K,blockEllipsis:oe}=Ms(e,r,p),te=Rf(n,h);o.insertChild(te,o.getChildCount()),us(I)&&o.setFlexShrink(1);let W=s.getEngine(b,m,r,p),_e=d?ue(ae,"grapheme").filter(M=>!Af(M)&&!W.has(M)):[];yield _e.map(M=>({word:M,locale:p})),_e.length&&(W=s.getEngine(b,m,r,p));function Ie(M){return!!(c&&c[M])}let{measureGrapheme:he,measureGraphemeArray:Tr,measureText:et}=Cs(W,Ie,{fontSize:b,letterSpacing:v}),Pt=Fr(y)?R(y,b,1,r):he(ot)*y,Er=(M,$)=>{if(M.length===0)return{originWidth:0,endingSpacesWidth:0,text:M};let{index:J,tabCount:q}=Lf(M),Z=0;if(q>0){let ee=M.slice(0,J),V=M.slice(J+q),z=et(ee),Re=z+$;Z=(Pt===0?z:(Math.floor(Re/Pt)+q)*Pt)+et(V)}else Z=et(M);let B=M.trimEnd()===M?Z:et(M.trimEnd());return{originWidth:Z,endingSpacesWidth:Z-B,text:M}},C=[],me=[],dt=[],pt=[],It=[];function Or(M){let $=0,J=0,q=-1,Z=0,B=0,ee=0,V=0;C=[],dt=[0],pt=[],It=[];let z=0,Re=0;for(;z<A.length&&$<K;){let D=A[z],tt=L[z],ge=0,{originWidth:Ue,endingSpacesWidth:Cr,text:Ge}=Er(D,B);D=Ge,ge=Ue;let Y=Cr;tt&&ee===0&&(ee=W.height(D));let se=h==="justify",je=z&&B+ge>M+Y&&H;if(ie&&ge>M&&(!B||je||tt)){let ke=ue(D,"grapheme");A.splice(z,1,...ke),B>0&&(C.push(B-Re),me.push(V),$++,Z+=ee,B=0,ee=0,V=0,dt.push(1),q=-1),Re=Y;continue}if(tt||je)fe&&D===ot&&(ge=0),C.push(B-Re),me.push(V),$++,Z+=ee,B=ge,ee=ge?Math.round(W.height(D)):0,V=ge?Math.round(W.baseline(D)):0,dt.push(1),q=-1,tt||(J=Math.max(J,M));else{B+=ge;let ke=Math.round(W.height(D));ke>ee&&(ee=ke,V=Math.round(W.baseline(D))),se&&dt[dt.length-1]++}se&&q++,J=Math.max(J,B);let Mr=B-ge;if(ge===0)It.push({y:Z,x:Mr,width:0,line:$,lineIndex:q,isImage:!1});else{let ke=ue(D,"word");for(let Te=0;Te<ke.length;Te++){let Ee=ke[Te],He=0,rt=!1;Ie(Ee)?(He=b,rt=!0):He=he(Ee),pt.push(Ee),It.push({y:Z,x:Mr,width:He,line:$,lineIndex:q,isImage:rt}),Mr+=He}}z++,Re=Y}return B&&($<K&&(Z+=ee),$++,C.push(B),me.push(V)),{width:J,height:Z}}let At={width:0,height:0};te.setMeasureFunc(M=>{let{width:$,height:J}=Or(M);if(w==="balance"){let Z=$/2,B=$,ee=$;for(;Z+1<B;){ee=(Z+B)/2;let{height:z}=Or(ee);z>J?Z=ee:B=ee}Or(B);let V=Math.ceil(B);return At={width:V,height:J},{width:V,height:J}}if(w==="pretty"&&C[C.length-1]<$/3){let ee=$*.9,V=Or(ee);if(V.height<=J*1.3)return At={width:$,height:V.height},{width:$,height:V.height}}let q=Math.ceil($);return At={width:q,height:J},{width:q,height:J}});let[Fl,Wl]=yield,xn="",Pr="",Be=i._inheritedClipPathId,$o=i._inheritedMaskId,{left:qo,top:Bo,width:wn,height:$l}=te.getComputedLayout(),Ir=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),ht=Fl+qo,mt=Wl+Bo,{matrix:Ae,opacity:Ar}=As({left:qo,top:Bo,width:wn,height:$l,isInheritingTransform:u},r),gt="";if(r.textShadowOffset){let{textShadowColor:M,textShadowOffset:$,textShadowRadius:J}=r;gt=Rs({width:At.width,height:At.height,id:a},{shadowColor:M,shadowOffset:$,shadowRadius:J}),gt=_("defs",{},gt)}let Rt="",Rr="",zo="",Lr=-1,bt={},ze=null,Uo=0;for(let M=0;M<pt.length;M++){let $=It[M],J=It[M+1];if(!$)continue;let q=pt[M],Z=null,B=!1,ee=c?c[q]:null,V=$.y,z=$.x,Re=$.width,D=$.line;if(D===Lr)continue;let tt=!1;if(C.length>1){let Y=wn-C[D];if(h==="right"||h==="end")z+=Y;else if(h==="center")z+=Y/2;else if(h==="justify"&&D<C.length-1){let se=dt[D],je=se>1?Y/(se-1):0;z+=je*$.lineIndex,tt=!0}z=Math.round(z)}let ge=me[D],Ue=W.baseline(q),Cr=W.height(q),Ge=ge-Ue;if(bt[D]||(bt[D]=[z,mt+V+Ge,Ue,tt?wn:C[D]]),K!==1/0){let ke=function(Te,Ee){let He=ue(Ee,"grapheme",p),rt="",jo=0;for(let Ho of He){let Vo=Te+Tr([rt+Ho]);if(rt&&Vo+se>Ir)break;rt+=Ho,jo=Vo}return{subset:rt,resolvedWidth:jo}},Y=oe,se=he(oe);se>Ir&&(Y=wt,se=he(Y));let je=he(ot),Go=D<C.length-1;if(D+1===K&&(Go||C[D]>Ir)){if(z+Re+se+je>Ir){let{subset:Te,resolvedWidth:Ee}=ke(z,q);q=Te+Y,Lr=D,bt[D][2]=Ee,B=!0}else if(J&&J.line!==D)if(h==="center"){let{subset:Te,resolvedWidth:Ee}=ke(z,q);q=Te+Y,Lr=D,bt[D][2]=Ee,B=!0}else{let Te=pt[M+1],{subset:Ee,resolvedWidth:He}=ke(Re+z,Te);q=q+Ee+Y,Lr=D,bt[D][2]=He,B=!0}}}if(ee)V+=0;else if(f){if(!q.includes($n)&&!os.includes(q)&&pt[M+1]&&J&&!J.isImage&&V===J.y&&!B){ze===null&&(Uo=z),ze=ze===null?q:ze+q;continue}let Y=ze===null?q:ze+q,se=ze===null?z:Uo,je=$.width+z-se;Z=W.getSVG(Y.replace(/(\t)+/g,""),{fontSize:b,left:ht+se,top:mt+V+Ue+Ge,letterSpacing:v}),ze=null,l&&(zo+=_("rect",{x:ht+se,y:mt+V+Ge,width:je,height:Cr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0})+_("line",{x1:ht+z,x2:ht+z+$.width,y1:mt+V+Ge+Ue,y2:mt+V+Ge+Ue,stroke:"#14c000","stroke-width":1,transform:Ae||void 0,"clip-path":Be?`url(#${Be})`:void 0}))}else V+=Ue+Ge;if(r.textDecorationLine){let Y=bt[D];Y&&!Y[4]&&(Rt+=Fn({left:ht+Y[0],top:Y[1],width:Y[3],ascender:Y[2],clipPathId:Be,matrix:Ae},r),Y[4]=1)}if(Z!==null)Rr+=Z+" ";else{let[Y,se]=Nn({content:q,filter:gt,id:a,left:ht+z,top:mt+V,width:Re,height:Cr,matrix:Ae,opacity:Ar,image:ee,clipPathId:Be,debug:l,shape:!!x,decorationShape:Rt},r);xn+=Y,Pr+=se,Rt=""}if(B)break}if(Rr){let M=r.color!=="transparent"&&Ar!==0?`<g ${$o?`mask="url(#${$o})"`:""} ${Be?`clip-path="url(#${Be})"`:""}>`+_("path",{fill:r.color,d:Rr,transform:Ae||void 0,opacity:Ar!==1?Ar:void 0,style:T?`filter:${T}`: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>":"";x&&(Pr=_("path",{d:Rr,transform:Ae||void 0})),xn+=(gt?gt+_("g",{filter:`url(#satori_s-${a})`},M+Rt):M+Rt)+zo}return Pr&&(r._inheritedBackgroundClipTextPath.value+=Pr),xn}function Rf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(le(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function Lf(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var Ns=require("css-gradient-parser");var Ds=nt(require("parse-css-color"),1);function jr(e,t,n,r,i){let o=[];for(let l of t){let{color:f}=l;if(!o.length&&(o.push({offset:0,color:f}),!l.offset||l.offset.value==="0"))continue;let c=typeof l.offset>"u"?void 0:l.offset.unit==="%"?+l.offset.value/100:Number(R(`${l.offset.value}${l.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:c,color:f})}o.length||o.push({offset:0,color:"transparent"});let s=o[o.length-1];s.offset!==1&&(typeof s.offset>"u"?s.offset=1:r?o[o.length-1]={offset:1,color:s.color}:o.push({offset:1,color:s.color}));let a=0,u=1;for(let l=0;l<o.length;l++)if(typeof o[l].offset>"u"){for(u<l&&(u=l);typeof o[u].offset>"u";)u++;o[l].offset=(o[u].offset-o[a].offset)/(u-a)*(l-a)+o[a].offset}else a=l;return i==="mask"?o.map(l=>{let f=(0,Ds.default)(l.color);return f?f.alpha===0?{...l,color:"rgba(0, 0, 0, 1)"}:{...l,color:`rgba(255, 255, 255, ${f.alpha})`}:l}):o}function Fs({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){let f=(0,Ns.parseLinearGradient)(o),[c,p]=s,d=o.startsWith("repeating"),h,m,w;if(f.orientation.type==="directional")h=Mf(f.orientation.value),m=Math.sqrt(Math.pow((h.x2-h.x1)*c,2)+Math.pow((h.y2-h.y1)*p,2));else if(f.orientation.type==="angular"){let{length:x,...I}=Df(On(`${f.orientation.value.value}${f.orientation.value.unit}`)/180*Math.PI,c,p);m=x,h=I}w=d?Nf(f.stops,m,h,u):h;let b=jr(d?Cf(f.stops,m):m,f.stops,u,d,l),T=`satori_bi${e}`,y=`satori_pattern_${e}`,v=_("pattern",{id:y,x:a[0]/t,y:a[1]/n,width:r?c/t:"1",height:i?p/n:"1",patternUnits:"objectBoundingBox"},_("linearGradient",{id:T,...w,spreadMethod:d?"repeat":"pad"},b.map(x=>_("stop",{offset:(x.offset??0)*100+"%","stop-color":x.color})).join(""))+_("rect",{x:0,y:0,width:c,height:p,fill:`url(#${T})`}));return[y,v]}function Cf(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function Mf(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function Df(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,l,f,c,p=d=>{if(d===0){i=0,o=n,s=0,a=0,u=n;return}else if(d===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(d>0&&d<Math.PI/2){i=(r*t/2/Math.tan(d)-n/2)/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),f=(t/2/Math.tan(d)-n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f+n,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else if(d>Math.PI/2&&d<Math.PI){i=(n/2+r*t/2/Math.tan(d))/(Math.tan(d)+r/Math.tan(d)),o=Math.tan(d)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),f=(t/2/Math.tan(d)+n/2)/(Math.tan(d)+1/Math.tan(d)),c=Math.tan(d)*f,u=2*Math.sqrt(Math.pow(t/2-f,2)+Math.pow(n/2-c,2));return}else d>=Math.PI&&(p(d-Math.PI),l=i,i=s,s=l,l=o,o=a,a=l)};return p(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function Nf(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:R(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,l=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:R(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,f=(o-i)*u+i,c=(a-s)*u+s,p=(o-i)*l+i,d=(a-s)*l+s;return{x1:f,y1:c,x2:p,y2:d}}var $s=require("css-gradient-parser");function qs({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,l){var ie;let{shape:f,stops:c,position:p,size:d}=(0,$s.parseRadialGradient)(o),[h,m]=s,w=h/2,b=m/2,T=Ff(p.x,p.y,h,m,u.fontSize,u);w=T.x,b=T.y;let y=jr(t,c,u,!1,l),v=`satori_radial_${e}`,x=`satori_pattern_${e}`,I=`satori_mask_${e}`,A=Wf(f,d,u.fontSize,{x:w,y:b},[h,m],u),L=_("pattern",{id:x,x:a[0]/t,y:a[1]/n,width:r?h/t:"1",height:i?m/n:"1",patternUnits:"objectBoundingBox"},_("radialGradient",{id:v},y.map(ae=>_("stop",{offset:ae.offset||0,"stop-color":ae.color})).join(""))+_("mask",{id:I},_("rect",{x:0,y:0,width:h,height:m,fill:"#fff"}))+_("rect",{x:0,y:0,width:h,height:m,fill:((ie=y.at(-1))==null?void 0:ie.color)||"transparent"})+_(f,{cx:w,cy:b,width:h,height:m,...A,fill:`url(#${v})`,mask:`url(#${I})`}));return[x,L]}function Ff(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,Ws(e.value,n,r,"x")):s.x=R(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,Ws(t.value,n,r,"y")):s.y=R(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function Ws(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function Wf(e,t,n,r,i,o){let[s,a]=i,{x:u,y:l}=r,f={},c=0,p=0;if($f(t)){if(t.some(d=>d.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"?{r:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0))}:{rx:Number(R(`${t[0].value.value}${t[0].value.unit}`,n,s,o,!0)),ry:Number(R(`${t[1].value.value}${t[1].value.unit}`,n,a,o,!0))}}switch(t[0].value){case"farthest-corner":c=Math.max(Math.abs(s-u),Math.abs(u)),p=Math.max(Math.abs(a-l),Math.abs(l));break;case"closest-corner":c=Math.min(Math.abs(s-u),Math.abs(u)),p=Math.min(Math.abs(a-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.max(Math.abs(s-u),Math.abs(u)),f.ry=Math.max(Math.abs(a-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(s-u),Math.abs(u),Math.abs(a-l),Math.abs(l)):(f.rx=Math.min(Math.abs(s-u),Math.abs(u)),f.ry=Math.min(Math.abs(a-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(c*c+p*p);else{let d=p!==0?c/p:1;c===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(c*c+p*p*d*d)/d,f.rx=f.ry*d)}return f}function $f(e){return!e.some(t=>t.type==="keyword")}function qf(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function Bn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new Ne(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>qf(o,[t,n][s]))}async function Wt({id:e,width:t,height:n,left:r,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",p=u==="repeat-y"||u==="repeat",d=Bn(s,{x:t,y:n,defaultX:t,defaultY:n}),h=Bn(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return Fs({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("radial-gradient("))return qs({id:e,width:t,height:n,repeatX:c,repeatY:p},o,d,h,l,f);if(o.startsWith("url(")){let m=Bn(s,{x:t,y:n,defaultX:0,defaultY:0}),[w,b,T]=await xt(o.slice(4,-1)),y=f==="mask"?b||m[0]:m[0]||b,v=f==="mask"?T||m[1]:m[1]||T;return[`satori_bi${e}`,_("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:h[0]+r,y:h[1]+i,width:c?y:"100%",height:p?v:"100%"},_("image",{x:0,y:0,width:y,height:v,preserveAspectRatio:"none",href:w}))]}throw new Error(`Invalid background image: "${o}"`)}function Bf([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 Hr(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Vr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Yr(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(R(o[0],r,t,i,!0),t),Math.min(R(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Xr=e=>e&&e[0]!==0&&e[1]!==0;function Bs({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[_("clipPath",{id:u},_(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Xe({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,c,p,d,h;if([c,s]=Yr(s,n,r,f,i),[p,a]=Yr(a,n,r,f,i),[d,u]=Yr(u,n,r,f,i),[h,l]=Yr(l,n,r,f,i),!o&&!Xr(s)&&!Xr(a)&&!Xr(u)&&!Xr(l))return"";s||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[s[0],a[0]]=Hr(s[0],a[0],n),[u[0],l[0]]=Hr(u[0],l[0],n),[s[1],u[1]]=Hr(s[1],u[1],r),[a[1],l[1]]=Hr(a[1],l[1],r),c&&Vr(s),p&&Vr(a),d&&Vr(u),h&&Vr(l);let m=[];m[0]=[a,a],m[1]=[l,[-l[0],l[1]]],m[2]=[u,[-u[0],-u[1]]],m[3]=[s,[s[0],-s[1]]];let w=`h${n-s[0]-a[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,b=`v${r-a[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,T=`h${l[0]+u[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,y=`v${u[1]+s[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(o){let x=function(fe){let K=Bf([s,a,l,u][fe]);return fe===0?[[e+s[0]-K,t+s[1]-K],[e+s[0],t]]:fe===1?[[e+n-a[0]+K,t+a[1]-K],[e+n,t+a[1]]]:fe===2?[[e+n-l[0]+K,t+r-l[1]+K],[e+n-l[0],t+r]]:[[e+u[0]-K,t+r-u[1]+K],[e,t+r-u[1]]]},v=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(v===-1)v=0;else for(;!o[v];)v=(v+1)%4;let I="",A=x(v),L=`M${A[0]} A${m[(v+3)%4][0]} 0 0 1 ${A[1]}`,H=0;for(;H<4&&o[(v+H)%4];H++)I+=L+" ",L=[w,b,T,y][(v+H)%4];let ie=(v+H)%4;I+=L.split(" ")[0];let ae=x(ie);return I+=` A${m[(ie+3)%4][0]} 0 0 1 ${ae[0]}`,I}return`M${e+s[0]},${t} ${w} ${b} ${T} ${y}`}function zs(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Us({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[_("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},_(r,{x:i,y:o,width:s,height:a,d:n||void 0})),f]}function $t({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(d=>a[d+"Width"]))return"";let l="",f=0;for(;f>0&&zs(u[f],u[(f+3)%4],a);)f=(f+3)%4;let c=[!1,!1,!1,!1],p=[];for(let d=0;d<4;d++){let h=(f+d)%4,m=(f+d+1)%4,w=u[h],b=u[m];if(c[h]=!0,p=[a[w+"Width"],a[w+"Style"],a[w+"Color"],w],!zs(w,b,a)){let T=(p[0]||0)+(o&&!s&&a[w.replace("border","padding")]||0);T&&(l+=_("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":T*2,"stroke-dasharray":!o&&p[1]==="dashed"?T*2+" "+T:void 0,d:Xe({left:e,top:t,width:n,height:r},a,c)})),c=[!1,!1,!1,!1]}}if(c.some(Boolean)){let d=(p[0]||0)+(o&&!s&&a[p[3].replace("border","padding")]||0);d&&(l+=_("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":p[2],"stroke-width":d*2,"stroke-dasharray":!o&&p[1]==="dashed"?d*2+" "+d:void 0,d:Xe({left:e,top:t,width:n,height:r},a,c)}))}return l}function zn({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),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),p={x:t+u,y:n+l,width:r-u-f,height:i-l-c};return _("mask",{id:e},_("rect",{...p,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+$t({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var Un=require("css-to-react-native"),qt={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Hs({width:e,height:t},n,r){function i(l){let f=l.match(qt.circle);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(w=>w.trim()),{x:h,y:m}=js(d,e,t);return{type:"circle",r:R(p,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:R(h,r.fontSize,e,r,!0),cy:R(m,r.fontSize,t,r,!0)}}function o(l){let f=l.match(qt.ellipse);if(!f)return null;let[,c]=f,[p,d=""]=c.split("at").map(T=>T.trim()),[h,m]=p.split(" "),{x:w,y:b}=js(d,e,t);return{type:"ellipse",rx:R(h||"50%",r.fontSize,e,r,!0),ry:R(m||"50%",r.fontSize,t,r,!0),cx:R(w,r.fontSize,e,r,!0),cy:R(b,r.fontSize,t,r,!0)}}function s(l){let f=l.match(qt.path);if(!f)return null;let[c,p]=Gs(f[1]);return{type:"path",d:p,"fill-rule":c}}function a(l){let f=l.match(qt.polygon);if(!f)return null;let[c,p]=Gs(f[1]);return{type:"polygon","fill-rule":c,points:p.split(",").map(d=>d.split(" ").map((h,m)=>R(h,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function u(l){let f=l.match(qt.inset);if(!f)return null;let[c,p]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),d=(0,Un.getStylesForProperty)("borderRadius",p,!0),h=Object.values(d).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),m=Object.values((0,Un.getStylesForProperty)("margin",c,!0)).map(v=>String(v)).map((v,x)=>R(v,r.fontSize,x===0||x===2?t:e,r,!0)||0),w=m[3],b=m[0],T=e-(m[1]+m[3]),y=t-(m[0]+m[2]);return h.some(v=>v>0)?{type:"path",d:Xe({left:w,top:b,width:T,height:y},{...n,...d})}:{type:"rect",x:w,y:b,width:T,height:y}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function Gs(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function js(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function Qr(e){return`satori_cp-${e}`}function Vs(e){return`url(#${Qr(e)})`}function Ys(e,t,n){if(t.clipPath==="none")return"";let r=Hs(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return _("clipPath",{id:Qr(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},_(s,a))}return""}function Gn({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},l,f){let c="",p=l.clipPath&&l.clipPath!=="none"?Ys({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},l,f):"";if(l.overflow!=="hidden"&&!u)c="";else{let h=p?`satori_ocp-${s}`:Qr(s);c=_("clipPath",{id:h,"clip-path":a},_(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:l.overflow==="hidden"&&l.transform&&o?o:void 0}))}let d=zn({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},l);return p+c+d}var zf=e=>`satori_mi-${e}`;async function jn(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,l=u.length;if(!l)return["",""];let f=zf(a),c="";for(let p=0;p<l;p++){let d=u[p],[h,m]=await Wt({id:`${f}-${p}`,left:r,top:i,width:o,height:s},d,n,"mask");c+=m+_("rect",{x:r,y:i,width:o,height:s,fill:`url(#${h})`})}return c=_("mask",{id:f},c),[f,c]}async function Bt({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,l){if(u.display==="none")return"";let f=!!s,c="rect",p="",d="",h=[],m=1,w="";u.backgroundColor&&h.push(u.backgroundColor),u.opacity!==void 0&&(m=+u.opacity),u.transform&&(p=Ft({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let b="";if(u.backgroundImage){let te=[];for(let W=0;W<u.backgroundImage.length;W++){let _e=u.backgroundImage[W],Ie=await Wt({id:e+"_"+W,width:r,height:i,left:t,top:n},_e,l);Ie&&te.unshift(Ie)}for(let W of te)h.push(`url(#${W[0]})`),d+=W[1],W[2]&&(b+=W[2])}let[T,y]=await jn({id:e,left:t,top:n,width:r,height:i},u,l);d+=y;let v=T?`url(#${T})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,x=Xe({left:t,top:n,width:r,height:i},u);x&&(c="path");let I=u._inheritedClipPathId;a&&(w=_("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:p||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:A,filter:L}=u,H=A==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?Vs(e):void 0,ie=Gn({left:t,top:n,width:r,height:i,path:x,id:e,matrix:p,currentClipPath:H,src:s},u,l),ae=h.map(te=>_(c,{x:t,y:n,width:r,height:i,fill:te,d:x||void 0,transform:p||void 0,"clip-path":u.transform?void 0:H,style:L?`filter:${L}`:void 0,mask:u.transform?void 0:v})).join(""),fe=Us({id:e,left:t,top:n,width:r,height:i,currentClipPathId:I,borderPath:x,borderType:c},u),K;if(f){let te=(u.borderLeftWidth||0)+(u.paddingLeft||0),W=(u.borderTopWidth||0)+(u.paddingTop||0),_e=(u.borderRightWidth||0)+(u.paddingRight||0),Ie=(u.borderBottomWidth||0)+(u.paddingBottom||0),he=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none";u.transform&&(K=Bs({id:e,borderRadiusPath:x,borderType:c,left:t,top:n,width:r,height:i},u)),ae+=_("image",{x:t+te,y:n+W,width:r-te-_e,height:i-W-Ie,href:s,preserveAspectRatio:he,transform:p||void 0,style:L?`filter:${L}`:void 0,"clip-path":u.transform?K?`url(#${K[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:T?`url(#${T})`:`url(#satori_om-${e})`})}if(fe){d+=fe[0];let te=fe[1];ae+=$t({left:t,top:n,width:r,height:i,props:{transform:p||void 0,"clip-path":`url(#${te})`}},u)}let oe=Ls({width:r,height:i,id:e,opacity:m,shape:_(c,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:x||void 0,transform:p||void 0,"clip-path":H,mask:v})},u);return(d?_("defs",{},d):"")+(oe?oe[0]:"")+(K?K[0]:"")+ie+(m!==1?`<g opacity="${m}">`:"")+(u.transform&&(H||v)?`<g${H?` clip-path="${H}"`:""}${v?` mask="${v}"`:""}>`:"")+(b||ae)+(u.transform&&(H||v)?"</g>":"")+(m!==1?"</g>":"")+(oe?oe[1]:"")+w}var Qs=String.raw,Xs=Qs`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Ks=()=>new RegExp(Qs`\p{RI}{2}|(?)${Xs}(?:\u200D${Xs})*`,"gu");var Uf=new RegExp(Ks(),"u"),Hn={emoji:Uf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Vn={"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},Kr=Object.keys({...Vn,...Hn});function Js(e){return Kr.includes(e)}function Zs(e,t){for(let r of Object.keys(Hn))if(Hn[r].test(e))return[r];let n=Object.keys(Vn).filter(r=>Vn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function ea(e){if(e)return Kr.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*zt(e,t){var Er;let n=await Ve(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:c,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!vt(e)||typeof e.type=="function"){let C;if(!vt(e))C=qn(String(e),t),yield(await C.next()).value;else{if(rs(e.type))throw new Error("Class component is not supported.");C=zt(await e.type(e.props),t),yield(await C.next()).value}await C.next();let me=yield;return(await C.next(me)).value}let{type:d,props:h}=e;if(h&&ns(h))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:w,tw:b,lang:T=u}=h||{},y=ea(T);if(b){let C=p(b,m);m=Object.assign(C,m)}let v=n.Node.create();o.insertChild(v,o.getChildCount());let[x,I]=await Mn(v,d,i,m,h),A=x.transform===i.transform;if(A||(x.transform.__parent=i.transform),(x.overflow==="hidden"||x.clipPath&&x.clipPath!=="none")&&(I._inheritedClipPathId=`satori_cp-${r}`,I._inheritedMaskId=`satori_om-${r}`),x.maskImage&&(I._inheritedMaskId=`satori_mi-${r}`),x.backgroundClip==="text"){let C={value:""};I._inheritedBackgroundClipTextPath=C,x._inheritedBackgroundClipTextPath=C}let L=is(w),H=[],ie=0,ae=[];for(let C of L){let me=zt(C,{id:r+"-"+ie++,parentStyle:x,inheritedStyle:I,isInheritingTransform:!0,parent:v,font:s,embedFont:l,debug:a,graphemeImages:f,canLoadAdditionalAssets:c,locale:y,getTwStyles:p,onNodeDetected:t.onNodeDetected});c?ae.push(...(await me.next()).value||[]):await me.next(),H.push(me)}yield ae;for(let C of H)await C.next();let[fe,K]=yield,{left:oe,top:te,width:W,height:_e}=v.getComputedLayout();oe+=fe,te+=K;let Ie="",he="",Tr="",{children:et,...Pt}=h;if((Er=t.onNodeDetected)==null||Er.call(t,{left:oe,top:te,width:W,height:_e,type:d,props:Pt,key:e.key,textContent:vt(et)?void 0:et}),d==="img"){let C=x.__src;he=await Bt({id:r,left:oe,top:te,width:W,height:_e,src:C,isInheritingTransform:A,debug:a},x,I)}else if(d==="svg"){let C=x.color,me=await bs(e,C);he=await Bt({id:r,left:oe,top:te,width:W,height:_e,src:me,isInheritingTransform:A,debug:a},x,I)}else{let C=m==null?void 0:m.display;if(d==="div"&&w&&typeof w!="string"&&C!=="flex"&&C!=="none"&&C!=="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 Bt({id:r,left:oe,top:te,width:W,height:_e,isInheritingTransform:A,debug:a},x,I)}for(let C of H)Ie+=(await C.next([oe,te])).value;return x._inheritedBackgroundClipTextPath&&(Tr+=_("clipPath",{id:`satori_bct-${r}`,"clip-path":x._inheritedClipPathId?`url(#${x._inheritedClipPathId})`:void 0},x._inheritedBackgroundClipTextPath.value)),Tr+he+Ie}var Jr=nt(require("@shuding/opentype.js"),1);var ta="unknown";function Gf(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var Ut=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,l,f]=i[s];Gf(n,r,[a,u],[l,f])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Js(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${Kr.join(", ")}.`);let s=o??ta,a=Jr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),u=a.charToGlyphIndex;a.charToGlyphIndex=f=>{let c=u.call(a,f);return c===0&&a._trackBrokenChars&&a._trackBrokenChars.push(f),c},this.defaultFont||(this.defaultFont=a);let l=`${r.toLowerCase()}_${s}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(y=>y.toLowerCase());let a=[];r.forEach(y=>{let v=this.get({name:y,weight:i,style:o});if(v){a.push(v);return}let x=this.get({name:y+"_unknown",weight:i,style:o});if(x){a.push(x);return}});let u=Array.from(this.fonts.keys()),l=[],f=[],c=[];for(let y of u)if(!r.includes(y))if(s){let v=jf(y);v?v===s?l.push(this.get({name:y,weight:i,style:o})):f.push(this.get({name:y,weight:i,style:o})):c.push(this.get({name:y,weight:i,style:o}))}else c.push(this.get({name:y,weight:i,style:o}));let p=new Map,d=(y,v=!0)=>{let x=[...a,...c,...l,...v?f:[]];if(typeof y>"u")return v?x[x.length-1]:void 0;let I=y.charCodeAt(0);if(p.has(I))return p.get(I);let A=x.find((L,H)=>!!L.charToGlyphIndex(y)||v&&H===x.length-1);return A&&p.set(I,A),A},h=(y,v=!1)=>{var I,A;return((v?(A=(I=y.tables)==null?void 0:I.os2)==null?void 0:A.sTypoAscender:0)||y.ascender)/y.unitsPerEm*t},m=(y,v=!1)=>{var I,A;return((v?(A=(I=y.tables)==null?void 0:I.os2)==null?void 0:A.sTypoDescender:0)||y.descender)/y.unitsPerEm*t},w=(y,v=!1)=>{var x,I;if(typeof n=="string"&&n==="normal"){let A=(v?(I=(x=y.tables)==null?void 0:x.os2)==null?void 0:I.sTypoLineGap:0)||0;return h(y,v)-m(y,v)+A/y.unitsPerEm*t}else if(typeof n=="number")return t*n},b=y=>d(y,!1);return{has:y=>{if(y===`
|
|
6
6
|
`)return!0;let v=b(y);return v?(v._trackBrokenChars=[],v.stringToGlyphs(y),v._trackBrokenChars.length?(v._trackBrokenChars=void 0,!1):!0):!1},baseline:(y,v=typeof y>"u"?a[0]:d(y))=>{let x=h(v),I=m(v),A=x-I;return x+(w(v)-A)/2},height:(y,v=typeof y>"u"?a[0]:d(y))=>w(v),measure:(y,v)=>this.measure(d,y,v),getSVG:(y,v)=>this.getSVG(d,y,v)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let c=f.charToGlyph(l),p=t.unitsPerEm/f.unitsPerEm,d=new Jr.default.Path;d.unitsPerEm=t.unitsPerEm,d.commands=c.path.commands.map(m=>{let w={...m};for(let b in w)typeof w[b]=="number"&&(w[b]*=p);return w});let h=new Jr.default.Glyph({...c,advanceWidth:c.advanceWidth*p,xMin:c.xMin*p,xMax:c.xMax*p,yMin:c.yMin*p,yMax:c.yMax*p,path:d});a[u]=h}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0}){let a=t(n),u=this.patchFontFallbackResolver(a,t);try{return r===0?"":a.getPath(n.replace(/\n/g,""),o,i,r,{letterSpacing:s/r}).toPathData(1)}finally{u()}}};function jf(e){let t=e.split("_"),n=t[t.length-1];return n===ta?void 0:n}function Yn({width:e,height:t,content:n}){return _("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var Ml=nt(cl());var R0=["ios","android","windows","macos","web"];function pl(e){return R0.includes(e)}var L0=["portrait","landscape"];function hl(e){return L0.includes(e)}var dl;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(dl||(dl={}));var F;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(F||(F={}));function wo(e){return typeof e=="string"}function So(e){return typeof e=="object"}var _o;function g(e){return{kind:"complete",style:e}}function re(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=re(o),u=re(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,F.none];switch(i==null?void 0:i[1]){case"rem":return[r,F.rem];case"px":return[r,F.px];case"em":return[r,F.em];case"%":return[r,F.percent];case"vw":return[r,F.vw];case"vh":return[r,F.vh];default:return null}}function qe(e,t,n={}){let r=Me(t,n);return r===null?null:g({[e]:r})}function bn(e,t,n){let r=Me(t);return r!==null&&(n[e]=r),n}function gl(e,t){let n=Me(t);return n===null?null:{[e]:n}}function Me(e,t={}){if(e===void 0)return null;let n=re(String(e),t);return n?Ze(...n,t):null}function Ze(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case F.rem:return e*16*(r?-1:1);case F.px:return e*(r?-1:1);case F.percent:return`${r?"-":""}${e}%`;case F.none:return e*(r?-1:1);case F.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(pe("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case F.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(pe("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ko(e){let t=re(e);if(!t)return null;let[n,r]=t;switch(r){case F.rem:return n*16;case F.px:return n;default:return null}}var C0={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function To(e){return C0[e??""]||"All"}function Eo(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=To(i),"")),t]}function ft(e,t={}){if(e.includes("/")){let n=ml(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),ml(e,t)}function Se(e,t,n={}){let r=ft(t,n);return r===null?null:g({[e]:r})}function ml(e,t={}){if(e==="px")return 1;let n=re(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=F.percent,r*=100),i===F.none&&(r=r/4,i=F.rem),Ze(r,i,t)}function M0(...e){console.warn(...e)}function D0(...e){}var pe=typeof process>"u"||((_o=process==null?void 0:process.env)===null||_o===void 0?void 0:_o.JEST_WORKER_ID)===void 0?M0:D0;var N0=[["aspect-square",g({aspectRatio:1})],["aspect-video",g({aspectRatio:16/9})],["items-center",g({alignItems:"center"})],["items-start",g({alignItems:"flex-start"})],["items-end",g({alignItems:"flex-end"})],["items-baseline",g({alignItems:"baseline"})],["items-stretch",g({alignItems:"stretch"})],["justify-start",g({justifyContent:"flex-start"})],["justify-end",g({justifyContent:"flex-end"})],["justify-center",g({justifyContent:"center"})],["justify-between",g({justifyContent:"space-between"})],["justify-around",g({justifyContent:"space-around"})],["justify-evenly",g({justifyContent:"space-evenly"})],["content-start",g({alignContent:"flex-start"})],["content-end",g({alignContent:"flex-end"})],["content-between",g({alignContent:"space-between"})],["content-around",g({alignContent:"space-around"})],["content-stretch",g({alignContent:"stretch"})],["content-center",g({alignContent:"center"})],["self-auto",g({alignSelf:"auto"})],["self-start",g({alignSelf:"flex-start"})],["self-end",g({alignSelf:"flex-end"})],["self-center",g({alignSelf:"center"})],["self-stretch",g({alignSelf:"stretch"})],["self-baseline",g({alignSelf:"baseline"})],["direction-inherit",g({direction:"inherit"})],["direction-ltr",g({direction:"ltr"})],["direction-rtl",g({direction:"rtl"})],["hidden",g({display:"none"})],["flex",g({display:"flex"})],["flex-row",g({flexDirection:"row"})],["flex-row-reverse",g({flexDirection:"row-reverse"})],["flex-col",g({flexDirection:"column"})],["flex-col-reverse",g({flexDirection:"column-reverse"})],["flex-wrap",g({flexWrap:"wrap"})],["flex-wrap-reverse",g({flexWrap:"wrap-reverse"})],["flex-nowrap",g({flexWrap:"nowrap"})],["flex-auto",g({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",g({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",g({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",g({overflow:"hidden"})],["overflow-visible",g({overflow:"visible"})],["overflow-scroll",g({overflow:"scroll"})],["absolute",g({position:"absolute"})],["relative",g({position:"relative"})],["italic",g({fontStyle:"italic"})],["not-italic",g({fontStyle:"normal"})],["oldstyle-nums",xr("oldstyle-nums")],["small-caps",xr("small-caps")],["lining-nums",xr("lining-nums")],["tabular-nums",xr("tabular-nums")],["proportional-nums",xr("proportional-nums")],["font-thin",g({fontWeight:"100"})],["font-100",g({fontWeight:"100"})],["font-extralight",g({fontWeight:"200"})],["font-200",g({fontWeight:"200"})],["font-light",g({fontWeight:"300"})],["font-300",g({fontWeight:"300"})],["font-normal",g({fontWeight:"normal"})],["font-400",g({fontWeight:"400"})],["font-medium",g({fontWeight:"500"})],["font-500",g({fontWeight:"500"})],["font-semibold",g({fontWeight:"600"})],["font-600",g({fontWeight:"600"})],["font-bold",g({fontWeight:"bold"})],["font-700",g({fontWeight:"700"})],["font-extrabold",g({fontWeight:"800"})],["font-800",g({fontWeight:"800"})],["font-black",g({fontWeight:"900"})],["font-900",g({fontWeight:"900"})],["include-font-padding",g({includeFontPadding:!0})],["remove-font-padding",g({includeFontPadding:!1})],["max-w-none",g({maxWidth:"99999%"})],["text-left",g({textAlign:"left"})],["text-center",g({textAlign:"center"})],["text-right",g({textAlign:"right"})],["text-justify",g({textAlign:"justify"})],["text-auto",g({textAlign:"auto"})],["underline",g({textDecorationLine:"underline"})],["line-through",g({textDecorationLine:"line-through"})],["no-underline",g({textDecorationLine:"none"})],["uppercase",g({textTransform:"uppercase"})],["lowercase",g({textTransform:"lowercase"})],["capitalize",g({textTransform:"capitalize"})],["normal-case",g({textTransform:"none"})],["w-auto",g({width:"auto"})],["h-auto",g({height:"auto"})],["shadow-sm",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",g({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Oo=N0;function xr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var wr=class{constructor(t){this.ir=new Map(Oo),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Oo,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Po(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return Se("fontSize",e,n);if(typeof r=="string")return qe("fontSize",r);let i={},[o,s]=r,a=gl("fontSize",o);if(a&&(i=a),typeof s=="string")return g(bn("lineHeight",bl(s,i),i));let{lineHeight:u,letterSpacing:l}=s;return u&&bn("lineHeight",bl(u,i),i),l&&bn("letterSpacing",l,i),g(i)}function bl(e,t){let n=re(e);if(n){let[r,i]=n;if((i===F.none||i===F.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Io(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=re(r);if(!i)return null;let[o,s]=i;if(s===F.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=Ze(o,s);return a!==null?g({lineHeight:a}):null}function Ao(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)o=l;else{let f=ft(r);return f&&typeof f=="number"?vl(f,F.px,t,e):null}}if(o==="auto")return yl(t,e,"auto");let s=re(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),vl(a,u,t,e)}function vl(e,t,n,r){let i=Ze(e,t);return i===null?null:yl(n,r,i)}function yl(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function Ro(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?ko(u.min):0;l===null?pe(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=l;let f=u.max?ko(u.max):1/0;return f===null?pe(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=f,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,l]=o;return a===1/0||l===1/0?s-u:a-l});let r=0;return n.forEach(i=>i[2]=r++),t}function Lo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return g({fontFamily:n});let r=n[0];return r?g({fontFamily:r}):null}function ct(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Sl(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=xl(i,o/100),g({[vn[e].color]:i})}return{kind:"dependent",complete(o){let s=vn[e].opacity,a=o[s];typeof a=="number"&&(i=xl(i,a)),o[vn[e].color]=i}}}function Sr(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[vn[e].opacity]:r}}}function xl(e,t){return e.startsWith("#")?e=F0(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function wl(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var vn={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 F0(e){let t=e;e=e.replace(W0,(s,a,u,l)=>a+a+u+u+l+l);let n=$0.exec(e);if(!n)return pe(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function Sl(e,t){let n=t[e];if(wo(n))return n;if(So(n)&&wo(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(So(o))return Sl(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var W0=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function kl(e,t){let[n,r]=Eo(e);if(n.match(/^(-?(\d)+)?$/))return q0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return g({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=ct(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=Se(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function q0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return qe(o,i)}function Tl(e,t){if(!t)return null;let[n,r]=Eo(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return _l(qe(i,o));let s=Se(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:_l(s)}function _l(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function Et(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=Me(o,{isNegative:n});if(a!==null)return El(e,i,a)}let s=ft(t,{isNegative:n});return s!==null?El(e,i,s):null}function El(e,t,n){if(e!=="inset")return g({[e]:n});switch(t){case null:return g({top:n,left:n,right:n,bottom:n});case"y":return g({top:n,bottom:n});case"x":return g({left:n,right:n})}}function _r(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:g({[`flex${e}`]:o})}function Ol(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return g({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return g({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Me((n=i[2])!==null&&n!==void 0?n:"");return o?g({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Me((r=i[3])!==null&&r!==void 0?r:"");return o?g({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function Co(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?qe(e,i,n):Se(e,t,n)}function kr(e,t,n={},r){let i=Me(r==null?void 0:r[t],n);return i?g({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),Se(e,t,n))}function Pl(e,t,n){let r=n==null?void 0:n[e];if(r){let i=re(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===F.em)return B0(o);if(s===F.percent)return pe("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=Ze(o,s,{isNegative:t});return a!==null?g({letterSpacing:a}):null}return Se("letterSpacing",e,{isNegative:t})}function B0(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function Il(e,t){let n=t==null?void 0:t[e];if(n){let i=re(String(n));if(i)return g({opacity:i[0]})}let r=re(e);return r?g({opacity:r[0]/100}):null}function Al(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function Rl(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Mo(n),o=Mo(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Mo(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Mo(e){let t=ft(e);return typeof t=="number"?t:null}var Ot=class{constructor(t,n={},r,i,o){var s,a,u,l,f,c;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let p=t.trim().split(":"),d=[];p.length===1?this.string=t:(this.string=(s=p.pop())!==null&&s!==void 0?s:"",d=p),this.char=this.string[0];let h=Ro((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let m of d)if(h[m]){let w=(u=h[m])===null||u===void 0?void 0:u[2];w!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+w);let b=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(b){let[T,y]=(c=h[m])!==null&&c!==void 0?c:[0,0];(b<=T||b>y)&&(this.isNull=!0)}else this.isNull=!0}else pl(m)?this.isNull=m!==o:hl(m)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==m?this.isNull=!0:this.incrementOrder():this.isNull=!0:m==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:m==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(m)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let l=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let f=To(u[1]),c=Ao(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(c)return c}}}if(this.consumePeeked("h-")&&(a=Co("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=Co("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=kr("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=kr("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=kr("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=kr("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Io(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Po(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=ct("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=Sr("text",this.rest),a))||this.consumePeeked("font-")&&(a=Lo(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&pe("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=qe("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=ct("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=ct("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Sr("bg",this.rest),a))||this.consumePeeked("border")&&(a=kl(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=Sr("border",this.rest),a))||this.consumePeeked("rounded")&&(a=Tl(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Et("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Et("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Et("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Et("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Et("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=_r("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=_r("Shrink",this.rest,s==null?void 0:s.flexShrink):a=Ol(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=_r("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=_r("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Sr("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=Al(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=Rl(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=Se("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=ct("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 g({elevation:u})}if(this.consumePeeked("opacity-")&&(a=Il(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=Pl(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 g({zIndex:u})}return pe(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,l=re(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,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function Ll(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Do(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Do)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?Do(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(z0),n]}function Do(e){return e.trim().split(/\s+/)}function z0(e,t,n){return n.indexOf(e)===t}function Cl(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...U0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function U0(e){let t={};return e({addUtilities:n=>{t=n},...G0}),t}function De(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var G0={addComponents:De,addBase:De,addVariant:De,e:De,prefix:De,theme:De,variants:De,config:De,corePlugins:De,matchUtilities:De,postcss:null};function Dl(e,t){let n=(0,Ml.default)(j0(e)),r={},i=Cl(n.plugins),o={},s=Object.entries(i).map(([h,m])=>typeof m=="string"?(o[h]=m,[h,{kind:"null"}]):[h,g(m)]).filter(([,h])=>h.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function f(){let h=l[u];if(h)return h;let m=new wr(s);return l[u]=m,m}function c(...h){let m=f(),w={},b=[],T=[],[y,v]=Ll(h),x=y.join(" "),I=m.getStyle(x);if(I)return{...I,...v||{}};for(let A of y){let L=m.getIr(A);if(!L&&A in o){let ie=c(o[A]);m.setIr(A,g(ie)),w={...w,...ie};continue}switch(L=new Ot(A,n,m,r,t).parse(),L.kind){case"complete":w={...w,...L.style},m.setIr(A,L);break;case"dependent":b.push(L);break;case"ordered":T.push(L);break;case"null":m.setIr(A,L);break}}if(T.length>0){T.sort((A,L)=>A.order-L.order);for(let A of T)switch(A.styleIr.kind){case"complete":w={...w,...A.styleIr.style};break;case"dependent":b.push(A.styleIr);break}}if(b.length>0){for(let A of b){let L=A.complete(w);L&&pe(L)}wl(w)}return x!==""&&m.setStyle(x,w),v&&(w={...w,...v}),w}function p(h){let m=c(h.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof m.backgroundColor=="string"?m.backgroundColor:void 0}let d=(h,...m)=>{let w="";return h.forEach((b,T)=>{var y;w+=b+((y=m[T])!==null&&y!==void 0?y:"")}),c(w)};return d.style=c,d.color=p,d.prefixMatch=(...h)=>{let m=h.sort().join(":"),w=f(),b=w.getPrefixMatch(m);if(b!==void 0)return b;let v=new Ot(`${m}:flex`,n,w,r,t).parse().kind!=="null";return w.setPrefixMatch(m,v),v},d.setWindowDimensions=h=>{r.windowDimensions=h,u=a()},d.setFontScale=h=>{r.fontScale=h,u=a()},d.setPixelDensity=h=>{r.pixelDensity=h,u=a()},d.setColorScheme=h=>{r.colorScheme=h,u=a()},d}function j0(e){return{...e,content:["_no_warnings_please"]}}var V0={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 Y0(e){return Dl({...e,plugins:[...(e==null?void 0:e.plugins)??[],V0]},"web")}var yn;function No({width:e,height:t,config:n}){return yn||(yn=Y0(n)),yn.setWindowDimensions({width:+e,height:+t}),yn}var Fo=new WeakMap;async function Wo(e,t){let n=await Ve();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;Fo.has(t.fonts)?r=Fo.get(t.fonts):Fo.set(t.fonts,r=new Ut(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=X0(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set;Le.clear(),Dt.clear(),await gs(e);let l=zt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(h,m)=>{let b={...No({width:i,height:o,config:t.tailwindConfig})([h])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||m.fontSize||16)),b.shadowColor&&b.boxShadow&&(b.boxShadow=b.boxShadow.replace(/rgba?\([^)]+\)/,b.shadowColor)),b}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let h=Q0(f),m=[],w={};await Promise.all(Object.entries(h).flatMap(([b,T])=>T.map(y=>{let v=`${b}_${y}`;return u.has(v)?null:(u.add(v),t.loadAdditionalAsset(b,y).then(x=>{typeof x=="string"?w[y]=x:x&&(Array.isArray(x)?m.push(...x):m.push(x))}))}))),r.addFonts(m),Object.assign(a,w)}await l.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let c=(await l.next([0,0])).value,p=s.getComputedWidth(),d=s.getComputedHeight();return s.freeRecursive(),Yn({width:p,height:d,content:c})}function X0(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function Q0(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Zs(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...Nl(ue(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=Nl(ue(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function Nl(e){return Array.from(new Set(e))}
|
|
7
7
|
//# sourceMappingURL=index.cjs.map
|