satori 0.7.2 → 0.7.4

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 CHANGED
@@ -2,6 +2,6 @@ var bl=Object.create;var yr=Object.defineProperty;var vl=Object.getOwnPropertyDe
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function ic(e,t){if(!!e){if(typeof e=="string")return Zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zu(e,t)}}function Zu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oc(e,t,n){return t&&es(e.prototype,t),n&&es(e,n),e}function uc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xn(e,t)}function Xn(e,t){return Xn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xn(e,t)}var sc=function(e){uc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.append=function(i){return i.parent=this,this.nodes.push(i),this},n.prepend=function(i){return i.parent=this,this.nodes.unshift(i),this},n.at=function(i){return this.nodes[i]},n.index=function(i){return typeof i=="number"?i:this.nodes.indexOf(i)},n.removeChild=function(i){i=this.index(i),this.at(i).parent=void 0,this.nodes.splice(i,1);var u;for(var o in this.indexes)u=this.indexes[o],u>=i&&(this.indexes[o]=u-1);return this},n.removeAll=function(){for(var i=nc(this.nodes),u;!(u=i()).done;){var o=u.value;o.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(i,u){u.parent=this;var o=this.index(i);this.nodes.splice(o+1,0,u),u.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],o<=s&&(this.indexes[a]=s+1);return this},n.insertBefore=function(i,u){u.parent=this;var o=this.index(i);this.nodes.splice(o,0,u),u.parent=this;var s;for(var a in this.indexes)s=this.indexes[a],s<=o&&(this.indexes[a]=s+1);return this},n._findChildAtPosition=function(i,u){var o=void 0;return this.each(function(s){if(s.atPosition){var a=s.atPosition(i,u);if(a)return o=a,!1}else if(s.isAtPosition(i,u))return o=s,!1}),o},n.atPosition=function(i,u){if(this.isAtPosition(i,u))return this._findChildAtPosition(i,u)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var u=this.lastEach;if(this.indexes[u]=0,!!this.length){for(var o,s;this.indexes[u]<this.length&&(o=this.indexes[u],s=i(this.at(o),o),s!==!1);)this.indexes[u]+=1;if(delete this.indexes[u],s===!1)return!1}},n.walk=function(i){return this.each(function(u,o){var s=i(u,o);if(s!==!1&&u.length&&(s=u.walk(i)),s===!1)return!1})},n.walkAttributes=function(i){var u=this;return this.walk(function(o){if(o.type===$e.ATTRIBUTE)return i.call(u,o)})},n.walkClasses=function(i){var u=this;return this.walk(function(o){if(o.type===$e.CLASS)return i.call(u,o)})},n.walkCombinators=function(i){var u=this;return this.walk(function(o){if(o.type===$e.COMBINATOR)return i.call(u,o)})},n.walkComments=function(i){var u=this;return this.walk(function(o){if(o.type===$e.COMMENT)return i.call(u,o)})},n.walkIds=function(i){var u=this;return this.walk(function(o){if(o.type===$e.ID)return i.call(u,o)})},n.walkNesting=function(i){var u=this;return this.walk(function(o){if(o.type===$e.NESTING)return i.call(u,o)})},n.walkPseudos=function(i){var u=this;return this.walk(function(o){if(o.type===$e.PSEUDO)return i.call(u,o)})},n.walkTags=function(i){var u=this;return this.walk(function(o){if(o.type===$e.TAG)return i.call(u,o)})},n.walkUniversals=function(i){var u=this;return this.walk(function(o){if(o.type===$e.UNIVERSAL)return i.call(u,o)})},n.split=function(i){var u=this,o=[];return this.reduce(function(s,a,l){var f=i.call(u,a);return o.push(a),f?(s.push(o),o=[]):l===u.length-1&&s.push(o),s},[])},n.map=function(i){return this.nodes.map(i)},n.reduce=function(i,u){return this.nodes.reduce(i,u)},n.every=function(i){return this.nodes.every(i)},n.some=function(i){return this.nodes.some(i)},n.filter=function(i){return this.nodes.filter(i)},n.sort=function(i){return this.nodes.sort(i)},n.toString=function(){return this.map(String).join("")},oc(t,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),t}(ec.default);Nt.default=sc;rs.exports=Nt.default});var Kn=A((Wt,is)=>{"use strict";c();Wt.__esModule=!0;Wt.default=void 0;var ac=fc(jr()),lc=fe();function fc(e){return e&&e.__esModule?e:{default:e}}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cc(e,t,n){return t&&ns(e.prototype,t),n&&ns(e,n),e}function dc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qn(e,t)}function Qn(e,t){return Qn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qn(e,t)}var pc=function(e){dc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=lc.ROOT,i}var n=t.prototype;return n.toString=function(){var i=this.reduce(function(u,o){return u.push(String(o)),u},[]).join(",");return this.trailingComma?i+",":i},n.error=function(i,u){return this._error?this._error(i,u):new Error(i)},cc(t,[{key:"errorGenerator",set:function(i){this._error=i}}]),t}(ac.default);Wt.default=pc;is.exports=Wt.default});var Zn=A(($t,os)=>{"use strict";c();$t.__esModule=!0;$t.default=void 0;var hc=mc(jr()),Dc=fe();function mc(e){return e&&e.__esModule?e:{default:e}}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jn(e,t)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Jn(e,t)}var bc=function(e){gc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Dc.SELECTOR,r}return t}(hc.default);$t.default=bc;os.exports=$t.default});var Hr=A((pg,us)=>{"use strict";c();var vc={},yc=vc.hasOwnProperty,xc=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=yc.call(t,i)?t[i]:n[i];return r},Fc=/[ -,\.\/:-@\[-\^`\{-~]/,wc=/[ -,\.\/:-@\[\]\^`\{-~]/,Ec=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,ei=function e(t,n){n=xc(n,e.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",i=n.isIdentifier,u=t.charAt(0),o="",s=0,a=t.length;s<a;){var l=t.charAt(s++),f=l.charCodeAt(),d=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&s<a){var h=t.charCodeAt(s++);(h&64512)==56320?f=((f&1023)<<10)+(h&1023)+65536:s--}d="\\"+f.toString(16).toUpperCase()+" "}else n.escapeEverything?Fc.test(l)?d="\\"+l:d="\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?d="\\"+f.toString(16).toUpperCase()+" ":l=="\\"||!i&&(l=='"'&&r==l||l=="'"&&r==l)||i&&wc.test(l)?d="\\"+l:d=l;o+=d}return i&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(u)&&(o="\\3"+u+" "+o.slice(1))),o=o.replace(Ec,function(D,p,m){return p&&p.length%2?D:(p||"")+m}),!i&&n.wrap?r+o+r:o};ei.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};ei.version="3.0.0";us.exports=ei});var ri=A((qt,ls)=>{"use strict";c();qt.__esModule=!0;qt.default=void 0;var Cc=as(Hr()),_c=Lt(),Sc=as(We()),kc=fe();function as(e){return e&&e.__esModule?e:{default:e}}function ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tc(e,t,n){return t&&ss(e.prototype,t),n&&ss(e,n),e}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ti(e,t)}function ti(e,t){return ti=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ti(e,t)}var Ac=function(e){Oc(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=kc.CLASS,i._constructed=!0,i}var n=t.prototype;return n.valueToString=function(){return"."+e.prototype.valueToString.call(this)},Tc(t,[{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var u=(0,Cc.default)(i,{isIdentifier:!0});u!==i?((0,_c.ensureObject)(this,"raws"),this.raws.value=u):this.raws&&delete this.raws.value}this._value=i}}]),t}(Sc.default);qt.default=Ac;ls.exports=qt.default});var ii=A((Ut,fs)=>{"use strict";c();Ut.__esModule=!0;Ut.default=void 0;var Pc=Rc(We()),Bc=fe();function Rc(e){return e&&e.__esModule?e:{default:e}}function Ic(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ni(e,t)}function ni(e,t){return ni=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ni(e,t)}var Lc=function(e){Ic(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Bc.COMMENT,r}return t}(Pc.default);Ut.default=Lc;fs.exports=Ut.default});var ui=A((zt,cs)=>{"use strict";c();zt.__esModule=!0;zt.default=void 0;var Mc=Wc(We()),Nc=fe();function Wc(e){return e&&e.__esModule?e:{default:e}}function $c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oi(e,t)}function oi(e,t){return oi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},oi(e,t)}var qc=function(e){$c(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=Nc.ID,i}var n=t.prototype;return n.valueToString=function(){return"#"+e.prototype.valueToString.call(this)},t}(Mc.default);zt.default=qc;cs.exports=zt.default});var Vr=A((Gt,hs)=>{"use strict";c();Gt.__esModule=!0;Gt.default=void 0;var Uc=ps(Hr()),zc=Lt(),Gc=ps(We());function ps(e){return e&&e.__esModule?e:{default:e}}function ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jc(e,t,n){return t&&ds(e.prototype,t),n&&ds(e,n),e}function Hc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,si(e,t)}function si(e,t){return si=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},si(e,t)}var Vc=function(e){Hc(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.qualifiedName=function(i){return this.namespace?this.namespaceString+"|"+i:i},n.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},jc(t,[{key:"namespace",get:function(){return this._namespace},set:function(i){if(i===!0||i==="*"||i==="&"){this._namespace=i,this.raws&&delete this.raws.namespace;return}var u=(0,Uc.default)(i,{isIdentifier:!0});this._namespace=i,u!==i?((0,zc.ensureObject)(this,"raws"),this.raws.namespace=u):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(i){this.namespace=i}},{key:"namespaceString",get:function(){if(this.namespace){var i=this.stringifyProperty("namespace");return i===!0?"":i}else return""}}]),t}(Gc.default);Gt.default=Vc;hs.exports=Gt.default});var li=A((jt,Ds)=>{"use strict";c();jt.__esModule=!0;jt.default=void 0;var Yc=Qc(Vr()),Xc=fe();function Qc(e){return e&&e.__esModule?e:{default:e}}function Kc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ai(e,t)}function ai(e,t){return ai=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ai(e,t)}var Jc=function(e){Kc(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Xc.TAG,r}return t}(Yc.default);jt.default=Jc;Ds.exports=jt.default});var ci=A((Ht,ms)=>{"use strict";c();Ht.__esModule=!0;Ht.default=void 0;var Zc=td(We()),ed=fe();function td(e){return e&&e.__esModule?e:{default:e}}function rd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function fi(e,t){return fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fi(e,t)}var nd=function(e){rd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=ed.STRING,r}return t}(Zc.default);Ht.default=nd;ms.exports=Ht.default});var pi=A((Vt,gs)=>{"use strict";c();Vt.__esModule=!0;Vt.default=void 0;var id=ud(jr()),od=fe();function ud(e){return e&&e.__esModule?e:{default:e}}function sd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,di(e,t)}function di(e,t){return di=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},di(e,t)}var ad=function(e){sd(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type=od.PSEUDO,i}var n=t.prototype;return n.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},t}(id.default);Vt.default=ad;gs.exports=Vt.default});var vs=A((hg,bs)=>{c();bs.exports=function(t,n){return function(...r){return console.warn(n),t(...r)}}});var vi=A(Qt=>{"use strict";c();Qt.__esModule=!0;Qt.unescapeValue=bi;Qt.default=void 0;var Yt=gi(Hr()),ld=gi(Yn()),fd=gi(Vr()),cd=fe(),hi;function gi(e){return e&&e.__esModule?e:{default:e}}function ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dd(e,t,n){return t&&ys(e.prototype,t),n&&ys(e,n),e}function pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mi(e,t)}function mi(e,t){return mi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},mi(e,t)}var Xt=vs(),hd=/^('|")([^]*)\1$/,Dd=Xt(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),md=Xt(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),gd=Xt(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function bi(e){var t=!1,n=null,r=e,i=r.match(hd);return i&&(n=i[1],r=i[2]),r=(0,ld.default)(r),r!==e&&(t=!0),{deprecatedUsage:t,unescaped:r,quoteMark:n}}function bd(e){if(e.quoteMark!==void 0||e.value===void 0)return e;gd();var t=bi(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||(e.raws={}),e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var Yr=function(e){pd(t,e);function t(r){var i;return r===void 0&&(r={}),i=e.call(this,bd(r))||this,i.type=cd.ATTRIBUTE,i.raws=i.raws||{},Object.defineProperty(i.raws,"unquoted",{get:Xt(function(){return i.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:Xt(function(){return i.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),i._constructed=!0,i}var n=t.prototype;return n.getQuotedValue=function(i){i===void 0&&(i={});var u=this._determineQuoteMark(i),o=Di[u],s=(0,Yt.default)(this._value,o);return s},n._determineQuoteMark=function(i){return i.smart?this.smartQuoteMark(i):this.preferredQuoteMark(i)},n.setValue=function(i,u){u===void 0&&(u={}),this._value=i,this._quoteMark=this._determineQuoteMark(u),this._syncRawValue()},n.smartQuoteMark=function(i){var u=this.value,o=u.replace(/[^']/g,"").length,s=u.replace(/[^"]/g,"").length;if(o+s===0){var a=(0,Yt.default)(u,{isIdentifier:!0});if(a===u)return t.NO_QUOTE;var l=this.preferredQuoteMark(i);if(l===t.NO_QUOTE){var f=this.quoteMark||i.quoteMark||t.DOUBLE_QUOTE,d=Di[f],h=(0,Yt.default)(u,d);if(h.length<a.length)return f}return l}else return s===o?this.preferredQuoteMark(i):s<o?t.DOUBLE_QUOTE:t.SINGLE_QUOTE},n.preferredQuoteMark=function(i){var u=i.preferCurrentQuoteMark?this.quoteMark:i.quoteMark;return u===void 0&&(u=i.preferCurrentQuoteMark?i.quoteMark:this.quoteMark),u===void 0&&(u=t.DOUBLE_QUOTE),u},n._syncRawValue=function(){var i=(0,Yt.default)(this._value,Di[this.quoteMark]);i===this._value?this.raws&&delete this.raws.value:this.raws.value=i},n._handleEscapes=function(i,u){if(this._constructed){var o=(0,Yt.default)(u,{isIdentifier:!0});o!==u?this.raws[i]=o:delete this.raws[i]}},n._spacesFor=function(i){var u={before:"",after:""},o=this.spaces[i]||{},s=this.raws.spaces&&this.raws.spaces[i]||{};return Object.assign(u,o,s)},n._stringFor=function(i,u,o){u===void 0&&(u=i),o===void 0&&(o=xs);var s=this._spacesFor(u);return o(this.stringifyProperty(i),s)},n.offsetOf=function(i){var u=1,o=this._spacesFor("attribute");if(u+=o.before.length,i==="namespace"||i==="ns")return this.namespace?u:-1;if(i==="attributeNS"||(u+=this.namespaceString.length,this.namespace&&(u+=1),i==="attribute"))return u;u+=this.stringifyProperty("attribute").length,u+=o.after.length;var s=this._spacesFor("operator");u+=s.before.length;var a=this.stringifyProperty("operator");if(i==="operator")return a?u:-1;u+=a.length,u+=s.after.length;var l=this._spacesFor("value");u+=l.before.length;var f=this.stringifyProperty("value");if(i==="value")return f?u:-1;u+=f.length,u+=l.after.length;var d=this._spacesFor("insensitive");return u+=d.before.length,i==="insensitive"&&this.insensitive?u:-1},n.toString=function(){var i=this,u=[this.rawSpaceBefore,"["];return u.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(u.push(this._stringFor("operator")),u.push(this._stringFor("value")),u.push(this._stringFor("insensitiveFlag","insensitive",function(o,s){return o.length>0&&!i.quoted&&s.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(s.before=" "),xs(o,s)}))),u.push("]"),u.push(this.rawSpaceAfter),u.join("")},dd(t,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){md()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var u=bi(i),o=u.deprecatedUsage,s=u.unescaped,a=u.quoteMark;if(o&&Dd(),s===this._value&&a===this._quoteMark)return;this._value=s,this._quoteMark=a,this._syncRawValue()}else this._value=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),t}(fd.default);Qt.default=Yr;Yr.NO_QUOTE=null;Yr.SINGLE_QUOTE="'";Yr.DOUBLE_QUOTE='"';var Di=(hi={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},hi[null]={isIdentifier:!0},hi);function xs(e,t){return""+t.before+e+t.after}});var xi=A((Kt,Fs)=>{"use strict";c();Kt.__esModule=!0;Kt.default=void 0;var vd=xd(Vr()),yd=fe();function xd(e){return e&&e.__esModule?e:{default:e}}function Fd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yi(e,t)}function yi(e,t){return yi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yi(e,t)}var wd=function(e){Fd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=yd.UNIVERSAL,r.value="*",r}return t}(vd.default);Kt.default=wd;Fs.exports=Kt.default});var wi=A((Jt,ws)=>{"use strict";c();Jt.__esModule=!0;Jt.default=void 0;var Ed=_d(We()),Cd=fe();function _d(e){return e&&e.__esModule?e:{default:e}}function Sd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fi(e,t)}function Fi(e,t){return Fi=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fi(e,t)}var kd=function(e){Sd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Cd.COMBINATOR,r}return t}(Ed.default);Jt.default=kd;ws.exports=Jt.default});var Ci=A((Zt,Es)=>{"use strict";c();Zt.__esModule=!0;Zt.default=void 0;var Td=Ad(We()),Od=fe();function Ad(e){return e&&e.__esModule?e:{default:e}}function Pd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ei(e,t)}function Ei(e,t){return Ei=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ei(e,t)}var Bd=function(e){Pd(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type=Od.NESTING,r.value="&",r}return t}(Td.default);Zt.default=Bd;Es.exports=Zt.default});var _s=A((Xr,Cs)=>{"use strict";c();Xr.__esModule=!0;Xr.default=Rd;function Rd(e){return e.sort(function(t,n){return t-n})}Cs.exports=Xr.default});var _i=A(T=>{"use strict";c();T.__esModule=!0;T.combinator=T.word=T.comment=T.str=T.tab=T.newline=T.feed=T.cr=T.backslash=T.bang=T.slash=T.doubleQuote=T.singleQuote=T.space=T.greaterThan=T.pipe=T.equals=T.plus=T.caret=T.tilde=T.dollar=T.closeSquare=T.openSquare=T.closeParenthesis=T.openParenthesis=T.semicolon=T.colon=T.comma=T.at=T.asterisk=T.ampersand=void 0;var Id=38;T.ampersand=Id;var Ld=42;T.asterisk=Ld;var Md=64;T.at=Md;var Nd=44;T.comma=Nd;var Wd=58;T.colon=Wd;var $d=59;T.semicolon=$d;var qd=40;T.openParenthesis=qd;var Ud=41;T.closeParenthesis=Ud;var zd=91;T.openSquare=zd;var Gd=93;T.closeSquare=Gd;var jd=36;T.dollar=jd;var Hd=126;T.tilde=Hd;var Vd=94;T.caret=Vd;var Yd=43;T.plus=Yd;var Xd=61;T.equals=Xd;var Qd=124;T.pipe=Qd;var Kd=62;T.greaterThan=Kd;var Jd=32;T.space=Jd;var Ss=39;T.singleQuote=Ss;var Zd=34;T.doubleQuote=Zd;var ep=47;T.slash=ep;var tp=33;T.bang=tp;var rp=92;T.backslash=rp;var np=13;T.cr=np;var ip=12;T.feed=ip;var op=10;T.newline=op;var up=9;T.tab=up;var sp=Ss;T.str=sp;var ap=-1;T.comment=ap;var lp=-2;T.word=lp;var fp=-3;T.combinator=fp});var Os=A(er=>{"use strict";c();er.__esModule=!0;er.default=gp;er.FIELDS=void 0;var _=cp(_i()),ht,V;function Ts(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ts=function(){return e},e}function cp(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ts();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=r?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}var dp=(ht={},ht[_.tab]=!0,ht[_.newline]=!0,ht[_.cr]=!0,ht[_.feed]=!0,ht),pp=(V={},V[_.space]=!0,V[_.tab]=!0,V[_.newline]=!0,V[_.cr]=!0,V[_.feed]=!0,V[_.ampersand]=!0,V[_.asterisk]=!0,V[_.bang]=!0,V[_.comma]=!0,V[_.colon]=!0,V[_.semicolon]=!0,V[_.openParenthesis]=!0,V[_.closeParenthesis]=!0,V[_.openSquare]=!0,V[_.closeSquare]=!0,V[_.singleQuote]=!0,V[_.doubleQuote]=!0,V[_.plus]=!0,V[_.pipe]=!0,V[_.tilde]=!0,V[_.greaterThan]=!0,V[_.equals]=!0,V[_.dollar]=!0,V[_.caret]=!0,V[_.slash]=!0,V),Si={},ks="0123456789abcdefABCDEF";for(Qr=0;Qr<ks.length;Qr++)Si[ks.charCodeAt(Qr)]=!0;var Qr;function hp(e,t){var n=t,r;do{if(r=e.charCodeAt(n),pp[r])return n-1;r===_.backslash?n=Dp(e,n)+1:n++}while(n<e.length);return n-1}function Dp(e,t){var n=t,r=e.charCodeAt(n+1);if(!dp[r])if(Si[r]){var i=0;do n++,i++,r=e.charCodeAt(n+1);while(Si[r]&&i<6);i<6&&r===_.space&&n++}else n++;return n}var mp={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};er.FIELDS=mp;function gp(e){var t=[],n=e.css.valueOf(),r=n,i=r.length,u=-1,o=1,s=0,a=0,l,f,d,h,D,p,m,x,b,v,F,w,E;function B(R,L){if(e.safe)n+=L,b=n.length-1;else throw e.error("Unclosed "+R,o,s-u,s)}for(;s<i;){switch(l=n.charCodeAt(s),l===_.newline&&(u=s,o+=1),l){case _.space:case _.tab:case _.newline:case _.cr:case _.feed:b=s;do b+=1,l=n.charCodeAt(b),l===_.newline&&(u=b,o+=1);while(l===_.space||l===_.newline||l===_.tab||l===_.cr||l===_.feed);E=_.space,h=o,d=b-u-1,a=b;break;case _.plus:case _.greaterThan:case _.tilde:case _.pipe:b=s;do b+=1,l=n.charCodeAt(b);while(l===_.plus||l===_.greaterThan||l===_.tilde||l===_.pipe);E=_.combinator,h=o,d=s-u,a=b;break;case _.asterisk:case _.ampersand:case _.bang:case _.comma:case _.equals:case _.dollar:case _.caret:case _.openSquare:case _.closeSquare:case _.colon:case _.semicolon:case _.openParenthesis:case _.closeParenthesis:b=s,E=l,h=o,d=s-u,a=b+1;break;case _.singleQuote:case _.doubleQuote:w=l===_.singleQuote?"'":'"',b=s;do for(D=!1,b=n.indexOf(w,b+1),b===-1&&B("quote",w),p=b;n.charCodeAt(p-1)===_.backslash;)p-=1,D=!D;while(D);E=_.str,h=o,d=s-u,a=b+1;break;default:l===_.slash&&n.charCodeAt(s+1)===_.asterisk?(b=n.indexOf("*/",s+2)+1,b===0&&B("comment","*/"),f=n.slice(s,b+1),x=f.split(`
3
3
  `),m=x.length-1,m>0?(v=o+m,F=b-x[m].length):(v=o,F=u),E=_.comment,o=v,h=v,d=b-F):l===_.slash?(b=s,E=l,h=o,d=s-u,a=b+1):(b=hp(n,s),E=_.word,h=o,d=b-u),a=b+1;break}t.push([E,o,s-u,h,d,s,a]),F&&(u=F,F=null),s=a}return t}});var Ns=A((tr,Ms)=>{"use strict";c();tr.__esModule=!0;tr.default=void 0;var bp=Ce(Kn()),ki=Ce(Zn()),vp=Ce(ri()),As=Ce(ii()),yp=Ce(ui()),xp=Ce(li()),Ti=Ce(ci()),Fp=Ce(pi()),Ps=Kr(vi()),wp=Ce(xi()),Oi=Ce(wi()),Ep=Ce(Ci()),Cp=Ce(_s()),C=Kr(Os()),S=Kr(_i()),_p=Kr(fe()),te=Lt(),rt,Ai;function Ls(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Ls=function(){return e},e}function Kr(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Ls();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=r?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Ce(e){return e&&e.__esModule?e:{default:e}}function Bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sp(e,t,n){return t&&Bs(e.prototype,t),n&&Bs(e,n),e}var Ri=(rt={},rt[S.space]=!0,rt[S.cr]=!0,rt[S.feed]=!0,rt[S.newline]=!0,rt[S.tab]=!0,rt),kp=Object.assign({},Ri,(Ai={},Ai[S.comment]=!0,Ai));function Rs(e){return{line:e[C.FIELDS.START_LINE],column:e[C.FIELDS.START_COL]}}function Is(e){return{line:e[C.FIELDS.END_LINE],column:e[C.FIELDS.END_COL]}}function nt(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function Dt(e){return nt(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],e[C.FIELDS.END_LINE],e[C.FIELDS.END_COL])}function Pi(e,t){if(!!e)return nt(e[C.FIELDS.START_LINE],e[C.FIELDS.START_COL],t[C.FIELDS.END_LINE],t[C.FIELDS.END_COL])}function mt(e,t){var n=e[t];if(typeof n=="string")return n.indexOf("\\")!==-1&&((0,te.ensureObject)(e,"raws"),e[t]=(0,te.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function Bi(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function Tp(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}var Op=function(){function e(n,r){r===void 0&&(r={}),this.rule=n,this.options=Object.assign({lossy:!1,safe:!1},r),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,C.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=Pi(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new bp.default({source:i}),this.root.errorGenerator=this._errorGenerator();var u=new ki.default({source:{start:{line:1,column:1}}});this.root.append(u),this.current=u,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var r=this;return function(i,u){return typeof r.rule=="string"?new Error(i):r.rule.error(i,u)}},t.attribute=function(){var r=[],i=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[C.FIELDS.TYPE]!==S.closeSquare;)r.push(this.currToken),this.position++;if(this.currToken[C.FIELDS.TYPE]!==S.closeSquare)return this.expected("closing square bracket",this.currToken[C.FIELDS.START_POS]);var u=r.length,o={source:nt(i[1],i[2],this.currToken[3],this.currToken[4]),sourceIndex:i[C.FIELDS.START_POS]};if(u===1&&!~[S.word].indexOf(r[0][C.FIELDS.TYPE]))return this.expected("attribute",r[0][C.FIELDS.START_POS]);for(var s=0,a="",l="",f=null,d=!1;s<u;){var h=r[s],D=this.content(h),p=r[s+1];switch(h[C.FIELDS.TYPE]){case S.space:if(d=!0,this.options.lossy)break;if(f){(0,te.ensureObject)(o,"spaces",f);var m=o.spaces[f].after||"";o.spaces[f].after=m+D;var x=(0,te.getProp)(o,"raws","spaces",f,"after")||null;x&&(o.raws.spaces[f].after=x+D)}else a=a+D,l=l+D;break;case S.asterisk:if(p[C.FIELDS.TYPE]===S.equals)o.operator=D,f="operator";else if((!o.namespace||f==="namespace"&&!d)&&p){a&&((0,te.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=a,a=""),l&&((0,te.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=a,l=""),o.namespace=(o.namespace||"")+D;var b=(0,te.getProp)(o,"raws","namespace")||null;b&&(o.raws.namespace+=D),f="namespace"}d=!1;break;case S.dollar:if(f==="value"){var v=(0,te.getProp)(o,"raws","value");o.value+="$",v&&(o.raws.value=v+"$");break}case S.caret:p[C.FIELDS.TYPE]===S.equals&&(o.operator=D,f="operator"),d=!1;break;case S.combinator:if(D==="~"&&p[C.FIELDS.TYPE]===S.equals&&(o.operator=D,f="operator"),D!=="|"){d=!1;break}p[C.FIELDS.TYPE]===S.equals?(o.operator=D,f="operator"):!o.namespace&&!o.attribute&&(o.namespace=!0),d=!1;break;case S.word:if(p&&this.content(p)==="|"&&r[s+2]&&r[s+2][C.FIELDS.TYPE]!==S.equals&&!o.operator&&!o.namespace)o.namespace=D,f="namespace";else if(!o.attribute||f==="attribute"&&!d){a&&((0,te.ensureObject)(o,"spaces","attribute"),o.spaces.attribute.before=a,a=""),l&&((0,te.ensureObject)(o,"raws","spaces","attribute"),o.raws.spaces.attribute.before=l,l=""),o.attribute=(o.attribute||"")+D;var F=(0,te.getProp)(o,"raws","attribute")||null;F&&(o.raws.attribute+=D),f="attribute"}else if(!o.value&&o.value!==""||f==="value"&&!d){var w=(0,te.unesc)(D),E=(0,te.getProp)(o,"raws","value")||"",B=o.value||"";o.value=B+w,o.quoteMark=null,(w!==D||E)&&((0,te.ensureObject)(o,"raws"),o.raws.value=(E||B)+D),f="value"}else{var R=D==="i"||D==="I";(o.value||o.value==="")&&(o.quoteMark||d)?(o.insensitive=R,(!R||D==="I")&&((0,te.ensureObject)(o,"raws"),o.raws.insensitiveFlag=D),f="insensitive",a&&((0,te.ensureObject)(o,"spaces","insensitive"),o.spaces.insensitive.before=a,a=""),l&&((0,te.ensureObject)(o,"raws","spaces","insensitive"),o.raws.spaces.insensitive.before=l,l="")):(o.value||o.value==="")&&(f="value",o.value+=D,o.raws.value&&(o.raws.value+=D))}d=!1;break;case S.str:if(!o.attribute||!o.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:h[C.FIELDS.START_POS]});var L=(0,Ps.unescapeValue)(D),Y=L.unescaped,J=L.quoteMark;o.value=Y,o.quoteMark=J,f="value",(0,te.ensureObject)(o,"raws"),o.raws.value=D,d=!1;break;case S.equals:if(!o.attribute)return this.expected("attribute",h[C.FIELDS.START_POS],D);if(o.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:h[C.FIELDS.START_POS]});o.operator=o.operator?o.operator+D:D,f="operator",d=!1;break;case S.comment:if(f)if(d||p&&p[C.FIELDS.TYPE]===S.space||f==="insensitive"){var ne=(0,te.getProp)(o,"spaces",f,"after")||"",U=(0,te.getProp)(o,"raws","spaces",f,"after")||ne;(0,te.ensureObject)(o,"raws","spaces",f),o.raws.spaces[f].after=U+D}else{var M=o[f]||"",Z=(0,te.getProp)(o,"raws",f)||M;(0,te.ensureObject)(o,"raws"),o.raws[f]=Z+D}else l=l+D;break;default:return this.error('Unexpected "'+D+'" found.',{index:h[C.FIELDS.START_POS]})}s++}mt(o,"attribute"),mt(o,"namespace"),this.newNode(new Ps.default(o)),this.position++},t.parseWhitespaceEquivalentTokens=function(r){r<0&&(r=this.tokens.length);var i=this.position,u=[],o="",s=void 0;do if(Ri[this.currToken[C.FIELDS.TYPE]])this.options.lossy||(o+=this.content());else if(this.currToken[C.FIELDS.TYPE]===S.comment){var a={};o&&(a.before=o,o=""),s=new As.default({value:this.content(),source:Dt(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS],spaces:a}),u.push(s)}while(++this.position<r);if(o){if(s)s.spaces.after=o;else if(!this.options.lossy){var l=this.tokens[i],f=this.tokens[this.position-1];u.push(new Ti.default({value:"",source:nt(l[C.FIELDS.START_LINE],l[C.FIELDS.START_COL],f[C.FIELDS.END_LINE],f[C.FIELDS.END_COL]),sourceIndex:l[C.FIELDS.START_POS],spaces:{before:o,after:""}}))}}return u},t.convertWhitespaceNodesToSpace=function(r,i){var u=this;i===void 0&&(i=!1);var o="",s="";r.forEach(function(l){var f=u.lossySpace(l.spaces.before,i),d=u.lossySpace(l.rawSpaceBefore,i);o+=f+u.lossySpace(l.spaces.after,i&&f.length===0),s+=f+l.value+u.lossySpace(l.rawSpaceAfter,i&&d.length===0)}),s===o&&(s=void 0);var a={space:o,rawSpace:s};return a},t.isNamedCombinator=function(r){return r===void 0&&(r=this.position),this.tokens[r+0]&&this.tokens[r+0][C.FIELDS.TYPE]===S.slash&&this.tokens[r+1]&&this.tokens[r+1][C.FIELDS.TYPE]===S.word&&this.tokens[r+2]&&this.tokens[r+2][C.FIELDS.TYPE]===S.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var r=this.content(this.tokens[this.position+1]),i=(0,te.unesc)(r).toLowerCase(),u={};i!==r&&(u.value="/"+r+"/");var o=new Oi.default({value:"/"+i+"/",source:nt(this.currToken[C.FIELDS.START_LINE],this.currToken[C.FIELDS.START_COL],this.tokens[this.position+2][C.FIELDS.END_LINE],this.tokens[this.position+2][C.FIELDS.END_COL]),sourceIndex:this.currToken[C.FIELDS.START_POS],raws:u});return this.position=this.position+3,o}else this.unexpected()},t.combinator=function(){var r=this;if(this.content()==="|")return this.namespace();var i=this.locateNextMeaningfulToken(this.position);if(i<0||this.tokens[i][C.FIELDS.TYPE]===S.comma){var u=this.parseWhitespaceEquivalentTokens(i);if(u.length>0){var o=this.current.last;if(o){var s=this.convertWhitespaceNodesToSpace(u),a=s.space,l=s.rawSpace;l!==void 0&&(o.rawSpaceAfter+=l),o.spaces.after+=a}else u.forEach(function(E){return r.newNode(E)})}return}var f=this.currToken,d=void 0;i>this.position&&(d=this.parseWhitespaceEquivalentTokens(i));var h;if(this.isNamedCombinator()?h=this.namedCombinator():this.currToken[C.FIELDS.TYPE]===S.combinator?(h=new Oi.default({value:this.content(),source:Dt(this.currToken),sourceIndex:this.currToken[C.FIELDS.START_POS]}),this.position++):Ri[this.currToken[C.FIELDS.TYPE]]||d||this.unexpected(),h){if(d){var D=this.convertWhitespaceNodesToSpace(d),p=D.space,m=D.rawSpace;h.spaces.before=p,h.rawSpaceBefore=m}}else{var x=this.convertWhitespaceNodesToSpace(d,!0),b=x.space,v=x.rawSpace;v||(v=b);var F={},w={spaces:{}};b.endsWith(" ")&&v.endsWith(" ")?(F.before=b.slice(0,b.length-1),w.spaces.before=v.slice(0,v.length-1)):b.startsWith(" ")&&v.startsWith(" ")?(F.after=b.slice(1),w.spaces.after=v.slice(1)):w.value=v,h=new Oi.default({value:" ",source:Pi(f,this.tokens[this.position-1]),sourceIndex:f[C.FIELDS.START_POS],spaces:F,raws:w})}return this.currToken&&this.currToken[C.FIELDS.TYPE]===S.space&&(h.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(h)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var r=new ki.default({source:{start:Rs(this.tokens[this.position+1])}});this.current.parent.append(r),this.current=r,this.position++},t.comment=function(){var r=this.currToken;this.newNode(new As.default({value:this.content(),source:Dt(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.error=function(r,i){throw this.root.error(r,i)},t.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[C.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[C.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[C.FIELDS.START_POS])},t.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[C.FIELDS.START_POS])},t.namespace=function(){var r=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[C.FIELDS.TYPE]===S.word)return this.position++,this.word(r);if(this.nextToken[C.FIELDS.TYPE]===S.asterisk)return this.position++,this.universal(r)},t.nesting=function(){if(this.nextToken){var r=this.content(this.nextToken);if(r==="|"){this.position++;return}}var i=this.currToken;this.newNode(new Ep.default({value:this.content(),source:Dt(i),sourceIndex:i[C.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var r=this.current.last,i=1;if(this.position++,r&&r.type===_p.PSEUDO){var u=new ki.default({source:{start:Rs(this.tokens[this.position-1])}}),o=this.current;for(r.append(u),this.current=u;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===S.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===S.closeParenthesis&&i--,i?this.parse():(this.current.source.end=Is(this.currToken),this.current.parent.source.end=Is(this.currToken),this.position++);this.current=o}else{for(var s=this.currToken,a="(",l;this.position<this.tokens.length&&i;)this.currToken[C.FIELDS.TYPE]===S.openParenthesis&&i++,this.currToken[C.FIELDS.TYPE]===S.closeParenthesis&&i--,l=this.currToken,a+=this.parseParenthesisToken(this.currToken),this.position++;r?r.appendToPropertyAndEscape("value",a,a):this.newNode(new Ti.default({value:a,source:nt(s[C.FIELDS.START_LINE],s[C.FIELDS.START_COL],l[C.FIELDS.END_LINE],l[C.FIELDS.END_COL]),sourceIndex:s[C.FIELDS.START_POS]}))}if(i)return this.expected("closing parenthesis",this.currToken[C.FIELDS.START_POS])},t.pseudo=function(){for(var r=this,i="",u=this.currToken;this.currToken&&this.currToken[C.FIELDS.TYPE]===S.colon;)i+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[C.FIELDS.TYPE]===S.word)this.splitWord(!1,function(o,s){i+=o,r.newNode(new Fp.default({value:i,source:Pi(u,r.currToken),sourceIndex:u[C.FIELDS.START_POS]})),s>1&&r.nextToken&&r.nextToken[C.FIELDS.TYPE]===S.openParenthesis&&r.error("Misplaced parenthesis.",{index:r.nextToken[C.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[C.FIELDS.START_POS])},t.space=function(){var r=this.content();this.position===0||this.prevToken[C.FIELDS.TYPE]===S.comma||this.prevToken[C.FIELDS.TYPE]===S.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(r),this.position++):this.position===this.tokens.length-1||this.nextToken[C.FIELDS.TYPE]===S.comma||this.nextToken[C.FIELDS.TYPE]===S.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(r),this.position++):this.combinator()},t.string=function(){var r=this.currToken;this.newNode(new Ti.default({value:this.content(),source:Dt(r),sourceIndex:r[C.FIELDS.START_POS]})),this.position++},t.universal=function(r){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var u=this.currToken;this.newNode(new wp.default({value:this.content(),source:Dt(u),sourceIndex:u[C.FIELDS.START_POS]}),r),this.position++},t.splitWord=function(r,i){for(var u=this,o=this.nextToken,s=this.content();o&&~[S.dollar,S.caret,S.equals,S.word].indexOf(o[C.FIELDS.TYPE]);){this.position++;var a=this.content();if(s+=a,a.lastIndexOf("\\")===a.length-1){var l=this.nextToken;l&&l[C.FIELDS.TYPE]===S.space&&(s+=this.requiredSpace(this.content(l)),this.position++)}o=this.nextToken}var f=Bi(s,".").filter(function(p){var m=s[p-1]==="\\",x=/^\d+\.\d+%$/.test(s);return!m&&!x}),d=Bi(s,"#").filter(function(p){return s[p-1]!=="\\"}),h=Bi(s,"#{");h.length&&(d=d.filter(function(p){return!~h.indexOf(p)}));var D=(0,Cp.default)(Tp([0].concat(f,d)));D.forEach(function(p,m){var x=D[m+1]||s.length,b=s.slice(p,x);if(m===0&&i)return i.call(u,b,D.length);var v,F=u.currToken,w=F[C.FIELDS.START_POS]+D[m],E=nt(F[1],F[2]+p,F[3],F[2]+(x-1));if(~f.indexOf(p)){var B={value:b.slice(1),source:E,sourceIndex:w};v=new vp.default(mt(B,"value"))}else if(~d.indexOf(p)){var R={value:b.slice(1),source:E,sourceIndex:w};v=new yp.default(mt(R,"value"))}else{var L={value:b,source:E,sourceIndex:w};mt(L,"value"),v=new xp.default(L)}u.newNode(v,r),r=null}),this.position++},t.word=function(r){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(r)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(r){switch(this.currToken[C.FIELDS.TYPE]){case S.space:this.space();break;case S.comment:this.comment();break;case S.openParenthesis:this.parentheses();break;case S.closeParenthesis:r&&this.missingParenthesis();break;case S.openSquare:this.attribute();break;case S.dollar:case S.caret:case S.equals:case S.word:this.word();break;case S.colon:this.pseudo();break;case S.comma:this.comma();break;case S.asterisk:this.universal();break;case S.ampersand:this.nesting();break;case S.slash:case S.combinator:this.combinator();break;case S.str:this.string();break;case S.closeSquare:this.missingSquareBracket();case S.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(r,i,u){if(Array.isArray(r)){var o=r.pop();r=r.join(", ")+" or "+o}var s=/^[aeiou]/.test(r[0])?"an":"a";return u?this.error("Expected "+s+" "+r+', found "'+u+'" instead.',{index:i}):this.error("Expected "+s+" "+r+".",{index:i})},t.requiredSpace=function(r){return this.options.lossy?" ":r},t.optionalSpace=function(r){return this.options.lossy?"":r},t.lossySpace=function(r,i){return this.options.lossy?i?" ":"":r},t.parseParenthesisToken=function(r){var i=this.content(r);return r[C.FIELDS.TYPE]===S.space?this.requiredSpace(i):i},t.newNode=function(r,i){return i&&(/^ +$/.test(i)&&(this.options.lossy||(this.spaces=(this.spaces||"")+i),i=!0),r.namespace=i,mt(r,"namespace")),this.spaces&&(r.spaces.before=this.spaces,this.spaces=""),this.current.append(r)},t.content=function(r){return r===void 0&&(r=this.currToken),this.css.slice(r[C.FIELDS.START_POS],r[C.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(r){r===void 0&&(r=this.position+1);for(var i=r;i<this.tokens.length;)if(kp[this.tokens[i][C.FIELDS.TYPE]]){i++;continue}else return i;return-1},Sp(e,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),e}();tr.default=Op;Ms.exports=tr.default});var $s=A((rr,Ws)=>{"use strict";c();rr.__esModule=!0;rr.default=void 0;var Ap=Pp(Ns());function Pp(e){return e&&e.__esModule?e:{default:e}}var Bp=function(){function e(n,r){this.func=n||function(){},this.funcRes=null,this.options=r}var t=e.prototype;return t._shouldUpdateSelector=function(r,i){i===void 0&&(i={});var u=Object.assign({},this.options,i);return u.updateSelector===!1?!1:typeof r!="string"},t._isLossy=function(r){r===void 0&&(r={});var i=Object.assign({},this.options,r);return i.lossless===!1},t._root=function(r,i){i===void 0&&(i={});var u=new Ap.default(r,this._parseOptions(i));return u.root},t._parseOptions=function(r){return{lossy:this._isLossy(r)}},t._run=function(r,i){var u=this;return i===void 0&&(i={}),new Promise(function(o,s){try{var a=u._root(r,i);Promise.resolve(u.func(a)).then(function(l){var f=void 0;return u._shouldUpdateSelector(r,i)&&(f=a.toString(),r.selector=f),{transform:l,root:a,string:f}}).then(o,s)}catch(l){s(l);return}})},t._runSync=function(r,i){i===void 0&&(i={});var u=this._root(r,i),o=this.func(u);if(o&&typeof o.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var s=void 0;return i.updateSelector&&typeof r!="string"&&(s=u.toString(),r.selector=s),{transform:o,root:u,string:s}},t.ast=function(r,i){return this._run(r,i).then(function(u){return u.root})},t.astSync=function(r,i){return this._runSync(r,i).root},t.transform=function(r,i){return this._run(r,i).then(function(u){return u.transform})},t.transformSync=function(r,i){return this._runSync(r,i).transform},t.process=function(r,i){return this._run(r,i).then(function(u){return u.string||u.root.toString()})},t.processSync=function(r,i){var u=this._runSync(r,i);return u.string||u.root.toString()},e}();rr.default=Bp;Ws.exports=rr.default});var qs=A(K=>{"use strict";c();K.__esModule=!0;K.universal=K.tag=K.string=K.selector=K.root=K.pseudo=K.nesting=K.id=K.comment=K.combinator=K.className=K.attribute=void 0;var Rp=_e(vi()),Ip=_e(ri()),Lp=_e(wi()),Mp=_e(ii()),Np=_e(ui()),Wp=_e(Ci()),$p=_e(pi()),qp=_e(Kn()),Up=_e(Zn()),zp=_e(ci()),Gp=_e(li()),jp=_e(xi());function _e(e){return e&&e.__esModule?e:{default:e}}var Hp=function(t){return new Rp.default(t)};K.attribute=Hp;var Vp=function(t){return new Ip.default(t)};K.className=Vp;var Yp=function(t){return new Lp.default(t)};K.combinator=Yp;var Xp=function(t){return new Mp.default(t)};K.comment=Xp;var Qp=function(t){return new Np.default(t)};K.id=Qp;var Kp=function(t){return new Wp.default(t)};K.nesting=Kp;var Jp=function(t){return new $p.default(t)};K.pseudo=Jp;var Zp=function(t){return new qp.default(t)};K.root=Zp;var e0=function(t){return new Up.default(t)};K.selector=e0;var t0=function(t){return new zp.default(t)};K.string=t0;var r0=function(t){return new Gp.default(t)};K.tag=r0;var n0=function(t){return new jp.default(t)};K.universal=n0});var js=A(z=>{"use strict";c();z.__esModule=!0;z.isNode=Ii;z.isPseudoElement=Gs;z.isPseudoClass=h0;z.isContainer=D0;z.isNamespace=m0;z.isUniversal=z.isTag=z.isString=z.isSelector=z.isRoot=z.isPseudo=z.isNesting=z.isIdentifier=z.isComment=z.isCombinator=z.isClassName=z.isAttribute=void 0;var re=fe(),ge,i0=(ge={},ge[re.ATTRIBUTE]=!0,ge[re.CLASS]=!0,ge[re.COMBINATOR]=!0,ge[re.COMMENT]=!0,ge[re.ID]=!0,ge[re.NESTING]=!0,ge[re.PSEUDO]=!0,ge[re.ROOT]=!0,ge[re.SELECTOR]=!0,ge[re.STRING]=!0,ge[re.TAG]=!0,ge[re.UNIVERSAL]=!0,ge);function Ii(e){return typeof e=="object"&&i0[e.type]}function Se(e,t){return Ii(t)&&t.type===e}var Us=Se.bind(null,re.ATTRIBUTE);z.isAttribute=Us;var o0=Se.bind(null,re.CLASS);z.isClassName=o0;var u0=Se.bind(null,re.COMBINATOR);z.isCombinator=u0;var s0=Se.bind(null,re.COMMENT);z.isComment=s0;var a0=Se.bind(null,re.ID);z.isIdentifier=a0;var l0=Se.bind(null,re.NESTING);z.isNesting=l0;var Li=Se.bind(null,re.PSEUDO);z.isPseudo=Li;var f0=Se.bind(null,re.ROOT);z.isRoot=f0;var c0=Se.bind(null,re.SELECTOR);z.isSelector=c0;var d0=Se.bind(null,re.STRING);z.isString=d0;var zs=Se.bind(null,re.TAG);z.isTag=zs;var p0=Se.bind(null,re.UNIVERSAL);z.isUniversal=p0;function Gs(e){return Li(e)&&e.value&&(e.value.startsWith("::")||e.value.toLowerCase()===":before"||e.value.toLowerCase()===":after"||e.value.toLowerCase()===":first-letter"||e.value.toLowerCase()===":first-line")}function h0(e){return Li(e)&&!Gs(e)}function D0(e){return!!(Ii(e)&&e.walk)}function m0(e){return Us(e)||zs(e)}});var Hs=A(Ae=>{"use strict";c();Ae.__esModule=!0;var Mi=fe();Object.keys(Mi).forEach(function(e){e==="default"||e==="__esModule"||e in Ae&&Ae[e]===Mi[e]||(Ae[e]=Mi[e])});var Ni=qs();Object.keys(Ni).forEach(function(e){e==="default"||e==="__esModule"||e in Ae&&Ae[e]===Ni[e]||(Ae[e]=Ni[e])});var Wi=js();Object.keys(Wi).forEach(function(e){e==="default"||e==="__esModule"||e in Ae&&Ae[e]===Wi[e]||(Ae[e]=Wi[e])})});var Xs=A((nr,Ys)=>{"use strict";c();nr.__esModule=!0;nr.default=void 0;var g0=y0($s()),b0=v0(Hs());function Vs(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Vs=function(){return e},e}function v0(e){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Vs();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=r?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function y0(e){return e&&e.__esModule?e:{default:e}}var $i=function(t){return new g0.default(t)};Object.assign($i,b0);delete $i.__esModule;var x0=$i;nr.default=x0;Ys.exports=nr.default});var Qs=A(qi=>{"use strict";c();Object.defineProperty(qi,"__esModule",{value:!0});Object.defineProperty(qi,"default",{enumerable:!0,get:()=>F0});function F0(e){return e.replace(/\\,/g,"\\2c ")}});var Js=A((Fg,Ks)=>{"use strict";c();Ks.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 zi=A(Ui=>{"use strict";c();Object.defineProperty(Ui,"__esModule",{value:!0});function w0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}w0(Ui,{parseColor:()=>T0,formatColor:()=>O0});var Zs=E0(Js());function E0(e){return e&&e.__esModule?e:{default:e}}var C0=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,_0=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Xe=/(?:\d+|\d*\.\d+)%?/,Jr=/(?:\s*,\s*|\s+)/,ea=/\s*[,/]\s*/,Qe=/var\(--(?:[^ )]*?)\)/,S0=new RegExp(`^(rgb)a?\\(\\s*(${Xe.source}|${Qe.source})(?:${Jr.source}(${Xe.source}|${Qe.source}))?(?:${Jr.source}(${Xe.source}|${Qe.source}))?(?:${ea.source}(${Xe.source}|${Qe.source}))?\\s*\\)$`),k0=new RegExp(`^(hsl)a?\\(\\s*((?:${Xe.source})(?:deg|rad|grad|turn)?|${Qe.source})(?:${Jr.source}(${Xe.source}|${Qe.source}))?(?:${Jr.source}(${Xe.source}|${Qe.source}))?(?:${ea.source}(${Xe.source}|${Qe.source}))?\\s*\\)$`);function T0(e,{loose:t=!1}={}){var n,r;if(typeof e!="string")return null;if(e=e.trim(),e==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(e in Zs.default)return{mode:"rgb",color:Zs.default[e].map(a=>a.toString())};let i=e.replace(_0,(a,l,f,d,h)=>["#",l,l,f,f,d,d,h?h+h:""].join("")).match(C0);if(i!==null)return{mode:"rgb",color:[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)].map(a=>a.toString()),alpha:i[4]?(parseInt(i[4],16)/255).toString():void 0};var u;let o=(u=e.match(S0))!==null&&u!==void 0?u:e.match(k0);if(o===null)return null;let s=[o[2],o[3],o[4]].filter(Boolean).map(a=>a.toString());return!t&&s.length!==3||s.length<3&&!s.some(a=>/^var\(.*?\)$/.test(a))?null:{mode:o[1],color:s,alpha:(n=o[5])===null||n===void 0||(r=n.toString)===null||r===void 0?void 0:r.call(n)}}function O0({mode:e,color:t,alpha:n}){let r=n!==void 0;return`${e}(${t.join(" ")}${r?` / ${n}`:""})`}});var ji=A(Gi=>{"use strict";c();Object.defineProperty(Gi,"__esModule",{value:!0});function A0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}A0(Gi,{withAlphaValue:()=>P0,default:()=>B0});var Zr=zi();function P0(e,t,n){if(typeof e=="function")return e({opacityValue:t});let r=(0,Zr.parseColor)(e,{loose:!0});return r===null?n:(0,Zr.formatColor)({...r,alpha:t})}function B0({color:e,property:t,variable:n}){let r=[].concat(t);if(typeof e=="function")return{[n]:"1",...Object.fromEntries(r.map(u=>[u,e({opacityVariable:n,opacityValue:`var(${n})`})]))};let i=(0,Zr.parseColor)(e);return i===null?Object.fromEntries(r.map(u=>[u,e])):i.alpha!==void 0?Object.fromEntries(r.map(u=>[u,e])):{[n]:"1",...Object.fromEntries(r.map(u=>[u,(0,Zr.formatColor)({...i,alpha:`var(${n})`})]))}}});var oa=A(Hi=>{"use strict";c();Object.defineProperty(Hi,"__esModule",{value:!0});function R0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}R0(Hi,{pattern:()=>L0,withoutCapturing:()=>ra,any:()=>na,optional:()=>M0,zeroOrMore:()=>N0,nestedBrackets:()=>ia,escape:()=>it});var ta=/[\\^$.*+?()[\]{}|]/g,I0=RegExp(ta.source);function ir(e){return e=Array.isArray(e)?e:[e],e=e.map(t=>t instanceof RegExp?t.source:t),e.join("")}function L0(e){return new RegExp(ir(e),"g")}function ra(e){return new RegExp(`(?:${ir(e)})`,"g")}function na(e){return`(?:${e.map(ir).join("|")})`}function M0(e){return`(?:${ir(e)})?`}function N0(e){return`(?:${ir(e)})*`}function ia(e,t,n=1){return ra([it(e),/[^\s]*/,n===1?`[^${it(e)}${it(t)}s]*`:na([`[^${it(e)}${it(t)}s]*`,ia(e,t,n-1)]),/[^\s]*/,it(t)])}function it(e){return e&&I0.test(e)?e.replace(ta,"\\$&"):e||""}});var sa=A(Vi=>{"use strict";c();Object.defineProperty(Vi,"__esModule",{value:!0});Object.defineProperty(Vi,"splitAtTopLevelOnly",{enumerable:!0,get:()=>q0});var W0=$0(oa());function ua(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ua=function(r){return r?n:t})(e)}function $0(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ua(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&Object.prototype.hasOwnProperty.call(e,u)){var o=i?Object.getOwnPropertyDescriptor(e,u):null;o&&(o.get||o.set)?Object.defineProperty(r,u,o):r[u]=e[u]}return r.default=e,n&&n.set(e,r),r}function*q0(e,t){let n=new RegExp(`[(){}\\[\\]${W0.escape(t)}]`,"g"),r=0,i=0,u=!1,o=0,s=0,a=t.length;for(let l of e.matchAll(n)){let f=l[0]===t[o],d=o===a-1,h=f&&d;l[0]==="("&&r++,l[0]===")"&&r--,l[0]==="["&&r++,l[0]==="]"&&r--,l[0]==="{"&&r++,l[0]==="}"&&r--,f&&r===0&&(s===0&&(s=l.index),o++),h&&r===0&&(u=!0,yield e.substring(i,s),i=s+a),o===a&&(o=0,s=0)}u?yield e.substring(i):yield e}});var la=A(Yi=>{"use strict";c();Object.defineProperty(Yi,"__esModule",{value:!0});function U0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}U0(Yi,{parseBoxShadowValue:()=>H0,formatBoxShadowValue:()=>V0});var z0=sa(),G0=new Set(["inset","inherit","initial","revert","unset"]),j0=/\ +(?![^(]*\))/g,aa=/^-?(\d+|\.\d+)(.*?)$/g;function H0(e){return Array.from((0,z0.splitAtTopLevelOnly)(e,",")).map(n=>{let r=n.trim(),i={raw:r},u=r.split(j0),o=new Set;for(let s of u)aa.lastIndex=0,!o.has("KEYWORD")&&G0.has(s)?(i.keyword=s,o.add("KEYWORD")):aa.test(s)?o.has("X")?o.has("Y")?o.has("BLUR")?o.has("SPREAD")||(i.spread=s,o.add("SPREAD")):(i.blur=s,o.add("BLUR")):(i.y=s,o.add("Y")):(i.x=s,o.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(s)):i.color=s;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function V0(e){return e.map(t=>t.valid?[t.keyword,t.x,t.y,t.blur,t.spread,t.color].filter(Boolean).join(" "):t.raw).join(", ")}});var ma=A(Qi=>{"use strict";c();Object.defineProperty(Qi,"__esModule",{value:!0});function Y0(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Y0(Qi,{normalize:()=>Ke,url:()=>da,number:()=>K0,percentage:()=>pa,length:()=>ha,lineWidth:()=>eh,shadow:()=>th,color:()=>rh,image:()=>nh,gradient:()=>Da,position:()=>uh,familyName:()=>sh,genericName:()=>lh,absoluteSize:()=>ch,relativeSize:()=>ph});var X0=zi(),Q0=la(),Xi=["min","max","clamp","calc"],ca=/,(?![^(]*\))/g,en=/_(?![^(]*\))/g;function Ke(e,t=!0){return e.includes("url(")?e.split(/(url\(.*?\))/g).filter(Boolean).map(n=>/^url\(.*?\)$/.test(n)?n:Ke(n,!1)).join(""):(e=e.replace(/([^\\])_+/g,(n,r)=>r+" ".repeat(n.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),t&&(e=e.trim()),e=e.replace(/(calc|min|max|clamp)\(.+\)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),e)}function da(e){return e.startsWith("url(")}function K0(e){return!isNaN(Number(e))||Xi.some(t=>new RegExp(`^${t}\\(.+?`).test(e))}function pa(e){return e.split(en).every(t=>/%$/g.test(t)||Xi.some(n=>new RegExp(`^${n}\\(.+?%`).test(t)))}var J0=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],fa=`(?:${J0.join("|")})`;function ha(e){return e.split(en).every(t=>t==="0"||new RegExp(`${fa}$`).test(t)||Xi.some(n=>new RegExp(`^${n}\\(.+?${fa}`).test(t)))}var Z0=new Set(["thin","medium","thick"]);function eh(e){return Z0.has(e)}function th(e){let t=(0,Q0.parseBoxShadowValue)(Ke(e));for(let n of t)if(!n.valid)return!1;return!0}function rh(e){let t=0;return e.split(en).every(r=>(r=Ke(r),r.startsWith("var(")?!0:(0,X0.parseColor)(r,{loose:!0})!==null?(t++,!0):!1))?t>0:!1}function nh(e){let t=0;return e.split(ca).every(r=>(r=Ke(r),r.startsWith("var(")?!0:da(r)||Da(r)||["element(","image(","cross-fade(","image-set("].some(i=>r.startsWith(i))?(t++,!0):!1))?t>0:!1}var ih=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function Da(e){e=Ke(e);for(let t of ih)if(e.startsWith(`${t}(`))return!0;return!1}var oh=new Set(["center","top","right","bottom","left"]);function uh(e){let t=0;return e.split(en).every(r=>(r=Ke(r),r.startsWith("var(")?!0:oh.has(r)||ha(r)||pa(r)?(t++,!0):!1))?t>0:!1}function sh(e){let t=0;return e.split(ca).every(r=>(r=Ke(r),r.startsWith("var(")?!0:r.includes(" ")&&!/(['"])([^"']+)\1/g.test(r)||/^\d/g.test(r)?!1:(t++,!0)))?t>0:!1}var ah=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function lh(e){return ah.has(e)}var fh=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function ch(e){return fh.has(e)}var dh=new Set(["larger","smaller"]);function ph(e){return dh.has(e)}});var Ea=A(Zi=>{"use strict";c();Object.defineProperty(Zi,"__esModule",{value:!0});function hh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}hh(Zi,{updateAllClasses:()=>gh,asValue:()=>ur,parseColorFormat:()=>Ki,asColor:()=>xa,asLookupValue:()=>Fa,coerceValue:()=>xh});var Dh=Ji(Xs()),mh=Ji(Qs()),ga=ji(),be=ma(),ba=Ji(Mn());function Ji(e){return e&&e.__esModule?e:{default:e}}function gh(e,t){return(0,Dh.default)(i=>{i.walkClasses(u=>{let o=t(u.value);u.value=o,u.raws&&u.raws.value&&(u.raws.value=(0,mh.default)(u.raws.value))})}).processSync(e)}function ya(e,t){if(!or(e))return;let n=e.slice(1,-1);if(!!t(n))return(0,be.normalize)(n)}function bh(e,t={},n){let r=t[e];if(r!==void 0)return(0,ba.default)(r);if(or(e)){let i=ya(e,n);return i===void 0?void 0:(0,ba.default)(i)}}function ur(e,t={},{validate:n=()=>!0}={}){var r;let i=(r=t.values)===null||r===void 0?void 0:r[e];return i!==void 0?i:t.supportsNegativeValues&&e.startsWith("-")?bh(e.slice(1),t.values,n):ya(e,n)}function or(e){return e.startsWith("[")&&e.endsWith("]")}function vh(e){let t=e.lastIndexOf("/");return t===-1||t===e.length-1?[e]:[e.slice(0,t),e.slice(t+1)]}function Ki(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let t=e;return({opacityValue:n=1})=>t.replace("<alpha-value>",n)}return e}function xa(e,t={},{tailwindConfig:n={}}={}){var r;if(((r=t.values)===null||r===void 0?void 0:r[e])!==void 0){var i;return Ki((i=t.values)===null||i===void 0?void 0:i[e])}let[u,o]=vh(e);if(o!==void 0){var s,a,l,f;let d=(f=(s=t.values)===null||s===void 0?void 0:s[u])!==null&&f!==void 0?f:or(u)?u.slice(1,-1):void 0;return d===void 0?void 0:(d=Ki(d),or(o)?(0,ga.withAlphaValue)(d,o.slice(1,-1)):((a=n.theme)===null||a===void 0||(l=a.opacity)===null||l===void 0?void 0:l[o])===void 0?void 0:(0,ga.withAlphaValue)(d,n.theme.opacity[o]))}return ur(e,t,{validate:be.color})}function Fa(e,t={}){var n;return(n=t.values)===null||n===void 0?void 0:n[e]}function ke(e){return(t,n)=>ur(t,n,{validate:e})}var wa={any:ur,color:xa,url:ke(be.url),image:ke(be.image),length:ke(be.length),percentage:ke(be.percentage),position:ke(be.position),lookup:Fa,"generic-name":ke(be.genericName),"family-name":ke(be.familyName),number:ke(be.number),"line-width":ke(be.lineWidth),"absolute-size":ke(be.absoluteSize),"relative-size":ke(be.relativeSize),shadow:ke(be.shadow)},va=Object.keys(wa);function yh(e,t){let n=e.indexOf(t);return n===-1?[void 0,e]:[e.slice(0,n),e.slice(n+1)]}function xh(e,t,n,r){if(or(t)){let i=t.slice(1,-1),[u,o]=yh(i,":");if(!/^[\w-_]+$/g.test(u))o=i;else if(u!==void 0&&!va.includes(u))return[];if(o.length>0&&va.includes(u))return[ur(`[${o}]`,n),u]}for(let i of[].concat(e)){let u=wa[i](t,n,{tailwindConfig:r});if(u!==void 0)return[u,i]}return[]}});var Ca=A(eo=>{"use strict";c();Object.defineProperty(eo,"__esModule",{value:!0});Object.defineProperty(eo,"default",{enumerable:!0,get:()=>Fh});function Fh(e){return typeof e=="function"?e({}):e}});var Oa=A(ro=>{"use strict";c();Object.defineProperty(ro,"__esModule",{value:!0});Object.defineProperty(ro,"default",{enumerable:!0,get:()=>Uh});var wh=ot(Mn()),Eh=ot(Bu()),Ch=ot(Ru()),_h=ot($n()),Sh=ot(Lu()),ka=Mu(),_a=Nu(),kh=$u(),Th=ot(qu()),Oh=Uu(),Ah=Ea(),Ph=ji(),Bh=ot(Ca());function ot(e){return e&&e.__esModule?e:{default:e}}function gt(e){return typeof e=="function"}function sr(e){return typeof e=="object"&&e!==null}function ar(e,...t){let n=t.pop();for(let r of t)for(let i in r){let u=n(e[i],r[i]);u===void 0?sr(e[i])&&sr(r[i])?e[i]=ar(e[i],r[i],n):e[i]=r[i]:e[i]=u}return e}var to={colors:Sh.default,negative(e){return Object.keys(e).filter(t=>e[t]!=="0").reduce((t,n)=>{let r=(0,wh.default)(e[n]);return r!==void 0&&(t[`-${n}`]=r),t},{})},breakpoints(e){return Object.keys(e).filter(t=>typeof e[t]=="string").reduce((t,n)=>({...t,[`screen-${n}`]:e[n]}),{})}};function Rh(e,...t){return gt(e)?e(...t):e}function Ih(e){return e.reduce((t,{extend:n})=>ar(t,n,(r,i)=>r===void 0?[i]:Array.isArray(r)?[i,...r]:[i,r]),{})}function Lh(e){return{...e.reduce((t,n)=>(0,ka.defaults)(t,n),{}),extend:Ih(e)}}function Sa(e,t){if(Array.isArray(e)&&sr(e[0]))return e.concat(t);if(Array.isArray(t)&&sr(t[0])&&sr(e))return[e,...t];if(Array.isArray(t))return t}function Mh({extend:e,...t}){return ar(t,e,(n,r)=>!gt(n)&&!r.some(gt)?ar({},n,...r,Sa):(i,u)=>ar({},...[n,...r].map(o=>Rh(o,i,u)),Sa))}function*Nh(e){let t=(0,_a.toPath)(e);if(t.length===0||(yield t,Array.isArray(e)))return;let n=/^(.*?)\s*\/\s*([^/]+)$/,r=e.match(n);if(r!==null){let[,i,u]=r,o=(0,_a.toPath)(i);o.alpha=u,yield o}}function Wh(e){let t=(n,r)=>{for(let i of Nh(n)){let u=0,o=e;for(;o!=null&&u<i.length;)o=o[i[u++]],o=gt(o)&&(i.alpha===void 0||u<=i.length-1)?o(t,to):o;if(o!==void 0){if(i.alpha!==void 0){let s=(0,Ah.parseColorFormat)(o);return(0,Ph.withAlphaValue)(s,i.alpha,(0,Bh.default)(s))}return(0,Th.default)(o)?(0,Oh.cloneDeep)(o):o}}return r};return Object.assign(t,{theme:t,...to}),Object.keys(e).reduce((n,r)=>(n[r]=gt(e[r])?e[r](t,to):e[r],n),{})}function Ta(e){let t=[];return e.forEach(n=>{t=[...t,n];var r;let i=(r=n==null?void 0:n.plugins)!==null&&r!==void 0?r:[];i.length!==0&&i.forEach(u=>{u.__isOptionsFunction&&(u=u());var o;t=[...t,...Ta([(o=u==null?void 0:u.config)!==null&&o!==void 0?o:{}])]})}),t}function $h(e){return[...e].reduceRight((n,r)=>gt(r)?r({corePlugins:n}):(0,Ch.default)(r,n),Eh.default)}function qh(e){return[...e].reduceRight((n,r)=>[...n,...r],[])}function Uh(e){let t=[...Ta(e),{prefix:"",important:!1,separator:":",variantOrder:_h.default.variantOrder}];var n,r;return(0,kh.normalizeConfig)((0,ka.defaults)({theme:Wh(Mh(Lh(t.map(i=>(n=i==null?void 0:i.theme)!==null&&n!==void 0?n:{})))),corePlugins:$h(t.map(i=>i.corePlugins)),plugins:qh(e.map(i=>(r=i==null?void 0:i.plugins)!==null&&r!==void 0?r:[]))},...t))}});var Aa={};Fr(Aa,{default:()=>zh});var zh,Pa=xr(()=>{c();zh={yellow:e=>e}});var La=A(no=>{"use strict";c();Object.defineProperty(no,"__esModule",{value:!0});function Gh(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}Gh(no,{flagEnabled:()=>Vh,issueFlagNotices:()=>Yh,default:()=>Xh});var jh=Ia((Pa(),Ft(Aa))),Hh=Ia((Wr(),Ft(Nr)));function Ia(e){return e&&e.__esModule?e:{default:e}}var Ba={optimizeUniversalDefaults:!1},lr={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function Vh(e,t){if(lr.future.includes(t)){var n,r,i;return e.future==="all"||((i=(r=e==null||(n=e.future)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:Ba[t])!==null&&i!==void 0?i:!1)}if(lr.experimental.includes(t)){var u,o,s;return e.experimental==="all"||((s=(o=e==null||(u=e.experimental)===null||u===void 0?void 0:u[t])!==null&&o!==void 0?o:Ba[t])!==null&&s!==void 0?s:!1)}return!1}function Ra(e){if(e.experimental==="all")return lr.experimental;var t;return Object.keys((t=e==null?void 0:e.experimental)!==null&&t!==void 0?t:{}).filter(n=>lr.experimental.includes(n)&&e.experimental[n])}function Yh(e){if(process.env.JEST_WORKER_ID===void 0&&Ra(e).length>0){let t=Ra(e).map(n=>jh.default.yellow(n)).join(", ");Hh.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${t}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var Xh=lr});var Na=A(io=>{"use strict";c();Object.defineProperty(io,"__esModule",{value:!0});Object.defineProperty(io,"default",{enumerable:!0,get:()=>Ma});var Qh=Jh($n()),Kh=La();function Jh(e){return e&&e.__esModule?e:{default:e}}function Ma(e){var t;let n=((t=e==null?void 0:e.presets)!==null&&t!==void 0?t:[Qh.default]).slice().reverse().flatMap(u=>Ma(typeof u=="function"?u():u)),r={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},i=Object.keys(r).filter(u=>(0,Kh.flagEnabled)(e,u)).map(u=>r[u]);return[e,...i,...n]}});var $a=A(oo=>{"use strict";c();Object.defineProperty(oo,"__esModule",{value:!0});Object.defineProperty(oo,"default",{enumerable:!0,get:()=>tD});var Zh=Wa(Oa()),eD=Wa(Na());function Wa(e){return e&&e.__esModule?e:{default:e}}function tD(...e){let[,...t]=(0,eD.default)(e[0]);return(0,Zh.default)([...e,...t])}});var Ua=A((Ig,qa)=>{c();var uo=$a();qa.exports=(uo.__esModule?uo:{default:uo}).default});var xD={};Fr(xD,{default:()=>Co,init:()=>Mo});module.exports=Ft(xD);c();c();c();var pt;function Mo(e){pt=e}var wt=null;async function Ne(){return pt||(wt?(await wt,pt):(wt=Promise.resolve().then(()=>(Lo(),Io)).then(e=>e.getYogaModule()).then(e=>pt=e),await wt,wt=null,pt))}c();c();c();var Et=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),El=Et((e,t)=>{t.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),Cl=Et((e,t)=>{t.exports=["deg","grad","rad","turn"]}),_l=Et((e,t)=>{t.exports=["dpi","dpcm","dppx"]}),Sl=Et((e,t)=>{t.exports=["Hz","kHz"]}),kl=Et((e,t)=>{t.exports=["s","ms"]}),Tl=El(),No=Cl(),Wo=_l(),$o=Sl(),qo=kl();function pn(e){if(/\.\D?$/.test(e))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(e))throw new Error("Only one leading +/- is allowed");if(Ol(e)>1)throw new Error("Only one dot is allowed");if(/%$/.test(e)){this.type="percentage",this.value=dn(e),this.unit="%";return}var t=Pl(e);if(!t){this.type="number",this.value=dn(e);return}this.type=Rl(t),this.value=dn(e.substr(0,e.length-t.length)),this.unit=t}pn.prototype.valueOf=function(){return this.value};pn.prototype.toString=function(){return this.value+(this.unit||"")};function Ve(e){return new pn(e)}function Ol(e){var t=e.match(/\./g);return t?t.length:0}function dn(e){var t=parseFloat(e);if(isNaN(t))throw new Error("Invalid number: "+e);return t}var Al=[].concat(No,$o,Tl,Wo,qo);function Pl(e){var t=e.match(/\D+$/),n=t&&t[0];if(n&&Al.indexOf(n)===-1)throw new Error("Invalid unit: "+n);return n}var Bl=Object.assign(wr(No,"angle"),wr($o,"frequency"),wr(Wo,"resolution"),wr(qo,"time"));function wr(e,t){return Object.fromEntries(e.map(n=>[n,t]))}function Rl(e){return Bl[e]||"length"}var Uo=dt(require("linebreak"),1);function Er(e){let t=typeof e;return!(t==="number"||t==="bigint"||t==="string"||t==="boolean")}function zo(e){return/^class\s/.test(e.toString())}function Go(e){return"dangerouslySetInnerHTML"in e}function jo(e){let t=typeof e>"u"?[]:[].concat(e).flat(1/0),n=[];for(let r=0;r<t.length;r++){let i=t[r];typeof i>"u"||typeof i=="boolean"||i===null||(typeof i=="number"&&(i=String(i)),typeof i=="string"&&n.length&&typeof n[n.length-1]=="string"?n[n.length-1]+=i:n.push(i))}return n}function j(e,t,n,r,i=!1){if(typeof e=="number")return e;try{if(e=e.trim(),/[ /\(,]/.test(e))return;if(e===String(+e))return+e;let u=new Ve(e);if(u.type==="length")switch(u.unit){case"em":return u.value*t;case"rem":return u.value*16;case"vw":return~~(u.value*r._viewportWidth/100);case"vh":return~~(u.value*r._viewportHeight/100);default:return u.value}else if(u.type==="angle")switch(u.unit){case"deg":return u.value;case"rad":return u.value*180/Math.PI;default:return u.value}else if(u.type==="percentage"&&i)return u.value/100*n}catch{}}function Ct(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function me(e,t,n,r){let i=t[e];if(typeof i>"u"){if(r&&typeof e<"u")throw new Error(`Invalid value for CSS property "${r}". Allowed values: ${Object.keys(t).map(u=>`"${u}"`).join(" | ")}. Received: "${e}".`);i=n}return i}var hn,Dn,Ho=[32,160,4961,65792,65793,4153,4241,10].map(e=>String.fromCodePoint(e));function De(e,t,n){if(!hn||!Dn){if(!(typeof Intl<"u"&&"Segmenter"in Intl))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");hn=new Intl.Segmenter(n,{granularity:"word"}),Dn=new Intl.Segmenter(n,{granularity:"grapheme"})}if(t==="grapheme")return[...Dn.segment(e)].map(r=>r.segment);{let r=[...hn.segment(e)].map(o=>o.segment),i=[],u=0;for(;u<r.length;){let o=r[u];if(o=="\xA0"){let s=u===0?"":i.pop(),a=u===r.length-1?"":r[u+1];i.push(s+"\xA0"+a),u+=2}else i.push(o),u++}return i}}function k(e,t,n){let r="";for(let[i,u]of Object.entries(t))typeof u<"u"&&(r+=` ${i}="${u}"`);return n?`<${e}${r}>${n}</${e}>`:`<${e}${r}/>`}function Vo(e=20){let t=new Map;function n(i,u){if(t.size>=e){let o=t.keys().next().value;t.delete(o)}t.set(i,u)}function r(i){if(!t.has(i))return;let o=t.get(i);return t.delete(i),t.set(i,o),o}return{set:n,get:r}}var Yo={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},Il=/[\r\n%#()<>?[\\\]^`{|}"']/g;function mn(e,t){if(!e)return"";if(Array.isArray(e))return e.map(s=>mn(s,t)).join("");if(typeof e!="object")return String(e);let n=e.type;if(n==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:r,style:i,...u}=e.props||{},o=(i==null?void 0:i.color)||t;return`<${n}${Object.entries(u).map(([s,a])=>(typeof a=="string"&&a.toLowerCase()==="currentcolor"&&(a=o),` ${Yo[s]||s}="${a}"`)).join("")}>${mn(r,o)}</${n}>`}function _t(e){return e?e.split(/[, ]/).filter(Boolean).map(Number):null}function Xo(e,t){let{viewBox:n,viewbox:r,width:i,height:u,className:o,style:s,children:a,...l}=e.props||{};n||=r,l.xmlns="http://www.w3.org/2000/svg";let f=(s==null?void 0:s.color)||t,d=_t(n),h=d?d[3]/d[2]:null;return i=i||h&&u?u/h:null,u=u||h&&i?i*h:null,l.width=i,l.height=u,n&&(l.viewBox=n),`data:image/svg+xml;utf8,${`<svg ${Object.entries(l).map(([D,p])=>(typeof p=="string"&&p.toLowerCase()==="currentcolor"&&(p=f),` ${Yo[D]||D}="${p}"`)).join("")}>${mn(a,f)}</svg>`.replace(Il,encodeURIComponent)}`}function Ll(e){return Object.prototype.toString.call(e)}function Qo(e){return typeof e=="string"}function Ko(e){return Ll(e)==="[object Undefined]"}function Jo(e,t){if(t==="break-all")return{words:De(e,"grapheme"),requiredBreaks:[]};if(t==="keep-all")return{words:De(e,"word"),requiredBreaks:[]};let n=new Uo.default(e),r=0,i=n.nextBreak(),u=[],o=[!1];for(;i;){let s=e.slice(r,i.position);u.push(s),i.required?o.push(!0):o.push(!1),r=i.position,i=n.nextBreak()}return{words:u,requiredBreaks:o}}c();c();var Ee="flex",Zo={p:{display:Ee,marginTop:"1em",marginBottom:"1em"},div:{display:Ee},blockquote:{display:Ee,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Ee,textAlign:"center"},hr:{display:Ee,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Ee,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Ee,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Ee,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Ee,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Ee,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Ee,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:Ee,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}};c();var Ml=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function gn(e){let t={};for(let n in e)Ml.has(n)&&(t[n]=e[n]);return t}c();var Oe=require("css-to-react-native"),iu=require("css-background-parser"),ou=require("css-box-shadow"),uu=dt(require("parse-css-color"),1);c();var eu=dt(require("postcss-value-parser"),1);function Nl(e,t){try{let n=new Ve(e);switch(n.unit){case"px":return{absolute:n.value};case"em":return{absolute:n.value*t};case"rem":return{absolute:n.value*16};case"%":return{relative:n.value};default:return{}}}catch{return{}}}function bn(e,t,n){switch(e){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let r=Nl(e,t);return r.absolute?{[n?"xAbsolute":"yAbsolute"]:r.absolute}:r.relative?{[n?"xRelative":"yRelative"]:r.relative}:{}}}}function vn(e,t){if(typeof e=="number")return{xAbsolute:e};let n;try{n=(0,eu.default)(e).nodes.filter(r=>r.type==="word").map(r=>r.value)}catch{return{}}return n.length===1?bn(n[0],t,!0):n.length===2?((n[0]==="top"||n[0]==="bottom"||n[1]==="left"||n[1]==="right")&&n.reverse(),{...bn(n[0],t,!0),...bn(n[1],t,!1)}):{}}var Wl=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),$l=new Set(["lineHeight"]);function ql(e,t,n,r){return e==="textDecoration"&&!n.includes(t.textDecorationColor)&&(t.textDecorationColor=r),t}function St(e,t){return typeof t=="number"?Wl.has(e)?$l.has(e)?t:String(t):t+"px":t}function Ul(e,t,n){if(e==="lineHeight")return{lineHeight:St(e,t)};if(e==="fontFamily")return{fontFamily:t.split(",").map(r=>r.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(e==="borderRadius"){if(typeof t!="string"||!t.includes("/"))return;let[r,i]=t.split("/"),u=(0,Oe.getStylesForProperty)(e,r,!0),o=(0,Oe.getStylesForProperty)(e,i,!0);for(let s in u)o[s]=St(e,u[s])+" "+St(e,o[s]);return o}if(/^border(Top|Right|Bottom|Left)?$/.test(e)){let r=(0,Oe.getStylesForProperty)("border",t,!0);r.borderWidth===1&&!String(t).includes("1px")&&(r.borderWidth=3),r.borderColor==="black"&&!String(t).includes("black")&&(r.borderColor=n);let i={Width:St(e+"Width",r.borderWidth),Style:me(r.borderStyle,{solid:"solid",dashed:"dashed"},"solid",e+"Style"),Color:r.borderColor},u={};for(let o of e==="border"?["Top","Right","Bottom","Left"]:[e.slice(6)])for(let s in i)u["border"+o+s]=i[s];return u}if(e==="boxShadow"){if(!t)throw new Error('Invalid `boxShadow` value: "'+t+'".');return{[e]:typeof t=="string"?(0,ou.parse)(t):t}}if(e==="transform"){if(typeof t!="string")throw new Error("Invalid `transform` value.");let r={},i=t.replace(/(-?[\d.]+%)/g,(o,s)=>{let a=~~(Math.random()*1e9);return r[a]=s,a+"px"}),u=(0,Oe.getStylesForProperty)("transform",i,!0);for(let o of u.transform)for(let s in o)r[o[s]]&&(o[s]=r[o[s]]);return u}if(e==="background")return t=t.toString().trim(),/^(linear-gradient|radial-gradient|url)\(/.test(t)?(0,Oe.getStylesForProperty)("backgroundImage",t,!0):(0,Oe.getStylesForProperty)("background",t,!0);if(e==="textShadow"&&(t=t.toString().trim(),t.includes(","))){let r=zl(t),i={};for(let u of r){let o=(0,Oe.getStylesForProperty)("textShadow",u,!0);for(let s in o)i[s]?i[s].push(o[s]):i[s]=[o[s]]}return i}}function zl(e){let t=[],n=!1,r=0,i=e.length;for(let u=0;u<i;++u){let o=e[u];o===")"&&(n=!1),!n&&(o==="("&&(n=!0),o===","&&(t.push(e.substring(r,u)),r=u+1))}return t.push(e.substring(r,i)),t.map(u=>u.trim())}function tu(e){return e==="transform"?" Only absolute lengths such as `10px` are supported.":""}var ru=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function su(e){if(typeof e=="string"&&ru.test(e.trim()))return e.trim().replace(ru,(t,n,r,i,u)=>`rgba(${n}, ${r}, ${i}, ${u})`);if(typeof e=="object"&&e!==null){for(let t in e)e[t]=su(e[t]);return e}return e}function Cr(e,t){let n={};if(e){let i=jl(e.color,t.color);n.color=i;for(let u in e){if(u.startsWith("_")){n[u]=e[u];continue}if(u==="color")continue;let o=(0,Oe.getPropertyName)(u),s=Vl(e[u],i);try{let a=Ul(o,s,i)||ql(o,(0,Oe.getStylesForProperty)(o,St(o,s),!0),s,i);Object.assign(n,a)}catch(a){throw new Error(a.message+(a.message.includes(s)?`
4
4
  `+tu(o):`
5
- in CSS rule \`${o}: ${s}\`.${tu(o)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,iu.parseElementStyle)(n);n.backgroundImage=i}let r=Gl(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=vn(n.transformOrigin,r));for(let i in n){let u=n[i];if(i==="lineHeight")typeof u=="string"&&(u=n[i]=j(u,r,r,t,!0)/r);else{if(typeof u=="string"){let o=j(u,r,r,t);typeof o<"u"&&(n[i]=o),u=n[i]}if(typeof u=="string"||typeof u=="object"){let o=su(u);o&&(n[i]=o),u=n[i]}}if(i==="opacity"&&(u=n[i]=u*t.opacity),i==="transform"){let o=u;for(let s of o){let a=Object.keys(s)[0],l=s[a],f=typeof l=="string"?j(l,r,r,t)??l:l;s[a]=f}}}return n}function Gl(e,t){if(typeof e=="number")return e;try{let n=new Ve(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function nu(e){if(e.startsWith("hsl")){let t=(0,uu.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function jl(e,t){return e&&e.toLowerCase()!=="currentcolor"?nu(e):nu(t)}function Hl(e,t){return e.replace(/currentcolor/gi,t)}function Vl(e,t){return Qo(e)&&(e=Hl(e,t)),e}c();var Yl="image/avif",Xl="image/webp",_r="image/png",Sr="image/jpeg",kr="image/gif",xn="image/svg+xml";function cu(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let u=t.getUint8(i+1+n);if(u===192||u===193||u===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function du(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function pu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var au=Vo(100),yn=new Map,Ql=[_r,Sr,kr,xn];function Kl(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Jl(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function lu(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?_t(r[1]):null,u=n.match(/width=['"](\d*\.\d+|\d+)['"]/),o=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!u||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let s=i?[i[2],i[3]]:[+u[1],+o[1]],a=s[0]/s[1];return u&&o?[+u[1],+o[1]]:u?[+u[1],+u[1]/a]:o?[+o[1]*a,+o[1]]:[s[0],s[1]]}function fu(e){let t,n=Zl(new Uint8Array(e));switch(n){case _r:t=pu(e);break;case kr:t=du(e);break;case Sr:t=cu(e);break}if(!Ql.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${Kl(e)}`,t]}async function Tr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,u]=fu(e);return[i,...u]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;(?<encodingType>base64|utf8))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:u,encodingType:o,dataString:s}=i;if(u===xn){let a=o==="base64"?atob(s):decodeURIComponent(s.replace(/ /g,"%20")),l=o==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,f=lu(e,a);return[l,...f]}else if(o==="base64"){let a,l=Jl(s);switch(u){case _r:a=pu(l);break;case kr:a=du(l);break;case Sr:a=cu(l);break}return[e,...a]}else return console.warn("Image data URI resolved without size:"+e),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(yn.has(e))return yn.get(e);let t=au.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let u=i.headers.get("content-type");return u==="image/svg+xml"||u==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let s=`data:image/svg+xml;base64,${btoa(i)}`,a=lu(n,i);return[s,...a]}catch(s){throw new Error(`Failed to parse SVG image: ${s.message}`)}let[u,o]=fu(i);return[u,...o]}).then(i=>(au.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),[]));return yn.set(n,r),r}function Zl(e){return[255,216,255].every((t,n)=>e[n]===t)?Sr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?_r:[71,73,70,56].every((t,n)=>e[n]===t)?kr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Xl:[60,63,120,109,108].every((t,n)=>e[n]===t)?xn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Yl:null}async function Fn(e,t,n,r,i){let u=await Ne(),o={...n,...Cr(Zo[t],n),...Cr(r,n)};if(t==="img"){let[s,a,l]=await Tr(i.src);if(a===void 0&&l===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");a=parseInt(i.width),l=parseInt(i.height)}let f=l/a,d=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),h=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),D=o.width||i.width,p=o.height||i.height,m=typeof D=="number"&&typeof p=="number";m&&(D-=d,p-=h),D===void 0&&p===void 0?(D="100%",e.setAspectRatio(1/f)):D===void 0?typeof p=="number"?D=p/f:e.setAspectRatio(1/f):p===void 0&&(typeof D=="number"?p=D*f:e.setAspectRatio(1/f)),o.width=m?D+d:D,o.height=m?p+h:p,o.__src=s}if(t==="svg"){let s=i.viewBox||i.viewbox,a=_t(s),l=a?a[3]/a[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=j(d,n.fontSize,1,n),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=j(f,n.fontSize,1,n),d=f*l):(typeof f<"u"&&(f=j(f,n.fontSize,1,n)||f),typeof d<"u"&&(d=j(d,n.fontSize,1,n)||d),f||=a==null?void 0:a[2],d||=a==null?void 0:a[3]),!o.width&&f&&(o.width=f),!o.height&&d&&(o.height=d)}return e.setDisplay(me(o.display,{flex:u.DISPLAY_FLEX,none:u.DISPLAY_NONE},u.DISPLAY_FLEX,"display")),e.setAlignContent(me(o.alignContent,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,"space-between":u.ALIGN_SPACE_BETWEEN,"space-around":u.ALIGN_SPACE_AROUND,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_AUTO,"alignContent")),e.setAlignItems(me(o.alignItems,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(me(o.alignSelf,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(me(o.justifyContent,{center:u.JUSTIFY_CENTER,"flex-start":u.JUSTIFY_FLEX_START,"flex-end":u.JUSTIFY_FLEX_END,"space-between":u.JUSTIFY_SPACE_BETWEEN,"space-around":u.JUSTIFY_SPACE_AROUND},u.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(me(o.flexDirection,{row:u.FLEX_DIRECTION_ROW,column:u.FLEX_DIRECTION_COLUMN,"row-reverse":u.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":u.FLEX_DIRECTION_COLUMN_REVERSE},u.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(me(o.flexWrap,{wrap:u.WRAP_WRAP,nowrap:u.WRAP_NO_WRAP,"wrap-reverse":u.WRAP_WRAP_REVERSE},u.WRAP_NO_WRAP,"flexWrap")),typeof o.gap<"u"&&e.setGap(u.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(u.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(u.GUTTER_COLUMN,o.columnGap),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(me(o.overflow,{visible:u.OVERFLOW_VISIBLE,hidden:u.OVERFLOW_HIDDEN},u.OVERFLOW_VISIBLE,"overflow")),e.setMargin(u.EDGE_TOP,o.marginTop||0),e.setMargin(u.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(u.EDGE_LEFT,o.marginLeft||0),e.setMargin(u.EDGE_RIGHT,o.marginRight||0),e.setBorder(u.EDGE_TOP,o.borderTopWidth||0),e.setBorder(u.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(u.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(u.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(u.EDGE_TOP,o.paddingTop||0),e.setPadding(u.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(u.EDGE_LEFT,o.paddingLeft||0),e.setPadding(u.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(me(o.position,{absolute:u.POSITION_TYPE_ABSOLUTE,relative:u.POSITION_TYPE_RELATIVE},u.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(u.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(u.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(u.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(u.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,gn(o)]}c();c();c();var hu=[1,0,0,1,0,0];function ef(e,t,n){let r=[...hu];for(let i of e){let u=Object.keys(i)[0],o=i[u];if(typeof o=="string")if(u==="translateX")o=parseFloat(o)/100*t,i[u]=o;else if(u==="translateY")o=parseFloat(o)/100*n,i[u]=o;else throw new Error(`Invalid transform: "${u}: ${o}".`);let s=o,a=[...hu];switch(u){case"translateX":a[4]=s;break;case"translateY":a[5]=s;break;case"scale":a[0]=s,a[3]=s;break;case"scaleX":a[0]=s;break;case"scaleY":a[3]=s;break;case"rotate":{let l=s*Math.PI/180,f=Math.cos(l),d=Math.sin(l);a[0]=f,a[1]=d,a[2]=-d,a[3]=f;break}case"skewX":a[2]=Math.tan(s*Math.PI/180);break;case"skewY":a[1]=Math.tan(s*Math.PI/180);break}r=Ct(a,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function kt({left:e,top:t,width:n,height:r},i,u,o){let s;i.__resolved||ef(i,n,r);let a=i;if(u)s=a;else{let l=(o==null?void 0:o.xAbsolute)??((o==null?void 0:o.xRelative)??50)*n/100,f=(o==null?void 0:o.yAbsolute)??((o==null?void 0:o.yRelative)??50)*r/100,d=e+l,h=t+f;s=Ct([1,0,0,1,d,h],Ct(a,[1,0,0,1,-d,-h])),a.__parent&&(s=Ct(a.__parent,s)),a.splice(0,6,...s)}return`matrix(${s.map(l=>l.toFixed(2)).join(",")})`}function Du({left:e,top:t,width:n,height:r,isInheritingTransform:i},u){let o="",s=1;return u.transform&&(o=kt({left:e,top:t,width:n,height:r},u.transform,i,u.transformOrigin)),u.opacity!==void 0&&(s=+u.opacity),{matrix:o,opacity:s}}function wn({id:e,content:t,filter:n,left:r,top:i,width:u,height:o,matrix:s,opacity:a,image:l,clipPathId:f,debug:d,shape:h,decorationShape:D},p){let m="";if(d&&(m=k("rect",{x:r,y:i-o,width:u,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let b={href:l,x:r,y:i,width:u,height:o,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+k("image",{...b,opacity:a!==1?a:void 0})+(D||"")+(n?"</g>":"")+m,""]}let x={x:r,y:i,width:u,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:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+k("text",{...x,fill:p.color,opacity:a!==1?a:void 0},t)+(D||"")+(n?"</g>":"")+m,h?k("text",x,t):""]}c();function tf(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,u,o){return i+(parseFloat(u)+t)+","+(parseFloat(o)+n)})}var Or=1.1;function mu({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,u="",o="",s=0,a=t,l=0,f=n;for(let d=0;d<i;d++){let h=r.shadowRadius[d]*r.shadowRadius[d]/4;s=Math.min(r.shadowOffset[d].width-h,s),a=Math.max(r.shadowOffset[d].width+h+t,a),l=Math.min(r.shadowOffset[d].height-h,l),f=Math.max(r.shadowOffset[d].height+h+n,f),u+=k("feDropShadow",{dx:r.shadowOffset[d].width,dy:r.shadowOffset[d].height,stdDeviation:r.shadowRadius[d]/2,"flood-color":r.shadowColor[d],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${d}`}:{}}),i>1&&(o=k("feMergeNode",{in:`satori_s-${e}-result-${d}`})+o)}return k("filter",{id:`satori_s-${e}`,x:(s/t*100*Or).toFixed(2)+"%",y:(l/n*100*Or).toFixed(2)+"%",width:((a-s)/t*100*Or).toFixed(2)+"%",height:((f-l)/n*100*Or).toFixed(2)+"%"},u+(o?k("feMerge",{},o):""))}function gu({width:e,height:t,shape:n,opacity:r,id:i},u){if(!u.boxShadow)return null;let o="",s="";for(let a=u.boxShadow.length-1;a>=0;a--){let l="",f=u.boxShadow[a];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),h=Math.min(-d-(f.inset?f.offsetX:0),0),D=Math.max(d+e-(f.inset?f.offsetX:0),e),p=Math.min(-d-(f.inset?f.offsetY:0),0),m=Math.max(d+t-(f.inset?f.offsetY:0),t),x=`satori_s-${i}-${a}`,b=`satori_ms-${i}-${a}`,v=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=k("mask",{id:b,maskUnits:"userSpaceOnUse"},k("rect",{x:0,y:0,width:u._viewportWidth||"100%",height:u._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+v.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let F=v.replace(/d="([^"]+)"/,(w,E)=>'d="'+tf(E,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(w,E)=>'x="'+(parseFloat(E)+f.offsetX)+'"').replace(/y="([^"]+)"/,(w,E)=>'y="'+(parseFloat(E)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=k("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},F.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(F=k("g",{mask:`url(#${b}-neg)`},F)),l+=k("defs",{},k("filter",{id:x,x:`${h/e*100}%`,y:`${p/t*100}%`,width:`${(D-h)/e*100}%`,height:`${(m-p)/t*100}%`},k("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+k("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+k("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+k("g",{mask:`url(#${b})`,filter:`url(#${x})`,opacity:r},F),f.inset?s+=l:o+=l}return[o,s]}c();function En({width:e,left:t,top:n,ascender:r,clipPathId:i},u){let{textDecorationColor:o,textDecorationStyle:s,textDecorationLine:a,fontSize:l}=u;if(!a||a==="none")return"";let f=Math.max(1,l*.1),d=a==="line-through"?n+r*.5:a==="underline"?n+r*1.1:n,h=s==="dashed"?`${f*1.2} ${f*2}`:s==="dotted"?`0 ${f*2}`:void 0;return k("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:o,"stroke-width":f,"stroke-dasharray":h,"stroke-linecap":s==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}async function*Cn(e,t){var Po;let n=await Ne(),{parentStyle:r,inheritedStyle:i,parent:u,font:o,id:s,isInheritingTransform:a,debug:l,embedFont:f,graphemeImages:d,locale:h,canLoadAdditionalAssets:D}=t,{textAlign:p,textOverflow:m,whiteSpace:x,wordBreak:b,lineHeight:v,textTransform:F,textWrap:w,fontSize:E,filter:B,_inheritedBackgroundClipTextPath:R}=r;e=rf(e,F,h);let{content:L,shouldCollapseWhitespace:Y,allowSoftWrap:J}=of(e,x),{words:ne,requiredBreaks:U,allowBreakWord:M}=nf(L,b),Z=uf(n,p);u.insertChild(Z,u.getChildCount()),Ko(r.flexShrink)&&u.setFlexShrink(1);let H=o.getEngine(E,v,r,h),ce=D?De(e,"grapheme").filter($=>!H.has($)):[];yield ce.map($=>({word:$,locale:h})),ce.length&&(H=o.getEngine(E,v,r,h));let Fe=sf(H,r);function ie($){return!!(d&&d[$])}function ee($){let q=0;for(let N of $)ie(N)?q+=E:q+=Fe(N);return q}let Ie=$=>{if($.length===0)return{originWidth:0,endingSpacesWidth:0};let q=ee(De($,"grapheme")),N=$.trimEnd()===$?q:ee(De($.trimEnd(),"grapheme"));return{originWidth:q,endingSpacesWidth:q-N}},O=[],P=[],W=[],I=[],oe=[];function ye($){let q=0,N=0,xe=0,pe=-1,he=0,ue=0,ae=0;O=[],W=[0],I=[],oe=[];let Me=0;for(;Me<ne.length;){let X=ne[Me],Ze=U[Me],we=0,je=0,{originWidth:xt,endingSpacesWidth:et}=Ie(X);we=xt,je=et,Ze&&ue===0&&(ue=H.height(X));let le=",.!?:-@)>]}%#".indexOf(X[0])<0,de=!N,He=Me&&le&&N+we>$+je&&J;if(M&&we>$&&(!N||He||Ze)){let tt=De(X,"grapheme");ne.splice(Me,1,...tt),N>0&&(O.push(N),P.push(ae),q++,he+=ue,N=0,ue=0,ae=0,W.push(1),pe=-1);continue}if(Ze||He)Y&&X===" "&&(we=0),O.push(N),P.push(ae),q++,he+=ue,N=we,ue=we?H.height(X):0,ae=we?H.baseline(X):0,W.push(1),pe=-1,Ze||(xe=Math.max(xe,$));else{N+=we;let tt=H.height(X);tt>ue&&(ue=tt,ae=H.baseline(X)),de&&W[W.length-1]++}de&&pe++,xe=Math.max(xe,N);let ct=N-we;if(we===0)oe.push({y:he,x:ct,width:0,line:q,lineIndex:pe,isImage:!1});else{let tt=De(X,"word");for(let fn=0;fn<tt.length;fn++){let cn=tt[fn],vr=0,Bo=!1;ie(cn)?(vr=E,Bo=!0):vr=Fe(cn),I.push(cn),oe.push({y:he,x:ct,width:vr,line:q,lineIndex:pe,isImage:Bo}),ct+=vr}}Me++}return N&&(q++,O.push(N),P.push(ae),he+=ue),{width:xe,height:he}}let Ue={width:0,height:0};Z.setMeasureFunc($=>{let{width:q,height:N}=ye($);if(w==="balance"){let xe=q/2,pe=q,he=q;for(;xe+1<pe;){he=(xe+pe)/2;let{height:ue}=ye(he);ue>N?xe=he:pe=he}return ye(pe),Ue={width:pe,height:N},{width:pe,height:N}}return Ue={width:q,height:N},{width:q,height:N}});let[hl,Dl]=yield,on="",Dr="",ze=i._inheritedClipPathId,_o=i._inheritedMaskId,{left:So,top:ko,width:un,height:ml}=Z.getComputedLayout(),sn=u.getComputedWidth()-u.getComputedPadding(n.EDGE_LEFT)-u.getComputedPadding(n.EDGE_RIGHT)-u.getComputedBorder(n.EDGE_LEFT)-u.getComputedBorder(n.EDGE_RIGHT),at=hl+So,lt=Dl+ko,{matrix:Le,opacity:mr}=Du({left:So,top:ko,width:un,height:ml,isInheritingTransform:a},r),ft="";if(r.textShadowOffset){let{textShadowColor:$,textShadowOffset:q,textShadowRadius:N}=r;Array.isArray(r.textShadowOffset)||($=[$],q=[q],N=[N]),ft=mu({width:Ue.width,height:Ue.height,id:s},{shadowColor:$,shadowOffset:q,shadowRadius:N}),ft=k("defs",{},ft)}let yt="",gr="",To="",an=-1,Oo=m==="ellipsis"?ee(["\u2026"]):0,gl=m==="ellipsis"?ee([" "]):0,br={},Ge=null,Ao=0;for(let $=0;$<I.length;$++){let q=oe[$];if(!q)continue;let N=I[$],xe=null,pe=!1,he=d?d[N]:null,ue=q.y,ae=q.x,Me=q.width,X=q.line;if(X===an)continue;let Ze=!1;if(O.length>1){let le=un-O[X];if(p==="right"||p==="end")ae+=le;else if(p==="center")ae+=le/2;else if(p==="justify"&&X<O.length-1){let de=W[X];ae+=(de>1?le/(de-1):0)*q.lineIndex,Ze=!0}}if(br[X]||(br[X]=[ae,Ze?un:O[X]]),m==="ellipsis"&&O[X]>sn&&q.x+Me+Oo+gl>sn){let le=De(N,"grapheme",h),de="",He=0;for(let ln of le){let ct=q.x+ee([de+ln]);if(de&&ct+Oo>sn)break;de+=ln,He=ct}N=de+"\u2026",an=X,br[X][1]=He,pe=!0}let we=P[X],je=H.baseline(N),xt=H.height(N),et=we-je;if(he)ue+=0;else if(f){if(!Ho.includes(N)&&I[$+1]&&oe[$+1]&&!oe[$+1].isImage&&ue===oe[$+1].y&&!pe){Ge===null&&(Ao=ae),Ge=Ge===null?N:Ge+N;continue}let le=Ge===null?N:Ge+N,de=Ge===null?ae:Ao,He=q.width+ae-de;xe=H.getSVG(le,{...r,left:at+de,top:lt+ue+je+et,letterSpacing:r.letterSpacing}),Ge=null,l&&(To+=k("rect",{x:at+de,y:lt+ue+et,width:He,height:xt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Le||void 0,"clip-path":ze?`url(#${ze})`:void 0})+k("line",{x1:at+ae,x2:at+ae+q.width,y1:lt+ue+et+je,y2:lt+ue+et+je,stroke:"#14c000","stroke-width":1,transform:Le||void 0,"clip-path":ze?`url(#${ze})`:void 0}))}else ue+=je+et;if(r.textDecorationLine&&(X!==((Po=oe[$+1])==null?void 0:Po.line)||an===X)){let le=br[X];le&&!le[2]&&(yt+=En({left:at+le[0],top:lt+xt*+X,width:le[1],ascender:H.baseline(N),clipPathId:ze},r),le[2]=1)}if(xe!==null)gr+=xe+" ";else{let[le,de]=wn({content:N,filter:ft,id:s,left:at+ae,top:lt+ue,width:Me,height:xt,matrix:Le,opacity:mr,image:he,clipPathId:ze,debug:l,shape:!!R,decorationShape:yt},r);on+=le,Dr+=de,yt=""}}if(gr){let $=r.color!=="transparent"&&mr!==0?k("path",{fill:r.color,d:gr,transform:Le||void 0,opacity:mr!==1?mr:void 0,"clip-path":ze?`url(#${ze})`:void 0,mask:_o?`url(#${_o})`:void 0,style:B?`filter:${B}`:void 0}):"";R&&(Dr=k("path",{d:gr,transform:Le||void 0})),on+=(ft?ft+k("g",{filter:`url(#satori_s-${s})`},$+yt):$+yt)+To}return Dr&&(r._inheritedBackgroundClipTextPath.value+=Dr),on}function rf(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=De(e,"word",n).map(r=>De(r,"grapheme",n).map((i,u)=>u===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function nf(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=Jo(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function of(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=!["pre","pre-wrap"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g," ")),r&&(e=e.replace(/[ ]+/g," "),e=e.trim()),{content:e,shouldCollapseWhitespace:r,allowSoftWrap:i}}function uf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(me(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function sf(e,t){let n=new Map;return function(i){if(n.has(i))return n.get(i);let u=e.measure(i,t);return n.set(i,u),u}}c();c();c();var _n=_n||{},bu={type:"directional",value:"bottom"};_n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emLikeValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))(r?em|vw|vh)/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(O){var P=new Error(t+": "+O);throw P.source=t,P}function r(){var O=i();return t.length>0&&n("Invalid input not EOF"),O}function i(){return B(u)}function u(){return s("linear-gradient",e.linearGradient,l,bu)||s("repeating-linear-gradient",e.repeatingLinearGradient,l,bu)||s("radial-gradient",e.radialGradient,D)||s("repeating-radial-gradient",e.repeatingRadialGradient,D)}function o(O={}){var W,I,oe,ye;let P={...O};return Object.assign(P,{style:(P.style||[]).length>0?P.style:[{type:"extent-keyword",value:"farthest-corner"}],at:{type:"position",value:{x:{type:"position-keyword",value:"center",...((I=(W=P.at)==null?void 0:W.value)==null?void 0:I.x)||{}},y:{type:"position-keyword",value:"center",...((ye=(oe=P.at)==null?void 0:oe.value)==null?void 0:ye.y)||{}}}}}),O.value||Object.assign(P,{type:"shape",value:P.style.some(Ue=>["%","extent-keyword"].includes(Ue.type))?"ellipse":"circle"}),P}function s(O,P,W,I){return a(P,function(oe){var ye=W();return ye?ee(e.comma)||n("Missing comma before color stops"):ye=I,{type:O,orientation:O.endsWith("radial-gradient")?(ye==null?void 0:ye.map(Ue=>o(Ue)))??[o()]:ye,colorStops:B(R)}})}function a(O,P){var W=ee(O);if(W){ee(e.startCall)||n("Missing (");var I=P(W);return ee(e.endCall)||n("Missing )"),I}}function l(){return f()||d()||h()}function f(){return ie("directional",e.sideOrCorner,1)}function d(){return ie("angular",e.angleValue,1)}function h(){return ie("directional",e.zeroValue,0)}function D(){var O,P=p(),W;return P&&(O=[],O.push(P),W=t,ee(e.comma)&&(P=p(),P?O.push(P):t=W)),O}function p(){let O=m(),P=F();if(!(!O&&!P))return{...O,at:P}}function m(){let O=x()||b(),P=v()||ce()||Z(),W=ie("%",e.percentageValue,1);if(O)return{...O,style:[P,W].filter(I=>I)};if(P)return{style:[P,W].filter(I=>I),...x()||b()}}function x(){return ie("shape",/^(circle)/i,0)}function b(){return ie("shape",/^(ellipse)/i,0)}function v(){return ie("extent-keyword",e.extentKeywords,1)}function F(){if(ie("position",/^at/,0)){var O=w();return O||n("Missing positioning value"),O}}function w(){var O=E();if(O.x||O.y)return{type:"position",value:O}}function E(){return{x:Z(),y:Z()}}function B(O){var P=O(),W=[];if(P)for(W.push(P);ee(e.comma);)P=O(),P?W.push(P):n("One extra comma");return W}function R(){var O=L();return O||n("Expected color definition"),O.length=Z(),O}function L(){return J()||U()||ne()||Y()}function Y(){return ie("literal",e.literalColor,0)}function J(){return ie("hex",e.hexColor,1)}function ne(){return a(e.rgbColor,function(){return{type:"rgb",value:B(M)}})}function U(){return a(e.rgbaColor,function(){return{type:"rgba",value:B(M)}})}function M(){return ee(e.number)[1]}function Z(){return ie("%",e.percentageValue,1)||H()||ce()}function H(){return ie("position-keyword",e.positionKeywords,1)}function ce(){return ie("px",e.pixelValue,1)||Fe(e.emLikeValue,1)}function Fe(O,P){var W=ee(O);if(W)return{type:W[5],value:W[P]}}function ie(O,P,W){var I=ee(P);if(I)return{type:O,value:I[W]}}function ee(O){var P,W;return W=/^[\n\r\t\s]+/.exec(t),W&&Ie(W[0].length),P=O.exec(t),P&&Ie(P[0].length),P}function Ie(O){t=t.substr(O)}return function(O){return t=O.toString(),r()}}();var Sn=_n;function af(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function lf(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),[t,n,r,i]}function ff(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function kn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(u=>{try{let o=new Ve(u);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(u=>u!==null):[r,i]).map((u,o)=>ff(u,[t,n][o]))}function vu(e,t){let n=[];for(let o of t){let s=af(o);if(!n.length&&(n.push({offset:0,color:s}),typeof o.length>"u"||o.length.value==="0"))continue;let a=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:a,color:s})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,u=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(u<o&&(u=o);typeof n[u].offset>"u";)u++;n[o].offset=(n[u].offset-n[i].offset)/(u-i)*(o-i)+n[i].offset}else i=o;return n}async function Tn({id:e,width:t,height:n,left:r,top:i},{image:u,size:o,position:s,repeat:a},l){a=a||"repeat";let f=a==="repeat-x"||a==="repeat",d=a==="repeat-y"||a==="repeat",h=kn(o,{x:t,y:n,defaultX:t,defaultY:n}),D=kn(s,{x:t,y:n,defaultX:0,defaultY:0});if(u.startsWith("linear-gradient(")){let p=Sn.parse(u)[0],[m,x]=h,b,v,F,w,E;if(p.orientation.type==="directional")[b,v,F,w]=lf(p.orientation.value),E=Math.sqrt(Math.pow((F-b)*m,2)+Math.pow((w-v)*x,2));else if(p.orientation.type==="angular"){let U=function(M){if(M=(M%(Math.PI*2)+Math.PI*2)%(Math.PI*2),Math.abs(M-Math.PI/2)<1e-6){b=0,v=0,F=1,w=0,E=m;return}else if(Math.abs(M)<1e-6){b=0,v=1,F=0,w=0,E=x;return}if(M>=Math.PI/2&&M<Math.PI){U(Math.PI-M),v=1-v,w=1-w;return}else if(M>=Math.PI){U(M-Math.PI);let P=b;b=F,F=P,P=v,v=w,w=P;return}let Z=Math.tan(M),H=Z*ne,ce=Math.atan(H),Fe=Math.sqrt(2)*Math.cos(Math.PI/4-ce);b=0,v=1,F=Math.sin(ce)*Fe,w=1-Math.cos(ce)*Fe;let ie=1,ee=1/Z,Ie=Math.abs((ie*ne+ee)/Math.sqrt(ie*ie+ee*ee)/Math.sqrt(ne*ne+1));E=Math.sqrt(m*m+x*x)*Ie},ne=m/x;U(+p.orientation.value/180*Math.PI)}let B=vu(E,p.colorStops),R=`satori_bi${e}`,L=`satori_pattern_${e}`,Y=k("pattern",{id:L,x:D[0]/t,y:D[1]/n,width:f?m/t:"1",height:d?x/n:"1",patternUnits:"objectBoundingBox"},k("linearGradient",{id:R,x1:b,y1:v,x2:F,y2:w},B.map(J=>k("stop",{offset:J.offset*100+"%","stop-color":J.color})).join(""))+k("rect",{x:0,y:0,width:m,height:x,fill:`url(#${R})`}));return[L,Y]}if(u.startsWith("radial-gradient(")){let p=Sn.parse(u)[0],m=p.orientation[0],[x,b]=h,v="circle",F=x/2,w=b/2;if(m.type==="shape"){if(v=m.value,m.at)if(m.at.type==="position"){let U=cf(m.at.value.x,m.at.value.y,x,b,l.fontSize,l);F=U.x,w=U.y}else throw new Error("orientation.at.type not implemented: "+m.at.type)}else throw new Error("orientation.type not implemented: "+m.type);let E=vu(t,p.colorStops),B=`satori_radial_${e}`,R=`satori_pattern_${e}`,L=`satori_mask_${e}`,Y=df(v,m.style,l.fontSize,{x:F,y:w},[x,b],l),J=k("pattern",{id:R,x:D[0]/t,y:D[1]/n,width:f?x/t:"1",height:d?b/n:"1",patternUnits:"objectBoundingBox"},k("radialGradient",{id:B},E.map(U=>k("stop",{offset:U.offset,"stop-color":U.color})).join(""))+k("mask",{id:L},k("rect",{x:0,y:0,width:x,height:b,fill:"#fff"}))+k("rect",{x:0,y:0,width:x,height:b,fill:E.at(-1).color})+k(v,{cx:F,cy:w,width:x,height:b,...Y,fill:`url(#${B})`,mask:`url(#${L})`}));return[R,J]}if(u.startsWith("url(")){let p=kn(o,{x:t,y:n,defaultX:0,defaultY:0}),[m,x,b]=await Tr(u.slice(4,-1)),v=p[0]||x,F=p[1]||b;return[`satori_bi${e}`,k("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:D[0]+r,y:D[1]+i,width:f?v:"100%",height:d?F:"100%"},k("image",{x:0,y:0,width:v,height:F,preserveAspectRatio:"none",href:m}))]}throw new Error(`Invalid background image: "${u}"`)}function cf(e,t,n,r,i,u){let o={x:n/2,y:r/2};return e.type==="position-keyword"?Object.assign(o,yu(e.value,n,r,"x")):o.x=j(`${e.value}${e.type}`,i,n,u,!0),t.type==="position-keyword"?Object.assign(o,yu(t.value,n,r,"y")):o.y=j(`${t.value}${t.type}`,i,r,u,!0),o}function yu(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function df(e,t,n,r,i,u){let[o,s]=i,{x:a,y:l}=r,f={},d=0,h=0;if(!t.some(p=>p.type==="extent-keyword")){if(t.some(p=>p.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?{r:j(`${t[0].value}${t[0].type}`,n,o,u,!0)}:{rx:j(`${t[0].value}${t[0].type}`,n,o,u,!0),ry:j(`${t[1].value}${t[1].type}`,n,s,u,!0)}}switch(t[0].value){case"farthest-corner":d=Math.max(Math.abs(o-a),Math.abs(a)),h=Math.max(Math.abs(s-l),Math.abs(l));break;case"closest-corner":d=Math.min(Math.abs(o-a),Math.abs(a)),h=Math.min(Math.abs(s-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(o-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.max(Math.abs(o-a),Math.abs(a)),f.ry=Math.max(Math.abs(s-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(o-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.min(Math.abs(o-a),Math.abs(a)),f.ry=Math.min(Math.abs(s-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(d*d+h*h);else{let p=h!==0?d/h:1;d===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(d*d+h*h*p*p)/p,f.rx=f.ry*p)}return f}c();function pf([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function Ar(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Pr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Br(e,t,n,r,i){if(typeof e=="string"){let u=e.split(" ").map(s=>s.trim()),o=!u[1]&&!u[0].endsWith("%");return u[1]=u[1]||u[0],[o,[Math.min(j(u[0],r,t,i,!0),t),Math.min(j(u[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Rr=e=>e&&e[0]!==0&&e[1]!==0;function Ye({left:e,top:t,width:n,height:r},i,u){let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:a,borderBottomRightRadius:l,fontSize:f}=i,d,h,D,p;if([d,o]=Br(o,n,r,f,i),[h,s]=Br(s,n,r,f,i),[D,a]=Br(a,n,r,f,i),[p,l]=Br(l,n,r,f,i),!u&&!Rr(o)&&!Rr(s)&&!Rr(a)&&!Rr(l))return"";o||=[0,0],s||=[0,0],a||=[0,0],l||=[0,0],[o[0],s[0]]=Ar(o[0],s[0],n),[a[0],l[0]]=Ar(a[0],l[0],n),[o[1],a[1]]=Ar(o[1],a[1],r),[s[1],l[1]]=Ar(s[1],l[1],r),d&&Pr(o),h&&Pr(s),D&&Pr(a),p&&Pr(l);let m=[];m[0]=[s,s],m[1]=[l,[-l[0],l[1]]],m[2]=[a,[-a[0],-a[1]]],m[3]=[o,[o[0],-o[1]]];let x=`h${n-o[0]-s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,b=`v${r-s[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,v=`h${l[0]+a[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,F=`v${a[1]+o[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(u){let E=function(U){let M=pf([o,s,l,a][U]);return U===0?[[e+o[0]-M,t+o[1]-M],[e+o[0],t]]:U===1?[[e+n-s[0]+M,t+s[1]-M],[e+n,t+s[1]]]:U===2?[[e+n-l[0]+M,t+r-l[1]+M],[e+n-l[0],t+r]]:[[e+a[0]-M,t+r-a[1]+M],[e,t+r-a[1]]]},w=u.indexOf(!1);if(!u.includes(!0))throw new Error("Invalid `partialSides`.");if(w===-1)w=0;else for(;!u[w];)w=(w+1)%4;let B="",R=E(w),L=`M${R[0]} A${m[(w+3)%4][0]} 0 0 1 ${R[1]}`,Y=0;for(;Y<4&&u[(w+Y)%4];Y++)B+=L+" ",L=[x,b,v,F][(w+Y)%4];let J=(w+Y)%4;B+=L.split(" ")[0];let ne=E(J);return B+=` A${m[(J+3)%4][0]} 0 0 1 ${ne[0]}`,B}return`M${e+o[0]},${t} ${x} ${b} ${v} ${F}`}c();c();c();function xu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Fu({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:u,width:o,height:s},a){if(!(a.borderTopWidth||a.borderRightWidth||a.borderBottomWidth||a.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[k("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},k(r,{x:i,y:u,width:o,height:s,d:n||void 0})),f]}function Tt({left:e,top:t,width:n,height:r,props:i,asContentMask:u,maskBorderOnly:o},s){let a=["borderTop","borderRight","borderBottom","borderLeft"];if(!u&&!a.some(D=>s[D+"Width"]))return"";let l="",f=0;for(;f>0&&xu(a[f],a[(f+3)%4],s);)f=(f+3)%4;let d=[!1,!1,!1,!1],h=[];for(let D=0;D<4;D++){let p=(f+D)%4,m=(f+D+1)%4,x=a[p],b=a[m];if(d[p]=!0,h=[s[x+"Width"],s[x+"Style"],s[x+"Color"],x],!xu(x,b,s)){let v=(h[0]||0)+(u&&!o&&s[x.replace("border","padding")]||0);v&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:u?"#000":h[2],"stroke-width":v*2,"stroke-dasharray":!u&&h[1]==="dashed"?v*2+" "+v:void 0,d:Ye({left:e,top:t,width:n,height:r},s,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let D=(h[0]||0)+(u&&!o&&s[h[3].replace("border","padding")]||0);D&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:u?"#000":h[2],"stroke-width":D*2,"stroke-dasharray":!u&&h[1]==="dashed"?D*2+" "+D:void 0,d:Ye({left:e,top:t,width:n,height:r},s,d)}))}return l}function On({id:e,left:t,top:n,width:r,height:i,matrix:u,borderOnly:o},s){let a=(s.borderLeftWidth||0)+(o?0:s.paddingLeft||0),l=(s.borderTopWidth||0)+(o?0:s.paddingTop||0),f=(s.borderRightWidth||0)+(o?0:s.paddingRight||0),d=(s.borderBottomWidth||0)+(o?0:s.paddingBottom||0),h={x:t+a,y:n+l,width:r-a-f,height:i-l-d};return k("mask",{id:e},k("rect",{...h,fill:"#fff",mask:s._inheritedMaskId?`url(#${s._inheritedMaskId})`:void 0})+Tt({left:t,top:n,width:r,height:i,props:{transform:u||void 0},asContentMask:!0,maskBorderOnly:o},s))}c();c();var An=require("css-to-react-native"),Ot={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Cu({width:e,height:t},n,r){function i(l){let f=l.match(Ot.circle);if(!f)return null;let[,d]=f,[h,D=""]=d.split("at").map(x=>x.trim()),{x:p,y:m}=Eu(D,e,t);return{type:"circle",r:j(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:j(p,r.fontSize,e,r,!0),cy:j(m,r.fontSize,t,r,!0)}}function u(l){let f=l.match(Ot.ellipse);if(!f)return null;let[,d]=f,[h,D=""]=d.split("at").map(v=>v.trim()),[p,m]=h.split(" "),{x,y:b}=Eu(D,e,t);return{type:"ellipse",rx:j(p||"50%",r.fontSize,e,r,!0),ry:j(m||"50%",r.fontSize,t,r,!0),cx:j(x,r.fontSize,e,r,!0),cy:j(b,r.fontSize,t,r,!0)}}function o(l){let f=l.match(Ot.path);if(!f)return null;let[d,h]=wu(f[1]);return{type:"path",d:h,"fill-rule":d}}function s(l){let f=l.match(Ot.polygon);if(!f)return null;let[d,h]=wu(f[1]);return{type:"polygon","fill-rule":d,points:h.split(",").map(D=>D.split(" ").map((p,m)=>j(p,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function a(l){let f=l.match(Ot.inset);if(!f)return null;let[d,h]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),D=(0,An.getStylesForProperty)("borderRadius",h,!0),p=Object.values(D).map(w=>String(w)).map((w,E)=>j(w,r.fontSize,E===0||E===2?t:e,r,!0)||0),m=Object.values((0,An.getStylesForProperty)("margin",d,!0)).map(w=>String(w)).map((w,E)=>j(w,r.fontSize,E===0||E===2?t:e,r,!0)||0),x=m[3],b=m[0],v=e-(m[1]+m[3]),F=t-(m[0]+m[2]);if(p.some(w=>w>0)){let w=Ye({left:x,top:b,width:v,height:F},{...n,...D});return{type:"path",d:w}}return{type:"rect",x,y:b,width:v,height:F}}return{parseCircle:i,parseEllipse:u,parsePath:o,parsePolygon:s,parseInset:a}}function wu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Eu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(u=>{u==="top"?i.y=0:u==="bottom"?i.y=n:u==="left"?i.x=0:u==="right"?i.x=t:(i.x=t/2,i.y=n/2)}),i}function Ir(e){return`satori_cp-${e}`}function _u(e){return`url(#${Ir(e)})`}function Su(e,t,n){if(t.clipPath==="none")return"";let r=Cu(e,t,n),i=t.clipPath,u={type:""};for(let o of Object.keys(r))if(u=r[o](i),u)break;if(u){let{type:o,...s}=u;return k("clipPath",{id:Ir(e.id),"clip-path":e.currentClipPath},k(o,s))}return""}function Pn({left:e,top:t,width:n,height:r,path:i,matrix:u,id:o,currentClipPath:s,src:a},l,f){let d="",h=l.clipPath&&l.clipPath!=="none"?Su({left:e,top:t,width:n,height:r,path:i,id:o,matrix:u,currentClipPath:s,src:a},l,f):"";if(l.overflow!=="hidden"&&!a)d="";else{let p=h?`satori_ocp-${o}`:Ir(o);d=k("clipPath",{id:p,"clip-path":s},k(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))}let D=On({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:u,borderOnly:!a},l);return h+d+D}async function At({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:u,src:o,debug:s},a,l){if(a.display==="none")return"";let f=!!o,d="rect",h="",D="",p=[],m=1,x="";a.backgroundColor&&p.push(a.backgroundColor),a.opacity!==void 0&&(m=+a.opacity),a.transform&&(h=kt({left:t,top:n,width:r,height:i},a.transform,u,a.transformOrigin));let b="";if(a.backgroundImage){let U=[];for(let M=0;M<a.backgroundImage.length;M++){let Z=a.backgroundImage[M],H=await Tn({id:e+"_"+M,width:r,height:i,left:t,top:n},Z,l);H&&U.unshift(H)}for(let M of U)p.push(`url(#${M[0]})`),D+=M[1],M[2]&&(b+=M[2])}let v=Ye({left:t,top:n,width:r,height:i},a);v&&(d="path");let F=a._inheritedClipPathId,w=a._inheritedMaskId;s&&(x=k("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":F?`url(#${F})`:void 0}));let{backgroundClip:E,filter:B}=a,R=E==="text"?`url(#satori_bct-${e})`:F?`url(#${F})`:a.clipPath?_u(e):void 0,L=Pn({left:t,top:n,width:r,height:i,path:v,id:e,matrix:h,currentClipPath:R,src:o},a,l),Y=p.map(U=>k(d,{x:t,y:n,width:r,height:i,fill:U,d:v||void 0,transform:h||void 0,"clip-path":R,style:B?`filter:${B}`:void 0,mask:w?`url(#${w})`:void 0})).join(""),J=Fu({id:e,left:t,top:n,width:r,height:i,currentClipPathId:F,borderPath:v,borderType:d},a);if(f){let U=(a.borderLeftWidth||0)+(a.paddingLeft||0),M=(a.borderTopWidth||0)+(a.paddingTop||0),Z=(a.borderRightWidth||0)+(a.paddingRight||0),H=(a.borderBottomWidth||0)+(a.paddingBottom||0),ce=a.objectFit==="contain"?"xMidYMid":a.objectFit==="cover"?"xMidYMid slice":"none";Y+=k("image",{x:t+U,y:n+M,width:r-U-Z,height:i-M-H,href:o,preserveAspectRatio:ce,transform:h||void 0,style:B?`filter:${B}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(J){D+=J[0];let U=J[1];Y+=Tt({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${U})`}},a)}let ne=gu({width:r,height:i,id:e,opacity:m,shape:k(d,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:v||void 0,transform:h||void 0,"clip-path":R,mask:w?`url(#${w})`:void 0})},a);return(D?k("defs",{},D):"")+(ne?ne[0]:"")+L+(m!==1?`<g opacity="${m}">`:"")+(b||Y)+(m!==1?"</g>":"")+(ne?ne[1]:"")+x}c();c();var ku=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var hf=new RegExp(ku(),""),Bn={emoji:hf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Rn={"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},Lr=Object.keys({...Rn,...Bn});function Tu(e){return Lr.includes(e)}function Ou(e,t){for(let r of Object.keys(Bn))if(Bn[r].test(e))return[r];let n=Object.keys(Rn).filter(r=>Rn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function Au(e){if(e)return Lr.find(t=>t.toLowerCase()===e.toLowerCase()||t.toLowerCase().startsWith(e.toLowerCase()))}async function*Pt(e,t){var W;let n=await Ne(),{id:r,inheritedStyle:i,parent:u,font:o,debug:s,locale:a,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Er(e)||typeof e.type=="function"){let I;if(!Er(e))I=Cn(String(e),t),yield(await I.next()).value;else{if(zo(e.type))throw new Error("Class component is not supported.");I=Pt(e.type(e.props),t),yield(await I.next()).value}await I.next();let oe=yield;return(await I.next(oe)).value}let{type:D,props:p}=e;if(p&&Go(p))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:x,tw:b,lang:v=a}=p||{},F=Au(v);if(b){let I=h(b,m);m=Object.assign(I,m)}let w=n.Node.create();u.insertChild(w,u.getChildCount());let[E,B]=await Fn(w,D,i,m,p),R=E.transform===i.transform;if(R||(E.transform.__parent=i.transform),(E.overflow==="hidden"||E.clipPath&&E.clipPath!=="none")&&(B._inheritedClipPathId=`satori_cp-${r}`,B._inheritedMaskId=`satori_om-${r}`),E.backgroundClip==="text"){let I={value:""};B._inheritedBackgroundClipTextPath=I,E._inheritedBackgroundClipTextPath=I}let L=jo(x),Y=[],J=0,ne=[];for(let I of L){let oe=Pt(I,{id:r+"-"+J++,parentStyle:E,inheritedStyle:B,isInheritingTransform:!0,parent:w,font:o,embedFont:l,debug:s,graphemeImages:f,canLoadAdditionalAssets:d,locale:F,getTwStyles:h,onNodeDetected:t.onNodeDetected});d?ne.push(...(await oe.next()).value||[]):await oe.next(),Y.push(oe)}yield ne;for(let I of Y)await I.next();let[U,M]=yield,{left:Z,top:H,width:ce,height:Fe}=w.getComputedLayout();Z+=U,H+=M;let ie="",ee="",Ie="",{children:O,...P}=p;if((W=t.onNodeDetected)==null||W.call(t,{left:Z,top:H,width:ce,height:Fe,type:D,props:P,key:e.key,textContent:Er(O)?void 0:O}),D==="img"){let I=E.__src;ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,src:I,isInheritingTransform:R,debug:s},E,B)}else if(D==="svg"){let I=E.color,oe=Xo(e,I);ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,src:oe,isInheritingTransform:R,debug:s},E,B)}else{let I=m==null?void 0:m.display;if(D==="div"&&x&&typeof x!="string"&&I!=="flex"&&I!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,isInheritingTransform:R,debug:s},E,B)}for(let I of Y)ie+=(await I.next([Z,H])).value;return E._inheritedBackgroundClipTextPath&&(Ie+=k("clipPath",{id:`satori_bct-${r}`,"clip-path":E._inheritedClipPathId?`url(#${E._inheritedClipPathId})`:void 0},E._inheritedBackgroundClipTextPath.value)),Ie+ee+ie}c();var Mr=dt(require("@shuding/opentype.js"),1);var Pu="unknown";function Df(e,t,[n,r],[i,u]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==u){if(r===t)return-1;if(u===t)return 1}return-1}var Bt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],u=i[0];for(let o=1;o<i.length;o++){let[,s,a]=u,[,l,f]=i[o];Df(n,r,[s,a],[l,f])>0&&(u=i[o])}return u[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:u}=n;if(u&&!Tu(u))throw new Error(`Invalid value for props \`lang\`: "${u}". The value must be one of the following: ${Lr.join(", ")}.`);let o=u??Pu,s=Mr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),a=s.charToGlyphIndex;s.charToGlyphIndex=f=>{let d=a.call(s,f);return d===0&&s._trackBrokenChars&&s._trackBrokenChars.push(f),d},this.defaultFont||(this.defaultFont=s);let l=`${r.toLowerCase()}_${o}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([s,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:u="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(v=>v.toLowerCase());let s=[];r.forEach(v=>{let F=this.get({name:v,weight:i,style:u});if(F){s.push(F);return}let w=this.get({name:v+"_unknown",weight:i,style:u});if(w){s.push(w);return}});let a=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let v of a)if(!r.includes(v))if(o){let F=mf(v);F?F===o?l.push(this.get({name:v,weight:i,style:u})):f.push(this.get({name:v,weight:i,style:u})):d.push(this.get({name:v,weight:i,style:u}))}else d.push(this.get({name:v,weight:i,style:u}));let h=new Map,D=(v,F=!0)=>{let w=[...s,...d,...l,...F?f:[]];if(typeof v>"u")return F?w[w.length-1]:void 0;let E=v.charCodeAt(0);if(h.has(E))return h.get(E);let B=w.find((R,L)=>!!R.charToGlyphIndex(v)||F&&L===w.length-1);return B&&h.set(E,B),B},p=(v,F=!1)=>{var E,B;return((F?(B=(E=v.tables)==null?void 0:E.os2)==null?void 0:B.sTypoAscender:0)||v.ascender)/v.unitsPerEm*t},m=(v,F=!1)=>{var E,B;return((F?(B=(E=v.tables)==null?void 0:E.os2)==null?void 0:B.sTypoDescender:0)||v.descender)/v.unitsPerEm*t},x=v=>D(v,!1),b={has:v=>{if(v===`
5
+ in CSS rule \`${o}: ${s}\`.${tu(o)}`))}}}if(n.backgroundImage){let{backgrounds:i}=(0,iu.parseElementStyle)(n);n.backgroundImage=i}let r=Gl(n.fontSize,t.fontSize);typeof n.fontSize<"u"&&(n.fontSize=r),n.transformOrigin&&(n.transformOrigin=vn(n.transformOrigin,r));for(let i in n){let u=n[i];if(i==="lineHeight")typeof u=="string"&&(u=n[i]=j(u,r,r,t,!0)/r);else{if(typeof u=="string"){let o=j(u,r,r,t);typeof o<"u"&&(n[i]=o),u=n[i]}if(typeof u=="string"||typeof u=="object"){let o=su(u);o&&(n[i]=o),u=n[i]}}if(i==="opacity"&&(u=n[i]=u*t.opacity),i==="transform"){let o=u;for(let s of o){let a=Object.keys(s)[0],l=s[a],f=typeof l=="string"?j(l,r,r,t)??l:l;s[a]=f}}}return n}function Gl(e,t){if(typeof e=="number")return e;try{let n=new Ve(e);switch(n.unit){case"em":return n.value*t;case"rem":return n.value*16}}catch{return t}}function nu(e){if(e.startsWith("hsl")){let t=(0,uu.default)(e),[n,r,i]=t.values;return`hsl(${[n,`${r}%`,`${i}%`].concat(t.alpha===1?[]:[t.alpha]).join(",")})`}return e}function jl(e,t){return e&&e.toLowerCase()!=="currentcolor"?nu(e):nu(t)}function Hl(e,t){return e.replace(/currentcolor/gi,t)}function Vl(e,t){return Qo(e)&&(e=Hl(e,t)),e}c();var Yl="image/avif",Xl="image/webp",_r="image/png",Sr="image/jpeg",kr="image/gif",xn="image/svg+xml";function cu(e){let t=new DataView(e),n=4,r=t.byteLength;for(;n<r;){let i=t.getUint16(n,!1);if(i>r)throw new TypeError("Invalid JPEG");let u=t.getUint8(i+1+n);if(u===192||u===193||u===194)return[t.getUint16(i+7+n,!1),t.getUint16(i+5+n,!1)];n+=i+2}throw new TypeError("Invalid JPEG")}function du(e){let t=new Uint8Array(e.slice(6,10));return[t[0]|t[1]<<8,t[2]|t[3]<<8]}function pu(e){let t=new DataView(e);return[t.getUint16(18,!1),t.getUint16(22,!1)]}var au=Vo(100),yn=new Map,Ql=[_r,Sr,kr,xn];function Kl(e){let t="",n=new Uint8Array(e);for(let r=0;r<n.byteLength;r++)t+=String.fromCharCode(n[r]);return btoa(t)}function Jl(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}function lu(e,t){let n=t.match(/<svg[^>]*>/)[0],r=n.match(/viewBox=['"](.+)['"]/),i=r?_t(r[1]):null,u=n.match(/width=['"](\d*\.\d+|\d+)['"]/),o=n.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!i&&(!u||!o))throw new Error(`Failed to parse SVG from ${e}: missing "viewBox"`);let s=i?[i[2],i[3]]:[+u[1],+o[1]],a=s[0]/s[1];return u&&o?[+u[1],+o[1]]:u?[+u[1],+u[1]/a]:o?[+o[1]*a,+o[1]]:[s[0],s[1]]}function fu(e){let t,n=Zl(new Uint8Array(e));switch(n){case _r:t=pu(e);break;case kr:t=du(e);break;case Sr:t=cu(e);break}if(!Ql.includes(n))throw new Error(`Unsupported image type: ${n||"unknown"}`);return[`data:${n};base64,${Kl(e)}`,t]}async function Tr(e){if(!e)throw new Error("Image source is not provided.");if(typeof e=="object"){let[i,u]=fu(e);return[i,...u]}if((e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),typeof window>"u"&&!e.startsWith("http")&&!e.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${e}`);if(e.startsWith("data:")){let i;try{i=/data:(?<imageType>[a-z/+]+)(;(?<encodingType>base64|utf8))?,(?<dataString>.*)/g.exec(e).groups}catch{return console.warn("Image data URI resolved without size:"+e),[e]}let{imageType:u,encodingType:o,dataString:s}=i;if(u===xn){let a=o==="base64"?atob(s):decodeURIComponent(s.replace(/ /g,"%20")),l=o==="base64"?e:`data:image/svg+xml;base64,${btoa(a)}`,f=lu(e,a);return[l,...f]}else if(o==="base64"){let a,l=Jl(s);switch(u){case _r:a=pu(l);break;case kr:a=du(l);break;case Sr:a=cu(l);break}return[e,...a]}else return console.warn("Image data URI resolved without size:"+e),[e]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(yn.has(e))return yn.get(e);let t=au.get(e);if(t)return t;let n=e,r=fetch(n).then(i=>{let u=i.headers.get("content-type");return u==="image/svg+xml"||u==="application/svg+xml"?i.text():i.arrayBuffer()}).then(i=>{if(typeof i=="string")try{let s=`data:image/svg+xml;base64,${btoa(i)}`,a=lu(n,i);return[s,...a]}catch(s){throw new Error(`Failed to parse SVG image: ${s.message}`)}let[u,o]=fu(i);return[u,...o]}).then(i=>(au.set(n,i),i)).catch(i=>(console.error(`Can't load image ${n}: `+i.message),[]));return yn.set(n,r),r}function Zl(e){return[255,216,255].every((t,n)=>e[n]===t)?Sr:[137,80,78,71,13,10,26,10].every((t,n)=>e[n]===t)?_r:[71,73,70,56].every((t,n)=>e[n]===t)?kr:[82,73,70,70,0,0,0,0,87,69,66,80].every((t,n)=>!t||e[n]===t)?Xl:[60,63,120,109,108].every((t,n)=>e[n]===t)?xn:[0,0,0,0,102,116,121,112,97,118,105,102].every((t,n)=>!t||e[n]===t)?Yl:null}async function Fn(e,t,n,r,i){let u=await Ne(),o={...n,...Cr(Zo[t],n),...Cr(r,n)};if(t==="img"){let[s,a,l]=await Tr(i.src);if(a===void 0&&l===void 0){if(i.width===void 0||i.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");a=parseInt(i.width),l=parseInt(i.height)}let f=l/a,d=(o.borderLeftWidth||0)+(o.borderRightWidth||0)+(o.paddingLeft||0)+(o.paddingRight||0),h=(o.borderTopWidth||0)+(o.borderBottomWidth||0)+(o.paddingTop||0)+(o.paddingBottom||0),D=o.width||i.width,p=o.height||i.height,m=typeof D=="number"&&typeof p=="number";m&&(D-=d,p-=h),D===void 0&&p===void 0?(D="100%",e.setAspectRatio(1/f)):D===void 0?typeof p=="number"?D=p/f:e.setAspectRatio(1/f):p===void 0&&(typeof D=="number"?p=D*f:e.setAspectRatio(1/f)),o.width=m?D+d:D,o.height=m?p+h:p,o.__src=s}if(t==="svg"){let s=i.viewBox||i.viewbox,a=_t(s),l=a?a[3]/a[2]:null,{width:f,height:d}=i;typeof f>"u"&&d?l==null?f=0:typeof d=="string"&&d.endsWith("%")?f=parseInt(d)/l+"%":(d=j(d,n.fontSize,1,n),f=d/l):typeof d>"u"&&f?l==null?f=0:typeof f=="string"&&f.endsWith("%")?d=parseInt(f)*l+"%":(f=j(f,n.fontSize,1,n),d=f*l):(typeof f<"u"&&(f=j(f,n.fontSize,1,n)||f),typeof d<"u"&&(d=j(d,n.fontSize,1,n)||d),f||=a==null?void 0:a[2],d||=a==null?void 0:a[3]),!o.width&&f&&(o.width=f),!o.height&&d&&(o.height=d)}return e.setDisplay(me(o.display,{flex:u.DISPLAY_FLEX,none:u.DISPLAY_NONE},u.DISPLAY_FLEX,"display")),e.setAlignContent(me(o.alignContent,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,"space-between":u.ALIGN_SPACE_BETWEEN,"space-around":u.ALIGN_SPACE_AROUND,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_AUTO,"alignContent")),e.setAlignItems(me(o.alignItems,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_STRETCH,"alignItems")),e.setAlignSelf(me(o.alignSelf,{stretch:u.ALIGN_STRETCH,center:u.ALIGN_CENTER,"flex-start":u.ALIGN_FLEX_START,"flex-end":u.ALIGN_FLEX_END,baseline:u.ALIGN_BASELINE,normal:u.ALIGN_AUTO},u.ALIGN_AUTO,"alignSelf")),e.setJustifyContent(me(o.justifyContent,{center:u.JUSTIFY_CENTER,"flex-start":u.JUSTIFY_FLEX_START,"flex-end":u.JUSTIFY_FLEX_END,"space-between":u.JUSTIFY_SPACE_BETWEEN,"space-around":u.JUSTIFY_SPACE_AROUND},u.JUSTIFY_FLEX_START,"justifyContent")),e.setFlexDirection(me(o.flexDirection,{row:u.FLEX_DIRECTION_ROW,column:u.FLEX_DIRECTION_COLUMN,"row-reverse":u.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":u.FLEX_DIRECTION_COLUMN_REVERSE},u.FLEX_DIRECTION_ROW,"flexDirection")),e.setFlexWrap(me(o.flexWrap,{wrap:u.WRAP_WRAP,nowrap:u.WRAP_NO_WRAP,"wrap-reverse":u.WRAP_WRAP_REVERSE},u.WRAP_NO_WRAP,"flexWrap")),typeof o.gap<"u"&&e.setGap(u.GUTTER_ALL,o.gap),typeof o.rowGap<"u"&&e.setGap(u.GUTTER_ROW,o.rowGap),typeof o.columnGap<"u"&&e.setGap(u.GUTTER_COLUMN,o.columnGap),typeof o.flexBasis<"u"&&e.setFlexBasis(o.flexBasis),e.setFlexGrow(typeof o.flexGrow>"u"?0:o.flexGrow),e.setFlexShrink(typeof o.flexShrink>"u"?0:o.flexShrink),typeof o.maxHeight<"u"&&e.setMaxHeight(o.maxHeight),typeof o.maxWidth<"u"&&e.setMaxWidth(o.maxWidth),typeof o.minHeight<"u"&&e.setMinHeight(o.minHeight),typeof o.minWidth<"u"&&e.setMinWidth(o.minWidth),e.setOverflow(me(o.overflow,{visible:u.OVERFLOW_VISIBLE,hidden:u.OVERFLOW_HIDDEN},u.OVERFLOW_VISIBLE,"overflow")),e.setMargin(u.EDGE_TOP,o.marginTop||0),e.setMargin(u.EDGE_BOTTOM,o.marginBottom||0),e.setMargin(u.EDGE_LEFT,o.marginLeft||0),e.setMargin(u.EDGE_RIGHT,o.marginRight||0),e.setBorder(u.EDGE_TOP,o.borderTopWidth||0),e.setBorder(u.EDGE_BOTTOM,o.borderBottomWidth||0),e.setBorder(u.EDGE_LEFT,o.borderLeftWidth||0),e.setBorder(u.EDGE_RIGHT,o.borderRightWidth||0),e.setPadding(u.EDGE_TOP,o.paddingTop||0),e.setPadding(u.EDGE_BOTTOM,o.paddingBottom||0),e.setPadding(u.EDGE_LEFT,o.paddingLeft||0),e.setPadding(u.EDGE_RIGHT,o.paddingRight||0),e.setPositionType(me(o.position,{absolute:u.POSITION_TYPE_ABSOLUTE,relative:u.POSITION_TYPE_RELATIVE},u.POSITION_TYPE_RELATIVE,"position")),typeof o.top<"u"&&e.setPosition(u.EDGE_TOP,o.top),typeof o.bottom<"u"&&e.setPosition(u.EDGE_BOTTOM,o.bottom),typeof o.left<"u"&&e.setPosition(u.EDGE_LEFT,o.left),typeof o.right<"u"&&e.setPosition(u.EDGE_RIGHT,o.right),typeof o.height<"u"?e.setHeight(o.height):e.setHeightAuto(),typeof o.width<"u"?e.setWidth(o.width):e.setWidthAuto(),[o,gn(o)]}c();c();c();var hu=[1,0,0,1,0,0];function ef(e,t,n){let r=[...hu];for(let i of e){let u=Object.keys(i)[0],o=i[u];if(typeof o=="string")if(u==="translateX")o=parseFloat(o)/100*t,i[u]=o;else if(u==="translateY")o=parseFloat(o)/100*n,i[u]=o;else throw new Error(`Invalid transform: "${u}: ${o}".`);let s=o,a=[...hu];switch(u){case"translateX":a[4]=s;break;case"translateY":a[5]=s;break;case"scale":a[0]=s,a[3]=s;break;case"scaleX":a[0]=s;break;case"scaleY":a[3]=s;break;case"rotate":{let l=s*Math.PI/180,f=Math.cos(l),d=Math.sin(l);a[0]=f,a[1]=d,a[2]=-d,a[3]=f;break}case"skewX":a[2]=Math.tan(s*Math.PI/180);break;case"skewY":a[1]=Math.tan(s*Math.PI/180);break}r=Ct(a,r)}e.splice(0,e.length),e.push(...r),e.__resolved=!0}function kt({left:e,top:t,width:n,height:r},i,u,o){let s;i.__resolved||ef(i,n,r);let a=i;if(u)s=a;else{let l=(o==null?void 0:o.xAbsolute)??((o==null?void 0:o.xRelative)??50)*n/100,f=(o==null?void 0:o.yAbsolute)??((o==null?void 0:o.yRelative)??50)*r/100,d=e+l,h=t+f;s=Ct([1,0,0,1,d,h],Ct(a,[1,0,0,1,-d,-h])),a.__parent&&(s=Ct(a.__parent,s)),a.splice(0,6,...s)}return`matrix(${s.map(l=>l.toFixed(2)).join(",")})`}function Du({left:e,top:t,width:n,height:r,isInheritingTransform:i},u){let o="",s=1;return u.transform&&(o=kt({left:e,top:t,width:n,height:r},u.transform,i,u.transformOrigin)),u.opacity!==void 0&&(s=+u.opacity),{matrix:o,opacity:s}}function wn({id:e,content:t,filter:n,left:r,top:i,width:u,height:o,matrix:s,opacity:a,image:l,clipPathId:f,debug:d,shape:h,decorationShape:D},p){let m="";if(d&&(m=k("rect",{x:r,y:i-o,width:u,height:o,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0})),l){let b={href:l,x:r,y:i,width:u,height:o,transform:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+k("image",{...b,opacity:a!==1?a:void 0})+(D||"")+(n?"</g>":"")+m,""]}let x={x:r,y:i,width:u,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:s||void 0,"clip-path":f?`url(#${f})`:void 0,style:p.filter?`filter:${p.filter}`:void 0};return[(n?`${n}<g filter="url(#satori_s-${e})">`:"")+k("text",{...x,fill:p.color,opacity:a!==1?a:void 0},t)+(D||"")+(n?"</g>":"")+m,h?k("text",x,t):""]}c();function tf(e,t,n){return e.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(r,i,u,o){return i+(parseFloat(u)+t)+","+(parseFloat(o)+n)})}var Or=1.1;function mu({id:e,width:t,height:n},r){if(!r.shadowColor||!r.shadowOffset||typeof r.shadowRadius>"u")return"";let i=r.shadowColor.length,u="",o="",s=0,a=t,l=0,f=n;for(let d=0;d<i;d++){let h=r.shadowRadius[d]*r.shadowRadius[d]/4;s=Math.min(r.shadowOffset[d].width-h,s),a=Math.max(r.shadowOffset[d].width+h+t,a),l=Math.min(r.shadowOffset[d].height-h,l),f=Math.max(r.shadowOffset[d].height+h+n,f),u+=k("feDropShadow",{dx:r.shadowOffset[d].width,dy:r.shadowOffset[d].height,stdDeviation:r.shadowRadius[d]/2,"flood-color":r.shadowColor[d],"flood-opacity":1,...i>1?{in:"SourceGraphic",result:`satori_s-${e}-result-${d}`}:{}}),i>1&&(o=k("feMergeNode",{in:`satori_s-${e}-result-${d}`})+o)}return k("filter",{id:`satori_s-${e}`,x:(s/t*100*Or).toFixed(2)+"%",y:(l/n*100*Or).toFixed(2)+"%",width:((a-s)/t*100*Or).toFixed(2)+"%",height:((f-l)/n*100*Or).toFixed(2)+"%"},u+(o?k("feMerge",{},o):""))}function gu({width:e,height:t,shape:n,opacity:r,id:i},u){if(!u.boxShadow)return null;let o="",s="";for(let a=u.boxShadow.length-1;a>=0;a--){let l="",f=u.boxShadow[a];f.spreadRadius&&f.inset&&(f.spreadRadius=-f.spreadRadius);let d=f.blurRadius*f.blurRadius/4+(f.spreadRadius||0),h=Math.min(-d-(f.inset?f.offsetX:0),0),D=Math.max(d+e-(f.inset?f.offsetX:0),e),p=Math.min(-d-(f.inset?f.offsetY:0),0),m=Math.max(d+t-(f.inset?f.offsetY:0),t),x=`satori_s-${i}-${a}`,b=`satori_ms-${i}-${a}`,v=f.spreadRadius?n.replace('stroke-width="0"',`stroke-width="${f.spreadRadius*2}"`):n;l+=k("mask",{id:b,maskUnits:"userSpaceOnUse"},k("rect",{x:0,y:0,width:u._viewportWidth||"100%",height:u._viewportHeight||"100%",fill:f.inset?"#000":"#fff"})+v.replace('fill="#fff"',f.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let F=v.replace(/d="([^"]+)"/,(w,E)=>'d="'+tf(E,f.offsetX,f.offsetY)+'"').replace(/x="([^"]+)"/,(w,E)=>'x="'+(parseFloat(E)+f.offsetX)+'"').replace(/y="([^"]+)"/,(w,E)=>'y="'+(parseFloat(E)+f.offsetY)+'"');f.spreadRadius&&f.spreadRadius<0&&(l+=k("mask",{id:b+"-neg",maskUnits:"userSpaceOnUse"},F.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-f.spreadRadius*2}"`))),f.spreadRadius&&f.spreadRadius<0&&(F=k("g",{mask:`url(#${b}-neg)`},F)),l+=k("defs",{},k("filter",{id:x,x:`${h/e*100}%`,y:`${p/t*100}%`,width:`${(D-h)/e*100}%`,height:`${(m-p)/t*100}%`},k("feGaussianBlur",{stdDeviation:f.blurRadius/2,result:"b"})+k("feFlood",{"flood-color":f.color,in:"SourceGraphic",result:"f"})+k("feComposite",{in:"f",in2:"b",operator:f.inset?"out":"in"})))+k("g",{mask:`url(#${b})`,filter:`url(#${x})`,opacity:r},F),f.inset?s+=l:o+=l}return[o,s]}c();function En({width:e,left:t,top:n,ascender:r,clipPathId:i},u){let{textDecorationColor:o,textDecorationStyle:s,textDecorationLine:a,fontSize:l}=u;if(!a||a==="none")return"";let f=Math.max(1,l*.1),d=a==="line-through"?n+r*.5:a==="underline"?n+r*1.1:n,h=s==="dashed"?`${f*1.2} ${f*2}`:s==="dotted"?`0 ${f*2}`:void 0;return k("line",{x1:t,y1:d,x2:t+e,y2:d,stroke:o,"stroke-width":f,"stroke-dasharray":h,"stroke-linecap":s==="dotted"?"round":"square","clip-path":i?`url(#${i})`:void 0})}async function*Cn(e,t){var Po;let n=await Ne(),{parentStyle:r,inheritedStyle:i,parent:u,font:o,id:s,isInheritingTransform:a,debug:l,embedFont:f,graphemeImages:d,locale:h,canLoadAdditionalAssets:D}=t,{textAlign:p,textOverflow:m,whiteSpace:x,wordBreak:b,lineHeight:v,textTransform:F,textWrap:w,fontSize:E,filter:B,_inheritedBackgroundClipTextPath:R}=r;e=rf(e,F,h);let{content:L,shouldCollapseWhitespace:Y,allowSoftWrap:J}=of(e,x),{words:ne,requiredBreaks:U,allowBreakWord:M}=nf(L,b),Z=uf(n,p);u.insertChild(Z,u.getChildCount()),Ko(r.flexShrink)&&u.setFlexShrink(1);let H=o.getEngine(E,v,r,h),ce=D?De(e,"grapheme").filter($=>!H.has($)):[];yield ce.map($=>({word:$,locale:h})),ce.length&&(H=o.getEngine(E,v,r,h));let Fe=sf(H,r);function ie($){return!!(d&&d[$])}function ee($){let q=0;for(let N of $)ie(N)?q+=E:q+=Fe(N);return q}let Ie=$=>{if($.length===0)return{originWidth:0,endingSpacesWidth:0};let q=ee(De($,"grapheme")),N=$.trimEnd()===$?q:ee(De($.trimEnd(),"grapheme"));return{originWidth:q,endingSpacesWidth:q-N}},O=[],P=[],W=[],I=[],oe=[];function ye($){let q=0,N=0,xe=0,pe=-1,he=0,ue=0,ae=0;O=[],W=[0],I=[],oe=[];let Me=0;for(;Me<ne.length;){let X=ne[Me],Ze=U[Me],we=0,je=0,{originWidth:xt,endingSpacesWidth:et}=Ie(X);we=xt,je=et,Ze&&ue===0&&(ue=H.height(X));let le=",.!?:-@)>]}%#".indexOf(X[0])<0,de=!N,He=Me&&le&&N+we>$+je&&J;if(M&&we>$&&(!N||He||Ze)){let tt=De(X,"grapheme");ne.splice(Me,1,...tt),N>0&&(O.push(N),P.push(ae),q++,he+=ue,N=0,ue=0,ae=0,W.push(1),pe=-1);continue}if(Ze||He)Y&&X===" "&&(we=0),O.push(N),P.push(ae),q++,he+=ue,N=we,ue=we?H.height(X):0,ae=we?H.baseline(X):0,W.push(1),pe=-1,Ze||(xe=Math.max(xe,$));else{N+=we;let tt=H.height(X);tt>ue&&(ue=tt,ae=H.baseline(X)),de&&W[W.length-1]++}de&&pe++,xe=Math.max(xe,N);let ct=N-we;if(we===0)oe.push({y:he,x:ct,width:0,line:q,lineIndex:pe,isImage:!1});else{let tt=De(X,"word");for(let fn=0;fn<tt.length;fn++){let cn=tt[fn],vr=0,Bo=!1;ie(cn)?(vr=E,Bo=!0):vr=Fe(cn),I.push(cn),oe.push({y:he,x:ct,width:vr,line:q,lineIndex:pe,isImage:Bo}),ct+=vr}}Me++}return N&&(q++,O.push(N),P.push(ae),he+=ue),{width:xe,height:he}}let Ue={width:0,height:0};Z.setMeasureFunc($=>{let{width:q,height:N}=ye($);if(w==="balance"){let xe=q/2,pe=q,he=q;for(;xe+1<pe;){he=(xe+pe)/2;let{height:ue}=ye(he);ue>N?xe=he:pe=he}return ye(pe),Ue={width:pe,height:N},{width:pe,height:N}}return Ue={width:q,height:N},{width:q,height:N}});let[hl,Dl]=yield,on="",Dr="",ze=i._inheritedClipPathId,_o=i._inheritedMaskId,{left:So,top:ko,width:un,height:ml}=Z.getComputedLayout(),sn=u.getComputedWidth()-u.getComputedPadding(n.EDGE_LEFT)-u.getComputedPadding(n.EDGE_RIGHT)-u.getComputedBorder(n.EDGE_LEFT)-u.getComputedBorder(n.EDGE_RIGHT),at=hl+So,lt=Dl+ko,{matrix:Le,opacity:mr}=Du({left:So,top:ko,width:un,height:ml,isInheritingTransform:a},r),ft="";if(r.textShadowOffset){let{textShadowColor:$,textShadowOffset:q,textShadowRadius:N}=r;Array.isArray(r.textShadowOffset)||($=[$],q=[q],N=[N]),ft=mu({width:Ue.width,height:Ue.height,id:s},{shadowColor:$,shadowOffset:q,shadowRadius:N}),ft=k("defs",{},ft)}let yt="",gr="",To="",an=-1,Oo=m==="ellipsis"?ee(["\u2026"]):0,gl=m==="ellipsis"?ee([" "]):0,br={},Ge=null,Ao=0;for(let $=0;$<I.length;$++){let q=oe[$];if(!q)continue;let N=I[$],xe=null,pe=!1,he=d?d[N]:null,ue=q.y,ae=q.x,Me=q.width,X=q.line;if(X===an)continue;let Ze=!1;if(O.length>1){let le=un-O[X];if(p==="right"||p==="end")ae+=le;else if(p==="center")ae+=le/2;else if(p==="justify"&&X<O.length-1){let de=W[X];ae+=(de>1?le/(de-1):0)*q.lineIndex,Ze=!0}}if(br[X]||(br[X]=[ae,Ze?un:O[X]]),m==="ellipsis"&&O[X]>sn&&q.x+Me+Oo+gl>sn){let le=De(N,"grapheme",h),de="",He=0;for(let ln of le){let ct=q.x+ee([de+ln]);if(de&&ct+Oo>sn)break;de+=ln,He=ct}N=de+"\u2026",an=X,br[X][1]=He,pe=!0}let we=P[X],je=H.baseline(N),xt=H.height(N),et=we-je;if(he)ue+=0;else if(f){if(!Ho.includes(N)&&I[$+1]&&oe[$+1]&&!oe[$+1].isImage&&ue===oe[$+1].y&&!pe){Ge===null&&(Ao=ae),Ge=Ge===null?N:Ge+N;continue}let le=Ge===null?N:Ge+N,de=Ge===null?ae:Ao,He=q.width+ae-de;xe=H.getSVG(le,{...r,left:at+de,top:lt+ue+je+et,letterSpacing:r.letterSpacing}),Ge=null,l&&(To+=k("rect",{x:at+de,y:lt+ue+et,width:He,height:xt,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:Le||void 0,"clip-path":ze?`url(#${ze})`:void 0})+k("line",{x1:at+ae,x2:at+ae+q.width,y1:lt+ue+et+je,y2:lt+ue+et+je,stroke:"#14c000","stroke-width":1,transform:Le||void 0,"clip-path":ze?`url(#${ze})`:void 0}))}else ue+=je+et;if(r.textDecorationLine&&(X!==((Po=oe[$+1])==null?void 0:Po.line)||an===X)){let le=br[X];le&&!le[2]&&(yt+=En({left:at+le[0],top:lt+xt*+X,width:le[1],ascender:H.baseline(N),clipPathId:ze},r),le[2]=1)}if(xe!==null)gr+=xe+" ";else{let[le,de]=wn({content:N,filter:ft,id:s,left:at+ae,top:lt+ue,width:Me,height:xt,matrix:Le,opacity:mr,image:he,clipPathId:ze,debug:l,shape:!!R,decorationShape:yt},r);on+=le,Dr+=de,yt=""}}if(gr){let $=r.color!=="transparent"&&mr!==0?k("path",{fill:r.color,d:gr,transform:Le||void 0,opacity:mr!==1?mr:void 0,"clip-path":ze?`url(#${ze})`:void 0,mask:_o?`url(#${_o})`:void 0,style:B?`filter:${B}`:void 0}):"";R&&(Dr=k("path",{d:gr,transform:Le||void 0})),on+=(ft?ft+k("g",{filter:`url(#satori_s-${s})`},$+yt):$+yt)+To}return Dr&&(r._inheritedBackgroundClipTextPath.value+=Dr),on}function rf(e,t,n){return t==="uppercase"?e=e.toLocaleUpperCase(n):t==="lowercase"?e=e.toLocaleLowerCase(n):t==="capitalize"&&(e=De(e,"word",n).map(r=>De(r,"grapheme",n).map((i,u)=>u===0?i.toLocaleUpperCase(n):i).join("")).join("")),e}function nf(e,t){let n=["break-all","break-word"].includes(t),{words:r,requiredBreaks:i}=Jo(e,t);return{words:r,requiredBreaks:i,allowBreakWord:n}}function of(e,t){let n=["pre","pre-wrap","pre-line"].includes(t),r=!["pre","pre-wrap"].includes(t),i=!["pre","nowrap"].includes(t);return n||(e=e.replace(/\n/g," ")),r&&(e=e.replace(/[ ]+/g," "),e=e.trim()),{content:e,shouldCollapseWhitespace:r,allowSoftWrap:i}}function uf(e,t){let n=e.Node.create();return n.setAlignItems(e.ALIGN_BASELINE),n.setJustifyContent(me(t,{left:e.JUSTIFY_FLEX_START,right:e.JUSTIFY_FLEX_END,center:e.JUSTIFY_CENTER,justify:e.JUSTIFY_SPACE_BETWEEN,start:e.JUSTIFY_FLEX_START,end:e.JUSTIFY_FLEX_END},e.JUSTIFY_FLEX_START,"textAlign")),n}function sf(e,t){let n=new Map;return function(i){if(n.has(i))return n.get(i);let u=e.measure(i,t);return n.set(i,u),u}}c();c();c();var _n=_n||{},bu={type:"directional",value:"bottom"};_n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emLikeValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))(r?em|vw|vh)/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,zeroValue:/[0]/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(O){var P=new Error(t+": "+O);throw P.source=t,P}function r(){var O=i();return t.length>0&&n("Invalid input not EOF"),O}function i(){return B(u)}function u(){return s("linear-gradient",e.linearGradient,l,bu)||s("repeating-linear-gradient",e.repeatingLinearGradient,l,bu)||s("radial-gradient",e.radialGradient,D)||s("repeating-radial-gradient",e.repeatingRadialGradient,D)}function o(O={}){var W,I,oe,ye;let P={...O};return Object.assign(P,{style:(P.style||[]).length>0?P.style:[{type:"extent-keyword",value:"farthest-corner"}],at:{type:"position",value:{x:{type:"position-keyword",value:"center",...((I=(W=P.at)==null?void 0:W.value)==null?void 0:I.x)||{}},y:{type:"position-keyword",value:"center",...((ye=(oe=P.at)==null?void 0:oe.value)==null?void 0:ye.y)||{}}}}}),O.value||Object.assign(P,{type:"shape",value:P.style.some(Ue=>["%","extent-keyword"].includes(Ue.type))?"ellipse":"circle"}),P}function s(O,P,W,I){return a(P,function(oe){var ye=W();return ye?ee(e.comma)||n("Missing comma before color stops"):ye=I,{type:O,orientation:O.endsWith("radial-gradient")?(ye==null?void 0:ye.map(Ue=>o(Ue)))??[o()]:ye,colorStops:B(R)}})}function a(O,P){var W=ee(O);if(W){ee(e.startCall)||n("Missing (");var I=P(W);return ee(e.endCall)||n("Missing )"),I}}function l(){return f()||d()||h()}function f(){return ie("directional",e.sideOrCorner,1)}function d(){return ie("angular",e.angleValue,1)}function h(){return ie("directional",e.zeroValue,0)}function D(){var O,P=p(),W;return P&&(O=[],O.push(P),W=t,ee(e.comma)&&(P=p(),P?O.push(P):t=W)),O}function p(){let O=m(),P=F();if(!(!O&&!P))return{...O,at:P}}function m(){let O=x()||b(),P=v()||ce()||Z(),W=ie("%",e.percentageValue,1);if(O)return{...O,style:[P,W].filter(I=>I)};if(P)return{style:[P,W].filter(I=>I),...x()||b()}}function x(){return ie("shape",/^(circle)/i,0)}function b(){return ie("shape",/^(ellipse)/i,0)}function v(){return ie("extent-keyword",e.extentKeywords,1)}function F(){if(ie("position",/^at/,0)){var O=w();return O||n("Missing positioning value"),O}}function w(){var O=E();if(O.x||O.y)return{type:"position",value:O}}function E(){return{x:Z(),y:Z()}}function B(O){var P=O(),W=[];if(P)for(W.push(P);ee(e.comma);)P=O(),P?W.push(P):n("One extra comma");return W}function R(){var O=L();return O||n("Expected color definition"),O.length=Z(),O}function L(){return J()||U()||ne()||Y()}function Y(){return ie("literal",e.literalColor,0)}function J(){return ie("hex",e.hexColor,1)}function ne(){return a(e.rgbColor,function(){return{type:"rgb",value:B(M)}})}function U(){return a(e.rgbaColor,function(){return{type:"rgba",value:B(M)}})}function M(){return ee(e.number)[1]}function Z(){return ie("%",e.percentageValue,1)||H()||ce()}function H(){return ie("position-keyword",e.positionKeywords,1)}function ce(){return ie("px",e.pixelValue,1)||Fe(e.emLikeValue,1)}function Fe(O,P){var W=ee(O);if(W)return{type:W[5],value:W[P]}}function ie(O,P,W){var I=ee(P);if(I)return{type:O,value:I[W]}}function ee(O){var P,W;return W=/^[\n\r\t\s]+/.exec(t),W&&Ie(W[0].length),P=O.exec(t),P&&Ie(P[0].length),P}function Ie(O){t=t.substr(O)}return function(O){return t=O.toString(),r()}}();var Sn=_n;function af(e){return e.type==="literal"?e.value:e.type==="hex"?`#${e.value}`:e.type==="rgb"?`rgb(${e.value.join(",")})`:e.type==="rgba"?`rgba(${e.value.join(",")})`:"transparent"}function lf(e){let t=0,n=0,r=0,i=0;return e.includes("top")?n=1:e.includes("bottom")&&(i=1),e.includes("left")?t=1:e.includes("right")&&(r=1),!t&&!r&&!n&&!i&&(n=1),[t,n,r,i]}function ff(e,t){return typeof e=="string"&&e.endsWith("%")?t*parseFloat(e)/100:+e}function kn(e,{x:t,y:n,defaultX:r,defaultY:i}){return(e?e.split(" ").map(u=>{try{let o=new Ve(u);return o.type==="length"||o.type==="number"?o.value:o.value+o.unit}catch{return null}}).filter(u=>u!==null):[r,i]).map((u,o)=>ff(u,[t,n][o]))}function vu(e,t){let n=[];for(let o of t){let s=af(o);if(!n.length&&(n.push({offset:0,color:s}),typeof o.length>"u"||o.length.value==="0"))continue;let a=typeof o.length>"u"?void 0:o.length.type==="%"?o.length.value/100:o.length.value/e;n.push({offset:a,color:s})}n.length||n.push({offset:0,color:"transparent"});let r=n[n.length-1];r.offset!==1&&(typeof r.offset>"u"?r.offset=1:n.push({offset:1,color:r.color}));let i=0,u=1;for(let o=0;o<n.length;o++)if(typeof n[o].offset>"u"){for(u<o&&(u=o);typeof n[u].offset>"u";)u++;n[o].offset=(n[u].offset-n[i].offset)/(u-i)*(o-i)+n[i].offset}else i=o;return n}async function Tn({id:e,width:t,height:n,left:r,top:i},{image:u,size:o,position:s,repeat:a},l){a=a||"repeat";let f=a==="repeat-x"||a==="repeat",d=a==="repeat-y"||a==="repeat",h=kn(o,{x:t,y:n,defaultX:t,defaultY:n}),D=kn(s,{x:t,y:n,defaultX:0,defaultY:0});if(u.startsWith("linear-gradient(")){let p=Sn.parse(u)[0],[m,x]=h,b,v,F,w,E;if(p.orientation.type==="directional")[b,v,F,w]=lf(p.orientation.value),E=Math.sqrt(Math.pow((F-b)*m,2)+Math.pow((w-v)*x,2));else if(p.orientation.type==="angular"){let U=function(M){if(M=(M%(Math.PI*2)+Math.PI*2)%(Math.PI*2),Math.abs(M-Math.PI/2)<1e-6){b=0,v=0,F=1,w=0,E=m;return}else if(Math.abs(M)<1e-6){b=0,v=1,F=0,w=0,E=x;return}if(M>=Math.PI/2&&M<Math.PI){U(Math.PI-M),v=1-v,w=1-w;return}else if(M>=Math.PI){U(M-Math.PI);let P=b;b=F,F=P,P=v,v=w,w=P;return}let Z=Math.tan(M),H=Z*ne,ce=Math.atan(H),Fe=Math.sqrt(2)*Math.cos(Math.PI/4-ce);b=0,v=1,F=Math.sin(ce)*Fe,w=1-Math.cos(ce)*Fe;let ie=1,ee=1/Z,Ie=Math.abs((ie*ne+ee)/Math.sqrt(ie*ie+ee*ee)/Math.sqrt(ne*ne+1));E=Math.sqrt(m*m+x*x)*Ie},ne=m/x;U(+p.orientation.value/180*Math.PI)}let B=vu(E,p.colorStops),R=`satori_bi${e}`,L=`satori_pattern_${e}`,Y=k("pattern",{id:L,x:D[0]/t,y:D[1]/n,width:f?m/t:"1",height:d?x/n:"1",patternUnits:"objectBoundingBox"},k("linearGradient",{id:R,x1:b,y1:v,x2:F,y2:w},B.map(J=>k("stop",{offset:J.offset*100+"%","stop-color":J.color})).join(""))+k("rect",{x:0,y:0,width:m,height:x,fill:`url(#${R})`}));return[L,Y]}if(u.startsWith("radial-gradient(")){let p=Sn.parse(u)[0],m=p.orientation[0],[x,b]=h,v="circle",F=x/2,w=b/2;if(m.type==="shape"){if(v=m.value,m.at)if(m.at.type==="position"){let U=cf(m.at.value.x,m.at.value.y,x,b,l.fontSize,l);F=U.x,w=U.y}else throw new Error("orientation.at.type not implemented: "+m.at.type)}else throw new Error("orientation.type not implemented: "+m.type);let E=vu(t,p.colorStops),B=`satori_radial_${e}`,R=`satori_pattern_${e}`,L=`satori_mask_${e}`,Y=df(v,m.style,l.fontSize,{x:F,y:w},[x,b],l),J=k("pattern",{id:R,x:D[0]/t,y:D[1]/n,width:f?x/t:"1",height:d?b/n:"1",patternUnits:"objectBoundingBox"},k("radialGradient",{id:B},E.map(U=>k("stop",{offset:U.offset,"stop-color":U.color})).join(""))+k("mask",{id:L},k("rect",{x:0,y:0,width:x,height:b,fill:"#fff"}))+k("rect",{x:0,y:0,width:x,height:b,fill:E.at(-1).color})+k(v,{cx:F,cy:w,width:x,height:b,...Y,fill:`url(#${B})`,mask:`url(#${L})`}));return[R,J]}if(u.startsWith("url(")){let p=kn(o,{x:t,y:n,defaultX:0,defaultY:0}),[m,x,b]=await Tr(u.slice(4,-1)),v=p[0]||x,F=p[1]||b;return[`satori_bi${e}`,k("pattern",{id:`satori_bi${e}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:D[0]+r,y:D[1]+i,width:f?v:"100%",height:d?F:"100%"},k("image",{x:0,y:0,width:v,height:F,preserveAspectRatio:"none",href:m}))]}throw new Error(`Invalid background image: "${u}"`)}function cf(e,t,n,r,i,u){let o={x:n/2,y:r/2};return e.type==="position-keyword"?Object.assign(o,yu(e.value,n,r,"x")):o.x=j(`${e.value}${e.type}`,i,n,u,!0),t.type==="position-keyword"?Object.assign(o,yu(t.value,n,r,"y")):o.y=j(`${t.value}${t.type}`,i,r,u,!0),o}function yu(e,t,n,r){switch(e){case"center":return{[r]:r==="x"?t/2:n/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:t};case"bottom":return{y:n}}}function df(e,t,n,r,i,u){let[o,s]=i,{x:a,y:l}=r,f={},d=0,h=0;if(!t.some(p=>p.type==="extent-keyword")){if(t.some(p=>p.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return e==="circle"?{r:j(`${t[0].value}${t[0].type}`,n,o,u,!0)}:{rx:j(`${t[0].value}${t[0].type}`,n,o,u,!0),ry:j(`${t[1].value}${t[1].type}`,n,s,u,!0)}}switch(t[0].value){case"farthest-corner":d=Math.max(Math.abs(o-a),Math.abs(a)),h=Math.max(Math.abs(s-l),Math.abs(l));break;case"closest-corner":d=Math.min(Math.abs(o-a),Math.abs(a)),h=Math.min(Math.abs(s-l),Math.abs(l));break;case"farthest-side":return e==="circle"?f.r=Math.max(Math.abs(o-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.max(Math.abs(o-a),Math.abs(a)),f.ry=Math.max(Math.abs(s-l),Math.abs(l))),f;case"closest-side":return e==="circle"?f.r=Math.min(Math.abs(o-a),Math.abs(a),Math.abs(s-l),Math.abs(l)):(f.rx=Math.min(Math.abs(o-a),Math.abs(a)),f.ry=Math.min(Math.abs(s-l),Math.abs(l))),f}if(e==="circle")f.r=Math.sqrt(d*d+h*h);else{let p=h!==0?d/h:1;d===0?(f.rx=0,f.ry=0):(f.ry=Math.sqrt(d*d+h*h*p*p)/p,f.rx=f.ry*p)}return f}c();function pf([e,t]){return Math.round(e*1e3)===0&&Math.round(t*1e3)===0?0:Math.round(e*t/Math.sqrt(e*e+t*t)*1e3)/1e3}function Ar(e,t,n){return n<e+t&&(n/2<e&&n/2<t?e=t=n/2:n/2<e?e=n-t:n/2<t&&(t=n-e)),[e,t]}function Pr(e){e[0]=e[1]=Math.min(e[0],e[1])}function Br(e,t,n,r,i){if(typeof e=="string"){let u=e.split(" ").map(s=>s.trim()),o=!u[1]&&!u[0].endsWith("%");return u[1]=u[1]||u[0],[o,[Math.min(j(u[0],r,t,i,!0),t),Math.min(j(u[1],r,n,i,!0),n)]]}return typeof e=="number"?[!0,[Math.min(e,t),Math.min(e,n)]]:[!0,void 0]}var Rr=e=>e&&e[0]!==0&&e[1]!==0;function Ye({left:e,top:t,width:n,height:r},i,u){let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:a,borderBottomRightRadius:l,fontSize:f}=i,d,h,D,p;if([d,o]=Br(o,n,r,f,i),[h,s]=Br(s,n,r,f,i),[D,a]=Br(a,n,r,f,i),[p,l]=Br(l,n,r,f,i),!u&&!Rr(o)&&!Rr(s)&&!Rr(a)&&!Rr(l))return"";o||=[0,0],s||=[0,0],a||=[0,0],l||=[0,0],[o[0],s[0]]=Ar(o[0],s[0],n),[a[0],l[0]]=Ar(a[0],l[0],n),[o[1],a[1]]=Ar(o[1],a[1],r),[s[1],l[1]]=Ar(s[1],l[1],r),d&&Pr(o),h&&Pr(s),D&&Pr(a),p&&Pr(l);let m=[];m[0]=[s,s],m[1]=[l,[-l[0],l[1]]],m[2]=[a,[-a[0],-a[1]]],m[3]=[o,[o[0],-o[1]]];let x=`h${n-o[0]-s[0]} a${m[0][0]} 0 0 1 ${m[0][1]}`,b=`v${r-s[1]-l[1]} a${m[1][0]} 0 0 1 ${m[1][1]}`,v=`h${l[0]+a[0]-n} a${m[2][0]} 0 0 1 ${m[2][1]}`,F=`v${a[1]+o[1]-r} a${m[3][0]} 0 0 1 ${m[3][1]}`;if(u){let E=function(U){let M=pf([o,s,l,a][U]);return U===0?[[e+o[0]-M,t+o[1]-M],[e+o[0],t]]:U===1?[[e+n-s[0]+M,t+s[1]-M],[e+n,t+s[1]]]:U===2?[[e+n-l[0]+M,t+r-l[1]+M],[e+n-l[0],t+r]]:[[e+a[0]-M,t+r-a[1]+M],[e,t+r-a[1]]]},w=u.indexOf(!1);if(!u.includes(!0))throw new Error("Invalid `partialSides`.");if(w===-1)w=0;else for(;!u[w];)w=(w+1)%4;let B="",R=E(w),L=`M${R[0]} A${m[(w+3)%4][0]} 0 0 1 ${R[1]}`,Y=0;for(;Y<4&&u[(w+Y)%4];Y++)B+=L+" ",L=[x,b,v,F][(w+Y)%4];let J=(w+Y)%4;B+=L.split(" ")[0];let ne=E(J);return B+=` A${m[(J+3)%4][0]} 0 0 1 ${ne[0]}`,B}return`M${e+o[0]},${t} ${x} ${b} ${v} ${F}`}c();c();c();function xu(e,t,n){return n[e+"Width"]===n[t+"Width"]&&n[e+"Style"]===n[t+"Style"]&&n[e+"Color"]===n[t+"Color"]}function Fu({id:e,currentClipPathId:t,borderPath:n,borderType:r,left:i,top:u,width:o,height:s},a){if(!(a.borderTopWidth||a.borderRightWidth||a.borderBottomWidth||a.borderLeftWidth))return null;let f=`satori_bc-${e}`;return[k("clipPath",{id:f,"clip-path":t?`url(#${t})`:void 0},k(r,{x:i,y:u,width:o,height:s,d:n||void 0})),f]}function Tt({left:e,top:t,width:n,height:r,props:i,asContentMask:u,maskBorderOnly:o},s){let a=["borderTop","borderRight","borderBottom","borderLeft"];if(!u&&!a.some(D=>s[D+"Width"]))return"";let l="",f=0;for(;f>0&&xu(a[f],a[(f+3)%4],s);)f=(f+3)%4;let d=[!1,!1,!1,!1],h=[];for(let D=0;D<4;D++){let p=(f+D)%4,m=(f+D+1)%4,x=a[p],b=a[m];if(d[p]=!0,h=[s[x+"Width"],s[x+"Style"],s[x+"Color"],x],!xu(x,b,s)){let v=(h[0]||0)+(u&&!o&&s[x.replace("border","padding")]||0);v&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:u?"#000":h[2],"stroke-width":v*2,"stroke-dasharray":!u&&h[1]==="dashed"?v*2+" "+v:void 0,d:Ye({left:e,top:t,width:n,height:r},s,d)})),d=[!1,!1,!1,!1]}}if(d.some(Boolean)){let D=(h[0]||0)+(u&&!o&&s[h[3].replace("border","padding")]||0);D&&(l+=k("path",{width:n,height:r,...i,fill:"none",stroke:u?"#000":h[2],"stroke-width":D*2,"stroke-dasharray":!u&&h[1]==="dashed"?D*2+" "+D:void 0,d:Ye({left:e,top:t,width:n,height:r},s,d)}))}return l}function On({id:e,left:t,top:n,width:r,height:i,matrix:u,borderOnly:o},s){let a=(s.borderLeftWidth||0)+(o?0:s.paddingLeft||0),l=(s.borderTopWidth||0)+(o?0:s.paddingTop||0),f=(s.borderRightWidth||0)+(o?0:s.paddingRight||0),d=(s.borderBottomWidth||0)+(o?0:s.paddingBottom||0),h={x:t+a,y:n+l,width:r-a-f,height:i-l-d};return k("mask",{id:e},k("rect",{...h,fill:"#fff",mask:s._inheritedMaskId?`url(#${s._inheritedMaskId})`:void 0})+Tt({left:t,top:n,width:r,height:i,props:{transform:u||void 0},asContentMask:!0,maskBorderOnly:o},s))}c();c();var An=require("css-to-react-native"),Ot={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function Cu({width:e,height:t},n,r){function i(l){let f=l.match(Ot.circle);if(!f)return null;let[,d]=f,[h,D=""]=d.split("at").map(x=>x.trim()),{x:p,y:m}=Eu(D,e,t);return{type:"circle",r:j(h,r.fontSize,Math.sqrt(Math.pow(e,2)+Math.pow(t,2))/Math.sqrt(2),r,!0),cx:j(p,r.fontSize,e,r,!0),cy:j(m,r.fontSize,t,r,!0)}}function u(l){let f=l.match(Ot.ellipse);if(!f)return null;let[,d]=f,[h,D=""]=d.split("at").map(v=>v.trim()),[p,m]=h.split(" "),{x,y:b}=Eu(D,e,t);return{type:"ellipse",rx:j(p||"50%",r.fontSize,e,r,!0),ry:j(m||"50%",r.fontSize,t,r,!0),cx:j(x,r.fontSize,e,r,!0),cy:j(b,r.fontSize,t,r,!0)}}function o(l){let f=l.match(Ot.path);if(!f)return null;let[d,h]=wu(f[1]);return{type:"path",d:h,"fill-rule":d}}function s(l){let f=l.match(Ot.polygon);if(!f)return null;let[d,h]=wu(f[1]);return{type:"polygon","fill-rule":d,points:h.split(",").map(D=>D.split(" ").map((p,m)=>j(p,r.fontSize,m===0?e:t,r,!0)).join(" ")).join(",")}}function a(l){let f=l.match(Ot.inset);if(!f)return null;let[d,h]=(f[1].includes("round")?f[1]:`${f[1].trim()} round 0`).split("round"),D=(0,An.getStylesForProperty)("borderRadius",h,!0),p=Object.values(D).map(w=>String(w)).map((w,E)=>j(w,r.fontSize,E===0||E===2?t:e,r,!0)||0),m=Object.values((0,An.getStylesForProperty)("margin",d,!0)).map(w=>String(w)).map((w,E)=>j(w,r.fontSize,E===0||E===2?t:e,r,!0)||0),x=m[3],b=m[0],v=e-(m[1]+m[3]),F=t-(m[0]+m[2]);if(p.some(w=>w>0)){let w=Ye({left:x,top:b,width:v,height:F},{...n,...D});return{type:"path",d:w}}return{type:"rect",x,y:b,width:v,height:F}}return{parseCircle:i,parseEllipse:u,parsePath:o,parsePolygon:s,parseInset:a}}function wu(e){let[,t="nonzero",n]=e.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[t,n]}function Eu(e,t,n){let r=e.split(" "),i={x:r[0]||"50%",y:r[1]||"50%"};return r.forEach(u=>{u==="top"?i.y=0:u==="bottom"?i.y=n:u==="left"?i.x=0:u==="right"?i.x=t:u==="center"&&(i.x=t/2,i.y=n/2)}),i}function Ir(e){return`satori_cp-${e}`}function _u(e){return`url(#${Ir(e)})`}function Su(e,t,n){if(t.clipPath==="none")return"";let r=Cu(e,t,n),i=t.clipPath,u={type:""};for(let o of Object.keys(r))if(u=r[o](i),u)break;if(u){let{type:o,...s}=u;return k("clipPath",{id:Ir(e.id),"clip-path":e.currentClipPath,transform:`translate(${e.left}, ${e.top})`},k(o,s))}return""}function Pn({left:e,top:t,width:n,height:r,path:i,matrix:u,id:o,currentClipPath:s,src:a},l,f){let d="",h=l.clipPath&&l.clipPath!=="none"?Su({left:e,top:t,width:n,height:r,path:i,id:o,matrix:u,currentClipPath:s,src:a},l,f):"";if(l.overflow!=="hidden"&&!a)d="";else{let p=h?`satori_ocp-${o}`:Ir(o);d=k("clipPath",{id:p,"clip-path":s},k(i?"path":"rect",{x:e,y:t,width:n,height:r,d:i||void 0}))}let D=On({id:`satori_om-${o}`,left:e,top:t,width:n,height:r,matrix:u,borderOnly:!a},l);return h+d+D}async function At({id:e,left:t,top:n,width:r,height:i,isInheritingTransform:u,src:o,debug:s},a,l){if(a.display==="none")return"";let f=!!o,d="rect",h="",D="",p=[],m=1,x="";a.backgroundColor&&p.push(a.backgroundColor),a.opacity!==void 0&&(m=+a.opacity),a.transform&&(h=kt({left:t,top:n,width:r,height:i},a.transform,u,a.transformOrigin));let b="";if(a.backgroundImage){let U=[];for(let M=0;M<a.backgroundImage.length;M++){let Z=a.backgroundImage[M],H=await Tn({id:e+"_"+M,width:r,height:i,left:t,top:n},Z,l);H&&U.unshift(H)}for(let M of U)p.push(`url(#${M[0]})`),D+=M[1],M[2]&&(b+=M[2])}let v=Ye({left:t,top:n,width:r,height:i},a);v&&(d="path");let F=a._inheritedClipPathId,w=a._inheritedMaskId;s&&(x=k("rect",{x:t,y:n,width:r,height:i,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:h||void 0,"clip-path":F?`url(#${F})`:void 0}));let{backgroundClip:E,filter:B}=a,R=E==="text"?`url(#satori_bct-${e})`:F?`url(#${F})`:a.clipPath?_u(e):void 0,L=Pn({left:t,top:n,width:r,height:i,path:v,id:e,matrix:h,currentClipPath:R,src:o},a,l),Y=p.map(U=>k(d,{x:t,y:n,width:r,height:i,fill:U,d:v||void 0,transform:h||void 0,"clip-path":R,style:B?`filter:${B}`:void 0,mask:w?`url(#${w})`:void 0})).join(""),J=Fu({id:e,left:t,top:n,width:r,height:i,currentClipPathId:F,borderPath:v,borderType:d},a);if(f){let U=(a.borderLeftWidth||0)+(a.paddingLeft||0),M=(a.borderTopWidth||0)+(a.paddingTop||0),Z=(a.borderRightWidth||0)+(a.paddingRight||0),H=(a.borderBottomWidth||0)+(a.paddingBottom||0),ce=a.objectFit==="contain"?"xMidYMid":a.objectFit==="cover"?"xMidYMid slice":"none";Y+=k("image",{x:t+U,y:n+M,width:r-U-Z,height:i-M-H,href:o,preserveAspectRatio:ce,transform:h||void 0,style:B?`filter:${B}`:void 0,"clip-path":`url(#satori_cp-${e})`,mask:`url(#satori_om-${e})`})}if(J){D+=J[0];let U=J[1];Y+=Tt({left:t,top:n,width:r,height:i,props:{transform:h||void 0,"clip-path":`url(#${U})`}},a)}let ne=gu({width:r,height:i,id:e,opacity:m,shape:k(d,{x:t,y:n,width:r,height:i,fill:"#fff",stroke:"#fff","stroke-width":0,d:v||void 0,transform:h||void 0,"clip-path":R,mask:w?`url(#${w})`:void 0})},a);return(D?k("defs",{},D):"")+(ne?ne[0]:"")+L+(m!==1?`<g opacity="${m}">`:"")+(b||Y)+(m!==1?"</g>":"")+(ne?ne[1]:"")+x}c();c();var ku=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var hf=new RegExp(ku(),""),Bn={emoji:hf,symbol:/\p{Symbol}/u,math:/\p{Math}/u},Rn={"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},Lr=Object.keys({...Rn,...Bn});function Tu(e){return Lr.includes(e)}function Ou(e,t){for(let r of Object.keys(Bn))if(Bn[r].test(e))return[r];let n=Object.keys(Rn).filter(r=>Rn[r].test(e));if(n.length===0)return["unknown"];if(t){let r=n.findIndex(i=>i===t);r!==-1&&(n.splice(r,1),n.unshift(t))}return n}function Au(e){if(e)return Lr.find(t=>t.toLowerCase()===e.toLowerCase()||t.toLowerCase().startsWith(e.toLowerCase()))}async function*Pt(e,t){var W;let n=await Ne(),{id:r,inheritedStyle:i,parent:u,font:o,debug:s,locale:a,embedFont:l=!0,graphemeImages:f,canLoadAdditionalAssets:d,getTwStyles:h}=t;if(e===null||typeof e>"u")return yield,yield,"";if(!Er(e)||typeof e.type=="function"){let I;if(!Er(e))I=Cn(String(e),t),yield(await I.next()).value;else{if(zo(e.type))throw new Error("Class component is not supported.");I=Pt(e.type(e.props),t),yield(await I.next()).value}await I.next();let oe=yield;return(await I.next(oe)).value}let{type:D,props:p}=e;if(p&&Go(p))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:m,children:x,tw:b,lang:v=a}=p||{},F=Au(v);if(b){let I=h(b,m);m=Object.assign(I,m)}let w=n.Node.create();u.insertChild(w,u.getChildCount());let[E,B]=await Fn(w,D,i,m,p),R=E.transform===i.transform;if(R||(E.transform.__parent=i.transform),(E.overflow==="hidden"||E.clipPath&&E.clipPath!=="none")&&(B._inheritedClipPathId=`satori_cp-${r}`,B._inheritedMaskId=`satori_om-${r}`),E.backgroundClip==="text"){let I={value:""};B._inheritedBackgroundClipTextPath=I,E._inheritedBackgroundClipTextPath=I}let L=jo(x),Y=[],J=0,ne=[];for(let I of L){let oe=Pt(I,{id:r+"-"+J++,parentStyle:E,inheritedStyle:B,isInheritingTransform:!0,parent:w,font:o,embedFont:l,debug:s,graphemeImages:f,canLoadAdditionalAssets:d,locale:F,getTwStyles:h,onNodeDetected:t.onNodeDetected});d?ne.push(...(await oe.next()).value||[]):await oe.next(),Y.push(oe)}yield ne;for(let I of Y)await I.next();let[U,M]=yield,{left:Z,top:H,width:ce,height:Fe}=w.getComputedLayout();Z+=U,H+=M;let ie="",ee="",Ie="",{children:O,...P}=p;if((W=t.onNodeDetected)==null||W.call(t,{left:Z,top:H,width:ce,height:Fe,type:D,props:P,key:e.key,textContent:Er(O)?void 0:O}),D==="img"){let I=E.__src;ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,src:I,isInheritingTransform:R,debug:s},E,B)}else if(D==="svg"){let I=E.color,oe=Xo(e,I);ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,src:oe,isInheritingTransform:R,debug:s},E,B)}else{let I=m==null?void 0:m.display;if(D==="div"&&x&&typeof x!="string"&&I!=="flex"&&I!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');ee=await At({id:r,left:Z,top:H,width:ce,height:Fe,isInheritingTransform:R,debug:s},E,B)}for(let I of Y)ie+=(await I.next([Z,H])).value;return E._inheritedBackgroundClipTextPath&&(Ie+=k("clipPath",{id:`satori_bct-${r}`,"clip-path":E._inheritedClipPathId?`url(#${E._inheritedClipPathId})`:void 0},E._inheritedBackgroundClipTextPath.value)),Ie+ee+ie}c();var Mr=dt(require("@shuding/opentype.js"),1);var Pu="unknown";function Df(e,t,[n,r],[i,u]){if(n!==i)return n?!i||n===e?-1:i===e?1:e===400&&n===500||e===500&&n===400?-1:e===400&&i===500||e===500&&i===400?1:e<400?n<e&&i<e?i-n:n<e?-1:i<e?1:n-i:e<n&&e<i?n-i:e<n?-1:e<i?1:i-n:1;if(r!==u){if(r===t)return-1;if(u===t)return 1}return-1}var Bt=class{constructor(t){this.fonts=new Map;this.addFonts(t)}get({name:t,weight:n,style:r}){if(!this.fonts.has(t))return null;n==="normal"&&(n=400),n==="bold"&&(n=700),typeof n=="string"&&(n=Number.parseInt(n,10));let i=[...this.fonts.get(t)],u=i[0];for(let o=1;o<i.length;o++){let[,s,a]=u,[,l,f]=i[o];Df(n,r,[s,a],[l,f])>0&&(u=i[o])}return u[0]}addFonts(t){for(let n of t){let{name:r,data:i,lang:u}=n;if(u&&!Tu(u))throw new Error(`Invalid value for props \`lang\`: "${u}". The value must be one of the following: ${Lr.join(", ")}.`);let o=u??Pu,s=Mr.default.parse("buffer"in i?i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength):i,{lowMemory:!0}),a=s.charToGlyphIndex;s.charToGlyphIndex=f=>{let d=a.call(s,f);return d===0&&s._trackBrokenChars&&s._trackBrokenChars.push(f),d},this.defaultFont||(this.defaultFont=s);let l=`${r.toLowerCase()}_${o}`;this.fonts.has(l)||this.fonts.set(l,[]),this.fonts.get(l).push([s,n.weight,n.style])}}getEngine(t=16,n=1.2,{fontFamily:r="sans-serif",fontWeight:i=400,fontStyle:u="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(v=>v.toLowerCase());let s=[];r.forEach(v=>{let F=this.get({name:v,weight:i,style:u});if(F){s.push(F);return}let w=this.get({name:v+"_unknown",weight:i,style:u});if(w){s.push(w);return}});let a=Array.from(this.fonts.keys()),l=[],f=[],d=[];for(let v of a)if(!r.includes(v))if(o){let F=mf(v);F?F===o?l.push(this.get({name:v,weight:i,style:u})):f.push(this.get({name:v,weight:i,style:u})):d.push(this.get({name:v,weight:i,style:u}))}else d.push(this.get({name:v,weight:i,style:u}));let h=new Map,D=(v,F=!0)=>{let w=[...s,...d,...l,...F?f:[]];if(typeof v>"u")return F?w[w.length-1]:void 0;let E=v.charCodeAt(0);if(h.has(E))return h.get(E);let B=w.find((R,L)=>!!R.charToGlyphIndex(v)||F&&L===w.length-1);return B&&h.set(E,B),B},p=(v,F=!1)=>{var E,B;return((F?(B=(E=v.tables)==null?void 0:E.os2)==null?void 0:B.sTypoAscender:0)||v.ascender)/v.unitsPerEm*t},m=(v,F=!1)=>{var E,B;return((F?(B=(E=v.tables)==null?void 0:E.os2)==null?void 0:B.sTypoDescender:0)||v.descender)/v.unitsPerEm*t},x=v=>D(v,!1),b={has:v=>{if(v===`
6
6
  `)return!0;let F=x(v);return F?(F._trackBrokenChars=[],F.stringToGlyphs(v),F._trackBrokenChars.length?(F._trackBrokenChars=void 0,!1):!0):!1},baseline:(v,F=typeof v>"u"?s[0]:D(v))=>{let w=p(F,!0),E=m(F,!0),B=b.height(v,F),{yMax:R,yMin:L}=F.tables.head,Y=w-E,J=(R/(R-L)-1)*Y;return B*((1.2/n+1)/2)+J},height:(v,F=typeof v>"u"?s[0]:D(v))=>(p(F)-m(F))*(n/1.2),measure:(v,F)=>this.measure(D,v,F),getSVG:(v,F)=>this.getSVG(D,v,F)};return b}patchFontFallbackResolver(t,n){let r=[];t._trackBrokenChars=r;let i=t.stringToGlyphs;return t.stringToGlyphs=(u,...o)=>{let s=i.call(t,u,...o);for(let a=0;a<s.length;a++)if(s[a].unicode===void 0){let l=r.shift(),f=n(l);if(f!==t){let d=f.charToGlyph(l),h=t.unitsPerEm/f.unitsPerEm,D=new Mr.default.Path;D.unitsPerEm=t.unitsPerEm,D.commands=d.path.commands.map(m=>{let x={...m};for(let b in x)typeof x[b]=="number"&&(x[b]*=h);return x});let p=new Mr.default.Glyph({...d,advanceWidth:d.advanceWidth*h,xMin:d.xMin*h,xMax:d.xMax*h,yMin:d.yMin*h,yMax:d.yMax*h,path:D});s[a]=p}}return s},()=>{t.stringToGlyphs=i,t._trackBrokenChars=void 0}}measure(t,n,{fontSize:r,letterSpacing:i=0}){let u=t(n),o=this.patchFontFallbackResolver(u,t);try{return u.getAdvanceWidth(n,r,{letterSpacing:i/r})}finally{o()}}getSVG(t,n,{fontSize:r,top:i,left:u,letterSpacing:o=0}){let s=t(n),a=this.patchFontFallbackResolver(s,t);try{return r===0?"":s.getPath(n.replace(/\n/g,""),u,i,r,{letterSpacing:o/r}).toPathData(1)}finally{a()}}};function mf(e){let t=e.split("_"),n=t[t.length-1];return n===Pu?void 0:n}c();function In({width:e,height:t,content:n}){return k("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,xmlns:"http://www.w3.org/2000/svg"},n)}c();c();var cl=dt(Ua());c();c();c();c();var rD=["ios","android","windows","macos","web"];function Ga(e){return rD.includes(e)}var nD=["portrait","landscape"];function ja(e){return nD.includes(e)}var za;(function(e){e.fontSize="fontSize",e.lineHeight="lineHeight"})(za||(za={}));var G;(function(e){e.rem="rem",e.em="em",e.px="px",e.percent="%",e.vw="vw",e.vh="vh",e.none="<no-css-unit>"})(G||(G={}));function so(e){return typeof e=="string"}function ao(e){return typeof e=="object"}var lo;function g(e){return{kind:"complete",style:e}}function se(e,t={}){let{fractions:n}=t;if(n&&e.includes("/")){let[u="",o=""]=e.split("/",2),s=se(u),a=se(o);return!s||!a?null:[s[0]/a[0],a[1]]}let r=parseFloat(e);if(Number.isNaN(r))return null;let i=e.match(/(([a-z]{2,}|%))$/);if(!i)return[r,G.none];switch(i==null?void 0:i[1]){case"rem":return[r,G.rem];case"px":return[r,G.px];case"em":return[r,G.em];case"%":return[r,G.percent];case"vw":return[r,G.vw];case"vh":return[r,G.vh];default:return null}}function qe(e,t,n={}){let r=Be(t,n);return r===null?null:g({[e]:r})}function tn(e,t,n){let r=Be(t);return r!==null&&(n[e]=r),n}function Va(e,t){let n=Be(t);return n===null?null:{[e]:n}}function Be(e,t={}){if(e===void 0)return null;let n=se(String(e),t);return n?Je(...n,t):null}function Je(e,t,n={}){let{isNegative:r,device:i}=n;switch(t){case G.rem:return e*16*(r?-1:1);case G.px:return e*(r?-1:1);case G.percent:return`${r?"-":""}${e}%`;case G.none:return e*(r?-1:1);case G.vw:return i!=null&&i.windowDimensions?i.windowDimensions.width*(e/100):(ve("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case G.vh:return i!=null&&i.windowDimensions?i.windowDimensions.height*(e/100):(ve("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function fo(e){let t=se(e);if(!t)return null;let[n,r]=t;switch(r){case G.rem:return n*16;case G.px:return n;default:return null}}var iD={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function co(e){return iD[e??""]||"All"}function po(e){let t="All";return[e.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(r,i)=>(t=co(i),"")),t]}function ut(e,t={}){if(e.includes("/")){let n=Ha(e,{...t,fractions:!0});if(n)return n}return e[0]==="["&&(e=e.slice(1,-1)),Ha(e,t)}function Te(e,t,n={}){let r=ut(t,n);return r===null?null:g({[e]:r})}function Ha(e,t={}){if(e==="px")return 1;let n=se(e,t);if(!n)return null;let[r,i]=n;return t.fractions&&(i=G.percent,r*=100),i===G.none&&(r=r/4,i=G.rem),Je(r,i,t)}function oD(...e){console.warn(...e)}function uD(...e){}var ve=typeof process>"u"||((lo=process==null?void 0:process.env)===null||lo===void 0?void 0:lo.JEST_WORKER_ID)===void 0?oD:uD;var sD=[["aspect-square",g({aspectRatio:1})],["aspect-video",g({aspectRatio:16/9})],["items-center",g({alignItems:"center"})],["items-start",g({alignItems:"flex-start"})],["items-end",g({alignItems:"flex-end"})],["items-baseline",g({alignItems:"baseline"})],["items-stretch",g({alignItems:"stretch"})],["justify-start",g({justifyContent:"flex-start"})],["justify-end",g({justifyContent:"flex-end"})],["justify-center",g({justifyContent:"center"})],["justify-between",g({justifyContent:"space-between"})],["justify-around",g({justifyContent:"space-around"})],["justify-evenly",g({justifyContent:"space-evenly"})],["content-start",g({alignContent:"flex-start"})],["content-end",g({alignContent:"flex-end"})],["content-between",g({alignContent:"space-between"})],["content-around",g({alignContent:"space-around"})],["content-stretch",g({alignContent:"stretch"})],["content-center",g({alignContent:"center"})],["self-auto",g({alignSelf:"auto"})],["self-start",g({alignSelf:"flex-start"})],["self-end",g({alignSelf:"flex-end"})],["self-center",g({alignSelf:"center"})],["self-stretch",g({alignSelf:"stretch"})],["self-baseline",g({alignSelf:"baseline"})],["direction-inherit",g({direction:"inherit"})],["direction-ltr",g({direction:"ltr"})],["direction-rtl",g({direction:"rtl"})],["hidden",g({display:"none"})],["flex",g({display:"flex"})],["flex-row",g({flexDirection:"row"})],["flex-row-reverse",g({flexDirection:"row-reverse"})],["flex-col",g({flexDirection:"column"})],["flex-col-reverse",g({flexDirection:"column-reverse"})],["flex-wrap",g({flexWrap:"wrap"})],["flex-wrap-reverse",g({flexWrap:"wrap-reverse"})],["flex-nowrap",g({flexWrap:"nowrap"})],["flex-auto",g({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",g({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",g({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",g({overflow:"hidden"})],["overflow-visible",g({overflow:"visible"})],["overflow-scroll",g({overflow:"scroll"})],["absolute",g({position:"absolute"})],["relative",g({position:"relative"})],["italic",g({fontStyle:"italic"})],["not-italic",g({fontStyle:"normal"})],["oldstyle-nums",fr("oldstyle-nums")],["small-caps",fr("small-caps")],["lining-nums",fr("lining-nums")],["tabular-nums",fr("tabular-nums")],["proportional-nums",fr("proportional-nums")],["font-thin",g({fontWeight:"100"})],["font-100",g({fontWeight:"100"})],["font-extralight",g({fontWeight:"200"})],["font-200",g({fontWeight:"200"})],["font-light",g({fontWeight:"300"})],["font-300",g({fontWeight:"300"})],["font-normal",g({fontWeight:"normal"})],["font-400",g({fontWeight:"400"})],["font-medium",g({fontWeight:"500"})],["font-500",g({fontWeight:"500"})],["font-semibold",g({fontWeight:"600"})],["font-600",g({fontWeight:"600"})],["font-bold",g({fontWeight:"bold"})],["font-700",g({fontWeight:"700"})],["font-extrabold",g({fontWeight:"800"})],["font-800",g({fontWeight:"800"})],["font-black",g({fontWeight:"900"})],["font-900",g({fontWeight:"900"})],["include-font-padding",g({includeFontPadding:!0})],["remove-font-padding",g({includeFontPadding:!1})],["max-w-none",g({maxWidth:"99999%"})],["text-left",g({textAlign:"left"})],["text-center",g({textAlign:"center"})],["text-right",g({textAlign:"right"})],["text-justify",g({textAlign:"justify"})],["text-auto",g({textAlign:"auto"})],["underline",g({textDecorationLine:"underline"})],["line-through",g({textDecorationLine:"line-through"})],["no-underline",g({textDecorationLine:"none"})],["uppercase",g({textTransform:"uppercase"})],["lowercase",g({textTransform:"lowercase"})],["capitalize",g({textTransform:"capitalize"})],["normal-case",g({textTransform:"none"})],["w-auto",g({width:"auto"})],["h-auto",g({height:"auto"})],["shadow-sm",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.025,elevation:1})],["shadow",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:.075,elevation:2})],["shadow-md",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:.125,elevation:3})],["shadow-lg",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.15,shadowRadius:8,elevation:8})],["shadow-xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.19,shadowRadius:20,elevation:12})],["shadow-2xl",g({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:.25,shadowRadius:30,elevation:16})],["shadow-none",g({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],ho=sD;function fr(e){return{kind:"dependent",complete(t){(!t.fontVariant||!Array.isArray(t.fontVariant))&&(t.fontVariant=[]),t.fontVariant.push(e)}}}var cr=class{constructor(t){this.ir=new Map(ho),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...ho,...t??[]])}getStyle(t){return this.styles.get(t)}setStyle(t,n){this.styles.set(t,n)}getIr(t){return this.ir.get(t)}setIr(t,n){this.ir.set(t,n)}getPrefixMatch(t){return this.prefixes.get(t)}setPrefixMatch(t,n){this.prefixes.set(t,n)}};c();c();function Do(e,t,n={}){let r=t==null?void 0:t[e];if(!r)return Te("fontSize",e,n);if(typeof r=="string")return qe("fontSize",r);let i={},[u,o]=r,s=Va("fontSize",u);if(s&&(i=s),typeof o=="string")return g(tn("lineHeight",Ya(o,i),i));let{lineHeight:a,letterSpacing:l}=o;return a&&tn("lineHeight",Ya(a,i),i),l&&tn("letterSpacing",l,i),g(i)}function Ya(e,t){let n=se(e);if(n){let[r,i]=n;if((i===G.none||i===G.em)&&typeof t.fontSize=="number")return t.fontSize*r}return e}c();function mo(e,t){var n;let r=(n=t==null?void 0:t[e])!==null&&n!==void 0?n:e.startsWith("[")?e.slice(1,-1):e,i=se(r);if(!i)return null;let[u,o]=i;if(o===G.none)return{kind:"dependent",complete(a){if(typeof a.fontSize!="number")return"relative line-height utilities require that font-size be set";a.lineHeight=a.fontSize*u}};let s=Je(u,o);return s!==null?g({lineHeight:s}):null}c();function go(e,t,n,r,i){let u="";if(r[0]==="[")u=r.slice(1,-1);else{let l=i==null?void 0:i[r];if(l)u=l;else{let f=ut(r);return f&&typeof f=="number"?Xa(f,G.px,t,e):null}}if(u==="auto")return Qa(t,e,"auto");let o=se(u);if(!o)return null;let[s,a]=o;return n&&(s=-s),Xa(s,a,t,e)}function Xa(e,t,n,r){let i=Je(e,t);return i===null?null:Qa(n,r,i)}function Qa(e,t,n){switch(e){case"All":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Right`]:n,[`${t}Bottom`]:n,[`${t}Left`]:n}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${t}${e}`]:n}};case"Vertical":return{kind:"complete",style:{[`${t}Top`]:n,[`${t}Bottom`]:n}};case"Horizontal":return{kind:"complete",style:{[`${t}Left`]:n,[`${t}Right`]:n}};default:return null}}c();function bo(e){if(!e)return{};let t=Object.entries(e).reduce((i,[u,o])=>{let s=[0,1/0,0],a=typeof o=="string"?{min:o}:o,l=a.min?fo(a.min):0;l===null?ve(`invalid screen config value: ${u}->min: ${a.min}`):s[0]=l;let f=a.max?fo(a.max):1/0;return f===null?ve(`invalid screen config value: ${u}->max: ${a.max}`):s[1]=f,i[u]=s,i},{}),n=Object.values(t);n.sort((i,u)=>{let[o,s]=i,[a,l]=u;return s===1/0||l===1/0?o-a:s-l});let r=0;return n.forEach(i=>i[2]=r++),t}c();function vo(e,t){let n=t==null?void 0:t[e];if(!n)return null;if(typeof n=="string")return g({fontFamily:n});let r=n[0];return r?g({fontFamily:r}):null}c();function st(e,t,n){if(!n)return null;let r;t.includes("/")&&([t="",r]=t.split("/",2));let i="";if(t.startsWith("[#")||t.startsWith("[rgb")?i=t.slice(1,-1):i=Za(t,n),!i)return null;if(r){let u=Number(r);if(!Number.isNaN(u))return i=Ka(i,u/100),g({[rn[e].color]:i})}return{kind:"dependent",complete(u){let o=rn[e].opacity,s=u[o];typeof s=="number"&&(i=Ka(i,s)),u[rn[e].color]=i}}}function dr(e,t){let n=parseInt(t,10);if(Number.isNaN(n))return null;let r=n/100,i={[rn[e].opacity]:r};return{kind:"complete",style:i}}function Ka(e,t){return e.startsWith("#")?e=aD(e):e.startsWith("rgb(")&&(e=e.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),e.replace(/, ?\d*\.?(\d+)\)$/,`, ${t})`)}function Ja(e){for(let t in e)t.startsWith("__opacity_")&&delete e[t]}var rn={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 aD(e){let t=e;e=e.replace(lD,(o,s,a,l)=>s+s+a+a+l+l);let n=fD.exec(e);if(!n)return ve(`invalid config hex color value: ${t}`),"rgba(0, 0, 0, 1)";let r=parseInt(n[1],16),i=parseInt(n[2],16),u=parseInt(n[3],16);return`rgba(${r}, ${i}, ${u}, 1)`}function Za(e,t){let n=t[e];if(so(n))return n;if(ao(n)&&so(n.DEFAULT))return n.DEFAULT;let[r="",...i]=e.split("-");for(;r!==e;){let u=t[r];if(ao(u))return Za(i.join("-"),u);if(i.length===0)return"";r=`${r}-${i.shift()}`}return""}var lD=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,fD=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;c();function tl(e,t){let[n,r]=po(e);if(n.match(/^(-?(\d)+)?$/))return cD(n,r,t==null?void 0:t.borderWidth);if(n=n.replace(/^-/,""),["dashed","solid","dotted"].includes(n))return g({borderStyle:n});let u="border";switch(r){case"Bottom":u="borderBottom";break;case"Top":u="borderTop";break;case"Left":u="borderLeft";break;case"Right":u="borderRight";break}let o=st(u,n,t==null?void 0:t.borderColor);if(o)return o;let s=`border${r==="All"?"":r}Width`;n=n.replace(/^-/,"");let a=n.slice(1,-1),l=Te(s,a);return typeof(l==null?void 0:l.style[s])!="number"?null:l}function cD(e,t,n){if(!n)return null;e=e.replace(/^-/,"");let i=n[e===""?"DEFAULT":e];if(i===void 0)return null;let u=`border${t==="All"?"":t}Width`;return qe(u,i)}function rl(e,t){if(!t)return null;let[n,r]=po(e);n=n.replace(/^-/,""),n===""&&(n="DEFAULT");let i=`border${r==="All"?"":r}Radius`,u=t[n];if(u)return el(qe(i,u));let o=Te(i,n);return typeof(o==null?void 0:o.style[i])!="number"?null:el(o)}function el(e){if((e==null?void 0:e.kind)!=="complete")return e;let t=e.style.borderTopRadius;t!==void 0&&(e.style.borderTopLeftRadius=t,e.style.borderTopRightRadius=t,delete e.style.borderTopRadius);let n=e.style.borderBottomRadius;n!==void 0&&(e.style.borderBottomLeftRadius=n,e.style.borderBottomRightRadius=n,delete e.style.borderBottomRadius);let r=e.style.borderLeftRadius;r!==void 0&&(e.style.borderBottomLeftRadius=r,e.style.borderTopLeftRadius=r,delete e.style.borderLeftRadius);let i=e.style.borderRightRadius;return i!==void 0&&(e.style.borderBottomRightRadius=i,e.style.borderTopRightRadius=i,delete e.style.borderRightRadius),e}c();function bt(e,t,n,r){let i=null;e==="inset"&&(t=t.replace(/^(x|y)-/,(s,a)=>(i=a==="x"?"x":"y","")));let u=r==null?void 0:r[t];if(u){let s=Be(u,{isNegative:n});if(s!==null)return nl(e,i,s)}let o=ut(t,{isNegative:n});return o!==null?nl(e,i,o):null}function nl(e,t,n){if(e!=="inset")return g({[e]:n});switch(t){case null:return g({top:n,left:n,right:n,bottom:n});case"y":return g({top:n,bottom:n});case"x":return g({left:n,right:n})}}c();function pr(e,t,n){var r;t=t.replace(/^-/,"");let i=t===""?"DEFAULT":t,u=Number((r=n==null?void 0:n[i])!==null&&r!==void 0?r:t);return Number.isNaN(u)?null:g({[`flex${e}`]:u})}function il(e,t){var n,r;if(e=(t==null?void 0:t[e])||e,["min-content","revert","unset"].includes(e))return null;if(e.match(/^\d+(\.\d+)?$/))return g({flexGrow:Number(e),flexBasis:"0%"});let i=e.match(/^(\d+)\s+(\d+)$/);if(i)return g({flexGrow:Number(i[1]),flexShrink:Number(i[2])});if(i=e.match(/^(\d+)\s+([^ ]+)$/),i){let u=Be((n=i[2])!==null&&n!==void 0?n:"");return u?g({flexGrow:Number(i[1]),flexBasis:u}):null}if(i=e.match(/^(\d+)\s+(\d+)\s+(.+)$/),i){let u=Be((r=i[3])!==null&&r!==void 0?r:"");return u?g({flexGrow:Number(i[1]),flexShrink:Number(i[2]),flexBasis:u}):null}return null}c();function yo(e,t,n={},r){let i=r==null?void 0:r[t];return i!==void 0?qe(e,i,n):Te(e,t,n)}function hr(e,t,n={},r){let i=Be(r==null?void 0:r[t],n);return i?g({[e]:i}):(t==="screen"&&(t=e.includes("Width")?"100vw":"100vh"),Te(e,t,n))}c();function ol(e,t,n){let r=n==null?void 0:n[e];if(r){let i=se(r,{isNegative:t});if(!i)return null;let[u,o]=i;if(o===G.em)return dD(u);if(o===G.percent)return ve("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let s=Je(u,o,{isNegative:t});return s!==null?g({letterSpacing:s}):null}return Te("letterSpacing",e,{isNegative:t})}function dD(e){return{kind:"dependent",complete(t){let n=t.fontSize;if(typeof n!="number"||Number.isNaN(n))return"tracking-X relative letter spacing classes require font-size to be set";t.letterSpacing=Math.round((e*n+Number.EPSILON)*100)/100}}}c();function ul(e,t){let n=t==null?void 0:t[e];if(n){let i=se(String(n));if(i)return g({opacity:i[0]})}let r=se(e);return r?g({opacity:r[0]/100}):null}c();function sl(e){let t=parseInt(e,10);return Number.isNaN(t)?null:{kind:"complete",style:{shadowOpacity:t/100}}}function al(e){if(e.includes("/")){let[n="",r=""]=e.split("/",2),i=xo(n),u=xo(r);return i===null||u===null?null:{kind:"complete",style:{shadowOffset:{width:i,height:u}}}}let t=xo(e);return t===null?null:{kind:"complete",style:{shadowOffset:{width:t,height:t}}}}function xo(e){let t=ut(e);return typeof t=="number"?t:null}var vt=class{constructor(t,n={},r,i,u){var o,s,a,l,f,d;this.config=n,this.cache=r,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=i;let h=t.trim().split(":"),D=[];h.length===1?this.string=t:(this.string=(o=h.pop())!==null&&o!==void 0?o:"",D=h),this.char=this.string[0];let p=bo((s=this.config.theme)===null||s===void 0?void 0:s.screens);for(let m of D)if(p[m]){let x=(a=p[m])===null||a===void 0?void 0:a[2];x!==void 0&&(this.order=((l=this.order)!==null&&l!==void 0?l:0)+x);let b=(f=i.windowDimensions)===null||f===void 0?void 0:f.width;if(b){let[v,F]=(d=p[m])!==null&&d!==void 0?d:[0,0];(b<=v||b>F)&&(this.isNull=!0)}else this.isNull=!0}else Ga(m)?this.isNull=m!==u:ja(m)?i.windowDimensions?(i.windowDimensions.width>i.windowDimensions.height?"landscape":"portrait")!==m?this.isNull=!0:this.incrementOrder():this.isNull=!0:m==="retina"?i.pixelDensity===2?this.incrementOrder():this.isNull=!0:m==="dark"?i.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(m)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let t=this.cache.getIr(this.rest);if(t)return t;this.parseIsNegative();let n=this.parseUtility();return n?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:n}:n:{kind:"null"}}parseUtility(){var t,n,r,i,u;let o=this.config.theme,s=null;switch(this.char){case"m":case"p":{let a=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(a){let l=this.char==="m"?"margin":"padding";this.advance(((n=(t=a[0])===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+1);let f=co(a[1]),d=go(l,f,this.isNegative,this.rest,(r=this.config.theme)===null||r===void 0?void 0:r[l]);if(d)return d}}}if(this.consumePeeked("h-")&&(s=yo("height",this.rest,this.context,o==null?void 0:o.height),s)||this.consumePeeked("w-")&&(s=yo("width",this.rest,this.context,o==null?void 0:o.width),s)||this.consumePeeked("min-w-")&&(s=hr("minWidth",this.rest,this.context,o==null?void 0:o.minWidth),s)||this.consumePeeked("min-h-")&&(s=hr("minHeight",this.rest,this.context,o==null?void 0:o.minHeight),s)||this.consumePeeked("max-w-")&&(s=hr("maxWidth",this.rest,this.context,o==null?void 0:o.maxWidth),s)||this.consumePeeked("max-h-")&&(s=hr("maxHeight",this.rest,this.context,o==null?void 0:o.maxHeight),s)||this.consumePeeked("leading-")&&(s=mo(this.rest,o==null?void 0:o.lineHeight),s)||this.consumePeeked("text-")&&(s=Do(this.rest,o==null?void 0:o.fontSize,this.context),s||(s=st("text",this.rest,o==null?void 0:o.textColor),s)||this.consumePeeked("opacity-")&&(s=dr("text",this.rest),s))||this.consumePeeked("font-")&&(s=vo(this.rest,o==null?void 0:o.fontFamily),s)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&ve("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),s=qe("aspectRatio",this.rest,{fractions:!0}),s)||this.consumePeeked("tint-")&&(s=st("tint",this.rest,o==null?void 0:o.colors),s)||this.consumePeeked("bg-")&&(s=st("bg",this.rest,o==null?void 0:o.backgroundColor),s||this.consumePeeked("opacity-")&&(s=dr("bg",this.rest),s))||this.consumePeeked("border")&&(s=tl(this.rest,o),s||this.consumePeeked("-opacity-")&&(s=dr("border",this.rest),s))||this.consumePeeked("rounded")&&(s=rl(this.rest,o==null?void 0:o.borderRadius),s)||this.consumePeeked("bottom-")&&(s=bt("bottom",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("top-")&&(s=bt("top",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("left-")&&(s=bt("left",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("right-")&&(s=bt("right",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("inset-")&&(s=bt("inset",this.rest,this.isNegative,o==null?void 0:o.inset),s)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?s=pr("Grow",this.rest,o==null?void 0:o.flexGrow):this.consumePeeked("shrink")?s=pr("Shrink",this.rest,o==null?void 0:o.flexShrink):s=il(this.rest,o==null?void 0:o.flex),s)||this.consumePeeked("grow")&&(s=pr("Grow",this.rest,o==null?void 0:o.flexGrow),s)||this.consumePeeked("shrink")&&(s=pr("Shrink",this.rest,o==null?void 0:o.flexShrink),s)||this.consumePeeked("shadow-color-opacity-")&&(s=dr("shadow",this.rest),s)||this.consumePeeked("shadow-opacity-")&&(s=sl(this.rest),s)||this.consumePeeked("shadow-offset-")&&(s=al(this.rest),s)||this.consumePeeked("shadow-radius-")&&(s=Te("shadowRadius",this.rest),s)||this.consumePeeked("shadow-")&&(s=st("shadow",this.rest,o==null?void 0:o.colors),s))return s;if(this.consumePeeked("elevation-")){let a=parseInt(this.rest,10);if(!Number.isNaN(a))return g({elevation:a})}if(this.consumePeeked("opacity-")&&(s=ul(this.rest,o==null?void 0:o.opacity),s)||this.consumePeeked("tracking-")&&(s=ol(this.rest,this.isNegative,o==null?void 0:o.letterSpacing),s))return s;if(this.consumePeeked("z-")){let a=Number((u=(i=o==null?void 0:o.zIndex)===null||i===void 0?void 0:i[this.rest])!==null&&u!==void 0?u:this.rest);if(!Number.isNaN(a))return g({zIndex:a})}return ve(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(t){var n;if(t[0]!=="m")return!1;let r=t.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!r)return!1;if(!(!((n=this.context.device)===null||n===void 0)&&n.windowDimensions))return this.isNull=!0,!0;let i=this.context.device.windowDimensions,[,u="",o="",s=""]=r,a=o==="w"?i.width:i.height,l=se(s,this.context);if(l===null)return this.isNull=!0,!0;let[f,d]=l;return d!=="px"&&(this.isNull=!0),(u==="min"?a>=f:a<=f)?this.incrementOrder():this.isNull=!0,!0}advance(t=1){this.position+=t,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(t,n){return this.string.slice(this.position+t,this.position+n)}consumePeeked(t){return this.peekSlice(0,t.length)===t?(this.advance(t.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var t;this.order=((t=this.order)!==null&&t!==void 0?t:0)+1}};c();function ll(e){let t=[],n=null;return e.forEach(r=>{if(typeof r=="string")t=[...t,...Fo(r)];else if(Array.isArray(r))t=[...t,...r.flatMap(Fo)];else if(typeof r=="object"&&r!==null)for(let[i,u]of Object.entries(r))typeof u=="boolean"?t=[...t,...u?Fo(i):[]]:n?n[i]=u:n={[i]:u}}),[t.filter(Boolean).filter(pD),n]}function Fo(e){return e.trim().split(/\s+/)}function pD(e,t,n){return n.indexOf(e)===t}c();function fl(e){var t;return(t=e==null?void 0:e.reduce((n,r)=>({...n,...hD(r.handler)}),{}))!==null&&t!==void 0?t:{}}function hD(e){let t={};return e({addUtilities:n=>{t=n},...DD}),t}function Re(e){throw new Error(`tailwindcss plugin function argument object prop "${e}" not implemented`)}var DD={addComponents:Re,addBase:Re,addVariant:Re,e:Re,prefix:Re,theme:Re,variants:Re,config:Re,corePlugins:Re,matchUtilities:Re,postcss:null};function dl(e,t){let n=(0,cl.default)(mD(e)),r={},i=fl(n.plugins),u={},o=Object.entries(i).map(([p,m])=>typeof m=="string"?(u[p]=m,[p,{kind:"null"}]):[p,g(m)]).filter(([,p])=>p.kind!=="null");function s(){return[r.windowDimensions?`w${r.windowDimensions.width}`:!1,r.windowDimensions?`h${r.windowDimensions.height}`:!1,r.fontScale?`fs${r.fontScale}`:!1,r.colorScheme==="dark"?"dark":!1,r.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let a=s(),l={};function f(){let p=l[a];if(p)return p;let m=new cr(o);return l[a]=m,m}function d(...p){let m=f(),x={},b=[],v=[],[F,w]=ll(p),E=F.join(" "),B=m.getStyle(E);if(B)return{...B,...w||{}};for(let R of F){let L=m.getIr(R);if(!L&&R in u){let J=d(u[R]);m.setIr(R,g(J)),x={...x,...J};continue}switch(L=new vt(R,n,m,r,t).parse(),L.kind){case"complete":x={...x,...L.style},m.setIr(R,L);break;case"dependent":b.push(L);break;case"ordered":v.push(L);break;case"null":m.setIr(R,L);break}}if(v.length>0){v.sort((R,L)=>R.order-L.order);for(let R of v)switch(R.styleIr.kind){case"complete":x={...x,...R.styleIr.style};break;case"dependent":b.push(R.styleIr);break}}if(b.length>0){for(let R of b){let L=R.complete(x);L&&ve(L)}Ja(x)}return E!==""&&m.setStyle(E,x),w&&(x={...x,...w}),x}function h(p){let m=d(p.split(/\s+/g).map(x=>x.replace(/^(bg|text|border)-/,"")).map(x=>`bg-${x}`).join(" "));return typeof m.backgroundColor=="string"?m.backgroundColor:void 0}let D=(p,...m)=>{let x="";return p.forEach((b,v)=>{var F;x+=b+((F=m[v])!==null&&F!==void 0?F:"")}),d(x)};return D.style=d,D.color=h,D.prefixMatch=(...p)=>{let m=p.sort().join(":"),x=f(),b=x.getPrefixMatch(m);if(b!==void 0)return b;let w=new vt(`${m}:flex`,n,x,r,t).parse().kind!=="null";return x.setPrefixMatch(m,w),w},D.setWindowDimensions=p=>{r.windowDimensions=p,a=s()},D.setFontScale=p=>{r.fontScale=p,a=s()},D.setPixelDensity=p=>{r.pixelDensity=p,a=s()},D.setColorScheme=p=>{r.colorScheme=p,a=s()},D}function mD(e){return{...e,content:["_no_warnings_please"]}}var bD={handler:({addUtilities:e})=>{e({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function vD(e){return dl({...e,plugins:[...(e==null?void 0:e.plugins)??[],bD]},"web")}var nn;function wo({width:e,height:t,config:n}){return nn||(nn=vD(n)),nn.setWindowDimensions({width:+e,height:+t}),nn}var Eo=new WeakMap;async function Co(e,t){let n=await Ne();if(!n||!n.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+n);t.fonts=t.fonts||[];let r;Eo.has(t.fonts)?r=Eo.get(t.fonts):Eo.set(t.fonts,r=new Bt(t.fonts));let i="width"in t?t.width:void 0,u="height"in t?t.height:void 0,o=n.Node.create();i&&o.setWidth(i),u&&o.setHeight(u),o.setFlexDirection(n.FLEX_DIRECTION_ROW),o.setFlexWrap(n.WRAP_WRAP),o.setAlignContent(n.ALIGN_AUTO),o.setAlignItems(n.ALIGN_FLEX_START),o.setJustifyContent(n.JUSTIFY_FLEX_START),o.setOverflow(n.OVERFLOW_HIDDEN);let s={...t.graphemeImages},a=new Set,l=Pt(e,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:1.2,color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:i,_viewportHeight:u},parent:o,font:r,embedFont:t.embedFont,debug:t.debug,graphemeImages:s,canLoadAdditionalAssets:!!t.loadAdditionalAsset,onNodeDetected:t.onNodeDetected,getTwStyles:(p,m)=>{let b={...wo({width:i,height:u,config:t.tailwindConfig})([p])};return typeof b.lineHeight=="number"&&(b.lineHeight=b.lineHeight/(+b.fontSize||m.fontSize||16)),b.shadowColor&&b.boxShadow&&(b.boxShadow=b.boxShadow.replace(/rgba?\([^)]+\)/,b.shadowColor)),b}}),f=(await l.next()).value;if(t.loadAdditionalAsset&&f.length){let p=yD(f),m=[],x={};await Promise.all(Object.entries(p).flatMap(([b,v])=>v.map(F=>{let w=`${b}_${F}`;return a.has(w)?null:(a.add(w),t.loadAdditionalAsset(b,F).then(E=>{typeof E=="string"?x[F]=E:E&&(Array.isArray(E)?m.push(...E):m.push(E))}))}))),r.addFonts(m),Object.assign(s,x)}await l.next(),o.calculateLayout(i,u,n.DIRECTION_LTR);let d=(await l.next([0,0])).value,h=o.getComputedWidth(),D=o.getComputedHeight();return o.freeRecursive(),In({width:h,height:D,content:d})}function yD(e){let t={},n={};for(let{word:r,locale:i}of e){let u=Ou(r,i).join("|");n[u]=n[u]||"",n[u]+=r}return Object.keys(n).forEach(r=>{t[r]=t[r]||[],r==="emoji"?t[r].push(...pl(De(n[r],"grapheme"))):(t[r][0]=t[r][0]||"",t[r][0]+=pl(De(n[r],"grapheme",r==="unknown"?void 0:r)).join(""))}),t}function pl(e){return Array.from(new Set(e))}0&&(module.exports={init});
7
7
  //# sourceMappingURL=index.cjs.map