satori 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.LEGAL.txt +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.wasm.js +9 -0
- package/dist/esm/index.wasm.js.LEGAL.txt +1 -0
- package/dist/esm/index.wasm.js.map +1 -0
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.wasm.cjs +9 -9
- package/dist/index.wasm.cjs.map +1 -1
- package/dist/index.wasm.js +9 -9
- package/dist/index.wasm.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
**Satori**: Enlightened library to convert HTML and CSS to SVG.
|
|
4
4
|
|
|
5
5
|
> **Note**
|
|
6
|
-
>
|
|
7
|
-
> To use Satori in your project to generate PNG images like Open Graph images and social cards, check out our [announcement](https://vercel.com/blog/introducing-vercel-og-image-generation-fast-dynamic-social-card-images) and [Vercel’s Open Graph Image Generation →](https://vercel.com/docs/concepts/functions/edge-functions/og-image-generation)
|
|
8
|
-
>
|
|
6
|
+
>
|
|
7
|
+
> To use Satori in your project to generate PNG images like Open Graph images and social cards, check out our [announcement](https://vercel.com/blog/introducing-vercel-og-image-generation-fast-dynamic-social-card-images) and [Vercel’s Open Graph Image Generation →](https://vercel.com/docs/concepts/functions/edge-functions/og-image-generation)
|
|
8
|
+
>
|
|
9
9
|
> To use it in Next.js, take a look at the [Next.js Open Graph Image Generation template →](https://vercel.com/templates/next.js/og-image-generation)
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
@@ -70,7 +70,7 @@ await satori(
|
|
|
70
70
|
|
|
71
71
|
### HTML Elements
|
|
72
72
|
|
|
73
|
-
Satori supports a limited subset of HTML and CSS features, due to its special use cases. In general, only these static and visible elements and properties that are implemented.
|
|
73
|
+
Satori supports a limited subset of HTML and CSS features, due to its special use cases. In general, only these static and visible elements and properties that are implemented.
|
|
74
74
|
|
|
75
75
|
For example, the `<input>` HTML element, the `cursor` CSS property are not in consideration. And you can't use `<style>` tags or external resources via `<link>` or `<script>`.
|
|
76
76
|
|
|
@@ -241,10 +241,11 @@ Note:
|
|
|
241
241
|
3. `box-sizing` is set to `border-box` for all elements.
|
|
242
242
|
4. `calc` isn't supported.
|
|
243
243
|
5. `overflow: hidden` and `transform` can't be used together.
|
|
244
|
+
6. `currentcolor` support is only available for the `color` property.
|
|
244
245
|
|
|
245
246
|
### Language and Typography
|
|
246
247
|
|
|
247
|
-
Advanced typography features such as kerning, ligatures and other OpenType features are not currently supported.
|
|
248
|
+
Advanced typography features such as kerning, ligatures and other OpenType features are not currently supported.
|
|
248
249
|
|
|
249
250
|
RTL languages are not supported either.
|
|
250
251
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var yu=Object.create;var or=Object.defineProperty;var xu=Object.getOwnPropertyDescriptor;var wu=Object.getOwnPropertyNames;var _u=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty;var qr=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fo=(e,t)=>{for(var n in t)or(e,n,{get:t[n],enumerable:!0})},co=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wu(t))!Su.call(e,i)&&i!==n&&or(e,i,{get:()=>t[i],enumerable:!(r=xu(t,i))||r.enumerable});return e};var ku=(e,t,n)=>(n=e!=null?yu(_u(e)):{},co(t||!e||!e.__esModule?or(n,"default",{value:e,enumerable:!0}):n,e)),ar=e=>co(or({},"__esModule",{value:!0}),e);var c=qr(()=>{});var hn=R(pn=>{"use strict";c();Object.defineProperty(pn,"__esModule",{value:!0});Object.defineProperty(pn,"default",{enumerable:!0,get:()=>al});function al(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 Mo=R(mn=>{"use strict";c();Object.defineProperty(mn,"__esModule",{value:!0});Object.defineProperty(mn,"default",{enumerable:!0,get:()=>sl});var sl=["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 Fo=R(gn=>{"use strict";c();Object.defineProperty(gn,"__esModule",{value:!0});Object.defineProperty(gn,"default",{enumerable:!0,get:()=>ul});function ul(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 vn=R((Hm,No)=>{c();No.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 vr={};fo(vr,{default:()=>ll});var ll,br=qr(()=>{c();ll={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 Wo=R(bn=>{"use strict";c();Object.defineProperty(bn,"__esModule",{value:!0});Object.defineProperty(bn,"default",{enumerable:!0,get:()=>dl});var fl=cl((br(),ar(vr)));function cl(e){return e&&e.__esModule?e:{default:e}}function bt({version:e,from:t,to:n}){fl.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 dl={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 bt({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return bt({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return bt({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return bt({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return bt({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}});var $o=R(yn=>{"use strict";c();Object.defineProperty(yn,"__esModule",{value:!0});Object.defineProperty(yn,"defaults",{enumerable:!0,get:()=>pl});function pl(e,...t){for(let i of t){for(let a in i){var n;!(e==null||(n=e.hasOwnProperty)===null||n===void 0)&&n.call(e,a)||(e[a]=i[a])}for(let a of Object.getOwnPropertySymbols(i)){var r;!(e==null||(r=e.hasOwnProperty)===null||r===void 0)&&r.call(e,a)||(e[a]=i[a])}}return e}});var qo=R(xn=>{"use strict";c();Object.defineProperty(xn,"__esModule",{value:!0});Object.defineProperty(xn,"toPath",{enumerable:!0,get:()=>hl});function hl(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 Uo=R(wn=>{"use strict";c();Object.defineProperty(wn,"__esModule",{value:!0});Object.defineProperty(wn,"normalizeConfig",{enumerable:!0,get:()=>gl});var yt=ml((br(),ar(vr)));function Bo(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Bo=function(r){return r?n:t})(e)}function ml(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Bo(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function gl(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?void 0: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?void 0: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})()||yt.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:a,safelist:o}=e;return Array.isArray(o)?o:Array.isArray(i==null?void 0:i.safelist)?i.safelist:Array.isArray(a==null?void 0:a.safelist)?a.safelist:Array.isArray(a==null||(r=a.options)===null||r===void 0?void 0:r.safelist)?a.options.safelist:[]})(),typeof e.prefix=="function")yt.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 o,s,u,l,f,p,g,m,d,h;return!((o=e.purge)===null||o===void 0)&&o.extract?e.purge.extract:!((s=e.content)===null||s===void 0)&&s.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||(p=f.extract)===null||p===void 0)&&p.DEFAULT?e.content.extract.DEFAULT:!((g=e.purge)===null||g===void 0||(m=g.options)===null||m===void 0)&&m.extractors?e.purge.options.extractors:!((d=e.content)===null||d===void 0||(h=d.options)===null||h===void 0)&&h.extractors?e.content.options.extractors:{}})(),i={},a=(()=>{var o,s,u,l;if(!((o=e.purge)===null||o===void 0||(s=o.options)===null||s===void 0)&&s.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(a!==void 0&&(i.DEFAULT=a),typeof r=="function")i.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:s}of r!=null?r:[])for(let u of o)i[u]=s;else typeof r=="object"&&r!==null&&Object.assign(i,r);return i})(),transform:(()=>{let r=(()=>{var a,o,s,u,l,f;return!((a=e.purge)===null||a===void 0)&&a.transform?e.purge.transform:!((o=e.content)===null||o===void 0)&&o.transform?e.content.transform:!((s=e.purge)===null||s===void 0||(u=s.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)){yt.default.warn("invalid-glob-braces",[`The glob pattern ${(0,yt.dim)(r)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,yt.dim)(r.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}});var zo=R(_n=>{"use strict";c();Object.defineProperty(_n,"__esModule",{value:!0});Object.defineProperty(_n,"default",{enumerable:!0,get:()=>vl});function vl(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Go=R(kn=>{"use strict";c();Object.defineProperty(kn,"__esModule",{value:!0});Object.defineProperty(kn,"cloneDeep",{enumerable:!0,get:()=>Sn});function Sn(e){return Array.isArray(e)?e.map(t=>Sn(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Sn(n)])):e}});var Tn=R((yr,jo)=>{"use strict";c();yr.__esModule=!0;yr.default=xl;function bl(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&t[i]!==void 0;i++){var a=t.charCodeAt(i),o=a>=97&&a<=102||a>=48&&a<=57;if(r=a===32,!o)break;n+=t[i]}if(n.length!==0){var s=parseInt(n,16),u=s>=55296&&s<=57343;return u||s===0||s>1114111?["\uFFFD",n.length+(r?1:0)]:[String.fromCodePoint(s),n.length+(r?1:0)]}}var yl=/\\/;function xl(e){var t=yl.test(e);if(!t)return e;for(var n="",r=0;r<e.length;r++){if(e[r]==="\\"){var i=bl(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}jo.exports=yr.default});var Ho=R((xr,Vo)=>{"use strict";c();xr.__esModule=!0;xr.default=wl;function wl(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}Vo.exports=xr.default});var Xo=R((wr,Yo)=>{"use strict";c();wr.__esModule=!0;wr.default=_l;function _l(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]}}Yo.exports=wr.default});var Jo=R((_r,Qo)=>{"use strict";c();_r.__esModule=!0;_r.default=Sl;function Sl(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}Qo.exports=_r.default});var xt=R(Te=>{"use strict";c();Te.__esModule=!0;Te.stripComments=Te.ensureObject=Te.getProp=Te.unesc=void 0;var kl=Sr(Tn());Te.unesc=kl.default;var Tl=Sr(Ho());Te.getProp=Tl.default;var El=Sr(Xo());Te.ensureObject=El.default;var Ol=Sr(Jo());Te.stripComments=Ol.default;function Sr(e){return e&&e.__esModule?e:{default:e}}});var Ie=R((wt,ea)=>{"use strict";c();wt.__esModule=!0;wt.default=void 0;var Ko=xt();function Zo(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 Pl(e,t,n){return t&&Zo(e.prototype,t),n&&Zo(e,n),e}var Al=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 a=t[i],o=typeof a;i==="parent"&&o==="object"?n&&(r[i]=n):a instanceof Array?r[i]=a.map(function(s){return e(s,r)}):r[i]=e(a,r)}return r},Il=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=Al(this);for(var a in r)i[a]=r[a];return i},t.appendToPropertyAndEscape=function(r,i,a){this.raws||(this.raws={});var o=this[r],s=this.raws[r];this[r]=o+i,s||a!==i?this.raws[r]=(s||o)+a:delete this.raws[r]},t.setPropertyAndEscape=function(r,i,a){this.raws||(this.raws={}),this[r]=i,this.raws[r]=a},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("")},Pl(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,Ko.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,Ko.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=r}}]),e}();wt.default=Il;ea.exports=wt.default});var ne=R(j=>{"use strict";c();j.__esModule=!0;j.UNIVERSAL=j.ATTRIBUTE=j.CLASS=j.COMBINATOR=j.COMMENT=j.ID=j.NESTING=j.PSEUDO=j.ROOT=j.SELECTOR=j.STRING=j.TAG=void 0;var Rl="tag";j.TAG=Rl;var Ll="string";j.STRING=Ll;var Cl="selector";j.SELECTOR=Cl;var Dl="root";j.ROOT=Dl;var Ml="pseudo";j.PSEUDO=Ml;var Fl="nesting";j.NESTING=Fl;var Nl="id";j.ID=Nl;var Wl="comment";j.COMMENT=Wl;var $l="combinator";j.COMBINATOR=$l;var ql="class";j.CLASS=ql;var Bl="attribute";j.ATTRIBUTE=Bl;var Ul="universal";j.UNIVERSAL=Ul});var kr=R((_t,ia)=>{"use strict";c();_t.__esModule=!0;_t.default=void 0;var zl=jl(Ie()),Re=Gl(ne());function na(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return na=function(){return e},e}function Gl(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=na();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 a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function jl(e){return e&&e.__esModule?e:{default:e}}function Vl(e,t){var n;if(typeof Symbol>"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Hl(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
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function Hl(e,t){if(!!e){if(typeof e=="string")return ta(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 ta(e,t)}}function ta(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 ra(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 Yl(e,t,n){return t&&ra(e.prototype,t),n&&ra(e,n),e}function Xl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,En(e,t)}function En(e,t){return En=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},En(e,t)}var Ql=function(e){Xl(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 a;for(var o in this.indexes)a=this.indexes[o],a>=i&&(this.indexes[o]=a-1);return this},n.removeAll=function(){for(var i=Vl(this.nodes),a;!(a=i()).done;){var o=a.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,a){a.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,a),a.parent=this;var s;for(var u in this.indexes)s=this.indexes[u],o<=s&&(this.indexes[u]=s+1);return this},n.insertBefore=function(i,a){a.parent=this;var o=this.index(i);this.nodes.splice(o,0,a),a.parent=this;var s;for(var u in this.indexes)s=this.indexes[u],s<=o&&(this.indexes[u]=s+1);return this},n._findChildAtPosition=function(i,a){var o=void 0;return this.each(function(s){if(s.atPosition){var u=s.atPosition(i,a);if(u)return o=u,!1}else if(s.isAtPosition(i,a))return o=s,!1}),o},n.atPosition=function(i,a){if(this.isAtPosition(i,a))return this._findChildAtPosition(i,a)||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 a=this.lastEach;if(this.indexes[a]=0,!!this.length){for(var o,s;this.indexes[a]<this.length&&(o=this.indexes[a],s=i(this.at(o),o),s!==!1);)this.indexes[a]+=1;if(delete this.indexes[a],s===!1)return!1}},n.walk=function(i){return this.each(function(a,o){var s=i(a,o);if(s!==!1&&a.length&&(s=a.walk(i)),s===!1)return!1})},n.walkAttributes=function(i){var a=this;return this.walk(function(o){if(o.type===Re.ATTRIBUTE)return i.call(a,o)})},n.walkClasses=function(i){var a=this;return this.walk(function(o){if(o.type===Re.CLASS)return i.call(a,o)})},n.walkCombinators=function(i){var a=this;return this.walk(function(o){if(o.type===Re.COMBINATOR)return i.call(a,o)})},n.walkComments=function(i){var a=this;return this.walk(function(o){if(o.type===Re.COMMENT)return i.call(a,o)})},n.walkIds=function(i){var a=this;return this.walk(function(o){if(o.type===Re.ID)return i.call(a,o)})},n.walkNesting=function(i){var a=this;return this.walk(function(o){if(o.type===Re.NESTING)return i.call(a,o)})},n.walkPseudos=function(i){var a=this;return this.walk(function(o){if(o.type===Re.PSEUDO)return i.call(a,o)})},n.walkTags=function(i){var a=this;return this.walk(function(o){if(o.type===Re.TAG)return i.call(a,o)})},n.walkUniversals=function(i){var a=this;return this.walk(function(o){if(o.type===Re.UNIVERSAL)return i.call(a,o)})},n.split=function(i){var a=this,o=[];return this.reduce(function(s,u,l){var f=i.call(a,u);return o.push(u),f?(s.push(o),o=[]):l===a.length-1&&s.push(o),s},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,a){return this.nodes.reduce(i,a)},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("")},Yl(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}(zl.default);_t.default=Ql;ia.exports=_t.default});var Pn=R((St,aa)=>{"use strict";c();St.__esModule=!0;St.default=void 0;var Jl=Zl(kr()),Kl=ne();function Zl(e){return e&&e.__esModule?e:{default:e}}function oa(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 ef(e,t,n){return t&&oa(e.prototype,t),n&&oa(e,n),e}function tf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,On(e,t)}function On(e,t){return On=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},On(e,t)}var rf=function(e){tf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Kl.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(a,o){return a.push(String(o)),a},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,a){return this._error?this._error(i,a):new Error(i)},ef(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(Jl.default);St.default=rf;aa.exports=St.default});var In=R((kt,sa)=>{"use strict";c();kt.__esModule=!0;kt.default=void 0;var nf=af(kr()),of=ne();function af(e){return e&&e.__esModule?e:{default:e}}function sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,An(e,t)}function An(e,t){return An=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},An(e,t)}var uf=function(e){sf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=of.SELECTOR,r}return t}(nf.default);kt.default=uf;sa.exports=kt.default});var Tr=R((rg,ua)=>{"use strict";c();var lf={},ff=lf.hasOwnProperty,cf=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=ff.call(t,i)?t[i]:n[i];return r},df=/[ -,\.\/:-@\[-\^`\{-~]/,pf=/[ -,\.\/:-@\[\]\^`\{-~]/,hf=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Rn=function e(t,n){n=cf(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,a=t.charAt(0),o="",s=0,u=t.length;s<u;){var l=t.charAt(s++),f=l.charCodeAt(),p=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&s<u){var g=t.charCodeAt(s++);(g&64512)==56320?f=((f&1023)<<10)+(g&1023)+65536:s--}p="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?df.test(l)?p="\\"+l:p="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?p="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&pf.test(l)?p="\\"+l:p=l;o+=p}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(a)&&(o="\\3"+a+" "+o.slice(1))),o=o.replace(hf,function(m,d,h){return d&&d.length%2?m:(d||"")+h}),!i&&n.wrap?r+o+r:o};Rn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Rn.version="3.0.0";ua.exports=Rn});var Cn=R((Tt,ca)=>{"use strict";c();Tt.__esModule=!0;Tt.default=void 0;var mf=fa(Tr()),gf=xt(),vf=fa(Ie()),bf=ne();function fa(e){return e&&e.__esModule?e:{default:e}}function la(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 yf(e,t,n){return t&&la(e.prototype,t),n&&la(e,n),e}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ln(e,t)}function Ln(e,t){return Ln=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ln(e,t)}var wf=function(e){xf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=bf.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},yf(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var a=(0,mf.default)(i,{isIdentifier:!0});a!==i?((0,gf.ensureObject)(this,"raws"),this.raws.value=a):this.raws&&delete this.raws.value}this._value=i}}]),t}(vf.default);Tt.default=wf;ca.exports=Tt.default});var Mn=R((Et,da)=>{"use strict";c();Et.__esModule=!0;Et.default=void 0;var _f=kf(Ie()),Sf=ne();function kf(e){return e&&e.__esModule?e:{default:e}}function Tf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dn(e,t)}function Dn(e,t){return Dn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Dn(e,t)}var Ef=function(e){Tf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Sf.COMMENT,r}return t}(_f.default);Et.default=Ef;da.exports=Et.default});var Nn=R((Ot,pa)=>{"use strict";c();Ot.__esModule=!0;Ot.default=void 0;var Of=Af(Ie()),Pf=ne();function Af(e){return e&&e.__esModule?e:{default:e}}function If(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fn(e,t)}function Fn(e,t){return Fn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fn(e,t)}var Rf=function(e){If(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Pf.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Of.default);Ot.default=Rf;pa.exports=Ot.default});var Er=R((Pt,ga)=>{"use strict";c();Pt.__esModule=!0;Pt.default=void 0;var Lf=ma(Tr()),Cf=xt(),Df=ma(Ie());function ma(e){return e&&e.__esModule?e:{default:e}}function ha(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 Mf(e,t,n){return t&&ha(e.prototype,t),n&&ha(e,n),e}function Ff(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wn(e,t)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Wn(e,t)}var Nf=function(e){Ff(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))},Mf(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 a=(0,Lf.default)(i,{isIdentifier:!0});this._namespace=i,a!==i?((0,Cf.ensureObject)(this,"raws"),this.raws.namespace=a):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}(Df.default);Pt.default=Nf;ga.exports=Pt.default});var qn=R((At,va)=>{"use strict";c();At.__esModule=!0;At.default=void 0;var Wf=qf(Er()),$f=ne();function qf(e){return e&&e.__esModule?e:{default:e}}function Bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$n(e,t)}function $n(e,t){return $n=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$n(e,t)}var Uf=function(e){Bf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=$f.TAG,r}return t}(Wf.default);At.default=Uf;va.exports=At.default});var Un=R((It,ba)=>{"use strict";c();It.__esModule=!0;It.default=void 0;var zf=jf(Ie()),Gf=ne();function jf(e){return e&&e.__esModule?e:{default:e}}function Vf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bn(e,t)}function Bn(e,t){return Bn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Bn(e,t)}var Hf=function(e){Vf(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Gf.STRING,r}return t}(zf.default);It.default=Hf;ba.exports=It.default});var Gn=R((Rt,ya)=>{"use strict";c();Rt.__esModule=!0;Rt.default=void 0;var Yf=Qf(kr()),Xf=ne();function Qf(e){return e&&e.__esModule?e:{default:e}}function Jf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zn(e,t)}function zn(e,t){return zn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zn(e,t)}var Kf=function(e){Jf(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Xf.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}(Yf.default);Rt.default=Kf;ya.exports=Rt.default});var wa=R((ng,xa)=>{c();xa.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var Qn=R(Dt=>{"use strict";c();Dt.__esModule=!0;Dt.unescapeValue=Xn;Dt.default=void 0;var Lt=Yn(Tr()),Zf=Yn(Tn()),ec=Yn(Er()),tc=ne(),jn;function Yn(e){return e&&e.__esModule?e:{default:e}}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 rc(e,t,n){return t&&_a(e.prototype,t),n&&_a(e,n),e}function nc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hn(e,t)}function Hn(e,t){return Hn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Hn(e,t)}var Ct=wa(),ic=/^('|")([^]*)\1$/,oc=Ct(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),ac=Ct(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),sc=Ct(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function Xn(e){var t=!1,n=null,r=e,i=r.match(ic);return i&&(n=i[1],r=i[2]),r=(0,Zf.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function uc(e){if(e.quoteMark!==void 0||e.value===void 0)return e;sc();var t=Xn(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 Or=function(e){nc(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,uc(r))||this,i.type=tc.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:Ct(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Ct(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 a=this._determineQuoteMark(i),o=Vn[a],s=(0,Lt.default)(this._value,o);return s},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,a){a===void 0&&(a={}),this._value=i,this._quoteMark=this._determineQuoteMark(a),this._syncRawValue()},n.smartQuoteMark=function(i){var a=this.value,o=a.replace(/[^']/g,"").length,s=a.replace(/[^"]/g,"").length;if(o+s===0){var u=(0,Lt.default)(a,{isIdentifier:!0});if(u===a)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,p=Vn[f],g=(0,Lt.default)(a,p);if(g.length<u.length)return f}return l}else return s===o?this.preferredQuoteMark(i):s<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var a=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return a===void 0&&(a=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),a===void 0&&(a=t.DOUBLE_QUOTE),a},n._syncRawValue=function(){var i=(0,Lt.default)(this._value,Vn[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,a){if(this._constructed){var o=(0,Lt.default)(a,{isIdentifier:!0});o!==a?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var a={before:"",after:""},o=this.spaces[i]||{},s=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(a,o,s)},n._stringFor=function(i,a,o){a===void 0&&(a=i),o===void 0&&(o=Sa);var s=this._spacesFor(a);return o(this.stringifyProperty(i),s)},n.offsetOf=function(i){var a=1,o=this._spacesFor("attribute");if(a+=o.before.length,i==="namespace"||i==="ns")return this.namespace?a:-1;if(i==="attributeNS"||(a+=this.namespaceString.length,this.namespace&&(a+=1),i==="attribute"))return a;a+=this.stringifyProperty("attribute").length,a+=o.after.length;var s=this._spacesFor("operator");a+=s.before.length;var u=this.stringifyProperty("operator");if(i==="operator")return u?a:-1;a+=u.length,a+=s.after.length;var l=this._spacesFor("value");a+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?a:-1;a+=f.length,a+=l.after.length;var p=this._spacesFor("insensitive");return a+=p.before.length,i==="insensitive"&&this.insensitive?a:-1},n.toString=function(){var i=this,a=[this.rawSpaceBefore,"["];return a.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(a.push(this._stringFor("operator")),a.push(this._stringFor("value")),a.push(this._stringFor("insensitiveFlag","insensitive",function(o,s){return o.length>0&&!i.quoted&&s.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(s.before=" "),Sa(o,s)}))),a.push("]"),a.push(this.rawSpaceAfter),a.join("")},rc(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){ac()}},{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 a=Xn(i),o=a.deprecatedUsage,s=a.unescaped,u=a.quoteMark;if(o&&oc(),s===this._value&&u===this._quoteMark)return;this._value=s,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}(ec.default);Dt.default=Or;Or.NO_QUOTE=null;Or.SINGLE_QUOTE="'";Or.DOUBLE_QUOTE='"';var Vn=(jn={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},jn[null]={isIdentifier:!0},jn);function Sa(e,t){return""+t.before+e+t.after}});var Kn=R((Mt,ka)=>{"use strict";c();Mt.__esModule=!0;Mt.default=void 0;var lc=cc(Er()),fc=ne();function cc(e){return e&&e.__esModule?e:{default:e}}function dc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jn(e,t)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jn(e,t)}var pc=function(e){dc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=fc.UNIVERSAL,r.value="*",r}return t}(lc.default);Mt.default=pc;ka.exports=Mt.default});var ei=R((Ft,Ta)=>{"use strict";c();Ft.__esModule=!0;Ft.default=void 0;var hc=gc(Ie()),mc=ne();function gc(e){return e&&e.__esModule?e:{default:e}}function vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zn(e,t)}function Zn(e,t){return Zn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zn(e,t)}var bc=function(e){vc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=mc.COMBINATOR,r}return t}(hc.default);Ft.default=bc;Ta.exports=Ft.default});var ri=R((Nt,Ea)=>{"use strict";c();Nt.__esModule=!0;Nt.default=void 0;var yc=wc(Ie()),xc=ne();function wc(e){return e&&e.__esModule?e:{default:e}}function _c(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 Sc=function(e){_c(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=xc.NESTING,r.value="&",r}return t}(yc.default);Nt.default=Sc;Ea.exports=Nt.default});var Pa=R((Pr,Oa)=>{"use strict";c();Pr.__esModule=!0;Pr.default=kc;function kc(e){return e.sort(function(t,n){return t-n})}Oa.exports=Pr.default});var ni=R(O=>{"use strict";c();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 Tc=38;O.ampersand=Tc;var Ec=42;O.asterisk=Ec;var Oc=64;O.at=Oc;var Pc=44;O.comma=Pc;var Ac=58;O.colon=Ac;var Ic=59;O.semicolon=Ic;var Rc=40;O.openParenthesis=Rc;var Lc=41;O.closeParenthesis=Lc;var Cc=91;O.openSquare=Cc;var Dc=93;O.closeSquare=Dc;var Mc=36;O.dollar=Mc;var Fc=126;O.tilde=Fc;var Nc=94;O.caret=Nc;var Wc=43;O.plus=Wc;var $c=61;O.equals=$c;var qc=124;O.pipe=qc;var Bc=62;O.greaterThan=Bc;var Uc=32;O.space=Uc;var Aa=39;O.singleQuote=Aa;var zc=34;O.doubleQuote=zc;var Gc=47;O.slash=Gc;var jc=33;O.bang=jc;var Vc=92;O.backslash=Vc;var Hc=13;O.cr=Hc;var Yc=12;O.feed=Yc;var Xc=10;O.newline=Xc;var Qc=9;O.tab=Qc;var Jc=Aa;O.str=Jc;var Kc=-1;O.comment=Kc;var Zc=-2;O.word=Zc;var ed=-3;O.combinator=ed});var La=R(Wt=>{"use strict";c();Wt.__esModule=!0;Wt.default=sd;Wt.FIELDS=void 0;var k=td(ni()),nt,G;function Ra(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ra=function(){return e},e}function td(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ra();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 a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var rd=(nt={},nt[k.tab]=!0,nt[k.newline]=!0,nt[k.cr]=!0,nt[k.feed]=!0,nt),nd=(G={},G[k.space]=!0,G[k.tab]=!0,G[k.newline]=!0,G[k.cr]=!0,G[k.feed]=!0,G[k.ampersand]=!0,G[k.asterisk]=!0,G[k.bang]=!0,G[k.comma]=!0,G[k.colon]=!0,G[k.semicolon]=!0,G[k.openParenthesis]=!0,G[k.closeParenthesis]=!0,G[k.openSquare]=!0,G[k.closeSquare]=!0,G[k.singleQuote]=!0,G[k.doubleQuote]=!0,G[k.plus]=!0,G[k.pipe]=!0,G[k.tilde]=!0,G[k.greaterThan]=!0,G[k.equals]=!0,G[k.dollar]=!0,G[k.caret]=!0,G[k.slash]=!0,G),ii={},Ia="0123456789abcdefABCDEF";for(Ar=0;Ar<Ia.length;Ar++)ii[Ia.charCodeAt(Ar)]=!0;var Ar;function id(e,t){var n=t,r;do{if(r=e.charCodeAt(n),nd[r])return n-1;r===k.backslash?n=od(e,n)+1:n++}while(n<e.length);return n-1}function od(e,t){var n=t,r=e.charCodeAt(n+1);if(!rd[r])if(ii[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(ii[r]&&i<6);i<6&&r===k.space&&n++}else n++;return n}var ad={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};Wt.FIELDS=ad;function sd(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,a=-1,o=1,s=0,u=0,l,f,p,g,m,d,h,w,b,_,E,A,D;function F(L,M){if(e.safe)n+=M,b=n.length-1;else throw e.error("Unclosed "+L,o,s-a,s)}for(;s<i;){switch(l=n.charCodeAt(s),l===k.newline&&(a=s,o+=1),l){case k.space:case k.tab:case k.newline:case k.cr:case k.feed:b=s;do b+=1,l=n.charCodeAt(b),l===k.newline&&(a=b,o+=1);while(l===k.space||l===k.newline||l===k.tab||l===k.cr||l===k.feed);D=k.space,g=o,p=b-a-1,u=b;break;case k.plus:case k.greaterThan:case k.tilde:case k.pipe:b=s;do b+=1,l=n.charCodeAt(b);while(l===k.plus||l===k.greaterThan||l===k.tilde||l===k.pipe);D=k.combinator,g=o,p=s-a,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=s,D=l,g=o,p=s-a,u=b+1;break;case k.singleQuote:case k.doubleQuote:A=l===k.singleQuote?"'":'"',b=s;do for(m=!1,b=n.indexOf(A,b+1),b===-1&&F("quote",A),d=b;n.charCodeAt(d-1)===k.backslash;)d-=1,m=!m;while(m);D=k.str,g=o,p=s-a,u=b+1;break;default:l===k.slash&&n.charCodeAt(s+1)===k.asterisk?(b=n.indexOf("*/",s+2)+1,b===0&&F("comment","*/"),f=n.slice(s,b+1),w=f.split(`
|
|
3
|
+
`),h=w.length-1,h>0?(_=o+h,E=b-w[h].length):(_=o,E=a),D=k.comment,o=_,g=_,p=b-E):l===k.slash?(b=s,D=l,g=o,p=s-a,u=b+1):(b=id(n,s),D=k.word,g=o,p=b-a),u=b+1;break}t.push([D,o,s-a,g,p,s,u]),E&&(a=E,E=null),s=u}return t}});var qa=R(($t,$a)=>{"use strict";c();$t.__esModule=!0;$t.default=void 0;var ud=be(Pn()),oi=be(In()),ld=be(Cn()),Ca=be(Mn()),fd=be(Nn()),cd=be(qn()),ai=be(Un()),dd=be(Gn()),Da=Ir(Qn()),pd=be(Kn()),si=be(ei()),hd=be(ri()),md=be(Pa()),S=Ir(La()),T=Ir(ni()),gd=Ir(ne()),Q=xt(),Ye,ui;function Wa(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Wa=function(){return e},e}function Ir(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Wa();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 a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function be(e){return e&&e.__esModule?e:{default:e}}function Ma(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 vd(e,t,n){return t&&Ma(e.prototype,t),n&&Ma(e,n),e}var ci=(Ye={},Ye[T.space]=!0,Ye[T.cr]=!0,Ye[T.feed]=!0,Ye[T.newline]=!0,Ye[T.tab]=!0,Ye),bd=Object.assign({},ci,(ui={},ui[T.comment]=!0,ui));function Fa(e){return{line:e[S.FIELDS.START_LINE],column:e[S.FIELDS.START_COL]}}function Na(e){return{line:e[S.FIELDS.END_LINE],column:e[S.FIELDS.END_COL]}}function Xe(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function it(e){return Xe(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],e[S.FIELDS.END_LINE],e[S.FIELDS.END_COL])}function li(e,t){if(!!e)return Xe(e[S.FIELDS.START_LINE],e[S.FIELDS.START_COL],t[S.FIELDS.END_LINE],t[S.FIELDS.END_COL])}function ot(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Q.ensureObject)(e,"raws"),e[t]=(0,Q.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function fi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function yd(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var xd=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=li(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new ud.default({source:i}),this.root.errorGenerator=this._errorGenerator();var a=new oi.default({source:{start:{line:1,column:1}}});this.root.append(a),this.current=a,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,a){return typeof r.rule=="string"?new Error(i):r.rule.error(i,a)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[S.FIELDS.TYPE]!==T.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[S.FIELDS.TYPE]!==T.closeSquare)return this.expected("closing square bracket",this.currToken[S.FIELDS.START_POS]);var a=r.length,o={source:Xe(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[S.FIELDS.START_POS]};if(a===1&&!~[T.word].indexOf(r[0][S.FIELDS.TYPE]))return this.expected("attribute",r[0][S.FIELDS.START_POS]);for(var s=0,u="",l="",f=null,p=!1;s<a;){var g=r[s],m=this.content(g),d=r[s+1];switch(g[S.FIELDS.TYPE]){case T.space:if(p=!0,this.options.lossy)break;if(f){(0,Q.ensureObject)(o,"spaces",f);var h=o.spaces[f].after||"";o.spaces[f].after=h+m;var w=(0,Q.getProp)(o,"raws","spaces",f,"after")||null;w&&(o.raws.spaces[f].after=w+m)}else u=u+m,l=l+m;break;case T.asterisk:if(d[S.FIELDS.TYPE]===T.equals)o.operator=m,f="operator";else if((!o.namespace||f==="namespace"&&!p)&&d){u&&((0,Q.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,Q.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+m;var b=(0,Q.getProp)(o,"raws","namespace")||null;b&&(o.raws.namespace+=m),f="namespace"}p=!1;break;case T.dollar:if(f==="value"){var _=(0,Q.getProp)(o,"raws","value");o.value+="$",_&&(o.raws.value=_+"$");break}case T.caret:d[S.FIELDS.TYPE]===T.equals&&(o.operator=m,f="operator"),p=!1;break;case T.combinator:if(m==="~"&&d[S.FIELDS.TYPE]===T.equals&&(o.operator=m,f="operator"),m!=="|"){p=!1;break}d[S.FIELDS.TYPE]===T.equals?(o.operator=m,f="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),p=!1;break;case T.word:if(d&&this.content(d)==="|"&&r[s+2]&&r[s+2][S.FIELDS.TYPE]!==T.equals&&!o.operator&&!o.namespace)o.namespace=m,f="namespace";else if(!o.attribute||f==="attribute"&&!p){u&&((0,Q.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,Q.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+m;var E=(0,Q.getProp)(o,"raws","attribute")||null;E&&(o.raws.attribute+=m),f="attribute"}else if(!o.value&&o.value!==""||f==="value"&&!p){var A=(0,Q.unesc)(m),D=(0,Q.getProp)(o,"raws","value")||"",F=o.value||"";o.value=F+A,o.quoteMark=null,(A!==m||D)&&((0,Q.ensureObject)(o,"raws"),o.raws.value=(D||F)+m),f="value"}else{var L=m==="i"||m==="I";(o.value||o.value==="")&&(o.quoteMark||p)?(o.insensitive=L,(!L||m==="I")&&((0,Q.ensureObject)(o,"raws"),o.raws.insensitiveFlag=m),f="insensitive",u&&((0,Q.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,Q.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(f="value",o.value+=m,o.raws.value&&(o.raws.value+=m))}p=!1;break;case T.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:g[S.FIELDS.START_POS]});var M=(0,Da.unescapeValue)(m),N=M.unescaped,U=M.quoteMark;o.value=N,o.quoteMark=U,f="value",(0,Q.ensureObject)(o,"raws"),o.raws.value=m,p=!1;break;case T.equals:if(!o.attribute)return this.expected("attribute",g[S.FIELDS.START_POS],m);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:g[S.FIELDS.START_POS]});o.operator=o.operator?o.operator+m:m,f="operator",p=!1;break;case T.comment:if(f)if(p||d&&d[S.FIELDS.TYPE]===T.space||f==="insensitive"){var q=(0,Q.getProp)(o,"spaces",f,"after")||"",K=(0,Q.getProp)(o,"raws","spaces",f,"after")||q;(0,Q.ensureObject)(o,"raws","spaces",f),o.raws.spaces[f].after=K+m}else{var ee=o[f]||"",z=(0,Q.getProp)(o,"raws",f)||ee;(0,Q.ensureObject)(o,"raws"),o.raws[f]=z+m}else l=l+m;break;default:return this.error('Unexpected "'+m+'" found.',{index:g[S.FIELDS.START_POS]})}s++}ot(o,"attribute"),ot(o,"namespace"),this.newNode(new Da.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,a=[],o="",s=void 0;do if(ci[this.currToken[S.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[S.FIELDS.TYPE]===T.comment){var u={};o&&(u.before=o,o=""),s=new Ca.default({value:this.content(),source:it(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS],spaces:u}),a.push(s)}while(++this.position<r);if(o){if(s)s.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];a.push(new ai.default({value:"",source:Xe(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:o,after:""}}))}}return a},t.convertWhitespaceNodesToSpace=function(r,i){var a=this;i===void 0&&(i=!1);var o="",s="";r.forEach(function(l){var f=a.lossySpace(l.spaces.before,i),p=a.lossySpace(l.rawSpaceBefore,i);o+=f+a.lossySpace(l.spaces.after,i&&f.length===0),s+=f+l.value+a.lossySpace(l.rawSpaceAfter,i&&p.length===0)}),s===o&&(s=void 0);var u={space:o,rawSpace:s};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][S.FIELDS.TYPE]===T.slash&&this.tokens[r+1]&&this.tokens[r+1][S.FIELDS.TYPE]===T.word&&this.tokens[r+2]&&this.tokens[r+2][S.FIELDS.TYPE]===T.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Q.unesc)(r).toLowerCase(),a={};i!==r&&(a.value="/"+r+"/");var o=new si.default({value:"/"+i+"/",source:Xe(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:a});return this.position=this.position+3,o}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]===T.comma){var a=this.parseWhitespaceEquivalentTokens(i);if(a.length>0){var o=this.current.last;if(o){var s=this.convertWhitespaceNodesToSpace(a),u=s.space,l=s.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else a.forEach(function(D){return r.newNode(D)})}return}var f=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var g;if(this.isNamedCombinator()?g=this.namedCombinator():this.currToken[S.FIELDS.TYPE]===T.combinator?(g=new si.default({value:this.content(),source:it(this.currToken),sourceIndex:this.currToken[S.FIELDS.START_POS]}),this.position++):ci[this.currToken[S.FIELDS.TYPE]]||p||this.unexpected(),g){if(p){var m=this.convertWhitespaceNodesToSpace(p),d=m.space,h=m.rawSpace;g.spaces.before=d,g.rawSpaceBefore=h}}else{var w=this.convertWhitespaceNodesToSpace(p,!0),b=w.space,_=w.rawSpace;_||(_=b);var E={},A={spaces:{}};b.endsWith(" ")&&_.endsWith(" ")?(E.before=b.slice(0,b.length-1),A.spaces.before=_.slice(0,_.length-1)):b.startsWith(" ")&&_.startsWith(" ")?(E.after=b.slice(1),A.spaces.after=_.slice(1)):A.value=_,g=new si.default({value:" ",source:li(f,this.tokens[this.position-1]),sourceIndex:f[S.FIELDS.START_POS],spaces:E,raws:A})}return this.currToken&&this.currToken[S.FIELDS.TYPE]===T.space&&(g.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(g)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new oi.default({source:{start:Fa(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 Ca.default({value:this.content(),source:it(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]===T.word)return this.position++,this.word(r);if(this.nextToken[S.FIELDS.TYPE]===T.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 hd.default({value:this.content(),source:it(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===gd.PSEUDO){var a=new oi.default({source:{start:Fa(this.tokens[this.position-1])}}),o=this.current;for(r.append(a),this.current=a;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===T.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===T.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Na(this.currToken),this.current.parent.source.end=Na(this.currToken),this.position++);this.current=o}else{for(var s=this.currToken,u="(",l;this.position<this.tokens.length&&i;)this.currToken[S.FIELDS.TYPE]===T.openParenthesis&&i++,this.currToken[S.FIELDS.TYPE]===T.closeParenthesis&&i--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new ai.default({value:u,source:Xe(s[S.FIELDS.START_LINE],s[S.FIELDS.START_COL],l[S.FIELDS.END_LINE],l[S.FIELDS.END_COL]),sourceIndex:s[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="",a=this.currToken;this.currToken&&this.currToken[S.FIELDS.TYPE]===T.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]===T.word)this.splitWord(!1,function(o,s){i+=o,r.newNode(new dd.default({value:i,source:li(a,r.currToken),sourceIndex:a[S.FIELDS.START_POS]})),s>1&&r.nextToken&&r.nextToken[S.FIELDS.TYPE]===T.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]===T.comma||this.prevToken[S.FIELDS.TYPE]===T.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]===T.comma||this.nextToken[S.FIELDS.TYPE]===T.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new ai.default({value:this.content(),source:it(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 a=this.currToken;this.newNode(new pd.default({value:this.content(),source:it(a),sourceIndex:a[S.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var a=this,o=this.nextToken,s=this.content();o&&~[T.dollar,T.caret,T.equals,T.word].indexOf(o[S.FIELDS.TYPE]);){this.position++;var u=this.content();if(s+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[S.FIELDS.TYPE]===T.space&&(s+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var f=fi(s,".").filter(function(d){var h=s[d-1]==="\\",w=/^\d+\.\d+%$/.test(s);return!h&&!w}),p=fi(s,"#").filter(function(d){return s[d-1]!=="\\"}),g=fi(s,"#{");g.length&&(p=p.filter(function(d){return!~g.indexOf(d)}));var m=(0,md.default)(yd([0].concat(f,p)));m.forEach(function(d,h){var w=m[h+1]||s.length,b=s.slice(d,w);if(h===0&&i)return i.call(a,b,m.length);var _,E=a.currToken,A=E[S.FIELDS.START_POS]+m[h],D=Xe(E[1],E[2]+d,E[3],E[2]+(w-1));if(~f.indexOf(d)){var F={value:b.slice(1),source:D,sourceIndex:A};_=new ld.default(ot(F,"value"))}else if(~p.indexOf(d)){var L={value:b.slice(1),source:D,sourceIndex:A};_=new fd.default(ot(L,"value"))}else{var M={value:b,source:D,sourceIndex:A};ot(M,"value"),_=new cd.default(M)}a.newNode(_,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 T.space:this.space();break;case T.comment:this.comment();break;case T.openParenthesis:this.parentheses();break;case T.closeParenthesis:r&&this.missingParenthesis();break;case T.openSquare:this.attribute();break;case T.dollar:case T.caret:case T.equals:case T.word:this.word();break;case T.colon:this.pseudo();break;case T.comma:this.comma();break;case T.asterisk:this.universal();break;case T.ampersand:this.nesting();break;case T.slash:case T.combinator:this.combinator();break;case T.str:this.string();break;case T.closeSquare:this.missingSquareBracket();case T.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,a){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var s=/^[aeiou]/.test(r[0])?"an":"a";return a?this.error("Expected "+s+" "+r+', found "'+a+'" instead.',{index:i}):this.error("Expected "+s+" "+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]===T.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,ot(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(bd[this.tokens[i][S.FIELDS.TYPE]]){i++;continue}else return i;return-1},vd(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}();$t.default=xd;$a.exports=$t.default});var Ua=R((qt,Ba)=>{"use strict";c();qt.__esModule=!0;qt.default=void 0;var wd=_d(qa());function _d(e){return e&&e.__esModule?e:{default:e}}var Sd=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 a=Object.assign({},this.options,i);return a.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 a=new wd.default(r,this._parseOptions(i));return a.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var a=this;return i===void 0&&(i={}),new Promise(function(o,s){try{var u=a._root(r,i);Promise.resolve(a.func(u)).then(function(l){var f=void 0;return a._shouldUpdateSelector(r,i)&&(f=u.toString(),r.selector=f),{transform:l,root:u,string:f}}).then(o,s)}catch(l){s(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var a=this._root(r,i),o=this.func(a);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var s=void 0;return i.updateSelector&&typeof r!="string"&&(s=a.toString(),r.selector=s),{transform:o,root:a,string:s}},t.ast=function(r,i){return this._run(r,i).then(function(a){return a.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(a){return a.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(a){return a.string||a.root.toString()})},t.processSync=function(r,i){var a=this._runSync(r,i);return a.string||a.root.toString()},e}();qt.default=Sd;Ba.exports=qt.default});var za=R(V=>{"use strict";c();V.__esModule=!0;V.universal=V.tag=V.string=V.selector=V.root=V.pseudo=V.nesting=V.id=V.comment=V.combinator=V.className=V.attribute=void 0;var kd=ye(Qn()),Td=ye(Cn()),Ed=ye(ei()),Od=ye(Mn()),Pd=ye(Nn()),Ad=ye(ri()),Id=ye(Gn()),Rd=ye(Pn()),Ld=ye(In()),Cd=ye(Un()),Dd=ye(qn()),Md=ye(Kn());function ye(e){return e&&e.__esModule?e:{default:e}}var Fd=function(t){return new kd.default(t)};V.attribute=Fd;var Nd=function(t){return new Td.default(t)};V.className=Nd;var Wd=function(t){return new Ed.default(t)};V.combinator=Wd;var $d=function(t){return new Od.default(t)};V.comment=$d;var qd=function(t){return new Pd.default(t)};V.id=qd;var Bd=function(t){return new Ad.default(t)};V.nesting=Bd;var Ud=function(t){return new Id.default(t)};V.pseudo=Ud;var zd=function(t){return new Rd.default(t)};V.root=zd;var Gd=function(t){return new Ld.default(t)};V.selector=Gd;var jd=function(t){return new Cd.default(t)};V.string=jd;var Vd=function(t){return new Dd.default(t)};V.tag=Vd;var Hd=function(t){return new Md.default(t)};V.universal=Hd});var Ha=R(W=>{"use strict";c();W.__esModule=!0;W.isNode=di;W.isPseudoElement=Va;W.isPseudoClass=ip;W.isContainer=op;W.isNamespace=ap;W.isUniversal=W.isTag=W.isString=W.isSelector=W.isRoot=W.isPseudo=W.isNesting=W.isIdentifier=W.isComment=W.isCombinator=W.isClassName=W.isAttribute=void 0;var J=ne(),le,Yd=(le={},le[J.ATTRIBUTE]=!0,le[J.CLASS]=!0,le[J.COMBINATOR]=!0,le[J.COMMENT]=!0,le[J.ID]=!0,le[J.NESTING]=!0,le[J.PSEUDO]=!0,le[J.ROOT]=!0,le[J.SELECTOR]=!0,le[J.STRING]=!0,le[J.TAG]=!0,le[J.UNIVERSAL]=!0,le);function di(e){return typeof e=="object"&&Yd[e.type]}function xe(e,t){return di(t)&&t.type===e}var Ga=xe.bind(null,J.ATTRIBUTE);W.isAttribute=Ga;var Xd=xe.bind(null,J.CLASS);W.isClassName=Xd;var Qd=xe.bind(null,J.COMBINATOR);W.isCombinator=Qd;var Jd=xe.bind(null,J.COMMENT);W.isComment=Jd;var Kd=xe.bind(null,J.ID);W.isIdentifier=Kd;var Zd=xe.bind(null,J.NESTING);W.isNesting=Zd;var pi=xe.bind(null,J.PSEUDO);W.isPseudo=pi;var ep=xe.bind(null,J.ROOT);W.isRoot=ep;var tp=xe.bind(null,J.SELECTOR);W.isSelector=tp;var rp=xe.bind(null,J.STRING);W.isString=rp;var ja=xe.bind(null,J.TAG);W.isTag=ja;var np=xe.bind(null,J.UNIVERSAL);W.isUniversal=np;function Va(e){return pi(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 ip(e){return pi(e)&&!Va(e)}function op(e){return!!(di(e)&&e.walk)}function ap(e){return Ga(e)||ja(e)}});var Ya=R(Se=>{"use strict";c();Se.__esModule=!0;var hi=ne();Object.keys(hi).forEach(function(e){e==="default"||e==="__esModule"||e in Se&&Se[e]===hi[e]||(Se[e]=hi[e])});var mi=za();Object.keys(mi).forEach(function(e){e==="default"||e==="__esModule"||e in Se&&Se[e]===mi[e]||(Se[e]=mi[e])});var gi=Ha();Object.keys(gi).forEach(function(e){e==="default"||e==="__esModule"||e in Se&&Se[e]===gi[e]||(Se[e]=gi[e])})});var Ja=R((Bt,Qa)=>{"use strict";c();Bt.__esModule=!0;Bt.default=void 0;var sp=fp(Ua()),up=lp(Ya());function Xa(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Xa=function(){return e},e}function lp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Xa();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 a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function fp(e){return e&&e.__esModule?e:{default:e}}var vi=function(t){return new sp.default(t)};Object.assign(vi,up);delete vi.__esModule;var cp=vi;Bt.default=cp;Qa.exports=Bt.default});var Ka=R(bi=>{"use strict";c();Object.defineProperty(bi,"__esModule",{value:!0});Object.defineProperty(bi,"default",{enumerable:!0,get:()=>dp});function dp(e){return e.replace(/\\,/g,"\\2c ")}});var es=R((cg,Za)=>{"use strict";c();Za.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 xi=R(yi=>{"use strict";c();Object.defineProperty(yi,"__esModule",{value:!0});function pp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}pp(yi,{parseColor:()=>yp,formatColor:()=>xp});var ts=hp(es());function hp(e){return e&&e.__esModule?e:{default:e}}var mp=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,gp=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ne=/(?:\d+|\d*\.\d+)%?/,Rr=/(?:\s*,\s*|\s+)/,rs=/\s*[,/]\s*/,We=/var\(--(?:[^ )]*?)\)/,vp=new RegExp(`^(rgb)a?\\(\\s*(${Ne.source}|${We.source})(?:${Rr.source}(${Ne.source}|${We.source}))?(?:${Rr.source}(${Ne.source}|${We.source}))?(?:${rs.source}(${Ne.source}|${We.source}))?\\s*\\)$`),bp=new RegExp(`^(hsl)a?\\(\\s*((?:${Ne.source})(?:deg|rad|grad|turn)?|${We.source})(?:${Rr.source}(${Ne.source}|${We.source}))?(?:${Rr.source}(${Ne.source}|${We.source}))?(?:${rs.source}(${Ne.source}|${We.source}))?\\s*\\)$`);function yp(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 ts.default)return{mode:"rgb",color:ts.default[e].map(u=>u.toString())};let i=e.replace(gp,(u,l,f,p,g)=>["#",l,l,f,f,p,p,g?g+g:""].join("")).match(mp);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 a;let o=(a=e.match(vp))!==null&&a!==void 0?a:e.match(bp);if(o===null)return null;let s=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!t&&s.length!==3||s.length<3&&!s.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:s,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function xp({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var _i=R(wi=>{"use strict";c();Object.defineProperty(wi,"__esModule",{value:!0});function wp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}wp(wi,{withAlphaValue:()=>_p,default:()=>Sp});var Lr=xi();function _p(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Lr.parseColor)(e,{loose:!0});return r===null?n:(0,Lr.formatColor)({...r,alpha:t})}function Sp({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(a=>[a,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Lr.parseColor)(e);return i===null?Object.fromEntries(r.map(a=>[a,e])):i.alpha!==void 0?Object.fromEntries(r.map(a=>[a,e])):{[n]:"1",...Object.fromEntries(r.map(a=>[a,(0,Lr.formatColor)({...i,alpha:`var(${n})`})]))}}});var ss=R(Si=>{"use strict";c();Object.defineProperty(Si,"__esModule",{value:!0});function kp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}kp(Si,{pattern:()=>Ep,withoutCapturing:()=>is,any:()=>os,optional:()=>Op,zeroOrMore:()=>Pp,nestedBrackets:()=>as,escape:()=>Qe});var ns=/[\\^$.*+?()[\]{}|]/g,Tp=RegExp(ns.source);function Ut(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function Ep(e){return new RegExp(Ut(e),"g")}function is(e){return new RegExp(`(?:${Ut(e)})`,"g")}function os(e){return`(?:${e.map(Ut).join("|")})`}function Op(e){return`(?:${Ut(e)})?`}function Pp(e){return`(?:${Ut(e)})*`}function as(e,t,n=1){return is([Qe(e),/[^\s]*/,n===1?`[^${Qe(e)}${Qe(t)}s]*`:os([`[^${Qe(e)}${Qe(t)}s]*`,as(e,t,n-1)]),/[^\s]*/,Qe(t)])}function Qe(e){return e&&Tp.test(e)?e.replace(ns,"\\$&"):e||""}});var ls=R(ki=>{"use strict";c();Object.defineProperty(ki,"__esModule",{value:!0});Object.defineProperty(ki,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Rp});var Ap=Ip(ss());function us(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(us=function(r){return r?n:t})(e)}function Ip(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=us(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function*Rp(e,t){let n=new RegExp(`[(){}\\[\\]${Ap.escape(t)}]`,"g"),r=0,i=0,a=!1,o=0,s=0,u=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[o],p=o===u-1,g=f&&p;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(s===0&&(s=l.index),o++),g&&r===0&&(a=!0,yield e.substring(i,s),i=s+u),o===u&&(o=0,s=0)}a?yield e.substring(i):yield e}});var cs=R(Ti=>{"use strict";c();Object.defineProperty(Ti,"__esModule",{value:!0});function Lp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Lp(Ti,{parseBoxShadowValue:()=>Fp,formatBoxShadowValue:()=>Np});var Cp=ls(),Dp=new Set(["inset","inherit","initial","revert","unset"]),Mp=/\ +(?![^(]*\))/g,fs=/^-?(\d+|\.\d+)(.*?)$/g;function Fp(e){return Array.from((0,Cp.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},a=r.split(Mp),o=new Set;for(let s of a)fs.lastIndex=0,!o.has("KEYWORD")&&Dp.has(s)?(i.keyword=s,o.add("KEYWORD")):fs.test(s)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=s,o.add("SPREAD")):(i.blur=s,o.add("BLUR")):(i.y=s,o.add("Y")):(i.x=s,o.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(s)):i.color=s;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Np(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 bs=R(Oi=>{"use strict";c();Object.defineProperty(Oi,"__esModule",{value:!0});function Wp(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Wp(Oi,{normalize:()=>$e,url:()=>hs,number:()=>Bp,percentage:()=>ms,length:()=>gs,lineWidth:()=>Gp,shadow:()=>jp,color:()=>Vp,image:()=>Hp,gradient:()=>vs,position:()=>Qp,familyName:()=>Jp,genericName:()=>Zp,absoluteSize:()=>th,relativeSize:()=>nh});var $p=xi(),qp=cs(),Ei=["min","max","clamp","calc"],ps=/,(?![^(]*\))/g,Cr=/_(?![^(]*\))/g;function $e(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:$e(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 hs(e){return e.startsWith("url(")}function Bp(e){return!isNaN(Number(e))||Ei.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function ms(e){return e.split(Cr).every(t=>/%$/g.test(t)||Ei.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Up=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],ds=`(?:${Up.join("|")})`;function gs(e){return e.split(Cr).every(t=>t==="0"||new RegExp(`${ds}$`).test(t)||Ei.some(n=>new RegExp(`^${n}\\(.+?${ds}`).test(t)))}var zp=new Set(["thin","medium","thick"]);function Gp(e){return zp.has(e)}function jp(e){let t=(0,qp.parseBoxShadowValue)($e(e));for(let n of t)if(!n.valid)return!1;return!0}function Vp(e){let t=0;return e.split(Cr).every(r=>(r=$e(r),r.startsWith("var(")?!0:(0,$p.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Hp(e){let t=0;return e.split(ps).every(r=>(r=$e(r),r.startsWith("var(")?!0:hs(r)||vs(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var Yp=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function vs(e){e=$e(e);for(let t of Yp)if(e.startsWith(`${t}(`))return!0;return!1}var Xp=new Set(["center","top","right","bottom","left"]);function Qp(e){let t=0;return e.split(Cr).every(r=>(r=$e(r),r.startsWith("var(")?!0:Xp.has(r)||gs(r)||ms(r)?(t++,!0):!1))?t>0:!1}function Jp(e){let t=0;return e.split(ps).every(r=>(r=$e(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Kp=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Zp(e){return Kp.has(e)}var eh=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function th(e){return eh.has(e)}var rh=new Set(["larger","smaller"]);function nh(e){return rh.has(e)}});var Es=R(Ii=>{"use strict";c();Object.defineProperty(Ii,"__esModule",{value:!0});function ih(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ih(Ii,{updateAllClasses:()=>sh,asValue:()=>Gt,parseColorFormat:()=>Pi,asColor:()=>Ss,asLookupValue:()=>ks,coerceValue:()=>ch});var oh=Ai(Ja()),ah=Ai(Ka()),ys=_i(),fe=bs(),xs=Ai(hn());function Ai(e){return e&&e.__esModule?e:{default:e}}function sh(e,t){return(0,oh.default)(i=>{i.walkClasses(a=>{let o=t(a.value);a.value=o,a.raws&&a.raws.value&&(a.raws.value=(0,ah.default)(a.raws.value))})}).processSync(e)}function _s(e,t){if(!zt(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,fe.normalize)(n)}function uh(e,t={},n){let r=t[e];if(r!==void 0)return(0,xs.default)(r);if(zt(e)){let i=_s(e,n);return i===void 0?void 0:(0,xs.default)(i)}}function Gt(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("-")?uh(e.slice(1),t.values,n):_s(e,n)}function zt(e){return e.startsWith("[")&&e.endsWith("]")}function lh(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Pi(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Ss(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Pi((i=t.values)===null||i===void 0?void 0:i[e])}let[a,o]=lh(e);if(o!==void 0){var s,u,l,f;let p=(f=(s=t.values)===null||s===void 0?void 0:s[a])!==null&&f!==void 0?f:zt(a)?a.slice(1,-1):void 0;return p===void 0?void 0:(p=Pi(p),zt(o)?(0,ys.withAlphaValue)(p,o.slice(1,-1)):((u=n.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,ys.withAlphaValue)(p,n.theme.opacity[o]))}return Gt(e,t,{validate:fe.color})}function ks(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function we(e){return(t,n)=>Gt(t,n,{validate:e})}var Ts={any:Gt,color:Ss,url:we(fe.url),image:we(fe.image),length:we(fe.length),percentage:we(fe.percentage),position:we(fe.position),lookup:ks,"generic-name":we(fe.genericName),"family-name":we(fe.familyName),number:we(fe.number),"line-width":we(fe.lineWidth),"absolute-size":we(fe.absoluteSize),"relative-size":we(fe.relativeSize),shadow:we(fe.shadow)},ws=Object.keys(Ts);function fh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function ch(e,t,n,r){if(zt(t)){let i=t.slice(1,-1),[a,o]=fh(i,":");if(!/^[\w-_]+$/g.test(a))o=i;else if(a!==void 0&&!ws.includes(a))return[];if(o.length>0&&ws.includes(a))return[Gt(`[${o}]`,n),a]}for(let i of[].concat(e)){let a=Ts[i](t,n,{tailwindConfig:r});if(a!==void 0)return[a,i]}return[]}});var Os=R(Ri=>{"use strict";c();Object.defineProperty(Ri,"__esModule",{value:!0});Object.defineProperty(Ri,"default",{enumerable:!0,get:()=>dh});function dh(e){return typeof e=="function"?e({}):e}});var Ls=R(Ci=>{"use strict";c();Object.defineProperty(Ci,"__esModule",{value:!0});Object.defineProperty(Ci,"default",{enumerable:!0,get:()=>Lh});var ph=Je(hn()),hh=Je(Mo()),mh=Je(Fo()),gh=Je(vn()),vh=Je(Wo()),Is=$o(),Ps=qo(),bh=Uo(),yh=Je(zo()),xh=Go(),wh=Es(),_h=_i(),Sh=Je(Os());function Je(e){return e&&e.__esModule?e:{default:e}}function at(e){return typeof e=="function"}function jt(e){return typeof e=="object"&&e!==null}function Vt(e,...t){let n=t.pop();for(let r of t)for(let i in r){let a=n(e[i],r[i]);a===void 0?jt(e[i])&&jt(r[i])?e[i]=Vt(e[i],r[i],n):e[i]=r[i]:e[i]=a}return e}var Li={colors:vh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,ph.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 kh(e,...t){return at(e)?e(...t):e}function Th(e){return e.reduce((t,{extend:n})=>Vt(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Eh(e){return{...e.reduce((t,n)=>(0,Is.defaults)(t,n),{}),extend:Th(e)}}function As(e,t){if(Array.isArray(e)&&jt(e[0]))return e.concat(t);if(Array.isArray(t)&&jt(t[0])&&jt(e))return[e,...t];if(Array.isArray(t))return t}function Oh({extend:e,...t}){return Vt(t,e,(n,r)=>!at(n)&&!r.some(at)?Vt({},n,...r,As):(i,a)=>Vt({},...[n,...r].map(o=>kh(o,i,a)),As))}function*Ph(e){let t=(0,Ps.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,a]=r,o=(0,Ps.toPath)(i);o.alpha=a,yield o}}function Ah(e){let t=(n,r)=>{for(let i of Ph(n)){let a=0,o=e;for(;o!=null&&a<i.length;)o=o[i[a++]],o=at(o)&&(i.alpha===void 0||a<=i.length-1)?o(t,Li):o;if(o!==void 0){if(i.alpha!==void 0){let s=(0,wh.parseColorFormat)(o);return(0,_h.withAlphaValue)(s,i.alpha,(0,Sh.default)(s))}return(0,yh.default)(o)?(0,xh.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...Li}),Object.keys(e).reduce((n,r)=>(n[r]=at(e[r])?e[r](t,Li):e[r],n),{})}function Rs(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(a=>{a.__isOptionsFunction&&(a=a());var o;t=[...t,...Rs([(o=a==null?void 0:a.config)!==null&&o!==void 0?o:{}])]})}),t}function Ih(e){return[...e].reduceRight((n,r)=>at(r)?r({corePlugins:n}):(0,mh.default)(r,n),hh.default)}function Rh(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function Lh(e){let t=[...Rs(e),{prefix:"",important:!1,separator:":",variantOrder:gh.default.variantOrder}];var n,r;return(0,bh.normalizeConfig)((0,Is.defaults)({theme:Ah(Oh(Eh(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:Ih(t.map(i=>i.corePlugins)),plugins:Rh(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Cs={};fo(Cs,{default:()=>Ch});var Ch,Ds=qr(()=>{c();Ch={yellow:e=>e}});var Ws=R(Di=>{"use strict";c();Object.defineProperty(Di,"__esModule",{value:!0});function Dh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Dh(Di,{flagEnabled:()=>Nh,issueFlagNotices:()=>Wh,default:()=>$h});var Mh=Ns((Ds(),ar(Cs))),Fh=Ns((br(),ar(vr)));function Ns(e){return e&&e.__esModule?e:{default:e}}var Ms={optimizeUniversalDefaults:!1},Ht={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Nh(e,t){if(Ht.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:Ms[t])!==null&&i!==void 0?i:!1)}if(Ht.experimental.includes(t)){var a,o,s;return e.experimental==="all"||((s=(o=e==null||(a=e.experimental)===null||a===void 0?void 0:a[t])!==null&&o!==void 0?o:Ms[t])!==null&&s!==void 0?s:!1)}return!1}function Fs(e){if(e.experimental==="all")return Ht.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>Ht.experimental.includes(n)&&e.experimental[n])}function Wh(e){if(process.env.JEST_WORKER_ID===void 0&&Fs(e).length>0){let t=Fs(e).map(n=>Mh.default.yellow(n)).join(", ");Fh.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 $h=Ht});var qs=R(Mi=>{"use strict";c();Object.defineProperty(Mi,"__esModule",{value:!0});Object.defineProperty(Mi,"default",{enumerable:!0,get:()=>$s});var qh=Uh(vn()),Bh=Ws();function Uh(e){return e&&e.__esModule?e:{default:e}}function $s(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[qh.default]).slice().reverse().flatMap(a=>$s(typeof a=="function"?a():a)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(a=>(0,Bh.flagEnabled)(e,a)).map(a=>r[a]);return[e,...i,...n]}});var Us=R(Fi=>{"use strict";c();Object.defineProperty(Fi,"__esModule",{value:!0});Object.defineProperty(Fi,"default",{enumerable:!0,get:()=>jh});var zh=Bs(Ls()),Gh=Bs(qs());function Bs(e){return e&&e.__esModule?e:{default:e}}function jh(...e){let[,...t]=(0,Gh.default)(e[0]);return(0,zh.default)([...e,...t])}});var Gs=R((kg,zs)=>{c();var Ni=Us();zs.exports=(Ni.__esModule?Ni:{default:Ni}).default});c();c();c();c();import*as Tu from"yoga-layout-prebuilt";var po=Tu;var Br;Br=po.default;function Eu(e){Br=e}function Ae(){return Br}c();c();c();var ct=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ou=ct((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Pu=ct((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Au=ct((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Iu=ct((e,t)=>{t.exports=["Hz","kHz"]}),Ru=ct((e,t)=>{t.exports=["s","ms"]}),Lu=Ou(),ho=Pu(),mo=Au(),go=Iu(),vo=Ru();function zr(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(Cu(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=Ur(e),this.unit="%";return}var t=Mu(e);if(!t){this.type="number",this.value=Ur(e);return}this.type=Nu(t),this.value=Ur(e.substr(0,e.length-t.length)),this.unit=t}zr.prototype.valueOf=function(){return this.value};zr.prototype.toString=function(){return this.value+(this.unit||"")};function Me(e){return new zr(e)}function Cu(e){var t=e.match(/\./g);return t?t.length:0}function Ur(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Du=[].concat(ho,go,Lu,mo,vo);function Mu(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Du.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var Fu=Object.assign(sr(ho,"angle"),sr(go,"frequency"),sr(mo,"resolution"),sr(vo,"time"));function sr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Nu(e){return Fu[e]||"length"}function Hr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function yo(e){return/^class\s/.test(e.toString())}function xo(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 Ge(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;let a=new Me(e);if(a.type==="length")switch(a.unit){case"em":return a.value*t;case"rem":return a.value*16;case"vw":return~~(a.value*r._viewportWidth/100);case"vh":return~~(a.value*r._viewportHeight/100);default:return a.value}else if(a.type==="angle")switch(a.unit){case"deg":return a.value;case"rad":return a.value*180/Math.PI;default:return a.value}else if(a.type==="percentage"&&i)return a.value/100*n}catch{}}function dt(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 ae(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(a=>`"${a}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var bo=void 0,Gr,jr,ur=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function je(e,t){if(!Gr||!jr){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Gr=new Intl.Segmenter(bo,{granularity:"word"}),jr=new Intl.Segmenter(bo,{granularity:"grapheme"})}return t==="word"?[...Gr.segment(e)].map(n=>n.segment):[...jr.segment(e)].map(n=>n.segment)}function P(e,t,n){let r="";for(let[i,a]of Object.entries(t))typeof a<"u"&&(r+=` ${i}="${a}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function wo(e=20){let t=new Map;function n(i,a){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,a)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var _o={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",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"},Wu=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Vr(e){if(!e)return"";if(Array.isArray(e))return e.map(Vr).join("");if(typeof e!="object")return String(e);let t=e.type;if(t==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:n,...r}=e.props||{};return`<${t}${Object.entries(r).map(([i,a])=>` ${_o[i]||i}="${a}"`).join("")}>${Vr(n)}</${t}>`}function So(e){let{viewBox:t,viewbox:n,width:r,height:i,className:a,style:o,children:s,...u}=e.props||{};t||(t=n);let l=t.split(" ").map(f=>parseInt(f,10));return u.xmlns="http://www.w3.org/2000/svg",u.viewBox=t,u.width=l[2],u.height=l[3],`data:image/svg+xml;utf8,${`<svg${Object.entries(u).map(([f,p])=>` ${_o[f]||f}="${p}"`).join("")}>${Vr(s)}</svg>`.replace(Wu,encodeURIComponent)}`}c();c();var ve="flex",ko={p:{display:ve,marginTop:"1em",marginBottom:"1em"},div:{display:ve},blockquote:{display:ve,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:ve,textAlign:"center"},hr:{display:ve,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:ve,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:ve,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:ve,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:ve,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:ve,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:ve,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:ve,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var $u=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function Yr(e){let t={};for(let n in e)$u.has(n)&&(t[n]=e[n]);return t}c();import{getPropertyName as Uu,getStylesForProperty as pt}from"css-to-react-native";import{parseElementStyle as zu}from"css-background-parser";import{parse as Gu}from"css-box-shadow";c();import qu from"postcss-value-parser";function Bu(e,t){try{let n=new Me(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 Xr(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=Bu(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}function Qr(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=qu(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?Xr(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...Xr(n[0],t,!0),...Xr(n[1],t,!1)}):{}}var ju=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Vu=new Set(["lineHeight"]);function Hu(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function ht(e,t){return typeof t=="number"?ju.has(e)?Vu.has(e)?t:String(t):t+"px":t}function Yu(e,t,n){if(e==="lineHeight")return{lineHeight:ht(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("/"),a=pt(e,r,!0),o=pt(e,i,!0);for(let s in a)o[s]=ht(e,a[s])+" "+ht(e,o[s]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=pt("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:ht(e+"Width",r.borderWidth),Style:ae(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},a={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let s in i)a["border"+o+s]=i[s];return a}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?Gu(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,s)=>{let u=~~(Math.random()*1e9);return r[u]=s,u+"px"}),a=pt("transform",i,!0);for(let o of a.transform)for(let s in o)r[o[s]]&&(o[s]=r[o[s]]);return a}}function To(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Eo=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Oo(e){if(typeof e=="string"&&Eo.test(e.trim()))return e.trim().replace(Eo,(t,n,r,i,a)=>`rgba(${n}, ${r}, ${i}, ${a})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=Oo(e[t]);return e}return e}function lr(e,t){var i;let n={};for(let a in e){if(a.startsWith("_")){n[a]=e[a];continue}let o=Uu(a),s=e.color||t.color;try{let u=Yu(o,e[a],s)||Hu(o,pt(o,ht(o,e[a]),!0),e[a],s);Object.assign(n,u)}catch(u){throw new Error(u.message+(u.message.includes(e[a])?`
|
|
4
|
+
`+To(o):`
|
|
5
|
+
in CSS rule \`${o}: ${e[a]}\`.${To(o)}`))}}if(n.backgroundImage){let{backgrounds:a}=zu(n);n.backgroundImage=a}let r=typeof n.fontSize=="number"?n.fontSize:t.fontSize;if(typeof r=="string")try{let a=new Me(r);switch(a.unit){case"em":r=a.value*t.fontSize;break;case"rem":r=a.value*16;break}}catch{r=16}typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=Qr(n.transformOrigin,r));for(let a in n){let o=n[a];if(a==="lineHeight")typeof o=="string"&&(o=n[a]=Ge(o,r,r,t,!0)/r);else{if(typeof o=="string"){let s=Ge(o,r,r,t);typeof s<"u"&&(n[a]=s),o=n[a]}if(typeof o=="string"||typeof o=="object"){let s=Oo(o);s&&(n[a]=s),o=n[a]}}if(a==="opacity"&&(o=n[a]=o*t.opacity),a==="transform"){let s=o;for(let u of s){let l=Object.keys(u)[0],f=u[l],p=typeof f=="string"&&(i=Ge(f,r,r,t))!=null?i:f;u[l]=p}}}return n}c();function Xu(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 a=t.getUint8(i+1+n);if(a===192||a===193||a===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function Qu(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function Ju(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var Jr=wo(100),Kr=new Map,Ku=["image/png","image/jpeg","image/gif","image/svg+xml"];function Zu(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}async function fr(e){if(!e)throw new Error("Image source is not provided.");if(e.startsWith("data:"))return[e];if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Kr.has(e))return Kr.get(e);let t=Jr.get(e);if(t)return t;let n=new Promise((r,i)=>{fetch(e).then(a=>{let o=a.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?a.text():a.arrayBuffer()}).then(a=>{if(typeof a=="string")try{let p=`data:image/svg+xml;base64,${btoa(a)}`,g=a.match(/<svg[^>]*>/)[0],m=g.match(/viewBox="0 0 (\d+) (\d+)"/),d=g.match(/width="(\d+)"/),h=g.match(/height="(\d+)"/);!m&&d&&h&&(m=[null,d[1],h[1]]);let w=+m[1]/+m[2],b=d&&h?[+d[1],+h[1]]:d?[+d[1],+d[1]/w]:h?[+h[1]*w,+h[1]]:[+m[1],+m[2]];Jr.set(e,[p,...b]),r([p,...b]);return}catch(p){throw new Error(`Failed to parse SVG image: ${p.message}`)}let o,s;switch([...new Uint8Array(a.slice(0,4))].map(p=>p.toString(16)).join("")){case"89504e47":o="image/png",s=Ju(a);break;case"47494638":o="image/gif",s=Qu(a);break;case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":case"ffd8ffe3":case"ffd8ffe8":o="image/jpeg",s=Xu(a);break}if(!Ku.includes(o))throw new Error(`Unsupported image type: ${o||"unknown"}`);let f=`data:${o};base64,${Zu(a)}`;Jr.set(e,[f,...s]),r([f,...s])}).catch(i)});return Kr.set(e,n),n}async function Zr(e,t,n,r,i){let a=Ae(),o={...n,...lr(ko[t],n),...lr(r,n)};if(t==="img"){let[s,u,l]=await fr(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,p=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),g=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),m=o.width||i.width,d=o.height||i.height,h=typeof m!="string"&&typeof d!="string";m!==void 0&&h&&(m-=p),d!==void 0&&h&&(d-=g),m===void 0&&d===void 0&&(m=u,d=l),m===void 0&&e.setAspectRatio(1/f),d===void 0&&e.setAspectRatio(1/f),o.width=h?m+p:m,o.height=h?d+g:d,o.__src=s}if(t==="svg"){let u=(i.viewBox||i.viewbox).split(" ").map(g=>parseInt(g,10)),l=u[3]/u[2],{width:f,height:p}=i;typeof f>"u"&&p?typeof p=="string"&&p.endsWith("%")?f=parseInt(p)/l+"%":f=parseInt(p)/l:typeof p>"u"&&f?typeof f=="string"&&f.endsWith("%")?p=parseInt(f)*l+"%":p=parseInt(f)*l:(f||(f=u[2]),p||(p=u[3])),o.width||(o.width=f),o.height||(o.height=p)}return e.setDisplay(ae(o.display,{flex:a.DISPLAY_FLEX,none:a.DISPLAY_NONE},a.DISPLAY_FLEX,"display")),e.setAlignContent(ae(o.alignContent,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,"space-between":a.ALIGN_SPACE_BETWEEN,"space-around":a.ALIGN_SPACE_AROUND,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_AUTO,"alignContent")),e.setAlignItems(ae(o.alignItems,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_FLEX_START,"alignItems")),e.setAlignSelf(ae(o.alignSelf,{stretch:a.ALIGN_STRETCH,center:a.ALIGN_CENTER,"flex-start":a.ALIGN_FLEX_START,"flex-end":a.ALIGN_FLEX_END,baseline:a.ALIGN_BASELINE,normal:a.ALIGN_AUTO},a.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(ae(o.justifyContent,{center:a.JUSTIFY_CENTER,"flex-start":a.JUSTIFY_FLEX_START,"flex-end":a.JUSTIFY_FLEX_END,"space-between":a.JUSTIFY_SPACE_BETWEEN,"space-around":a.JUSTIFY_SPACE_AROUND},a.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(ae(o.flexDirection,{row:a.FLEX_DIRECTION_ROW,column:a.FLEX_DIRECTION_COLUMN,"row-reverse":a.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":a.FLEX_DIRECTION_COLUMN_REVERSE},a.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(ae(o.flexWrap,{wrap:a.WRAP_WRAP,nowrap:a.WRAP_NO_WRAP,"wrap-reverse":a.WRAP_WRAP_REVERSE},a.WRAP_NO_WRAP,"flexWrap")),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(ae(o.overflow,{visible:a.OVERFLOW_VISIBLE,hidden:a.OVERFLOW_HIDDEN},a.OVERFLOW_VISIBLE,"overflow")),e.setMargin(a.EDGE_TOP,o.marginTop||0),e.setMargin(a.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(a.EDGE_LEFT,o.marginLeft||0),e.setMargin(a.EDGE_RIGHT,o.marginRight||0),e.setBorder(a.EDGE_TOP,o.borderTopWidth||0),e.setBorder(a.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(a.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(a.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(a.EDGE_TOP,o.paddingTop||0),e.setPadding(a.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(a.EDGE_LEFT,o.paddingLeft||0),e.setPadding(a.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(ae(o.position,{absolute:a.POSITION_TYPE_ABSOLUTE,relative:a.POSITION_TYPE_RELATIVE},a.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(a.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(a.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(a.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(a.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,Yr(o)]}c();c();c();var Po=[1,0,0,1,0,0];function el(e,t,n){let r=[...Po];for(let i of e){let a=Object.keys(i)[0],o=i[a];if(typeof o=="string")if(a==="translateX")o=parseFloat(o)/100*t,i[a]=o;else if(a==="translateY")o=parseFloat(o)/100*n,i[a]=o;else throw new Error(`Invalid transform: "${a}: ${o}".`);let s=o,u=[...Po];switch(a){case"translateX":u[4]=s;break;case"translateY":u[5]=s;break;case"scale":u[0]=s,u[3]=s;break;case"scaleX":u[0]=s;break;case"scaleY":u[3]=s;break;case"rotate":let l=s*Math.PI/180,f=Math.cos(l),p=Math.sin(l);u[0]=f,u[1]=p,u[2]=-p,u[3]=f;break;case"skewX":u[2]=Math.tan(s*Math.PI/180);break;case"skewY":u[1]=Math.tan(s*Math.PI/180);break}r=dt(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function Ve({left:e,top:t,width:n,height:r},i,a,o){var l,f,p,g;let s;i.__resolved||el(i,n,r);let u=i;if(a)s=u;else{let m=(f=o==null?void 0:o.xAbsolute)!=null?f:((l=o==null?void 0:o.xRelative)!=null?l:50)*n/100,d=(g=o==null?void 0:o.yAbsolute)!=null?g:((p=o==null?void 0:o.yRelative)!=null?p:50)*r/100,h=e+m,w=t+d;s=dt([1,0,0,1,h,w],dt(u,[1,0,0,1,-h,-w])),u.__parent&&(s=dt(u.__parent,s)),u.splice(0,6,...s)}return`matrix(${s.map(m=>m.toFixed(2)).join(",")})`}function Ao({left:e,top:t,width:n,height:r,isInheritingTransform:i},a){let o="",s=1;return a.transform&&(o=Ve({left:e,top:t,width:n,height:r},a.transform,i,a.transformOrigin)),a.opacity!==void 0&&(s=+a.opacity),{matrix:o,opacity:s}}function en({id:e,content:t,filter:n,left:r,top:i,width:a,height:o,matrix:s,opacity:u,image:l,clipPathId:f,debug:p,shape:g,decorationShape:m},d){let h="";if(p&&(h=P("rect",{x:r,y:i-o,width:a,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let b={href:l,x:r,y:i,width:a,height:o,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:d.filter?`filter:${d.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+P("image",{...b,opacity:u!==1?u:void 0})+(m||"")+(n?"</g>":"")+h,""]}let w={x:r,y:i,width:a,height:o,"font-weight":d.fontWeight,"font-style":d.fontStyle,"font-size":d.fontSize,"font-family":d.fontFamily,"letter-spacing":d.letterSpacing||void 0,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:d.filter?`filter:${d.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+P("text",{...w,fill:d.color,opacity:u!==1?u:void 0},t)+(m||"")+(n?"</g>":"")+h,g?P("text",w,t):""]}c();function tl(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,a,o){return i+(parseFloat(a)+t)+","+(parseFloat(o)+n)})}function Io({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowRadius*r.shadowRadius/4,a=Math.min(r.shadowOffset.width-i,0),o=Math.max(r.shadowOffset.width+i+t,t),s=Math.min(r.shadowOffset.height-i,0),u=Math.max(r.shadowOffset.height+i+n,n);return`<defs><filter id="satori_s-${e}" x="${a/t*100}%" y="${s/n*100}%" width="${(o-a)/t*100}%" height="${(u-s)/n*100}%"><feDropShadow dx="${r.shadowOffset.width}" dy="${r.shadowOffset.height}" stdDeviation="${r.shadowRadius/2}" flood-color="${r.shadowColor}" flood-opacity="1"/></filter></defs>`}function cr({width:e,height:t,shape:n,opacity:r,id:i},a){if(!a.boxShadow)return null;let o="",s="";for(let u=a.boxShadow.length-1;u>=0;u--){let l="",f=a.boxShadow[u];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let p=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),g=Math.min(-p-(f.inset?f.offsetX:0),0),m=Math.max(p+e-(f.inset?f.offsetX:0),e),d=Math.min(-p-(f.inset?f.offsetY:0),0),h=Math.max(p+t-(f.inset?f.offsetY:0),t),w=`satori_s-${i}-${u}`,b=`satori_ms-${i}-${u}`,_=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=P("mask",{id:b,maskUnits:"userSpaceOnUse"},P("rect",{x:0,y:0,width:a._viewportWidth,height:a._viewportHeight,fill:f.inset?"#000":"#fff"})+_.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=_.replace(/d="([^"]+)"/,(A,D)=>'d="'+tl(D,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(A,D)=>'x="'+(parseFloat(D)+f.offsetX)+'"').replace(/y="([^"]+)"/,(A,D)=>'y="'+(parseFloat(D)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=P("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(E=P("g",{mask:`url(#${b}-neg)`},E)),l+=P("defs",{},P("filter",{id:w,x:`${g/e*100}%`,y:`${d/t*100}%`,width:`${(m-g)/e*100}%`,height:`${(h-d)/t*100}%`},P("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+P("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+P("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+P("g",{mask:`url(#${b})`,filter:`url(#${w})`,opacity:r},E),f.inset?s+=l:o+=l}return[o,s]}c();function tn({width:e,left:t,top:n,ascender:r,clipPathId:i},a){let{textDecorationColor:o,textDecorationStyle:s,textDecorationLine:u,fontSize:l}=a;if(!u||u==="none")return"";let f=Math.max(1,l*.1),p=u==="line-through"?n+r*.5:u==="underline"?n+r*1.1:n,g=s==="dashed"?`${f*1.2} ${f*2}`:s==="dotted"?`0 ${f*2}`:void 0;return P("line",{x1:t,y1:p,x2:t+e,y2:p,stroke:o,"stroke-width":f,"stroke-dasharray":g,"stroke-linecap":s==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}var rn=void 0;async function*nn(e,t){var so;let n=Ae(),{parentStyle:r,inheritedStyle:i,parent:a,font:o,id:s,isInheritingTransform:u,debug:l,embedFont:f,graphemeImages:p,canLoadAdditionalAssets:g}=t;r.textTransform==="uppercase"?e=e.toLocaleUpperCase(rn):r.textTransform==="lowercase"?e=e.toLocaleLowerCase(rn):r.textTransform==="capitalize"&&(e=je(e,"word").map(H=>je(H,"grapheme").map((Y,X)=>X===0?Y.toLocaleUpperCase(rn):Y).join("")).join(""));let m=ae(r.wordBreak,{normal:"word","break-all":"grapheme","break-word":"grapheme","keep-all":"word"},"word","wordBreak"),d=je(e,m),h=n.Node.create();h.setAlignItems(n.ALIGN_BASELINE),h.setJustifyContent(ae(r.textAlign,{left:n.JUSTIFY_FLEX_START,right:n.JUSTIFY_FLEX_END,center:n.JUSTIFY_CENTER,justify:n.JUSTIFY_SPACE_BETWEEN,start:n.JUSTIFY_FLEX_START,end:n.JUSTIFY_FLEX_END},n.JUSTIFY_FLEX_START,"textAlign")),a.insertChild(h,a.getChildCount());let{textAlign:w,textOverflow:b,whiteSpace:_,lineHeight:E,filter:A,_inheritedBackgroundClipTextPath:D}=r,F=r.fontSize,L=o.getEngine(F,E,r),M=g?d.filter(H=>!L.check(H)):[];yield M,M.length&&(L=o.getEngine(F,E,r));let N=[],U=[],q=[],K=[],ee=new Map,z=H=>{let Y=0;for(let X of H){if(ee.has(X)){Y+=ee.get(X);continue}let ue=L.measure(X,r);ee.set(X,ue),Y+=ue}return Y},Z=0,se=[],C=0;for(let H of d){let Y=!1,X=p&&p[H];_==="pre"?Y=H[0]===`
|
|
6
|
+
`:_!=="nowrap"&&(X||ur.includes(H[0]))&&(Y=!0),Y?(_==="nowrap"?C+=z(se)+r.fontSize:(Z=Math.max(Z,z(se)),X&&(Z=Math.max(Z,r.fontSize))),se=[]):(!ur.includes(H[0])||!se.length)&&se.push(H===`
|
|
7
|
+
`?" ":H)}Z=Math.max(Z,z(se)+C);let I=a.getMinWidth(),B=a.getMaxWidth(),ke=a.getWidth();isNaN(ke.value)&&(isNaN(I.value)||I.unit===1&&I.value>Z)&&(isNaN(B.value)||B.unit===1&&(Z=Math.min(Z,B.value)),a.setMinWidth(Z)),typeof r.flexShrink>"u"&&a.setFlexShrink(1);let lt=_==="pre-wrap"||_==="pre";h.setMeasureFunc(H=>{let Y=0,X="",ue=0,de=0,pe=0,he=-1,Be=0,te=0,Ue=0;N=[],q=[0];for(let De=0;De<d.length;De++){let ie=d[De];if(!lt&&ur.includes(ie[0]))X||(X=" "),ue=z([X]),K[De]=null;else{let ze=lt&&ie===`
|
|
8
|
+
`,me=ze?0:p&&p[ie]?r.fontSize:z([ie]);de||(X="",ue=0);let oe=ue||",.!?:-@)>]}%#".indexOf(ie[0])<0,ge=!de||!!ue;if(ze||De&&oe&&de+ue+me>H&&_!=="nowrap"&&_!=="pre")N.push(de),U.push(Ue),Y++,Be+=te,de=me,te=me?L.height(ie):0,Ue=me?L.baseline(ie):0,q.push(1),he=-1,ze||(pe=Math.max(pe,H));else{de+=ue+me;let rt=L.height(ie);rt>te&&(te=rt,Ue=L.baseline(ie)),ge&&q[q.length-1]++}X="",ue=0,ge&&he++,pe=Math.max(pe,de),K[De]={y:Be,x:de-me,width:me,line:Y,lineIndex:he}}}return de&&(Y++,N.push(de),U.push(Ue),Be+=te),{width:pe,height:Be}});let[gu,vu]=yield,Nr="",Zt="",Ce=i._inheritedClipPathId,to=i._inheritedMaskId,{left:ro,top:no,width:er,height:io}=h.getComputedLayout(),Wr=a.getComputedWidth()-a.getComputedPadding(n.EDGE_LEFT)-a.getComputedPadding(n.EDGE_RIGHT)-a.getComputedBorder(n.EDGE_LEFT)-a.getComputedBorder(n.EDGE_RIGHT),et=gu+ro,tt=vu+no,{matrix:Pe,opacity:tr}=Ao({left:ro,top:no,width:er,height:io,isInheritingTransform:u},r),rr="";r.textShadowOffset&&(rr=Io({width:er,height:io,id:s},{shadowColor:r.textShadowColor,shadowOffset:r.textShadowOffset,shadowRadius:r.textShadowRadius}));let ft="",nr="",oo="",$r=-1,ao=b==="ellipsis"?z(["\u2026"]):0,bu=b==="ellipsis"?z([" "]):0,ir={};for(let H=0;H<d.length;H++){if(!K[H])continue;let Y=K[H],X=d[H],ue=null,de=p?p[X]:null,pe=Y.y,he=Y.x,Be=Y.width,te=Y.line;if(te===$r)continue;let Ue=!1;if(N.length>1){let oe=er-N[te];if(w==="right"||w==="end")he+=oe;else if(w==="center")he+=oe/2;else if(w==="justify"&&te<N.length-1){let ge=q[te];he+=(ge>1?oe/(ge-1):0)*Y.lineIndex,Ue=!0}}if(ir[te]||(ir[te]=[he,Ue?er:N[te]]),b==="ellipsis"&&N[te]>Wr&&Y.x+Be+ao+bu>Wr){let oe=je(X,"grapheme"),ge="",rt=0;for(let uo of oe){let lo=Y.x+z([ge+uo]);if(ge&&lo+ao>Wr)break;ge+=uo,rt=lo}X=ge+"\u2026",$r=te,ir[te][1]=rt}let De=U[te],ie=L.baseline(X),ze=L.height(X),me=De-ie;if(de?pe+=0:f?(ue=L.getSVG(X,{...r,left:et+he,top:tt+pe+ie+me,letterSpacing:r.letterSpacing}),l&&(oo+=P("rect",{x:et+he,y:tt+pe+me,width:Y.width,height:ze,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Pe||void 0,"clip-path":Ce?`url(#${Ce})`:void 0})+P("line",{x1:et+he,x2:et+he+Y.width,y1:tt+pe+me+ie,y2:tt+pe+me+ie,stroke:"#14c000","stroke-width":1,transform:Pe||void 0,"clip-path":Ce?`url(#${Ce})`:void 0}))):pe+=ie+me,r.textDecorationLine&&(te!==((so=K[H+1])==null?void 0:so.line)||$r===te)){let oe=ir[te];oe&&!oe[2]&&(ft+=tn({left:et+oe[0],top:tt+ze*+te,width:oe[1],ascender:L.baseline(X),clipPathId:Ce},r),oe[2]=1)}if(ue!==null)nr+=ue+" ";else{let[oe,ge]=en({content:X,filter:rr,id:s,left:et+he,top:tt+pe,width:Be,height:ze,matrix:Pe,opacity:tr,image:de,clipPathId:Ce,debug:l,shape:!!D,decorationShape:ft},r);Nr+=oe,Zt+=ge,ft=""}}if(nr){let H=r.color!=="transparent"&&tr!==0?P("path",{fill:r.color,d:nr,transform:Pe||void 0,opacity:tr!==1?tr:void 0,"clip-path":Ce?`url(#${Ce})`:void 0,mask:to?`url(#${to})`:void 0,style:A?`filter:${A}`:void 0}):"";D&&(Zt=P("path",{d:nr,transform:Pe||void 0})),Nr+=(rr?rr+P("g",{filter:`url(#satori_s-${s})`},H+ft):H+ft)+oo}return Zt&&(r._inheritedBackgroundClipTextPath.value+=Zt),Nr}c();c();c();var on=on||{};on.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(C){var I=new Error(t+": "+C);throw I.source=t,I}function r(){var C=i();return t.length>0&&n("Invalid input not EOF"),C}function i(){return E(a)}function a(){return o("linear-gradient",e.linearGradient,u)||o("repeating-linear-gradient",e.repeatingLinearGradient,u)||o("radial-gradient",e.radialGradient,p)||o("repeating-radial-gradient",e.repeatingRadialGradient,p)}function o(C,I,B){return s(I,function(ke){var lt=B();return lt&&(Z(e.comma)||n("Missing comma before color stops")),{type:C,orientation:lt,colorStops:E(A)}})}function s(C,I){var B=Z(C);if(B){Z(e.startCall)||n("Missing (");var ke=I(B);return Z(e.endCall)||n("Missing )"),ke}}function u(){return l()||f()}function l(){return z("directional",e.sideOrCorner,1)}function f(){return z("angular",e.angleValue,1)}function p(){var C,I=g(),B;return I&&(C=[],C.push(I),B=t,Z(e.comma)&&(I=g(),I?C.push(I):t=B)),C}function g(){var C=m()||d();if(C)C.at=w();else{var I=h();if(I){C=I;var B=w();B&&(C.at=B)}else{var ke=b();ke&&(C={type:"default-radial",at:ke})}}return C}function m(){var C=z("shape",/^(circle)/i,0);return C&&(C.style=ee()||h()),C}function d(){var C=z("shape",/^(ellipse)/i,0);return C&&(C.style=q()||h()),C}function h(){return z("extent-keyword",e.extentKeywords,1)}function w(){if(z("position",/^at/,0)){var C=b();return C||n("Missing positioning value"),C}}function b(){var C=_();if(C.x||C.y)return{type:"position",value:C}}function _(){return{x:q(),y:q()}}function E(C){var I=C(),B=[];if(I)for(B.push(I);Z(e.comma);)I=C(),I?B.push(I):n("One extra comma");return B}function A(){var C=D();return C||n("Expected color definition"),C.length=q(),C}function D(){return L()||N()||M()||F()}function F(){return z("literal",e.literalColor,0)}function L(){return z("hex",e.hexColor,1)}function M(){return s(e.rgbColor,function(){return{type:"rgb",value:E(U)}})}function N(){return s(e.rgbaColor,function(){return{type:"rgba",value:E(U)}})}function U(){return Z(e.number)[1]}function q(){return z("%",e.percentageValue,1)||K()||ee()}function K(){return z("position-keyword",e.positionKeywords,1)}function ee(){return z("px",e.pixelValue,1)||z("em",e.emValue,1)}function z(C,I,B){var ke=Z(I);if(ke)return{type:C,value:ke[B]}}function Z(C){var I,B;return B=/^[\n\r\t\s]+/.exec(t),B&&se(B[0].length),I=C.exec(t),I&&se(I[0].length),I}function se(C){t=t.substr(C)}return function(C){return t=C.toString(),r()}}();var an=on;function rl(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function nl(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function sn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(a=>{try{let o=new Me(a);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(a=>a!==null):[r,i]).map((a,o)=>nl(a,[t,n][o]))}function Ro(e,t){let n=[];for(let o of t){let s=rl(o);if(!n.length&&(n.push({offset:0,color:s}),typeof o.length>"u"||o.length.value==="0"))continue;let u=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:u,color:s})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,a=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(a<o&&(a=o);typeof n[a].offset>"u";)a++;n[o].offset=(n[a].offset-n[i].offset)/(a-i)*(o-i)+n[i].offset}else i=o;return n}async function un({id:e,width:t,height:n},{image:r,size:i,position:a,repeat:o}){o=o||"repeat";let s=o==="repeat-x"||o==="repeat",u=o==="repeat-y"||o==="repeat",l=sn(i,{x:t,y:n,defaultX:t,defaultY:n}),f=sn(a,{x:t,y:n,defaultX:0,defaultY:0});if(r.startsWith("linear-gradient(")){let p=an.parse(r)[0],[g,m]=l,d,h,w,b;if(p.orientation.type==="directional")[d,h,w,b]={top:[0,1,0,0],bottom:[0,0,0,1],left:[1,0,0,0],right:[0,0,1,0]}[p.orientation.value];else if(p.orientation.type==="angular"){let F=+p.orientation.value/180*Math.PI-Math.PI/2,L=Math.cos(F),M=Math.sin(F);d=0,h=0,w=L,b=M,w<0&&(d-=w,w=0),b<0&&(h-=b,b=0)}let _=Ro(t,p.colorStops),E=`satori_bi${e}`,A=`satori_pattern_${e}`,D=P("pattern",{id:A,x:f[0]/t,y:f[1]/n,width:s?g/t:"1",height:u?m/n:"1",patternUnits:"objectBoundingBox"},P("linearGradient",{id:E,x1:d,y1:h,x2:w,y2:b},_.map(F=>P("stop",{offset:F.offset*100+"%","stop-color":F.color})).join(""))+P("rect",{x:0,y:0,width:g,height:m,fill:`url(#${E})`}));return[A,D]}if(r.startsWith("radial-gradient(")){let p=an.parse(r)[0],g=p.orientation[0],[m,d]=l,h="circle",w=m/2,b=d/2;if(g.type==="shape"){if(h=g.value,g.at)if(g.at.type==="position")w=g.at.value.x.value,b=g.at.value.y.value;else throw new Error("orientation.at.type not implemented: "+g.at.type)}else throw new Error("orientation.type not implemented: "+g.type);let _=Ro(t,p.colorStops),E=`satori_radial_${e}`,A=`satori_pattern_${e}`,D=`satori_mask_${e}`,F={},L=Math.max(Math.abs(m-w),Math.abs(w)),M=Math.max(Math.abs(d-b),Math.abs(b));if(h==="circle")F.r=Math.sqrt(L*L+M*M);else if(h==="ellipse"){let q=M!==0?L/M:1;F.ry=Math.sqrt(L*L+M*M*q*q)/q,F.rx=F.ry*q}let N=P("pattern",{id:A,x:f[0]/t,y:f[1]/n,width:s?m/t:"1",height:u?d/n:"1",patternUnits:"objectBoundingBox"},P("radialGradient",{id:E},_.map(q=>P("stop",{offset:q.offset,"stop-color":q.color})).join(""))+P("mask",{id:D},P("rect",{x:0,y:0,width:m,height:d,fill:"#fff"}))+P(h,{cx:w,cy:b,width:m,height:d,...F,fill:`url(#${E})`,mask:`url(#${D})`}));return[A,N]}if(r.startsWith("url(")){let p=sn(i,{x:t,y:n,defaultX:0,defaultY:0}),[g,m,d]=await fr(r.slice(4,-1)),h=p[0]||m,w=p[1]||d;return[`satori_bi${e}`,P("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:f[0],y:f[1],width:s?h:"100%",height:u?w:"100%"},P("image",{x:0,y:0,width:h,height:w,href:g}))]}throw new Error(`Invalid background image: "${r}"`)}c();function il([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 dr(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 pr(e){e[0]=e[1]=Math.min(e[0],e[1])}function hr(e,t,n,r,i){if(typeof e=="string"){let a=e.split(" ").map(s=>s.trim()),o=!a[1]&&!a[0].endsWith("%");return a[1]=a[1]||a[0],[o,[Math.min(Ge(a[0],r,t,i,!0),t),Math.min(Ge(a[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}function Fe({left:e,top:t,width:n,height:r},i,a){let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:f}=i,p,g,m,d;if([p,o]=hr(o,n,r,f,i),[g,s]=hr(s,n,r,f,i),[m,u]=hr(u,n,r,f,i),[d,l]=hr(l,n,r,f,i),!a&&!o&&!s&&!u&&!l)return"";o||(o=[0,0]),s||(s=[0,0]),u||(u=[0,0]),l||(l=[0,0]),[o[0],s[0]]=dr(o[0],s[0],n),[u[0],l[0]]=dr(u[0],l[0],n),[o[1],u[1]]=dr(o[1],u[1],r),[s[1],l[1]]=dr(s[1],l[1],r),p&&pr(o),g&&pr(s),m&&pr(u),d&&pr(l);let h=[];h[0]=[s,s],h[1]=[l,[-l[0],l[1]]],h[2]=[u,[-u[0],-u[1]]],h[3]=[o,[o[0],-o[1]]];let w=`h${n-o[0]-s[0]} a${h[0][0]} 0 0 1 ${h[0][1]}`,b=`v${r-s[1]-l[1]} a${h[1][0]} 0 0 1 ${h[1][1]}`,_=`h${l[0]+u[0]-n} a${h[2][0]} 0 0 1 ${h[2][1]}`,E=`v${u[1]+o[1]-r} a${h[3][0]} 0 0 1 ${h[3][1]}`;if(a){let D=function(K){let ee=il([o,s,l,u][K]);return K===0?[[e+o[0]-ee,t+o[1]-ee],[e+o[0],t]]:K===1?[[e+n-s[0]+ee,t+s[1]-ee],[e+n,t+s[1]]]:K===2?[[e+n-l[0]+ee,t+r-l[1]+ee],[e+n-l[0],t+r]]:[[e+u[0]-ee,t+r-u[1]+ee],[e,t+r-u[1]]]},A=a.indexOf(!1);if(!a.includes(!0))throw new Error("Invalid `partialSides`.");if(A===-1)A=0;else for(;!a[A];)A=(A+1)%4;let F="",L=D(A),M=`M${L[0]} A${h[(A+3)%4][0]} 0 0 1 ${L[1]}`,N=0;for(;N<4&&a[(A+N)%4];N++)F+=M+" ",M=[w,b,_,E][(A+N)%4];let U=(A+N)%4;F+=M.split(" ")[0];let q=D(U);return F+=` A${h[(U+3)%4][0]} 0 0 1 ${q[0]}`,F}return`M${e+o[0]},${t} ${w} ${b} ${_} ${E}`}c();c();c();function Lo(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function mr({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:a,width:o,height:s},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[P("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},P(r,{x:i,y:a,width:o,height:s,d:n||void 0})),f]}function He({left:e,top:t,width:n,height:r,props:i,asContentMask:a,maskBorderOnly:o},s){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!a&&!u.some(m=>s[m+"Width"]))return"";let l="",f=0;for(;f>0&&Lo(u[f],u[(f+3)%4],s);)f=(f+3)%4;let p=[!1,!1,!1,!1],g=[];for(let m=0;m<4;m++){let d=(f+m)%4,h=(f+m+1)%4,w=u[d],b=u[h];if(p[d]=!0,g=[s[w+"Width"],s[w+"Style"],s[w+"Color"],w],!Lo(w,b,s)){let _=(g[0]||0)+(a&&!o&&s[w.replace("border","padding")]||0);_&&(l+=P("path",{width:n,height:r,...i,fill:"none",stroke:a?"#000":g[2],"stroke-width":_*2,"stroke-dasharray":!a&&g[1]==="dashed"?_*2+" "+_:void 0,d:Fe({left:e,top:t,width:n,height:r},s,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let m=(g[0]||0)+(a&&!o&&s[g[3].replace("border","padding")]||0);m&&(l+=P("path",{width:n,height:r,...i,fill:"none",stroke:a?"#000":g[2],"stroke-width":m*2,"stroke-dasharray":!a&&g[1]==="dashed"?m*2+" "+m:void 0,d:Fe({left:e,top:t,width:n,height:r},s,p)}))}return l}function mt({id:e,left:t,top:n,width:r,height:i,matrix:a,borderOnly:o},s){let u=(s.borderLeftWidth||0)+(o?0:s.paddingLeft||0),l=(s.borderTopWidth||0)+(o?0:s.paddingTop||0),f=(s.borderRightWidth||0)+(o?0:s.paddingRight||0),p=(s.borderBottomWidth||0)+(o?0:s.paddingBottom||0),g={x:t+u,y:n+l,width:r-u-f,height:i-l-p};return P("mask",{id:e},P("rect",{...g,fill:"#fff",mask:s._inheritedMaskId?`url(#${s._inheritedMaskId})`:void 0})+He({left:t,top:n,width:r,height:i,props:{transform:a||void 0},asContentMask:!0,maskBorderOnly:o},s))}function ln({left:e,top:t,width:n,height:r,path:i,matrix:a,id:o},s){if(s.overflow!=="hidden")return"";let u=mt({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:a,borderOnly:!0},s);return P("clipPath",{id:`satori_cp-${o}`,"clip-path":s._inheritedClipPathId?`url(#${s._inheritedClipPathId})`:void 0},P(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))+u}async function fn({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:a,debug:o},s){if(s.display==="none")return"";let u="rect",l="",f="",p=[],g=1,m="";s.backgroundColor&&p.push(s.backgroundColor),s.opacity!==void 0&&(g=+s.opacity),s.transform&&(l=Ve({left:t,top:n,width:r,height:i},s.transform,a,s.transformOrigin));let d="";if(s.backgroundImage){let N=[];for(let U=0;U<s.backgroundImage.length;U++){let q=s.backgroundImage[U],K=await un({id:e+"_"+U,width:r,height:i},q);K&&N.unshift(K)}for(let U of N)p.push(`url(#${U[0]})`),f+=U[1],U[2]&&(d+=U[2])}let h=Fe({left:t,top:n,width:r,height:i},s);h&&(u="path");let w=ln({left:t,top:n,width:r,height:i,path:h,id:e,matrix:l},s),b=s._inheritedClipPathId,_=s._inheritedMaskId;o&&(m=P("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:l||void 0,"clip-path":b?`url(#${b})`:void 0}));let{backgroundClip:E,filter:A}=s,D=E==="text"?`url(#satori_bct-${e})`:b?`url(#${b})`:void 0,F=p.map(N=>P(u,{x:t,y:n,width:r,height:i,fill:N,d:h||void 0,transform:l||void 0,"clip-path":D,style:A?`filter:${A}`:void 0,mask:_?`url(#${_})`:void 0})).join(""),L=mr({id:e,left:t,top:n,width:r,height:i,currentClipPathId:b,borderPath:h,borderType:u},s);if(L){f+=L[0];let N=L[1];F+=He({left:t,top:n,width:r,height:i,props:{transform:l||void 0,"clip-path":`url(#${N})`}},s)}let M=cr({width:r,height:i,id:e,opacity:g,shape:P(u,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:h||void 0,transform:l||void 0,"clip-path":D,mask:_?`url(#${_})`:void 0})},s);return(f?P("defs",{},f):"")+(M?M[0]:"")+w+(g!==1?`<g opacity="${g}">`:"")+(d||F)+(g!==1?"</g>":"")+(M?M[1]:"")+m}c();function gr({id:e,left:t,top:n,width:r,height:i,src:a,debug:o,isInheritingTransform:s},u){if(u.display==="none")return"";let l="",f="",p="",g=1,m="",d="",h="";u.transform&&(m=Ve({left:t,top:n,width:r,height:i},u.transform,s,u.transformOrigin));let w=u.objectFit==="contain"?"xMidYMid":u.objectFit==="cover"?"xMidYMid slice":"none",b=Fe({left:t,top:n,width:r,height:i},u),_=u._inheritedClipPathId,E=u._inheritedMaskId;b&&(p=P("clipPath",{id:`satori_c-${e}`,"clip-path":_?`url(#${_})`:void 0},P("path",{x:t,y:n,width:r,height:i,d:b})));let A=mr({id:e,left:t,top:n,width:r,height:i,currentClipPathId:_,borderPath:b,borderType:b?"path":"rect"},u);if(A){d+=A[0];let U=A[1];h+=He({left:t,top:n,width:r,height:i,props:{transform:m||void 0,"clip-path":`url(#${U})`,mask:E?`url(#${E})`:void 0}},u)}u.opacity&&(g=+u.opacity);let D=cr({width:r,height:i,id:e,opacity:g,shape:P(b?"path":"rect",{x:t,y:n,width:r,height:i,fill:"#fff",d:b||void 0,transform:m||void 0,"clip-path":_?`url(#${_})`:void 0,mask:E?`url(#${E})`:void 0})},u);b&&(l=`satori_cm-${e}`,f=mt({id:`satori_cm-${e}`,left:t,top:n,width:r,height:i,matrix:m},u));let F=(u.borderLeftWidth||0)+(u.paddingLeft||0),L=(u.borderTopWidth||0)+(u.paddingTop||0),M=(u.borderRightWidth||0)+(u.paddingRight||0),N=(u.borderBottomWidth||0)+(u.paddingBottom||0);return(d?P("defs",{},d):"")+f+(D?D[0]:"")+p+P("image",{x:t+F,y:n+L,width:r-F-M,height:i-L-N,href:a,preserveAspectRatio:w,transform:m||void 0,"clip-path":p?`url(#satori_c-${e})`:_?`url(#${_})`:void 0,mask:l?`url(#${l})`:void 0})+(D?D[1]:"")+h}async function*gt(e,t){let n=Ae(),{id:r,inheritedStyle:i,parent:a,font:o,debug:s,embedFont:u=!0,graphemeImages:l,canLoadAdditionalAssets:f,getTwStyles:p}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Hr(e)||typeof e.type=="function"){let I;if(!Hr(e))I=nn(String(e),t),yield(await I.next()).value;else{if(yo(e.type))throw new Error("Class component is not supported.");I=gt(e.type(e.props),t),yield(await I.next()).value}await I.next();let B=yield;return(await I.next(B)).value}let{type:g,props:m}=e,{style:d,children:h,tw:w}=m||{};if(w){let I=p(w,d);d=Object.assign(I,d)}let b=n.Node.create();a.insertChild(b,a.getChildCount());let[_,E]=await Zr(b,g,i,d,m),A=_.transform===i.transform;if(A||(_.transform.__parent=i.transform),_.overflow==="hidden"&&(E._inheritedClipPathId=`satori_cp-${r}`,E._inheritedMaskId=`satori_om-${r}`),_.backgroundClip==="text"){let I={value:""};E._inheritedBackgroundClipTextPath=I,_._inheritedBackgroundClipTextPath=I}let D=xo(h),F=[],L=0,M=[];for(let I of D){let B=gt(I,{id:r+"-"+L++,parentStyle:_,inheritedStyle:E,isInheritingTransform:!0,parent:b,font:o,embedFont:u,debug:s,graphemeImages:l,canLoadAdditionalAssets:f,getTwStyles:p});f?M.push(...(await B.next()).value||[]):await B.next(),F.push(B)}yield M;for(let I of F)await I.next();let[N,U]=yield,{left:q,top:K,width:ee,height:z}=b.getComputedLayout();q+=N,K+=U;let Z="",se="",C="";if(g==="img"){let I=_.__src;se=gr({id:r,left:q,top:K,width:ee,height:z,src:I,isInheritingTransform:A,debug:s},_)}else if(g==="svg"){let I=So(e);se=gr({id:r,left:q,top:K,width:ee,height:z,src:I,isInheritingTransform:A,debug:s},_)}else{let I=d==null?void 0:d.display;if(g==="div"&&h&&typeof h!="string"&&I!=="flex"&&I!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');se=await fn({id:r,left:q,top:K,width:ee,height:z,isInheritingTransform:A,debug:s},_)}for(let I of F)Z+=(await I.next([q,K])).value;return _._inheritedBackgroundClipTextPath&&(C+=P("clipPath",{id:`satori_bct-${r}`,"clip-path":_._inheritedClipPathId?`url(#${_._inheritedClipPathId})`:void 0},_._inheritedBackgroundClipTextPath.value)),C+se+Z}c();import cn from"@shuding/opentype.js";function ol(e,t,[n,r],[i,a]){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!==a){if(r===t)return-1;if(a===t)return 1}return-1}var vt=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);let i=[...this.fonts.get(t)],a=i[0];for(let o=1;o<i.length;o++){let[,s,u]=a,[,l,f]=i[o];ol(n,r,[s,u],[l,f])>0&&(a=i[o])}return a[0]}addFonts(t){for(let n of t){let r=n.data,i=cn.parse("buffer"in r?r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength):r,{lowMemory:!0}),a=i.charToGlyphIndex;i.charToGlyphIndex=s=>{let u=a.call(i,s);return u===0&&i._trackBrokenChars&&i._trackBrokenChars.push(s),u},this.defaultFont||(this.defaultFont=i);let o=n.name.toLowerCase();this.fonts.has(o)||this.fonts.set(o,[]),this.fonts.get(o).push([i,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r,fontWeight:i=400,fontStyle:a="normal"}){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(d=>d.toLowerCase());let o=r.map(d=>this.get({name:d,weight:i,style:a})).filter(Boolean),s=Array.from(this.fonts.keys());for(let d of s)r.includes(d)||o.push(this.get({name:d,weight:i,style:a}));let u=new Map,l=(d,h=!0)=>{let w=d.charCodeAt(0);if(u.has(w))return u.get(w);let b=o.find((_,E)=>!!_.charToGlyphIndex(d)||h&&E===o.length-1);return b&&u.set(w,b),b},f=(d,h=!1)=>{var b,_;return((h?(_=(b=d.tables)==null?void 0:b.os2)==null?void 0:_.sTypoAscender:0)||d.ascender)/d.unitsPerEm*t},p=(d,h=!1)=>{var b,_;return((h?(_=(b=d.tables)==null?void 0:b.os2)==null?void 0:_.sTypoDescender:0)||d.descender)/d.unitsPerEm*t},g=d=>l(d,!1),m={check:d=>{let h=g(d);return h?(h._trackBrokenChars=[],h.stringToGlyphs(d),h._trackBrokenChars.length?(h._trackBrokenChars=void 0,!1):!0):!1},baseline:(d,h=typeof d>"u"?o[0]:l(d))=>{let w=f(h,!0),b=p(h,!0),_=m.height(d,h),{yMax:E,yMin:A}=h.tables.head,D=w-b,F=(E/(E-A)-1)*D;return _*((1.2/n+1)/2)+F},height:(d,h=typeof d>"u"?o[0]:l(d))=>(f(h)-p(h))*(n/1.2),measure:(d,h)=>this.measure(l,d,h),getSVG:(d,h)=>this.getSVG(l,d,h)};return m}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(a,...o)=>{let s=i.call(t,a,...o);for(let u=0;u<s.length;u++)if(s[u].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let p=f.charToGlyph(l),g=t.unitsPerEm/f.unitsPerEm,m=new cn.Path;m.unitsPerEm=t.unitsPerEm,m.commands=p.path.commands.map(h=>{let w={...h};for(let b in w)typeof w[b]=="number"&&(w[b]*=g);return w});let d=new cn.Glyph({...p,advanceWidth:p.advanceWidth*g,xMin:p.xMin*g,xMax:p.xMax*g,yMin:p.yMin*g,yMax:p.yMax*g,path:m});s[u]=d}}return s},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let a=t(n),o=this.patchFontFallbackResolver(a,t);try{return a.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:a,letterSpacing:o=0}){let s=t(n),u=this.patchFontFallbackResolver(s,t);try{return r===0?"":s.getPath(n,a,i,r,{letterSpacing:o/r}).toPathData(1)}finally{u()}}};c();function dn({width:e,height:t,content:n}){return P("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();var Co={emoji:/\p{RI}\p{RI}|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?(\u{200D}\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?)+|\p{EPres}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})?|\p{Emoji}(\p{EMod}+|\u{FE0F}\u{20E3}?|[\u{E0020}-\u{E007E}]+\u{E007F})/u,ja:/\p{scx=Hira}|\p{scx=Kana}|[,;:]/u,ko:/\p{scx=Hangul}/u,zh:/\p{scx=Han}/u,th:/\p{scx=Thai}/u,bn:/\p{scx=Bengali}/u,ar:/\p{scx=Arabic}/u,ta:/\p{scx=Tamil}/u,ml:/\p{scx=Malayalam}/u,he:/\p{scx=Hebrew}/u,te:/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u};function Do(e){for(let t in Co)if(Co[t].test(e))return t;return"unknown"}c();c();var pu=ku(Gs());c();c();c();c();var Vh=["ios","android","windows","macos","web"];function Vs(e){return Vh.includes(e)}var Hh=["portrait","landscape"];function Hs(e){return Hh.includes(e)}var js;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(js||(js={}));var $;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})($||($={}));function Wi(e){return typeof e=="string"}function $i(e){return typeof e=="object"}var qi;function v(e){return{kind:"complete",style:e}}function re(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[a="",o=""]=e.split("/",2),s=re(a),u=re(o);return!s||!u?null:[s[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,$.none];switch(i==null?void 0:i[1]){case"rem":return[r,$.rem];case"px":return[r,$.px];case"em":return[r,$.em];case"%":return[r,$.percent];case"vw":return[r,$.vw];case"vh":return[r,$.vh];default:return null}}function Le(e,t,n={}){let r=Ee(t,n);return r===null?null:v({[e]:r})}function Dr(e,t,n){let r=Ee(t);return r!==null&&(n[e]=r),n}function Xs(e,t){let n=Ee(t);return n===null?null:{[e]:n}}function Ee(e,t={}){if(e===void 0)return null;let n=re(String(e),t);return n?qe(...n,t):null}function qe(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case $.rem:return e*16*(r?-1:1);case $.px:return e*(r?-1:1);case $.percent:return`${r?"-":""}${e}%`;case $.none:return e*(r?-1:1);case $.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(ce("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case $.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(ce("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Bi(e){let t=re(e);if(!t)return null;let[n,r]=t;switch(r){case $.rem:return n*16;case $.px:return n;default:return null}}var Yh={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Ui(e){return Yh[e!=null?e:""]||"All"}function zi(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=Ui(i),"")),t]}function Ke(e,t={}){if(e.includes("/")){let n=Ys(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Ys(e,t)}function _e(e,t,n={}){let r=Ke(t,n);return r===null?null:v({[e]:r})}function Ys(e,t={}){if(e==="px")return 1;let n=re(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=$.percent,r*=100),i===$.none&&(r=r/4,i=$.rem),qe(r,i,t)}function Xh(...e){console.warn(...e)}function Qh(...e){}var ce=typeof process>"u"||((qi=process==null?void 0:process.env)===null||qi===void 0?void 0:qi.JEST_WORKER_ID)===void 0?Xh:Qh;var Jh=[["aspect-square",v({aspectRatio:1})],["aspect-video",v({aspectRatio:16/9})],["items-center",v({alignItems:"center"})],["items-start",v({alignItems:"flex-start"})],["items-end",v({alignItems:"flex-end"})],["items-baseline",v({alignItems:"baseline"})],["items-stretch",v({alignItems:"stretch"})],["justify-start",v({justifyContent:"flex-start"})],["justify-end",v({justifyContent:"flex-end"})],["justify-center",v({justifyContent:"center"})],["justify-between",v({justifyContent:"space-between"})],["justify-around",v({justifyContent:"space-around"})],["justify-evenly",v({justifyContent:"space-evenly"})],["content-start",v({alignContent:"flex-start"})],["content-end",v({alignContent:"flex-end"})],["content-between",v({alignContent:"space-between"})],["content-around",v({alignContent:"space-around"})],["content-stretch",v({alignContent:"stretch"})],["content-center",v({alignContent:"center"})],["self-auto",v({alignSelf:"auto"})],["self-start",v({alignSelf:"flex-start"})],["self-end",v({alignSelf:"flex-end"})],["self-center",v({alignSelf:"center"})],["self-stretch",v({alignSelf:"stretch"})],["self-baseline",v({alignSelf:"baseline"})],["direction-inherit",v({direction:"inherit"})],["direction-ltr",v({direction:"ltr"})],["direction-rtl",v({direction:"rtl"})],["hidden",v({display:"none"})],["flex",v({display:"flex"})],["flex-row",v({flexDirection:"row"})],["flex-row-reverse",v({flexDirection:"row-reverse"})],["flex-col",v({flexDirection:"column"})],["flex-col-reverse",v({flexDirection:"column-reverse"})],["flex-wrap",v({flexWrap:"wrap"})],["flex-wrap-reverse",v({flexWrap:"wrap-reverse"})],["flex-nowrap",v({flexWrap:"nowrap"})],["flex-auto",v({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",v({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",v({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",v({overflow:"hidden"})],["overflow-visible",v({overflow:"visible"})],["overflow-scroll",v({overflow:"scroll"})],["absolute",v({position:"absolute"})],["relative",v({position:"relative"})],["italic",v({fontStyle:"italic"})],["not-italic",v({fontStyle:"normal"})],["oldstyle-nums",Yt("oldstyle-nums")],["small-caps",Yt("small-caps")],["lining-nums",Yt("lining-nums")],["tabular-nums",Yt("tabular-nums")],["proportional-nums",Yt("proportional-nums")],["font-thin",v({fontWeight:"100"})],["font-100",v({fontWeight:"100"})],["font-extralight",v({fontWeight:"200"})],["font-200",v({fontWeight:"200"})],["font-light",v({fontWeight:"300"})],["font-300",v({fontWeight:"300"})],["font-normal",v({fontWeight:"normal"})],["font-400",v({fontWeight:"400"})],["font-medium",v({fontWeight:"500"})],["font-500",v({fontWeight:"500"})],["font-semibold",v({fontWeight:"600"})],["font-600",v({fontWeight:"600"})],["font-bold",v({fontWeight:"bold"})],["font-700",v({fontWeight:"700"})],["font-extrabold",v({fontWeight:"800"})],["font-800",v({fontWeight:"800"})],["font-black",v({fontWeight:"900"})],["font-900",v({fontWeight:"900"})],["include-font-padding",v({includeFontPadding:!0})],["remove-font-padding",v({includeFontPadding:!1})],["max-w-none",v({maxWidth:"99999%"})],["text-left",v({textAlign:"left"})],["text-center",v({textAlign:"center"})],["text-right",v({textAlign:"right"})],["text-justify",v({textAlign:"justify"})],["text-auto",v({textAlign:"auto"})],["underline",v({textDecorationLine:"underline"})],["line-through",v({textDecorationLine:"line-through"})],["no-underline",v({textDecorationLine:"none"})],["uppercase",v({textTransform:"uppercase"})],["lowercase",v({textTransform:"lowercase"})],["capitalize",v({textTransform:"capitalize"})],["normal-case",v({textTransform:"none"})],["w-auto",v({width:"auto"})],["h-auto",v({height:"auto"})],["shadow-sm",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",v({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",v({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Gi=Jh;function Yt(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var Xt=class{constructor(t){this.ir=new Map(Gi),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Gi,...t!=null?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)}};c();c();function ji(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return _e("fontSize",e,n);if(typeof r=="string")return Le("fontSize",r);let i={},[a,o]=r,s=Xs("fontSize",a);if(s&&(i=s),typeof o=="string")return v(Dr("lineHeight",Qs(o,i),i));let{lineHeight:u,letterSpacing:l}=o;return u&&Dr("lineHeight",Qs(u,i),i),l&&Dr("letterSpacing",l,i),v(i)}function Qs(e,t){let n=re(e);if(n){let[r,i]=n;if((i===$.none||i===$.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function Vi(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[a,o]=i;if(o===$.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*a}};let s=qe(a,o);return s!==null?v({lineHeight:s}):null}c();function Hi(e,t,n,r,i){let a="";if(r[0]==="[")a=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)a=l;else{let f=Ke(r);return f&&typeof f=="number"?Js(f,$.px,t,e):null}}if(a==="auto")return Ks(t,e,"auto");let o=re(a);if(!o)return null;let[s,u]=o;return n&&(s=-s),Js(s,u,t,e)}function Js(e,t,n,r){let i=qe(e,t);return i===null?null:Ks(n,r,i)}function Ks(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}}c();function Yi(e){if(!e)return{};let t=Object.entries(e).reduce((i,[a,o])=>{let s=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?Bi(u.min):0;l===null?ce(`invalid screen config value: ${a}->min: ${u.min}`):s[0]=l;let f=u.max?Bi(u.max):1/0;return f===null?ce(`invalid screen config value: ${a}->max: ${u.max}`):s[1]=f,i[a]=s,i},{}),n=Object.values(t);n.sort((i,a)=>{let[o,s]=i,[u,l]=a;return s===1/0||l===1/0?o-u:s-l});let r=0;return n.forEach(i=>i[2]=r++),t}c();function Xi(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return v({fontFamily:n});let r=n[0];return r?v({fontFamily:r}):null}c();function Ze(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=tu(t,n),!i)return null;if(r){let a=Number(r);if(!Number.isNaN(a))return i=Zs(i,a/100),v({[Mr[e].color]:i})}return{kind:"dependent",complete(a){let o=Mr[e].opacity,s=a[o];typeof s=="number"&&(i=Zs(i,s)),a[Mr[e].color]=i}}}function Qt(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[Mr[e].opacity]:r};return{kind:"complete",style:i}}function Zs(e,t){return e.startsWith("#")?e=Kh(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function eu(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var Mr={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 Kh(e){let t=e;e=e.replace(Zh,(o,s,u,l)=>s+s+u+u+l+l);let n=e0.exec(e);if(!n)return ce(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),a=parseInt(n[3],16);return`rgba(${r}, ${i}, ${a}, 1)`}function tu(e,t){let n=t[e];if(Wi(n))return n;if($i(n)&&Wi(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let a=t[r];if($i(a))return tu(i.join("-"),a);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var Zh=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,e0=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function nu(e,t){let[n,r]=zi(e);if(n.match(/^(-?(\d)+)?$/))return t0(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return v({borderStyle:n});let a="border";switch(r){case"Bottom":a="borderBottom";break;case"Top":a="borderTop";break;case"Left":a="borderLeft";break;case"Right":a="borderRight";break}let o=Ze(a,n,t==null?void 0:t.borderColor);if(o)return o;let s=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),l=_e(s,u);return typeof(l==null?void 0:l.style[s])!="number"?null:l}function t0(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let a=`border${t==="All"?"":t}Width`;return Le(a,i)}function iu(e,t){if(!t)return null;let[n,r]=zi(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,a=t[n];if(a)return ru(Le(i,a));let o=_e(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:ru(o)}function ru(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}c();function st(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(s,u)=>(i=u==="x"?"x":"y","")));let a=r==null?void 0:r[t];if(a){let s=Ee(a,{isNegative:n});if(s!==null)return ou(e,i,s)}let o=Ke(t,{isNegative:n});return o!==null?ou(e,i,o):null}function ou(e,t,n){if(e!=="inset")return v({[e]:n});switch(t){case null:return v({top:n,left:n,right:n,bottom:n});case"y":return v({top:n,bottom:n});case"x":return v({left:n,right:n})}}c();function Jt(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,a=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(a)?null:v({[`flex${e}`]:a})}function au(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 v({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return v({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let a=Ee((n=i[2])!==null&&n!==void 0?n:"");return a?v({flexGrow:Number(i[1]),flexBasis:a}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let a=Ee((r=i[3])!==null&&r!==void 0?r:"");return a?v({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:a}):null}return null}c();function Qi(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Le(e,i,n):_e(e,t,n)}function Kt(e,t,n={},r){let i=Ee(r==null?void 0:r[t],n);return i?v({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),_e(e,t,n))}c();function su(e,t,n){let r=n==null?void 0:n[e];if(r){let i=re(r,{isNegative:t});if(!i)return null;let[a,o]=i;if(o===$.em)return r0(a);if(o===$.percent)return ce("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 s=qe(a,o,{isNegative:t});return s!==null?v({letterSpacing:s}):null}return _e("letterSpacing",e,{isNegative:t})}function r0(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}}}c();function uu(e,t){let n=t==null?void 0:t[e];if(n){let i=re(String(n));if(i)return v({opacity:i[0]})}let r=re(e);return r?v({opacity:r[0]/100}):null}c();function lu(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function fu(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Ji(n),a=Ji(r);return i===null||a===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:a}}}}let t=Ji(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Ji(e){let t=Ke(e);return typeof t=="number"?t:null}var ut=class{constructor(t,n={},r,i,a){var o,s,u,l,f,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let g=t.trim().split(":"),m=[];g.length===1?this.string=t:(this.string=(o=g.pop())!==null&&o!==void 0?o:"",m=g),this.char=this.string[0];let d=Yi((s=this.config.theme)===null||s===void 0?void 0:s.screens);for(let h of m)if(d[h]){let w=(u=d[h])===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[_,E]=(p=d[h])!==null&&p!==void 0?p:[0,0];(b<=_||b>E)&&(this.isNull=!0)}else this.isNull=!0}else Vs(h)?this.isNull=h!==a:Hs(h)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==h?this.isNull=!0:this.incrementOrder():this.isNull=!0:h==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:h==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(h)||(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,a;let o=this.config.theme,s=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=Ui(u[1]),p=Hi(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(p)return p}}}if(this.consumePeeked("h-")&&(s=Qi("height",this.rest,this.context,o==null?void 0:o.height),s)||this.consumePeeked("w-")&&(s=Qi("width",this.rest,this.context,o==null?void 0:o.width),s)||this.consumePeeked("min-w-")&&(s=Kt("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),s)||this.consumePeeked("min-h-")&&(s=Kt("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),s)||this.consumePeeked("max-w-")&&(s=Kt("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),s)||this.consumePeeked("max-h-")&&(s=Kt("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),s)||this.consumePeeked("leading-")&&(s=Vi(this.rest,o==null?void 0:o.lineHeight),s)||this.consumePeeked("text-")&&(s=ji(this.rest,o==null?void 0:o.fontSize,this.context),s||(s=Ze("text",this.rest,o==null?void 0:o.textColor),s)||this.consumePeeked("opacity-")&&(s=Qt("text",this.rest),s))||this.consumePeeked("font-")&&(s=Xi(this.rest,o==null?void 0:o.fontFamily),s)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&ce("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),s=Le("aspectRatio",this.rest,{fractions:!0}),s)||this.consumePeeked("tint-")&&(s=Ze("tint",this.rest,o==null?void 0:o.colors),s)||this.consumePeeked("bg-")&&(s=Ze("bg",this.rest,o==null?void 0:o.backgroundColor),s||this.consumePeeked("opacity-")&&(s=Qt("bg",this.rest),s))||this.consumePeeked("border")&&(s=nu(this.rest,o),s||this.consumePeeked("-opacity-")&&(s=Qt("border",this.rest),s))||this.consumePeeked("rounded")&&(s=iu(this.rest,o==null?void 0:o.borderRadius),s)||this.consumePeeked("bottom-")&&(s=st("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("top-")&&(s=st("top",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("left-")&&(s=st("left",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("right-")&&(s=st("right",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("inset-")&&(s=st("inset",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?s=Jt("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?s=Jt("Shrink",this.rest,o==null?void 0:o.flexShrink):s=au(this.rest,o==null?void 0:o.flex),s)||this.consumePeeked("grow")&&(s=Jt("Grow",this.rest,o==null?void 0:o.flexGrow),s)||this.consumePeeked("shrink")&&(s=Jt("Shrink",this.rest,o==null?void 0:o.flexShrink),s)||this.consumePeeked("shadow-color-opacity-")&&(s=Qt("shadow",this.rest),s)||this.consumePeeked("shadow-opacity-")&&(s=lu(this.rest),s)||this.consumePeeked("shadow-offset-")&&(s=fu(this.rest),s)||this.consumePeeked("shadow-radius-")&&(s=_e("shadowRadius",this.rest),s)||this.consumePeeked("shadow-")&&(s=Ze("shadow",this.rest,o==null?void 0:o.colors),s))return s;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return v({elevation:u})}if(this.consumePeeked("opacity-")&&(s=uu(this.rest,o==null?void 0:o.opacity),s)||this.consumePeeked("tracking-")&&(s=su(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),s))return s;if(this.consumePeeked("z-")){let u=Number((a=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&a!==void 0?a:this.rest);if(!Number.isNaN(u))return v({zIndex:u})}return ce(`\`${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,[,a="",o="",s=""]=r,u=o==="w"?i.width:i.height,l=re(s,this.context);if(l===null)return this.isNull=!0,!0;let[f,p]=l;return p!=="px"&&(this.isNull=!0),(a==="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}};c();function cu(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Ki(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Ki)];else if(typeof r=="object"&&r!==null)for(let[i,a]of Object.entries(r))typeof a=="boolean"?t=[...t,...a?Ki(i):[]]:n?n[i]=a:n={[i]:a}}),[t.filter(Boolean).filter(n0),n]}function Ki(e){return e.trim().split(/\s+/)}function n0(e,t,n){return n.indexOf(e)===t}c();function du(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...i0(r.handler)}),{}))!==null&&t!==void 0?t:{}}function i0(e){let t={};return e({addUtilities:n=>{t=n},...o0}),t}function Oe(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var o0={addComponents:Oe,addBase:Oe,addVariant:Oe,e:Oe,prefix:Oe,theme:Oe,variants:Oe,config:Oe,corePlugins:Oe,matchUtilities:Oe,postcss:null};function hu(e,t){let n=(0,pu.default)(a0(e)),r={},i=du(n.plugins),a={},o=Object.entries(i).map(([d,h])=>typeof h=="string"?(a[d]=h,[d,{kind:"null"}]):[d,v(h)]).filter(([,d])=>d.kind!=="null");function s(){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=s(),l={};function f(){let d=l[u];if(d)return d;let h=new Xt(o);return l[u]=h,h}function p(...d){let h=f(),w={},b=[],_=[],[E,A]=cu(d),D=E.join(" "),F=h.getStyle(D);if(F)return{...F,...A||{}};for(let L of E){let M=h.getIr(L);if(!M&&L in a){let U=p(a[L]);h.setIr(L,v(U)),w={...w,...U};continue}switch(M=new ut(L,n,h,r,t).parse(),M.kind){case"complete":w={...w,...M.style},h.setIr(L,M);break;case"dependent":b.push(M);break;case"ordered":_.push(M);break;case"null":h.setIr(L,M);break}}if(_.length>0){_.sort((L,M)=>L.order-M.order);for(let L of _)switch(L.styleIr.kind){case"complete":w={...w,...L.styleIr.style};break;case"dependent":b.push(L.styleIr);break}}if(b.length>0){for(let L of b){let M=L.complete(w);M&&ce(M)}eu(w)}return D!==""&&h.setStyle(D,w),A&&(w={...w,...A}),w}function g(d){let h=p(d.split(/\s+/g).map(w=>w.replace(/^(bg|text|border)-/,"")).map(w=>`bg-${w}`).join(" "));return typeof h.backgroundColor=="string"?h.backgroundColor:void 0}let m=(d,...h)=>{let w="";return d.forEach((b,_)=>{var E;w+=b+((E=h[_])!==null&&E!==void 0?E:"")}),p(w)};return m.style=p,m.color=g,m.prefixMatch=(...d)=>{let h=d.sort().join(":"),w=f(),b=w.getPrefixMatch(h);if(b!==void 0)return b;let A=new ut(`${h}:flex`,n,w,r,t).parse().kind!=="null";return w.setPrefixMatch(h,A),A},m.setWindowDimensions=d=>{r.windowDimensions=d,u=s()},m.setFontScale=d=>{r.fontScale=d,u=s()},m.setPixelDensity=d=>{r.pixelDensity=d,u=s()},m.setColorScheme=d=>{r.colorScheme=d,u=s()},m}function a0(e){return{...e,content:["_no_warnings_please"]}}var u0={plugins:[{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 l0(){return hu(u0,"web")}var Fr;function Zi({width:e,height:t}){return Fr||(Fr=l0()),Fr.setWindowDimensions({width:+e,height:+t}),Fr}var eo=new WeakMap;async function mu(e,t){let n=Ae();if(!n)throw new Error("Satori is not initialized.");let r;eo.has(t.fonts)?r=eo.get(t.fonts):eo.set(t.fonts,r=new vt(t.fonts));let i=n.Node.create();i.setWidth(t.width),i.setHeight(t.height),i.setFlexDirection(n.FLEX_DIRECTION_ROW),i.setFlexWrap(n.WRAP_WRAP),i.setAlignContent(n.ALIGN_AUTO),i.setAlignItems(n.ALIGN_FLEX_START),i.setJustifyContent(n.JUSTIFY_FLEX_START),i.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},o=gt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:t.width,_viewportHeight:t.height},parent:i,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,getTwStyles:(l,f)=>{let g={...Zi({width:t.width,height:t.height})([l])};return typeof g.lineHeight=="number"&&(g.lineHeight=g.lineHeight/(+g.fontSize||f.fontSize||16)),g.shadowColor&&g.boxShadow&&(g.boxShadow=g.boxShadow.replace(/rgba?\([^)]+\)/,g.shadowColor)),g}}),s=(await o.next()).value;if(t.loadAdditionalAsset&&s.length){s=Array.from(new Set(je(s.join(""),"grapheme")));let l={};s.forEach(g=>{let m=Do(g);l[m]=l[m]||[],m==="emoji"?l[m].push(g):l[m][0]=(l[m][0]||"")+g});let f=[],p={};await Promise.all(Object.entries(l).flatMap(([g,m])=>m.map(d=>t.loadAdditionalAsset(g,d).then(h=>{typeof h=="string"?p[d]=h:h&&f.push(h)})))),r.addFonts(f),Object.assign(a,p)}await o.next(),i.calculateLayout(t.width,t.height,n.DIRECTION_LTR);let u=(await o.next([0,0])).value;return i.freeRecursive(),dn({width:t.width,height:t.height,content:u})}export{mu as default,Eu as init};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|