satori 0.28.0 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/standalone.cjs +1 -1
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.js +1 -1
- package/dist/standalone.js.map +1 -1
- package/package.json +3 -2
package/dist/standalone.cjs
CHANGED
|
@@ -4,5 +4,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4
4
|
`),y=T.length-1,y>0?(P=s+y,w=E-T[y].length):(P=s,w=o),O=W.comment,s=P,h=P,p=E-w):f===W.slash?(E=a,O=f,h=s,p=a-o,u=E+1):(E=Xm(n,a),O=W.word,h=s,p=E-o),u=E+1;break}t.push([O,s,a-o,h,p,a,u]),w&&(o=w,w=null),a=u}return t}});var Ul=q((yn,Bl)=>{"use strict";yn.__esModule=!0;yn.default=void 0;var Zm=ut(Io()),as=ut(Co()),e0=ut(No()),Ml=ut(Fo()),t0=ut($o()),r0=ut(qo()),us=ut(zo()),n0=ut(Vo()),Nl=vi(Jo()),i0=ut(es()),ls=ut(rs()),o0=ut(is()),s0=ut(Al()),C=vi(Ll()),$=vi(os()),a0=vi($e()),Se=Zr(),or,fs;function $l(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return $l=function(){return e},e}function vi(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=$l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function ut(e){return e&&e.__esModule?e:{default:e}}function Wl(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 u0(e,t,n){return t&&Wl(e.prototype,t),n&&Wl(e,n),e}var ps=(or={},or[$.space]=!0,or[$.cr]=!0,or[$.feed]=!0,or[$.newline]=!0,or[$.tab]=!0,or),l0=Object.assign({},ps,(fs={},fs[$.comment]=!0,fs));function Fl(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function Dl(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function sr(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function Er(e){return sr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function cs(e,t){if(e)return sr(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function kr(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,Se.ensureObject)(e,"raws"),e[t]=(0,Se.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function ds(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function f0(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var c0=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=cs(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Zm.default({source:i}),this.root.errorGenerator=this._errorGenerator();var o=new as.default({source:{start:{line:1,column:1}}});this.root.append(o),this.current=o,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,o){return typeof r.rule=="string"?new Error(i):r.rule.error(i,o)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==$.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==$.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var o=r.length,s={source:sr(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(o===1&&!~[$.word].indexOf(r[0][C.FIELDS.TYPE]))return this.expected("attribute",r[0][C.FIELDS.START_POS]);for(var a=0,u="",f="",l=null,p=!1;a<o;){var h=r[a],m=this.content(h),b=r[a+1];switch(h[C.FIELDS.TYPE]){case $.space:if(p=!0,this.options.lossy)break;if(l){(0,Se.ensureObject)(s,"spaces",l);var y=s.spaces[l].after||"";s.spaces[l].after=y+m;var T=(0,Se.getProp)(s,"raws","spaces",l,"after")||null;T&&(s.raws.spaces[l].after=T+m)}else u=u+m,f=f+m;break;case $.asterisk:if(b[C.FIELDS.TYPE]===$.equals)s.operator=m,l="operator";else if((!s.namespace||l==="namespace"&&!p)&&b){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=u,f=""),s.namespace=(s.namespace||"")+m;var E=(0,Se.getProp)(s,"raws","namespace")||null;E&&(s.raws.namespace+=m),l="namespace"}p=!1;break;case $.dollar:if(l==="value"){var P=(0,Se.getProp)(s,"raws","value");s.value+="$",P&&(s.raws.value=P+"$");break}case $.caret:b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),p=!1;break;case $.combinator:if(m==="~"&&b[C.FIELDS.TYPE]===$.equals&&(s.operator=m,l="operator"),m!=="|"){p=!1;break}b[C.FIELDS.TYPE]===$.equals?(s.operator=m,l="operator"):!s.namespace&&!s.attribute&&(s.namespace=!0),p=!1;break;case $.word:if(b&&this.content(b)==="|"&&r[a+2]&&r[a+2][C.FIELDS.TYPE]!==$.equals&&!s.operator&&!s.namespace)s.namespace=m,l="namespace";else if(!s.attribute||l==="attribute"&&!p){u&&((0,Se.ensureObject)(s,"spaces","attribute"),s.spaces.attribute.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","attribute"),s.raws.spaces.attribute.before=f,f=""),s.attribute=(s.attribute||"")+m;var w=(0,Se.getProp)(s,"raws","attribute")||null;w&&(s.raws.attribute+=m),l="attribute"}else if(!s.value&&s.value!==""||l==="value"&&!p){var S=(0,Se.unesc)(m),O=(0,Se.getProp)(s,"raws","value")||"",I=s.value||"";s.value=I+S,s.quoteMark=null,(S!==m||O)&&((0,Se.ensureObject)(s,"raws"),s.raws.value=(O||I)+m),l="value"}else{var F=m==="i"||m==="I";(s.value||s.value==="")&&(s.quoteMark||p)?(s.insensitive=F,(!F||m==="I")&&((0,Se.ensureObject)(s,"raws"),s.raws.insensitiveFlag=m),l="insensitive",u&&((0,Se.ensureObject)(s,"spaces","insensitive"),s.spaces.insensitive.before=u,u=""),f&&((0,Se.ensureObject)(s,"raws","spaces","insensitive"),s.raws.spaces.insensitive.before=f,f="")):(s.value||s.value==="")&&(l="value",s.value+=m,s.raws.value&&(s.raws.value+=m))}p=!1;break;case $.str:if(!s.attribute||!s.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[C.FIELDS.START_POS]});var U=(0,Nl.unescapeValue)(m),V=U.unescaped,de=U.quoteMark;s.value=V,s.quoteMark=de,l="value",(0,Se.ensureObject)(s,"raws"),s.raws.value=m,p=!1;break;case $.equals:if(!s.attribute)return this.expected("attribute",h[C.FIELDS.START_POS],m);if(s.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[C.FIELDS.START_POS]});s.operator=s.operator?s.operator+m:m,l="operator",p=!1;break;case $.comment:if(l)if(p||b&&b[C.FIELDS.TYPE]===$.space||l==="insensitive"){var Ae=(0,Se.getProp)(s,"spaces",l,"after")||"",me=(0,Se.getProp)(s,"raws","spaces",l,"after")||Ae;(0,Se.ensureObject)(s,"raws","spaces",l),s.raws.spaces[l].after=me+m}else{var ue=s[l]||"",Ie=(0,Se.getProp)(s,"raws",l)||ue;(0,Se.ensureObject)(s,"raws"),s.raws[l]=Ie+m}else f=f+m;break;default:return this.error('Unexpected "'+m+'" found.',{index:h[C.FIELDS.START_POS]})}a++}kr(s,"attribute"),kr(s,"namespace"),this.newNode(new Nl.default(s)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,o=[],s="",a=void 0;do if(ps[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(s+=this.content());else if(this.currToken[C.FIELDS.TYPE]===$.comment){var u={};s&&(u.before=s,s=""),a=new Ml.default({value:this.content(),source:Er(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:u}),o.push(a)}while(++this.position<r);if(s){if(a)a.spaces.after=s;else if(!this.options.lossy){var f=this.tokens[i],l=this.tokens[this.position-1];o.push(new us.default({value:"",source:sr(f[C.FIELDS.START_LINE],f[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:f[C.FIELDS.START_POS],spaces:{before:s,after:""}}))}}return o},t.convertWhitespaceNodesToSpace=function(r,i){var o=this;i===void 0&&(i=!1);var s="",a="";r.forEach(function(f){var l=o.lossySpace(f.spaces.before,i),p=o.lossySpace(f.rawSpaceBefore,i);s+=l+o.lossySpace(f.spaces.after,i&&l.length===0),a+=l+f.value+o.lossySpace(f.rawSpaceAfter,i&&p.length===0)}),a===s&&(a=void 0);var u={space:s,rawSpace:a};return u},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][C.FIELDS.TYPE]===$.slash&&this.tokens[r+1]&&this.tokens[r+1][C.FIELDS.TYPE]===$.word&&this.tokens[r+2]&&this.tokens[r+2][C.FIELDS.TYPE]===$.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,Se.unesc)(r).toLowerCase(),o={};i!==r&&(o.value="/"+r+"/");var s=new ls.default({value:"/"+i+"/",source:sr(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:o});return this.position=this.position+3,s}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===$.comma){var o=this.parseWhitespaceEquivalentTokens(i);if(o.length>0){var s=this.current.last;if(s){var a=this.convertWhitespaceNodesToSpace(o),u=a.space,f=a.rawSpace;f!==void 0&&(s.rawSpaceAfter+=f),s.spaces.after+=u}else o.forEach(function(O){return r.newNode(O)})}return}var l=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===$.combinator?(h=new ls.default({value:this.content(),source:Er(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):ps[this.currToken[C.FIELDS.TYPE]]||p||this.unexpected(),h){if(p){var m=this.convertWhitespaceNodesToSpace(p),b=m.space,y=m.rawSpace;h.spaces.before=b,h.rawSpaceBefore=y}}else{var T=this.convertWhitespaceNodesToSpace(p,!0),E=T.space,P=T.rawSpace;P||(P=E);var w={},S={spaces:{}};E.endsWith(" ")&&P.endsWith(" ")?(w.before=E.slice(0,E.length-1),S.spaces.before=P.slice(0,P.length-1)):E.startsWith(" ")&&P.startsWith(" ")?(w.after=E.slice(1),S.spaces.after=P.slice(1)):S.value=P,h=new ls.default({value:" ",source:cs(l,this.tokens[this.position-1]),sourceIndex:l[C.FIELDS.START_POS],spaces:w,raws:S})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===$.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new as.default({source:{start:Fl(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 Ml.default({value:this.content(),source:Er(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===$.word)return this.position++,this.word(r);if(this.nextToken[C.FIELDS.TYPE]===$.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 o0.default({value:this.content(),source:Er(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===a0.PSEUDO){var o=new as.default({source:{start:Fl(this.tokens[this.position-1])}}),s=this.current;for(r.append(o),this.current=o;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Dl(this.currToken),this.current.parent.source.end=Dl(this.currToken),this.position++);this.current=s}else{for(var a=this.currToken,u="(",f;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===$.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===$.closeParenthesis&&i--,f=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new us.default({value:u,source:sr(a[C.FIELDS.START_LINE],a[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:a[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",o=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===$.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===$.word)this.splitWord(!1,function(s,a){i+=s,r.newNode(new n0.default({value:i,source:cs(o,r.currToken),sourceIndex:o[C.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[C.FIELDS.TYPE]===$.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===$.comma||this.prevToken[C.FIELDS.TYPE]===$.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===$.comma||this.nextToken[C.FIELDS.TYPE]===$.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new us.default({value:this.content(),source:Er(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new i0.default({value:this.content(),source:Er(o),sourceIndex:o[C.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var o=this,s=this.nextToken,a=this.content();s&&~[$.dollar,$.caret,$.equals,$.word].indexOf(s[C.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var f=this.nextToken;f&&f[C.FIELDS.TYPE]===$.space&&(a+=this.requiredSpace(this.content(f)),this.position++)}s=this.nextToken}var l=ds(a,".").filter(function(b){var y=a[b-1]==="\\",T=/^\d+\.\d+%$/.test(a);return!y&&!T}),p=ds(a,"#").filter(function(b){return a[b-1]!=="\\"}),h=ds(a,"#{");h.length&&(p=p.filter(function(b){return!~h.indexOf(b)}));var m=(0,s0.default)(f0([0].concat(l,p)));m.forEach(function(b,y){var T=m[y+1]||a.length,E=a.slice(b,T);if(y===0&&i)return i.call(o,E,m.length);var P,w=o.currToken,S=w[C.FIELDS.START_POS]+m[y],O=sr(w[1],w[2]+b,w[3],w[2]+(T-1));if(~l.indexOf(b)){var I={value:E.slice(1),source:O,sourceIndex:S};P=new e0.default(kr(I,"value"))}else if(~p.indexOf(b)){var F={value:E.slice(1),source:O,sourceIndex:S};P=new t0.default(kr(F,"value"))}else{var U={value:E,source:O,sourceIndex:S};kr(U,"value"),P=new r0.default(U)}o.newNode(P,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[C.FIELDS.TYPE]){case $.space:this.space();break;case $.comment:this.comment();break;case $.openParenthesis:this.parentheses();break;case $.closeParenthesis:r&&this.missingParenthesis();break;case $.openSquare:this.attribute();break;case $.dollar:case $.caret:case $.equals:case $.word:this.word();break;case $.colon:this.pseudo();break;case $.comma:this.comma();break;case $.asterisk:this.universal();break;case $.ampersand:this.nesting();break;case $.slash:case $.combinator:this.combinator();break;case $.str:this.string();break;case $.closeSquare:this.missingSquareBracket();case $.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,o){if(Array.isArray(r)){var s=r.pop();r=r.join(", ")+" or "+s}var a=/^[aeiou]/.test(r[0])?"an":"a";return o?this.error("Expected "+a+" "+r+', found "'+o+'" instead.',{index:i}):this.error("Expected "+a+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[C.FIELDS.TYPE]===$.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,kr(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[C.FIELDS.START_POS],r[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(l0[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},u0(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}();yn.default=c0;Bl.exports=yn.default});var Gl=q((xn,ql)=>{"use strict";xn.__esModule=!0;xn.default=void 0;var d0=p0(Ul());function p0(e){return e&&e.__esModule?e:{default:e}}var h0=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var o=new d0.default(r,this._parseOptions(i));return o.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,a){try{var u=o._root(r,i);Promise.resolve(o.func(u)).then(function(f){var l=void 0;return o._shouldUpdateSelector(r,i)&&(l=u.toString(),r.selector=l),{transform:f,root:u,string:l}}).then(s,a)}catch(f){a(f);return}})},t._runSync=function(r,i){i===void 0&&(i={});var o=this._root(r,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return i.updateSelector&&typeof r!="string"&&(a=o.toString(),r.selector=a),{transform:s,root:o,string:a}},t.ast=function(r,i){return this._run(r,i).then(function(o){return o.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(o){return o.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(o){return o.string||o.root.toString()})},t.processSync=function(r,i){var o=this._runSync(r,i);return o.string||o.root.toString()},e}();xn.default=h0;ql.exports=xn.default});var zl=q(be=>{"use strict";be.__esModule=!0;be.universal=be.tag=be.string=be.selector=be.root=be.pseudo=be.nesting=be.id=be.comment=be.combinator=be.className=be.attribute=void 0;var m0=lt(Jo()),g0=lt(No()),b0=lt(rs()),v0=lt(Fo()),y0=lt($o()),x0=lt(is()),w0=lt(Vo()),S0=lt(Io()),_0=lt(Co()),T0=lt(zo()),E0=lt(qo()),k0=lt(es());function lt(e){return e&&e.__esModule?e:{default:e}}var O0=function(t){return new m0.default(t)};be.attribute=O0;var P0=function(t){return new g0.default(t)};be.className=P0;var A0=function(t){return new b0.default(t)};be.combinator=A0;var I0=function(t){return new v0.default(t)};be.comment=I0;var R0=function(t){return new y0.default(t)};be.id=R0;var C0=function(t){return new x0.default(t)};be.nesting=C0;var L0=function(t){return new w0.default(t)};be.pseudo=L0;var M0=function(t){return new S0.default(t)};be.root=M0;var N0=function(t){return new _0.default(t)};be.selector=N0;var W0=function(t){return new T0.default(t)};be.string=W0;var F0=function(t){return new E0.default(t)};be.tag=F0;var D0=function(t){return new k0.default(t)};be.universal=D0});var Yl=q(oe=>{"use strict";oe.__esModule=!0;oe.isNode=hs;oe.isPseudoElement=Hl;oe.isPseudoClass=X0;oe.isContainer=Q0;oe.isNamespace=K0;oe.isUniversal=oe.isTag=oe.isString=oe.isSelector=oe.isRoot=oe.isPseudo=oe.isNesting=oe.isIdentifier=oe.isComment=oe.isCombinator=oe.isClassName=oe.isAttribute=void 0;var _e=$e(),Qe,$0=(Qe={},Qe[_e.ATTRIBUTE]=!0,Qe[_e.CLASS]=!0,Qe[_e.COMBINATOR]=!0,Qe[_e.COMMENT]=!0,Qe[_e.ID]=!0,Qe[_e.NESTING]=!0,Qe[_e.PSEUDO]=!0,Qe[_e.ROOT]=!0,Qe[_e.SELECTOR]=!0,Qe[_e.STRING]=!0,Qe[_e.TAG]=!0,Qe[_e.UNIVERSAL]=!0,Qe);function hs(e){return typeof e=="object"&&$0[e.type]}function ft(e,t){return hs(t)&&t.type===e}var jl=ft.bind(null,_e.ATTRIBUTE);oe.isAttribute=jl;var B0=ft.bind(null,_e.CLASS);oe.isClassName=B0;var U0=ft.bind(null,_e.COMBINATOR);oe.isCombinator=U0;var q0=ft.bind(null,_e.COMMENT);oe.isComment=q0;var G0=ft.bind(null,_e.ID);oe.isIdentifier=G0;var z0=ft.bind(null,_e.NESTING);oe.isNesting=z0;var ms=ft.bind(null,_e.PSEUDO);oe.isPseudo=ms;var j0=ft.bind(null,_e.ROOT);oe.isRoot=j0;var V0=ft.bind(null,_e.SELECTOR);oe.isSelector=V0;var H0=ft.bind(null,_e.STRING);oe.isString=H0;var Vl=ft.bind(null,_e.TAG);oe.isTag=Vl;var Y0=ft.bind(null,_e.UNIVERSAL);oe.isUniversal=Y0;function Hl(e){return ms(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function X0(e){return ms(e)&&!Hl(e)}function Q0(e){return!!(hs(e)&&e.walk)}function K0(e){return jl(e)||Vl(e)}});var Xl=q(_t=>{"use strict";_t.__esModule=!0;var gs=$e();Object.keys(gs).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===gs[e]||(_t[e]=gs[e])});var bs=zl();Object.keys(bs).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===bs[e]||(_t[e]=bs[e])});var vs=Yl();Object.keys(vs).forEach(function(e){e==="default"||e==="__esModule"||e in _t&&_t[e]===vs[e]||(_t[e]=vs[e])})});var Jl=q((wn,Kl)=>{"use strict";wn.__esModule=!0;wn.default=void 0;var J0=tg(Gl()),Z0=eg(Xl());function Ql(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ql=function(){return e},e}function eg(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ql();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function tg(e){return e&&e.__esModule?e:{default:e}}var ys=function(t){return new J0.default(t)};Object.assign(ys,Z0);delete ys.__esModule;var rg=ys;wn.default=rg;Kl.exports=wn.default});var Zl=q(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});Object.defineProperty(xs,"default",{enumerable:!0,get:()=>ng});function ng(e){return e.replace(/\\,/g,"\\2c ")}});var tf=q((i1,ef)=>{"use strict";ef.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 Ss=q(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});function ig(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}ig(ws,{parseColor:()=>fg,formatColor:()=>cg});var rf=og(tf());function og(e){return e&&e.__esModule?e:{default:e}}var sg=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,ag=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ht=/(?:\d+|\d*\.\d+)%?/,yi=/(?:\s*,\s*|\s+)/,nf=/\s*[,/]\s*/,Yt=/var\(--(?:[^ )]*?)\)/,ug=new RegExp(`^(rgb)a?\\(\\s*(${Ht.source}|${Yt.source})(?:${yi.source}(${Ht.source}|${Yt.source}))?(?:${yi.source}(${Ht.source}|${Yt.source}))?(?:${nf.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`),lg=new RegExp(`^(hsl)a?\\(\\s*((?:${Ht.source})(?:deg|rad|grad|turn)?|${Yt.source})(?:${yi.source}(${Ht.source}|${Yt.source}))?(?:${yi.source}(${Ht.source}|${Yt.source}))?(?:${nf.source}(${Ht.source}|${Yt.source}))?\\s*\\)$`);function fg(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 rf.default)return{mode:"rgb",color:rf.default[e].map(u=>u.toString())};let i=e.replace(ag,(u,f,l,p,h)=>["#",f,f,l,l,p,p,h?h+h:""].join("")).match(sg);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(u=>u.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var o;let s=(o=e.match(ug))!==null&&o!==void 0?o:e.match(lg);if(s===null)return null;let a=[s[2],s[3],s[4]].filter(Boolean).map(u=>u.toString());return!t&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:s[1],color:a,alpha:(n=s[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function cg({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var Ts=q(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});function dg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}dg(_s,{withAlphaValue:()=>pg,default:()=>hg});var xi=Ss();function pg(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,xi.parseColor)(e,{loose:!0});return r===null?n:(0,xi.formatColor)({...r,alpha:t})}function hg({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(o=>[o,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,xi.parseColor)(e);return i===null?Object.fromEntries(r.map(o=>[o,e])):i.alpha!==void 0?Object.fromEntries(r.map(o=>[o,e])):{[n]:"1",...Object.fromEntries(r.map(o=>[o,(0,xi.formatColor)({...i,alpha:`var(${n})`})]))}}});var lf=q(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});function mg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}mg(Es,{pattern:()=>bg,withoutCapturing:()=>sf,any:()=>af,optional:()=>vg,zeroOrMore:()=>yg,nestedBrackets:()=>uf,escape:()=>ar});var of=/[\\^$.*+?()[\]{}|]/g,gg=RegExp(of.source);function Sn(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function bg(e){return new RegExp(Sn(e),"g")}function sf(e){return new RegExp(`(?:${Sn(e)})`,"g")}function af(e){return`(?:${e.map(Sn).join("|")})`}function vg(e){return`(?:${Sn(e)})?`}function yg(e){return`(?:${Sn(e)})*`}function uf(e,t,n=1){return sf([ar(e),/[^\s]*/,n===1?`[^${ar(e)}${ar(t)}s]*`:af([`[^${ar(e)}${ar(t)}s]*`,uf(e,t,n-1)]),/[^\s]*/,ar(t)])}function ar(e){return e&&gg.test(e)?e.replace(of,"\\$&"):e||""}});var cf=q(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});Object.defineProperty(ks,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Sg});var xg=wg(lf());function ff(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ff=function(r){return r?n:t})(e)}function wg(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ff(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function*Sg(e,t){let n=new RegExp(`[(){}\\[\\]${xg.escape(t)}]`,"g"),r=0,i=0,o=!1,s=0,a=0,u=t.length;for(let f of e.matchAll(n)){let l=f[0]===t[s],p=s===u-1,h=l&&p;f[0]==="("&&r++,f[0]===")"&&r--,f[0]==="["&&r++,f[0]==="]"&&r--,f[0]==="{"&&r++,f[0]==="}"&&r--,l&&r===0&&(a===0&&(a=f.index),s++),h&&r===0&&(o=!0,yield e.substring(i,a),i=a+u),s===u&&(s=0,a=0)}o?yield e.substring(i):yield e}});var pf=q(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});function _g(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}_g(Os,{parseBoxShadowValue:()=>Og,formatBoxShadowValue:()=>Pg});var Tg=cf(),Eg=new Set(["inset","inherit","initial","revert","unset"]),kg=/\ +(?![^(]*\))/g,df=/^-?(\d+|\.\d+)(.*?)$/g;function Og(e){return Array.from((0,Tg.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},o=r.split(kg),s=new Set;for(let a of o)df.lastIndex=0,!s.has("KEYWORD")&&Eg.has(a)?(i.keyword=a,s.add("KEYWORD")):df.test(a)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=a,s.add("SPREAD")):(i.blur=a,s.add("BLUR")):(i.y=a,s.add("Y")):(i.x=a,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(a)):i.color=a;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Pg(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var xf=q(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});function Ag(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Ag(As,{normalize:()=>Xt,url:()=>gf,number:()=>Cg,percentage:()=>bf,length:()=>vf,lineWidth:()=>Ng,shadow:()=>Wg,color:()=>Fg,image:()=>Dg,gradient:()=>yf,position:()=>Ug,familyName:()=>qg,genericName:()=>zg,absoluteSize:()=>Vg,relativeSize:()=>Yg});var Ig=Ss(),Rg=pf(),Ps=["min","max","clamp","calc"],mf=/,(?![^(]*\))/g,wi=/_(?![^(]*\))/g;function Xt(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Xt(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function gf(e){return e.startsWith("url(")}function Cg(e){return!isNaN(Number(e))||Ps.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function bf(e){return e.split(wi).every(t=>/%$/g.test(t)||Ps.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var Lg=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],hf=`(?:${Lg.join("|")})`;function vf(e){return e.split(wi).every(t=>t==="0"||new RegExp(`${hf}$`).test(t)||Ps.some(n=>new RegExp(`^${n}\\(.+?${hf}`).test(t)))}var Mg=new Set(["thin","medium","thick"]);function Ng(e){return Mg.has(e)}function Wg(e){let t=(0,Rg.parseBoxShadowValue)(Xt(e));for(let n of t)if(!n.valid)return!1;return!0}function Fg(e){let t=0;return e.split(wi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:(0,Ig.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function Dg(e){let t=0;return e.split(mf).every(r=>(r=Xt(r),r.startsWith("var(")?!0:gf(r)||yf(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var $g=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function yf(e){e=Xt(e);for(let t of $g)if(e.startsWith(`${t}(`))return!0;return!1}var Bg=new Set(["center","top","right","bottom","left"]);function Ug(e){let t=0;return e.split(wi).every(r=>(r=Xt(r),r.startsWith("var(")?!0:Bg.has(r)||vf(r)||bf(r)?(t++,!0):!1))?t>0:!1}function qg(e){let t=0;return e.split(mf).every(r=>(r=Xt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var Gg=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function zg(e){return Gg.has(e)}var jg=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function Vg(e){return jg.has(e)}var Hg=new Set(["larger","smaller"]);function Yg(e){return Hg.has(e)}});var Pf=q(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});function Xg(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Xg(Cs,{updateAllClasses:()=>Jg,asValue:()=>Tn,parseColorFormat:()=>Is,asColor:()=>Ef,asLookupValue:()=>kf,coerceValue:()=>rb});var Qg=Rs(Jl()),Kg=Rs(Zl()),wf=Ts(),Ke=xf(),Sf=Rs(go());function Rs(e){return e&&e.__esModule?e:{default:e}}function Jg(e,t){return(0,Qg.default)(i=>{i.walkClasses(o=>{let s=t(o.value);o.value=s,o.raws&&o.raws.value&&(o.raws.value=(0,Kg.default)(o.raws.value))})}).processSync(e)}function Tf(e,t){if(!_n(e))return;let n=e.slice(1,-1);if(t(n))return(0,Ke.normalize)(n)}function Zg(e,t={},n){let r=t[e];if(r!==void 0)return(0,Sf.default)(r);if(_n(e)){let i=Tf(e,n);return i===void 0?void 0:(0,Sf.default)(i)}}function Tn(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("-")?Zg(e.slice(1),t.values,n):Tf(e,n)}function _n(e){return e.startsWith("[")&&e.endsWith("]")}function eb(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Is(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function Ef(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Is((i=t.values)===null||i===void 0?void 0:i[e])}let[o,s]=eb(e);if(s!==void 0){var a,u,f,l;let p=(l=(a=t.values)===null||a===void 0?void 0:a[o])!==null&&l!==void 0?l:_n(o)?o.slice(1,-1):void 0;return p===void 0?void 0:(p=Is(p),_n(s)?(0,wf.withAlphaValue)(p,s.slice(1,-1)):((u=n.theme)===null||u===void 0||(f=u.opacity)===null||f===void 0?void 0:f[s])===void 0?void 0:(0,wf.withAlphaValue)(p,n.theme.opacity[s]))}return Tn(e,t,{validate:Ke.color})}function kf(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function ct(e){return(t,n)=>Tn(t,n,{validate:e})}var Of={any:Tn,color:Ef,url:ct(Ke.url),image:ct(Ke.image),length:ct(Ke.length),percentage:ct(Ke.percentage),position:ct(Ke.position),lookup:kf,"generic-name":ct(Ke.genericName),"family-name":ct(Ke.familyName),number:ct(Ke.number),"line-width":ct(Ke.lineWidth),"absolute-size":ct(Ke.absoluteSize),"relative-size":ct(Ke.relativeSize),shadow:ct(Ke.shadow)},_f=Object.keys(Of);function tb(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function rb(e,t,n,r){if(_n(t)){let i=t.slice(1,-1),[o,s]=tb(i,":");if(!/^[\w-_]+$/g.test(o))s=i;else if(o!==void 0&&!_f.includes(o))return[];if(s.length>0&&_f.includes(o))return[Tn(`[${s}]`,n),o]}for(let i of[].concat(e)){let o=Of[i](t,n,{tailwindConfig:r});if(o!==void 0)return[o,i]}return[]}});var Af=q(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Object.defineProperty(Ls,"default",{enumerable:!0,get:()=>nb});function nb(e){return typeof e=="function"?e({}):e}});var Mf=q(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Object.defineProperty(Ns,"default",{enumerable:!0,get:()=>_b});var ib=ur(go()),ob=ur(Wu()),sb=ur(Fu()),ab=ur(yo()),ub=ur($u()),Cf=Bu(),If=Uu(),lb=Gu(),fb=ur(zu()),cb=ju(),db=Pf(),pb=Ts(),hb=ur(Af());function ur(e){return e&&e.__esModule?e:{default:e}}function Or(e){return typeof e=="function"}function En(e){return typeof e=="object"&&e!==null}function kn(e,...t){let n=t.pop();for(let r of t)for(let i in r){let o=n(e[i],r[i]);o===void 0?En(e[i])&&En(r[i])?e[i]=kn(e[i],r[i],n):e[i]=r[i]:e[i]=o}return e}var Ms={colors:ub.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,ib.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 mb(e,...t){return Or(e)?e(...t):e}function gb(e){return e.reduce((t,{extend:n})=>kn(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function bb(e){return{...e.reduce((t,n)=>(0,Cf.defaults)(t,n),{}),extend:gb(e)}}function Rf(e,t){if(Array.isArray(e)&&En(e[0]))return e.concat(t);if(Array.isArray(t)&&En(t[0])&&En(e))return[e,...t];if(Array.isArray(t))return t}function vb({extend:e,...t}){return kn(t,e,(n,r)=>!Or(n)&&!r.some(Or)?kn({},n,...r,Rf):(i,o)=>kn({},...[n,...r].map(s=>mb(s,i,o)),Rf))}function*yb(e){let t=(0,If.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,o]=r,s=(0,If.toPath)(i);s.alpha=o,yield s}}function xb(e){let t=(n,r)=>{for(let i of yb(n)){let o=0,s=e;for(;s!=null&&o<i.length;)s=s[i[o++]],s=Or(s)&&(i.alpha===void 0||o<=i.length-1)?s(t,Ms):s;if(s!==void 0){if(i.alpha!==void 0){let a=(0,db.parseColorFormat)(s);return(0,pb.withAlphaValue)(a,i.alpha,(0,hb.default)(a))}return(0,fb.default)(s)?(0,cb.cloneDeep)(s):s}}return r};return Object.assign(t,{theme:t,...Ms}),Object.keys(e).reduce((n,r)=>(n[r]=Or(e[r])?e[r](t,Ms):e[r],n),{})}function Lf(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(o=>{o.__isOptionsFunction&&(o=o());var s;t=[...t,...Lf([(s=o==null?void 0:o.config)!==null&&s!==void 0?s:{}])]})}),t}function wb(e){return[...e].reduceRight((n,r)=>Or(r)?r({corePlugins:n}):(0,sb.default)(r,n),ob.default)}function Sb(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function _b(e){let t=[...Lf(e),{prefix:"",important:!1,separator:":",variantOrder:ab.default.variantOrder}];var n,r;return(0,lb.normalizeConfig)((0,Cf.defaults)({theme:xb(vb(bb(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:wb(t.map(i=>i.corePlugins)),plugins:Sb(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Nf={};Nr(Nf,{default:()=>Tb});var Tb,Wf=rr(()=>{Tb={yellow:e=>e}});var Bf=q(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});function Eb(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Eb(Ws,{flagEnabled:()=>Pb,issueFlagNotices:()=>Ab,default:()=>Ib});var kb=$f((Wf(),Wr(Nf))),Ob=$f((si(),Wr(oi)));function $f(e){return e&&e.__esModule?e:{default:e}}var Ff={optimizeUniversalDefaults:!1},On={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Pb(e,t){if(On.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:Ff[t])!==null&&i!==void 0?i:!1)}if(On.experimental.includes(t)){var o,s,a;return e.experimental==="all"||((a=(s=e==null||(o=e.experimental)===null||o===void 0?void 0:o[t])!==null&&s!==void 0?s:Ff[t])!==null&&a!==void 0?a:!1)}return!1}function Df(e){if(e.experimental==="all")return On.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>On.experimental.includes(n)&&e.experimental[n])}function Ab(e){if(process.env.JEST_WORKER_ID===void 0&&Df(e).length>0){let t=Df(e).map(n=>kb.default.yellow(n)).join(", ");Ob.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 Ib=On});var qf=q(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Object.defineProperty(Fs,"default",{enumerable:!0,get:()=>Uf});var Rb=Lb(yo()),Cb=Bf();function Lb(e){return e&&e.__esModule?e:{default:e}}function Uf(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Rb.default]).slice().reverse().flatMap(o=>Uf(typeof o=="function"?o():o)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(o=>(0,Cb.flagEnabled)(e,o)).map(o=>r[o]);return[e,...i,...n]}});var zf=q(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Object.defineProperty(Ds,"default",{enumerable:!0,get:()=>Wb});var Mb=Gf(Mf()),Nb=Gf(qf());function Gf(e){return e&&e.__esModule?e:{default:e}}function Wb(...e){let[,...t]=(0,Nb.default)(e[0]);return(0,Mb.default)([...e,...t])}});var Vf=q((b1,jf)=>{var $s=zf();jf.exports=($s.__esModule?$s:{default:$s}).default});var nv={};Nr(nv,{default:()=>na,init:()=>Fa});module.exports=Wr(nv);var ma=Pt(require("linebreak"),1);var Fr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pc=Fr((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Ac=Fr((e,t)=>{t.exports=["deg","grad","rad","turn"]}),Ic=Fr((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Rc=Fr((e,t)=>{t.exports=["Hz","kHz"]}),Cc=Fr((e,t)=>{t.exports=["s","ms"]}),Lc=Pc(),ca=Ac(),da=Ic(),pa=Rc(),ha=Cc();function Oi(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(Mc(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=ki(e),this.unit="%";return}var t=Wc(e);if(!t){this.type="number",this.value=ki(e);return}this.type=Dc(t),this.value=ki(e.substr(0,e.length-t.length)),this.unit=t}Oi.prototype.valueOf=function(){return this.value};Oi.prototype.toString=function(){return this.value+(this.unit||"")};function xt(e){return new Oi(e)}function Mc(e){var t=e.match(/\./g);return t?t.length:0}function ki(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Nc=[].concat(ca,pa,Lc,da,ha);function Wc(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Nc.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var Fc=Object.assign($n(ca,"angle"),$n(pa,"frequency"),$n(da,"resolution"),$n(ha,"time"));function $n(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Dc(e){return Fc[e]||"length"}function gr(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function ga(e){return/^class\s/.test(e.toString())}function Ii(e){return e&&e.$$typeof===Symbol.for("react.forward_ref")}function ba(e){return typeof e=="function"||Ii(e)}function va(e){return"dangerouslySetInnerHTML"in e}function ya(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function X(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let o=new xt(e);if(o.type==="length")switch(o.unit){case"em":return o.value*t;case"rem":return o.value*16;case"vw":return~~(o.value*r._viewportWidth/100);case"vh":return~~(o.value*r._viewportHeight/100);default:return o.value}else{if(o.type==="angle")return Ri(e);if(o.type==="percentage"&&i)return o.value/100*n}}catch{}}function Ri(e){let t=new xt(e);switch(t.unit){case"deg":return t.value;case"rad":return t.value*180/Math.PI;case"turn":return t.value*360;case"grad":return .9*t.value}}function Dr(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 He(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(o=>`"${o}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var Pi,Ai,xa=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e)),mr=new Map,$c=500;function Ve(e,t,n){let r=`${t}:${n||""}:${e}`;if(mr.has(r))return mr.get(r);if(!Pi||!Ai){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Pi=new Intl.Segmenter(n,{granularity:"word"}),Ai=new Intl.Segmenter(n,{granularity:"grapheme"})}let i;if(t==="grapheme")i=[...Ai.segment(e)].map(o=>o.segment);else{let o=[...Pi.segment(e)].map(u=>u.segment),s=[],a=0;for(;a<o.length;){let u=o[a];if(u=="\xA0"){let f=a===0?"":s.pop(),l=a===o.length-1?"":o[a+1];s.push(f+"\xA0"+l),a+=2}else s.push(u),a++}i=s}if(mr.size>=$c){let o=mr.keys().next().value;mr.delete(o)}return mr.set(r,i),i}function M(e,t,n){let r="";for(let[i,o]of Object.entries(t))typeof o<"u"&&(r+=` ${i}="${o}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function wa(e=20){let t=new Map;function n(o){let s=t.get(o);if(s!==void 0)return t.delete(o),t.set(o,s),s}function r(o,s){if(t.has(o))t.delete(o);else if(t.size>=e){let a=t.keys().next().value;t.delete(a)}t.set(o,s)}function i(){t.clear()}return{set:r,get:n,clear:i}}function br(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Bn(e){return typeof e=="string"}function Sa(e){return typeof e=="number"}function _a(e){return typeof e>"u"}function Wt(e,t){if(typeof e=="number")return e;if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function zt(e,t){if(typeof e=="number")return e;if(e==="auto")return"auto";if(e.endsWith("%")){let n=parseFloat(e.slice(0,-1));if(isNaN(n)){console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${n}%`}console.warn(`Invalid value "${e}"${typeof t=="string"?` for "${t}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Ta(e,t){if(t==="break-all")return{words:Ve(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:Ve(e,"word"),requiredBreaks:[]};let n=new ma.default(e),r=0,i=n.nextBreak(),o=[],s=[!1];for(;i;){let a=e.slice(r,i.position);o.push(a),i.required?s.push(!0):s.push(!1),r=i.position,i=n.nextBreak()}return{words:o,requiredBreaks:s}}var Ea=e=>e.replaceAll(/([A-Z])/g,(t,n)=>`-${n.toLowerCase()}`);function Un(e,t=","){let n=[],r=0,i=0;t=new RegExp(t);for(let o=0;o<e.length;o++)e[o]==="("?i++:e[o]===")"&&i--,i===0&&t.test(e[o])&&(n.push(e.slice(r,o).trim()),r=o+1);return n.push(e.slice(r).trim()),n}function Fa(e){return Promise.resolve().then(()=>(Ui(),Bi)).then(t=>t.init(e))}function jt(){return Promise.resolve().then(()=>(Ui(),Bi)).then(e=>e.getYoga())}var Da=Symbol.for("react.fragment");var Yc=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;function $a(e){let t=e.split(".").map(o=>Number.parseInt(o,10));if(t.length!==4||t.some(o=>!Number.isInteger(o)||o<0||o>255))return!0;let[n,r,i]=t;return n===0||n===10||n===100&&r>=64&&r<=127||n===127||n===169&&r===254||n===172&&r>=16&&r<=31||n===192&&r===0&&i===0||n===192&&r===168||n===198&&(r===18||r===19)||n>=224}function Xc(e){let t=e.match(/^(?:::ffff:|64:ff9b::|::)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/);if(t)return t[1];let n=e.match(/^(?:::ffff:|64:ff9b::|::)([0-9a-f]{1,4}):([0-9a-f]{1,4})$/);if(n){let r=Number.parseInt(n[1],16),i=Number.parseInt(n[2],16);return`${r>>8&255}.${r&255}.${i>>8&255}.${i&255}`}return null}function Qc(e){let t=Xc(e);return t?$a(t):!!(e==="::"||e==="::1"||e.startsWith("fc")||e.startsWith("fd")||/^fe[89ab]/.test(e)||/^fe[c-f]/.test(e)||e.startsWith("ff")||/^2001:0?db8(?::|$)/.test(e))}function Kc(e){let t;try{t=new URL(e)}catch{return!0}if(t.protocol!=="http:"&&t.protocol!=="https:")return!0;let n=t.hostname.toLowerCase();return n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1)),n==="localhost"||n.endsWith(".localhost")||n.endsWith(".local")?!0:Yc.test(n)?$a(n):n.includes(":")?Qc(n):!1}function Ba(e){if(Kc(e))throw new Error(`Image source resolves to a blocked address (SSRF protection): ${e}`)}var Jc="image/avif",Zc="image/webp",zn="image/apng",jn="image/png",Vn="image/jpeg",Hn="image/gif",qi="image/svg+xml";function Ga(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let o=t.getUint8(i+1+n);if(o===192||o===193||o===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function za(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function ja(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var At=wa(500),Br=new Map,ed=[jn,zn,Vn,Hn,qi],td=/<svg[^>]*>/i,rd=/viewBox=['"]([^'"]+)['"]/,nd=/width=['"](\d*\.?\d+)['"]/,id=/height=['"](\d*\.?\d+)['"]/;function od(e){let t=new Uint8Array(e),n=32768,r="";for(let i=0;i<t.length;i+=n){let o=t.subarray(i,Math.min(i+n,t.length));r+=String.fromCharCode(...o)}return btoa(r)}function sd(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function Ua(e,t){let n=t.match(td);if(!n)throw new Error(`Failed to parse SVG from ${e}`);let r=n[0],i=rd.exec(r),o=nd.exec(r),s=id.exec(r),a=i?br(i[1]):null;if(!a&&(!o||!s))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+o[1],+s[1]],f=u[0]/u[1];return o&&s?[+o[1],+s[1]]:o?[+o[1],+o[1]/f]:s?[+s[1]*f,+s[1]]:[u[0],u[1]]}function qa(e){let t,n=ad(new Uint8Array(e));switch(n){case jn:case zn:t=ja(e);break;case Hn:t=za(e);break;case Vn:t=Ga(e);break}if(!ed.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${od(e)}`,t]}async function wr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,o]=qa(e);return[i,...o]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:o,encodingType:s,dataString:a}=i;if(o===qi){let u=s==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),f=s==="base64"?e:`data:image/svg+xml;base64,${btoa(u)}`,l=Ua(e,u);return At.set(e,[f,...l]),[f,...l]}else if(s==="base64"){let u,f=sd(a);switch(o){case jn:case zn:u=ja(f);break;case Hn:u=za(f);break;case Vn:u=Ga(f);break}return At.set(e,[e,...u]),[e,...u]}else return console.warn("Image data URI resolved without size:"+e),At.set(e,[e]),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Br.has(e))return Br.get(e);let t=At.get(e);if(t)return t;let n=e;typeof window>"u"&&Ba(n);let r=fetch(n).then(i=>{let o=i.headers.get("content-type");return o==="image/svg+xml"||o==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let a=`data:image/svg+xml;base64,${btoa(i)}`,u=Ua(n,i);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[o,s]=qa(i);return[o,...s]}).then(i=>(At.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),At.set(n,[]),[]));return Br.set(n,r),r}function ad(e){return[255,216,255].every((t,n)=>e[n]===t)?Vn:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?ud(e)?zn:jn:[71,73,70,56].every((t,n)=>e[n]===t)?Hn:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Zc:[60,63,120,109,108].every((t,n)=>e[n]===t)?qi:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Jc:null}function ud(e){let t=new DataView(e.buffer),n,r,i=8,o=!1;for(;!o&&n!=="IEND"&&i<e.length;){r=t.getUint32(i);let s=e.subarray(i+4,i+8);n=String.fromCharCode(...s),o=n==="acTL",i+=12+r}return o}var Gi={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},ld=/[\r\n%#()<>?[\\\]^`{|}"']/g;function Yn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(f=>Yn(f,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...o}=e.props||{},s=(i==null?void 0:i.color)||t,a=`${Object.entries(o).map(([f,l])=>(typeof l=="string"&&l.toLowerCase()==="currentcolor"&&(l=s),(f==="href"||f==="xlinkHref")&&n==="image"?` ${Gi[f]||f}="${At.get(l)[0]}"`:` ${Gi[f]||f}="${l}"`)).join("")}`,u=i?` style="${Object.entries(i).map(([f,l])=>`${Ea(f)}:${l}`).join(";")}"`:"";return n===Da?Yn(r,s):`<${n}${a}${u}>${Yn(r,s)}</${n}>`}async function Va(e){let t=new Set,n=r=>{if(r&&gr(r)){if(Array.isArray(r)){r.forEach(i=>n(i));return}else if(typeof r=="object")if(r.type==="image"){let i=r.props.href||r.props.xlinkHref;i&&(t.has(i)||t.add(i))}else r.type==="img"&&(t.has(r.props.src)||t.add(r.props.src));Array.isArray(r.props.children)?r.props.children.map(i=>n(i)):n(r.props.children)}};return n(e),Promise.all(Array.from(t).map(r=>wr(r)))}async function Ha(e,t){let{viewBox:n,viewbox:r,width:i,height:o,className:s,style:a,children:u,...f}=e.props||{};n||=r,f.xmlns="http://www.w3.org/2000/svg";let l=(a==null?void 0:a.color)||t,p=br(n),h=p?p[3]/p[2]:null;return i=i||h&&o?o/h:null,o=o||h&&i?i*h:null,f.width=i,f.height=o,n&&(f.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(f).map(([m,b])=>(typeof b=="string"&&b.toLowerCase()==="currentcolor"&&(b=l),` ${Gi[m]||m}="${b}"`)).join("")}>${Yn(u,l)}</svg>`.replace(ld,encodeURIComponent)}`}var at="flex",Ya={p:{display:at,marginTop:"1em",marginBottom:"1em"},div:{display:at},blockquote:{display:at,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:at,textAlign:"center"},hr:{display:at,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:at,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:at,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:at,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:at,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:at,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:at,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:at,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var fd=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textIndent","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","textDecorationSkipInk","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath","_inheritedBackgroundClipTextHasBackground"]);function zi(e){let t={};for(let n in e)(fd.has(n)||n.startsWith("--"))&&(t[n]=e[n]);return t}var St=require("css-to-react-native"),nu=require("css-background-parser"),iu=require("css-box-shadow"),ou=Pt(require("parse-css-color"),1);var Xa=Pt(require("postcss-value-parser"),1);function cd(e,t){try{let n=new xt(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 ji(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=cd(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function Vi(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,Xa.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?ji(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...ji(n[0],t,!0),...ji(n[1],t,!1)}):{}}var Qa=require("css-to-react-native");function Ur(e,t){let n=(0,Qa.getPropertyName)(`mask-${t}`);return e[n]||e[`WebkitM${n.substring(1)}`]}function Ka(e){let t=e.maskImage||e.WebkitMaskImage,n={position:Ur(e,"position")||"0% 0%",size:Ur(e,"size")||"100% 100%",repeat:Ur(e,"repeat")||"repeat",origin:Ur(e,"origin")||"border-box",clip:Ur(e,"origin")||"border-box"};return Un(t).filter(i=>i&&i!=="none").reverse().map(i=>({image:i,...n}))}var Hi=Pt(require("postcss-value-parser"),1);function Ja(e){let t={},n={};for(let r in e)r.startsWith("--")?t[r]=String(e[r]):n[r]=e[r];return{variables:t,remainingStyle:n}}function Za(e,t){return{...e,...t}}function Gr(e,t,n=new Set){if(typeof e!="string"||!e.includes("var("))return e;try{let r=(0,Hi.default)(e),i=!1;if(r.walk(o=>{if(o.type==="function"&&o.value==="var"){i=!0;let s=dd(o);if(!s)return;let{varName:a,fallback:u}=s;if(n.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?qr(o,u):qr(o,"initial");return}let f=t[a];if(f!==void 0){let l=new Set(n);l.add(a);let p=Gr(f,t,l);qr(o,String(p))}else if(u!==void 0){let l=Gr(u,t,n);qr(o,String(l))}else qr(o,"initial")}}),i)return r.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${e}`)}return e}function dd(e){if(!e.nodes||e.nodes.length===0)return null;let t,n=-1;for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i];if(o.type==="word"&&!t)t=o;else if(o.type==="div"&&o.value===","){n=i;break}}if(!t||t.type!=="word")return null;let r=t.value.trim();if(n!==-1&&n<e.nodes.length-1){let i=e.nodes.slice(n+1),o=Hi.default.stringify(i).trim();return{varName:r,fallback:o}}return{varName:r}}function qr(e,t){e.type="word",e.value=t,delete e.nodes}var pd=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),hd=new Set(["lineHeight"]);function md(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function nr(e,t){let n=Number(t);return isNaN(n)?t:pd.has(e)?hd.has(e)?n:String(t):n+"px"}function gd(e,t,n){if(e==="zIndex")return console.warn("`z-index` is currently not supported."),{[e]:t};if(e==="lineHeight")return{lineHeight:nr(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),o=(0,St.getStylesForProperty)(e,r,!0),s=(0,St.getStylesForProperty)(e,i,!0);for(let a in o)s[a]=nr(e,o[a])+" "+nr(e,s[a]);return s}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,St.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:nr(e+"Width",r.borderWidth),Style:He(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},o={};for(let s of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let a in i)o["border"+s+a]=i[a];return o}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,iu.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(s,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),o=(0,St.getStylesForProperty)("transform",i,!0);for(let s of o.transform)for(let a in s)r[s[a]]&&(s[a]=r[s[a]]);return o}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(t)?(0,St.getStylesForProperty)("backgroundImage",t,!0):(0,St.getStylesForProperty)("background",t,!0);if(e==="textShadow"){t=t.toString().trim();let r={},i=Un(t);for(let o of i){let s=(0,St.getStylesForProperty)("textShadow",o,!0);for(let a in s)r[a]?r[a].push(s[a]):r[a]=[s[a]]}return r}if(e==="WebkitTextStroke"){t=t.toString().trim();let r=t.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:nr(e,r[0]),WebkitTextStrokeColor:nr(e,r[1])}}if(e==="textDecorationSkipInk"){let r=t.toString().trim().toLowerCase();if(!["auto","none","all"].includes(r))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:r}}}function eu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var tu=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function su(e){if(typeof e=="string"&&tu.test(e.trim()))return e.trim().replace(tu,(t,n,r,i,o)=>`rgba(${n}, ${r}, ${i}, ${o})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=su(e[t]);return e}return e}function Xn(e,t){let n={},r={};for(let u in t)u.startsWith("--")&&(r[u]=String(t[u]));let i={},o=e;if(e){let{variables:u,remainingStyle:f}=Ja(e);i=u,o=f}let s=Za(r,i);for(let u in s)n[u]=s[u];if(o){let u=o.color?Gr(o.color,s):void 0,f=vd(u,t.color);n.color=f;for(let l in o){if(l.startsWith("_")){n[l]=o[l];continue}if(l==="color")continue;let p=(0,St.getPropertyName)(l),h=Gr(o[l],s),m=xd(h,f);try{let b=gd(p,m,f)||md(p,(0,St.getStylesForProperty)(p,nr(p,m),!0),m,f);Object.assign(n,b)}catch(b){throw new Error(b.message+(b.message.includes(m)?`
|
|
5
5
|
`+eu(p):`
|
|
6
6
|
in CSS rule \`${p}: ${m}\`.${eu(p)}`))}}}if(n.backgroundImage){let{backgrounds:u}=(0,nu.parseElementStyle)(n);n.backgroundImage=u}(n.maskImage||n.WebkitMaskImage)&&(n.maskImage=Ka(n));let a=bd(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=a),n.transformOrigin&&(n.transformOrigin=Vi(n.transformOrigin,a));for(let u in n){let f=n[u];if(u==="lineHeight")typeof f=="string"&&f!=="normal"&&(f=n[u]=X(f,a,a,t,!0)/a);else{if(typeof f=="string"){let l=X(f,a,a,t);typeof l<"u"&&(n[u]=l),f=n[u]}if(typeof f=="string"||typeof f=="object"){let l=su(f);l&&(n[u]=l),f=n[u]}}if(u==="opacity"&&typeof f=="number"&&(n.opacity=f*t.opacity),u==="transform"){let l=f;for(let p of l){let h=Object.keys(p)[0],m=p[h],b=typeof m=="string"?X(m,a,a,t)??m:m;p[h]=b}}if(u==="textShadowRadius"){let l=f;n.textShadowRadius=l.map(p=>X(p,a,0,t,!1))}if(u==="textShadowOffset"){let l=f;n.textShadowOffset=l.map(({height:p,width:h})=>({height:X(p,a,0,t,!1),width:X(h,a,0,t,!1)}))}}return n}function bd(e,t){if(typeof e=="number")return e;try{let n=new xt(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function ru(e){if(e.startsWith("hsl")){let t=(0,ou.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function vd(e,t){return e&&e.toLowerCase()!=="currentcolor"?ru(e):ru(t)}function yd(e,t){return e.replace(/currentcolor/gi,t)}function xd(e,t){return Bn(e)&&(e=yd(e,t)),e}async function Yi(e,t,n,r,i){let o=await jt(),s=Object.assign({},n,Xn(Ya[t],n),Xn(r,n));if(t==="img"){let[a,u,f]=await wr(i.src);if(u===void 0&&f===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(i.width),f=parseInt(i.height)}let l=f/u,p=(s.borderLeftWidth||0)+(s.borderRightWidth||0)+(s.paddingLeft||0)+(s.paddingRight||0),h=(s.borderTopWidth||0)+(s.borderBottomWidth||0)+(s.paddingTop||0)+(s.paddingBottom||0),m=s.width||i.width,b=s.height||i.height,y=typeof m=="number"&&typeof b=="number";y&&(m-=p,b-=h),m===void 0&&b===void 0?(m="100%",e.setAspectRatio(1/l)):m===void 0?typeof b=="number"?m=b/l:e.setAspectRatio(1/l):b===void 0&&(typeof m=="number"?b=m*l:e.setAspectRatio(1/l)),s.width=y?m+p:m,s.height=y?b+h:b,s.__src=a,s.__naturalWidth=u,s.__naturalHeight=f}if(t==="svg"){let a=i.viewBox||i.viewbox,u=br(a),f=u?u[3]/u[2]:null,{width:l,height:p}=i;typeof l>"u"&&p?f==null?l=0:typeof p=="string"&&p.endsWith("%")?l=parseInt(p)/f+"%":(p=X(p,n.fontSize,1,n),l=p/f):typeof p>"u"&&l?f==null?l=0:typeof l=="string"&&l.endsWith("%")?p=parseInt(l)*f+"%":(l=X(l,n.fontSize,1,n),p=l*f):(typeof l<"u"&&(l=X(l,n.fontSize,1,n)||l),typeof p<"u"&&(p=X(p,n.fontSize,1,n)||p),l||=u==null?void 0:u[2],p||=u==null?void 0:u[3]),!s.width&&l&&(s.width=l),!s.height&&p&&(s.height=p)}return e.setDisplay(He(s.display,{flex:o.DISPLAY_FLEX,block:o.DISPLAY_FLEX,contents:o.DISPLAY_CONTENTS,none:o.DISPLAY_NONE,"-webkit-box":o.DISPLAY_FLEX},o.DISPLAY_FLEX,"display")),e.setAlignContent(He(s.alignContent,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,"space-between":o.ALIGN_SPACE_BETWEEN,"space-around":o.ALIGN_SPACE_AROUND,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignContent")),e.setAlignItems(He(s.alignItems,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(He(s.alignSelf,{stretch:o.ALIGN_STRETCH,center:o.ALIGN_CENTER,"flex-start":o.ALIGN_FLEX_START,"flex-end":o.ALIGN_FLEX_END,baseline:o.ALIGN_BASELINE,normal:o.ALIGN_AUTO},o.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(He(s.justifyContent,{center:o.JUSTIFY_CENTER,"flex-start":o.JUSTIFY_FLEX_START,"flex-end":o.JUSTIFY_FLEX_END,"space-between":o.JUSTIFY_SPACE_BETWEEN,"space-around":o.JUSTIFY_SPACE_AROUND},o.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(He(s.flexDirection,{row:o.FLEX_DIRECTION_ROW,column:o.FLEX_DIRECTION_COLUMN,"row-reverse":o.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":o.FLEX_DIRECTION_COLUMN_REVERSE},o.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(He(s.flexWrap,{wrap:o.WRAP_WRAP,nowrap:o.WRAP_NO_WRAP,"wrap-reverse":o.WRAP_WRAP_REVERSE},o.WRAP_NO_WRAP,"flexWrap")),typeof s.gap<"u"&&e.setGap(o.GUTTER_ALL,s.gap),typeof s.rowGap<"u"&&e.setGap(o.GUTTER_ROW,s.rowGap),typeof s.columnGap<"u"&&e.setGap(o.GUTTER_COLUMN,s.columnGap),typeof s.flexBasis<"u"&&e.setFlexBasis(zt(s.flexBasis,"flexBasis")),e.setFlexGrow(typeof s.flexGrow>"u"?0:s.flexGrow),e.setFlexShrink(typeof s.flexShrink>"u"?0:s.flexShrink),typeof s.maxHeight<"u"&&e.setMaxHeight(Wt(s.maxHeight,"maxHeight")),typeof s.maxWidth<"u"&&e.setMaxWidth(Wt(s.maxWidth,"maxWidth")),typeof s.minHeight<"u"&&e.setMinHeight(Wt(s.minHeight,"minHeight")),typeof s.minWidth<"u"&&e.setMinWidth(Wt(s.minWidth,"minWidth")),e.setOverflow(He(s.overflow,{visible:o.OVERFLOW_VISIBLE,hidden:o.OVERFLOW_HIDDEN},o.OVERFLOW_VISIBLE,"overflow")),e.setMargin(o.EDGE_TOP,zt(s.marginTop||0)),e.setMargin(o.EDGE_BOTTOM,zt(s.marginBottom||0)),e.setMargin(o.EDGE_LEFT,zt(s.marginLeft||0)),e.setMargin(o.EDGE_RIGHT,zt(s.marginRight||0)),e.setBorder(o.EDGE_TOP,s.borderTopWidth||0),e.setBorder(o.EDGE_BOTTOM,s.borderBottomWidth||0),e.setBorder(o.EDGE_LEFT,s.borderLeftWidth||0),e.setBorder(o.EDGE_RIGHT,s.borderRightWidth||0),e.setPadding(o.EDGE_TOP,s.paddingTop||0),e.setPadding(o.EDGE_BOTTOM,s.paddingBottom||0),e.setPadding(o.EDGE_LEFT,s.paddingLeft||0),e.setPadding(o.EDGE_RIGHT,s.paddingRight||0),e.setBoxSizing(He(s.boxSizing,{"border-box":o.BOX_SIZING_BORDER_BOX,"content-box":o.BOX_SIZING_CONTENT_BOX},o.BOX_SIZING_BORDER_BOX,"boxSizing")),e.setPositionType(He(s.position,{absolute:o.POSITION_TYPE_ABSOLUTE,relative:o.POSITION_TYPE_RELATIVE,static:o.POSITION_TYPE_STATIC},o.POSITION_TYPE_RELATIVE,"position")),typeof s.top<"u"&&e.setPosition(o.EDGE_TOP,Wt(s.top,"top")),typeof s.bottom<"u"&&e.setPosition(o.EDGE_BOTTOM,Wt(s.bottom,"bottom")),typeof s.left<"u"&&e.setPosition(o.EDGE_LEFT,Wt(s.left,"left")),typeof s.right<"u"&&e.setPosition(o.EDGE_RIGHT,Wt(s.right,"right")),typeof s.height<"u"?e.setHeight(zt(s.height,"height")):e.setHeightAuto(),typeof s.width<"u"?e.setWidth(zt(s.width,"width")):e.setWidthAuto(),[s,zi(s)]}var Xi=Pt(require("escape-html"),1);var au=[1,0,0,1,0,0];function wd(e,t,n){let r=[...au];for(let i of e){let o=Object.keys(i)[0],s=i[o];if(typeof s=="string")if(o==="translateX")s=parseFloat(s)/100*t,i[o]=s;else if(o==="translateY")s=parseFloat(s)/100*n,i[o]=s;else throw new Error(`Invalid transform: "${o}: ${s}".`);let a=s,u=[...au];switch(o){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let f=a*Math.PI/180,l=Math.cos(f),p=Math.sin(f);u[0]=l,u[1]=p,u[2]=-p,u[3]=l;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=Dr(u,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function zr({left:e,top:t,width:n,height:r},i,o,s){let a;i.__resolved||wd(i,n,r);let u=i;if(o)a=u;else{let f=(s==null?void 0:s.xAbsolute)??((s==null?void 0:s.xRelative)??50)*n/100,l=(s==null?void 0:s.yAbsolute)??((s==null?void 0:s.yRelative)??50)*r/100,p=e+f,h=t+l;a=Dr([1,0,0,1,p,h],Dr(u,[1,0,0,1,-p,-h])),u.__parent&&(a=Dr(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(f=>f.toFixed(2)).join(",")})`}function uu({left:e,top:t,width:n,height:r,isInheritingTransform:i},o){let s="",a=1;return o.transform&&(s=zr({left:e,top:t,width:n,height:r},o.transform,i,o.transformOrigin)),o.opacity!==void 0&&(a=+o.opacity),{matrix:s,opacity:a}}function Qi({id:e,content:t,filter:n,left:r,top:i,width:o,height:s,matrix:a,opacity:u,image:f,clipPathId:l,debug:p,shape:h,decorationShape:m},b){let y="";if(p&&(y=M("rect",{x:r,y:i-s,width:o,height:s,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0})),f){let E={href:f,x:r,y:i,width:o,height:s,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("image",{...E,opacity:u!==1?u:void 0})+(m||"")+(n?"</g>":"")+y,""]}let T={x:r,y:i,width:o,height:s,"font-weight":b.fontWeight,"font-style":b.fontStyle,"font-size":b.fontSize,"font-family":b.fontFamily,"letter-spacing":b.letterSpacing||void 0,transform:a||void 0,"clip-path":l?`url(#${l})`:void 0,style:b.filter?`filter:${b.filter}`:void 0,"stroke-width":b.WebkitTextStrokeWidth?`${b.WebkitTextStrokeWidth}px`:void 0,stroke:b.WebkitTextStrokeWidth?b.WebkitTextStrokeColor:void 0,"stroke-linejoin":b.WebkitTextStrokeWidth?"round":void 0,"paint-order":b.WebkitTextStrokeWidth?"stroke":void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+M("text",{...T,fill:b.color,opacity:u!==1?u:void 0},(0,Xi.default)(t))+(m||"")+(n?"</g>":"")+y,h?M("text",T,(0,Xi.default)(t)):""]}function Sd(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,o,s){return i+(parseFloat(o)+t)+","+(parseFloat(s)+n)})}var Qn=1.1;function lu({id:e,width:t,height:n},r,i=!1){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let o=r.shadowColor.length,s="",a="",u=0,f=t,l=0,p=n;for(let h=0;h<o;h++){let m=r.shadowRadius[h]*r.shadowRadius[h]/4;if(u=Math.min(r.shadowOffset[h].width-m,u),f=Math.max(r.shadowOffset[h].width+m+t,f),l=Math.min(r.shadowOffset[h].height-m,l),p=Math.max(r.shadowOffset[h].height+m+n,p),i){let b=`satori_s-${e}-result-${h}`;s+=M("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[h]/2,result:`${b}-blur`})+M("feOffset",{in:`${b}-blur`,dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,result:`${b}-offset`})+M("feFlood",{"flood-color":r.shadowColor[h],"flood-opacity":1,result:`${b}-color`})+M("feComposite",{in:`${b}-color`,in2:`${b}-offset`,operator:"in",result:o>1?b:void 0})}else s+=M("feDropShadow",{dx:r.shadowOffset[h].width,dy:r.shadowOffset[h].height,stdDeviation:r.shadowRadius[h]/2,"flood-color":r.shadowColor[h],"flood-opacity":1,...o>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${h}`}:{}});o>1&&(a=M("feMergeNode",{in:`satori_s-${e}-result-${h}`})+a)}return M("filter",{id:`satori_s-${e}`,x:(u/t*100*Qn).toFixed(2)+"%",y:(l/n*100*Qn).toFixed(2)+"%",width:((f-u)/t*100*Qn).toFixed(2)+"%",height:((p-l)/n*100*Qn).toFixed(2)+"%"},s+(a?M("feMerge",{},a):""))}function fu({width:e,height:t,shape:n,opacity:r,id:i},o){if(!o.boxShadow)return null;let s="",a="";for(let u=o.boxShadow.length-1;u>=0;u--){let f="",l=o.boxShadow[u];l.spreadRadius&&l.inset&&(l.spreadRadius=-l.spreadRadius);let p=l.blurRadius*l.blurRadius/4+(l.spreadRadius||0),h=Math.min(-p-(l.inset?l.offsetX:0),0),m=Math.max(p+e-(l.inset?l.offsetX:0),e),b=Math.min(-p-(l.inset?l.offsetY:0),0),y=Math.max(p+t-(l.inset?l.offsetY:0),t),T=`satori_s-${i}-${u}`,E=`satori_ms-${i}-${u}`,P=l.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${l.spreadRadius*2}"`):n;f+=M("mask",{id:E,maskUnits:"userSpaceOnUse"},M("rect",{x:0,y:0,width:o._viewportWidth||"100%",height:o._viewportHeight||"100%",fill:l.inset?"#000":"#fff"})+P.replace('fill="#fff"',l.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let w=P.replace(/d="([^"]+)"/,(S,O)=>'d="'+Sd(O,l.offsetX,l.offsetY)+'"').replace(/x="([^"]+)"/,(S,O)=>'x="'+(parseFloat(O)+l.offsetX)+'"').replace(/y="([^"]+)"/,(S,O)=>'y="'+(parseFloat(O)+l.offsetY)+'"');l.spreadRadius&&l.spreadRadius<0&&(f+=M("mask",{id:E+"-neg",maskUnits:"userSpaceOnUse"},w.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-l.spreadRadius*2}"`))),l.spreadRadius&&l.spreadRadius<0&&(w=M("g",{mask:`url(#${E}-neg)`},w)),f+=M("defs",{},M("filter",{id:T,x:`${h/e*100}%`,y:`${b/t*100}%`,width:`${(m-h)/e*100}%`,height:`${(y-b)/t*100}%`},M("feGaussianBlur",{stdDeviation:l.blurRadius/2,result:"b"})+M("feFlood",{"flood-color":l.color,in:"SourceGraphic",result:"f"})+M("feComposite",{in:"f",in2:"b",operator:l.inset?"out":"in"})))+M("g",{mask:`url(#${E})`,filter:`url(#${T})`,opacity:r},w),l.inset?a+=f:s+=f}return[s,a]}function _d(e,t,n,r,i,o){let s=i/2,a=Math.max(s,i*1.25),u=[];for(let p of n){if(p.y2<o+s||p.y1>r+s)continue;let h=Math.max(e,p.x1-a),m=Math.min(t,p.x2+a);if(h>=m)continue;if(u.length===0){u.push([h,m]);continue}let b=u[u.length-1];h<=b[1]?b[1]=Math.max(b[1],m):u.push([h,m])}if(!u.length)return[[e,t]];let f=[],l=e;for(let[p,h]of u)if(p>l&&f.push([l,p]),l=Math.max(l,h),l>=t)break;return l<t&&f.push([l,t]),f}function Ki({width:e,left:t,top:n,ascender:r,clipPathId:i,matrix:o,glyphBoxes:s},a){let{textDecorationColor:u,textDecorationStyle:f,textDecorationLine:l,textDecorationSkipInk:p,fontSize:h,color:m}=a;if(!l||l==="none")return"";let b=Math.max(1,h*.1),y=l==="line-through"?n+r*.7:l==="underline"?n+r*1.1:n,T=f==="dashed"?`${b*1.2} ${b*2}`:f==="dotted"?`0 ${b*2}`:void 0,E=l==="underline"&&(p||"auto")!=="none"&&(s==null?void 0:s.length),P=n+r,w=E?_d(t,t+e,s,y,b,P):[[t,t+e]],S=f==="double"?w.map(([O,I])=>M("line",{x1:O,y1:y+b+1,x2:I,y2:y+b+1,stroke:u||m,"stroke-width":b,"stroke-dasharray":T,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join(""):"";return(i?`<g clip-path="url(#${i})">`:"")+w.map(([O,I])=>M("line",{x1:O,y1:y,x2:I,y2:y,stroke:u||m,"stroke-width":b,"stroke-dasharray":T,"stroke-linecap":f==="dotted"?"round":"square",transform:o})).join("")+S+(i?"</g>":"")}function Ji(e){return e=e.replace("U+","0x"),String.fromCodePoint(Number(e))}var ir=Ji("U+0020"),Zi=Ji("U+0009"),Sr=Ji("U+2026");function cu(e,t,n){let{fontSize:r,letterSpacing:i}=n,o=new Map;function s(f){let l=o.get(f);return l===void 0&&(l=e.measure(f,{fontSize:r,letterSpacing:i}),o.set(f,l)),l}function a(f){let l=0;for(let p of f)t(p)?l+=r:l+=s(p);return l}function u(f){return a(Ve(f,"grapheme"))}return{measureGrapheme:s,measureGraphemeArray:a,measureText:u}}function du(e,t,n){let{textTransform:r,whiteSpace:i,wordBreak:o}=t;e=Td(e,r,n);let{content:s,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Od(e,i),{words:f,requiredBreaks:l,allowBreakWord:p}=kd(s,o),[h,m]=Ed(t,u);return{words:f,requiredBreaks:l,allowSoftWrap:u,allowBreakWord:p,processedContent:s,shouldCollapseTabsAndSpaces:a,lineLimit:h,blockEllipsis:m}}function Td(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=Ve(e,"word",n).map(r=>Ve(r,"grapheme",n).map((i,o)=>o===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function Ed(e,t){let{textOverflow:n,lineClamp:r,WebkitLineClamp:i,WebkitBoxOrient:o,overflow:s,display:a}=e;if(a==="block"&&r){let[u,f=Sr]=Pd(r);if(u)return[u,f]}return n==="ellipsis"&&a==="-webkit-box"&&o==="vertical"&&Sa(i)&&i>0?[i,Sr]:n==="ellipsis"&&s==="hidden"&&!t?[1,Sr]:[1/0]}function kd(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=Ta(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function Od(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=["normal","nowrap","pre-line"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g,ir)),r&&(e=e.replace(/([ ]|\t)+/g,ir).replace(/^[ ]|[ ]$/g,"")),{content:e,shouldCollapseTabsAndSpaces:r,allowSoftWrap:i}}function Pd(e){if(typeof e=="number")return[e];let t=/^(\d+)\s*"(.*)"$/,n=/^(\d+)\s*'(.*)'$/,r=t.exec(e),i=n.exec(e);if(r){let o=+r[1],s=r[2];return[o,s]}else if(i){let o=+i[1],s=i[2];return[o,s]}return[]}var to=Pt(require("parse-css-color"),1),Ad=new Set([Zi]);function Id(e){return Ad.has(e)}function eo(e){if(e==="transparent")return!0;let t=(0,to.default)(e);return t?t.alpha===0:!1}function pu(e){if(!e)return!1;let t=(0,to.default)(e);if(!t)return!1;let[n,r,i,o]=t.values;return n===255&&r===255&&i===255&&(o===void 0||o===1)}async function*ro(e,t){let n=await jt(),{parentStyle:r,inheritedStyle:i,parent:o,font:s,id:a,isInheritingTransform:u,debug:f,embedFont:l,graphemeImages:p,locale:h,canLoadAdditionalAssets:m}=t,{textAlign:b,textIndent:y=0,lineHeight:T,textWrap:E,fontSize:P,filter:w,tabSize:S=8,letterSpacing:O,_inheritedBackgroundClipTextPath:I,_inheritedBackgroundClipTextHasBackground:F,flexShrink:U}=r,{words:V,requiredBreaks:de,allowSoftWrap:Ae,allowBreakWord:me,processedContent:ue,shouldCollapseTabsAndSpaces:Ie,lineLimit:Z,blockEllipsis:ne}=du(e,r,h),Ee=Rd(n,b);o.insertChild(Ee,o.getChildCount()),_a(U)&&o.setFlexShrink(1);let ve=s.getEngine(P,T,r,h),Re=m?Ve(ue,"grapheme").filter(H=>!Id(H)&&!ve.has(H)):[];yield Re.map(H=>({word:H,locale:h})),Re.length&&(ve=s.getEngine(P,T,r,h));function ke(H){return!!(p&&Object.prototype.hasOwnProperty.call(p,H)&&p[H])}let{measureGrapheme:Ye,measureGraphemeArray:Me,measureText:Oe}=cu(ve,ke,{fontSize:P,letterSpacing:O}),le=Bn(S)?X(S,P,1,r):Ye(ir)*S,Y=(H,j)=>{if(H.length===0)return{originWidth:0,endingSpacesWidth:0,text:H};let{index:fe,tabCount:Q}=Cd(H),ye=0;if(Q>0){let xe=H.slice(0,fe),ee=H.slice(fe+Q),te=Oe(xe),ot=te+j;ye=(le===0?te:(Math.floor(ot/le)+Q)*le)+Oe(ee)}else ye=Oe(H);let ae=H.trimEnd()===H?ye:Oe(H.trimEnd());return{originWidth:ye,endingSpacesWidth:ye-ae,text:H}},J=[],pe=[],G=[],Le=[],De=[];function qe(H){let j=0,fe=0,Q=-1,ye=0,ae=0,xe=0,ee=0;J=[],G=[0],Le=[],De=[];let te=0,ot=0;for(;te<V.length&&j<Z;){let K=V[te],We=de[te],ze=0,{originWidth:Rr,endingSpacesWidth:Pe,text:tr}=Y(K,ae);K=tr,ze=Rr;let Ue=Pe;We&&xe===0&&(xe=ve.height(K));let Lt=b==="justify",we=te&&ae+ze>H+Ue&&Ae;if(me&&ze>H&&(!ae||we||We)){let tt=Ve(K,"grapheme");V.splice(te,1,...tt),ae>0&&(J.push(ae-ot),pe.push(ee),j++,ye+=xe,ae=0,xe=0,ee=0,G.push(1),Q=-1),ot=Ue;continue}if(We||we)Ie&&K===ir&&(ze=0),J.push(ae-ot),pe.push(ee),j++,ye+=xe,ae=ze,xe=ze?Math.round(ve.height(K)):0,ee=ze?Math.round(ve.baseline(K)):0,G.push(1),Q=-1,We||(fe=Math.max(fe,H));else{ae+=ze;let tt=Math.round(ve.height(K));tt>xe&&(xe=tt,ee=Math.round(ve.baseline(K))),Lt&&G[G.length-1]++}Lt&&Q++,fe=Math.max(fe,ae);let et=ae-ze;if(ze===0)De.push({y:ye,x:et,width:0,line:j,lineIndex:Q,isImage:!1});else{let tt=Ve(K,"word");for(let bt=0;bt<tt.length;bt++){let vt=tt[bt],je=0,st=!1;ke(vt)?(je=P,st=!0):!l&&vt.length>1?je=Oe(vt):je=Ye(vt),Le.push(vt),De.push({y:ye,x:et,width:je,line:j,lineIndex:Q,isImage:st}),et+=je}}te++,ot=Ue}return ae&&(j<Z&&(ye+=xe),j++,J.push(ae),pe.push(ee)),{width:fe,height:ye}}let Be={width:0,height:0};Ee.setMeasureFunc(H=>{let{width:j,height:fe}=qe(H);if(E==="balance"){let ye=j/2,ae=j,xe=j;for(;ye+1<ae;){xe=(ye+ae)/2;let{height:te}=qe(xe);te>fe?ye=xe:ae=xe}qe(ae);let ee=Math.ceil(ae);return Be={width:ee,height:fe},{width:ee,height:fe}}if(E==="pretty"&&J[J.length-1]<j/3){let xe=j*.9,ee=qe(xe);if(ee.height<=fe*1.3)return Be={width:j,height:ee.height},{width:j,height:ee.height}}let Q=Math.ceil(j);return Be={width:Q,height:fe},{width:Q,height:fe}});let[ie,Tt]=yield,qt="",Et="",Ne=i._inheritedClipPathId,cr=i._inheritedMaskId,{left:kt,top:Ir,width:Kt,height:dr}=Ee.getComputedLayout(),pr=typeof y=="string"?X(y,P,Kt,r,!0)||0:y,Jt=o.getComputedWidth()-o.getComputedPadding(n.EDGE_LEFT)-o.getComputedPadding(n.EDGE_RIGHT)-o.getComputedBorder(n.EDGE_LEFT)-o.getComputedBorder(n.EDGE_RIGHT),Ot=ie+kt,pt=Tt+Ir,{matrix:nt,opacity:Zt}=uu({left:kt,top:Ir,width:Kt,height:dr,isInheritingTransform:u},r),Xe="";if(r.textShadowOffset){let{textShadowColor:H,textShadowOffset:j,textShadowRadius:fe}=r;Xe=lu({width:Be.width,height:Be.height,id:a},{shadowColor:H,shadowOffset:j,shadowRadius:fe},eo(r.color)||F&&pu(r.color)),Xe=M("defs",{},Xe)}let ht="",mt="",er="",Gt=-1,Ge={},it={},Ze=null,gt=0;for(let H=0;H<Le.length;H++){let j=De[H],fe=De[H+1];if(!j)continue;let Q=Le[H],ye=null,ae=!1,xe=p&&Object.prototype.hasOwnProperty.call(p,Q)?p[Q]:null,ee=j.y,te=j.x,ot=j.width,K=j.line,We=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(K===Gt)continue;let ze=!1;if(K===0&&pr!==0&&(te+=pr),J.length>1){let we=Kt-J[K];if(b==="right"||b==="end")te+=we;else if(b==="center")te+=we/2;else if(b==="justify"&&K<J.length-1){let Te=G[K],et=Te>1?we/(Te-1):0;te+=et*j.lineIndex,ze=!0}l&&(te=Math.round(te))}let Rr=pe[K],Pe=ve.baseline(Q),tr=ve.height(Q),Ue=Rr-Pe,Lt=we=>!We||r.textDecorationLine!=="underline"?void 0:{underlineY:pt+we+Ue+Pe+Pe*.1,strokeWidth:Math.max(1,P*.1)};if(Ge[K]||(Ge[K]={left:te,top:pt+ee+Ue,ascender:Pe,width:ze?Kt:J[K]}),Z!==1/0){let vt=function(je,st){let Cr=Ve(st,"grapheme",h),hr="",Ln=0;for(let Mn of Cr){let Lr=je+Me([hr+Mn]);if(hr&&Lr+Te>Jt)break;hr+=Mn,Ln=Lr}return{subset:hr,resolvedWidth:Ln}},we=ne,Te=Ye(ne);Te>Jt&&(we=Sr,Te=Ye(we));let et=Ye(ir),tt=K<J.length-1;if(K+1===Z&&(tt||J[K]>Jt)){if(te+ot+Te+et>Jt){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,Gt=K,Ge[K].width=Math.max(0,st-Ge[K].left),ae=!0}else if(fe&&fe.line!==K)if(b==="center"){let{subset:je,resolvedWidth:st}=vt(te,Q);Q=je+we,Gt=K,Ge[K].width=Math.max(0,st-Ge[K].left),ae=!0}else{let je=Le[H+1],{subset:st,resolvedWidth:Cr}=vt(ot+te,je);Q=Q+st+we,Gt=K,Ge[K].width=Math.max(0,Cr-Ge[K].left),ae=!0}}}if(xe)ee+=0;else if(l){if(!Q.includes(Zi)&&!xa.includes(Q)&&Le[H+1]&&fe&&!fe.isImage&&ee===fe.y&&!ae){Ze===null&&(gt=te),Ze=Ze===null?Q:Ze+Q;continue}let we=Ze===null?Q:Ze+Q,Te=Ze===null?te:gt,et=j.width+te-Te,tt=Lt(ee),bt=ve.getSVG(we.replace(/(\t)+/g,""),{fontSize:P,left:Ot+Te,top:pt+ee+Pe+Ue,letterSpacing:O},tt);ye=bt.path,We&&bt.boxes&&bt.boxes.length&&(it[K]||(it[K]=[])).push(...bt.boxes),Ze=null,f&&(er+=M("rect",{x:Ot+Te,y:pt+ee+Ue,width:et,height:tr,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0})+M("line",{x1:Ot+te,x2:Ot+te+j.width,y1:pt+ee+Ue+Pe,y2:pt+ee+Ue+Pe,stroke:"#14c000","stroke-width":1,transform:nt||void 0,"clip-path":Ne?`url(#${Ne})`:void 0}))}else if(ee+=Pe+Ue,We&&!xe){let we=Lt(ee),Te=ve.getSVG(Q.replace(/(\t)+/g,""),{fontSize:P,left:Ot+te,top:pt+ee,letterSpacing:O},we);Te.boxes&&Te.boxes.length&&(it[K]||(it[K]=[])).push(...Te.boxes)}if(ye!==null)mt+=ye+" ";else{let[we,Te]=Qi({content:Q,filter:Xe,id:a,left:Ot+te,top:pt+ee,width:ot,height:tr,matrix:nt,opacity:Zt,image:xe,clipPathId:Ne,debug:f,shape:!!I},r);qt+=we,Et+=Te}if(ae)break}if(r.textDecorationLine&&(ht=Object.entries(Ge).map(([H,j])=>{if(!j)return"";let fe=it[H]||[];return Ki({left:Ot+j.left,top:j.top,width:j.width,ascender:j.ascender,clipPathId:Ne,matrix:nt,glyphBoxes:fe},r)}).join("")),mt){let H=(!eo(r.color)||Xe)&&Zt!==0?`<g ${cr?`mask="url(#${cr})"`:""} ${Ne?`clip-path="url(#${Ne})"`:""}>`+M("path",{fill:Xe&&(eo(r.color)||F&&pu(r.color))?"black":r.color,d:mt,transform:nt||void 0,opacity:Zt!==1?Zt:void 0,style:w?`filter:${w}`:void 0,"stroke-width":i.WebkitTextStrokeWidth?`${i.WebkitTextStrokeWidth}px`:void 0,stroke:i.WebkitTextStrokeWidth?i.WebkitTextStrokeColor:void 0,"stroke-linejoin":i.WebkitTextStrokeWidth?"round":void 0,"paint-order":i.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";I&&(Et=M("path",{d:mt,transform:nt||void 0})),qt+=(Xe?Xe+M("g",{filter:`url(#satori_s-${a})`},H+ht):H+ht)+er}else ht&&(qt+=Xe?M("g",{filter:`url(#satori_s-${a})`},ht):ht);return Et&&(r._inheritedBackgroundClipTextPath.value+=Et),qt}function Rd(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(He(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function Cd(e){let t=/(\t)+/.exec(e);return t?{index:t.index,tabCount:t[0].length}:{index:null,tabCount:0}}var mu=require("css-gradient-parser");var hu=Pt(require("parse-css-color"),1);function Kn(e,t,n,r,i){let o=[],s=t.at(-1),a=s&&s.offset&&s.offset.unit==="%"&&r?+s.offset.value:100;for(let p of t){let{color:h}=p;if(!o.length&&(o.push({offset:0,color:h}),!p.offset||p.offset.value==="0"))continue;let m=typeof p.offset>"u"?void 0:p.offset.unit==="%"?+p.offset.value/a:Number(X(`${p.offset.value}${p.offset.unit}`,n.fontSize,e,n,!0))/e;o.push({offset:m,color:h})}o.length||o.push({offset:0,color:"transparent"});let u=o[o.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?o[o.length-1]={offset:1,color:u.color}:o.push({offset:1,color:u.color}));let f=0,l=1;for(let p=0;p<o.length;p++)if(typeof o[p].offset>"u"){for(l<p&&(l=p);typeof o[l].offset>"u";)l++;o[p].offset=(o[l].offset-o[f].offset)/(l-f)*(p-f)+o[f].offset}else f=p;return i==="mask"?o.map(p=>{let h=(0,hu.default)(p.color);return h?h.alpha===0?{...p,color:"rgba(0, 0, 0, 1)"}:{...p,color:`rgba(255, 255, 255, ${h.alpha})`}:p}):o}function gu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){let l=(0,mu.parseLinearGradient)(o),[p,h]=s,m=o.startsWith("repeating"),b,y,T;if(l.orientation.type==="directional")b=Md(l.orientation.value),y=Math.sqrt(Math.pow((b.x2-b.x1)*p,2)+Math.pow((b.y2-b.y1)*h,2));else if(l.orientation.type==="angular"){let{length:O,...I}=Nd(Ri(`${l.orientation.value.value}${l.orientation.value.unit}`)/180*Math.PI,p,h);y=O,b=I}T=m?Wd(l.stops,y,b,u):b;let E=Kn(m?Ld(l.stops,y):y,l.stops,u,m,f),P=`satori_bi${e}`,w=`satori_pattern_${e}`,S=M("pattern",{id:w,x:a[0]/t,y:a[1]/n,width:r?p/t:"1",height:i?h/n:"1",patternUnits:"objectBoundingBox"},M("linearGradient",{id:P,...T,spreadMethod:m?"repeat":"pad"},E.map(O=>M("stop",{offset:(O.offset??0)*100+"%","stop-color":O.color})).join(""))+M("rect",{x:0,y:0,width:p,height:h,fill:`url(#${P})`}));return[w,S]}function Ld(e,t){let n=e[e.length-1],{offset:r}=n;return r?r.unit==="%"?Number(r.value)/100*t:Number(r.value):t}function Md(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),{x1:t,y1:n,x2:r,y2:i}}function Nd(e,t,n){let r=Math.pow(n/t,2);e=(e%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let i,o,s,a,u,f,l,p,h=m=>{if(m===0){i=0,o=n,s=0,a=0,u=n;return}else if(m===Math.PI/2){i=0,o=0,s=t,a=0,u=t;return}if(m>0&&m<Math.PI/2){i=(r*t/2/Math.tan(m)-n/2)/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i+n,s=Math.abs(t/2-i)+t/2,a=n/2-Math.abs(o-n/2),u=Math.sqrt(Math.pow(s-i,2)+Math.pow(a-o,2)),l=(t/2/Math.tan(m)-n/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l+n,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else if(m>Math.PI/2&&m<Math.PI){i=(n/2+r*t/2/Math.tan(m))/(Math.tan(m)+r/Math.tan(m)),o=Math.tan(m)*i,s=Math.abs(t/2-i)+t/2,a=n/2+Math.abs(o-n/2),l=(t/2/Math.tan(m)+n/2)/(Math.tan(m)+1/Math.tan(m)),p=Math.tan(m)*l,u=2*Math.sqrt(Math.pow(t/2-l,2)+Math.pow(n/2-p,2));return}else m>=Math.PI&&(h(m-Math.PI),f=i,i=s,s=f,f=o,o=a,a=f)};return h(e),{x1:i/t,y1:o/n,x2:s/t,y2:a/n,length:u}}function Wd(e,t,n,r){let{x1:i,x2:o,y1:s,y2:a}=n,u=e[0].offset?e[0].offset.unit==="%"?Number(e[0].offset.value)/100:X(`${e[0].offset.value}${e[0].offset.unit}`,r.fontSize,t,r,!0)/t:0,f=e.at(-1).offset?e.at(-1).offset.unit==="%"?Number(e.at(-1).offset.value)/100:X(`${e.at(-1).offset.value}${e.at(-1).offset.unit}`,r.fontSize,t,r,!0)/t:1,l=(o-i)*u+i,p=(a-s)*u+s,h=(o-i)*f+i,m=(a-s)*f+s;return{x1:l,y1:p,x2:h,y2:m}}var vu=require("css-gradient-parser");function yu({id:e,width:t,height:n,repeatX:r,repeatY:i},o,s,a,u,f){var ue;let{shape:l,stops:p,position:h,size:m,repeating:b}=(0,vu.parseRadialGradient)(o),[y,T]=s,E=y/2,P=T/2,w=Dd(h.x,h.y,y,T,u.fontSize,u);E=w.x,P=w.y;let S=Fd(t,p,b,u),O=Kn(S,p,u,b,f),I=`satori_radial_${e}`,F=`satori_pattern_${e}`,U=`satori_mask_${e}`,V=Bd(l,m,u.fontSize,{x:E,y:P},[y,T],u,b),de=$d(l,u.fontSize,p,[y,T],u,b,V),Ae=M("pattern",{id:F,x:a[0]/t,y:a[1]/n,width:r?y/t:"1",height:i?T/n:"1",patternUnits:"objectBoundingBox"},M("radialGradient",{id:I,...de},O.map(Ie=>M("stop",{offset:Ie.offset||0,"stop-color":Ie.color})).join(""))+M("mask",{id:U},M("rect",{x:0,y:0,width:y,height:T,fill:"#fff"}))+M("rect",{x:0,y:0,width:y,height:T,fill:((ue=O.at(-1))==null?void 0:ue.color)||"transparent"})+M(l,{cx:E,cy:P,width:y,height:T,...V,fill:`url(#${I})`,mask:`url(#${U})`}));return[F,Ae]}function Fd(e,t,n,r){if(!n)return e;let i=t.at(-1);return!i||!i.offset||i.offset.unit==="%"?e:X(`${i.offset.value}${i.offset.unit}`,+r.fontSize,e,r,!0)}function Dd(e,t,n,r,i,o){let s={x:n/2,y:r/2};return e.type==="keyword"?Object.assign(s,bu(e.value,n,r,"x")):s.x=X(`${e.value.value}${e.value.unit}`,i,n,o,!0)??n/2,t.type==="keyword"?Object.assign(s,bu(t.value,n,r,"y")):s.y=X(`${t.value.value}${t.value.unit}`,i,r,o,!0)??r/2,s}function bu(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function $d(e,t,n,[r,i],o,s,a){let{r:u,rx:f,ratio:l=1}=a;if(!s)return{spreadMethod:"pad"};let p=n.at(-1),h=e==="circle"?u*2:f*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:p.offset.unit==="%"?`${Number(p.offset.value)*Math.min(i/r,1)/l}%`:Number(X(`${p.offset.value}${p.offset.unit}`,t,r,o,!0)/h)}}function Bd(e,t,n,r,i,o,s){let[a,u]=i,{x:f,y:l}=r,p={},h=0,m=0;if(Ud(t)){if(t.some(b=>b.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?Object.assign(p,{r:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0))}):Object.assign(p,{rx:Number(X(`${t[0].value.value}${t[0].value.unit}`,n,a,o,!0)),ry:Number(X(`${t[1].value.value}${t[1].value.unit}`,n,u,o,!0))}),Jn(p,a,u,f,l,s,e),p}switch(t[0].value){case"farthest-corner":h=Math.max(Math.abs(a-f),Math.abs(f)),m=Math.max(Math.abs(u-l),Math.abs(l));break;case"closest-corner":h=Math.min(Math.abs(a-f),Math.abs(f)),m=Math.min(Math.abs(u-l),Math.abs(l));break;case"farthest-side":return e==="circle"?p.r=Math.max(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.max(Math.abs(a-f),Math.abs(f)),p.ry=Math.max(Math.abs(u-l),Math.abs(l))),Jn(p,a,u,f,l,s,e),p;case"closest-side":return e==="circle"?p.r=Math.min(Math.abs(a-f),Math.abs(f),Math.abs(u-l),Math.abs(l)):(p.rx=Math.min(Math.abs(a-f),Math.abs(f)),p.ry=Math.min(Math.abs(u-l),Math.abs(l))),Jn(p,a,u,f,l,s,e),p}return e==="circle"?p.r=Math.sqrt(h*h+m*m):Object.assign(p,xu(h,m)),Jn(p,a,u,f,l,s,e),p}function Jn(e,t,n,r,i,o,s){if(o)if(s==="ellipse"){let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),{rx:f,ry:l}=xu(a,u);e.ratio=Math.max(f/e.rx,l/e.ry),e.ratio>1&&(e.rx*=e.ratio,e.ry*=e.ratio)}else{let a=Math.max(Math.abs(t-r),Math.abs(r)),u=Math.max(Math.abs(n-i),Math.abs(i)),f=Math.sqrt(a*a+u*u);e.ratio=f/e.r,e.ratio>1&&(e.r=f)}}function xu(e,t){let n=t!==0?e/t:1;if(e===0)return{rx:0,ry:0};{let r=Math.sqrt(e*e+t*t*n*n)/n;return{ry:r,rx:r*n}}}function Ud(e){return!e.some(t=>t.type==="keyword")}var io=Pt(require("parse-css-color"),1);function oo(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function qd(e,t,n,r,i){if(!r||!i)return[t,n];if(e==="cover"){let o=t/r,s=n/i,a=Math.max(o,s);return[r*a,i*a]}if(e==="contain"){let o=t/r,s=n/i,a=Math.min(o,s);return[r*a,i*a]}if(e==="auto"||e.includes("auto")){let o=e.split(" "),s=o[0]||"auto",a=o[1]||o[0]||"auto",u=r,f=i;if(s==="auto"&&a!=="auto"){let l=oo(a,n);f=l,u=r/i*l}else if(a==="auto"&&s!=="auto"){let l=oo(s,t);u=l,f=i/r*l}return[u,f]}return[t,n]}function no(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(o=>{try{let s=new xt(o);return s.type==="length"||s.type==="number"?s.value:s.value+s.unit}catch{return null}}).filter(o=>o!==null):[r,i]).map((o,s)=>oo(o,[t,n][s]))}async function jr({id:e,width:t,height:n,left:r,top:i},{image:o,size:s,position:a,repeat:u},f,l){u=u||"repeat",l=l||"background";let p=u==="repeat-x"||u==="repeat",h=u==="repeat-y"||u==="repeat",m=s&&(s==="cover"||s==="contain"||s==="auto"||s.includes("auto")),b=o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient(")||o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("),y=m&&b?[t,n]:m?[0,0]:no(s,{x:t,y:n,defaultX:t,defaultY:n}),T=no(a,{x:t,y:n,defaultX:0,defaultY:0});if(o.startsWith("linear-gradient(")||o.startsWith("repeating-linear-gradient("))return gu({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,T,f,l);if(o.startsWith("radial-gradient(")||o.startsWith("repeating-radial-gradient("))return yu({id:e,width:t,height:n,repeatX:p,repeatY:h},o,y,T,f,l);if(o.startsWith("url(")){let[E,P,w]=await wr(o.slice(4,-1)),S,O;if(m){let[I,F]=qd(s,t,n,P,w);S=I,O=F}else{let I=no(s,{x:t,y:n,defaultX:0,defaultY:0});S=l==="mask"?P||I[0]:I[0]||P,O=l==="mask"?w||I[1]:I[1]||w}return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:T[0]+r,y:T[1]+i,width:p?S:"100%",height:h?O:"100%"},M("image",{x:0,y:0,width:S,height:O,preserveAspectRatio:"none",href:E}))]}if((0,io.default)(o)){let E=(0,io.default)(o),[P,w,S,O]=E.values,F=`rgba(${P},${w},${S},${O!==void 0?O:1})`;return[`satori_bi${e}`,M("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:i,width:t,height:n},M("rect",{x:0,y:0,width:t,height:n,fill:F}))]}throw new Error(`Invalid background image: "${o}"`)}function Gd([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 Zn(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 ei(e){e[0]=e[1]=Math.min(e[0],e[1])}function ti(e,t,n,r,i){if(typeof e=="string"){let o=e.split(" ").map(a=>a.trim()),s=!o[1]&&!o[0].endsWith("%");return o[1]=o[1]||o[0],[s,[Math.min(X(o[0],r,t,i,!0),t),Math.min(X(o[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var ri=e=>e&&e[0]!==0&&e[1]!==0;function wu({id:e,borderRadiusPath:t,borderType:n,left:r,top:i,width:o,height:s},a){let u=`satori_brc-${e}`;return[M("clipPath",{id:u},M(n,{x:r,y:i,width:o,height:s,d:t||void 0})),u]}function Vt({left:e,top:t,width:n,height:r},i,o){let{borderTopLeftRadius:s,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:f,fontSize:l}=i,p,h,m,b;if([p,s]=ti(s,n,r,l,i),[h,a]=ti(a,n,r,l,i),[m,u]=ti(u,n,r,l,i),[b,f]=ti(f,n,r,l,i),!o&&!ri(s)&&!ri(a)&&!ri(u)&&!ri(f))return"";s||=[0,0],a||=[0,0],u||=[0,0],f||=[0,0],[s[0],a[0]]=Zn(s[0],a[0],n),[u[0],f[0]]=Zn(u[0],f[0],n),[s[1],u[1]]=Zn(s[1],u[1],r),[a[1],f[1]]=Zn(a[1],f[1],r),p&&ei(s),h&&ei(a),m&&ei(u),b&&ei(f);let y=[];y[0]=[a,a],y[1]=[f,[-f[0],f[1]]],y[2]=[u,[-u[0],-u[1]]],y[3]=[s,[s[0],-s[1]]];let T=`h${n-s[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,E=`v${r-a[1]-f[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,P=`h${f[0]+u[0]-n} a${y[2][0]} 0 0 1 ${y[2][1]}`,w=`v${u[1]+s[1]-r} a${y[3][0]} 0 0 1 ${y[3][1]}`;if(o){let O=function(me){let ue=Gd([s,a,f,u][me]);return me===0?[[e+s[0]-ue,t+s[1]-ue],[e+s[0],t]]:me===1?[[e+n-a[0]+ue,t+a[1]-ue],[e+n,t+a[1]]]:me===2?[[e+n-f[0]+ue,t+r-f[1]+ue],[e+n-f[0],t+r]]:[[e+u[0]-ue,t+r-u[1]+ue],[e,t+r-u[1]]]},S=o.indexOf(!1);if(!o.includes(!0))throw new Error("Invalid `partialSides`.");if(S===-1)S=0;else for(;!o[S];)S=(S+1)%4;let I="",F=O(S),U=`M${F[0]} A${y[(S+3)%4][0]} 0 0 1 ${F[1]}`,V=0;for(;V<4&&o[(S+V)%4];V++)I+=U+" ",U=[T,E,P,w][(S+V)%4];let de=(S+V)%4;I+=U.split(" ")[0];let Ae=O(de);return I+=` A${y[(de+3)%4][0]} 0 0 1 ${Ae[0]}`,I}return`M${e+s[0]},${t} ${T} ${E} ${P} ${w}`}function Su(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function _u({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:o,width:s,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let l=`satori_bc-${e}`;return[M("clipPath",{id:l,"clip-path":t?`url(#${t})`:void 0},M(r,{x:i,y:o,width:s,height:a,d:n||void 0})),l]}function Vr({left:e,top:t,width:n,height:r,props:i,asContentMask:o,maskBorderOnly:s},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!o&&!u.some(m=>a[m+"Width"]))return"";let f="",l=0;for(;l>0&&Su(u[l],u[(l+3)%4],a);)l=(l+3)%4;let p=[!1,!1,!1,!1],h=[];for(let m=0;m<4;m++){let b=(l+m)%4,y=(l+m+1)%4,T=u[b],E=u[y];if(p[b]=!0,h=[a[T+"Width"],a[T+"Style"],a[T+"Color"],T],!Su(T,E,a)){let P=(h[0]||0)+(o&&!s&&a[T.replace("border","padding")]||0);P&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":P*2,"stroke-dasharray":!o&&h[1]==="dashed"?P*2+" "+P:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)})),p=[!1,!1,!1,!1]}}if(p.some(Boolean)){let m=(h[0]||0)+(o&&!s&&a[h[3].replace("border","padding")]||0);m&&(f+=M("path",{width:n,height:r,...i,fill:"none",stroke:o?"#000":h[2],"stroke-width":m*2,"stroke-dasharray":!o&&h[1]==="dashed"?m*2+" "+m:void 0,d:Vt({left:e,top:t,width:n,height:r},a,p)}))}return f}function so({id:e,left:t,top:n,width:r,height:i,matrix:o,borderOnly:s},a){let u=(a.borderLeftWidth||0)+(s?0:a.paddingLeft||0),f=(a.borderTopWidth||0)+(s?0:a.paddingTop||0),l=(a.borderRightWidth||0)+(s?0:a.paddingRight||0),p=(a.borderBottomWidth||0)+(s?0:a.paddingBottom||0),h={x:t+u,y:n+f,width:r-u-l,height:i-f-p};return M("mask",{id:e},M("rect",{...h,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&o?o:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+Vr({left:t,top:n,width:r,height:i,props:{transform:o||void 0},asContentMask:!0,maskBorderOnly:s},a))}var ao=require("css-to-react-native"),Hr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function ku({width:e,height:t},n,r){function i(f){let l=f.match(Hr.circle);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(T=>T.trim()),{x:b,y}=Eu(m,e,t);return{type:"circle",r:X(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:X(b,r.fontSize,e,r,!0),cy:X(y,r.fontSize,t,r,!0)}}function o(f){let l=f.match(Hr.ellipse);if(!l)return null;let[,p]=l,[h,m=""]=p.split("at").map(P=>P.trim()),[b,y]=h.split(" "),{x:T,y:E}=Eu(m,e,t);return{type:"ellipse",rx:X(b||"50%",r.fontSize,e,r,!0),ry:X(y||"50%",r.fontSize,t,r,!0),cx:X(T,r.fontSize,e,r,!0),cy:X(E,r.fontSize,t,r,!0)}}function s(f){let l=f.match(Hr.path);if(!l)return null;let[p,h]=Tu(l[1]);return{type:"path",d:h,"fill-rule":p}}function a(f){let l=f.match(Hr.polygon);if(!l)return null;let[p,h]=Tu(l[1]);return{type:"polygon","fill-rule":p,points:h.split(",").map(m=>m.split(" ").map((b,y)=>X(b,r.fontSize,y===0?e:t,r,!0)).join(" ")).join(",")}}function u(f){let l=f.match(Hr.inset);if(!l)return null;let[p,h]=(l[1].includes("round")?l[1]:`${l[1].trim()} round 0`).split("round"),m=(0,ao.getStylesForProperty)("borderRadius",h,!0),b=Object.values(m).map(S=>String(S)).map((S,O)=>X(S,r.fontSize,O===0||O===2?t:e,r,!0)||0),y=Object.values((0,ao.getStylesForProperty)("margin",p,!0)).map(S=>String(S)).map((S,O)=>X(S,r.fontSize,O===0||O===2?t:e,r,!0)||0),T=y[3],E=y[0],P=e-(y[1]+y[3]),w=t-(y[0]+y[2]);return b.some(S=>S>0)?{type:"path",d:Vt({left:T,top:E,width:P,height:w},{...n,...m})}:{type:"rect",x:T,y:E,width:P,height:w}}return{parseCircle:i,parseEllipse:o,parsePath:s,parsePolygon:a,parseInset:u}}function Tu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Eu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(o=>{o==="top"?i.y=0:o==="bottom"?i.y=n:o==="left"?i.x=0:o==="right"?i.x=t:o==="center"&&(i.x=t/2,i.y=n/2)}),i}function ni(e){return`satori_cp-${e}`}function Ou(e){return`url(#${ni(e)})`}function Pu(e,t,n){if(t.clipPath==="none")return"";let r=ku(e,t,n),i=t.clipPath,o={type:""};for(let s of Object.keys(r))if(o=r[s](i),o)break;if(o){let{type:s,...a}=o;return M("clipPath",{id:ni(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},M(s,a))}return""}function uo({left:e,top:t,width:n,height:r,path:i,matrix:o,id:s,currentClipPath:a,src:u},f,l){let p="",h=f.clipPath&&f.clipPath!=="none"?Pu({left:e,top:t,width:n,height:r,path:i,id:s,matrix:o,currentClipPath:a,src:u},f,l):"";if(f.overflow!=="hidden"&&!u)p="";else{let b=h?`satori_ocp-${s}`:ni(s);p=M("clipPath",{id:b,"clip-path":a},M(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0,transform:f.overflow==="hidden"&&f.transform&&o?o:void 0}))}let m=so({id:`satori_om-${s}`,left:e,top:t,width:n,height:r,matrix:o,borderOnly:!u},f);return h+p+m}var zd=e=>`satori_mi-${e}`;async function lo(e,t,n){if(!t.maskImage)return["",""];let{left:r,top:i,width:o,height:s,id:a}=e,u=t.maskImage,f=u.length;if(!f)return["",""];let l=zd(a),p="";for(let h=0;h<f;h++){let m=u[h],[b,y]=await jr({id:`${l}-${h}`,left:r,top:i,width:o,height:s},m,n,"mask");p+=y+M("rect",{x:r,y:i,width:o,height:s,fill:`url(#${b})`})}return p=M("mask",{id:l},p),[l,p]}function jd(e,t,n){let r=e.toLowerCase().trim().split(/\s+/),i=(u,f)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,o,s;if(r.length===1){let u=r[0];u==="left"||u==="center"||u==="right"?(o=i(u,"x"),s="50%"):u==="top"||u==="bottom"?(o="50%",s=i(u,"y")):(o=u,s="50%")}else{let u=r[0],f=r[1];u==="top"||u==="bottom"?(s=i(u,"y"),f==="left"||f==="right"||f==="center"?o=i(f,"x"):(o="50%",s=u==="top"||u==="bottom"?i(u,"y"):f)):(o=i(u,"x"),s=i(f,"y"))}let a=(u,f)=>{try{if(u.endsWith("%"))return f*parseFloat(u)/100;let l=new xt(u);return l.type==="length"||l.type==="number"?l.value:0}catch{return 0}};return[a(o,t),a(s,n)]}async function Yr({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:o,src:s,debug:a},u,f){if(u.display==="none")return"";let l=!!s,p="rect",h="",m="",b=[],y=1,T="";u.backgroundColor&&b.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(h=zr({left:t,top:n,width:r,height:i},u.transform,o,u.transformOrigin));let E="";if(u.backgroundImage){let Z=[];for(let ne=0;ne<u.backgroundImage.length;ne++){let Ee=u.backgroundImage[ne],ve=await jr({id:e+"_"+ne,width:r,height:i,left:t,top:n},Ee,f);ve&&Z.unshift(ve)}for(let ne of Z)b.push(`url(#${ne[0]})`),m+=ne[1],ne[2]&&(E+=ne[2])}let[P,w]=await lo({id:e,left:t,top:n,width:r,height:i},u,f);m+=w;let S=P?`url(#${P})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,O=Vt({left:t,top:n,width:r,height:i},u);O&&(p="path");let I=u._inheritedClipPathId;a&&(T=M("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":I?`url(#${I})`:void 0}));let{backgroundClip:F,filter:U}=u,V=F==="text"?`url(#satori_bct-${e})`:I?`url(#${I})`:u.clipPath?Ou(e):void 0,de=uo({left:t,top:n,width:r,height:i,path:O,id:e,matrix:h,currentClipPath:V,src:s},u,f),Ae=b.map(Z=>M(p,{x:t,y:n,width:r,height:i,fill:Z,d:O||void 0,transform:h||void 0,"clip-path":u.transform?void 0:V,style:U?`filter:${U}`:void 0,mask:u.transform?void 0:S})).join(""),me=_u({id:e,left:t,top:n,width:r,height:i,currentClipPathId:I,borderPath:O,borderType:p},u),ue;if(l){let Z=(u.borderLeftWidth||0)+(u.paddingLeft||0),ne=(u.borderTopWidth||0)+(u.paddingTop||0),Ee=(u.borderRightWidth||0)+(u.paddingRight||0),ve=(u.borderBottomWidth||0)+(u.paddingBottom||0),Re=r-Z-Ee,ke=i-ne-ve,Ye=(u.objectPosition||"center").toString(),[Me,Oe]=jd(Ye,Re,ke),le=u.__naturalWidth||Re,Y=u.__naturalHeight||ke,J,pe=Re,G=ke,Le=t+Z,De=n+ne;if(u.objectFit==="contain"){let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);pe=le*ie,G=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-G*Oe/ke,J="none"}else if(u.objectFit==="cover"){let qe=Re/le,Be=ke/Y,ie=Math.max(qe,Be);pe=le*ie,G=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-G*Oe/ke,J="none"}else if(u.objectFit==="fill")J="none";else if(u.objectFit==="scale-down")if(le&&Y){let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);if(ie>=1)pe=le,G=Y,J="none",Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-G*Oe/ke;else{let Tt=ie;pe=le*Tt,G=Y*Tt,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-G*Oe/ke,J="none"}}else{let qe=Re/le,Be=ke/Y,ie=Math.min(qe,Be);pe=le*ie,G=Y*ie,Le=t+Z+Me-pe*Me/Re,De=n+ne+Oe-G*Oe/ke,J="none"}else J="none";u.transform&&(ue=wu({id:e,borderRadiusPath:O,borderType:p,left:t,top:n,width:r,height:i},u)),Ae+=M("image",{x:Le,y:De,width:pe,height:G,href:s,preserveAspectRatio:J,transform:h||void 0,style:U?`filter:${U}`:void 0,"clip-path":u.transform?ue?`url(#${ue[1]})`:void 0:`url(#satori_cp-${e})`,mask:u.transform?void 0:P?`url(#${P})`:`url(#satori_om-${e})`})}if(me){m+=me[0];let Z=me[1];Ae+=Vr({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${Z})`}},u)}let Ie=fu({width:r,height:i,id:e,opacity:y,shape:M(p,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:O||void 0,transform:h||void 0,"clip-path":V,mask:S})},u);return(m?M("defs",{},m):"")+(Ie?Ie[0]:"")+(ue?ue[0]:"")+de+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(V||S)?`<g${V?` clip-path="${V}"`:""}${S?` mask="${S}"`:""}>`:"")+(E||Ae)+(u.transform&&(V||S)?"</g>":"")+(y!==1?"</g>":"")+(Ie?Ie[1]:"")+T}var Iu=String.raw,Au=Iu`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Ru=()=>new RegExp(Iu`\p{RI}{2}|(?)${Au}(?:\u200D${Au})*`,"gu");var Vd=new RegExp(Ru(),"u"),fo={emoji:Vd,symbol:/\p{Symbol}/u,math:/\p{Math}/u},co={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},ii=Object.keys({...co,...fo});function Cu(e){return ii.includes(e)}function Lu(e,t){for(let r of Object.keys(fo))if(fo[r].test(e))return[r];let n=Object.keys(co).filter(r=>co[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function Mu(e){if(e)return ii.find(t=>t.toLowerCase().startsWith(e.toLowerCase()))}async function*Xr(e,t){var le;let n=await jt(),{id:r,inheritedStyle:i,parent:o,font:s,debug:a,locale:u,embedFont:f=!0,graphemeImages:l,canLoadAdditionalAssets:p,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!gr(e)||ba(e.type)){let Y;if(!gr(e))Y=ro(String(e),t),yield(await Y.next()).value;else{if(ga(e.type))throw new Error("Class component is not supported.");let pe;Ii(e.type)?pe=e.type.render:pe=e.type,Y=Xr(await pe(e.props),t),yield(await Y.next()).value}await Y.next();let J=yield;return(await Y.next(J)).value}let{type:m,props:b}=e,y=m;if(b&&va(b))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:T,children:E,tw:P,lang:w=u}=b||{},S=Mu(w);if(P){let Y=h(P,T);T=Object.assign(Y,T)}let O=n.Node.create();o.insertChild(O,o.getChildCount());let[I,F]=await Yi(O,y,i,T,b),U=I.transform===i.transform;if(U||(I.transform.__parent=i.transform),(I.overflow==="hidden"||I.clipPath&&I.clipPath!=="none")&&(F._inheritedClipPathId=`satori_cp-${r}`,F._inheritedMaskId=`satori_om-${r}`),I.maskImage&&(F._inheritedMaskId=`satori_mi-${r}`),I.backgroundClip==="text"){let Y={value:""};F._inheritedBackgroundClipTextPath=Y,I._inheritedBackgroundClipTextPath=Y,I.backgroundImage&&(F._inheritedBackgroundClipTextHasBackground="true",I._inheritedBackgroundClipTextHasBackground="true")}let V=ya(E),de=[],Ae=0,me=[];for(let Y of V){let J=Xr(Y,{id:r+"-"+Ae++,parentStyle:I,inheritedStyle:F,isInheritingTransform:!0,parent:O,font:s,embedFont:f,debug:a,graphemeImages:l,canLoadAdditionalAssets:p,locale:S,getTwStyles:h,onNodeDetected:t.onNodeDetected});p?me.push(...(await J.next()).value||[]):await J.next(),de.push(J)}yield me;for(let Y of de)await Y.next();let[ue,Ie]=yield,{left:Z,top:ne,width:Ee,height:ve}=O.getComputedLayout();Z+=ue,ne+=Ie;let Re="",ke="",Ye="",{children:Me,...Oe}=b;if((le=t.onNodeDetected)==null||le.call(t,{left:Z,top:ne,width:Ee,height:ve,type:y,props:Oe,key:e.key,textContent:gr(Me)?void 0:Me}),y==="img"){let Y=I.__src;ke=await Yr({id:r,left:Z,top:ne,width:Ee,height:ve,src:Y,isInheritingTransform:U,debug:a},I,F)}else if(y==="svg"){let Y=I.color,J=await Ha(e,Y);ke=await Yr({id:r,left:Z,top:ne,width:Ee,height:ve,src:J,isInheritingTransform:U,debug:a},I,F)}else{let Y=T==null?void 0:T.display;if(y==="div"&&E&&typeof E!="string"&&Y!=="flex"&&Y!=="none"&&Y!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');ke=await Yr({id:r,left:Z,top:ne,width:Ee,height:ve,isInheritingTransform:U,debug:a},I,F)}for(let Y of de)Re+=(await Y.next([Z,ne])).value;return I._inheritedBackgroundClipTextPath&&(Ye+=M("clipPath",{id:`satori_bct-${r}`,"clip-path":I._inheritedClipPathId?`url(#${I._inheritedClipPathId})`:void 0},I._inheritedBackgroundClipTextPath.value)),Ye+ke+Re}var _r=Pt(require("@shuding/opentype.js"),1);var Nu="unknown";function Hd(e){let t=[],n=[0,0],r=[0,0],i=(o,s)=>{let a=o[0];for(let u=1;u<=s;u++){let f=u/s,l=Yd(o,f);t.push({from:a,to:l}),a=l}r=o[o.length-1]};for(let o of e){if(o.type==="M"){n=r=[o.x,o.y];continue}if(o.type==="L"){let s=[o.x,o.y];t.push({from:r,to:s}),r=s;continue}if(o.type==="Q"){i([r,[o.x1,o.y1],[o.x,o.y]],12);continue}if(o.type==="C"){i([r,[o.x1,o.y1],[o.x2,o.y2],[o.x,o.y]],16);continue}o.type==="Z"&&(t.push({from:r,to:n}),r=n)}return t}function Yd(e,t){let n=e;for(;n.length>1;){let r=[];for(let i=0;i<n.length-1;i++)r.push([n[i][0]+(n[i+1][0]-n[i][0])*t,n[i][1]+(n[i+1][1]-n[i][1])*t]);n=r}return n[0]}function Xd(e,t){if(!t)return[];let n=t.strokeWidth,r=t.underlineY-n*.25,i=t.underlineY+n*2.5,o=Hd(e);if(!o.length)return[];let s=i-r,a=Math.max(12,Math.ceil(s/.25)),u=s/a,f=r+u/2,l=new Set;for(let w=0;w<a;w++){let S=f+u*w,O=[];for(let I of o){let[F,U]=I.from,[V,de]=I.to;if(U===de)continue;let Ae=Math.min(U,de),me=Math.max(U,de);if(S<Ae||S>=me)continue;let ue=(S-U)/(de-U),Ie=F+(V-F)*ue;O.push(Ie)}if(O.length){O.sort((I,F)=>I-F);for(let I=0;I<O.length-1;I+=2){let F=Math.min(O[I],O[I+1]),U=Math.max(O[I],O[I+1]),V=Math.floor(F),de=Math.ceil(U);for(let Ae=V;Ae<de;Ae++)l.add(Ae)}}}if(!l.size)return[];let p=Array.from(l.values()).sort((w,S)=>w-S),h=[],m=p[0],b=p[0];for(let w=1;w<p.length;w++){let S=p[w];S>b+1&&(h.push([m,b+1]),m=S),b=S}h.push([m,b+1]);let y=[],T=n*.6,E=h[0][0],P=h[h.length-1][1];for(let[w,S]of h){let O=Math.min(w,E)-T,I=Math.max(S,P)+T;y.push({x1:O,x2:I,y1:r,y2:i})}return y}function Qd(e,t,[n,r],[i,o]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==o){if(r===t)return-1;if(o===t)return 1}return-1}var po=new WeakMap,Qr=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],o=i[0];for(let s=1;s<i.length;s++){let[,a,u]=o,[,f,l]=i[s];Qd(n,r,[a,u],[f,l])>0&&(o=i[s])}return o[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:o}=n;if(o&&!Cu(o))throw new Error(`Invalid value for props \`lang\`: "${o}". The value must be one of the following: ${ii.join(", ")}.`);let s=o??Nu,a;if(po.has(i))a=po.get(i);else{a=_r.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0});let f=a.charToGlyphIndex;a.charToGlyphIndex=l=>{let p=f.call(a,l);return p===0&&a._trackBrokenChars&&a._trackBrokenChars.push(l),p},po.set(i,a)}this.defaultFont||(this.defaultFont=a);let u=`${r.toLowerCase()}_${s}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,n.weight,n.style])}}getEngine(t=16,n="normal",{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:o="normal"},s){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");r=(Array.isArray(r)?r:[r]).map(w=>w.toLowerCase());let a=[];r.forEach(w=>{let S=this.get({name:w,weight:i,style:o});if(S){a.push(S);return}let O=this.get({name:w+"_unknown",weight:i,style:o});if(O){a.push(O);return}});let u=Array.from(this.fonts.keys()),f=[],l=[],p=[];for(let w of u)if(!r.includes(w))if(s){let S=Kd(w);S?S===s?f.push(this.get({name:w,weight:i,style:o})):l.push(this.get({name:w,weight:i,style:o})):p.push(this.get({name:w,weight:i,style:o}))}else p.push(this.get({name:w,weight:i,style:o}));let h=new Map,m=(w,S=!0)=>{let O=[...a,...p,...f,...S?l:[]];if(typeof w>"u")return S?O[O.length-1]:void 0;let I=w.charCodeAt(0);if(h.has(I))return h.get(I);let F=O.find((U,V)=>!!U.charToGlyphIndex(w)||S&&V===O.length-1);return F&&h.set(I,F),F},b=(w,S=!1)=>{var I,F;return((S?(F=(I=w.tables)==null?void 0:I.os2)==null?void 0:F.sTypoAscender:0)||w.ascender)/w.unitsPerEm*t},y=(w,S=!1)=>{var I,F;return((S?(F=(I=w.tables)==null?void 0:I.os2)==null?void 0:F.sTypoDescender:0)||w.descender)/w.unitsPerEm*t},T=(w,S=!1)=>{var O,I;if(typeof n=="string"&&n==="normal"){let F=(S?(I=(O=w.tables)==null?void 0:O.os2)==null?void 0:I.sTypoLineGap:0)||0;return b(w,S)-y(w,S)+F/w.unitsPerEm*t}else if(typeof n=="number")return t*n},E=w=>m(w,!1);return{has:w=>{if(w===`
|
|
7
|
-
`)return!0;let S=E(w);return S?(S._trackBrokenChars=[],S.stringToGlyphs(w),S._trackBrokenChars.length?(S._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,S=typeof w>"u"?a[0]:m(w))=>{let O=b(S),I=y(S),F=O-I;return O+(T(S)-F)/2},height:(w,S=typeof w>"u"?a[0]:m(w))=>T(S),measure:(w,S)=>this.measure(m,w,S),getSVG:(w,S,O)=>this.getSVG(m,w,S,O)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,m=new _r.default.Path;m.unitsPerEm=t.unitsPerEm,m.commands=p.path.commands.map(y=>{let T={...y};for(let E in T)typeof T[E]=="number"&&(T[E]*=h);return T});let b=new _r.default.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:m});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0},a){let u=t(n),f=this.patchFontFallbackResolver(u,t);try{if(r===0)return{path:"",boxes:[]};let l=new _r.default.Path,p=[],h={letterSpacing:s/r},m=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,T,E){let P;if(!m.has(b))P=b.getPath(y,T,E,h),m.set(b,[y,T,P]);else{let[S,O,I]=m.get(b);P=new _r.default.Path,P.commands=I.commands.map(F=>{let U={...F};for(let V in U)typeof U[V]=="number"&&((V==="x"||V==="x1"||V==="x2")&&(U[V]+=y-S),(V==="y"||V==="y1"||V==="y2")&&(U[V]+=T-O));return U})}let w=a?Xd(P.commands,a):[];w.length&&p.push(...w),l.extend(P)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function Kd(e){let t=e.split("_"),n=t[t.length-1];return n===Nu?void 0:n}function ho({width:e,height:t,content:n}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var mc=Pt(Vf());var Fb=["ios","android","windows","macos","web"];function Yf(e){return Fb.includes(e)}var Db=["portrait","landscape"];function Xf(e){return Db.includes(e)}var Hf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Hf||(Hf={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function Bs(e){return typeof e=="string"}function Us(e){return typeof e=="object"}var qs;function _(e){return{kind:"complete",style:e}}function Fe(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Fe(o),u=Fe(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,se.none];switch(i==null?void 0:i[1]){case"rem":return[r,se.rem];case"px":return[r,se.px];case"em":return[r,se.em];case"%":return[r,se.percent];case"vw":return[r,se.vw];case"vh":return[r,se.vh];default:return null}}function Ut(e,t,n={}){let r=Rt(t,n);return r===null?null:_({[e]:r})}function Si(e,t,n){let r=Rt(t);return r!==null&&(n[e]=r),n}function Kf(e,t){let n=Rt(t);return n===null?null:{[e]:n}}function Rt(e,t={}){if(e===void 0)return null;let n=Fe(String(e),t);return n?Qt(...n,t):null}function Qt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case se.rem:return e*16*(r?-1:1);case se.px:return e*(r?-1:1);case se.percent:return`${r?"-":""}${e}%`;case se.none:return e*(r?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Gs(e){let t=Fe(e);if(!t)return null;let[n,r]=t;switch(r){case se.rem:return n*16;case se.px:return n;default:return null}}var $b={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function zs(e){return $b[e??""]||"All"}function js(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=zs(i),"")),t]}function lr(e,t={}){if(e.includes("/")){let n=Qf(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Qf(e,t)}function dt(e,t,n={}){let r=lr(t,n);return r===null?null:_({[e]:r})}function Qf(e,t={}){if(e==="px")return 1;let n=Fe(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=se.percent,r*=100),i===se.none&&(r=r/4,i=se.rem),Qt(r,i,t)}function Bb(...e){console.warn(...e)}function Ub(...e){}var Je=typeof process>"u"||((qs=process==null?void 0:process.env)===null||qs===void 0?void 0:qs.JEST_WORKER_ID)===void 0?Bb:Ub;var qb=[["aspect-square",_({aspectRatio:1})],["aspect-video",_({aspectRatio:16/9})],["items-center",_({alignItems:"center"})],["items-start",_({alignItems:"flex-start"})],["items-end",_({alignItems:"flex-end"})],["items-baseline",_({alignItems:"baseline"})],["items-stretch",_({alignItems:"stretch"})],["justify-start",_({justifyContent:"flex-start"})],["justify-end",_({justifyContent:"flex-end"})],["justify-center",_({justifyContent:"center"})],["justify-between",_({justifyContent:"space-between"})],["justify-around",_({justifyContent:"space-around"})],["justify-evenly",_({justifyContent:"space-evenly"})],["content-start",_({alignContent:"flex-start"})],["content-end",_({alignContent:"flex-end"})],["content-between",_({alignContent:"space-between"})],["content-around",_({alignContent:"space-around"})],["content-stretch",_({alignContent:"stretch"})],["content-center",_({alignContent:"center"})],["self-auto",_({alignSelf:"auto"})],["self-start",_({alignSelf:"flex-start"})],["self-end",_({alignSelf:"flex-end"})],["self-center",_({alignSelf:"center"})],["self-stretch",_({alignSelf:"stretch"})],["self-baseline",_({alignSelf:"baseline"})],["direction-inherit",_({direction:"inherit"})],["direction-ltr",_({direction:"ltr"})],["direction-rtl",_({direction:"rtl"})],["hidden",_({display:"none"})],["flex",_({display:"flex"})],["flex-row",_({flexDirection:"row"})],["flex-row-reverse",_({flexDirection:"row-reverse"})],["flex-col",_({flexDirection:"column"})],["flex-col-reverse",_({flexDirection:"column-reverse"})],["flex-wrap",_({flexWrap:"wrap"})],["flex-wrap-reverse",_({flexWrap:"wrap-reverse"})],["flex-nowrap",_({flexWrap:"nowrap"})],["flex-auto",_({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",_({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",_({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",_({overflow:"hidden"})],["overflow-visible",_({overflow:"visible"})],["overflow-scroll",_({overflow:"scroll"})],["absolute",_({position:"absolute"})],["relative",_({position:"relative"})],["italic",_({fontStyle:"italic"})],["not-italic",_({fontStyle:"normal"})],["oldstyle-nums",Pn("oldstyle-nums")],["small-caps",Pn("small-caps")],["lining-nums",Pn("lining-nums")],["tabular-nums",Pn("tabular-nums")],["proportional-nums",Pn("proportional-nums")],["font-thin",_({fontWeight:"100"})],["font-100",_({fontWeight:"100"})],["font-extralight",_({fontWeight:"200"})],["font-200",_({fontWeight:"200"})],["font-light",_({fontWeight:"300"})],["font-300",_({fontWeight:"300"})],["font-normal",_({fontWeight:"normal"})],["font-400",_({fontWeight:"400"})],["font-medium",_({fontWeight:"500"})],["font-500",_({fontWeight:"500"})],["font-semibold",_({fontWeight:"600"})],["font-600",_({fontWeight:"600"})],["font-bold",_({fontWeight:"bold"})],["font-700",_({fontWeight:"700"})],["font-extrabold",_({fontWeight:"800"})],["font-800",_({fontWeight:"800"})],["font-black",_({fontWeight:"900"})],["font-900",_({fontWeight:"900"})],["include-font-padding",_({includeFontPadding:!0})],["remove-font-padding",_({includeFontPadding:!1})],["max-w-none",_({maxWidth:"99999%"})],["text-left",_({textAlign:"left"})],["text-center",_({textAlign:"center"})],["text-right",_({textAlign:"right"})],["text-justify",_({textAlign:"justify"})],["text-auto",_({textAlign:"auto"})],["underline",_({textDecorationLine:"underline"})],["line-through",_({textDecorationLine:"line-through"})],["no-underline",_({textDecorationLine:"none"})],["uppercase",_({textTransform:"uppercase"})],["lowercase",_({textTransform:"lowercase"})],["capitalize",_({textTransform:"capitalize"})],["normal-case",_({textTransform:"none"})],["w-auto",_({width:"auto"})],["h-auto",_({height:"auto"})],["shadow-sm",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",_({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Vs=qb;function Pn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var An=class{constructor(t){this.ir=new Map(Vs),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Vs,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Hs(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return dt("fontSize",e,n);if(typeof r=="string")return Ut("fontSize",r);let i={},[o,s]=r,a=Kf("fontSize",o);if(a&&(i=a),typeof s=="string")return _(Si("lineHeight",Jf(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&Si("lineHeight",Jf(u,i),i),f&&Si("letterSpacing",f,i),_(i)}function Jf(e,t){let n=Fe(e);if(n){let[r,i]=n;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Ys(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=Fe(r);if(!i)return null;let[o,s]=i;if(s===se.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?_({lineHeight:a}):null}function Xs(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)o=f;else{let l=lr(r);return l&&typeof l=="number"?Zf(l,se.px,t,e):null}}if(o==="auto")return ec(t,e,"auto");let s=Fe(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),Zf(a,u,t,e)}function Zf(e,t,n,r){let i=Qt(e,t);return i===null?null:ec(n,r,i)}function ec(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function Qs(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Gs(u.min):0;f===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Gs(u.max):1/0;return l===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}function Ks(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return _({fontFamily:n});let r=n[0];return r?_({fontFamily:r}):null}function fr(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=nc(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=tc(i,o/100),_({[_i[e].color]:i})}return{kind:"dependent",complete(o){let s=_i[e].opacity,a=o[s];typeof a=="number"&&(i=tc(i,a)),o[_i[e].color]=i}}}function In(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[_i[e].opacity]:r}}}function tc(e,t){return e.startsWith("#")?e=Gb(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function rc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var _i={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 Gb(e){let t=e;e=e.replace(zb,(s,a,u,f)=>a+a+u+u+f+f);let n=jb.exec(e);if(!n)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function nc(e,t){let n=t[e];if(Bs(n))return n;if(Us(n)&&Bs(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Us(o))return nc(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var zb=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,jb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function oc(e,t){let[n,r]=js(e);if(n.match(/^(-?(\d)+)?$/))return Vb(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return _({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=fr(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=dt(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function Vb(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Ut(o,i)}function sc(e,t){if(!t)return null;let[n,r]=js(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return ic(Ut(i,o));let s=dt(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:ic(s)}function ic(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function Pr(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=Rt(o,{isNegative:n});if(a!==null)return ac(e,i,a)}let s=lr(t,{isNegative:n});return s!==null?ac(e,i,s):null}function ac(e,t,n){if(e!=="inset")return _({[e]:n});switch(t){case null:return _({top:n,left:n,right:n,bottom:n});case"y":return _({top:n,bottom:n});case"x":return _({left:n,right:n})}}function Rn(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:_({[`flex${e}`]:o})}function uc(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return _({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return _({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Rt((n=i[2])!==null&&n!==void 0?n:"");return o?_({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Rt((r=i[3])!==null&&r!==void 0?r:"");return o?_({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function Js(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Ut(e,i,n):dt(e,t,n)}function Cn(e,t,n={},r){let i=Rt(r==null?void 0:r[t],n);return i?_({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),dt(e,t,n))}function lc(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Fe(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return Hb(o);if(s===se.percent)return Je("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?_({letterSpacing:a}):null}return dt("letterSpacing",e,{isNegative:t})}function Hb(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function fc(e,t){let n=t==null?void 0:t[e];if(n){let i=Fe(String(n));if(i)return _({opacity:i[0]})}let r=Fe(e);return r?_({opacity:r[0]/100}):null}function cc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function dc(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Zs(n),o=Zs(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Zs(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Zs(e){let t=lr(e);return typeof t=="number"?t:null}var Ar=class{constructor(t,n={},r,i,o){var s,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),m=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",m=h),this.char=this.string[0];let b=Qs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of m)if(b[y]){let T=(u=b[y])===null||u===void 0?void 0:u[2];T!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+T);let E=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(E){let[P,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(E<=P||E>w)&&(this.isNull=!0)}else this.isNull=!0}else Yf(y)?this.isNull=y!==o:Xf(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=zs(u[1]),p=Xs(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=Js("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=Js("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Cn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Cn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Cn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Cn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Ys(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Hs(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=fr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=In("text",this.rest),a))||this.consumePeeked("font-")&&(a=Ks(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ut("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=fr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=fr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=In("bg",this.rest),a))||this.consumePeeked("border")&&(a=oc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=In("border",this.rest),a))||this.consumePeeked("rounded")&&(a=sc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Pr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Pr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Pr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Pr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Pr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Rn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Rn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=uc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Rn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Rn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=In("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=cc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=dc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=dt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=fr("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return _({elevation:u})}if(this.consumePeeked("opacity-")&&(a=fc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=lc(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return _({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,f=Fe(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function pc(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...ea(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(ea)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?ea(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Yb),n]}function ea(e){return e.trim().split(/\s+/)}function Yb(e,t,n){return n.indexOf(e)===t}function hc(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Xb(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Xb(e){let t={};return e({addUtilities:n=>{t=n},...Qb}),t}function Ct(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Qb={addComponents:Ct,addBase:Ct,addVariant:Ct,e:Ct,prefix:Ct,theme:Ct,variants:Ct,config:Ct,corePlugins:Ct,matchUtilities:Ct,postcss:null};function gc(e,t){let n=(0,mc.default)(Kb(e)),r={},i=hc(n.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,_(y)]).filter(([,b])=>b.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new An(s);return f[u]=y,y}function p(...b){let y=l(),T={},E=[],P=[],[w,S]=pc(b),O=w.join(" "),I=y.getStyle(O);if(I)return{...I,...S||{}};for(let F of w){let U=y.getIr(F);if(!U&&F in o){let de=p(o[F]);y.setIr(F,_(de)),T={...T,...de};continue}switch(U=new Ar(F,n,y,r,t).parse(),U.kind){case"complete":T={...T,...U.style},y.setIr(F,U);break;case"dependent":E.push(U);break;case"ordered":P.push(U);break;case"null":y.setIr(F,U);break}}if(P.length>0){P.sort((F,U)=>F.order-U.order);for(let F of P)switch(F.styleIr.kind){case"complete":T={...T,...F.styleIr.style};break;case"dependent":E.push(F.styleIr);break}}if(E.length>0){for(let F of E){let U=F.complete(T);U&&Je(U)}rc(T)}return O!==""&&y.setStyle(O,T),S&&(T={...T,...S}),T}function h(b){let y=p(b.split(/\s+/g).map(T=>T.replace(/^(bg|text|border)-/,"")).map(T=>`bg-${T}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let m=(b,...y)=>{let T="";return b.forEach((E,P)=>{var w;T+=E+((w=y[P])!==null&&w!==void 0?w:"")}),p(T)};return m.style=p,m.color=h,m.prefixMatch=(...b)=>{let y=b.sort().join(":"),T=l(),E=T.getPrefixMatch(y);if(E!==void 0)return E;let S=new Ar(`${y}:flex`,n,T,r,t).parse().kind!=="null";return T.setPrefixMatch(y,S),S},m.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},m.setFontScale=b=>{r.fontScale=b,u=a()},m.setPixelDensity=b=>{r.pixelDensity=b,u=a()},m.setColorScheme=b=>{r.colorScheme=b,u=a()},m}function Kb(e){return{...e,content:["_no_warnings_please"]}}var Zb={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 ev(e){return gc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Zb]},"web")}var Ti;function ta({width:e,height:t,config:n}){return Ti||(Ti=ev(n)),Ti.setWindowDimensions({width:+e,height:+t}),Ti}var ra=new WeakMap;async function na(e,t){let n=await jt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;ra.has(t.fonts)?r=ra.get(t.fonts):ra.set(t.fonts,r=new Qr(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=tv(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a={...t.graphemeImages},u=new Set;At.clear(),Br.clear(),await Va(e);let f=Xr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let E={...ta({width:i,height:o,config:t.tailwindConfig})([b])};return typeof E.lineHeight=="number"&&(E.lineHeight=E.lineHeight/(+E.fontSize||y.fontSize||16)),E.shadowColor&&E.boxShadow&&(E.boxShadow=E.boxShadow.replace(/rgba?\([^)]+\)/,E.shadowColor)),E}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=rv(l),y=[],T={};await Promise.all(Object.entries(b).flatMap(([E,P])=>P.map(w=>{let S=`${E}_${w}`;return u.has(S)?null:(u.add(S),t.loadAdditionalAsset(E,w).then(O=>{typeof O=="string"?T[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,T)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),m=s.getComputedHeight();return s.freeRecursive(),ho({width:h,height:m,content:p})}function tv(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function rv(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Lu(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...bc(Ve(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=bc(Ve(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function bc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
7
|
+
`)return!0;let S=E(w);return S?(S._trackBrokenChars=[],S.stringToGlyphs(w),S._trackBrokenChars.length?(S._trackBrokenChars=void 0,!1):!0):!1},baseline:(w,S=typeof w>"u"?a[0]:m(w))=>{let O=b(S),I=y(S),F=O-I;return O+(T(S)-F)/2},height:(w,S=typeof w>"u"?a[0]:m(w))=>T(S),measure:(w,S)=>this.measure(m,w,S),getSVG:(w,S,O)=>this.getSVG(m,w,S,O)}}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(o,...s)=>{let a=i.call(t,o,...s);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let f=r.shift(),l=n(f);if(l!==t){let p=l.charToGlyph(f),h=t.unitsPerEm/l.unitsPerEm,m=new _r.default.Path;m.unitsPerEm=t.unitsPerEm,m.commands=p.path.commands.map(y=>{let T={...y};for(let E in T)typeof T[E]=="number"&&(T[E]*=h);return T});let b=new _r.default.Glyph({...p,advanceWidth:p.advanceWidth*h,xMin:p.xMin*h,xMax:p.xMax*h,yMin:p.yMin*h,yMax:p.yMax*h,path:m});a[u]=b}}return a},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let o=t(n),s=this.patchFontFallbackResolver(o,t);try{return o.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{s()}}getSVG(t,n,{fontSize:r,top:i,left:o,letterSpacing:s=0},a){let u=t(n),f=this.patchFontFallbackResolver(u,t);try{if(r===0)return{path:"",boxes:[]};let l=new _r.default.Path,p=[],h={letterSpacing:s/r},m=new WeakMap;return u.forEachGlyph(n.replace(/\n/g,""),o,i,r,h,function(b,y,T,E){let P;if(!m.has(b))P=b.getPath(y,T,E,h),m.set(b,[y,T,P]);else{let[S,O,I]=m.get(b);P=new _r.default.Path,P.commands=I.commands.map(F=>{let U={...F};for(let V in U)typeof U[V]=="number"&&((V==="x"||V==="x1"||V==="x2")&&(U[V]+=y-S),(V==="y"||V==="y1"||V==="y2")&&(U[V]+=T-O));return U})}let w=a?Xd(P.commands,a):[];w.length&&p.push(...w),l.extend(P)}),{path:l.toPathData(1),boxes:p}}finally{f()}}};function Kd(e){let t=e.split("_"),n=t[t.length-1];return n===Nu?void 0:n}function ho({width:e,height:t,content:n}){return M("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}var mc=Pt(Vf());var Fb=["ios","android","windows","macos","web"];function Yf(e){return Fb.includes(e)}var Db=["portrait","landscape"];function Xf(e){return Db.includes(e)}var Hf;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(Hf||(Hf={}));var se;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(se||(se={}));function Bs(e){return typeof e=="string"}function Us(e){return typeof e=="object"}var qs;function _(e){return{kind:"complete",style:e}}function Fe(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[o="",s=""]=e.split("/",2),a=Fe(o),u=Fe(s);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,se.none];switch(i==null?void 0:i[1]){case"rem":return[r,se.rem];case"px":return[r,se.px];case"em":return[r,se.em];case"%":return[r,se.percent];case"vw":return[r,se.vw];case"vh":return[r,se.vh];default:return null}}function Ut(e,t,n={}){let r=Rt(t,n);return r===null?null:_({[e]:r})}function Si(e,t,n){let r=Rt(t);return r!==null&&(n[e]=r),n}function Kf(e,t){let n=Rt(t);return n===null?null:{[e]:n}}function Rt(e,t={}){if(e===void 0)return null;let n=Fe(String(e),t);return n?Qt(...n,t):null}function Qt(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case se.rem:return e*16*(r?-1:1);case se.px:return e*(r?-1:1);case se.percent:return`${r?"-":""}${e}%`;case se.none:return e*(r?-1:1);case se.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(Je("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case se.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(Je("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function Gs(e){let t=Fe(e);if(!t)return null;let[n,r]=t;switch(r){case se.rem:return n*16;case se.px:return n;default:return null}}var $b={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function zs(e){return $b[e??""]||"All"}function js(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=zs(i),"")),t]}function lr(e,t={}){if(e.includes("/")){let n=Qf(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Qf(e,t)}function dt(e,t,n={}){let r=lr(t,n);return r===null?null:_({[e]:r})}function Qf(e,t={}){if(e==="px")return 1;let n=Fe(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=se.percent,r*=100),i===se.none&&(r=r/4,i=se.rem),Qt(r,i,t)}function Bb(...e){console.warn(...e)}function Ub(...e){}var Je=typeof process>"u"||((qs=process==null?void 0:process.env)===null||qs===void 0?void 0:qs.JEST_WORKER_ID)===void 0?Bb:Ub;var qb=[["aspect-square",_({aspectRatio:1})],["aspect-video",_({aspectRatio:16/9})],["items-center",_({alignItems:"center"})],["items-start",_({alignItems:"flex-start"})],["items-end",_({alignItems:"flex-end"})],["items-baseline",_({alignItems:"baseline"})],["items-stretch",_({alignItems:"stretch"})],["justify-start",_({justifyContent:"flex-start"})],["justify-end",_({justifyContent:"flex-end"})],["justify-center",_({justifyContent:"center"})],["justify-between",_({justifyContent:"space-between"})],["justify-around",_({justifyContent:"space-around"})],["justify-evenly",_({justifyContent:"space-evenly"})],["content-start",_({alignContent:"flex-start"})],["content-end",_({alignContent:"flex-end"})],["content-between",_({alignContent:"space-between"})],["content-around",_({alignContent:"space-around"})],["content-stretch",_({alignContent:"stretch"})],["content-center",_({alignContent:"center"})],["self-auto",_({alignSelf:"auto"})],["self-start",_({alignSelf:"flex-start"})],["self-end",_({alignSelf:"flex-end"})],["self-center",_({alignSelf:"center"})],["self-stretch",_({alignSelf:"stretch"})],["self-baseline",_({alignSelf:"baseline"})],["direction-inherit",_({direction:"inherit"})],["direction-ltr",_({direction:"ltr"})],["direction-rtl",_({direction:"rtl"})],["hidden",_({display:"none"})],["flex",_({display:"flex"})],["flex-row",_({flexDirection:"row"})],["flex-row-reverse",_({flexDirection:"row-reverse"})],["flex-col",_({flexDirection:"column"})],["flex-col-reverse",_({flexDirection:"column-reverse"})],["flex-wrap",_({flexWrap:"wrap"})],["flex-wrap-reverse",_({flexWrap:"wrap-reverse"})],["flex-nowrap",_({flexWrap:"nowrap"})],["flex-auto",_({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",_({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",_({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",_({overflow:"hidden"})],["overflow-visible",_({overflow:"visible"})],["overflow-scroll",_({overflow:"scroll"})],["absolute",_({position:"absolute"})],["relative",_({position:"relative"})],["italic",_({fontStyle:"italic"})],["not-italic",_({fontStyle:"normal"})],["oldstyle-nums",Pn("oldstyle-nums")],["small-caps",Pn("small-caps")],["lining-nums",Pn("lining-nums")],["tabular-nums",Pn("tabular-nums")],["proportional-nums",Pn("proportional-nums")],["font-thin",_({fontWeight:"100"})],["font-100",_({fontWeight:"100"})],["font-extralight",_({fontWeight:"200"})],["font-200",_({fontWeight:"200"})],["font-light",_({fontWeight:"300"})],["font-300",_({fontWeight:"300"})],["font-normal",_({fontWeight:"normal"})],["font-400",_({fontWeight:"400"})],["font-medium",_({fontWeight:"500"})],["font-500",_({fontWeight:"500"})],["font-semibold",_({fontWeight:"600"})],["font-600",_({fontWeight:"600"})],["font-bold",_({fontWeight:"bold"})],["font-700",_({fontWeight:"700"})],["font-extrabold",_({fontWeight:"800"})],["font-800",_({fontWeight:"800"})],["font-black",_({fontWeight:"900"})],["font-900",_({fontWeight:"900"})],["include-font-padding",_({includeFontPadding:!0})],["remove-font-padding",_({includeFontPadding:!1})],["max-w-none",_({maxWidth:"99999%"})],["text-left",_({textAlign:"left"})],["text-center",_({textAlign:"center"})],["text-right",_({textAlign:"right"})],["text-justify",_({textAlign:"justify"})],["text-auto",_({textAlign:"auto"})],["underline",_({textDecorationLine:"underline"})],["line-through",_({textDecorationLine:"line-through"})],["no-underline",_({textDecorationLine:"none"})],["uppercase",_({textTransform:"uppercase"})],["lowercase",_({textTransform:"lowercase"})],["capitalize",_({textTransform:"capitalize"})],["normal-case",_({textTransform:"none"})],["w-auto",_({width:"auto"})],["h-auto",_({height:"auto"})],["shadow-sm",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",_({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",_({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],Vs=qb;function Pn(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var An=class{constructor(t){this.ir=new Map(Vs),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...Vs,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};function Hs(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return dt("fontSize",e,n);if(typeof r=="string")return Ut("fontSize",r);let i={},[o,s]=r,a=Kf("fontSize",o);if(a&&(i=a),typeof s=="string")return _(Si("lineHeight",Jf(s,i),i));let{lineHeight:u,letterSpacing:f}=s;return u&&Si("lineHeight",Jf(u,i),i),f&&Si("letterSpacing",f,i),_(i)}function Jf(e,t){let n=Fe(e);if(n){let[r,i]=n;if((i===se.none||i===se.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}function Ys(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=Fe(r);if(!i)return null;let[o,s]=i;if(s===se.none)return{kind:"dependent",complete(u){if(typeof u.fontSize!="number")return"relative line-height utilities require that font-size be set";u.lineHeight=u.fontSize*o}};let a=Qt(o,s);return a!==null?_({lineHeight:a}):null}function Xs(e,t,n,r,i){let o="";if(r[0]==="[")o=r.slice(1,-1);else{let f=i==null?void 0:i[r];if(f)o=f;else{let l=lr(r);return l&&typeof l=="number"?Zf(l,se.px,t,e):null}}if(o==="auto")return ec(t,e,"auto");let s=Fe(o);if(!s)return null;let[a,u]=s;return n&&(a=-a),Zf(a,u,t,e)}function Zf(e,t,n,r){let i=Qt(e,t);return i===null?null:ec(n,r,i)}function ec(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}function Qs(e){if(!e)return{};let t=Object.entries(e).reduce((i,[o,s])=>{let a=[0,1/0,0],u=typeof s=="string"?{min:s}:s,f=u.min?Gs(u.min):0;f===null?Je(`invalid screen config value: ${o}->min: ${u.min}`):a[0]=f;let l=u.max?Gs(u.max):1/0;return l===null?Je(`invalid screen config value: ${o}->max: ${u.max}`):a[1]=l,i[o]=a,i},{}),n=Object.values(t);n.sort((i,o)=>{let[s,a]=i,[u,f]=o;return a===1/0||f===1/0?s-u:a-f});let r=0;return n.forEach(i=>i[2]=r++),t}function Ks(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return _({fontFamily:n});let r=n[0];return r?_({fontFamily:r}):null}function fr(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=nc(t,n),!i)return null;if(r){let o=Number(r);if(!Number.isNaN(o))return i=tc(i,o/100),_({[_i[e].color]:i})}return{kind:"dependent",complete(o){let s=_i[e].opacity,a=o[s];typeof a=="number"&&(i=tc(i,a)),o[_i[e].color]=i}}}function In(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100;return{kind:"complete",style:{[_i[e].opacity]:r}}}function tc(e,t){return e.startsWith("#")?e=Gb(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function rc(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var _i={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 Gb(e){let t=e;e=e.replace(zb,(s,a,u,f)=>a+a+u+u+f+f);let n=jb.exec(e);if(!n)return Je(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),o=parseInt(n[3],16);return`rgba(${r}, ${i}, ${o}, 1)`}function nc(e,t){let n=t[e];if(Bs(n))return n;if(Us(n)&&Bs(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let o=t[r];if(Us(o))return nc(i.join("-"),o);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var zb=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,jb=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function oc(e,t){let[n,r]=js(e);if(n.match(/^(-?(\d)+)?$/))return Vb(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return _({borderStyle:n});let o="border";switch(r){case"Bottom":o="borderBottom";break;case"Top":o="borderTop";break;case"Left":o="borderLeft";break;case"Right":o="borderRight";break}let s=fr(o,n,t==null?void 0:t.borderColor);if(s)return s;let a=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let u=n.slice(1,-1),f=dt(a,u);return typeof(f==null?void 0:f.style[a])!="number"?null:f}function Vb(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let o=`border${t==="All"?"":t}Width`;return Ut(o,i)}function sc(e,t){if(!t)return null;let[n,r]=js(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,o=t[n];if(o)return ic(Ut(i,o));let s=dt(i,n);return typeof(s==null?void 0:s.style[i])!="number"?null:ic(s)}function ic(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}function Pr(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(a,u)=>(i=u==="x"?"x":"y","")));let o=r==null?void 0:r[t];if(o){let a=Rt(o,{isNegative:n});if(a!==null)return ac(e,i,a)}let s=lr(t,{isNegative:n});return s!==null?ac(e,i,s):null}function ac(e,t,n){if(e!=="inset")return _({[e]:n});switch(t){case null:return _({top:n,left:n,right:n,bottom:n});case"y":return _({top:n,bottom:n});case"x":return _({left:n,right:n})}}function Rn(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,o=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(o)?null:_({[`flex${e}`]:o})}function uc(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return _({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return _({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let o=Rt((n=i[2])!==null&&n!==void 0?n:"");return o?_({flexGrow:Number(i[1]),flexBasis:o}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let o=Rt((r=i[3])!==null&&r!==void 0?r:"");return o?_({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:o}):null}return null}function Js(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?Ut(e,i,n):dt(e,t,n)}function Cn(e,t,n={},r){let i=Rt(r==null?void 0:r[t],n);return i?_({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),dt(e,t,n))}function lc(e,t,n){let r=n==null?void 0:n[e];if(r){let i=Fe(r,{isNegative:t});if(!i)return null;let[o,s]=i;if(s===se.em)return Hb(o);if(s===se.percent)return Je("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let a=Qt(o,s,{isNegative:t});return a!==null?_({letterSpacing:a}):null}return dt("letterSpacing",e,{isNegative:t})}function Hb(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}function fc(e,t){let n=t==null?void 0:t[e];if(n){let i=Fe(String(n));if(i)return _({opacity:i[0]})}let r=Fe(e);return r?_({opacity:r[0]/100}):null}function cc(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function dc(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=Zs(n),o=Zs(r);return i===null||o===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:o}}}}let t=Zs(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function Zs(e){let t=lr(e);return typeof t=="number"?t:null}var Ar=class{constructor(t,n={},r,i,o){var s,a,u,f,l,p;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),m=[];h.length===1?this.string=t:(this.string=(s=h.pop())!==null&&s!==void 0?s:"",m=h),this.char=this.string[0];let b=Qs((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of m)if(b[y]){let T=(u=b[y])===null||u===void 0?void 0:u[2];T!==void 0&&(this.order=((f=this.order)!==null&&f!==void 0?f:0)+T);let E=(l=i.windowDimensions)===null||l===void 0?void 0:l.width;if(E){let[P,w]=(p=b[y])!==null&&p!==void 0?p:[0,0];(E<=P||E>w)&&(this.isNull=!0)}else this.isNull=!0}else Yf(y)?this.isNull=y!==o:Xf(y)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,o;let s=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let f=this.char==="m"?"margin":"padding";this.advance(((n=(t=u[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let l=zs(u[1]),p=Xs(f,l,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[f]);if(p)return p}}}if(this.consumePeeked("h-")&&(a=Js("height",this.rest,this.context,s==null?void 0:s.height),a)||this.consumePeeked("w-")&&(a=Js("width",this.rest,this.context,s==null?void 0:s.width),a)||this.consumePeeked("min-w-")&&(a=Cn("minWidth",this.rest,this.context,s==null?void 0:s.minWidth),a)||this.consumePeeked("min-h-")&&(a=Cn("minHeight",this.rest,this.context,s==null?void 0:s.minHeight),a)||this.consumePeeked("max-w-")&&(a=Cn("maxWidth",this.rest,this.context,s==null?void 0:s.maxWidth),a)||this.consumePeeked("max-h-")&&(a=Cn("maxHeight",this.rest,this.context,s==null?void 0:s.maxHeight),a)||this.consumePeeked("leading-")&&(a=Ys(this.rest,s==null?void 0:s.lineHeight),a)||this.consumePeeked("text-")&&(a=Hs(this.rest,s==null?void 0:s.fontSize,this.context),a||(a=fr("text",this.rest,s==null?void 0:s.textColor),a)||this.consumePeeked("opacity-")&&(a=In("text",this.rest),a))||this.consumePeeked("font-")&&(a=Ks(this.rest,s==null?void 0:s.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&Je("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=Ut("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=fr("tint",this.rest,s==null?void 0:s.colors),a)||this.consumePeeked("bg-")&&(a=fr("bg",this.rest,s==null?void 0:s.backgroundColor),a||this.consumePeeked("opacity-")&&(a=In("bg",this.rest),a))||this.consumePeeked("border")&&(a=oc(this.rest,s),a||this.consumePeeked("-opacity-")&&(a=In("border",this.rest),a))||this.consumePeeked("rounded")&&(a=sc(this.rest,s==null?void 0:s.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Pr("bottom",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("top-")&&(a=Pr("top",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("left-")&&(a=Pr("left",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("right-")&&(a=Pr("right",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("inset-")&&(a=Pr("inset",this.rest,this.isNegative,s==null?void 0:s.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Rn("Grow",this.rest,s==null?void 0:s.flexGrow):this.consumePeeked("shrink")?a=Rn("Shrink",this.rest,s==null?void 0:s.flexShrink):a=uc(this.rest,s==null?void 0:s.flex),a)||this.consumePeeked("grow")&&(a=Rn("Grow",this.rest,s==null?void 0:s.flexGrow),a)||this.consumePeeked("shrink")&&(a=Rn("Shrink",this.rest,s==null?void 0:s.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=In("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=cc(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=dc(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=dt("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=fr("shadow",this.rest,s==null?void 0:s.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return _({elevation:u})}if(this.consumePeeked("opacity-")&&(a=fc(this.rest,s==null?void 0:s.opacity),a)||this.consumePeeked("tracking-")&&(a=lc(this.rest,this.isNegative,s==null?void 0:s.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((o=(i=s==null?void 0:s.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&o!==void 0?o:this.rest);if(!Number.isNaN(u))return _({zIndex:u})}return Je(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,o="",s="",a=""]=r,u=s==="w"?i.width:i.height,f=Fe(a,this.context);if(f===null)return this.isNull=!0,!0;let[l,p]=f;return p!=="px"&&(this.isNull=!0),(o==="min"?u>=l:u<=l)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};function pc(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...ea(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(ea)];else if(typeof r=="object"&&r!==null)for(let[i,o]of Object.entries(r))typeof o=="boolean"?t=[...t,...o?ea(i):[]]:n?n[i]=o:n={[i]:o}}),[t.filter(Boolean).filter(Yb),n]}function ea(e){return e.trim().split(/\s+/)}function Yb(e,t,n){return n.indexOf(e)===t}function hc(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...Xb(r.handler)}),{}))!==null&&t!==void 0?t:{}}function Xb(e){let t={};return e({addUtilities:n=>{t=n},...Qb}),t}function Ct(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var Qb={addComponents:Ct,addBase:Ct,addVariant:Ct,e:Ct,prefix:Ct,theme:Ct,variants:Ct,config:Ct,corePlugins:Ct,matchUtilities:Ct,postcss:null};function gc(e,t){let n=(0,mc.default)(Kb(e)),r={},i=hc(n.plugins),o={},s=Object.entries(i).map(([b,y])=>typeof y=="string"?(o[b]=y,[b,{kind:"null"}]):[b,_(y)]).filter(([,b])=>b.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),f={};function l(){let b=f[u];if(b)return b;let y=new An(s);return f[u]=y,y}function p(...b){let y=l(),T={},E=[],P=[],[w,S]=pc(b),O=w.join(" "),I=y.getStyle(O);if(I)return{...I,...S||{}};for(let F of w){let U=y.getIr(F);if(!U&&F in o){let de=p(o[F]);y.setIr(F,_(de)),T={...T,...de};continue}switch(U=new Ar(F,n,y,r,t).parse(),U.kind){case"complete":T={...T,...U.style},y.setIr(F,U);break;case"dependent":E.push(U);break;case"ordered":P.push(U);break;case"null":y.setIr(F,U);break}}if(P.length>0){P.sort((F,U)=>F.order-U.order);for(let F of P)switch(F.styleIr.kind){case"complete":T={...T,...F.styleIr.style};break;case"dependent":E.push(F.styleIr);break}}if(E.length>0){for(let F of E){let U=F.complete(T);U&&Je(U)}rc(T)}return O!==""&&y.setStyle(O,T),S&&(T={...T,...S}),T}function h(b){let y=p(b.split(/\s+/g).map(T=>T.replace(/^(bg|text|border)-/,"")).map(T=>`bg-${T}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let m=(b,...y)=>{let T="";return b.forEach((E,P)=>{var w;T+=E+((w=y[P])!==null&&w!==void 0?w:"")}),p(T)};return m.style=p,m.color=h,m.prefixMatch=(...b)=>{let y=b.sort().join(":"),T=l(),E=T.getPrefixMatch(y);if(E!==void 0)return E;let S=new Ar(`${y}:flex`,n,T,r,t).parse().kind!=="null";return T.setPrefixMatch(y,S),S},m.setWindowDimensions=b=>{r.windowDimensions=b,u=a()},m.setFontScale=b=>{r.fontScale=b,u=a()},m.setPixelDensity=b=>{r.pixelDensity=b,u=a()},m.setColorScheme=b=>{r.colorScheme=b,u=a()},m}function Kb(e){return{...e,content:["_no_warnings_please"]}}var Zb={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 ev(e){return gc({...e,plugins:[...(e==null?void 0:e.plugins)??[],Zb]},"web")}var Ti;function ta({width:e,height:t,config:n}){return Ti||(Ti=ev(n)),Ti.setWindowDimensions({width:+e,height:+t}),Ti}var ra=new WeakMap;async function na(e,t){let n=await jt();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;ra.has(t.fonts)?r=ra.get(t.fonts):ra.set(t.fonts,r=new Qr(t.fonts));let i="width"in t?t.width:void 0,o="height"in t?t.height:void 0,s=tv(n,t.pointScaleFactor);i&&s.setWidth(i),o&&s.setHeight(o),s.setFlexDirection(n.FLEX_DIRECTION_ROW),s.setFlexWrap(n.WRAP_WRAP),s.setAlignContent(n.ALIGN_AUTO),s.setAlignItems(n.ALIGN_FLEX_START),s.setJustifyContent(n.JUSTIFY_FLEX_START),s.setOverflow(n.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),t.graphemeImages),u=new Set;At.clear(),Br.clear(),await Va(e);let f=Xr(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:o},parent:s,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:a,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(b,y)=>{let E={...ta({width:i,height:o,config:t.tailwindConfig})([b])};return typeof E.lineHeight=="number"&&(E.lineHeight=E.lineHeight/(+E.fontSize||y.fontSize||16)),E.shadowColor&&E.boxShadow&&(E.boxShadow=E.boxShadow.replace(/rgba?\([^)]+\)/,E.shadowColor)),E}}),l=(await f.next()).value;if(t.loadAdditionalAsset&&l.length){let b=rv(l),y=[],T={};await Promise.all(Object.entries(b).flatMap(([E,P])=>P.map(w=>{let S=`${E}_${w}`;return u.has(S)?null:(u.add(S),t.loadAdditionalAsset(E,w).then(O=>{typeof O=="string"?T[w]=O:O&&(Array.isArray(O)?y.push(...O):y.push(O))}))}))),r.addFonts(y),Object.assign(a,T)}await f.next(),s.calculateLayout(i,o,n.DIRECTION_LTR);let p=(await f.next([0,0])).value,h=s.getComputedWidth(),m=s.getComputedHeight();return s.freeRecursive(),ho({width:h,height:m,content:p})}function tv(e,t){if(t){let n=e.Config.create();return n.setPointScaleFactor(t),e.Node.createWithConfig(n)}else return e.Node.create()}function rv(e){let t={},n={};for(let{word:r,locale:i}of e){let o=Lu(r,i).join("|");n[o]=n[o]||"",n[o]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...bc(Ve(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=bc(Ve(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function bc(e){return Array.from(new Set(e))}0&&(module.exports={init});
|
|
8
8
|
//# sourceMappingURL=standalone.cjs.map
|