satori 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- 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 +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5,5 +5,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5
5
|
`),y=k.length-1,y>0?(M=o+y,b=x-k[y].length):(M=o,b=i),F=T.comment,o=M,C=M,E=x-b):l===T.slash?(x=a,F=l,C=o,E=a-i,u=x+1):(x=iE(t,a),F=T.word,C=o,E=x-i),u=x+1;break}e.push([F,o,a-i,C,E,a,u]),b&&(i=b,b=null),a=u}return e}});var Zg=K((kr,zg)=>{"use strict";kr.__esModule=!0;kr.default=void 0;var gE=Re(Wi()),mo=Re(Yi()),uE=Re(Vi()),Wg=Re(Zi()),IE=Re($i()),lE=Re(to()),yo=Re(no()),cE=Re(oo()),Kg=kn(lo()),fE=Re(fo()),wo=Re(Eo()),BE=Re(Co()),EE=Re(Og()),G=kn(Jg()),P=kn(ho()),QE=kn(ee()),UA=ur(),ht,Do;function Vg(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Vg=function(){return A},A}function kn(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var e=Vg();if(e&&e.has(A))return e.get(A);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in A)if(Object.prototype.hasOwnProperty.call(A,n)){var i=r?Object.getOwnPropertyDescriptor(A,n):null;i&&(i.get||i.set)?Object.defineProperty(t,n,i):t[n]=A[n]}return t.default=A,e&&e.set(A,t),t}function Re(A){return A&&A.__esModule?A:{default:A}}function Yg(A,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(A,r.key,r)}}function CE(A,e,t){return e&&Yg(A.prototype,e),t&&Yg(A,t),A}var vo=(ht={},ht[P.space]=!0,ht[P.cr]=!0,ht[P.feed]=!0,ht[P.newline]=!0,ht[P.tab]=!0,ht),dE=Object.assign({},vo,(Do={},Do[P.comment]=!0,Do));function qg(A){return{line:A[G.FIELDS.START_LINE],column:A[G.FIELDS.START_COL]}}function Xg(A){return{line:A[G.FIELDS.END_LINE],column:A[G.FIELDS.END_COL]}}function pt(A,e,t,r){return{start:{line:A,column:e},end:{line:t,column:r}}}function Pt(A){return pt(A[G.FIELDS.START_LINE],A[G.FIELDS.START_COL],A[G.FIELDS.END_LINE],A[G.FIELDS.END_COL])}function So(A,e){if(A)return pt(A[G.FIELDS.START_LINE],A[G.FIELDS.START_COL],e[G.FIELDS.END_LINE],e[G.FIELDS.END_COL])}function _t(A,e){var t=A[e];if(typeof t=="string")return t.indexOf("\\")!==-1&&((0,UA.ensureObject)(A,"raws"),A[e]=(0,UA.unesc)(t),A.raws[e]===void 0&&(A.raws[e]=t)),A}function bo(A,e){for(var t=-1,r=[];(t=A.indexOf(e,t+1))!==-1;)r.push(t);return r}function hE(){var A=Array.prototype.concat.apply([],arguments);return A.filter(function(e,t){return t===A.indexOf(e)})}var pE=function(){function A(t,r){r===void 0&&(r={}),this.rule=t,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,G.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=So(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new gE.default({source:n}),this.root.errorGenerator=this._errorGenerator();var i=new mo.default({source:{start:{line:1,column:1}}});this.root.append(i),this.current=i,this.loop()}var e=A.prototype;return e._errorGenerator=function(){var r=this;return function(n,i){return typeof r.rule=="string"?new Error(n):r.rule.error(n,i)}},e.attribute=function(){var r=[],n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[G.FIELDS.TYPE]!==P.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[G.FIELDS.TYPE]!==P.closeSquare)return this.expected("closing square bracket",this.currToken[G.FIELDS.START_POS]);var i=r.length,o={source:pt(n[1],n[2],this.currToken[3],this.currToken[4]),sourceIndex:n[G.FIELDS.START_POS]};if(i===1&&!~[P.word].indexOf(r[0][G.FIELDS.TYPE]))return this.expected("attribute",r[0][G.FIELDS.START_POS]);for(var a=0,u="",l="",I=null,E=!1;a<i;){var C=r[a],d=this.content(C),p=r[a+1];switch(C[G.FIELDS.TYPE]){case P.space:if(E=!0,this.options.lossy)break;if(I){(0,UA.ensureObject)(o,"spaces",I);var y=o.spaces[I].after||"";o.spaces[I].after=y+d;var k=(0,UA.getProp)(o,"raws","spaces",I,"after")||null;k&&(o.raws.spaces[I].after=k+d)}else u=u+d,l=l+d;break;case P.asterisk:if(p[G.FIELDS.TYPE]===P.equals)o.operator=d,I="operator";else if((!o.namespace||I==="namespace"&&!E)&&p){u&&((0,UA.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,UA.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=u,l=""),o.namespace=(o.namespace||"")+d;var x=(0,UA.getProp)(o,"raws","namespace")||null;x&&(o.raws.namespace+=d),I="namespace"}E=!1;break;case P.dollar:if(I==="value"){var M=(0,UA.getProp)(o,"raws","value");o.value+="$",M&&(o.raws.value=M+"$");break}case P.caret:p[G.FIELDS.TYPE]===P.equals&&(o.operator=d,I="operator"),E=!1;break;case P.combinator:if(d==="~"&&p[G.FIELDS.TYPE]===P.equals&&(o.operator=d,I="operator"),d!=="|"){E=!1;break}p[G.FIELDS.TYPE]===P.equals?(o.operator=d,I="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),E=!1;break;case P.word:if(p&&this.content(p)==="|"&&r[a+2]&&r[a+2][G.FIELDS.TYPE]!==P.equals&&!o.operator&&!o.namespace)o.namespace=d,I="namespace";else if(!o.attribute||I==="attribute"&&!E){u&&((0,UA.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=u,u=""),l&&((0,UA.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+d;var b=(0,UA.getProp)(o,"raws","attribute")||null;b&&(o.raws.attribute+=d),I="attribute"}else if(!o.value&&o.value!==""||I==="value"&&!E){var v=(0,UA.unesc)(d),F=(0,UA.getProp)(o,"raws","value")||"",L=o.value||"";o.value=L+v,o.quoteMark=null,(v!==d||F)&&((0,UA.ensureObject)(o,"raws"),o.raws.value=(F||L)+d),I="value"}else{var O=d==="i"||d==="I";(o.value||o.value==="")&&(o.quoteMark||E)?(o.insensitive=O,(!O||d==="I")&&((0,UA.ensureObject)(o,"raws"),o.raws.insensitiveFlag=d),I="insensitive",u&&((0,UA.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=u,u=""),l&&((0,UA.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(I="value",o.value+=d,o.raws.value&&(o.raws.value+=d))}E=!1;break;case P.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:C[G.FIELDS.START_POS]});var J=(0,Kg.unescapeValue)(d),j=J.unescaped,CA=J.quoteMark;o.value=j,o.quoteMark=CA,I="value",(0,UA.ensureObject)(o,"raws"),o.raws.value=d,E=!1;break;case P.equals:if(!o.attribute)return this.expected("attribute",C[G.FIELDS.START_POS],d);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:C[G.FIELDS.START_POS]});o.operator=o.operator?o.operator+d:d,I="operator",E=!1;break;case P.comment:if(I)if(E||p&&p[G.FIELDS.TYPE]===P.space||I==="insensitive"){var FA=(0,UA.getProp)(o,"spaces",I,"after")||"",dA=(0,UA.getProp)(o,"raws","spaces",I,"after")||FA;(0,UA.ensureObject)(o,"raws","spaces",I),o.raws.spaces[I].after=dA+d}else{var sA=o[I]||"",vA=(0,UA.getProp)(o,"raws",I)||sA;(0,UA.ensureObject)(o,"raws"),o.raws[I]=vA+d}else l=l+d;break;default:return this.error('Unexpected "'+d+'" found.',{index:C[G.FIELDS.START_POS]})}a++}_t(o,"attribute"),_t(o,"namespace"),this.newNode(new Kg.default(o)),this.position++},e.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var n=this.position,i=[],o="",a=void 0;do if(vo[this.currToken[G.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[G.FIELDS.TYPE]===P.comment){var u={};o&&(u.before=o,o=""),a=new Wg.default({value:this.content(),source:Pt(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS],spaces:u}),i.push(a)}while(++this.position<r);if(o){if(a)a.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[n],I=this.tokens[this.position-1];i.push(new yo.default({value:"",source:pt(l[G.FIELDS.START_LINE],l[G.FIELDS.START_COL],I[G.FIELDS.END_LINE],I[G.FIELDS.END_COL]),sourceIndex:l[G.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return i},e.convertWhitespaceNodesToSpace=function(r,n){var i=this;n===void 0&&(n=!1);var o="",a="";r.forEach(function(l){var I=i.lossySpace(l.spaces.before,n),E=i.lossySpace(l.rawSpaceBefore,n);o+=I+i.lossySpace(l.spaces.after,n&&I.length===0),a+=I+l.value+i.lossySpace(l.rawSpaceAfter,n&&E.length===0)}),a===o&&(a=void 0);var u={space:o,rawSpace:a};return u},e.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][G.FIELDS.TYPE]===P.slash&&this.tokens[r+1]&&this.tokens[r+1][G.FIELDS.TYPE]===P.word&&this.tokens[r+2]&&this.tokens[r+2][G.FIELDS.TYPE]===P.slash},e.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),n=(0,UA.unesc)(r).toLowerCase(),i={};n!==r&&(i.value="/"+r+"/");var o=new wo.default({value:"/"+n+"/",source:pt(this.currToken[G.FIELDS.START_LINE],this.currToken[G.FIELDS.START_COL],this.tokens[this.position+2][G.FIELDS.END_LINE],this.tokens[this.position+2][G.FIELDS.END_COL]),sourceIndex:this.currToken[G.FIELDS.START_POS],raws:i});return this.position=this.position+3,o}else this.unexpected()},e.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var n=this.locateNextMeaningfulToken(this.position);if(n<0||this.tokens[n][G.FIELDS.TYPE]===P.comma){var i=this.parseWhitespaceEquivalentTokens(n);if(i.length>0){var o=this.current.last;if(o){var a=this.convertWhitespaceNodesToSpace(i),u=a.space,l=a.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=u}else i.forEach(function(F){return r.newNode(F)})}return}var I=this.currToken,E=void 0;n>this.position&&(E=this.parseWhitespaceEquivalentTokens(n));var C;if(this.isNamedCombinator()?C=this.namedCombinator():this.currToken[G.FIELDS.TYPE]===P.combinator?(C=new wo.default({value:this.content(),source:Pt(this.currToken),sourceIndex:this.currToken[G.FIELDS.START_POS]}),this.position++):vo[this.currToken[G.FIELDS.TYPE]]||E||this.unexpected(),C){if(E){var d=this.convertWhitespaceNodesToSpace(E),p=d.space,y=d.rawSpace;C.spaces.before=p,C.rawSpaceBefore=y}}else{var k=this.convertWhitespaceNodesToSpace(E,!0),x=k.space,M=k.rawSpace;M||(M=x);var b={},v={spaces:{}};x.endsWith(" ")&&M.endsWith(" ")?(b.before=x.slice(0,x.length-1),v.spaces.before=M.slice(0,M.length-1)):x.startsWith(" ")&&M.startsWith(" ")?(b.after=x.slice(1),v.spaces.after=M.slice(1)):v.value=M,C=new wo.default({value:" ",source:So(I,this.tokens[this.position-1]),sourceIndex:I[G.FIELDS.START_POS],spaces:b,raws:v})}return this.currToken&&this.currToken[G.FIELDS.TYPE]===P.space&&(C.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(C)},e.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new mo.default({source:{start:qg(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},e.comment=function(){var r=this.currToken;this.newNode(new Wg.default({value:this.content(),source:Pt(r),sourceIndex:r[G.FIELDS.START_POS]})),this.position++},e.error=function(r,n){throw this.root.error(r,n)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[G.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[G.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[G.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[G.FIELDS.START_POS])},e.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[G.FIELDS.TYPE]===P.word)return this.position++,this.word(r);if(this.nextToken[G.FIELDS.TYPE]===P.asterisk)return this.position++,this.universal(r)},e.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var n=this.currToken;this.newNode(new BE.default({value:this.content(),source:Pt(n),sourceIndex:n[G.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var r=this.current.last,n=1;if(this.position++,r&&r.type===QE.PSEUDO){var i=new mo.default({source:{start:qg(this.tokens[this.position-1])}}),o=this.current;for(r.append(i),this.current=i;this.position<this.tokens.length&&n;)this.currToken[G.FIELDS.TYPE]===P.openParenthesis&&n++,this.currToken[G.FIELDS.TYPE]===P.closeParenthesis&&n--,n?this.parse():(this.current.source.end=Xg(this.currToken),this.current.parent.source.end=Xg(this.currToken),this.position++);this.current=o}else{for(var a=this.currToken,u="(",l;this.position<this.tokens.length&&n;)this.currToken[G.FIELDS.TYPE]===P.openParenthesis&&n++,this.currToken[G.FIELDS.TYPE]===P.closeParenthesis&&n--,l=this.currToken,u+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",u,u):this.newNode(new yo.default({value:u,source:pt(a[G.FIELDS.START_LINE],a[G.FIELDS.START_COL],l[G.FIELDS.END_LINE],l[G.FIELDS.END_COL]),sourceIndex:a[G.FIELDS.START_POS]}))}if(n)return this.expected("closing parenthesis",this.currToken[G.FIELDS.START_POS])},e.pseudo=function(){for(var r=this,n="",i=this.currToken;this.currToken&&this.currToken[G.FIELDS.TYPE]===P.colon;)n+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[G.FIELDS.TYPE]===P.word)this.splitWord(!1,function(o,a){n+=o,r.newNode(new cE.default({value:n,source:So(i,r.currToken),sourceIndex:i[G.FIELDS.START_POS]})),a>1&&r.nextToken&&r.nextToken[G.FIELDS.TYPE]===P.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[G.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[G.FIELDS.START_POS])},e.space=function(){var r=this.content();this.position===0||this.prevToken[G.FIELDS.TYPE]===P.comma||this.prevToken[G.FIELDS.TYPE]===P.openParenthesis||this.current.nodes.every(function(n){return n.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[G.FIELDS.TYPE]===P.comma||this.nextToken[G.FIELDS.TYPE]===P.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},e.string=function(){var r=this.currToken;this.newNode(new yo.default({value:this.content(),source:Pt(r),sourceIndex:r[G.FIELDS.START_POS]})),this.position++},e.universal=function(r){var n=this.nextToken;if(n&&this.content(n)==="|")return this.position++,this.namespace();var i=this.currToken;this.newNode(new fE.default({value:this.content(),source:Pt(i),sourceIndex:i[G.FIELDS.START_POS]}),r),this.position++},e.splitWord=function(r,n){for(var i=this,o=this.nextToken,a=this.content();o&&~[P.dollar,P.caret,P.equals,P.word].indexOf(o[G.FIELDS.TYPE]);){this.position++;var u=this.content();if(a+=u,u.lastIndexOf("\\")===u.length-1){var l=this.nextToken;l&&l[G.FIELDS.TYPE]===P.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var I=bo(a,".").filter(function(p){var y=a[p-1]==="\\",k=/^\d+\.\d+%$/.test(a);return!y&&!k}),E=bo(a,"#").filter(function(p){return a[p-1]!=="\\"}),C=bo(a,"#{");C.length&&(E=E.filter(function(p){return!~C.indexOf(p)}));var d=(0,EE.default)(hE([0].concat(I,E)));d.forEach(function(p,y){var k=d[y+1]||a.length,x=a.slice(p,k);if(y===0&&n)return n.call(i,x,d.length);var M,b=i.currToken,v=b[G.FIELDS.START_POS]+d[y],F=pt(b[1],b[2]+p,b[3],b[2]+(k-1));if(~I.indexOf(p)){var L={value:x.slice(1),source:F,sourceIndex:v};M=new uE.default(_t(L,"value"))}else if(~E.indexOf(p)){var O={value:x.slice(1),source:F,sourceIndex:v};M=new IE.default(_t(O,"value"))}else{var J={value:x,source:F,sourceIndex:v};_t(J,"value"),M=new lE.default(J)}i.newNode(M,r),r=null}),this.position++},e.word=function(r){var n=this.nextToken;return n&&this.content(n)==="|"?(this.position++,this.namespace()):this.splitWord(r)},e.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},e.parse=function(r){switch(this.currToken[G.FIELDS.TYPE]){case P.space:this.space();break;case P.comment:this.comment();break;case P.openParenthesis:this.parentheses();break;case P.closeParenthesis:r&&this.missingParenthesis();break;case P.openSquare:this.attribute();break;case P.dollar:case P.caret:case P.equals:case P.word:this.word();break;case P.colon:this.pseudo();break;case P.comma:this.comma();break;case P.asterisk:this.universal();break;case P.ampersand:this.nesting();break;case P.slash:case P.combinator:this.combinator();break;case P.str:this.string();break;case P.closeSquare:this.missingSquareBracket();case P.semicolon:this.missingBackslash();default:this.unexpected()}},e.expected=function(r,n,i){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var a=/^[aeiou]/.test(r[0])?"an":"a";return i?this.error("Expected "+a+" "+r+', found "'+i+'" instead.',{index:n}):this.error("Expected "+a+" "+r+".",{index:n})},e.requiredSpace=function(r){return this.options.lossy?" ":r},e.optionalSpace=function(r){return this.options.lossy?"":r},e.lossySpace=function(r,n){return this.options.lossy?n?" ":"":r},e.parseParenthesisToken=function(r){var n=this.content(r);return r[G.FIELDS.TYPE]===P.space?this.requiredSpace(n):n},e.newNode=function(r,n){return n&&(/^ +$/.test(n)&&(this.options.lossy||(this.spaces=(this.spaces||"")+n),n=!0),r.namespace=n,_t(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},e.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[G.FIELDS.START_POS],r[G.FIELDS.END_POS])},e.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var n=r;n<this.tokens.length;)if(dE[this.tokens[n][G.FIELDS.TYPE]]){n++;continue}else return n;return-1},CE(A,[{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]}}]),A}();kr.default=pE;zg.exports=kr.default});var $g=K((xr,jg)=>{"use strict";xr.__esModule=!0;xr.default=void 0;var mE=yE(Zg());function yE(A){return A&&A.__esModule?A:{default:A}}var wE=function(){function A(t,r){this.func=t||function(){},this.funcRes=null,this.options=r}var e=A.prototype;return e._shouldUpdateSelector=function(r,n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.updateSelector===!1?!1:typeof r!="string"},e._isLossy=function(r){r===void 0&&(r={});var n=Object.assign({},this.options,r);return n.lossless===!1},e._root=function(r,n){n===void 0&&(n={});var i=new mE.default(r,this._parseOptions(n));return i.root},e._parseOptions=function(r){return{lossy:this._isLossy(r)}},e._run=function(r,n){var i=this;return n===void 0&&(n={}),new Promise(function(o,a){try{var u=i._root(r,n);Promise.resolve(i.func(u)).then(function(l){var I=void 0;return i._shouldUpdateSelector(r,n)&&(I=u.toString(),r.selector=I),{transform:l,root:u,string:I}}).then(o,a)}catch(l){a(l);return}})},e._runSync=function(r,n){n===void 0&&(n={});var i=this._root(r,n),o=this.func(i);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var a=void 0;return n.updateSelector&&typeof r!="string"&&(a=i.toString(),r.selector=a),{transform:o,root:i,string:a}},e.ast=function(r,n){return this._run(r,n).then(function(i){return i.root})},e.astSync=function(r,n){return this._runSync(r,n).root},e.transform=function(r,n){return this._run(r,n).then(function(i){return i.transform})},e.transformSync=function(r,n){return this._runSync(r,n).transform},e.process=function(r,n){return this._run(r,n).then(function(i){return i.string||i.root.toString()})},e.processSync=function(r,n){var i=this._runSync(r,n);return i.string||i.root.toString()},A}();xr.default=wE;jg.exports=xr.default});var Au=K(bA=>{"use strict";bA.__esModule=!0;bA.universal=bA.tag=bA.string=bA.selector=bA.root=bA.pseudo=bA.nesting=bA.id=bA.comment=bA.combinator=bA.className=bA.attribute=void 0;var DE=Ne(lo()),SE=Ne(Vi()),bE=Ne(Eo()),vE=Ne(Zi()),kE=Ne($i()),xE=Ne(Co()),RE=Ne(oo()),NE=Ne(Wi()),FE=Ne(Yi()),ME=Ne(no()),LE=Ne(to()),GE=Ne(fo());function Ne(A){return A&&A.__esModule?A:{default:A}}var UE=function(e){return new DE.default(e)};bA.attribute=UE;var HE=function(e){return new SE.default(e)};bA.className=HE;var OE=function(e){return new bE.default(e)};bA.combinator=OE;var TE=function(e){return new vE.default(e)};bA.comment=TE;var PE=function(e){return new kE.default(e)};bA.id=PE;var _E=function(e){return new xE.default(e)};bA.nesting=_E;var JE=function(e){return new RE.default(e)};bA.pseudo=JE;var WE=function(e){return new NE.default(e)};bA.root=WE;var KE=function(e){return new FE.default(e)};bA.selector=KE;var YE=function(e){return new ME.default(e)};bA.string=YE;var qE=function(e){return new LE.default(e)};bA.tag=qE;var XE=function(e){return new GE.default(e)};bA.universal=XE});var nu=K(EA=>{"use strict";EA.__esModule=!0;EA.isNode=ko;EA.isPseudoElement=ru;EA.isPseudoClass=iQ;EA.isContainer=oQ;EA.isNamespace=sQ;EA.isUniversal=EA.isTag=EA.isString=EA.isSelector=EA.isRoot=EA.isPseudo=EA.isNesting=EA.isIdentifier=EA.isComment=EA.isCombinator=EA.isClassName=EA.isAttribute=void 0;var HA=ee(),he,VE=(he={},he[HA.ATTRIBUTE]=!0,he[HA.CLASS]=!0,he[HA.COMBINATOR]=!0,he[HA.COMMENT]=!0,he[HA.ID]=!0,he[HA.NESTING]=!0,he[HA.PSEUDO]=!0,he[HA.ROOT]=!0,he[HA.SELECTOR]=!0,he[HA.STRING]=!0,he[HA.TAG]=!0,he[HA.UNIVERSAL]=!0,he);function ko(A){return typeof A=="object"&&VE[A.type]}function Fe(A,e){return ko(e)&&e.type===A}var eu=Fe.bind(null,HA.ATTRIBUTE);EA.isAttribute=eu;var zE=Fe.bind(null,HA.CLASS);EA.isClassName=zE;var ZE=Fe.bind(null,HA.COMBINATOR);EA.isCombinator=ZE;var jE=Fe.bind(null,HA.COMMENT);EA.isComment=jE;var $E=Fe.bind(null,HA.ID);EA.isIdentifier=$E;var AQ=Fe.bind(null,HA.NESTING);EA.isNesting=AQ;var xo=Fe.bind(null,HA.PSEUDO);EA.isPseudo=xo;var eQ=Fe.bind(null,HA.ROOT);EA.isRoot=eQ;var tQ=Fe.bind(null,HA.SELECTOR);EA.isSelector=tQ;var rQ=Fe.bind(null,HA.STRING);EA.isString=rQ;var tu=Fe.bind(null,HA.TAG);EA.isTag=tu;var nQ=Fe.bind(null,HA.UNIVERSAL);EA.isUniversal=nQ;function ru(A){return xo(A)&&A.value&&(A.value.startsWith("::")||A.value.toLowerCase()===":before"||A.value.toLowerCase()===":after"||A.value.toLowerCase()===":first-letter"||A.value.toLowerCase()===":first-line")}function iQ(A){return xo(A)&&!ru(A)}function oQ(A){return!!(ko(A)&&A.walk)}function sQ(A){return eu(A)||tu(A)}});var iu=K(Pe=>{"use strict";Pe.__esModule=!0;var Ro=ee();Object.keys(Ro).forEach(function(A){A==="default"||A==="__esModule"||A in Pe&&Pe[A]===Ro[A]||(Pe[A]=Ro[A])});var No=Au();Object.keys(No).forEach(function(A){A==="default"||A==="__esModule"||A in Pe&&Pe[A]===No[A]||(Pe[A]=No[A])});var Fo=nu();Object.keys(Fo).forEach(function(A){A==="default"||A==="__esModule"||A in Pe&&Pe[A]===Fo[A]||(Pe[A]=Fo[A])})});var au=K((Rr,su)=>{"use strict";Rr.__esModule=!0;Rr.default=void 0;var aQ=IQ($g()),gQ=uQ(iu());function ou(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return ou=function(){return A},A}function uQ(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var e=ou();if(e&&e.has(A))return e.get(A);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in A)if(Object.prototype.hasOwnProperty.call(A,n)){var i=r?Object.getOwnPropertyDescriptor(A,n):null;i&&(i.get||i.set)?Object.defineProperty(t,n,i):t[n]=A[n]}return t.default=A,e&&e.set(A,t),t}function IQ(A){return A&&A.__esModule?A:{default:A}}var Mo=function(e){return new aQ.default(e)};Object.assign(Mo,gQ);delete Mo.__esModule;var lQ=Mo;Rr.default=lQ;su.exports=Rr.default});var gu=K(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Object.defineProperty(Lo,"default",{enumerable:!0,get:()=>cQ});function cQ(A){return A.replace(/\\,/g,"\\2c ")}});var Iu=K((B0,uu)=>{"use strict";uu.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 Uo=K(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});function fQ(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}fQ(Go,{parseColor:()=>hQ,formatColor:()=>pQ});var lu=BQ(Iu());function BQ(A){return A&&A.__esModule?A:{default:A}}var EQ=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,QQ=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,st=/(?:\d+|\d*\.\d+)%?/,xn=/(?:\s*,\s*|\s+)/,cu=/\s*[,/]\s*/,at=/var\(--(?:[^ )]*?)\)/,CQ=new RegExp(`^(rgb)a?\\(\\s*(${st.source}|${at.source})(?:${xn.source}(${st.source}|${at.source}))?(?:${xn.source}(${st.source}|${at.source}))?(?:${cu.source}(${st.source}|${at.source}))?\\s*\\)$`),dQ=new RegExp(`^(hsl)a?\\(\\s*((?:${st.source})(?:deg|rad|grad|turn)?|${at.source})(?:${xn.source}(${st.source}|${at.source}))?(?:${xn.source}(${st.source}|${at.source}))?(?:${cu.source}(${st.source}|${at.source}))?\\s*\\)$`);function hQ(A,{loose:e=!1}={}){var t,r;if(typeof A!="string")return null;if(A=A.trim(),A==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(A in lu.default)return{mode:"rgb",color:lu.default[A].map(u=>u.toString())};let n=A.replace(QQ,(u,l,I,E,C)=>["#",l,l,I,I,E,E,C?C+C:""].join("")).match(EQ);if(n!==null)return{mode:"rgb",color:[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)].map(u=>u.toString()),alpha:n[4]?(parseInt(n[4],16)/255).toString():void 0};var i;let o=(i=A.match(CQ))!==null&&i!==void 0?i:A.match(dQ);if(o===null)return null;let a=[o[2],o[3],o[4]].filter(Boolean).map(u=>u.toString());return!e&&a.length!==3||a.length<3&&!a.some(u=>/^var\(.*?\)$/.test(u))?null:{mode:o[1],color:a,alpha:(t=o[5])===null||t===void 0||(r=t.toString)===null||r===void 0?void 0:r.call(t)}}function pQ({mode:A,color:e,alpha:t}){let r=t!==void 0;return`${A}(${e.join(" ")}${r?` / ${t}`:""})`}});var Oo=K(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});function mQ(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}mQ(Ho,{withAlphaValue:()=>yQ,default:()=>wQ});var Rn=Uo();function yQ(A,e,t){if(typeof A=="function")return A({opacityValue:e});let r=(0,Rn.parseColor)(A,{loose:!0});return r===null?t:(0,Rn.formatColor)({...r,alpha:e})}function wQ({color:A,property:e,variable:t}){let r=[].concat(e);if(typeof A=="function")return{[t]:"1",...Object.fromEntries(r.map(i=>[i,A({opacityVariable:t,opacityValue:`var(${t})`})]))};let n=(0,Rn.parseColor)(A);return n===null?Object.fromEntries(r.map(i=>[i,A])):n.alpha!==void 0?Object.fromEntries(r.map(i=>[i,A])):{[t]:"1",...Object.fromEntries(r.map(i=>[i,(0,Rn.formatColor)({...n,alpha:`var(${t})`})]))}}});var Cu=K(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});function DQ(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}DQ(To,{pattern:()=>bQ,withoutCapturing:()=>Bu,any:()=>Eu,optional:()=>vQ,zeroOrMore:()=>kQ,nestedBrackets:()=>Qu,escape:()=>mt});var fu=/[\\^$.*+?()[\]{}|]/g,SQ=RegExp(fu.source);function Nr(A){return A=Array.isArray(A)?A:[A],A=A.map(e=>e instanceof RegExp?e.source:e),A.join("")}function bQ(A){return new RegExp(Nr(A),"g")}function Bu(A){return new RegExp(`(?:${Nr(A)})`,"g")}function Eu(A){return`(?:${A.map(Nr).join("|")})`}function vQ(A){return`(?:${Nr(A)})?`}function kQ(A){return`(?:${Nr(A)})*`}function Qu(A,e,t=1){return Bu([mt(A),/[^\s]*/,t===1?`[^${mt(A)}${mt(e)}s]*`:Eu([`[^${mt(A)}${mt(e)}s]*`,Qu(A,e,t-1)]),/[^\s]*/,mt(e)])}function mt(A){return A&&SQ.test(A)?A.replace(fu,"\\$&"):A||""}});var hu=K(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Object.defineProperty(Po,"splitAtTopLevelOnly",{enumerable:!0,get:()=>NQ});var xQ=RQ(Cu());function du(A){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(du=function(r){return r?t:e})(A)}function RQ(A,e){if(!e&&A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var t=du(e);if(t&&t.has(A))return t.get(A);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in A)if(i!=="default"&&Object.prototype.hasOwnProperty.call(A,i)){var o=n?Object.getOwnPropertyDescriptor(A,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=A[i]}return r.default=A,t&&t.set(A,r),r}function*NQ(A,e){let t=new RegExp(`[(){}\\[\\]${xQ.escape(e)}]`,"g"),r=0,n=0,i=!1,o=0,a=0,u=e.length;for(let l of A.matchAll(t)){let I=l[0]===e[o],E=o===u-1,C=I&&E;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,I&&r===0&&(a===0&&(a=l.index),o++),C&&r===0&&(i=!0,yield A.substring(n,a),n=a+u),o===u&&(o=0,a=0)}i?yield A.substring(n):yield A}});var mu=K(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});function FQ(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}FQ(_o,{parseBoxShadowValue:()=>UQ,formatBoxShadowValue:()=>HQ});var MQ=hu(),LQ=new Set(["inset","inherit","initial","revert","unset"]),GQ=/\ +(?![^(]*\))/g,pu=/^-?(\d+|\.\d+)(.*?)$/g;function UQ(A){return Array.from((0,MQ.splitAtTopLevelOnly)(A,",")).map(t=>{let r=t.trim(),n={raw:r},i=r.split(GQ),o=new Set;for(let a of i)pu.lastIndex=0,!o.has("KEYWORD")&&LQ.has(a)?(n.keyword=a,o.add("KEYWORD")):pu.test(a)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(n.spread=a,o.add("SPREAD")):(n.blur=a,o.add("BLUR")):(n.y=a,o.add("Y")):(n.x=a,o.add("X")):n.color?(n.unknown||(n.unknown=[]),n.unknown.push(a)):n.color=a;return n.valid=n.x!==void 0&&n.y!==void 0,n})}function HQ(A){return A.map(e=>e.valid?[e.keyword,e.x,e.y,e.blur,e.spread,e.color].filter(Boolean).join(" "):e.raw).join(", ")}});var ku=K(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});function OQ(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}OQ(Wo,{normalize:()=>gt,url:()=>Du,number:()=>_Q,percentage:()=>Su,length:()=>bu,lineWidth:()=>KQ,shadow:()=>YQ,color:()=>qQ,image:()=>XQ,gradient:()=>vu,position:()=>ZQ,familyName:()=>jQ,genericName:()=>AC,absoluteSize:()=>tC,relativeSize:()=>nC});var TQ=Uo(),PQ=mu(),Jo=["min","max","clamp","calc"],wu=/,(?![^(]*\))/g,Nn=/_(?![^(]*\))/g;function gt(A,e=!0){return A.includes("url(")?A.split(/(url\(.*?\))/g).filter(Boolean).map(t=>/^url\(.*?\)$/.test(t)?t:gt(t,!1)).join(""):(A=A.replace(/([^\\])_+/g,(t,r)=>r+" ".repeat(t.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),e&&(A=A.trim()),A=A.replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),A)}function Du(A){return A.startsWith("url(")}function _Q(A){return!isNaN(Number(A))||Jo.some(e=>new RegExp(`^${e}\\(.+?`).test(A))}function Su(A){return A.split(Nn).every(e=>/%$/g.test(e)||Jo.some(t=>new RegExp(`^${t}\\(.+?%`).test(e)))}var JQ=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],yu=`(?:${JQ.join("|")})`;function bu(A){return A.split(Nn).every(e=>e==="0"||new RegExp(`${yu}$`).test(e)||Jo.some(t=>new RegExp(`^${t}\\(.+?${yu}`).test(e)))}var WQ=new Set(["thin","medium","thick"]);function KQ(A){return WQ.has(A)}function YQ(A){let e=(0,PQ.parseBoxShadowValue)(gt(A));for(let t of e)if(!t.valid)return!1;return!0}function qQ(A){let e=0;return A.split(Nn).every(r=>(r=gt(r),r.startsWith("var(")?!0:(0,TQ.parseColor)(r,{loose:!0})!==null?(e++,!0):!1))?e>0:!1}function XQ(A){let e=0;return A.split(wu).every(r=>(r=gt(r),r.startsWith("var(")?!0:Du(r)||vu(r)||["element(","image(","cross-fade(","image-set("].some(n=>r.startsWith(n))?(e++,!0):!1))?e>0:!1}var VQ=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function vu(A){A=gt(A);for(let e of VQ)if(A.startsWith(`${e}(`))return!0;return!1}var zQ=new Set(["center","top","right","bottom","left"]);function ZQ(A){let e=0;return A.split(Nn).every(r=>(r=gt(r),r.startsWith("var(")?!0:zQ.has(r)||bu(r)||Su(r)?(e++,!0):!1))?e>0:!1}function jQ(A){let e=0;return A.split(wu).every(r=>(r=gt(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(e++,!0)))?e>0:!1}var $Q=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function AC(A){return $Q.has(A)}var eC=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function tC(A){return eC.has(A)}var rC=new Set(["larger","smaller"]);function nC(A){return rC.has(A)}});var Uu=K(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});function iC(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}iC(qo,{updateAllClasses:()=>aC,asValue:()=>Mr,parseColorFormat:()=>Ko,asColor:()=>Mu,asLookupValue:()=>Lu,coerceValue:()=>lC});var oC=Yo(au()),sC=Yo(gu()),xu=Oo(),pe=ku(),Ru=Yo(xi());function Yo(A){return A&&A.__esModule?A:{default:A}}function aC(A,e){return(0,oC.default)(n=>{n.walkClasses(i=>{let o=e(i.value);i.value=o,i.raws&&i.raws.value&&(i.raws.value=(0,sC.default)(i.raws.value))})}).processSync(A)}function Fu(A,e){if(!Fr(A))return;let t=A.slice(1,-1);if(e(t))return(0,pe.normalize)(t)}function gC(A,e={},t){let r=e[A];if(r!==void 0)return(0,Ru.default)(r);if(Fr(A)){let n=Fu(A,t);return n===void 0?void 0:(0,Ru.default)(n)}}function Mr(A,e={},{validate:t=()=>!0}={}){var r;let n=(r=e.values)===null||r===void 0?void 0:r[A];return n!==void 0?n:e.supportsNegativeValues&&A.startsWith("-")?gC(A.slice(1),e.values,t):Fu(A,t)}function Fr(A){return A.startsWith("[")&&A.endsWith("]")}function uC(A){let e=A.lastIndexOf("/");return e===-1||e===A.length-1?[A]:[A.slice(0,e),A.slice(e+1)]}function Ko(A){if(typeof A=="string"&&A.includes("<alpha-value>")){let e=A;return({opacityValue:t=1})=>e.replace("<alpha-value>",t)}return A}function Mu(A,e={},{tailwindConfig:t={}}={}){var r;if(((r=e.values)===null||r===void 0?void 0:r[A])!==void 0){var n;return Ko((n=e.values)===null||n===void 0?void 0:n[A])}let[i,o]=uC(A);if(o!==void 0){var a,u,l,I;let E=(I=(a=e.values)===null||a===void 0?void 0:a[i])!==null&&I!==void 0?I:Fr(i)?i.slice(1,-1):void 0;return E===void 0?void 0:(E=Ko(E),Fr(o)?(0,xu.withAlphaValue)(E,o.slice(1,-1)):((u=t.theme)===null||u===void 0||(l=u.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,xu.withAlphaValue)(E,t.theme.opacity[o]))}return Mr(A,e,{validate:pe.color})}function Lu(A,e={}){var t;return(t=e.values)===null||t===void 0?void 0:t[A]}function Me(A){return(e,t)=>Mr(e,t,{validate:A})}var Gu={any:Mr,color:Mu,url:Me(pe.url),image:Me(pe.image),length:Me(pe.length),percentage:Me(pe.percentage),position:Me(pe.position),lookup:Lu,"generic-name":Me(pe.genericName),"family-name":Me(pe.familyName),number:Me(pe.number),"line-width":Me(pe.lineWidth),"absolute-size":Me(pe.absoluteSize),"relative-size":Me(pe.relativeSize),shadow:Me(pe.shadow)},Nu=Object.keys(Gu);function IC(A,e){let t=A.indexOf(e);return t===-1?[void 0,A]:[A.slice(0,t),A.slice(t+1)]}function lC(A,e,t,r){if(Fr(e)){let n=e.slice(1,-1),[i,o]=IC(n,":");if(!/^[\w-_]+$/g.test(i))o=n;else if(i!==void 0&&!Nu.includes(i))return[];if(o.length>0&&Nu.includes(i))return[Mr(`[${o}]`,t),i]}for(let n of[].concat(A)){let i=Gu[n](e,t,{tailwindConfig:r});if(i!==void 0)return[i,n]}return[]}});var Hu=K(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Object.defineProperty(Xo,"default",{enumerable:!0,get:()=>cC});function cC(A){return typeof A=="function"?A({}):A}});var Ju=K(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});Object.defineProperty(zo,"default",{enumerable:!0,get:()=>FC});var fC=yt(xi()),BC=yt(Ya()),EC=yt(qa()),QC=yt(Fi()),CC=yt(Va()),Pu=za(),Ou=Za(),dC=$a(),hC=yt(Ag()),pC=eg(),mC=Uu(),yC=Oo(),wC=yt(Hu());function yt(A){return A&&A.__esModule?A:{default:A}}function Jt(A){return typeof A=="function"}function Lr(A){return typeof A=="object"&&A!==null}function Gr(A,...e){let t=e.pop();for(let r of e)for(let n in r){let i=t(A[n],r[n]);i===void 0?Lr(A[n])&&Lr(r[n])?A[n]=Gr(A[n],r[n],t):A[n]=r[n]:A[n]=i}return A}var Vo={colors:CC.default,negative(A){return Object.keys(A).filter(e=>A[e]!=="0").reduce((e,t)=>{let r=(0,fC.default)(A[t]);return r!==void 0&&(e[`-${t}`]=r),e},{})},breakpoints(A){return Object.keys(A).filter(e=>typeof A[e]=="string").reduce((e,t)=>({...e,[`screen-${t}`]:A[t]}),{})}};function DC(A,...e){return Jt(A)?A(...e):A}function SC(A){return A.reduce((e,{extend:t})=>Gr(e,t,(r,n)=>r===void 0?[n]:Array.isArray(r)?[n,...r]:[n,r]),{})}function bC(A){return{...A.reduce((e,t)=>(0,Pu.defaults)(e,t),{}),extend:SC(A)}}function Tu(A,e){if(Array.isArray(A)&&Lr(A[0]))return A.concat(e);if(Array.isArray(e)&&Lr(e[0])&&Lr(A))return[A,...e];if(Array.isArray(e))return e}function vC({extend:A,...e}){return Gr(e,A,(t,r)=>!Jt(t)&&!r.some(Jt)?Gr({},t,...r,Tu):(n,i)=>Gr({},...[t,...r].map(o=>DC(o,n,i)),Tu))}function*kC(A){let e=(0,Ou.toPath)(A);if(e.length===0||(yield e,Array.isArray(A)))return;let t=/^(.*?)\s*\/\s*([^/]+)$/,r=A.match(t);if(r!==null){let[,n,i]=r,o=(0,Ou.toPath)(n);o.alpha=i,yield o}}function xC(A){let e=(t,r)=>{for(let n of kC(t)){let i=0,o=A;for(;o!=null&&i<n.length;)o=o[n[i++]],o=Jt(o)&&(n.alpha===void 0||i<=n.length-1)?o(e,Vo):o;if(o!==void 0){if(n.alpha!==void 0){let a=(0,mC.parseColorFormat)(o);return(0,yC.withAlphaValue)(a,n.alpha,(0,wC.default)(a))}return(0,hC.default)(o)?(0,pC.cloneDeep)(o):o}}return r};return Object.assign(e,{theme:e,...Vo}),Object.keys(A).reduce((t,r)=>(t[r]=Jt(A[r])?A[r](e,Vo):A[r],t),{})}function _u(A){let e=[];return A.forEach(t=>{e=[...e,t];var r;let n=(r=t==null?void 0:t.plugins)!==null&&r!==void 0?r:[];n.length!==0&&n.forEach(i=>{i.__isOptionsFunction&&(i=i());var o;e=[...e,..._u([(o=i==null?void 0:i.config)!==null&&o!==void 0?o:{}])]})}),e}function RC(A){return[...A].reduceRight((t,r)=>Jt(r)?r({corePlugins:t}):(0,EC.default)(r,t),BC.default)}function NC(A){return[...A].reduceRight((t,r)=>[...t,...r],[])}function FC(A){let e=[..._u(A),{prefix:"",important:!1,separator:":",variantOrder:QC.default.variantOrder}];var t,r;return(0,dC.normalizeConfig)((0,Pu.defaults)({theme:xC(vC(bC(e.map(n=>(t=n==null?void 0:n.theme)!==null&&t!==void 0?t:{})))),corePlugins:RC(e.map(n=>n.corePlugins)),plugins:NC(A.map(n=>(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[]))},...e))}});var Wu={};Qt(Wu,{default:()=>MC});var MC,Ku=ze(()=>{MC={yellow:A=>A}});var Vu=K(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});function LC(A,e){for(var t in e)Object.defineProperty(A,t,{enumerable:!0,get:e[t]})}LC(Zo,{flagEnabled:()=>HC,issueFlagNotices:()=>OC,default:()=>TC});var GC=Xu((Ku(),qt(Wu))),UC=Xu((Qn(),qt(En)));function Xu(A){return A&&A.__esModule?A:{default:A}}var Yu={optimizeUniversalDefaults:!1},Ur={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function HC(A,e){if(Ur.future.includes(e)){var t,r,n;return A.future==="all"||((n=(r=A==null||(t=A.future)===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:Yu[e])!==null&&n!==void 0?n:!1)}if(Ur.experimental.includes(e)){var i,o,a;return A.experimental==="all"||((a=(o=A==null||(i=A.experimental)===null||i===void 0?void 0:i[e])!==null&&o!==void 0?o:Yu[e])!==null&&a!==void 0?a:!1)}return!1}function qu(A){if(A.experimental==="all")return Ur.experimental;var e;return Object.keys((e=A==null?void 0:A.experimental)!==null&&e!==void 0?e:{}).filter(t=>Ur.experimental.includes(t)&&A.experimental[t])}function OC(A){if(process.env.JEST_WORKER_ID===void 0&&qu(A).length>0){let e=qu(A).map(t=>GC.default.yellow(t)).join(", ");UC.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${e}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var TC=Ur});var Zu=K(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});Object.defineProperty(jo,"default",{enumerable:!0,get:()=>zu});var PC=JC(Fi()),_C=Vu();function JC(A){return A&&A.__esModule?A:{default:A}}function zu(A){var e;let t=((e=A==null?void 0:A.presets)!==null&&e!==void 0?e:[PC.default]).slice().reverse().flatMap(i=>zu(typeof i=="function"?i():i)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},n=Object.keys(r).filter(i=>(0,_C.flagEnabled)(A,i)).map(i=>r[i]);return[A,...n,...t]}});var $u=K($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"default",{enumerable:!0,get:()=>YC});var WC=ju(Ju()),KC=ju(Zu());function ju(A){return A&&A.__esModule?A:{default:A}}function YC(...A){let[,...e]=(0,KC.default)(A[0]);return(0,WC.default)([...A,...e])}});var eI=K((v0,AI)=>{var As=$u();AI.exports=(As.__esModule?As:{default:As}).default});var cd={};Qt(cd,{default:()=>Cs,init:()=>qs});module.exports=qt(cd);var Ds=Je(require("linebreak"),1);var Xt=(A,e)=>()=>(e||A((e={exports:{}}).exports,e),e.exports),NI=Xt((A,e)=>{e.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),FI=Xt((A,e)=>{e.exports=["deg","grad","rad","turn"]}),MI=Xt((A,e)=>{e.exports=["dpi","dpcm","dppx"]}),LI=Xt((A,e)=>{e.exports=["Hz","kHz"]}),GI=Xt((A,e)=>{e.exports=["s","ms"]}),UI=NI(),ps=FI(),ms=MI(),ys=LI(),ws=GI();function On(A){if(/\.\D?$/.test(A))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(A))throw new Error("Only one leading +/- is allowed");if(HI(A)>1)throw new Error("Only one dot is allowed");if(/%$/.test(A)){this.type="percentage",this.value=Hn(A),this.unit="%";return}var e=TI(A);if(!e){this.type="number",this.value=Hn(A);return}this.type=_I(e),this.value=Hn(A.substr(0,A.length-e.length)),this.unit=e}On.prototype.valueOf=function(){return this.value};On.prototype.toString=function(){return this.value+(this.unit||"")};function He(A){return new On(A)}function HI(A){var e=A.match(/\./g);return e?e.length:0}function Hn(A){var e=parseFloat(A);if(isNaN(e))throw new Error("Invalid number: "+A);return e}var OI=[].concat(ps,ys,UI,ms,ws);function TI(A){var e=A.match(/\D+$/),t=e&&e[0];if(t&&OI.indexOf(t)===-1)throw new Error("Invalid unit: "+t);return t}var PI=Object.assign(Xr(ps,"angle"),Xr(ys,"frequency"),Xr(ms,"resolution"),Xr(ws,"time"));function Xr(A,e){return Object.fromEntries(A.map(t=>[t,e]))}function _I(A){return PI[A]||"length"}function Nt(A){let e=typeof A;return!(e==="number"||e==="bigint"||e==="string"||e==="boolean")}function Ss(A){return/^class\s/.test(A.toString())}function _n(A){return A&&A.$$typeof===Symbol.for("react.forward_ref")}function bs(A){return typeof A=="function"||_n(A)}function vs(A){return"dangerouslySetInnerHTML"in A}function ks(A){let e=typeof A>"u"?[]:[].concat(A).flat(1/0),t=[];for(let r=0;r<e.length;r++){let n=e[r];typeof n>"u"||typeof n=="boolean"||n===null||(typeof n=="number"&&(n=String(n)),typeof n=="string"&&t.length&&typeof t[t.length-1]=="string"?t[t.length-1]+=n:t.push(n))}return t}function tA(A,e,t,r,n=!1){if(typeof A=="number")return A;try{if(A=A.trim(),/[ /\(,]/.test(A))return;if(A===String(+A))return+A;let i=new He(A);if(i.type==="length")switch(i.unit){case"em":return i.value*e;case"rem":return i.value*16;case"vw":return~~(i.value*r._viewportWidth/100);case"vh":return~~(i.value*r._viewportHeight/100);default:return i.value}else{if(i.type==="angle")return Jn(A);if(i.type==="percentage"&&n)return i.value/100*t}}catch{}}function Jn(A){let e=new He(A);switch(e.unit){case"deg":return e.value;case"rad":return e.value*180/Math.PI;case"turn":return e.value*360;case"grad":return .9*e.value}}function Vt(A,e){return[A[0]*e[0]+A[2]*e[1],A[1]*e[0]+A[3]*e[1],A[0]*e[2]+A[2]*e[3],A[1]*e[2]+A[3]*e[3],A[0]*e[4]+A[2]*e[5]+A[4],A[1]*e[4]+A[3]*e[5]+A[5]]}function ue(A,e,t,r){let n=e[A];if(typeof n>"u"){if(r&&typeof A<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(e).map(i=>`"${i}"`).join(" | ")}. Received: "${A}".`);n=t}return n}var Tn,Pn,xs=[32,160,4961,65792,65793,4153,4241,10].map(A=>String.fromCodePoint(A)),Rt=new Map,JI=500;function ge(A,e,t){let r=`${e}:${t||""}:${A}`;if(Rt.has(r))return Rt.get(r);if(!Tn||!Pn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Tn=new Intl.Segmenter(t,{granularity:"word"}),Pn=new Intl.Segmenter(t,{granularity:"grapheme"})}let n;if(e==="grapheme")n=[...Pn.segment(A)].map(i=>i.segment);else{let i=[...Tn.segment(A)].map(u=>u.segment),o=[],a=0;for(;a<i.length;){let u=i[a];if(u=="\xA0"){let l=a===0?"":o.pop(),I=a===i.length-1?"":i[a+1];o.push(l+"\xA0"+I),a+=2}else o.push(u),a++}n=o}if(Rt.size>=JI){let i=Rt.keys().next().value;Rt.delete(i)}return Rt.set(r,n),n}function H(A,e,t){let r="";for(let[n,i]of Object.entries(e))typeof i<"u"&&(r+=` ${n}="${i}"`);return t?`<${A}${r}>${t}</${A}>`:`<${A}${r}/>`}function Rs(A=20){let e=new Map;function t(i){let o=e.get(i);if(o!==void 0)return e.delete(i),e.set(i,o),o}function r(i,o){if(e.has(i))e.delete(i);else if(e.size>=A){let a=e.keys().next().value;e.delete(a)}e.set(i,o)}function n(){e.clear()}return{set:r,get:t,clear:n}}function Ft(A){return A?A.split(/[, ]/).filter(Boolean).map(Number):null}function Vr(A){return typeof A=="string"}function Ns(A){return typeof A=="number"}function Fs(A){return typeof A>"u"}function Ze(A,e){if(typeof A=="number")return A;if(A.endsWith("%")){let t=parseFloat(A.slice(0,-1));if(isNaN(t)){console.warn(`Invalid value "${A}"${typeof e=="string"?` for "${e}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${t}%`}console.warn(`Invalid value "${A}"${typeof e=="string"?` for "${e}"`:""}. Expected a number or a percentage value (e.g., "50%").`)}function nt(A,e){if(typeof A=="number")return A;if(A==="auto")return"auto";if(A.endsWith("%")){let t=parseFloat(A.slice(0,-1));if(isNaN(t)){console.warn(`Invalid value "${A}"${typeof e=="string"?` for "${e}"`:""}. Expected a percentage value (e.g., "50%").`);return}return`${t}%`}console.warn(`Invalid value "${A}"${typeof e=="string"?` for "${e}"`:""}. Expected a number, "auto", or a percentage value (e.g., "50%").`)}function Ms(A,e){if(e==="break-all")return{words:ge(A,"grapheme"),requiredBreaks:[]};if(e==="keep-all")return{words:ge(A,"word"),requiredBreaks:[]};let t=new Ds.default(A),r=0,n=t.nextBreak(),i=[],o=[!1];for(;n;){let a=A.slice(r,n.position);i.push(a),n.required?o.push(!0):o.push(!1),r=n.position,n=t.nextBreak()}return{words:i,requiredBreaks:o}}var Ls=A=>A.replaceAll(/([A-Z])/g,(e,t)=>`-${t.toLowerCase()}`);function zr(A,e=","){let t=[],r=0,n=0;e=new RegExp(e);for(let i=0;i<A.length;i++)A[i]==="("?n++:A[i]===")"&&n--,n===0&&e.test(A[i])&&(t.push(A.slice(r,i).trim()),r=i+1);return t.push(A.slice(r).trim()),t}function qs(A){if(process.env.SATORI_STANDALONE==="1")return Promise.resolve().then(()=>(Ai(),$n)).then(e=>e.init(A))}function it(){return process.env.SATORI_STANDALONE==="1"?Promise.resolve().then(()=>(Ai(),$n)).then(A=>A.getYoga()):Promise.resolve().then(()=>(ti(),ei)).then(A=>A.getYoga())}process.env.SATORI_STANDALONE!=="1"&&Promise.resolve().then(()=>(ti(),ei));var Xs=Symbol.for("react.fragment");var rl=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;function Vs(A){let e=A.split(".").map(i=>Number.parseInt(i,10));if(e.length!==4||e.some(i=>!Number.isInteger(i)||i<0||i>255))return!0;let[t,r,n]=e;return t===0||t===10||t===100&&r>=64&&r<=127||t===127||t===169&&r===254||t===172&&r>=16&&r<=31||t===192&&r===0&&n===0||t===192&&r===168||t===198&&(r===18||r===19)||t>=224}function nl(A){let e=A.match(/^(?:::ffff:|64:ff9b::|::)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/);if(e)return e[1];let t=A.match(/^(?:::ffff:|64:ff9b::|::)([0-9a-f]{1,4}):([0-9a-f]{1,4})$/);if(t){let r=Number.parseInt(t[1],16),n=Number.parseInt(t[2],16);return`${r>>8&255}.${r&255}.${n>>8&255}.${n&255}`}return null}function il(A){let e=nl(A);return e?Vs(e):!!(A==="::"||A==="::1"||A.startsWith("fc")||A.startsWith("fd")||/^fe[89ab]/.test(A)||/^fe[c-f]/.test(A)||A.startsWith("ff")||/^2001:0?db8(?::|$)/.test(A))}function ol(A){let e;try{e=new URL(A)}catch{return!0}if(e.protocol!=="http:"&&e.protocol!=="https:")return!0;let t=e.hostname.toLowerCase();return t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1)),t==="localhost"||t.endsWith(".localhost")||t.endsWith(".local")?!0:rl.test(t)?Vs(t):t.includes(":")?il(t):!1}function zs(A){if(ol(A))throw new Error(`Image source resolves to a blocked address (SSRF protection): ${A}`)}var sl="image/avif",al="image/webp",An="image/apng",en="image/png",tn="image/jpeg",rn="image/gif",ri="image/svg+xml";function $s(A){let e=new DataView(A),t=4,r=e.byteLength;for(;t<r;){let n=e.getUint16(t,!1);if(n>r)throw new TypeError("Invalid JPEG");let i=e.getUint8(n+1+t);if(i===192||i===193||i===194)return[e.getUint16(n+7+t,!1),e.getUint16(n+5+t,!1)];t+=n+2}throw new TypeError("Invalid JPEG")}function Aa(A){let e=new Uint8Array(A.slice(6,10));return[e[0]|e[1]<<8,e[2]|e[3]<<8]}function ea(A){let e=new DataView(A);return[e.getUint16(18,!1),e.getUint16(22,!1)]}var We=Rs(500),Zt=new Map,gl=[en,An,tn,rn,ri],ul=/<svg[^>]*>/i,Il=/viewBox=['"]([^'"]+)['"]/,ll=/width=['"](\d*\.?\d+)['"]/,cl=/height=['"](\d*\.?\d+)['"]/;function fl(A){let e=new Uint8Array(A),t=32768,r="";for(let n=0;n<e.length;n+=t){let i=e.subarray(n,Math.min(n+t,e.length));r+=String.fromCharCode(...i)}return btoa(r)}function Bl(A){let e=atob(A),t=e.length,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return r.buffer}function Zs(A,e){let t=e.match(ul);if(!t)throw new Error(`Failed to parse SVG from ${A}`);let r=t[0],n=Il.exec(r),i=ll.exec(r),o=cl.exec(r),a=n?Ft(n[1]):null;if(!a&&(!i||!o))throw new Error(`Failed to parse SVG from ${A}: missing "viewBox"`);let u=a?[a[2],a[3]]:[+i[1],+o[1]],l=u[0]/u[1];return i&&o?[+i[1],+o[1]]:i?[+i[1],+i[1]/l]:o?[+o[1]*l,+o[1]]:[u[0],u[1]]}function js(A){let e,t=El(new Uint8Array(A));switch(t){case en:case An:e=ea(A);break;case rn:e=Aa(A);break;case tn:e=$s(A);break}if(!gl.includes(t))throw new Error(`Unsupported image type: ${t||"unknown"}`);return[`data:${t};base64,${fl(A)}`,e]}async function Ut(A){if(!A)throw new Error("Image source is not provided.");if(typeof A=="object"){let[n,i]=js(A);return[n,...i]}if((A.startsWith('"')&&A.endsWith('"')||A.startsWith("'")&&A.endsWith("'"))&&(A=A.slice(1,-1)),typeof window>"u"&&!A.startsWith("http")&&!A.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${A}`);if(A.startsWith("data:")){let n;try{n=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(A).groups}catch{return console.warn("Image data URI resolved without size:"+A),[A]}let{imageType:i,encodingType:o,dataString:a}=n;if(i===ri){let u=o==="base64"?atob(a):decodeURIComponent(a.replace(/ /g,"%20")),l=o==="base64"?A:`data:image/svg+xml;base64,${btoa(u)}`,I=Zs(A,u);return We.set(A,[l,...I]),[l,...I]}else if(o==="base64"){let u,l=Bl(a);switch(i){case en:case An:u=ea(l);break;case rn:u=Aa(l);break;case tn:u=$s(l);break}return We.set(A,[A,...u]),[A,...u]}else return console.warn("Image data URI resolved without size:"+A),We.set(A,[A]),[A]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(Zt.has(A))return Zt.get(A);let e=We.get(A);if(e)return e;let t=A;typeof window>"u"&&zs(t);let r=fetch(t).then(n=>{let i=n.headers.get("content-type");return i==="image/svg+xml"||i==="application/svg+xml"?n.text():n.arrayBuffer()}).then(n=>{if(typeof n=="string")try{let a=`data:image/svg+xml;base64,${btoa(n)}`,u=Zs(t,n);return[a,...u]}catch(a){throw new Error(`Failed to parse SVG image: ${a.message}`)}let[i,o]=js(n);return[i,...o]}).then(n=>(We.set(t,n),n)).catch(n=>(console.error(`Can't load image ${t}: `+n.message),We.set(t,[]),[]));return Zt.set(t,r),r}function El(A){return[255,216,255].every((e,t)=>A[t]===e)?tn:[137,80,78,71,13,10,26,10].every((e,t)=>A[t]===e)?Ql(A)?An:en:[71,73,70,56].every((e,t)=>A[t]===e)?rn:[82,73,70,70,0,0,0,0,87,69,66,80].every((e,t)=>!e||A[t]===e)?al:[60,63,120,109,108].every((e,t)=>A[t]===e)?ri:[0,0,0,0,102,116,121,112,97,118,105,102].every((e,t)=>!e||A[t]===e)?sl:null}function Ql(A){let e=new DataView(A.buffer),t,r,n=8,i=!1;for(;!i&&t!=="IEND"&&n<A.length;){r=e.getUint32(n);let o=A.subarray(n+4,n+8);t=String.fromCharCode(...o),i=t==="acTL",n+=12+r}return i}var ni={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"},Cl=/[\r\n%#()<>?[\\\]^`{|}"']/g;function nn(A,e){if(!A)return"";if(Array.isArray(A))return A.map(l=>nn(l,e)).join("");if(typeof A!="object")return String(A);let t=A.type;if(t==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:n,...i}=A.props||{},o=(n==null?void 0:n.color)||e,a=`${Object.entries(i).map(([l,I])=>(typeof I=="string"&&I.toLowerCase()==="currentcolor"&&(I=o),(l==="href"||l==="xlinkHref")&&t==="image"?` ${ni[l]||l}="${We.get(I)[0]}"`:` ${ni[l]||l}="${I}"`)).join("")}`,u=n?` style="${Object.entries(n).map(([l,I])=>`${Ls(l)}:${I}`).join(";")}"`:"";return t===Xs?nn(r,o):`<${t}${a}${u}>${nn(r,o)}</${t}>`}async function ta(A){let e=new Set,t=r=>{if(r&&Nt(r)){if(Array.isArray(r)){r.forEach(n=>t(n));return}else if(typeof r=="object")if(r.type==="image"){let n=r.props.href||r.props.xlinkHref;n&&(e.has(n)||e.add(n))}else r.type==="img"&&(e.has(r.props.src)||e.add(r.props.src));Array.isArray(r.props.children)?r.props.children.map(n=>t(n)):t(r.props.children)}};return t(A),Promise.all(Array.from(e).map(r=>Ut(r)))}async function ra(A,e){let{viewBox:t,viewbox:r,width:n,height:i,className:o,style:a,children:u,...l}=A.props||{};t||=r,l.xmlns="http://www.w3.org/2000/svg";let I=(a==null?void 0:a.color)||e,E=Ft(t),C=E?E[3]/E[2]:null;return n=n||C&&i?i/C:null,i=i||C&&n?n*C:null,l.width=n,l.height=i,t&&(l.viewBox=t),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([d,p])=>(typeof p=="string"&&p.toLowerCase()==="currentcolor"&&(p=I),` ${ni[d]||d}="${p}"`)).join("")}>${nn(u,I)}</svg>`.replace(Cl,encodeURIComponent)}`}var xe="flex",na={p:{display:xe,marginTop:"1em",marginBottom:"1em"},div:{display:xe},blockquote:{display:xe,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:xe,textAlign:"center"},hr:{display:xe,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:xe,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:xe,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:xe,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:xe,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:xe,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:xe,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:xe,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};var dl=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 ii(A){let e={};for(let t in A)(dl.has(t)||t.startsWith("--"))&&(e[t]=A[t]);return e}var Te=require("css-to-react-native"),ca=require("css-background-parser"),fa=require("css-box-shadow"),Ba=Je(require("parse-css-color"),1);var ia=Je(require("postcss-value-parser"),1);function hl(A,e){try{let t=new He(A);switch(t.unit){case"px":return{absolute:t.value};case"em":return{absolute:t.value*e};case"rem":return{absolute:t.value*16};case"%":return{relative:t.value};default:return{}}}catch{return{}}}function oi(A,e,t){switch(A){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=hl(A,e);return r.absolute?{[t?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[t?"xRelative":"yRelative"]:r.relative}:{}}}}function si(A,e){if(typeof A=="number")return{xAbsolute:A};let t;try{t=(0,ia.default)(A).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return t.length===1?oi(t[0],e,!0):t.length===2?((t[0]==="top"||t[0]==="bottom"||t[1]==="left"||t[1]==="right")&&t.reverse(),{...oi(t[0],e,!0),...oi(t[1],e,!1)}):{}}var oa=require("css-to-react-native");function jt(A,e){let t=(0,oa.getPropertyName)(`mask-${e}`);return A[t]||A[`WebkitM${t.substring(1)}`]}function sa(A){let e=A.maskImage||A.WebkitMaskImage,t={position:jt(A,"position")||"0% 0%",size:jt(A,"size")||"100% 100%",repeat:jt(A,"repeat")||"repeat",origin:jt(A,"origin")||"border-box",clip:jt(A,"origin")||"border-box"};return zr(e).filter(n=>n&&n!=="none").reverse().map(n=>({image:n,...t}))}var ai=Je(require("postcss-value-parser"),1);function aa(A){let e={},t={};for(let r in A)r.startsWith("--")?e[r]=String(A[r]):t[r]=A[r];return{variables:e,remainingStyle:t}}function ga(A,e){return{...A,...e}}function Ar(A,e,t=new Set){if(typeof A!="string"||!A.includes("var("))return A;try{let r=(0,ai.default)(A),n=!1;if(r.walk(i=>{if(i.type==="function"&&i.value==="var"){n=!0;let o=pl(i);if(!o)return;let{varName:a,fallback:u}=o;if(t.has(a)){console.warn(`Circular reference detected for CSS variable: ${a}`),u!==void 0?$t(i,u):$t(i,"initial");return}let l=e[a];if(l!==void 0){let I=new Set(t);I.add(a);let E=Ar(l,e,I);$t(i,String(E))}else if(u!==void 0){let I=Ar(u,e,t);$t(i,String(I))}else $t(i,"initial")}}),n)return r.toString()}catch{console.warn(`Failed to parse CSS value for variable resolution: ${A}`)}return A}function pl(A){if(!A.nodes||A.nodes.length===0)return null;let e,t=-1;for(let n=0;n<A.nodes.length;n++){let i=A.nodes[n];if(i.type==="word"&&!e)e=i;else if(i.type==="div"&&i.value===","){t=n;break}}if(!e||e.type!=="word")return null;let r=e.value.trim();if(t!==-1&&t<A.nodes.length-1){let n=A.nodes.slice(t+1),i=ai.default.stringify(n).trim();return{varName:r,fallback:i}}return{varName:r}}function $t(A,e){A.type="word",A.value=e,delete A.nodes}var ml=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),yl=new Set(["lineHeight"]);function wl(A,e,t,r){return A==="textDecoration"&&!t.includes(e.textDecorationColor)&&(e.textDecorationColor=r),e}function Ct(A,e){let t=Number(e);return isNaN(t)?e:ml.has(A)?yl.has(A)?t:String(e):t+"px"}function Dl(A,e,t){if(A==="zIndex")return console.warn("`z-index` is currently not supported."),{[A]:e};if(A==="lineHeight")return{lineHeight:Ct(A,e)};if(A==="fontFamily")return{fontFamily:e.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(A==="borderRadius"){if(typeof e!="string"||!e.includes("/"))return;let[r,n]=e.split("/"),i=(0,Te.getStylesForProperty)(A,r,!0),o=(0,Te.getStylesForProperty)(A,n,!0);for(let a in i)o[a]=Ct(A,i[a])+" "+Ct(A,o[a]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(A)){let r=(0,Te.getStylesForProperty)("border",e,!0);r.borderWidth===1&&!String(e).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(e).includes("black")&&(r.borderColor=t);let n={Width:Ct(A+"Width",r.borderWidth),Style:ue(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",A+"Style"),Color:r.borderColor},i={};for(let o of A==="border"?["Top","Right","Bottom","Left"]:[A.slice(6)])for(let a in n)i["border"+o+a]=n[a];return i}if(A==="boxShadow"){if(!e)throw new Error('Invalid `boxShadow` value: "'+e+'".');return{[A]:typeof e=="string"?(0,fa.parse)(e):e}}if(A==="transform"){if(typeof e!="string")throw new Error("Invalid `transform` value.");let r={},n=e.replace(/(-?[\d.]+%)/g,(o,a)=>{let u=~~(Math.random()*1e9);return r[u]=a,u+"px"}),i=(0,Te.getStylesForProperty)("transform",n,!0);for(let o of i.transform)for(let a in o)r[o[a]]&&(o[a]=r[o[a]]);return i}if(A==="background")return e=e.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient|repeating-radial-gradient)\(/.test(e)?(0,Te.getStylesForProperty)("backgroundImage",e,!0):(0,Te.getStylesForProperty)("background",e,!0);if(A==="textShadow"){e=e.toString().trim();let r={},n=zr(e);for(let i of n){let o=(0,Te.getStylesForProperty)("textShadow",i,!0);for(let a in o)r[a]?r[a].push(o[a]):r[a]=[o[a]]}return r}if(A==="WebkitTextStroke"){e=e.toString().trim();let r=e.split(" ");if(r.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Ct(A,r[0]),WebkitTextStrokeColor:Ct(A,r[1])}}if(A==="textDecorationSkipInk"){let r=e.toString().trim().toLowerCase();if(!["auto","none","all"].includes(r))throw new Error("Invalid `textDecorationSkipInk` value.");return{textDecorationSkipInk:r}}}function ua(A){return A==="transform"?" Only absolute lengths such as `10px` are supported.":""}var Ia=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Ea(A){if(typeof A=="string"&&Ia.test(A.trim()))return A.trim().replace(Ia,(e,t,r,n,i)=>`rgba(${t}, ${r}, ${n}, ${i})`);if(typeof A=="object"&&A!==null){for(let e in A)A[e]=Ea(A[e]);return A}return A}function on(A,e){let t={},r={};for(let u in e)u.startsWith("--")&&(r[u]=String(e[u]));let n={},i=A;if(A){let{variables:u,remainingStyle:l}=aa(A);n=u,i=l}let o=ga(r,n);for(let u in o)t[u]=o[u];if(i){let u=i.color?Ar(i.color,o):void 0,l=bl(u,e.color);t.color=l;for(let I in i){if(I.startsWith("_")){t[I]=i[I];continue}if(I==="color")continue;let E=(0,Te.getPropertyName)(I),C=Ar(i[I],o),d=kl(C,l);try{let p=Dl(E,d,l)||wl(E,(0,Te.getStylesForProperty)(E,Ct(E,d),!0),d,l);Object.assign(t,p)}catch(p){throw new Error(p.message+(p.message.includes(d)?`
|
|
6
6
|
`+ua(E):`
|
|
7
7
|
in CSS rule \`${E}: ${d}\`.${ua(E)}`))}}}if(t.backgroundImage){let{backgrounds:u}=(0,ca.parseElementStyle)(t);t.backgroundImage=u}(t.maskImage||t.WebkitMaskImage)&&(t.maskImage=sa(t));let a=Sl(t.fontSize,e.fontSize);typeof t.fontSize<"u"&&(t.fontSize=a),t.transformOrigin&&(t.transformOrigin=si(t.transformOrigin,a));for(let u in t){let l=t[u];if(u==="lineHeight")typeof l=="string"&&l!=="normal"&&(l=t[u]=tA(l,a,a,e,!0)/a);else{if(typeof l=="string"){let I=tA(l,a,a,e);typeof I<"u"&&(t[u]=I),l=t[u]}if(typeof l=="string"||typeof l=="object"){let I=Ea(l);I&&(t[u]=I),l=t[u]}}if(u==="opacity"&&typeof l=="number"&&(t.opacity=l*e.opacity),u==="transform"){let I=l;for(let E of I){let C=Object.keys(E)[0],d=E[C],p=typeof d=="string"?tA(d,a,a,e)??d:d;E[C]=p}}if(u==="textShadowRadius"){let I=l;t.textShadowRadius=I.map(E=>tA(E,a,0,e,!1))}if(u==="textShadowOffset"){let I=l;t.textShadowOffset=I.map(({height:E,width:C})=>({height:tA(E,a,0,e,!1),width:tA(C,a,0,e,!1)}))}}return t}function Sl(A,e){if(typeof A=="number")return A;try{let t=new He(A);switch(t.unit){case"em":return t.value*e;case"rem":return t.value*16}}catch{return e}}function la(A){if(A.startsWith("hsl")){let e=(0,Ba.default)(A),[t,r,n]=e.values;return`hsl(${[t,`${r}%`,`${n}%`].concat(e.alpha===1?[]:[e.alpha]).join(",")})`}return A}function bl(A,e){return A&&A.toLowerCase()!=="currentcolor"?la(A):la(e)}function vl(A,e){return A.replace(/currentcolor/gi,e)}function kl(A,e){return Vr(A)&&(A=vl(A,e)),A}async function gi(A,e,t,r,n){let i=await it(),o=Object.assign({},t,on(na[e],t),on(r,t));if(e==="img"){let[a,u,l]=await Ut(n.src);if(u===void 0&&l===void 0){if(n.width===void 0||n.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");u=parseInt(n.width),l=parseInt(n.height)}let I=l/u,E=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),C=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),d=o.width||n.width,p=o.height||n.height,y=typeof d=="number"&&typeof p=="number";y&&(d-=E,p-=C),d===void 0&&p===void 0?(d="100%",A.setAspectRatio(1/I)):d===void 0?typeof p=="number"?d=p/I:A.setAspectRatio(1/I):p===void 0&&(typeof d=="number"?p=d*I:A.setAspectRatio(1/I)),o.width=y?d+E:d,o.height=y?p+C:p,o.__src=a,o.__naturalWidth=u,o.__naturalHeight=l}if(e==="svg"){let a=n.viewBox||n.viewbox,u=Ft(a),l=u?u[3]/u[2]:null,{width:I,height:E}=n;typeof I>"u"&&E?l==null?I=0:typeof E=="string"&&E.endsWith("%")?I=parseInt(E)/l+"%":(E=tA(E,t.fontSize,1,t),I=E/l):typeof E>"u"&&I?l==null?I=0:typeof I=="string"&&I.endsWith("%")?E=parseInt(I)*l+"%":(I=tA(I,t.fontSize,1,t),E=I*l):(typeof I<"u"&&(I=tA(I,t.fontSize,1,t)||I),typeof E<"u"&&(E=tA(E,t.fontSize,1,t)||E),I||=u==null?void 0:u[2],E||=u==null?void 0:u[3]),!o.width&&I&&(o.width=I),!o.height&&E&&(o.height=E)}return A.setDisplay(ue(o.display,{flex:i.DISPLAY_FLEX,block:i.DISPLAY_FLEX,contents:i.DISPLAY_CONTENTS,none:i.DISPLAY_NONE,"-webkit-box":i.DISPLAY_FLEX},i.DISPLAY_FLEX,"display")),A.setAlignContent(ue(o.alignContent,{stretch:i.ALIGN_STRETCH,center:i.ALIGN_CENTER,"flex-start":i.ALIGN_FLEX_START,"flex-end":i.ALIGN_FLEX_END,"space-between":i.ALIGN_SPACE_BETWEEN,"space-around":i.ALIGN_SPACE_AROUND,baseline:i.ALIGN_BASELINE,normal:i.ALIGN_AUTO},i.ALIGN_AUTO,"alignContent")),A.setAlignItems(ue(o.alignItems,{stretch:i.ALIGN_STRETCH,center:i.ALIGN_CENTER,"flex-start":i.ALIGN_FLEX_START,"flex-end":i.ALIGN_FLEX_END,baseline:i.ALIGN_BASELINE,normal:i.ALIGN_AUTO},i.ALIGN_STRETCH,"alignItems")),A.setAlignSelf(ue(o.alignSelf,{stretch:i.ALIGN_STRETCH,center:i.ALIGN_CENTER,"flex-start":i.ALIGN_FLEX_START,"flex-end":i.ALIGN_FLEX_END,baseline:i.ALIGN_BASELINE,normal:i.ALIGN_AUTO},i.ALIGN_AUTO,"alignSelf")),A.setJustifyContent(ue(o.justifyContent,{center:i.JUSTIFY_CENTER,"flex-start":i.JUSTIFY_FLEX_START,"flex-end":i.JUSTIFY_FLEX_END,"space-between":i.JUSTIFY_SPACE_BETWEEN,"space-around":i.JUSTIFY_SPACE_AROUND},i.JUSTIFY_FLEX_START,"justifyContent")),A.setFlexDirection(ue(o.flexDirection,{row:i.FLEX_DIRECTION_ROW,column:i.FLEX_DIRECTION_COLUMN,"row-reverse":i.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":i.FLEX_DIRECTION_COLUMN_REVERSE},i.FLEX_DIRECTION_ROW,"flexDirection")),A.setFlexWrap(ue(o.flexWrap,{wrap:i.WRAP_WRAP,nowrap:i.WRAP_NO_WRAP,"wrap-reverse":i.WRAP_WRAP_REVERSE},i.WRAP_NO_WRAP,"flexWrap")),typeof o.gap<"u"&&A.setGap(i.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&A.setGap(i.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&A.setGap(i.GUTTER_COLUMN,o.columnGap),typeof o.flexBasis<"u"&&A.setFlexBasis(nt(o.flexBasis,"flexBasis")),A.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),A.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&A.setMaxHeight(Ze(o.maxHeight,"maxHeight")),typeof o.maxWidth<"u"&&A.setMaxWidth(Ze(o.maxWidth,"maxWidth")),typeof o.minHeight<"u"&&A.setMinHeight(Ze(o.minHeight,"minHeight")),typeof o.minWidth<"u"&&A.setMinWidth(Ze(o.minWidth,"minWidth")),A.setOverflow(ue(o.overflow,{visible:i.OVERFLOW_VISIBLE,hidden:i.OVERFLOW_HIDDEN},i.OVERFLOW_VISIBLE,"overflow")),A.setMargin(i.EDGE_TOP,nt(o.marginTop||0)),A.setMargin(i.EDGE_BOTTOM,nt(o.marginBottom||0)),A.setMargin(i.EDGE_LEFT,nt(o.marginLeft||0)),A.setMargin(i.EDGE_RIGHT,nt(o.marginRight||0)),A.setBorder(i.EDGE_TOP,o.borderTopWidth||0),A.setBorder(i.EDGE_BOTTOM,o.borderBottomWidth||0),A.setBorder(i.EDGE_LEFT,o.borderLeftWidth||0),A.setBorder(i.EDGE_RIGHT,o.borderRightWidth||0),A.setPadding(i.EDGE_TOP,o.paddingTop||0),A.setPadding(i.EDGE_BOTTOM,o.paddingBottom||0),A.setPadding(i.EDGE_LEFT,o.paddingLeft||0),A.setPadding(i.EDGE_RIGHT,o.paddingRight||0),A.setBoxSizing(ue(o.boxSizing,{"border-box":i.BOX_SIZING_BORDER_BOX,"content-box":i.BOX_SIZING_CONTENT_BOX},i.BOX_SIZING_BORDER_BOX,"boxSizing")),A.setPositionType(ue(o.position,{absolute:i.POSITION_TYPE_ABSOLUTE,relative:i.POSITION_TYPE_RELATIVE,static:i.POSITION_TYPE_STATIC},i.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&A.setPosition(i.EDGE_TOP,Ze(o.top,"top")),typeof o.bottom<"u"&&A.setPosition(i.EDGE_BOTTOM,Ze(o.bottom,"bottom")),typeof o.left<"u"&&A.setPosition(i.EDGE_LEFT,Ze(o.left,"left")),typeof o.right<"u"&&A.setPosition(i.EDGE_RIGHT,Ze(o.right,"right")),typeof o.height<"u"?A.setHeight(nt(o.height,"height")):A.setHeightAuto(),typeof o.width<"u"?A.setWidth(nt(o.width,"width")):A.setWidthAuto(),[o,ii(o)]}var ui=Je(require("escape-html"),1);var Qa=[1,0,0,1,0,0];function xl(A,e,t){let r=[...Qa];for(let n of A){let i=Object.keys(n)[0],o=n[i];if(typeof o=="string")if(i==="translateX")o=parseFloat(o)/100*e,n[i]=o;else if(i==="translateY")o=parseFloat(o)/100*t,n[i]=o;else throw new Error(`Invalid transform: "${i}: ${o}".`);let a=o,u=[...Qa];switch(i){case"translateX":u[4]=a;break;case"translateY":u[5]=a;break;case"scale":u[0]=a,u[3]=a;break;case"scaleX":u[0]=a;break;case"scaleY":u[3]=a;break;case"rotate":{let l=a*Math.PI/180,I=Math.cos(l),E=Math.sin(l);u[0]=I,u[1]=E,u[2]=-E,u[3]=I;break}case"skewX":u[2]=Math.tan(a*Math.PI/180);break;case"skewY":u[1]=Math.tan(a*Math.PI/180);break}r=Vt(u,r)}A.splice(0,A.length),A.push(...r),A.__resolved=!0}function er({left:A,top:e,width:t,height:r},n,i,o){let a;n.__resolved||xl(n,t,r);let u=n;if(i)a=u;else{let l=(o==null?void 0:o.xAbsolute)??((o==null?void 0:o.xRelative)??50)*t/100,I=(o==null?void 0:o.yAbsolute)??((o==null?void 0:o.yRelative)??50)*r/100,E=A+l,C=e+I;a=Vt([1,0,0,1,E,C],Vt(u,[1,0,0,1,-E,-C])),u.__parent&&(a=Vt(u.__parent,a)),u.splice(0,6,...a)}return`matrix(${a.map(l=>l.toFixed(2)).join(",")})`}function Ca({left:A,top:e,width:t,height:r,isInheritingTransform:n},i){let o="",a=1;return i.transform&&(o=er({left:A,top:e,width:t,height:r},i.transform,n,i.transformOrigin)),i.opacity!==void 0&&(a=+i.opacity),{matrix:o,opacity:a}}function Ii({id:A,content:e,filter:t,left:r,top:n,width:i,height:o,matrix:a,opacity:u,image:l,clipPathId:I,debug:E,shape:C,decorationShape:d},p){let y="";if(E&&(y=H("rect",{x:r,y:n-o,width:i,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a||void 0,"clip-path":I?`url(#${I})`:void 0})),l){let x={href:l,x:r,y:n,width:i,height:o,transform:a||void 0,"clip-path":I?`url(#${I})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(t?`${t}<g filter="url(#satori_s-${A})">`:"")+H("image",{...x,opacity:u!==1?u:void 0})+(d||"")+(t?"</g>":"")+y,""]}let k={x:r,y:n,width:i,height:o,"font-weight":p.fontWeight,"font-style":p.fontStyle,"font-size":p.fontSize,"font-family":p.fontFamily,"letter-spacing":p.letterSpacing||void 0,transform:a||void 0,"clip-path":I?`url(#${I})`:void 0,style:p.filter?`filter:${p.filter}`:void 0,"stroke-width":p.WebkitTextStrokeWidth?`${p.WebkitTextStrokeWidth}px`:void 0,stroke:p.WebkitTextStrokeWidth?p.WebkitTextStrokeColor:void 0,"stroke-linejoin":p.WebkitTextStrokeWidth?"round":void 0,"paint-order":p.WebkitTextStrokeWidth?"stroke":void 0};return[(t?`${t}<g filter="url(#satori_s-${A})">`:"")+H("text",{...k,fill:p.color,opacity:u!==1?u:void 0},(0,ui.default)(e))+(d||"")+(t?"</g>":"")+y,C?H("text",k,(0,ui.default)(e)):""]}function Rl(A,e,t){return A.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,n,i,o){return n+(parseFloat(i)+e)+","+(parseFloat(o)+t)})}var sn=1.1;function da({id:A,width:e,height:t},r,n=!1){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,o="",a="",u=0,l=e,I=0,E=t;for(let C=0;C<i;C++){let d=r.shadowRadius[C]*r.shadowRadius[C]/4;if(u=Math.min(r.shadowOffset[C].width-d,u),l=Math.max(r.shadowOffset[C].width+d+e,l),I=Math.min(r.shadowOffset[C].height-d,I),E=Math.max(r.shadowOffset[C].height+d+t,E),n){let p=`satori_s-${A}-result-${C}`;o+=H("feGaussianBlur",{in:"SourceAlpha",stdDeviation:r.shadowRadius[C]/2,result:`${p}-blur`})+H("feOffset",{in:`${p}-blur`,dx:r.shadowOffset[C].width,dy:r.shadowOffset[C].height,result:`${p}-offset`})+H("feFlood",{"flood-color":r.shadowColor[C],"flood-opacity":1,result:`${p}-color`})+H("feComposite",{in:`${p}-color`,in2:`${p}-offset`,operator:"in",result:i>1?p:void 0})}else o+=H("feDropShadow",{dx:r.shadowOffset[C].width,dy:r.shadowOffset[C].height,stdDeviation:r.shadowRadius[C]/2,"flood-color":r.shadowColor[C],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${A}-result-${C}`}:{}});i>1&&(a=H("feMergeNode",{in:`satori_s-${A}-result-${C}`})+a)}return H("filter",{id:`satori_s-${A}`,x:(u/e*100*sn).toFixed(2)+"%",y:(I/t*100*sn).toFixed(2)+"%",width:((l-u)/e*100*sn).toFixed(2)+"%",height:((E-I)/t*100*sn).toFixed(2)+"%"},o+(a?H("feMerge",{},a):""))}function ha({width:A,height:e,shape:t,opacity:r,id:n},i){if(!i.boxShadow)return null;let o="",a="";for(let u=i.boxShadow.length-1;u>=0;u--){let l="",I=i.boxShadow[u];I.spreadRadius&&I.inset&&(I.spreadRadius=-I.spreadRadius);let E=I.blurRadius*I.blurRadius/4+(I.spreadRadius||0),C=Math.min(-E-(I.inset?I.offsetX:0),0),d=Math.max(E+A-(I.inset?I.offsetX:0),A),p=Math.min(-E-(I.inset?I.offsetY:0),0),y=Math.max(E+e-(I.inset?I.offsetY:0),e),k=`satori_s-${n}-${u}`,x=`satori_ms-${n}-${u}`,M=I.spreadRadius?t.replace('stroke-width="0"',`stroke-width="${I.spreadRadius*2}"`):t;l+=H("mask",{id:x,maskUnits:"userSpaceOnUse"},H("rect",{x:0,y:0,width:i._viewportWidth||"100%",height:i._viewportHeight||"100%",fill:I.inset?"#000":"#fff"})+M.replace('fill="#fff"',I.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let b=M.replace(/d="([^"]+)"/,(v,F)=>'d="'+Rl(F,I.offsetX,I.offsetY)+'"').replace(/x="([^"]+)"/,(v,F)=>'x="'+(parseFloat(F)+I.offsetX)+'"').replace(/y="([^"]+)"/,(v,F)=>'y="'+(parseFloat(F)+I.offsetY)+'"');I.spreadRadius&&I.spreadRadius<0&&(l+=H("mask",{id:x+"-neg",maskUnits:"userSpaceOnUse"},b.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-I.spreadRadius*2}"`))),I.spreadRadius&&I.spreadRadius<0&&(b=H("g",{mask:`url(#${x}-neg)`},b)),l+=H("defs",{},H("filter",{id:k,x:`${C/A*100}%`,y:`${p/e*100}%`,width:`${(d-C)/A*100}%`,height:`${(y-p)/e*100}%`},H("feGaussianBlur",{stdDeviation:I.blurRadius/2,result:"b"})+H("feFlood",{"flood-color":I.color,in:"SourceGraphic",result:"f"})+H("feComposite",{in:"f",in2:"b",operator:I.inset?"out":"in"})))+H("g",{mask:`url(#${x})`,filter:`url(#${k})`,opacity:r},b),I.inset?a+=l:o+=l}return[o,a]}function Nl(A,e,t,r,n,i){let o=n/2,a=Math.max(o,n*1.25),u=[];for(let E of t){if(E.y2<i+o||E.y1>r+o)continue;let C=Math.max(A,E.x1-a),d=Math.min(e,E.x2+a);if(C>=d)continue;if(u.length===0){u.push([C,d]);continue}let p=u[u.length-1];C<=p[1]?p[1]=Math.max(p[1],d):u.push([C,d])}if(!u.length)return[[A,e]];let l=[],I=A;for(let[E,C]of u)if(E>I&&l.push([I,E]),I=Math.max(I,C),I>=e)break;return I<e&&l.push([I,e]),l}function li({width:A,left:e,top:t,ascender:r,clipPathId:n,matrix:i,glyphBoxes:o},a){let{textDecorationColor:u,textDecorationStyle:l,textDecorationLine:I,textDecorationSkipInk:E,fontSize:C,color:d}=a;if(!I||I==="none")return"";let p=Math.max(1,C*.1),y=I==="line-through"?t+r*.7:I==="underline"?t+r*1.1:t,k=l==="dashed"?`${p*1.2} ${p*2}`:l==="dotted"?`0 ${p*2}`:void 0,x=I==="underline"&&(E||"auto")!=="none"&&(o==null?void 0:o.length),M=t+r,b=x?Nl(e,e+A,o,y,p,M):[[e,e+A]],v=l==="double"?b.map(([F,L])=>H("line",{x1:F,y1:y+p+1,x2:L,y2:y+p+1,stroke:u||d,"stroke-width":p,"stroke-dasharray":k,"stroke-linecap":l==="dotted"?"round":"square",transform:i})).join(""):"";return(n?`<g clip-path="url(#${n})">`:"")+b.map(([F,L])=>H("line",{x1:F,y1:y,x2:L,y2:y,stroke:u||d,"stroke-width":p,"stroke-dasharray":k,"stroke-linecap":l==="dotted"?"round":"square",transform:i})).join("")+v+(n?"</g>":"")}function ci(A){return A=A.replace("U+","0x"),String.fromCodePoint(Number(A))}var dt=ci("U+0020"),fi=ci("U+0009"),Ht=ci("U+2026");function pa(A,e,t){let{fontSize:r,letterSpacing:n}=t,i=new Map;function o(l){let I=i.get(l);return I===void 0&&(I=A.measure(l,{fontSize:r,letterSpacing:n}),i.set(l,I)),I}function a(l){let I=0;for(let E of l)e(E)?I+=r:I+=o(E);return I}function u(l){return a(ge(l,"grapheme"))}return{measureGrapheme:o,measureGraphemeArray:a,measureText:u}}function ma(A,e,t){let{textTransform:r,whiteSpace:n,wordBreak:i}=e;A=Fl(A,r,t);let{content:o,shouldCollapseTabsAndSpaces:a,allowSoftWrap:u}=Gl(A,n),{words:l,requiredBreaks:I,allowBreakWord:E}=Ll(o,i),[C,d]=Ml(e,u);return{words:l,requiredBreaks:I,allowSoftWrap:u,allowBreakWord:E,processedContent:o,shouldCollapseTabsAndSpaces:a,lineLimit:C,blockEllipsis:d}}function Fl(A,e,t){return e==="uppercase"?A=A.toLocaleUpperCase(t):e==="lowercase"?A=A.toLocaleLowerCase(t):e==="capitalize"&&(A=ge(A,"word",t).map(r=>ge(r,"grapheme",t).map((n,i)=>i===0?n.toLocaleUpperCase(t):n).join("")).join("")),A}function Ml(A,e){let{textOverflow:t,lineClamp:r,WebkitLineClamp:n,WebkitBoxOrient:i,overflow:o,display:a}=A;if(a==="block"&&r){let[u,l=Ht]=Ul(r);if(u)return[u,l]}return t==="ellipsis"&&a==="-webkit-box"&&i==="vertical"&&Ns(n)&&n>0?[n,Ht]:t==="ellipsis"&&o==="hidden"&&!e?[1,Ht]:[1/0]}function Ll(A,e){let t=["break-all","break-word"].includes(e),{words:r,requiredBreaks:n}=Ms(A,e);return{words:r,requiredBreaks:n,allowBreakWord:t}}function Gl(A,e){let t=["pre","pre-wrap","pre-line"].includes(e),r=["normal","nowrap","pre-line"].includes(e),n=!["pre","nowrap"].includes(e);return t||(A=A.replace(/\n/g,dt)),r&&(A=A.replace(/([ ]|\t)+/g,dt).replace(/^[ ]|[ ]$/g,"")),{content:A,shouldCollapseTabsAndSpaces:r,allowSoftWrap:n}}function Ul(A){if(typeof A=="number")return[A];let e=/^(\d+)\s*"(.*)"$/,t=/^(\d+)\s*'(.*)'$/,r=e.exec(A),n=t.exec(A);if(r){let i=+r[1],o=r[2];return[i,o]}else if(n){let i=+n[1],o=n[2];return[i,o]}return[]}var Ei=Je(require("parse-css-color"),1),Hl=new Set([fi]);function Ol(A){return Hl.has(A)}function Bi(A){if(A==="transparent")return!0;let e=(0,Ei.default)(A);return e?e.alpha===0:!1}function ya(A){if(!A)return!1;let e=(0,Ei.default)(A);if(!e)return!1;let[t,r,n,i]=e.values;return t===255&&r===255&&n===255&&(i===void 0||i===1)}async function*Qi(A,e){let t=await it(),{parentStyle:r,inheritedStyle:n,parent:i,font:o,id:a,isInheritingTransform:u,debug:l,embedFont:I,graphemeImages:E,locale:C,canLoadAdditionalAssets:d}=e,{textAlign:p,textIndent:y=0,lineHeight:k,textWrap:x,fontSize:M,filter:b,tabSize:v=8,letterSpacing:F,_inheritedBackgroundClipTextPath:L,_inheritedBackgroundClipTextHasBackground:O,flexShrink:J}=r,{words:j,requiredBreaks:CA,allowSoftWrap:FA,allowBreakWord:dA,processedContent:sA,shouldCollapseTabsAndSpaces:vA,lineLimit:rA,blockEllipsis:iA}=ma(A,r,C),wA=Tl(t,p);i.insertChild(wA,i.getChildCount()),Fs(J)&&i.setFlexShrink(1);let aA=o.getEngine(M,k,r,C),MA=d?ge(sA,"grapheme").filter(V=>!Ol(V)&&!aA.has(V)):[];yield MA.map(V=>({word:V,locale:C})),MA.length&&(aA=o.getEngine(M,k,r,C));function kA(V){return!!(E&&Object.prototype.hasOwnProperty.call(E,V)&&E[V])}let{measureGrapheme:te,measureGraphemeArray:TA,measureText:xA}=pa(aA,kA,{fontSize:M,letterSpacing:F}),fA=Vr(v)?tA(v,M,1,r):te(dt)*v,q=(V,Z)=>{if(V.length===0)return{originWidth:0,endingSpacesWidth:0,text:V};let{index:nA,tabCount:$}=Pl(V),IA=0;if($>0){let DA=V.slice(0,nA),cA=V.slice(nA+$),gA=xA(DA),Ee=gA+Z;IA=(fA===0?gA:(Math.floor(Ee/fA)+$)*fA)+xA(cA)}else IA=xA(V);let lA=V.trimEnd()===V?IA:xA(V.trimEnd());return{originWidth:IA,endingSpacesWidth:IA-lA,text:V}},oA=[],BA=[],W=[],Y=[],OA=[];function PA(V){let Z=0,nA=0,$=-1,IA=0,lA=0,DA=0,cA=0;oA=[],W=[0],Y=[],OA=[];let gA=0,Ee=0;for(;gA<j.length&&Z<rA;){let eA=j[gA],JA=CA[gA],RA=0,{originWidth:It,endingSpacesWidth:GA,text:YA}=q(eA,lA);eA=YA,RA=It;let qA=GA;JA&&DA===0&&(DA=aA.height(eA));let Qe=p==="justify",pA=gA&&lA+RA>V+qA&&FA;if(dA&&RA>V&&(!lA||pA||JA)){let jA=ge(eA,"grapheme");j.splice(gA,1,...jA),lA>0&&(oA.push(lA-Ee),BA.push(cA),Z++,IA+=DA,lA=0,DA=0,cA=0,W.push(1),$=-1),Ee=qA;continue}if(JA||pA)vA&&eA===dt&&(RA=0),oA.push(lA-Ee),BA.push(cA),Z++,IA+=DA,lA=RA,DA=RA?Math.round(aA.height(eA)):0,cA=RA?Math.round(aA.baseline(eA)):0,W.push(1),$=-1,JA||(nA=Math.max(nA,V));else{lA+=RA;let jA=Math.round(aA.height(eA));jA>DA&&(DA=jA,cA=Math.round(aA.baseline(eA))),Qe&&W[W.length-1]++}Qe&&$++,nA=Math.max(nA,lA);let ZA=lA-RA;if(RA===0)OA.push({y:IA,x:ZA,width:0,line:Z,lineIndex:$,isImage:!1});else{let jA=ge(eA,"word");for(let Se=0;Se<jA.length;Se++){let be=jA[Se],$A=0,Ce=!1;kA(be)?($A=M,Ce=!0):!I&&be.length>1?$A=xA(be):$A=te(be),Y.push(be),OA.push({y:IA,x:ZA,width:$A,line:Z,lineIndex:$,isImage:Ce}),ZA+=$A}}gA++,Ee=qA}return lA&&(Z<rA&&(IA+=DA),Z++,oA.push(lA),BA.push(cA)),{width:nA,height:IA}}let WA={width:0,height:0};wA.setMeasureFunc(V=>{let{width:Z,height:nA}=PA(V);if(x==="balance"){let IA=Z/2,lA=Z,DA=Z;for(;IA+1<lA;){DA=(IA+lA)/2;let{height:gA}=PA(DA);gA>nA?IA=DA:lA=DA}PA(lA);let cA=Math.ceil(lA);return WA={width:cA,height:nA},{width:cA,height:nA}}if(x==="pretty"&&oA[oA.length-1]<Z/3){let DA=Z*.9,cA=PA(DA);if(cA.height<=nA*1.3)return WA={width:Z,height:cA.height},{width:Z,height:cA.height}}let $=Math.ceil(Z);return WA={width:$,height:nA},{width:$,height:nA}});let[uA,hA]=yield,Ie="",le="",LA=n._inheritedClipPathId,re=n._inheritedMaskId,{left:ce,top:ye,width:_e,height:Xe}=wA.getComputedLayout(),Ge=typeof y=="string"?tA(y,M,_e,r,!0)||0:y,Ue=i.getComputedWidth()-i.getComputedPadding(t.EDGE_LEFT)-i.getComputedPadding(t.EDGE_RIGHT)-i.getComputedBorder(t.EDGE_LEFT)-i.getComputedBorder(t.EDGE_RIGHT),we=uA+ce,fe=hA+ye,{matrix:se,opacity:Ve}=Ca({left:ce,top:ye,width:_e,height:Xe,isInheritingTransform:u},r),zA="";if(r.textShadowOffset){let{textShadowColor:V,textShadowOffset:Z,textShadowRadius:nA}=r;zA=da({width:WA.width,height:WA.height,id:a},{shadowColor:V,shadowOffset:Z,shadowRadius:nA},Bi(r.color)||O&&ya(r.color)),zA=H("defs",{},zA)}let ne="",ie="",Be="",De=-1,KA={},XA={},_A=null,oe=0;for(let V=0;V<Y.length;V++){let Z=OA[V],nA=OA[V+1];if(!Z)continue;let $=Y[V],IA=null,lA=!1,DA=E&&Object.prototype.hasOwnProperty.call(E,$)?E[$]:null,cA=Z.y,gA=Z.x,Ee=Z.width,eA=Z.line,JA=r.textDecorationLine==="underline"&&(r.textDecorationSkipInk||"auto")!=="none";if(eA===De)continue;let RA=!1;if(eA===0&&Ge!==0&&(gA+=Ge),oA.length>1){let pA=_e-oA[eA];if(p==="right"||p==="end")gA+=pA;else if(p==="center")gA+=pA/2;else if(p==="justify"&&eA<oA.length-1){let mA=W[eA],ZA=mA>1?pA/(mA-1):0;gA+=ZA*Z.lineIndex,RA=!0}I&&(gA=Math.round(gA))}let It=BA[eA],GA=aA.baseline($),YA=aA.height($),qA=It-GA,Qe=pA=>!JA||r.textDecorationLine!=="underline"?void 0:{underlineY:fe+pA+qA+GA+GA*.1,strokeWidth:Math.max(1,M*.1)};if(KA[eA]||(KA[eA]={left:gA,top:fe+cA+qA,ascender:GA,width:RA?_e:oA[eA]}),rA!==1/0){let be=function($A,Ce){let lt=ge(Ce,"grapheme",C),rt="",St=0;for(let bt of lt){let ct=$A+TA([rt+bt]);if(rt&&ct+mA>Ue)break;rt+=bt,St=ct}return{subset:rt,resolvedWidth:St}},pA=iA,mA=te(iA);mA>Ue&&(pA=Ht,mA=te(pA));let ZA=te(dt),jA=eA<oA.length-1;if(eA+1===rA&&(jA||oA[eA]>Ue)){if(gA+Ee+mA+ZA>Ue){let{subset:$A,resolvedWidth:Ce}=be(gA,$);$=$A+pA,De=eA,KA[eA].width=Math.max(0,Ce-KA[eA].left),lA=!0}else if(nA&&nA.line!==eA)if(p==="center"){let{subset:$A,resolvedWidth:Ce}=be(gA,$);$=$A+pA,De=eA,KA[eA].width=Math.max(0,Ce-KA[eA].left),lA=!0}else{let $A=Y[V+1],{subset:Ce,resolvedWidth:lt}=be(Ee+gA,$A);$=$+Ce+pA,De=eA,KA[eA].width=Math.max(0,lt-KA[eA].left),lA=!0}}}if(DA)cA+=0;else if(I){if(!$.includes(fi)&&!xs.includes($)&&Y[V+1]&&nA&&!nA.isImage&&cA===nA.y&&!lA){_A===null&&(oe=gA),_A=_A===null?$:_A+$;continue}let pA=_A===null?$:_A+$,mA=_A===null?gA:oe,ZA=Z.width+gA-mA,jA=Qe(cA),Se=aA.getSVG(pA.replace(/(\t)+/g,""),{fontSize:M,left:we+mA,top:fe+cA+GA+qA,letterSpacing:F},jA);IA=Se.path,JA&&Se.boxes&&Se.boxes.length&&(XA[eA]||(XA[eA]=[])).push(...Se.boxes),_A=null,l&&(Be+=H("rect",{x:we+mA,y:fe+cA+qA,width:ZA,height:YA,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:se||void 0,"clip-path":LA?`url(#${LA})`:void 0})+H("line",{x1:we+gA,x2:we+gA+Z.width,y1:fe+cA+qA+GA,y2:fe+cA+qA+GA,stroke:"#14c000","stroke-width":1,transform:se||void 0,"clip-path":LA?`url(#${LA})`:void 0}))}else if(cA+=GA+qA,JA&&!DA){let pA=Qe(cA),mA=aA.getSVG($.replace(/(\t)+/g,""),{fontSize:M,left:we+gA,top:fe+cA,letterSpacing:F},pA);mA.boxes&&mA.boxes.length&&(XA[eA]||(XA[eA]=[])).push(...mA.boxes)}if(IA!==null)ie+=IA+" ";else{let[pA,mA]=Ii({content:$,filter:zA,id:a,left:we+gA,top:fe+cA,width:Ee,height:YA,matrix:se,opacity:Ve,image:DA,clipPathId:LA,debug:l,shape:!!L},r);Ie+=pA,le+=mA}if(lA)break}if(r.textDecorationLine&&(ne=Object.entries(KA).map(([V,Z])=>{if(!Z)return"";let nA=XA[V]||[];return li({left:we+Z.left,top:Z.top,width:Z.width,ascender:Z.ascender,clipPathId:LA,matrix:se,glyphBoxes:nA},r)}).join("")),ie){let V=(!Bi(r.color)||zA)&&Ve!==0?`<g ${re?`mask="url(#${re})"`:""} ${LA?`clip-path="url(#${LA})"`:""}>`+H("path",{fill:zA&&(Bi(r.color)||O&&ya(r.color))?"black":r.color,d:ie,transform:se||void 0,opacity:Ve!==1?Ve:void 0,style:b?`filter:${b}`:void 0,"stroke-width":n.WebkitTextStrokeWidth?`${n.WebkitTextStrokeWidth}px`:void 0,stroke:n.WebkitTextStrokeWidth?n.WebkitTextStrokeColor:void 0,"stroke-linejoin":n.WebkitTextStrokeWidth?"round":void 0,"paint-order":n.WebkitTextStrokeWidth?"stroke":void 0})+"</g>":"";L&&(le=H("path",{d:ie,transform:se||void 0})),Ie+=(zA?zA+H("g",{filter:`url(#satori_s-${a})`},V+ne):V+ne)+Be}else ne&&(Ie+=zA?H("g",{filter:`url(#satori_s-${a})`},ne):ne);return le&&(r._inheritedBackgroundClipTextPath.value+=le),Ie}function Tl(A,e){let t=A.Node.create();return t.setAlignItems(A.ALIGN_BASELINE),t.setJustifyContent(ue(e,{left:A.JUSTIFY_FLEX_START,right:A.JUSTIFY_FLEX_END,center:A.JUSTIFY_CENTER,justify:A.JUSTIFY_SPACE_BETWEEN,start:A.JUSTIFY_FLEX_START,end:A.JUSTIFY_FLEX_END},A.JUSTIFY_FLEX_START,"textAlign")),t}function Pl(A){let e=/(\t)+/.exec(A);return e?{index:e.index,tabCount:e[0].length}:{index:null,tabCount:0}}var Da=require("css-gradient-parser");var wa=Je(require("parse-css-color"),1);function an(A,e,t,r,n){let i=[],o=e.at(-1),a=o&&o.offset&&o.offset.unit==="%"&&r?+o.offset.value:100;for(let E of e){let{color:C}=E;if(!i.length&&(i.push({offset:0,color:C}),!E.offset||E.offset.value==="0"))continue;let d=typeof E.offset>"u"?void 0:E.offset.unit==="%"?+E.offset.value/a:Number(tA(`${E.offset.value}${E.offset.unit}`,t.fontSize,A,t,!0))/A;i.push({offset:d,color:C})}i.length||i.push({offset:0,color:"transparent"});let u=i[i.length-1];u.offset!==1&&(typeof u.offset>"u"?u.offset=1:r?i[i.length-1]={offset:1,color:u.color}:i.push({offset:1,color:u.color}));let l=0,I=1;for(let E=0;E<i.length;E++)if(typeof i[E].offset>"u"){for(I<E&&(I=E);typeof i[I].offset>"u";)I++;i[E].offset=(i[I].offset-i[l].offset)/(I-l)*(E-l)+i[l].offset}else l=E;return n==="mask"?i.map(E=>{let C=(0,wa.default)(E.color);return C?C.alpha===0?{...E,color:"rgba(0, 0, 0, 1)"}:{...E,color:`rgba(255, 255, 255, ${C.alpha})`}:E}):i}function Sa({id:A,width:e,height:t,repeatX:r,repeatY:n},i,o,a,u,l){let I=(0,Da.parseLinearGradient)(i),[E,C]=o,d=i.startsWith("repeating"),p,y,k;if(I.orientation.type==="directional")p=Jl(I.orientation.value),y=Math.sqrt(Math.pow((p.x2-p.x1)*E,2)+Math.pow((p.y2-p.y1)*C,2));else if(I.orientation.type==="angular"){let{length:F,...L}=Wl(Jn(`${I.orientation.value.value}${I.orientation.value.unit}`)/180*Math.PI,E,C);y=F,p=L}k=d?Kl(I.stops,y,p,u):p;let x=an(d?_l(I.stops,y):y,I.stops,u,d,l),M=`satori_bi${A}`,b=`satori_pattern_${A}`,v=H("pattern",{id:b,x:a[0]/e,y:a[1]/t,width:r?E/e:"1",height:n?C/t:"1",patternUnits:"objectBoundingBox"},H("linearGradient",{id:M,...k,spreadMethod:d?"repeat":"pad"},x.map(F=>H("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+H("rect",{x:0,y:0,width:E,height:C,fill:`url(#${M})`}));return[b,v]}function _l(A,e){let t=A[A.length-1],{offset:r}=t;return r?r.unit==="%"?Number(r.value)/100*e:Number(r.value):e}function Jl(A){let e=0,t=0,r=0,n=0;return A.includes("top")?t=1:A.includes("bottom")&&(n=1),A.includes("left")?e=1:A.includes("right")&&(r=1),!e&&!r&&!t&&!n&&(t=1),{x1:e,y1:t,x2:r,y2:n}}function Wl(A,e,t){let r=Math.pow(t/e,2);A=(A%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let n,i,o,a,u,l,I,E,C=d=>{if(d===0){n=0,i=t,o=0,a=0,u=t;return}else if(d===Math.PI/2){n=0,i=0,o=e,a=0,u=e;return}if(d>0&&d<Math.PI/2){n=(r*e/2/Math.tan(d)-t/2)/(Math.tan(d)+r/Math.tan(d)),i=Math.tan(d)*n+t,o=Math.abs(e/2-n)+e/2,a=t/2-Math.abs(i-t/2),u=Math.sqrt(Math.pow(o-n,2)+Math.pow(a-i,2)),I=(e/2/Math.tan(d)-t/2)/(Math.tan(d)+1/Math.tan(d)),E=Math.tan(d)*I+t,u=2*Math.sqrt(Math.pow(e/2-I,2)+Math.pow(t/2-E,2));return}else if(d>Math.PI/2&&d<Math.PI){n=(t/2+r*e/2/Math.tan(d))/(Math.tan(d)+r/Math.tan(d)),i=Math.tan(d)*n,o=Math.abs(e/2-n)+e/2,a=t/2+Math.abs(i-t/2),I=(e/2/Math.tan(d)+t/2)/(Math.tan(d)+1/Math.tan(d)),E=Math.tan(d)*I,u=2*Math.sqrt(Math.pow(e/2-I,2)+Math.pow(t/2-E,2));return}else d>=Math.PI&&(C(d-Math.PI),l=n,n=o,o=l,l=i,i=a,a=l)};return C(A),{x1:n/e,y1:i/t,x2:o/e,y2:a/t,length:u}}function Kl(A,e,t,r){let{x1:n,x2:i,y1:o,y2:a}=t,u=A[0].offset?A[0].offset.unit==="%"?Number(A[0].offset.value)/100:tA(`${A[0].offset.value}${A[0].offset.unit}`,r.fontSize,e,r,!0)/e:0,l=A.at(-1).offset?A.at(-1).offset.unit==="%"?Number(A.at(-1).offset.value)/100:tA(`${A.at(-1).offset.value}${A.at(-1).offset.unit}`,r.fontSize,e,r,!0)/e:1,I=(i-n)*u+n,E=(a-o)*u+o,C=(i-n)*l+n,d=(a-o)*l+o;return{x1:I,y1:E,x2:C,y2:d}}var va=require("css-gradient-parser");function ka({id:A,width:e,height:t,repeatX:r,repeatY:n},i,o,a,u,l){var sA;let{shape:I,stops:E,position:C,size:d,repeating:p}=(0,va.parseRadialGradient)(i),[y,k]=o,x=y/2,M=k/2,b=ql(C.x,C.y,y,k,u.fontSize,u);x=b.x,M=b.y;let v=Yl(e,E,p,u),F=an(v,E,u,p,l),L=`satori_radial_${A}`,O=`satori_pattern_${A}`,J=`satori_mask_${A}`,j=Vl(I,d,u.fontSize,{x,y:M},[y,k],u,p),CA=Xl(I,u.fontSize,E,[y,k],u,p,j),FA=H("pattern",{id:O,x:a[0]/e,y:a[1]/t,width:r?y/e:"1",height:n?k/t:"1",patternUnits:"objectBoundingBox"},H("radialGradient",{id:L,...CA},F.map(vA=>H("stop",{offset:vA.offset||0,"stop-color":vA.color})).join(""))+H("mask",{id:J},H("rect",{x:0,y:0,width:y,height:k,fill:"#fff"}))+H("rect",{x:0,y:0,width:y,height:k,fill:((sA=F.at(-1))==null?void 0:sA.color)||"transparent"})+H(I,{cx:x,cy:M,width:y,height:k,...j,fill:`url(#${L})`,mask:`url(#${J})`}));return[O,FA]}function Yl(A,e,t,r){if(!t)return A;let n=e.at(-1);return!n||!n.offset||n.offset.unit==="%"?A:tA(`${n.offset.value}${n.offset.unit}`,+r.fontSize,A,r,!0)}function ql(A,e,t,r,n,i){let o={x:t/2,y:r/2};return A.type==="keyword"?Object.assign(o,ba(A.value,t,r,"x")):o.x=tA(`${A.value.value}${A.value.unit}`,n,t,i,!0)??t/2,e.type==="keyword"?Object.assign(o,ba(e.value,t,r,"y")):o.y=tA(`${e.value.value}${e.value.unit}`,n,r,i,!0)??r/2,o}function ba(A,e,t,r){switch(A){case"center":return{[r]:r==="x"?e/2:t/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:e};case"bottom":return{y:t}}}function Xl(A,e,t,[r,n],i,o,a){let{r:u,rx:l,ratio:I=1}=a;if(!o)return{spreadMethod:"pad"};let E=t.at(-1),C=A==="circle"?u*2:l*2;return{spreadMethod:"repeat",cx:"50%",cy:"50%",r:E.offset.unit==="%"?`${Number(E.offset.value)*Math.min(n/r,1)/I}%`:Number(tA(`${E.offset.value}${E.offset.unit}`,e,r,i,!0)/C)}}function Vl(A,e,t,r,n,i,o){let[a,u]=n,{x:l,y:I}=r,E={},C=0,d=0;if(zl(e)){if(e.some(p=>p.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 A==="circle"?Object.assign(E,{r:Number(tA(`${e[0].value.value}${e[0].value.unit}`,t,a,i,!0))}):Object.assign(E,{rx:Number(tA(`${e[0].value.value}${e[0].value.unit}`,t,a,i,!0)),ry:Number(tA(`${e[1].value.value}${e[1].value.unit}`,t,u,i,!0))}),gn(E,a,u,l,I,o,A),E}switch(e[0].value){case"farthest-corner":C=Math.max(Math.abs(a-l),Math.abs(l)),d=Math.max(Math.abs(u-I),Math.abs(I));break;case"closest-corner":C=Math.min(Math.abs(a-l),Math.abs(l)),d=Math.min(Math.abs(u-I),Math.abs(I));break;case"farthest-side":return A==="circle"?E.r=Math.max(Math.abs(a-l),Math.abs(l),Math.abs(u-I),Math.abs(I)):(E.rx=Math.max(Math.abs(a-l),Math.abs(l)),E.ry=Math.max(Math.abs(u-I),Math.abs(I))),gn(E,a,u,l,I,o,A),E;case"closest-side":return A==="circle"?E.r=Math.min(Math.abs(a-l),Math.abs(l),Math.abs(u-I),Math.abs(I)):(E.rx=Math.min(Math.abs(a-l),Math.abs(l)),E.ry=Math.min(Math.abs(u-I),Math.abs(I))),gn(E,a,u,l,I,o,A),E}return A==="circle"?E.r=Math.sqrt(C*C+d*d):Object.assign(E,xa(C,d)),gn(E,a,u,l,I,o,A),E}function gn(A,e,t,r,n,i,o){if(i)if(o==="ellipse"){let a=Math.max(Math.abs(e-r),Math.abs(r)),u=Math.max(Math.abs(t-n),Math.abs(n)),{rx:l,ry:I}=xa(a,u);A.ratio=Math.max(l/A.rx,I/A.ry),A.ratio>1&&(A.rx*=A.ratio,A.ry*=A.ratio)}else{let a=Math.max(Math.abs(e-r),Math.abs(r)),u=Math.max(Math.abs(t-n),Math.abs(n)),l=Math.sqrt(a*a+u*u);A.ratio=l/A.r,A.ratio>1&&(A.r=l)}}function xa(A,e){let t=e!==0?A/e:1;if(A===0)return{rx:0,ry:0};{let r=Math.sqrt(A*A+e*e*t*t)/t;return{ry:r,rx:r*t}}}function zl(A){return!A.some(e=>e.type==="keyword")}var di=Je(require("parse-css-color"),1);function hi(A,e){return typeof A=="string"&&A.endsWith("%")?e*parseFloat(A)/100:+A}function Zl(A,e,t,r,n){if(!r||!n)return[e,t];if(A==="cover"){let i=e/r,o=t/n,a=Math.max(i,o);return[r*a,n*a]}if(A==="contain"){let i=e/r,o=t/n,a=Math.min(i,o);return[r*a,n*a]}if(A==="auto"||A.includes("auto")){let i=A.split(" "),o=i[0]||"auto",a=i[1]||i[0]||"auto",u=r,l=n;if(o==="auto"&&a!=="auto"){let I=hi(a,t);l=I,u=r/n*I}else if(a==="auto"&&o!=="auto"){let I=hi(o,e);u=I,l=n/r*I}return[u,l]}return[e,t]}function Ci(A,{x:e,y:t,defaultX:r,defaultY:n}){return(A?A.split(" ").map(i=>{try{let o=new He(i);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(i=>i!==null):[r,n]).map((i,o)=>hi(i,[e,t][o]))}async function tr({id:A,width:e,height:t,left:r,top:n},{image:i,size:o,position:a,repeat:u},l,I){u=u||"repeat",I=I||"background";let E=u==="repeat-x"||u==="repeat",C=u==="repeat-y"||u==="repeat",d=o&&(o==="cover"||o==="contain"||o==="auto"||o.includes("auto")),p=i.startsWith("linear-gradient(")||i.startsWith("repeating-linear-gradient(")||i.startsWith("radial-gradient(")||i.startsWith("repeating-radial-gradient("),y=d&&p?[e,t]:d?[0,0]:Ci(o,{x:e,y:t,defaultX:e,defaultY:t}),k=Ci(a,{x:e,y:t,defaultX:0,defaultY:0});if(i.startsWith("linear-gradient(")||i.startsWith("repeating-linear-gradient("))return Sa({id:A,width:e,height:t,repeatX:E,repeatY:C},i,y,k,l,I);if(i.startsWith("radial-gradient(")||i.startsWith("repeating-radial-gradient("))return ka({id:A,width:e,height:t,repeatX:E,repeatY:C},i,y,k,l,I);if(i.startsWith("url(")){let[x,M,b]=await Ut(i.slice(4,-1)),v,F;if(d){let[L,O]=Zl(o,e,t,M,b);v=L,F=O}else{let L=Ci(o,{x:e,y:t,defaultX:0,defaultY:0});v=I==="mask"?M||L[0]:L[0]||M,F=I==="mask"?b||L[1]:L[1]||b}return[`satori_bi${A}`,H("pattern",{id:`satori_bi${A}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:k[0]+r,y:k[1]+n,width:E?v:"100%",height:C?F:"100%"},H("image",{x:0,y:0,width:v,height:F,preserveAspectRatio:"none",href:x}))]}if((0,di.default)(i)){let x=(0,di.default)(i),[M,b,v,F]=x.values,O=`rgba(${M},${b},${v},${F!==void 0?F:1})`;return[`satori_bi${A}`,H("pattern",{id:`satori_bi${A}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:r,y:n,width:e,height:t},H("rect",{x:0,y:0,width:e,height:t,fill:O}))]}throw new Error(`Invalid background image: "${i}"`)}function jl([A,e]){return Math.round(A*1e3)===0&&Math.round(e*1e3)===0?0:Math.round(A*e/Math.sqrt(A*A+e*e)*1e3)/1e3}function un(A,e,t){return t<A+e&&(t/2<A&&t/2<e?A=e=t/2:t/2<A?A=t-e:t/2<e&&(e=t-A)),[A,e]}function In(A){A[0]=A[1]=Math.min(A[0],A[1])}function ln(A,e,t,r,n){if(typeof A=="string"){let i=A.split(" ").map(a=>a.trim()),o=!i[1]&&!i[0].endsWith("%");return i[1]=i[1]||i[0],[o,[Math.min(tA(i[0],r,e,n,!0),e),Math.min(tA(i[1],r,t,n,!0),t)]]}return typeof A=="number"?[!0,[Math.min(A,e),Math.min(A,t)]]:[!0,void 0]}var cn=A=>A&&A[0]!==0&&A[1]!==0;function Ra({id:A,borderRadiusPath:e,borderType:t,left:r,top:n,width:i,height:o},a){let u=`satori_brc-${A}`;return[H("clipPath",{id:u},H(t,{x:r,y:n,width:i,height:o,d:e||void 0})),u]}function ot({left:A,top:e,width:t,height:r},n,i){let{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:u,borderBottomRightRadius:l,fontSize:I}=n,E,C,d,p;if([E,o]=ln(o,t,r,I,n),[C,a]=ln(a,t,r,I,n),[d,u]=ln(u,t,r,I,n),[p,l]=ln(l,t,r,I,n),!i&&!cn(o)&&!cn(a)&&!cn(u)&&!cn(l))return"";o||=[0,0],a||=[0,0],u||=[0,0],l||=[0,0],[o[0],a[0]]=un(o[0],a[0],t),[u[0],l[0]]=un(u[0],l[0],t),[o[1],u[1]]=un(o[1],u[1],r),[a[1],l[1]]=un(a[1],l[1],r),E&&In(o),C&&In(a),d&&In(u),p&&In(l);let y=[];y[0]=[a,a],y[1]=[l,[-l[0],l[1]]],y[2]=[u,[-u[0],-u[1]]],y[3]=[o,[o[0],-o[1]]];let k=`h${t-o[0]-a[0]} a${y[0][0]} 0 0 1 ${y[0][1]}`,x=`v${r-a[1]-l[1]} a${y[1][0]} 0 0 1 ${y[1][1]}`,M=`h${l[0]+u[0]-t} a${y[2][0]} 0 0 1 ${y[2][1]}`,b=`v${u[1]+o[1]-r} a${y[3][0]} 0 0 1 ${y[3][1]}`;if(i){let F=function(dA){let sA=jl([o,a,l,u][dA]);return dA===0?[[A+o[0]-sA,e+o[1]-sA],[A+o[0],e]]:dA===1?[[A+t-a[0]+sA,e+a[1]-sA],[A+t,e+a[1]]]:dA===2?[[A+t-l[0]+sA,e+r-l[1]+sA],[A+t-l[0],e+r]]:[[A+u[0]-sA,e+r-u[1]+sA],[A,e+r-u[1]]]},v=i.indexOf(!1);if(!i.includes(!0))throw new Error("Invalid `partialSides`.");if(v===-1)v=0;else for(;!i[v];)v=(v+1)%4;let L="",O=F(v),J=`M${O[0]} A${y[(v+3)%4][0]} 0 0 1 ${O[1]}`,j=0;for(;j<4&&i[(v+j)%4];j++)L+=J+" ",J=[k,x,M,b][(v+j)%4];let CA=(v+j)%4;L+=J.split(" ")[0];let FA=F(CA);return L+=` A${y[(CA+3)%4][0]} 0 0 1 ${FA[0]}`,L}return`M${A+o[0]},${e} ${k} ${x} ${M} ${b}`}function Na(A,e,t){return t[A+"Width"]===t[e+"Width"]&&t[A+"Style"]===t[e+"Style"]&&t[A+"Color"]===t[e+"Color"]}function Fa({id:A,currentClipPathId:e,borderPath:t,borderType:r,left:n,top:i,width:o,height:a},u){if(!(u.borderTopWidth||u.borderRightWidth||u.borderBottomWidth||u.borderLeftWidth))return null;let I=`satori_bc-${A}`;return[H("clipPath",{id:I,"clip-path":e?`url(#${e})`:void 0},H(r,{x:n,y:i,width:o,height:a,d:t||void 0})),I]}function rr({left:A,top:e,width:t,height:r,props:n,asContentMask:i,maskBorderOnly:o},a){let u=["borderTop","borderRight","borderBottom","borderLeft"];if(!i&&!u.some(d=>a[d+"Width"]))return"";let l="",I=0;for(;I>0&&Na(u[I],u[(I+3)%4],a);)I=(I+3)%4;let E=[!1,!1,!1,!1],C=[];for(let d=0;d<4;d++){let p=(I+d)%4,y=(I+d+1)%4,k=u[p],x=u[y];if(E[p]=!0,C=[a[k+"Width"],a[k+"Style"],a[k+"Color"],k],!Na(k,x,a)){let M=(C[0]||0)+(i&&!o&&a[k.replace("border","padding")]||0);M&&(l+=H("path",{width:t,height:r,...n,fill:"none",stroke:i?"#000":C[2],"stroke-width":M*2,"stroke-dasharray":!i&&C[1]==="dashed"?M*2+" "+M:void 0,d:ot({left:A,top:e,width:t,height:r},a,E)})),E=[!1,!1,!1,!1]}}if(E.some(Boolean)){let d=(C[0]||0)+(i&&!o&&a[C[3].replace("border","padding")]||0);d&&(l+=H("path",{width:t,height:r,...n,fill:"none",stroke:i?"#000":C[2],"stroke-width":d*2,"stroke-dasharray":!i&&C[1]==="dashed"?d*2+" "+d:void 0,d:ot({left:A,top:e,width:t,height:r},a,E)}))}return l}function pi({id:A,left:e,top:t,width:r,height:n,matrix:i,borderOnly:o},a){let u=(a.borderLeftWidth||0)+(o?0:a.paddingLeft||0),l=(a.borderTopWidth||0)+(o?0:a.paddingTop||0),I=(a.borderRightWidth||0)+(o?0:a.paddingRight||0),E=(a.borderBottomWidth||0)+(o?0:a.paddingBottom||0),C={x:e+u,y:t+l,width:r-u-I,height:n-l-E};return H("mask",{id:A},H("rect",{...C,fill:"#fff",transform:a.overflow==="hidden"&&a.transform&&i?i:void 0,mask:a._inheritedMaskId?`url(#${a._inheritedMaskId})`:void 0})+rr({left:e,top:t,width:r,height:n,props:{transform:i||void 0},asContentMask:!0,maskBorderOnly:o},a))}var mi=require("css-to-react-native"),nr={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Ga({width:A,height:e},t,r){function n(l){let I=l.match(nr.circle);if(!I)return null;let[,E]=I,[C,d=""]=E.split("at").map(k=>k.trim()),{x:p,y}=La(d,A,e);return{type:"circle",r:tA(C,r.fontSize,Math.sqrt(Math.pow(A,2)+Math.pow(e,2))/Math.sqrt(2),r,!0),cx:tA(p,r.fontSize,A,r,!0),cy:tA(y,r.fontSize,e,r,!0)}}function i(l){let I=l.match(nr.ellipse);if(!I)return null;let[,E]=I,[C,d=""]=E.split("at").map(M=>M.trim()),[p,y]=C.split(" "),{x:k,y:x}=La(d,A,e);return{type:"ellipse",rx:tA(p||"50%",r.fontSize,A,r,!0),ry:tA(y||"50%",r.fontSize,e,r,!0),cx:tA(k,r.fontSize,A,r,!0),cy:tA(x,r.fontSize,e,r,!0)}}function o(l){let I=l.match(nr.path);if(!I)return null;let[E,C]=Ma(I[1]);return{type:"path",d:C,"fill-rule":E}}function a(l){let I=l.match(nr.polygon);if(!I)return null;let[E,C]=Ma(I[1]);return{type:"polygon","fill-rule":E,points:C.split(",").map(d=>d.split(" ").map((p,y)=>tA(p,r.fontSize,y===0?A:e,r,!0)).join(" ")).join(",")}}function u(l){let I=l.match(nr.inset);if(!I)return null;let[E,C]=(I[1].includes("round")?I[1]:`${I[1].trim()} round 0`).split("round"),d=(0,mi.getStylesForProperty)("borderRadius",C,!0),p=Object.values(d).map(v=>String(v)).map((v,F)=>tA(v,r.fontSize,F===0||F===2?e:A,r,!0)||0),y=Object.values((0,mi.getStylesForProperty)("margin",E,!0)).map(v=>String(v)).map((v,F)=>tA(v,r.fontSize,F===0||F===2?e:A,r,!0)||0),k=y[3],x=y[0],M=A-(y[1]+y[3]),b=e-(y[0]+y[2]);return p.some(v=>v>0)?{type:"path",d:ot({left:k,top:x,width:M,height:b},{...t,...d})}:{type:"rect",x:k,y:x,width:M,height:b}}return{parseCircle:n,parseEllipse:i,parsePath:o,parsePolygon:a,parseInset:u}}function Ma(A){let[,e="nonzero",t]=A.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[e,t]}function La(A,e,t){let r=A.split(" "),n={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(i=>{i==="top"?n.y=0:i==="bottom"?n.y=t:i==="left"?n.x=0:i==="right"?n.x=e:i==="center"&&(n.x=e/2,n.y=t/2)}),n}function fn(A){return`satori_cp-${A}`}function Ua(A){return`url(#${fn(A)})`}function Ha(A,e,t){if(e.clipPath==="none")return"";let r=Ga(A,e,t),n=e.clipPath,i={type:""};for(let o of Object.keys(r))if(i=r[o](n),i)break;if(i){let{type:o,...a}=i;return H("clipPath",{id:fn(A.id),"clip-path":A.currentClipPath,transform:`translate(${A.left}, ${A.top})`},H(o,a))}return""}function yi({left:A,top:e,width:t,height:r,path:n,matrix:i,id:o,currentClipPath:a,src:u},l,I){let E="",C=l.clipPath&&l.clipPath!=="none"?Ha({left:A,top:e,width:t,height:r,path:n,id:o,matrix:i,currentClipPath:a,src:u},l,I):"";if(l.overflow!=="hidden"&&!u)E="";else{let p=C?`satori_ocp-${o}`:fn(o);E=H("clipPath",{id:p,"clip-path":a},H(n?"path":"rect",{x:A,y:e,width:t,height:r,d:n||void 0,transform:l.overflow==="hidden"&&l.transform&&i?i:void 0}))}let d=pi({id:`satori_om-${o}`,left:A,top:e,width:t,height:r,matrix:i,borderOnly:!u},l);return C+E+d}var $l=A=>`satori_mi-${A}`;async function wi(A,e,t){if(!e.maskImage)return["",""];let{left:r,top:n,width:i,height:o,id:a}=A,u=e.maskImage,l=u.length;if(!l)return["",""];let I=$l(a),E="";for(let C=0;C<l;C++){let d=u[C],[p,y]=await tr({id:`${I}-${C}`,left:r,top:n,width:i,height:o},d,t,"mask");E+=y+H("rect",{x:r,y:n,width:i,height:o,fill:`url(#${p})`})}return E=H("mask",{id:I},E),[I,E]}function Ac(A,e,t){let r=A.toLowerCase().trim().split(/\s+/),n=(u,l)=>({left:"0%",center:"50%",right:"100%",top:"0%",bottom:"100%"})[u]||u,i,o;if(r.length===1){let u=r[0];u==="left"||u==="center"||u==="right"?(i=n(u,"x"),o="50%"):u==="top"||u==="bottom"?(i="50%",o=n(u,"y")):(i=u,o="50%")}else{let u=r[0],l=r[1];u==="top"||u==="bottom"?(o=n(u,"y"),l==="left"||l==="right"||l==="center"?i=n(l,"x"):(i="50%",o=u==="top"||u==="bottom"?n(u,"y"):l)):(i=n(u,"x"),o=n(l,"y"))}let a=(u,l)=>{try{if(u.endsWith("%"))return l*parseFloat(u)/100;let I=new He(u);return I.type==="length"||I.type==="number"?I.value:0}catch{return 0}};return[a(i,e),a(o,t)]}async function ir({id:A,left:e,top:t,width:r,height:n,isInheritingTransform:i,src:o,debug:a},u,l){if(u.display==="none")return"";let I=!!o,E="rect",C="",d="",p=[],y=1,k="";u.backgroundColor&&p.push(u.backgroundColor),u.opacity!==void 0&&(y=+u.opacity),u.transform&&(C=er({left:e,top:t,width:r,height:n},u.transform,i,u.transformOrigin));let x="";if(u.backgroundImage){let rA=[];for(let iA=0;iA<u.backgroundImage.length;iA++){let wA=u.backgroundImage[iA],aA=await tr({id:A+"_"+iA,width:r,height:n,left:e,top:t},wA,l);aA&&rA.unshift(aA)}for(let iA of rA)p.push(`url(#${iA[0]})`),d+=iA[1],iA[2]&&(x+=iA[2])}let[M,b]=await wi({id:A,left:e,top:t,width:r,height:n},u,l);d+=b;let v=M?`url(#${M})`:u._inheritedMaskId?`url(#${u._inheritedMaskId})`:void 0,F=ot({left:e,top:t,width:r,height:n},u);F&&(E="path");let L=u._inheritedClipPathId;a&&(k=H("rect",{x:e,y:t,width:r,height:n,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:C||void 0,"clip-path":L?`url(#${L})`:void 0}));let{backgroundClip:O,filter:J}=u,j=O==="text"?`url(#satori_bct-${A})`:L?`url(#${L})`:u.clipPath?Ua(A):void 0,CA=yi({left:e,top:t,width:r,height:n,path:F,id:A,matrix:C,currentClipPath:j,src:o},u,l),FA=p.map(rA=>H(E,{x:e,y:t,width:r,height:n,fill:rA,d:F||void 0,transform:C||void 0,"clip-path":u.transform?void 0:j,style:J?`filter:${J}`:void 0,mask:u.transform?void 0:v})).join(""),dA=Fa({id:A,left:e,top:t,width:r,height:n,currentClipPathId:L,borderPath:F,borderType:E},u),sA;if(I){let rA=(u.borderLeftWidth||0)+(u.paddingLeft||0),iA=(u.borderTopWidth||0)+(u.paddingTop||0),wA=(u.borderRightWidth||0)+(u.paddingRight||0),aA=(u.borderBottomWidth||0)+(u.paddingBottom||0),MA=r-rA-wA,kA=n-iA-aA,te=(u.objectPosition||"center").toString(),[TA,xA]=Ac(te,MA,kA),fA=u.__naturalWidth||MA,q=u.__naturalHeight||kA,oA,BA=MA,W=kA,Y=e+rA,OA=t+iA;if(u.objectFit==="contain"){let PA=MA/fA,WA=kA/q,uA=Math.min(PA,WA);BA=fA*uA,W=q*uA,Y=e+rA+TA-BA*TA/MA,OA=t+iA+xA-W*xA/kA,oA="none"}else if(u.objectFit==="cover"){let PA=MA/fA,WA=kA/q,uA=Math.max(PA,WA);BA=fA*uA,W=q*uA,Y=e+rA+TA-BA*TA/MA,OA=t+iA+xA-W*xA/kA,oA="none"}else if(u.objectFit==="fill")oA="none";else if(u.objectFit==="scale-down")if(fA&&q){let PA=MA/fA,WA=kA/q,uA=Math.min(PA,WA);if(uA>=1)BA=fA,W=q,oA="none",Y=e+rA+TA-BA*TA/MA,OA=t+iA+xA-W*xA/kA;else{let hA=uA;BA=fA*hA,W=q*hA,Y=e+rA+TA-BA*TA/MA,OA=t+iA+xA-W*xA/kA,oA="none"}}else{let PA=MA/fA,WA=kA/q,uA=Math.min(PA,WA);BA=fA*uA,W=q*uA,Y=e+rA+TA-BA*TA/MA,OA=t+iA+xA-W*xA/kA,oA="none"}else oA="none";u.transform&&(sA=Ra({id:A,borderRadiusPath:F,borderType:E,left:e,top:t,width:r,height:n},u)),FA+=H("image",{x:Y,y:OA,width:BA,height:W,href:o,preserveAspectRatio:oA,transform:C||void 0,style:J?`filter:${J}`:void 0,"clip-path":u.transform?sA?`url(#${sA[1]})`:void 0:`url(#satori_cp-${A})`,mask:u.transform?void 0:M?`url(#${M})`:`url(#satori_om-${A})`})}if(dA){d+=dA[0];let rA=dA[1];FA+=rr({left:e,top:t,width:r,height:n,props:{transform:C||void 0,"clip-path":`url(#${rA})`}},u)}let vA=ha({width:r,height:n,id:A,opacity:y,shape:H(E,{x:e,y:t,width:r,height:n,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:C||void 0,"clip-path":j,mask:v})},u);return(d?H("defs",{},d):"")+(vA?vA[0]:"")+(sA?sA[0]:"")+CA+(y!==1?`<g opacity="${y}">`:"")+(u.transform&&(j||v)?`<g${j?` clip-path="${j}"`:""}${v?` mask="${v}"`:""}>`:"")+(x||FA)+(u.transform&&(j||v)?"</g>":"")+(y!==1?"</g>":"")+(vA?vA[1]:"")+k}var Ta=String.raw,Oa=Ta`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Pa=()=>new RegExp(Ta`\p{RI}{2}|(?)${Oa}(?:\u200D${Oa})*`,"gu");var ec=new RegExp(Pa(),"u"),Di={emoji:ec,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Si={"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},Bn=Object.keys({...Si,...Di});function _a(A){return Bn.includes(A)}function Ja(A,e){for(let r of Object.keys(Di))if(Di[r].test(A))return[r];let t=Object.keys(Si).filter(r=>Si[r].test(A));if(t.length===0)return["unknown"];if(e){let r=t.findIndex(n=>n===e);r!==-1&&(t.splice(r,1),t.unshift(e))}return t}function Wa(A){if(A)return Bn.find(e=>e.toLowerCase().startsWith(A.toLowerCase()))}async function*or(A,e){var fA;let t=await it(),{id:r,inheritedStyle:n,parent:i,font:o,debug:a,locale:u,embedFont:l=!0,graphemeImages:I,canLoadAdditionalAssets:E,getTwStyles:C}=e;if(A===null||typeof A>"u")return yield,yield,"";if(!Nt(A)||bs(A.type)){let q;if(!Nt(A))q=Qi(String(A),e),yield(await q.next()).value;else{if(Ss(A.type))throw new Error("Class component is not supported.");let BA;_n(A.type)?BA=A.type.render:BA=A.type,q=or(await BA(A.props),e),yield(await q.next()).value}await q.next();let oA=yield;return(await q.next(oA)).value}let{type:d,props:p}=A,y=d;if(p&&vs(p))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:k,children:x,tw:M,lang:b=u}=p||{},v=Wa(b);if(M){let q=C(M,k);k=Object.assign(q,k)}let F=t.Node.create();i.insertChild(F,i.getChildCount());let[L,O]=await gi(F,y,n,k,p),J=L.transform===n.transform;if(J||(L.transform.__parent=n.transform),(L.overflow==="hidden"||L.clipPath&&L.clipPath!=="none")&&(O._inheritedClipPathId=`satori_cp-${r}`,O._inheritedMaskId=`satori_om-${r}`),L.maskImage&&(O._inheritedMaskId=`satori_mi-${r}`),L.backgroundClip==="text"){let q={value:""};O._inheritedBackgroundClipTextPath=q,L._inheritedBackgroundClipTextPath=q,L.backgroundImage&&(O._inheritedBackgroundClipTextHasBackground="true",L._inheritedBackgroundClipTextHasBackground="true")}let j=ks(x),CA=[],FA=0,dA=[];for(let q of j){let oA=or(q,{id:r+"-"+FA++,parentStyle:L,inheritedStyle:O,isInheritingTransform:!0,parent:F,font:o,embedFont:l,debug:a,graphemeImages:I,canLoadAdditionalAssets:E,locale:v,getTwStyles:C,onNodeDetected:e.onNodeDetected});E?dA.push(...(await oA.next()).value||[]):await oA.next(),CA.push(oA)}yield dA;for(let q of CA)await q.next();let[sA,vA]=yield,{left:rA,top:iA,width:wA,height:aA}=F.getComputedLayout();rA+=sA,iA+=vA;let MA="",kA="",te="",{children:TA,...xA}=p;if((fA=e.onNodeDetected)==null||fA.call(e,{left:rA,top:iA,width:wA,height:aA,type:y,props:xA,key:A.key,textContent:Nt(TA)?void 0:TA}),y==="img"){let q=L.__src;kA=await ir({id:r,left:rA,top:iA,width:wA,height:aA,src:q,isInheritingTransform:J,debug:a},L,O)}else if(y==="svg"){let q=L.color,oA=await ra(A,q);kA=await ir({id:r,left:rA,top:iA,width:wA,height:aA,src:oA,isInheritingTransform:J,debug:a},L,O)}else{let q=k==null?void 0:k.display;if(y==="div"&&x&&typeof x!="string"&&q!=="flex"&&q!=="none"&&q!=="contents")throw new Error('Expected <div> to have explicit "display: flex", "display: contents", or "display: none" if it has more than one child node.');kA=await ir({id:r,left:rA,top:iA,width:wA,height:aA,isInheritingTransform:J,debug:a},L,O)}for(let q of CA)MA+=(await q.next([rA,iA])).value;return L._inheritedBackgroundClipTextPath&&(te+=H("clipPath",{id:`satori_bct-${r}`,"clip-path":L._inheritedClipPathId?`url(#${L._inheritedClipPathId})`:void 0},L._inheritedBackgroundClipTextPath.value)),te+kA+MA}var Ot=Je(require("@shuding/opentype.js"),1);var Ka="unknown";function tc(A){let e=[],t=[0,0],r=[0,0],n=(i,o)=>{let a=i[0];for(let u=1;u<=o;u++){let l=u/o,I=rc(i,l);e.push({from:a,to:I}),a=I}r=i[i.length-1]};for(let i of A){if(i.type==="M"){t=r=[i.x,i.y];continue}if(i.type==="L"){let o=[i.x,i.y];e.push({from:r,to:o}),r=o;continue}if(i.type==="Q"){n([r,[i.x1,i.y1],[i.x,i.y]],12);continue}if(i.type==="C"){n([r,[i.x1,i.y1],[i.x2,i.y2],[i.x,i.y]],16);continue}i.type==="Z"&&(e.push({from:r,to:t}),r=t)}return e}function rc(A,e){let t=A;for(;t.length>1;){let r=[];for(let n=0;n<t.length-1;n++)r.push([t[n][0]+(t[n+1][0]-t[n][0])*e,t[n][1]+(t[n+1][1]-t[n][1])*e]);t=r}return t[0]}function nc(A,e){if(!e)return[];let t=e.strokeWidth,r=e.underlineY-t*.25,n=e.underlineY+t*2.5,i=tc(A);if(!i.length)return[];let o=n-r,a=Math.max(12,Math.ceil(o/.25)),u=o/a,l=r+u/2,I=new Set;for(let b=0;b<a;b++){let v=l+u*b,F=[];for(let L of i){let[O,J]=L.from,[j,CA]=L.to;if(J===CA)continue;let FA=Math.min(J,CA),dA=Math.max(J,CA);if(v<FA||v>=dA)continue;let sA=(v-J)/(CA-J),vA=O+(j-O)*sA;F.push(vA)}if(F.length){F.sort((L,O)=>L-O);for(let L=0;L<F.length-1;L+=2){let O=Math.min(F[L],F[L+1]),J=Math.max(F[L],F[L+1]),j=Math.floor(O),CA=Math.ceil(J);for(let FA=j;FA<CA;FA++)I.add(FA)}}}if(!I.size)return[];let E=Array.from(I.values()).sort((b,v)=>b-v),C=[],d=E[0],p=E[0];for(let b=1;b<E.length;b++){let v=E[b];v>p+1&&(C.push([d,p+1]),d=v),p=v}C.push([d,p+1]);let y=[],k=t*.6,x=C[0][0],M=C[C.length-1][1];for(let[b,v]of C){let F=Math.min(b,x)-k,L=Math.max(v,M)+k;y.push({x1:F,x2:L,y1:r,y2:n})}return y}function ic(A,e,[t,r],[n,i]){if(t!==n)return t?!n||t===A?-1:n===A?1:A===400&&t===500||A===500&&t===400?-1:A===400&&n===500||A===500&&n===400?1:A<400?t<A&&n<A?n-t:t<A?-1:n<A?1:t-n:A<t&&A<n?t-n:A<t?-1:A<n?1:n-t:1;if(r!==i){if(r===e)return-1;if(i===e)return 1}return-1}var bi=new WeakMap,sr=class{constructor(e){this.fonts=new Map;this.addFonts(e)}get({name:e,weight:t,style:r}){if(!this.fonts.has(e))return null;t==="normal"&&(t=400),t==="bold"&&(t=700),typeof t=="string"&&(t=Number.parseInt(t,10));let n=[...this.fonts.get(e)],i=n[0];for(let o=1;o<n.length;o++){let[,a,u]=i,[,l,I]=n[o];ic(t,r,[a,u],[l,I])>0&&(i=n[o])}return i[0]}addFonts(e){for(let t of e){let{name:r,data:n,lang:i}=t;if(i&&!_a(i))throw new Error(`Invalid value for props \`lang\`: "${i}". The value must be one of the following: ${Bn.join(", ")}.`);let o=i??Ka,a;if(bi.has(n))a=bi.get(n);else{a=Ot.default.parse("buffer"in n?n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength):n,{lowMemory:!0});let l=a.charToGlyphIndex;a.charToGlyphIndex=I=>{let E=l.call(a,I);return E===0&&a._trackBrokenChars&&a._trackBrokenChars.push(I),E},bi.set(n,a)}this.defaultFont||(this.defaultFont=a);let u=`${r.toLowerCase()}_${o}`;this.fonts.has(u)||this.fonts.set(u,[]),this.fonts.get(u).push([a,t.weight,t.style])}}getEngine(e=16,t="normal",{fontFamily:r="sans-serif",fontWeight:n=400,fontStyle:i="normal"},o){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(b=>b.toLowerCase());let a=[];r.forEach(b=>{let v=this.get({name:b,weight:n,style:i});if(v){a.push(v);return}let F=this.get({name:b+"_unknown",weight:n,style:i});if(F){a.push(F);return}});let u=Array.from(this.fonts.keys()),l=[],I=[],E=[];for(let b of u)if(!r.includes(b))if(o){let v=oc(b);v?v===o?l.push(this.get({name:b,weight:n,style:i})):I.push(this.get({name:b,weight:n,style:i})):E.push(this.get({name:b,weight:n,style:i}))}else E.push(this.get({name:b,weight:n,style:i}));let C=new Map,d=(b,v=!0)=>{let F=[...a,...E,...l,...v?I:[]];if(typeof b>"u")return v?F[F.length-1]:void 0;let L=b.charCodeAt(0);if(C.has(L))return C.get(L);let O=F.find((J,j)=>!!J.charToGlyphIndex(b)||v&&j===F.length-1);return O&&C.set(L,O),O},p=(b,v=!1)=>{var L,O;return((v?(O=(L=b.tables)==null?void 0:L.os2)==null?void 0:O.sTypoAscender:0)||b.ascender)/b.unitsPerEm*e},y=(b,v=!1)=>{var L,O;return((v?(O=(L=b.tables)==null?void 0:L.os2)==null?void 0:O.sTypoDescender:0)||b.descender)/b.unitsPerEm*e},k=(b,v=!1)=>{var F,L;if(typeof t=="string"&&t==="normal"){let O=(v?(L=(F=b.tables)==null?void 0:F.os2)==null?void 0:L.sTypoLineGap:0)||0;return p(b,v)-y(b,v)+O/b.unitsPerEm*e}else if(typeof t=="number")return e*t},x=b=>d(b,!1);return{has:b=>{if(b===`
|
|
8
|
-
`)return!0;let v=x(b);return v?(v._trackBrokenChars=[],v.stringToGlyphs(b),v._trackBrokenChars.length?(v._trackBrokenChars=void 0,!1):!0):!1},baseline:(b,v=typeof b>"u"?a[0]:d(b))=>{let F=p(v),L=y(v),O=F-L;return F+(k(v)-O)/2},height:(b,v=typeof b>"u"?a[0]:d(b))=>k(v),measure:(b,v)=>this.measure(d,b,v),getSVG:(b,v,F)=>this.getSVG(d,b,v,F)}}patchFontFallbackResolver(e,t){let r=[];e._trackBrokenChars=r;let n=e.stringToGlyphs;return e.stringToGlyphs=(i,...o)=>{let a=n.call(e,i,...o);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let l=r.shift(),I=t(l);if(I!==e){let E=I.charToGlyph(l),C=e.unitsPerEm/I.unitsPerEm,d=new Ot.default.Path;d.unitsPerEm=e.unitsPerEm,d.commands=E.path.commands.map(y=>{let k={...y};for(let x in k)typeof k[x]=="number"&&(k[x]*=C);return k});let p=new Ot.default.Glyph({...E,advanceWidth:E.advanceWidth*C,xMin:E.xMin*C,xMax:E.xMax*C,yMin:E.yMin*C,yMax:E.yMax*C,path:d});a[u]=p}}return a},()=>{e.stringToGlyphs=n,e._trackBrokenChars=void 0}}measure(e,t,{fontSize:r,letterSpacing:n=0}){let i=e(t),o=this.patchFontFallbackResolver(i,e);try{return i.getAdvanceWidth(t,r,{letterSpacing:n/r})}finally{o()}}getSVG(e,t,{fontSize:r,top:n,left:i,letterSpacing:o=0},a){let u=e(t),l=this.patchFontFallbackResolver(u,e);try{if(r===0)return{path:"",boxes:[]};let I=new Ot.default.Path,E=[],C={letterSpacing:o/r},d=new WeakMap;return u.forEachGlyph(t.replace(/\n/g,""),i,n,r,C,function(p,y,k,x){let M;if(!d.has(p))M=p.getPath(y,k,x,C),d.set(p,[y,k,M]);else{let[v,F,L]=d.get(p);M=new Ot.default.Path,M.commands=L.commands.map(O=>{let J={...O};for(let j in J)typeof J[j]=="number"&&((j==="x"||j==="x1"||j==="x2")&&(J[j]+=y-v),(j==="y"||j==="y1"||j==="y2")&&(J[j]+=k-F));return J})}let b=a?nc(M.commands,a):[];b.length&&E.push(...b),I.extend(M)}),{path:I.toPathData(1),boxes:E}}finally{l()}}};function oc(A){let e=A.split("_"),t=e[e.length-1];return t===Ka?void 0:t}function vi({width:A,height:e,content:t}){return H("svg",{width:A,height:e,viewBox:`0 0 ${A} ${e}`,xmlns:"http://www.w3.org/2000/svg"},t)}var wI=Je(eI());var qC=["ios","android","windows","macos","web"];function rI(A){return qC.includes(A)}var XC=["portrait","landscape"];function nI(A){return XC.includes(A)}var tI;(function(A){A.fontSize="fontSize",A.lineHeight="lineHeight"})(tI||(tI={}));var QA;(function(A){A.rem="rem",A.em="em",A.px="px",A.percent="%",A.vw="vw",A.vh="vh",A.none="<no-css-unit>"})(QA||(QA={}));function es(A){return typeof A=="string"}function ts(A){return typeof A=="object"}var rs;function R(A){return{kind:"complete",style:A}}function VA(A,e={}){let{fractions:t}=e;if(t&&A.includes("/")){let[i="",o=""]=A.split("/",2),a=VA(i),u=VA(o);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(A);if(Number.isNaN(r))return null;let n=A.match(/(([a-z]{2,}|%))$/);if(!n)return[r,QA.none];switch(n==null?void 0:n[1]){case"rem":return[r,QA.rem];case"px":return[r,QA.px];case"em":return[r,QA.em];case"%":return[r,QA.percent];case"vw":return[r,QA.vw];case"vh":return[r,QA.vh];default:return null}}function tt(A,e,t={}){let r=Ye(e,t);return r===null?null:R({[A]:r})}function Fn(A,e,t){let r=Ye(e);return r!==null&&(t[A]=r),t}function oI(A,e){let t=Ye(e);return t===null?null:{[A]:t}}function Ye(A,e={}){if(A===void 0)return null;let t=VA(String(A),e);return t?ut(...t,e):null}function ut(A,e,t={}){let{isNegative:r,device:n}=t;switch(e){case QA.rem:return A*16*(r?-1:1);case QA.px:return A*(r?-1:1);case QA.percent:return`${r?"-":""}${A}%`;case QA.none:return A*(r?-1:1);case QA.vw:return n!=null&&n.windowDimensions?n.windowDimensions.width*(A/100):(me("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case QA.vh:return n!=null&&n.windowDimensions?n.windowDimensions.height*(A/100):(me("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ns(A){let e=VA(A);if(!e)return null;let[t,r]=e;switch(r){case QA.rem:return t*16;case QA.px:return t;default:return null}}var VC={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function is(A){return VC[A??""]||"All"}function os(A){let e="All";return[A.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,n)=>(e=is(n),"")),e]}function wt(A,e={}){if(A.includes("/")){let t=iI(A,{...e,fractions:!0});if(t)return t}return A[0]==="["&&(A=A.slice(1,-1)),iI(A,e)}function Le(A,e,t={}){let r=wt(e,t);return r===null?null:R({[A]:r})}function iI(A,e={}){if(A==="px")return 1;let t=VA(A,e);if(!t)return null;let[r,n]=t;return e.fractions&&(n=QA.percent,r*=100),n===QA.none&&(r=r/4,n=QA.rem),ut(r,n,e)}function zC(...A){console.warn(...A)}function ZC(...A){}var me=typeof process>"u"||((rs=process==null?void 0:process.env)===null||rs===void 0?void 0:rs.JEST_WORKER_ID)===void 0?zC:ZC;var jC=[["aspect-square",R({aspectRatio:1})],["aspect-video",R({aspectRatio:16/9})],["items-center",R({alignItems:"center"})],["items-start",R({alignItems:"flex-start"})],["items-end",R({alignItems:"flex-end"})],["items-baseline",R({alignItems:"baseline"})],["items-stretch",R({alignItems:"stretch"})],["justify-start",R({justifyContent:"flex-start"})],["justify-end",R({justifyContent:"flex-end"})],["justify-center",R({justifyContent:"center"})],["justify-between",R({justifyContent:"space-between"})],["justify-around",R({justifyContent:"space-around"})],["justify-evenly",R({justifyContent:"space-evenly"})],["content-start",R({alignContent:"flex-start"})],["content-end",R({alignContent:"flex-end"})],["content-between",R({alignContent:"space-between"})],["content-around",R({alignContent:"space-around"})],["content-stretch",R({alignContent:"stretch"})],["content-center",R({alignContent:"center"})],["self-auto",R({alignSelf:"auto"})],["self-start",R({alignSelf:"flex-start"})],["self-end",R({alignSelf:"flex-end"})],["self-center",R({alignSelf:"center"})],["self-stretch",R({alignSelf:"stretch"})],["self-baseline",R({alignSelf:"baseline"})],["direction-inherit",R({direction:"inherit"})],["direction-ltr",R({direction:"ltr"})],["direction-rtl",R({direction:"rtl"})],["hidden",R({display:"none"})],["flex",R({display:"flex"})],["flex-row",R({flexDirection:"row"})],["flex-row-reverse",R({flexDirection:"row-reverse"})],["flex-col",R({flexDirection:"column"})],["flex-col-reverse",R({flexDirection:"column-reverse"})],["flex-wrap",R({flexWrap:"wrap"})],["flex-wrap-reverse",R({flexWrap:"wrap-reverse"})],["flex-nowrap",R({flexWrap:"nowrap"})],["flex-auto",R({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",R({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",R({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",R({overflow:"hidden"})],["overflow-visible",R({overflow:"visible"})],["overflow-scroll",R({overflow:"scroll"})],["absolute",R({position:"absolute"})],["relative",R({position:"relative"})],["italic",R({fontStyle:"italic"})],["not-italic",R({fontStyle:"normal"})],["oldstyle-nums",Hr("oldstyle-nums")],["small-caps",Hr("small-caps")],["lining-nums",Hr("lining-nums")],["tabular-nums",Hr("tabular-nums")],["proportional-nums",Hr("proportional-nums")],["font-thin",R({fontWeight:"100"})],["font-100",R({fontWeight:"100"})],["font-extralight",R({fontWeight:"200"})],["font-200",R({fontWeight:"200"})],["font-light",R({fontWeight:"300"})],["font-300",R({fontWeight:"300"})],["font-normal",R({fontWeight:"normal"})],["font-400",R({fontWeight:"400"})],["font-medium",R({fontWeight:"500"})],["font-500",R({fontWeight:"500"})],["font-semibold",R({fontWeight:"600"})],["font-600",R({fontWeight:"600"})],["font-bold",R({fontWeight:"bold"})],["font-700",R({fontWeight:"700"})],["font-extrabold",R({fontWeight:"800"})],["font-800",R({fontWeight:"800"})],["font-black",R({fontWeight:"900"})],["font-900",R({fontWeight:"900"})],["include-font-padding",R({includeFontPadding:!0})],["remove-font-padding",R({includeFontPadding:!1})],["max-w-none",R({maxWidth:"99999%"})],["text-left",R({textAlign:"left"})],["text-center",R({textAlign:"center"})],["text-right",R({textAlign:"right"})],["text-justify",R({textAlign:"justify"})],["text-auto",R({textAlign:"auto"})],["underline",R({textDecorationLine:"underline"})],["line-through",R({textDecorationLine:"line-through"})],["no-underline",R({textDecorationLine:"none"})],["uppercase",R({textTransform:"uppercase"})],["lowercase",R({textTransform:"lowercase"})],["capitalize",R({textTransform:"capitalize"})],["normal-case",R({textTransform:"none"})],["w-auto",R({width:"auto"})],["h-auto",R({height:"auto"})],["shadow-sm",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",R({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ss=jC;function Hr(A){return{kind:"dependent",complete(e){(!e.fontVariant||!Array.isArray(e.fontVariant))&&(e.fontVariant=[]),e.fontVariant.push(A)}}}var Or=class{constructor(e){this.ir=new Map(ss),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ss,...e??[]])}getStyle(e){return this.styles.get(e)}setStyle(e,t){this.styles.set(e,t)}getIr(e){return this.ir.get(e)}setIr(e,t){this.ir.set(e,t)}getPrefixMatch(e){return this.prefixes.get(e)}setPrefixMatch(e,t){this.prefixes.set(e,t)}};function as(A,e,t={}){let r=e==null?void 0:e[A];if(!r)return Le("fontSize",A,t);if(typeof r=="string")return tt("fontSize",r);let n={},[i,o]=r,a=oI("fontSize",i);if(a&&(n=a),typeof o=="string")return R(Fn("lineHeight",sI(o,n),n));let{lineHeight:u,letterSpacing:l}=o;return u&&Fn("lineHeight",sI(u,n),n),l&&Fn("letterSpacing",l,n),R(n)}function sI(A,e){let t=VA(A);if(t){let[r,n]=t;if((n===QA.none||n===QA.em)&&typeof e.fontSize=="number")return e.fontSize*r}return A}function gs(A,e){var t;let r=(t=e==null?void 0:e[A])!==null&&t!==void 0?t:A.startsWith("[")?A.slice(1,-1):A,n=VA(r);if(!n)return null;let[i,o]=n;if(o===QA.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*i}};let a=ut(i,o);return a!==null?R({lineHeight:a}):null}function us(A,e,t,r,n){let i="";if(r[0]==="[")i=r.slice(1,-1);else{let l=n==null?void 0:n[r];if(l)i=l;else{let I=wt(r);return I&&typeof I=="number"?aI(I,QA.px,e,A):null}}if(i==="auto")return gI(e,A,"auto");let o=VA(i);if(!o)return null;let[a,u]=o;return t&&(a=-a),aI(a,u,e,A)}function aI(A,e,t,r){let n=ut(A,e);return n===null?null:gI(t,r,n)}function gI(A,e,t){switch(A){case"All":return{kind:"complete",style:{[`${e}Top`]:t,[`${e}Right`]:t,[`${e}Bottom`]:t,[`${e}Left`]:t}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${e}${A}`]:t}};case"Vertical":return{kind:"complete",style:{[`${e}Top`]:t,[`${e}Bottom`]:t}};case"Horizontal":return{kind:"complete",style:{[`${e}Left`]:t,[`${e}Right`]:t}};default:return null}}function Is(A){if(!A)return{};let e=Object.entries(A).reduce((n,[i,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?ns(u.min):0;l===null?me(`invalid screen config value: ${i}->min: ${u.min}`):a[0]=l;let I=u.max?ns(u.max):1/0;return I===null?me(`invalid screen config value: ${i}->max: ${u.max}`):a[1]=I,n[i]=a,n},{}),t=Object.values(e);t.sort((n,i)=>{let[o,a]=n,[u,l]=i;return a===1/0||l===1/0?o-u:a-l});let r=0;return t.forEach(n=>n[2]=r++),e}function ls(A,e){let t=e==null?void 0:e[A];if(!t)return null;if(typeof t=="string")return R({fontFamily:t});let r=t[0];return r?R({fontFamily:r}):null}function Dt(A,e,t){if(!t)return null;let r;e.includes("/")&&([e="",r]=e.split("/",2));let n="";if(e.startsWith("[#")||e.startsWith("[rgb")?n=e.slice(1,-1):n=lI(e,t),!n)return null;if(r){let i=Number(r);if(!Number.isNaN(i))return n=uI(n,i/100),R({[Mn[A].color]:n})}return{kind:"dependent",complete(i){let o=Mn[A].opacity,a=i[o];typeof a=="number"&&(n=uI(n,a)),i[Mn[A].color]=n}}}function Tr(A,e){let t=parseInt(e,10);if(Number.isNaN(t))return null;let r=t/100;return{kind:"complete",style:{[Mn[A].opacity]:r}}}function uI(A,e){return A.startsWith("#")?A=$C(A):A.startsWith("rgb(")&&(A=A.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),A.replace(/, ?\d*\.?(\d+)\)$/,`, ${e})`)}function II(A){for(let e in A)e.startsWith("__opacity_")&&delete A[e]}var Mn={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 $C(A){let e=A;A=A.replace(Ad,(o,a,u,l)=>a+a+u+u+l+l);let t=ed.exec(A);if(!t)return me(`invalid config hex color value: ${e}`),"rgba(0, 0, 0, 1)";let r=parseInt(t[1],16),n=parseInt(t[2],16),i=parseInt(t[3],16);return`rgba(${r}, ${n}, ${i}, 1)`}function lI(A,e){let t=e[A];if(es(t))return t;if(ts(t)&&es(t.DEFAULT))return t.DEFAULT;let[r="",...n]=A.split("-");for(;r!==A;){let i=e[r];if(ts(i))return lI(n.join("-"),i);if(n.length===0)return"";r=`${r}-${n.shift()}`}return""}var Ad=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ed=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function fI(A,e){let[t,r]=os(A);if(t.match(/^(-?(\d)+)?$/))return td(t,r,e==null?void 0:e.borderWidth);if(t=t.replace(/^-/,""),["dashed","solid","dotted"].includes(t))return R({borderStyle:t});let i="border";switch(r){case"Bottom":i="borderBottom";break;case"Top":i="borderTop";break;case"Left":i="borderLeft";break;case"Right":i="borderRight";break}let o=Dt(i,t,e==null?void 0:e.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;t=t.replace(/^-/,"");let u=t.slice(1,-1),l=Le(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function td(A,e,t){if(!t)return null;A=A.replace(/^-/,"");let n=t[A===""?"DEFAULT":A];if(n===void 0)return null;let i=`border${e==="All"?"":e}Width`;return tt(i,n)}function BI(A,e){if(!e)return null;let[t,r]=os(A);t=t.replace(/^-/,""),t===""&&(t="DEFAULT");let n=`border${r==="All"?"":r}Radius`,i=e[t];if(i)return cI(tt(n,i));let o=Le(n,t);return typeof(o==null?void 0:o.style[n])!="number"?null:cI(o)}function cI(A){if((A==null?void 0:A.kind)!=="complete")return A;let e=A.style.borderTopRadius;e!==void 0&&(A.style.borderTopLeftRadius=e,A.style.borderTopRightRadius=e,delete A.style.borderTopRadius);let t=A.style.borderBottomRadius;t!==void 0&&(A.style.borderBottomLeftRadius=t,A.style.borderBottomRightRadius=t,delete A.style.borderBottomRadius);let r=A.style.borderLeftRadius;r!==void 0&&(A.style.borderBottomLeftRadius=r,A.style.borderTopLeftRadius=r,delete A.style.borderLeftRadius);let n=A.style.borderRightRadius;return n!==void 0&&(A.style.borderBottomRightRadius=n,A.style.borderTopRightRadius=n,delete A.style.borderRightRadius),A}function Wt(A,e,t,r){let n=null;A==="inset"&&(e=e.replace(/^(x|y)-/,(a,u)=>(n=u==="x"?"x":"y","")));let i=r==null?void 0:r[e];if(i){let a=Ye(i,{isNegative:t});if(a!==null)return EI(A,n,a)}let o=wt(e,{isNegative:t});return o!==null?EI(A,n,o):null}function EI(A,e,t){if(A!=="inset")return R({[A]:t});switch(e){case null:return R({top:t,left:t,right:t,bottom:t});case"y":return R({top:t,bottom:t});case"x":return R({left:t,right:t})}}function Pr(A,e,t){var r;e=e.replace(/^-/,"");let n=e===""?"DEFAULT":e,i=Number((r=t==null?void 0:t[n])!==null&&r!==void 0?r:e);return Number.isNaN(i)?null:R({[`flex${A}`]:i})}function QI(A,e){var t,r;if(A=(e==null?void 0:e[A])||A,["min-content","revert","unset"].includes(A))return null;if(A.match(/^\d+(\.\d+)?$/))return R({flexGrow:Number(A),flexBasis:"0%"});let n=A.match(/^(\d+)\s+(\d+)$/);if(n)return R({flexGrow:Number(n[1]),flexShrink:Number(n[2])});if(n=A.match(/^(\d+)\s+([^ ]+)$/),n){let i=Ye((t=n[2])!==null&&t!==void 0?t:"");return i?R({flexGrow:Number(n[1]),flexBasis:i}):null}if(n=A.match(/^(\d+)\s+(\d+)\s+(.+)$/),n){let i=Ye((r=n[3])!==null&&r!==void 0?r:"");return i?R({flexGrow:Number(n[1]),flexShrink:Number(n[2]),flexBasis:i}):null}return null}function cs(A,e,t={},r){let n=r==null?void 0:r[e];return n!==void 0?tt(A,n,t):Le(A,e,t)}function _r(A,e,t={},r){let n=Ye(r==null?void 0:r[e],t);return n?R({[A]:n}):(e==="screen"&&(e=A.includes("Width")?"100vw":"100vh"),Le(A,e,t))}function CI(A,e,t){let r=t==null?void 0:t[A];if(r){let n=VA(r,{isNegative:e});if(!n)return null;let[i,o]=n;if(o===QA.em)return rd(i);if(o===QA.percent)return me("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=ut(i,o,{isNegative:e});return a!==null?R({letterSpacing:a}):null}return Le("letterSpacing",A,{isNegative:e})}function rd(A){return{kind:"dependent",complete(e){let t=e.fontSize;if(typeof t!="number"||Number.isNaN(t))return"tracking-X relative letter spacing classes require font-size to be set";e.letterSpacing=Math.round((A*t+Number.EPSILON)*100)/100}}}function dI(A,e){let t=e==null?void 0:e[A];if(t){let n=VA(String(t));if(n)return R({opacity:n[0]})}let r=VA(A);return r?R({opacity:r[0]/100}):null}function hI(A){let e=parseInt(A,10);return Number.isNaN(e)?null:{kind:"complete",style:{shadowOpacity:e/100}}}function pI(A){if(A.includes("/")){let[t="",r=""]=A.split("/",2),n=fs(t),i=fs(r);return n===null||i===null?null:{kind:"complete",style:{shadowOffset:{width:n,height:i}}}}let e=fs(A);return e===null?null:{kind:"complete",style:{shadowOffset:{width:e,height:e}}}}function fs(A){let e=wt(A);return typeof e=="number"?e:null}var Kt=class{constructor(e,t={},r,n,i){var o,a,u,l,I,E;this.config=t,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=n;let C=e.trim().split(":"),d=[];C.length===1?this.string=e:(this.string=(o=C.pop())!==null&&o!==void 0?o:"",d=C),this.char=this.string[0];let p=Is((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of d)if(p[y]){let k=(u=p[y])===null||u===void 0?void 0:u[2];k!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+k);let x=(I=n.windowDimensions)===null||I===void 0?void 0:I.width;if(x){let[M,b]=(E=p[y])!==null&&E!==void 0?E:[0,0];(x<=M||x>b)&&(this.isNull=!0)}else this.isNull=!0}else rI(y)?this.isNull=y!==i:nI(y)?n.windowDimensions?(n.windowDimensions.width>n.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?n.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?n.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let e=this.cache.getIr(this.rest);if(e)return e;this.parseIsNegative();let t=this.parseUtility();return t?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:t}:t:{kind:"null"}}parseUtility(){var e,t,r,n,i;let o=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let l=this.char==="m"?"margin":"padding";this.advance(((t=(e=u[0])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+1);let I=is(u[1]),E=us(l,I,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(E)return E}}}if(this.consumePeeked("h-")&&(a=cs("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=cs("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=_r("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=_r("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=_r("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=_r("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=gs(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=as(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=Dt("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=Tr("text",this.rest),a))||this.consumePeeked("font-")&&(a=ls(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&me("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=tt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=Dt("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=Dt("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Tr("bg",this.rest),a))||this.consumePeeked("border")&&(a=fI(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=Tr("border",this.rest),a))||this.consumePeeked("rounded")&&(a=BI(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Wt("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=Wt("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=Wt("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=Wt("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=Wt("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Pr("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=Pr("Shrink",this.rest,o==null?void 0:o.flexShrink):a=QI(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=Pr("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=Pr("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Tr("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=hI(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=pI(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=Le("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=Dt("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return R({elevation:u})}if(this.consumePeeked("opacity-")&&(a=dI(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=CI(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((i=(n=o==null?void 0:o.zIndex)===null||n===void 0?void 0:n[this.rest])!==null&&i!==void 0?i:this.rest);if(!Number.isNaN(u))return R({zIndex:u})}return me(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(e){var t;if(e[0]!=="m")return!1;let r=e.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((t=this.context.device)===null||t===void 0)&&t.windowDimensions))return this.isNull=!0,!0;let n=this.context.device.windowDimensions,[,i="",o="",a=""]=r,u=o==="w"?n.width:n.height,l=VA(a,this.context);if(l===null)return this.isNull=!0,!0;let[I,E]=l;return E!=="px"&&(this.isNull=!0),(i==="min"?u>=I:u<=I)?this.incrementOrder():this.isNull=!0,!0}advance(e=1){this.position+=e,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(e,t){return this.string.slice(this.position+e,this.position+t)}consumePeeked(e){return this.peekSlice(0,e.length)===e?(this.advance(e.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var e;this.order=((e=this.order)!==null&&e!==void 0?e:0)+1}};function mI(A){let e=[],t=null;return A.forEach(r=>{if(typeof r=="string")e=[...e,...Bs(r)];else if(Array.isArray(r))e=[...e,...r.flatMap(Bs)];else if(typeof r=="object"&&r!==null)for(let[n,i]of Object.entries(r))typeof i=="boolean"?e=[...e,...i?Bs(n):[]]:t?t[n]=i:t={[n]:i}}),[e.filter(Boolean).filter(nd),t]}function Bs(A){return A.trim().split(/\s+/)}function nd(A,e,t){return t.indexOf(A)===e}function yI(A){var e;return(e=A==null?void 0:A.reduce((t,r)=>({...t,...id(r.handler)}),{}))!==null&&e!==void 0?e:{}}function id(A){let e={};return A({addUtilities:t=>{e=t},...od}),e}function qe(A){throw new Error(`tailwindcss plugin function argument object prop "${A}" not implemented`)}var od={addComponents:qe,addBase:qe,addVariant:qe,e:qe,prefix:qe,theme:qe,variants:qe,config:qe,corePlugins:qe,matchUtilities:qe,postcss:null};function DI(A,e){let t=(0,wI.default)(sd(A)),r={},n=yI(t.plugins),i={},o=Object.entries(n).map(([p,y])=>typeof y=="string"?(i[p]=y,[p,{kind:"null"}]):[p,R(y)]).filter(([,p])=>p.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function I(){let p=l[u];if(p)return p;let y=new Or(o);return l[u]=y,y}function E(...p){let y=I(),k={},x=[],M=[],[b,v]=mI(p),F=b.join(" "),L=y.getStyle(F);if(L)return{...L,...v||{}};for(let O of b){let J=y.getIr(O);if(!J&&O in i){let CA=E(i[O]);y.setIr(O,R(CA)),k={...k,...CA};continue}switch(J=new Kt(O,t,y,r,e).parse(),J.kind){case"complete":k={...k,...J.style},y.setIr(O,J);break;case"dependent":x.push(J);break;case"ordered":M.push(J);break;case"null":y.setIr(O,J);break}}if(M.length>0){M.sort((O,J)=>O.order-J.order);for(let O of M)switch(O.styleIr.kind){case"complete":k={...k,...O.styleIr.style};break;case"dependent":x.push(O.styleIr);break}}if(x.length>0){for(let O of x){let J=O.complete(k);J&&me(J)}II(k)}return F!==""&&y.setStyle(F,k),v&&(k={...k,...v}),k}function C(p){let y=E(p.split(/\s+/g).map(k=>k.replace(/^(bg|text|border)-/,"")).map(k=>`bg-${k}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let d=(p,...y)=>{let k="";return p.forEach((x,M)=>{var b;k+=x+((b=y[M])!==null&&b!==void 0?b:"")}),E(k)};return d.style=E,d.color=C,d.prefixMatch=(...p)=>{let y=p.sort().join(":"),k=I(),x=k.getPrefixMatch(y);if(x!==void 0)return x;let v=new Kt(`${y}:flex`,t,k,r,e).parse().kind!=="null";return k.setPrefixMatch(y,v),v},d.setWindowDimensions=p=>{r.windowDimensions=p,u=a()},d.setFontScale=p=>{r.fontScale=p,u=a()},d.setPixelDensity=p=>{r.pixelDensity=p,u=a()},d.setColorScheme=p=>{r.colorScheme=p,u=a()},d}function sd(A){return{...A,content:["_no_warnings_please"]}}var gd={handler:({addUtilities:A})=>{A({"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 ud(A){return DI({...A,plugins:[...(A==null?void 0:A.plugins)??[],gd]},"web")}var Ln;function Es({width:A,height:e,config:t}){return Ln||(Ln=ud(t)),Ln.setWindowDimensions({width:+A,height:+e}),Ln}var Qs=new WeakMap;async function Cs(A,e){let t=await it();if(!t||!t.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+t);e.fonts=e.fonts||[];let r;Qs.has(e.fonts)?r=Qs.get(e.fonts):Qs.set(e.fonts,r=new sr(e.fonts));let n="width"in e?e.width:void 0,i="height"in e?e.height:void 0,o=Id(t,e.pointScaleFactor);n&&o.setWidth(n),i&&o.setHeight(i),o.setFlexDirection(t.FLEX_DIRECTION_ROW),o.setFlexWrap(t.WRAP_WRAP),o.setAlignContent(t.ALIGN_AUTO),o.setAlignItems(t.ALIGN_FLEX_START),o.setJustifyContent(t.JUSTIFY_FLEX_START),o.setOverflow(t.OVERFLOW_HIDDEN);let a={...e.graphemeImages},u=new Set;We.clear(),Zt.clear(),await ta(A);let l=or(A,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:n,_viewportHeight:i},parent:o,font:r,embedFont:e.embedFont,debug:e.debug,graphemeImages:a,canLoadAdditionalAssets:!!e.loadAdditionalAsset,onNodeDetected:e.onNodeDetected,getTwStyles:(p,y)=>{let x={...Es({width:n,height:i,config:e.tailwindConfig})([p])};return typeof x.lineHeight=="number"&&(x.lineHeight=x.lineHeight/(+x.fontSize||y.fontSize||16)),x.shadowColor&&x.boxShadow&&(x.boxShadow=x.boxShadow.replace(/rgba?\([^)]+\)/,x.shadowColor)),x}}),I=(await l.next()).value;if(e.loadAdditionalAsset&&I.length){let p=ld(I),y=[],k={};await Promise.all(Object.entries(p).flatMap(([x,M])=>M.map(b=>{let v=`${x}_${b}`;return u.has(v)?null:(u.add(v),e.loadAdditionalAsset(x,b).then(F=>{typeof F=="string"?k[b]=F:F&&(Array.isArray(F)?y.push(...F):y.push(F))}))}))),r.addFonts(y),Object.assign(a,k)}await l.next(),o.calculateLayout(n,i,t.DIRECTION_LTR);let E=(await l.next([0,0])).value,C=o.getComputedWidth(),d=o.getComputedHeight();return o.freeRecursive(),vi({width:C,height:d,content:E})}function Id(A,e){if(e){let t=A.Config.create();return t.setPointScaleFactor(e),A.Node.createWithConfig(t)}else return A.Node.create()}function ld(A){let e={},t={};for(let{word:r,locale:n}of A){let i=Ja(r,n).join("|");t[i]=t[i]||"",t[i]+=r}return Object.keys(t).forEach(r=>{e[r]=e[r]||[],r==="emoji"?e[r].push(...SI(ge(t[r],"grapheme"))):(e[r][0]=e[r][0]||"",e[r][0]+=SI(ge(t[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),e}function SI(A){return Array.from(new Set(A))}0&&(module.exports={init});
|
|
8
|
+
`)return!0;let v=x(b);return v?(v._trackBrokenChars=[],v.stringToGlyphs(b),v._trackBrokenChars.length?(v._trackBrokenChars=void 0,!1):!0):!1},baseline:(b,v=typeof b>"u"?a[0]:d(b))=>{let F=p(v),L=y(v),O=F-L;return F+(k(v)-O)/2},height:(b,v=typeof b>"u"?a[0]:d(b))=>k(v),measure:(b,v)=>this.measure(d,b,v),getSVG:(b,v,F)=>this.getSVG(d,b,v,F)}}patchFontFallbackResolver(e,t){let r=[];e._trackBrokenChars=r;let n=e.stringToGlyphs;return e.stringToGlyphs=(i,...o)=>{let a=n.call(e,i,...o);for(let u=0;u<a.length;u++)if(a[u].unicode===void 0){let l=r.shift(),I=t(l);if(I!==e){let E=I.charToGlyph(l),C=e.unitsPerEm/I.unitsPerEm,d=new Ot.default.Path;d.unitsPerEm=e.unitsPerEm,d.commands=E.path.commands.map(y=>{let k={...y};for(let x in k)typeof k[x]=="number"&&(k[x]*=C);return k});let p=new Ot.default.Glyph({...E,advanceWidth:E.advanceWidth*C,xMin:E.xMin*C,xMax:E.xMax*C,yMin:E.yMin*C,yMax:E.yMax*C,path:d});a[u]=p}}return a},()=>{e.stringToGlyphs=n,e._trackBrokenChars=void 0}}measure(e,t,{fontSize:r,letterSpacing:n=0}){let i=e(t),o=this.patchFontFallbackResolver(i,e);try{return i.getAdvanceWidth(t,r,{letterSpacing:n/r})}finally{o()}}getSVG(e,t,{fontSize:r,top:n,left:i,letterSpacing:o=0},a){let u=e(t),l=this.patchFontFallbackResolver(u,e);try{if(r===0)return{path:"",boxes:[]};let I=new Ot.default.Path,E=[],C={letterSpacing:o/r},d=new WeakMap;return u.forEachGlyph(t.replace(/\n/g,""),i,n,r,C,function(p,y,k,x){let M;if(!d.has(p))M=p.getPath(y,k,x,C),d.set(p,[y,k,M]);else{let[v,F,L]=d.get(p);M=new Ot.default.Path,M.commands=L.commands.map(O=>{let J={...O};for(let j in J)typeof J[j]=="number"&&((j==="x"||j==="x1"||j==="x2")&&(J[j]+=y-v),(j==="y"||j==="y1"||j==="y2")&&(J[j]+=k-F));return J})}let b=a?nc(M.commands,a):[];b.length&&E.push(...b),I.extend(M)}),{path:I.toPathData(1),boxes:E}}finally{l()}}};function oc(A){let e=A.split("_"),t=e[e.length-1];return t===Ka?void 0:t}function vi({width:A,height:e,content:t}){return H("svg",{width:A,height:e,viewBox:`0 0 ${A} ${e}`,xmlns:"http://www.w3.org/2000/svg"},t)}var wI=Je(eI());var qC=["ios","android","windows","macos","web"];function rI(A){return qC.includes(A)}var XC=["portrait","landscape"];function nI(A){return XC.includes(A)}var tI;(function(A){A.fontSize="fontSize",A.lineHeight="lineHeight"})(tI||(tI={}));var QA;(function(A){A.rem="rem",A.em="em",A.px="px",A.percent="%",A.vw="vw",A.vh="vh",A.none="<no-css-unit>"})(QA||(QA={}));function es(A){return typeof A=="string"}function ts(A){return typeof A=="object"}var rs;function R(A){return{kind:"complete",style:A}}function VA(A,e={}){let{fractions:t}=e;if(t&&A.includes("/")){let[i="",o=""]=A.split("/",2),a=VA(i),u=VA(o);return!a||!u?null:[a[0]/u[0],u[1]]}let r=parseFloat(A);if(Number.isNaN(r))return null;let n=A.match(/(([a-z]{2,}|%))$/);if(!n)return[r,QA.none];switch(n==null?void 0:n[1]){case"rem":return[r,QA.rem];case"px":return[r,QA.px];case"em":return[r,QA.em];case"%":return[r,QA.percent];case"vw":return[r,QA.vw];case"vh":return[r,QA.vh];default:return null}}function tt(A,e,t={}){let r=Ye(e,t);return r===null?null:R({[A]:r})}function Fn(A,e,t){let r=Ye(e);return r!==null&&(t[A]=r),t}function oI(A,e){let t=Ye(e);return t===null?null:{[A]:t}}function Ye(A,e={}){if(A===void 0)return null;let t=VA(String(A),e);return t?ut(...t,e):null}function ut(A,e,t={}){let{isNegative:r,device:n}=t;switch(e){case QA.rem:return A*16*(r?-1:1);case QA.px:return A*(r?-1:1);case QA.percent:return`${r?"-":""}${A}%`;case QA.none:return A*(r?-1:1);case QA.vw:return n!=null&&n.windowDimensions?n.windowDimensions.width*(A/100):(me("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case QA.vh:return n!=null&&n.windowDimensions?n.windowDimensions.height*(A/100):(me("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function ns(A){let e=VA(A);if(!e)return null;let[t,r]=e;switch(r){case QA.rem:return t*16;case QA.px:return t;default:return null}}var VC={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function is(A){return VC[A??""]||"All"}function os(A){let e="All";return[A.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,n)=>(e=is(n),"")),e]}function wt(A,e={}){if(A.includes("/")){let t=iI(A,{...e,fractions:!0});if(t)return t}return A[0]==="["&&(A=A.slice(1,-1)),iI(A,e)}function Le(A,e,t={}){let r=wt(e,t);return r===null?null:R({[A]:r})}function iI(A,e={}){if(A==="px")return 1;let t=VA(A,e);if(!t)return null;let[r,n]=t;return e.fractions&&(n=QA.percent,r*=100),n===QA.none&&(r=r/4,n=QA.rem),ut(r,n,e)}function zC(...A){console.warn(...A)}function ZC(...A){}var me=typeof process>"u"||((rs=process==null?void 0:process.env)===null||rs===void 0?void 0:rs.JEST_WORKER_ID)===void 0?zC:ZC;var jC=[["aspect-square",R({aspectRatio:1})],["aspect-video",R({aspectRatio:16/9})],["items-center",R({alignItems:"center"})],["items-start",R({alignItems:"flex-start"})],["items-end",R({alignItems:"flex-end"})],["items-baseline",R({alignItems:"baseline"})],["items-stretch",R({alignItems:"stretch"})],["justify-start",R({justifyContent:"flex-start"})],["justify-end",R({justifyContent:"flex-end"})],["justify-center",R({justifyContent:"center"})],["justify-between",R({justifyContent:"space-between"})],["justify-around",R({justifyContent:"space-around"})],["justify-evenly",R({justifyContent:"space-evenly"})],["content-start",R({alignContent:"flex-start"})],["content-end",R({alignContent:"flex-end"})],["content-between",R({alignContent:"space-between"})],["content-around",R({alignContent:"space-around"})],["content-stretch",R({alignContent:"stretch"})],["content-center",R({alignContent:"center"})],["self-auto",R({alignSelf:"auto"})],["self-start",R({alignSelf:"flex-start"})],["self-end",R({alignSelf:"flex-end"})],["self-center",R({alignSelf:"center"})],["self-stretch",R({alignSelf:"stretch"})],["self-baseline",R({alignSelf:"baseline"})],["direction-inherit",R({direction:"inherit"})],["direction-ltr",R({direction:"ltr"})],["direction-rtl",R({direction:"rtl"})],["hidden",R({display:"none"})],["flex",R({display:"flex"})],["flex-row",R({flexDirection:"row"})],["flex-row-reverse",R({flexDirection:"row-reverse"})],["flex-col",R({flexDirection:"column"})],["flex-col-reverse",R({flexDirection:"column-reverse"})],["flex-wrap",R({flexWrap:"wrap"})],["flex-wrap-reverse",R({flexWrap:"wrap-reverse"})],["flex-nowrap",R({flexWrap:"nowrap"})],["flex-auto",R({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",R({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",R({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",R({overflow:"hidden"})],["overflow-visible",R({overflow:"visible"})],["overflow-scroll",R({overflow:"scroll"})],["absolute",R({position:"absolute"})],["relative",R({position:"relative"})],["italic",R({fontStyle:"italic"})],["not-italic",R({fontStyle:"normal"})],["oldstyle-nums",Hr("oldstyle-nums")],["small-caps",Hr("small-caps")],["lining-nums",Hr("lining-nums")],["tabular-nums",Hr("tabular-nums")],["proportional-nums",Hr("proportional-nums")],["font-thin",R({fontWeight:"100"})],["font-100",R({fontWeight:"100"})],["font-extralight",R({fontWeight:"200"})],["font-200",R({fontWeight:"200"})],["font-light",R({fontWeight:"300"})],["font-300",R({fontWeight:"300"})],["font-normal",R({fontWeight:"normal"})],["font-400",R({fontWeight:"400"})],["font-medium",R({fontWeight:"500"})],["font-500",R({fontWeight:"500"})],["font-semibold",R({fontWeight:"600"})],["font-600",R({fontWeight:"600"})],["font-bold",R({fontWeight:"bold"})],["font-700",R({fontWeight:"700"})],["font-extrabold",R({fontWeight:"800"})],["font-800",R({fontWeight:"800"})],["font-black",R({fontWeight:"900"})],["font-900",R({fontWeight:"900"})],["include-font-padding",R({includeFontPadding:!0})],["remove-font-padding",R({includeFontPadding:!1})],["max-w-none",R({maxWidth:"99999%"})],["text-left",R({textAlign:"left"})],["text-center",R({textAlign:"center"})],["text-right",R({textAlign:"right"})],["text-justify",R({textAlign:"justify"})],["text-auto",R({textAlign:"auto"})],["underline",R({textDecorationLine:"underline"})],["line-through",R({textDecorationLine:"line-through"})],["no-underline",R({textDecorationLine:"none"})],["uppercase",R({textTransform:"uppercase"})],["lowercase",R({textTransform:"lowercase"})],["capitalize",R({textTransform:"capitalize"})],["normal-case",R({textTransform:"none"})],["w-auto",R({width:"auto"})],["h-auto",R({height:"auto"})],["shadow-sm",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",R({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",R({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ss=jC;function Hr(A){return{kind:"dependent",complete(e){(!e.fontVariant||!Array.isArray(e.fontVariant))&&(e.fontVariant=[]),e.fontVariant.push(A)}}}var Or=class{constructor(e){this.ir=new Map(ss),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ss,...e??[]])}getStyle(e){return this.styles.get(e)}setStyle(e,t){this.styles.set(e,t)}getIr(e){return this.ir.get(e)}setIr(e,t){this.ir.set(e,t)}getPrefixMatch(e){return this.prefixes.get(e)}setPrefixMatch(e,t){this.prefixes.set(e,t)}};function as(A,e,t={}){let r=e==null?void 0:e[A];if(!r)return Le("fontSize",A,t);if(typeof r=="string")return tt("fontSize",r);let n={},[i,o]=r,a=oI("fontSize",i);if(a&&(n=a),typeof o=="string")return R(Fn("lineHeight",sI(o,n),n));let{lineHeight:u,letterSpacing:l}=o;return u&&Fn("lineHeight",sI(u,n),n),l&&Fn("letterSpacing",l,n),R(n)}function sI(A,e){let t=VA(A);if(t){let[r,n]=t;if((n===QA.none||n===QA.em)&&typeof e.fontSize=="number")return e.fontSize*r}return A}function gs(A,e){var t;let r=(t=e==null?void 0:e[A])!==null&&t!==void 0?t:A.startsWith("[")?A.slice(1,-1):A,n=VA(r);if(!n)return null;let[i,o]=n;if(o===QA.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*i}};let a=ut(i,o);return a!==null?R({lineHeight:a}):null}function us(A,e,t,r,n){let i="";if(r[0]==="[")i=r.slice(1,-1);else{let l=n==null?void 0:n[r];if(l)i=l;else{let I=wt(r);return I&&typeof I=="number"?aI(I,QA.px,e,A):null}}if(i==="auto")return gI(e,A,"auto");let o=VA(i);if(!o)return null;let[a,u]=o;return t&&(a=-a),aI(a,u,e,A)}function aI(A,e,t,r){let n=ut(A,e);return n===null?null:gI(t,r,n)}function gI(A,e,t){switch(A){case"All":return{kind:"complete",style:{[`${e}Top`]:t,[`${e}Right`]:t,[`${e}Bottom`]:t,[`${e}Left`]:t}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${e}${A}`]:t}};case"Vertical":return{kind:"complete",style:{[`${e}Top`]:t,[`${e}Bottom`]:t}};case"Horizontal":return{kind:"complete",style:{[`${e}Left`]:t,[`${e}Right`]:t}};default:return null}}function Is(A){if(!A)return{};let e=Object.entries(A).reduce((n,[i,o])=>{let a=[0,1/0,0],u=typeof o=="string"?{min:o}:o,l=u.min?ns(u.min):0;l===null?me(`invalid screen config value: ${i}->min: ${u.min}`):a[0]=l;let I=u.max?ns(u.max):1/0;return I===null?me(`invalid screen config value: ${i}->max: ${u.max}`):a[1]=I,n[i]=a,n},{}),t=Object.values(e);t.sort((n,i)=>{let[o,a]=n,[u,l]=i;return a===1/0||l===1/0?o-u:a-l});let r=0;return t.forEach(n=>n[2]=r++),e}function ls(A,e){let t=e==null?void 0:e[A];if(!t)return null;if(typeof t=="string")return R({fontFamily:t});let r=t[0];return r?R({fontFamily:r}):null}function Dt(A,e,t){if(!t)return null;let r;e.includes("/")&&([e="",r]=e.split("/",2));let n="";if(e.startsWith("[#")||e.startsWith("[rgb")?n=e.slice(1,-1):n=lI(e,t),!n)return null;if(r){let i=Number(r);if(!Number.isNaN(i))return n=uI(n,i/100),R({[Mn[A].color]:n})}return{kind:"dependent",complete(i){let o=Mn[A].opacity,a=i[o];typeof a=="number"&&(n=uI(n,a)),i[Mn[A].color]=n}}}function Tr(A,e){let t=parseInt(e,10);if(Number.isNaN(t))return null;let r=t/100;return{kind:"complete",style:{[Mn[A].opacity]:r}}}function uI(A,e){return A.startsWith("#")?A=$C(A):A.startsWith("rgb(")&&(A=A.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),A.replace(/, ?\d*\.?(\d+)\)$/,`, ${e})`)}function II(A){for(let e in A)e.startsWith("__opacity_")&&delete A[e]}var Mn={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 $C(A){let e=A;A=A.replace(Ad,(o,a,u,l)=>a+a+u+u+l+l);let t=ed.exec(A);if(!t)return me(`invalid config hex color value: ${e}`),"rgba(0, 0, 0, 1)";let r=parseInt(t[1],16),n=parseInt(t[2],16),i=parseInt(t[3],16);return`rgba(${r}, ${n}, ${i}, 1)`}function lI(A,e){let t=e[A];if(es(t))return t;if(ts(t)&&es(t.DEFAULT))return t.DEFAULT;let[r="",...n]=A.split("-");for(;r!==A;){let i=e[r];if(ts(i))return lI(n.join("-"),i);if(n.length===0)return"";r=`${r}-${n.shift()}`}return""}var Ad=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ed=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function fI(A,e){let[t,r]=os(A);if(t.match(/^(-?(\d)+)?$/))return td(t,r,e==null?void 0:e.borderWidth);if(t=t.replace(/^-/,""),["dashed","solid","dotted"].includes(t))return R({borderStyle:t});let i="border";switch(r){case"Bottom":i="borderBottom";break;case"Top":i="borderTop";break;case"Left":i="borderLeft";break;case"Right":i="borderRight";break}let o=Dt(i,t,e==null?void 0:e.borderColor);if(o)return o;let a=`border${r==="All"?"":r}Width`;t=t.replace(/^-/,"");let u=t.slice(1,-1),l=Le(a,u);return typeof(l==null?void 0:l.style[a])!="number"?null:l}function td(A,e,t){if(!t)return null;A=A.replace(/^-/,"");let n=t[A===""?"DEFAULT":A];if(n===void 0)return null;let i=`border${e==="All"?"":e}Width`;return tt(i,n)}function BI(A,e){if(!e)return null;let[t,r]=os(A);t=t.replace(/^-/,""),t===""&&(t="DEFAULT");let n=`border${r==="All"?"":r}Radius`,i=e[t];if(i)return cI(tt(n,i));let o=Le(n,t);return typeof(o==null?void 0:o.style[n])!="number"?null:cI(o)}function cI(A){if((A==null?void 0:A.kind)!=="complete")return A;let e=A.style.borderTopRadius;e!==void 0&&(A.style.borderTopLeftRadius=e,A.style.borderTopRightRadius=e,delete A.style.borderTopRadius);let t=A.style.borderBottomRadius;t!==void 0&&(A.style.borderBottomLeftRadius=t,A.style.borderBottomRightRadius=t,delete A.style.borderBottomRadius);let r=A.style.borderLeftRadius;r!==void 0&&(A.style.borderBottomLeftRadius=r,A.style.borderTopLeftRadius=r,delete A.style.borderLeftRadius);let n=A.style.borderRightRadius;return n!==void 0&&(A.style.borderBottomRightRadius=n,A.style.borderTopRightRadius=n,delete A.style.borderRightRadius),A}function Wt(A,e,t,r){let n=null;A==="inset"&&(e=e.replace(/^(x|y)-/,(a,u)=>(n=u==="x"?"x":"y","")));let i=r==null?void 0:r[e];if(i){let a=Ye(i,{isNegative:t});if(a!==null)return EI(A,n,a)}let o=wt(e,{isNegative:t});return o!==null?EI(A,n,o):null}function EI(A,e,t){if(A!=="inset")return R({[A]:t});switch(e){case null:return R({top:t,left:t,right:t,bottom:t});case"y":return R({top:t,bottom:t});case"x":return R({left:t,right:t})}}function Pr(A,e,t){var r;e=e.replace(/^-/,"");let n=e===""?"DEFAULT":e,i=Number((r=t==null?void 0:t[n])!==null&&r!==void 0?r:e);return Number.isNaN(i)?null:R({[`flex${A}`]:i})}function QI(A,e){var t,r;if(A=(e==null?void 0:e[A])||A,["min-content","revert","unset"].includes(A))return null;if(A.match(/^\d+(\.\d+)?$/))return R({flexGrow:Number(A),flexBasis:"0%"});let n=A.match(/^(\d+)\s+(\d+)$/);if(n)return R({flexGrow:Number(n[1]),flexShrink:Number(n[2])});if(n=A.match(/^(\d+)\s+([^ ]+)$/),n){let i=Ye((t=n[2])!==null&&t!==void 0?t:"");return i?R({flexGrow:Number(n[1]),flexBasis:i}):null}if(n=A.match(/^(\d+)\s+(\d+)\s+(.+)$/),n){let i=Ye((r=n[3])!==null&&r!==void 0?r:"");return i?R({flexGrow:Number(n[1]),flexShrink:Number(n[2]),flexBasis:i}):null}return null}function cs(A,e,t={},r){let n=r==null?void 0:r[e];return n!==void 0?tt(A,n,t):Le(A,e,t)}function _r(A,e,t={},r){let n=Ye(r==null?void 0:r[e],t);return n?R({[A]:n}):(e==="screen"&&(e=A.includes("Width")?"100vw":"100vh"),Le(A,e,t))}function CI(A,e,t){let r=t==null?void 0:t[A];if(r){let n=VA(r,{isNegative:e});if(!n)return null;let[i,o]=n;if(o===QA.em)return rd(i);if(o===QA.percent)return me("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=ut(i,o,{isNegative:e});return a!==null?R({letterSpacing:a}):null}return Le("letterSpacing",A,{isNegative:e})}function rd(A){return{kind:"dependent",complete(e){let t=e.fontSize;if(typeof t!="number"||Number.isNaN(t))return"tracking-X relative letter spacing classes require font-size to be set";e.letterSpacing=Math.round((A*t+Number.EPSILON)*100)/100}}}function dI(A,e){let t=e==null?void 0:e[A];if(t){let n=VA(String(t));if(n)return R({opacity:n[0]})}let r=VA(A);return r?R({opacity:r[0]/100}):null}function hI(A){let e=parseInt(A,10);return Number.isNaN(e)?null:{kind:"complete",style:{shadowOpacity:e/100}}}function pI(A){if(A.includes("/")){let[t="",r=""]=A.split("/",2),n=fs(t),i=fs(r);return n===null||i===null?null:{kind:"complete",style:{shadowOffset:{width:n,height:i}}}}let e=fs(A);return e===null?null:{kind:"complete",style:{shadowOffset:{width:e,height:e}}}}function fs(A){let e=wt(A);return typeof e=="number"?e:null}var Kt=class{constructor(e,t={},r,n,i){var o,a,u,l,I,E;this.config=t,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=n;let C=e.trim().split(":"),d=[];C.length===1?this.string=e:(this.string=(o=C.pop())!==null&&o!==void 0?o:"",d=C),this.char=this.string[0];let p=Is((a=this.config.theme)===null||a===void 0?void 0:a.screens);for(let y of d)if(p[y]){let k=(u=p[y])===null||u===void 0?void 0:u[2];k!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+k);let x=(I=n.windowDimensions)===null||I===void 0?void 0:I.width;if(x){let[M,b]=(E=p[y])!==null&&E!==void 0?E:[0,0];(x<=M||x>b)&&(this.isNull=!0)}else this.isNull=!0}else rI(y)?this.isNull=y!==i:nI(y)?n.windowDimensions?(n.windowDimensions.width>n.windowDimensions.height?"landscape":"portrait")!==y?this.isNull=!0:this.incrementOrder():this.isNull=!0:y==="retina"?n.pixelDensity===2?this.incrementOrder():this.isNull=!0:y==="dark"?n.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(y)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let e=this.cache.getIr(this.rest);if(e)return e;this.parseIsNegative();let t=this.parseUtility();return t?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:t}:t:{kind:"null"}}parseUtility(){var e,t,r,n,i;let o=this.config.theme,a=null;switch(this.char){case"m":case"p":{let u=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(u){let l=this.char==="m"?"margin":"padding";this.advance(((t=(e=u[0])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0)+1);let I=is(u[1]),E=us(l,I,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(E)return E}}}if(this.consumePeeked("h-")&&(a=cs("height",this.rest,this.context,o==null?void 0:o.height),a)||this.consumePeeked("w-")&&(a=cs("width",this.rest,this.context,o==null?void 0:o.width),a)||this.consumePeeked("min-w-")&&(a=_r("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),a)||this.consumePeeked("min-h-")&&(a=_r("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),a)||this.consumePeeked("max-w-")&&(a=_r("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),a)||this.consumePeeked("max-h-")&&(a=_r("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),a)||this.consumePeeked("leading-")&&(a=gs(this.rest,o==null?void 0:o.lineHeight),a)||this.consumePeeked("text-")&&(a=as(this.rest,o==null?void 0:o.fontSize,this.context),a||(a=Dt("text",this.rest,o==null?void 0:o.textColor),a)||this.consumePeeked("opacity-")&&(a=Tr("text",this.rest),a))||this.consumePeeked("font-")&&(a=ls(this.rest,o==null?void 0:o.fontFamily),a)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&me("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),a=tt("aspectRatio",this.rest,{fractions:!0}),a)||this.consumePeeked("tint-")&&(a=Dt("tint",this.rest,o==null?void 0:o.colors),a)||this.consumePeeked("bg-")&&(a=Dt("bg",this.rest,o==null?void 0:o.backgroundColor),a||this.consumePeeked("opacity-")&&(a=Tr("bg",this.rest),a))||this.consumePeeked("border")&&(a=fI(this.rest,o),a||this.consumePeeked("-opacity-")&&(a=Tr("border",this.rest),a))||this.consumePeeked("rounded")&&(a=BI(this.rest,o==null?void 0:o.borderRadius),a)||this.consumePeeked("bottom-")&&(a=Wt("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("top-")&&(a=Wt("top",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("left-")&&(a=Wt("left",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("right-")&&(a=Wt("right",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("inset-")&&(a=Wt("inset",this.rest,this.isNegative,o==null?void 0:o.inset),a)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?a=Pr("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?a=Pr("Shrink",this.rest,o==null?void 0:o.flexShrink):a=QI(this.rest,o==null?void 0:o.flex),a)||this.consumePeeked("grow")&&(a=Pr("Grow",this.rest,o==null?void 0:o.flexGrow),a)||this.consumePeeked("shrink")&&(a=Pr("Shrink",this.rest,o==null?void 0:o.flexShrink),a)||this.consumePeeked("shadow-color-opacity-")&&(a=Tr("shadow",this.rest),a)||this.consumePeeked("shadow-opacity-")&&(a=hI(this.rest),a)||this.consumePeeked("shadow-offset-")&&(a=pI(this.rest),a)||this.consumePeeked("shadow-radius-")&&(a=Le("shadowRadius",this.rest),a)||this.consumePeeked("shadow-")&&(a=Dt("shadow",this.rest,o==null?void 0:o.colors),a))return a;if(this.consumePeeked("elevation-")){let u=parseInt(this.rest,10);if(!Number.isNaN(u))return R({elevation:u})}if(this.consumePeeked("opacity-")&&(a=dI(this.rest,o==null?void 0:o.opacity),a)||this.consumePeeked("tracking-")&&(a=CI(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),a))return a;if(this.consumePeeked("z-")){let u=Number((i=(n=o==null?void 0:o.zIndex)===null||n===void 0?void 0:n[this.rest])!==null&&i!==void 0?i:this.rest);if(!Number.isNaN(u))return R({zIndex:u})}return me(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(e){var t;if(e[0]!=="m")return!1;let r=e.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((t=this.context.device)===null||t===void 0)&&t.windowDimensions))return this.isNull=!0,!0;let n=this.context.device.windowDimensions,[,i="",o="",a=""]=r,u=o==="w"?n.width:n.height,l=VA(a,this.context);if(l===null)return this.isNull=!0,!0;let[I,E]=l;return E!=="px"&&(this.isNull=!0),(i==="min"?u>=I:u<=I)?this.incrementOrder():this.isNull=!0,!0}advance(e=1){this.position+=e,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(e,t){return this.string.slice(this.position+e,this.position+t)}consumePeeked(e){return this.peekSlice(0,e.length)===e?(this.advance(e.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var e;this.order=((e=this.order)!==null&&e!==void 0?e:0)+1}};function mI(A){let e=[],t=null;return A.forEach(r=>{if(typeof r=="string")e=[...e,...Bs(r)];else if(Array.isArray(r))e=[...e,...r.flatMap(Bs)];else if(typeof r=="object"&&r!==null)for(let[n,i]of Object.entries(r))typeof i=="boolean"?e=[...e,...i?Bs(n):[]]:t?t[n]=i:t={[n]:i}}),[e.filter(Boolean).filter(nd),t]}function Bs(A){return A.trim().split(/\s+/)}function nd(A,e,t){return t.indexOf(A)===e}function yI(A){var e;return(e=A==null?void 0:A.reduce((t,r)=>({...t,...id(r.handler)}),{}))!==null&&e!==void 0?e:{}}function id(A){let e={};return A({addUtilities:t=>{e=t},...od}),e}function qe(A){throw new Error(`tailwindcss plugin function argument object prop "${A}" not implemented`)}var od={addComponents:qe,addBase:qe,addVariant:qe,e:qe,prefix:qe,theme:qe,variants:qe,config:qe,corePlugins:qe,matchUtilities:qe,postcss:null};function DI(A,e){let t=(0,wI.default)(sd(A)),r={},n=yI(t.plugins),i={},o=Object.entries(n).map(([p,y])=>typeof y=="string"?(i[p]=y,[p,{kind:"null"}]):[p,R(y)]).filter(([,p])=>p.kind!=="null");function a(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let u=a(),l={};function I(){let p=l[u];if(p)return p;let y=new Or(o);return l[u]=y,y}function E(...p){let y=I(),k={},x=[],M=[],[b,v]=mI(p),F=b.join(" "),L=y.getStyle(F);if(L)return{...L,...v||{}};for(let O of b){let J=y.getIr(O);if(!J&&O in i){let CA=E(i[O]);y.setIr(O,R(CA)),k={...k,...CA};continue}switch(J=new Kt(O,t,y,r,e).parse(),J.kind){case"complete":k={...k,...J.style},y.setIr(O,J);break;case"dependent":x.push(J);break;case"ordered":M.push(J);break;case"null":y.setIr(O,J);break}}if(M.length>0){M.sort((O,J)=>O.order-J.order);for(let O of M)switch(O.styleIr.kind){case"complete":k={...k,...O.styleIr.style};break;case"dependent":x.push(O.styleIr);break}}if(x.length>0){for(let O of x){let J=O.complete(k);J&&me(J)}II(k)}return F!==""&&y.setStyle(F,k),v&&(k={...k,...v}),k}function C(p){let y=E(p.split(/\s+/g).map(k=>k.replace(/^(bg|text|border)-/,"")).map(k=>`bg-${k}`).join(" "));return typeof y.backgroundColor=="string"?y.backgroundColor:void 0}let d=(p,...y)=>{let k="";return p.forEach((x,M)=>{var b;k+=x+((b=y[M])!==null&&b!==void 0?b:"")}),E(k)};return d.style=E,d.color=C,d.prefixMatch=(...p)=>{let y=p.sort().join(":"),k=I(),x=k.getPrefixMatch(y);if(x!==void 0)return x;let v=new Kt(`${y}:flex`,t,k,r,e).parse().kind!=="null";return k.setPrefixMatch(y,v),v},d.setWindowDimensions=p=>{r.windowDimensions=p,u=a()},d.setFontScale=p=>{r.fontScale=p,u=a()},d.setPixelDensity=p=>{r.pixelDensity=p,u=a()},d.setColorScheme=p=>{r.colorScheme=p,u=a()},d}function sd(A){return{...A,content:["_no_warnings_please"]}}var gd={handler:({addUtilities:A})=>{A({"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 ud(A){return DI({...A,plugins:[...(A==null?void 0:A.plugins)??[],gd]},"web")}var Ln;function Es({width:A,height:e,config:t}){return Ln||(Ln=ud(t)),Ln.setWindowDimensions({width:+A,height:+e}),Ln}var Qs=new WeakMap;async function Cs(A,e){let t=await it();if(!t||!t.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+t);e.fonts=e.fonts||[];let r;Qs.has(e.fonts)?r=Qs.get(e.fonts):Qs.set(e.fonts,r=new sr(e.fonts));let n="width"in e?e.width:void 0,i="height"in e?e.height:void 0,o=Id(t,e.pointScaleFactor);n&&o.setWidth(n),i&&o.setHeight(i),o.setFlexDirection(t.FLEX_DIRECTION_ROW),o.setFlexWrap(t.WRAP_WRAP),o.setAlignContent(t.ALIGN_AUTO),o.setAlignItems(t.ALIGN_FLEX_START),o.setJustifyContent(t.JUSTIFY_FLEX_START),o.setOverflow(t.OVERFLOW_HIDDEN);let a=Object.assign(Object.create(null),e.graphemeImages),u=new Set;We.clear(),Zt.clear(),await ta(A);let l=or(A,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:n,_viewportHeight:i},parent:o,font:r,embedFont:e.embedFont,debug:e.debug,graphemeImages:a,canLoadAdditionalAssets:!!e.loadAdditionalAsset,onNodeDetected:e.onNodeDetected,getTwStyles:(p,y)=>{let x={...Es({width:n,height:i,config:e.tailwindConfig})([p])};return typeof x.lineHeight=="number"&&(x.lineHeight=x.lineHeight/(+x.fontSize||y.fontSize||16)),x.shadowColor&&x.boxShadow&&(x.boxShadow=x.boxShadow.replace(/rgba?\([^)]+\)/,x.shadowColor)),x}}),I=(await l.next()).value;if(e.loadAdditionalAsset&&I.length){let p=ld(I),y=[],k={};await Promise.all(Object.entries(p).flatMap(([x,M])=>M.map(b=>{let v=`${x}_${b}`;return u.has(v)?null:(u.add(v),e.loadAdditionalAsset(x,b).then(F=>{typeof F=="string"?k[b]=F:F&&(Array.isArray(F)?y.push(...F):y.push(F))}))}))),r.addFonts(y),Object.assign(a,k)}await l.next(),o.calculateLayout(n,i,t.DIRECTION_LTR);let E=(await l.next([0,0])).value,C=o.getComputedWidth(),d=o.getComputedHeight();return o.freeRecursive(),vi({width:C,height:d,content:E})}function Id(A,e){if(e){let t=A.Config.create();return t.setPointScaleFactor(e),A.Node.createWithConfig(t)}else return A.Node.create()}function ld(A){let e={},t={};for(let{word:r,locale:n}of A){let i=Ja(r,n).join("|");t[i]=t[i]||"",t[i]+=r}return Object.keys(t).forEach(r=>{e[r]=e[r]||[],r==="emoji"?e[r].push(...SI(ge(t[r],"grapheme"))):(e[r][0]=e[r][0]||"",e[r][0]+=SI(ge(t[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),e}function SI(A){return Array.from(new Set(A))}0&&(module.exports={init});
|
|
9
9
|
//# sourceMappingURL=index.cjs.map
|