gemi 0.54.2 → 0.54.3
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/{chunk-3xa807p3.js → chunk-4zmcbmf9.js} +1 -1
- package/dist/{chunk-efp54183.js → chunk-9nskvzpv.js} +1 -1
- package/dist/{chunk-qq2yhtpp.js → chunk-jjvnmyw4.js} +1 -1
- package/dist/{chunk-05edp1zf.js → chunk-p8fm3tjy.js} +2 -2
- package/dist/{chunk-05edp1zf.js.map → chunk-p8fm3tjy.js.map} +1 -1
- package/dist/{chunk-n382ygnp.js → chunk-tpyhhdq5.js} +24 -24
- package/dist/{chunk-n382ygnp.js.map → chunk-tpyhhdq5.js.map} +5 -4
- package/dist/facades/index.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/router/htmlInsertionPoint.d.ts +64 -0
- package/dist/services/router/htmlInsertionPoint.d.ts.map +1 -0
- package/dist/services/router/streamQueryInjection.d.ts +10 -0
- package/dist/services/router/streamQueryInjection.d.ts.map +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-3xa807p3.js.map → chunk-4zmcbmf9.js.map} +0 -0
- /package/dist/{chunk-efp54183.js.map → chunk-9nskvzpv.js.map} +0 -0
- /package/dist/{chunk-qq2yhtpp.js.map → chunk-jjvnmyw4.js.map} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ec as PK,Jc as vK,vc as RK,wc as k4,xc as CK,yc as TK}from"./chunk-pgjk5ft3.js";import{Uc as y4,pd as SK}from"./chunk-k8endm5j.js";import{ud as jK,zd as qK}from"./chunk-e3mggavt.js";import{Ad as l4,Cd as a4,Ed as f4,Jd as $8,Ld as Y1,Md as G0,Pd as p4,Qd as B8,Rd as m4,Sd as G5,Td as b4,Ud as N1,Vd as i0,Xd as NK,Yd as F6,be as k5,fe as g0,je as IK}from"./chunk-85av4ncy.js";import{qe as U0}from"./chunk-k14dmqwh.js";import{Ye as p0}from"./chunk-nncwsdzz.js";import{Ze as T5,af as X0}from"./chunk-w6gb9gc5.js";import{df as w1,ef as x0,hf as nJ}from"./chunk-7f5ad759.js";var U7=x0((wB,w7)=>{var h6=0,Z7=-3;function h5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function rK(J,Y){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=Y,this.destLen=0,this.ltree=new h5,this.dtree=new h5}var X7=new h5,Q7=new h5,x6=new Uint8Array(30),b6=new Uint16Array(30),W7=new Uint8Array(30),$7=new Uint16Array(30),sK=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),J7=new h5,j1=new Uint8Array(320);function z7(J,Y,K,Z){var X,Q;for(X=0;X<K;++X)J[X]=0;for(X=0;X<30-K;++X)J[X+K]=X/K|0;for(Q=Z,X=0;X<30;++X)Y[X]=Q,Q+=1<<J[X]}function aK(J,Y){var K;for(K=0;K<7;++K)J.table[K]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(K=0;K<24;++K)J.trans[K]=256+K;for(K=0;K<144;++K)J.trans[24+K]=K;for(K=0;K<8;++K)J.trans[168+K]=280+K;for(K=0;K<112;++K)J.trans[176+K]=144+K;for(K=0;K<5;++K)Y.table[K]=0;Y.table[5]=32;for(K=0;K<32;++K)Y.trans[K]=K}var Y7=new Uint16Array(16);function y6(J,Y,K,Z){var X,Q;for(X=0;X<16;++X)J.table[X]=0;for(X=0;X<Z;++X)J.table[Y[K+X]]++;J.table[0]=0;for(Q=0,X=0;X<16;++X)Y7[X]=Q,Q+=J.table[X];for(X=0;X<Z;++X)if(Y[K+X])J.trans[Y7[Y[K+X]]++]=X}function tK(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var Y=J.tag&1;return J.tag>>>=1,Y}function q1(J,Y,K){if(!Y)return K;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Z=J.tag&65535>>>16-Y;return J.tag>>>=Y,J.bitcount-=Y,Z+K}function g6(J,Y){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var K=0,Z=0,X=0,Q=J.tag;do Z=2*Z+(Q&1),Q>>>=1,++X,K+=Y.table[X],Z-=Y.table[X];while(Z>=0);return J.tag=Q,J.bitcount-=X,Y.trans[K+Z]}function eK(J,Y,K){var Z,X,Q,W,z,$;Z=q1(J,5,257),X=q1(J,5,1),Q=q1(J,4,4);for(W=0;W<19;++W)j1[W]=0;for(W=0;W<Q;++W){var w=q1(J,3,0);j1[sK[W]]=w}y6(J7,j1,0,19);for(z=0;z<Z+X;){var U=g6(J,J7);switch(U){case 16:var H=j1[z-1];for($=q1(J,2,3);$;--$)j1[z++]=H;break;case 17:for($=q1(J,3,3);$;--$)j1[z++]=0;break;case 18:for($=q1(J,7,11);$;--$)j1[z++]=0;break;default:j1[z++]=U;break}}y6(Y,j1,0,Z),y6(K,j1,Z,X)}function K7(J,Y,K){while(!0){var Z=g6(J,Y);if(Z===256)return h6;if(Z<256)J.dest[J.destLen++]=Z;else{var X,Q,W,z;Z-=257,X=q1(J,x6[Z],b6[Z]),Q=g6(J,K),W=J.destLen-q1(J,W7[Q],$7[Q]);for(z=W;z<W+X;++z)J.dest[J.destLen++]=J.dest[z]}}}function JZ(J){var Y,K,Z;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(Y=J.source[J.sourceIndex+1],Y=256*Y+J.source[J.sourceIndex],K=J.source[J.sourceIndex+3],K=256*K+J.source[J.sourceIndex+2],Y!==(~K&65535))return Z7;J.sourceIndex+=4;for(Z=Y;Z;--Z)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,h6}function YZ(J,Y){var K=new rK(J,Y),Z,X,Q;do{switch(Z=tK(K),X=q1(K,2,0),X){case 0:Q=JZ(K);break;case 1:Q=K7(K,X7,Q7);break;case 2:eK(K,K.ltree,K.dtree),Q=K7(K,K.ltree,K.dtree);break;default:Q=Z7}if(Q!==h6)throw Error("Data error")}while(!Z);if(K.destLen<K.dest.length)if(typeof K.dest.slice==="function")return K.dest.slice(0,K.destLen);else return K.dest.subarray(0,K.destLen);return K.dest}aK(X7,Q7);z7(x6,b6,4,3);z7(W7,$7,2,1);x6[28]=0;b6[28]=258;w7.exports=YZ});var A7=x0((UB,V7)=>{var KZ=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,H7=(J,Y,K)=>{let Z=J[Y];J[Y]=J[K],J[K]=Z},ZZ=(J)=>{let Y=J.length;for(let K=0;K<Y;K+=4)H7(J,K,K+3),H7(J,K+1,K+2)},XZ=(J)=>{if(KZ)ZZ(J)};V7.exports={swap32LE:XZ}});var M7=x0((HB,O7)=>{var B7=U7(),{swap32LE:QZ}=A7();class G7{constructor(J){let Y=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(Y||J instanceof Uint8Array){let K;if(Y)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),K=J.readUInt32LE(8),J=J.slice(12);else{let Z=new DataView(J.buffer);this.highStart=Z.getUint32(0,!0),this.errorValue=Z.getUint32(4,!0),K=Z.getUint32(8,!0),J=J.subarray(12)}J=B7(J,new Uint8Array(K)),J=B7(J,new Uint8Array(K)),QZ(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let Y;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return Y=(this.data[J>>5]<<2)+(J&31),this.data[Y];if(J<=65535)return Y=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[Y];if(J<this.highStart)return Y=this.data[2080+(J>>11)],Y=this.data[Y+(J>>5&63)],Y=(Y<<2)+(J&31),this.data[Y];return this.data[this.data.length-4]}}O7.exports=G7});var L7=x0((G8)=>{var WZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var Y=typeof Uint8Array<"u"?Uint8Array:Array,K=43,Z=47,X=48,Q=97,W=65,z=45,$=95;function w(V){var A=V.charCodeAt(0);if(A===K||A===z)return 62;if(A===Z||A===$)return 63;if(A<X)return-1;if(A<X+10)return A-X+26+26;if(A<W+26)return A-W;if(A<Q+26)return A-Q+26}function U(V){var A,M,B,O,N,j;if(V.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=V.length;N=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,j=new Y(V.length*3/4-N),B=N>0?V.length-4:V.length;var I=0;function F(q){j[I++]=q}for(A=0,M=0;A<B;A+=4,M+=3)O=w(V.charAt(A))<<18|w(V.charAt(A+1))<<12|w(V.charAt(A+2))<<6|w(V.charAt(A+3)),F((O&16711680)>>16),F((O&65280)>>8),F(O&255);if(N===2)O=w(V.charAt(A))<<2|w(V.charAt(A+1))>>4,F(O&255);else if(N===1)O=w(V.charAt(A))<<10|w(V.charAt(A+1))<<4|w(V.charAt(A+2))>>2,F(O>>8&255),F(O&255);return j}function H(V){var A,M=V.length%3,B="",O,N;function j(I){return WZ.charAt(I)}function E(I){return j(I>>18&63)+j(I>>12&63)+j(I>>6&63)+j(I&63)}for(A=0,N=V.length-M;A<N;A+=3)O=(V[A]<<16)+(V[A+1]<<8)+V[A+2],B+=E(O);switch(M){case 1:O=V[V.length-1],B+=j(O>>2),B+=j(O<<4&63),B+="==";break;case 2:O=(V[V.length-2]<<8)+V[V.length-1],B+=j(O>>10),B+=j(O>>4&63),B+=j(O<<2&63),B+="=";break}return B}J.toByteArray=U,J.fromByteArray=H})(typeof G8>"u"?G8.base64js={}:G8)});var P7=x0((BB,T7)=>{var c6=40,u6=41,L8=39,l6=34,p6=92,M5=47,i6=44,n6=58,N8=42,jZ=117,qZ=85,EZ=43,FZ=/^[a-f0-9?-]+$/i;T7.exports=function(J){var Y=[],K=J,Z,X,Q,W,z,$,w,U,H=0,V=K.charCodeAt(H),A=K.length,M=[{nodes:Y}],B=0,O,N="",j="",E="";while(H<A)if(V<=32){Z=H;do Z+=1,V=K.charCodeAt(Z);while(V<=32);if(W=K.slice(H,Z),Q=Y[Y.length-1],V===u6&&B)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if(V===i6||V===n6||V===M5&&K.charCodeAt(Z+1)!==N8&&(!O||O&&O.type==="function"&&O.value!=="calc"))j=W;else Y.push({type:"space",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}else if(V===L8||V===l6){Z=H,X=V===L8?"'":'"',W={type:"string",sourceIndex:H,quote:X};do if(z=!1,Z=K.indexOf(X,Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,z=!z}else K+=X,Z=K.length-1,W.unclosed=!0;while(z);W.value=K.slice(H+1,Z),W.sourceEndIndex=W.unclosed?Z:Z+1,Y.push(W),H=Z+1,V=K.charCodeAt(H)}else if(V===M5&&K.charCodeAt(H+1)===N8){if(Z=K.indexOf("*/",H),W={type:"comment",sourceIndex:H,sourceEndIndex:Z+2},Z===-1)W.unclosed=!0,Z=K.length,W.sourceEndIndex=Z;W.value=K.slice(H+2,Z),Y.push(W),H=Z+2,V=K.charCodeAt(H)}else if((V===M5||V===N8)&&O&&O.type==="function"&&O.value==="calc")W=K[H],Y.push({type:"word",sourceIndex:H-j.length,sourceEndIndex:H+W.length,value:W}),H+=1,V=K.charCodeAt(H);else if(V===M5||V===i6||V===n6)W=K[H],Y.push({type:"div",sourceIndex:H-j.length,sourceEndIndex:H+W.length,value:W,before:j,after:""}),j="",H+=1,V=K.charCodeAt(H);else if(c6===V){Z=H;do Z+=1,V=K.charCodeAt(Z);while(V<=32);if(U=H,W={type:"function",sourceIndex:H-N.length,value:N,before:K.slice(U+1,Z)},H=Z,N==="url"&&V!==L8&&V!==l6){Z-=1;do if(z=!1,Z=K.indexOf(")",Z+1),~Z){$=Z;while(K.charCodeAt($-1)===p6)$-=1,z=!z}else K+=")",Z=K.length-1,W.unclosed=!0;while(z);w=Z;do w-=1,V=K.charCodeAt(w);while(V<=32);if(U<w){if(H!==w+1)W.nodes=[{type:"word",sourceIndex:H,sourceEndIndex:w+1,value:K.slice(H,w+1)}];else W.nodes=[];if(W.unclosed&&w+1!==Z)W.after="",W.nodes.push({type:"space",sourceIndex:w+1,sourceEndIndex:Z,value:K.slice(w+1,Z)});else W.after=K.slice(w+1,Z),W.sourceEndIndex=Z}else W.after="",W.nodes=[];H=Z+1,W.sourceEndIndex=W.unclosed?Z:H,V=K.charCodeAt(H),Y.push(W)}else B+=1,W.after="",W.sourceEndIndex=H+1,Y.push(W),M.push(W),Y=W.nodes=[],O=W;N=""}else if(u6===V&&B)H+=1,V=K.charCodeAt(H),O.after=E,O.sourceEndIndex+=E.length,E="",B-=1,M[M.length-1].sourceEndIndex=H,M.pop(),O=M[B],Y=O.nodes;else{Z=H;do{if(V===p6)Z+=1;Z+=1,V=K.charCodeAt(Z)}while(Z<A&&!(V<=32||V===L8||V===l6||V===i6||V===n6||V===M5||V===c6||V===N8&&O&&O.type==="function"&&O.value==="calc"||V===M5&&O.type==="function"&&O.value==="calc"||V===u6&&B));if(W=K.slice(H,Z),c6===V)N=W;else if((jZ===W.charCodeAt(0)||qZ===W.charCodeAt(0))&&EZ===W.charCodeAt(1)&&FZ.test(W.slice(2)))Y.push({type:"unicode-range",sourceIndex:H,sourceEndIndex:Z,value:W});else Y.push({type:"word",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}for(H=M.length-1;H;H-=1)M[H].unclosed=!0,M[H].sourceEndIndex=K.length;return M[0].nodes}});var v7=x0((GB,S7)=>{S7.exports=function J(Y,K,Z){var X,Q,W,z;for(X=0,Q=Y.length;X<Q;X+=1){if(W=Y[X],!Z)z=K(W,X,Y);if(z!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,K,Z);if(Z)K(W,X,Y)}}});var h7=x0((OB,g7)=>{function k7(J,Y){var{type:K,value:Z}=J,X,Q;if(Y&&(Q=Y(J))!==void 0)return Q;else if(K==="word"||K==="space")return Z;else if(K==="string")return X=J.quote||"",X+Z+(J.unclosed?"":X);else if(K==="comment")return"/*"+Z+(J.unclosed?"":"*/");else if(K==="div")return(J.before||"")+Z+(J.after||"");else if(Array.isArray(J.nodes)){if(X=y7(J.nodes,Y),K!=="function")return X;return Z+"("+(J.before||"")+X+(J.after||"")+(J.unclosed?"":")")}return Z}function y7(J,Y){var K,Z;if(Array.isArray(J)){K="";for(Z=J.length-1;~Z;Z-=1)K=k7(J[Z],Y)+K;return K}return k7(J,Y)}g7.exports=y7});var b7=x0((MB,x7)=>{var j8=45,q8=43,o6=46,_Z=101,IZ=69;function DZ(J){var Y=J.charCodeAt(0),K;if(Y===q8||Y===j8){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;var Z=J.charCodeAt(2);if(K===o6&&Z>=48&&Z<=57)return!0;return!1}if(Y===o6){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;return!1}if(Y>=48&&Y<=57)return!0;return!1}x7.exports=function(J){var Y=0,K=J.length,Z,X,Q;if(K===0||!DZ(J))return!1;if(Z=J.charCodeAt(Y),Z===q8||Z===j8)Y++;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Z===o6&&X>=48&&X<=57){Y+=2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Q=J.charCodeAt(Y+2),(Z===_Z||Z===IZ)&&(X>=48&&X<=57||(X===q8||X===j8)&&Q>=48&&Q<=57)){Y+=X===q8||X===j8?3:2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}return{number:J.slice(0,Y),unit:J.slice(Y)}}});var r6=x0((LB,d7)=>{var RZ=P7(),f7=v7(),m7=h7();function m1(J){if(this instanceof m1)return this.nodes=RZ(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?m7(this.nodes):""};m1.prototype.walk=function(J,Y){return f7(this.nodes,J,Y),this};m1.unit=b7();m1.walk=f7;m1.stringify=m7;d7.exports=m1});var l7=x0((NB,u7)=>{u7.exports=function(J){if(typeof J==="string")return c7(J);return s6(J)};function s6(J){if(!J||typeof J!=="object")return J;if(TZ(J)||PZ(J))return J;if(CZ(J))return kZ(J,s6);return yZ(vZ(J),function(Y,K){var Z=c7(K);return Y[Z]=s6(J[K]),Y},{})}function c7(J){return J.replace(/[_.-](\w|$)/g,function(Y,K){return K.toUpperCase()})}var CZ=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},TZ=function(J){return Object.prototype.toString.call(J)==="[object Date]"},PZ=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},SZ=Object.prototype.hasOwnProperty,vZ=Object.keys||function(J){var Y=[];for(var K in J)if(SZ.call(J,K))Y.push(K);return Y};function kZ(J,Y){if(J.map)return J.map(Y);var K=[];for(var Z=0;Z<J.length;Z++)K.push(Y(J[Z],Z));return K}function yZ(J,Y,K){if(J.reduce)return J.reduce(Y,K);for(var Z=0;Z<J.length;Z++)K=Y(K,J[Z],Z);return K}});var p7=x0((jB,gZ)=>{gZ.exports={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"}});var F8=x0((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});function K9(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var o7=r6(),hZ=K9(o7),xZ=K9(l7()),bZ=K9(p7()),fZ=function(Y){if(Y.type!=="string")return null;return Y.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(K,Z){return String.fromCharCode(parseInt(Z,16))}).replace(/\\/g,"")},mZ=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,dZ=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,cZ=function(Y){if(Y.type==="word"&&(mZ.test(Y.value)||(Y.value in bZ)||Y.value==="transparent"))return Y.value;else if(Y.type==="function"&&dZ.test(Y.value))return o7.stringify(Y);return null},uZ=/^(none)$/i,lZ=/^(auto)$/i,pZ=/(^-?[_a-z][_a-z0-9-]*$)/i,iZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,nZ=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,oZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,rZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,sZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,Z9=function(Y){return function(K){return Y(K)?"<token>":null}},aZ=function(Y){return function(K){return K.type===Y?K.value:null}},v0=function(Y,K){if(K===void 0)K=String;return function(Z){if(Z.type!=="word")return null;var X=Z.value.match(Y);if(X===null)return null;var Q=K(X[1]);return Q}},y0=Z9(function(J){return J.type==="space"}),r7=Z9(function(J){return J.type==="div"&&J.value==="/"}),tZ=Z9(function(J){return J.type==="div"&&J.value===","}),eZ=aZ("word"),X9=v0(uZ),e6=v0(lZ),N5=v0(iZ,Number),r0=v0(nZ,Number),T1=v0(oZ),s7=v0(rZ,function(J){return J.toLowerCase()}),Q9=v0(sZ),E8=v0(pZ),JX=fZ,b5=cZ,J9=v0(/^(none|underline|line-through)$/i),YX=function(Y){var K=Y.expect(N5);if(Y.hasTokens())Y.expect(r7),K/=Y.expect(N5);return{aspectRatio:K}},KX=v0(/^(solid|dashed|dotted)$/),ZX=1,XX="black",QX="solid",WX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&Y.hasTokens()){if(Q!==0)Y.expect(y0);if(K===void 0&&Y.matches(r0,T1))K=Y.lastValue;else if(Z===void 0&&Y.matches(b5))Z=Y.lastValue;else if(X===void 0&&Y.matches(KX))X=Y.lastValue;else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=ZX;if(Z===void 0)Z=XX;if(X===void 0)X=QX;return{borderWidth:K,borderColor:Z,borderStyle:X}},f5=function(Y){var K=Y.types,Z=K===void 0?[r0,T1,Q9]:K,X=Y.directions,Q=X===void 0?["Top","Right","Bottom","Left"]:X,W=Y.prefix,z=W===void 0?"":W,$=Y.suffix,w=$===void 0?"":$;return function(U){var H,V=[];V.push(U.expect.apply(U,Z));while(V.length<4&&U.hasTokens())U.expect(y0),V.push(U.expect.apply(U,Z));U.expectEmpty();var A=V[0],M=V[1],B=M===void 0?A:M,O=V[2],N=O===void 0?A:O,j=V[3],E=j===void 0?B:j,I=function(q){return""+z+Q[q]+w};return H={},H[I(0)]=A,H[I(1)]=B,H[I(2)]=N,H[I(3)]=E,H}},a7=function(Y){var K=Y.expect(r0),Z=Y.matches(y0)?Y.expect(r0):K;return Y.expectEmpty(),{width:K,height:Z}},t7=function(Y){var K,Z,X,Q;if(Y.matches(X9))return Y.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(Y.hasTokens()){if(W)Y.expect(y0);if(K===void 0&&Y.matches(r0,T1))if(K=Y.lastValue,Y.expect(y0),Z=Y.expect(r0,T1),Y.saveRewindPoint(),Y.matches(y0)&&Y.matches(r0,T1))X=Y.lastValue;else Y.rewind();else if(Q===void 0&&Y.matches(b5))Q=Y.lastValue;else Y.throw();W=!0}if(K===void 0)Y.throw();return{offset:{width:K,height:Z},radius:X!==void 0?X:0,color:Q!==void 0?Q:"black"}},$X=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{shadowOffset:Z,shadowRadius:X,shadowColor:Q,shadowOpacity:1}},zX=1,wX=1,UX=0,HX=function(Y){var K,Z,X;if(Y.matches(X9))return Y.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Y.saveRewindPoint(),Y.matches(e6)&&!Y.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};Y.rewind();var Q=0;while(Q<2&&Y.hasTokens()){if(Q!==0)Y.expect(y0);if(K===void 0&&Y.matches(N5))if(K=Y.lastValue,Y.saveRewindPoint(),Y.matches(y0)&&Y.matches(N5))Z=Y.lastValue;else Y.rewind();else if(X===void 0&&Y.matches(r0,T1,Q9))X=Y.lastValue;else if(X===void 0&&Y.matches(e6))X="auto";else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=zX;if(Z===void 0)Z=wX;if(X===void 0)X=UX;return{flexGrow:K,flexShrink:Z,flexBasis:X}},VX=v0(/(nowrap|wrap|wrap-reverse)/),AX=v0(/(row|row-reverse|column|column-reverse)/),BX="nowrap",GX="row",OX=function(Y){var K,Z,X=0;while(X<2&&Y.hasTokens()){if(X!==0)Y.expect(y0);if(K===void 0&&Y.matches(VX))K=Y.lastValue;else if(Z===void 0&&Y.matches(AX))Z=Y.lastValue;else Y.throw();X+=1}if(Y.expectEmpty(),K===void 0)K=BX;if(Z===void 0)Z=GX;return{flexWrap:K,flexDirection:Z}},e7=function(Y){var K;if(Y.matches(JX))K=Y.lastValue;else{K=Y.expect(E8);while(Y.hasTokens()){Y.expect(y0);var Z=Y.expect(E8);K+=" "+Z}}return Y.expectEmpty(),{fontFamily:K}},MX=v0(/^(normal)$/),LX=v0(/^(italic)$/),NX=v0(/^([1-9]00|bold)$/),jX=v0(/^(small-caps)$/),qX="normal",EX="normal",FX=[],_X=function(Y){var K,Z,X,Q,W=0;while(W<3&&Y.hasTokens()){if(Y.matches(MX));else if(K===void 0&&Y.matches(LX))K=Y.lastValue;else if(Z===void 0&&Y.matches(NX))Z=Y.lastValue;else if(X===void 0&&Y.matches(jX))X=[Y.lastValue];else break;Y.expect(y0),W+=1}var z=Y.expect(r0,T1);if(Y.matches(r7))Q=Y.expect(r0,T1);Y.expect(y0);var $=e7(Y),w=$.fontFamily;if(K===void 0)K=qX;if(Z===void 0)Z=EX;if(X===void 0)X=FX;var U={fontStyle:K,fontWeight:Z,fontVariant:X,fontSize:z,fontFamily:w};if(Q!==void 0)U.lineHeight=Q;return U},IX=function(Y){var K=[Y.expect(E8)];while(Y.hasTokens())Y.expect(y0),K.push(Y.expect(E8));return{fontVariant:K}},DX=v0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),RX=v0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),CX=function(Y){var K=Y.expect(DX),Z;if(Y.hasTokens())Y.expect(y0),Z=Y.expect(RX);else Z="stretch";return Y.expectEmpty(),{alignContent:K,justifyContent:Z}},TX=v0(/^(solid|double|dotted|dashed)$/),PX="none",SX="solid",vX="black",kX=function(Y){var K,Z,X,Q=!1;while(Y.hasTokens()){if(Q)Y.expect(y0);if(K===void 0&&Y.matches(J9)){var W=[Y.lastValue.toLowerCase()];if(Y.saveRewindPoint(),W[0]!=="none"&&Y.matches(y0)&&Y.matches(J9))W.push(Y.lastValue.toLowerCase()),W.sort().reverse();else Y.rewind();K=W.join(" ")}else if(Z===void 0&&Y.matches(TX))Z=Y.lastValue;else if(X===void 0&&Y.matches(b5))X=Y.lastValue;else Y.throw();Q=!0}return{textDecorationLine:K!==void 0?K:PX,textDecorationColor:X!==void 0?X:vX,textDecorationStyle:Z!==void 0?Z:SX}},yX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(y0);K.push(Y.expect(J9).toLowerCase()),Z=!0}return K.sort().reverse(),{textDecorationLine:K.join(" ")}},gX=function(Y){var K=t7(Y),Z=K.offset,X=K.radius,Q=K.color;return{textShadowOffset:Z,textShadowRadius:X,textShadowColor:Q}},W9=function(Y){return function(K){var Z=K.expect(Y);return K.expectEmpty(),Z}},a6=W9(N5),i7=W9(r0),L5=W9(s7),$9=function(Y){return function(K,Z){return function(X){var Q,W,z=X.expect(Y),$;if(X.hasTokens())X.expect(tZ),$=X.expect(Y);else if(Z!==void 0)$=Z;else return z;return X.expectEmpty(),[(Q={},Q[K+"Y"]=$,Q),(W={},W[K+"X"]=z,W)]}}},hX=$9(N5),xX=$9(r0),bX=$9(s7),fX={perspective:a6,scale:hX("scale"),scaleX:a6,scaleY:a6,translate:xX("translate",0),translateX:i7,translateY:i7,rotate:L5,rotateX:L5,rotateY:L5,rotateZ:L5,skewX:L5,skewY:L5,skew:bX("skew","0deg")},mX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(y0);var X=Y.expectFunction(),Q=X.functionName,W=fX[Q](X);if(!Array.isArray(W)){var z;W=[(z={},z[Q]=W,z)]}K=W.concat(K),Z=!0}return{transform:K}},dX=function(Y){return{backgroundColor:Y.expect(b5)}},cX=f5({types:[b5],prefix:"border",suffix:"Color"}),uX=f5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),lX=f5({prefix:"border",suffix:"Width"}),pX=f5({types:[r0,T1,Q9,e6],prefix:"margin"}),iX=f5({prefix:"padding"}),nX=function(Y){return{fontWeight:Y.expect(eZ)}},oX=function(Y){return{shadowOffset:a7(Y)}},rX=function(Y){return{textShadowOffset:a7(Y)}},J2={aspectRatio:YX,background:dX,border:WX,borderColor:cX,borderRadius:uX,borderWidth:lX,boxShadow:$X,flex:HX,flexFlow:OX,font:_X,fontFamily:e7,fontVariant:IX,fontWeight:nX,margin:pX,padding:iX,placeContent:CX,shadowOffset:oX,textShadow:gX,textShadowOffset:rX,textDecoration:kX,textDecorationLine:yX,transform:mX},Y9;if(Bun.env.NODE_ENV!=="production")Y9=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var sX=Y9!=null?new RegExp(Y9.join("|")):null,t6="SYMBOL_MATCH",aX=function(){function J(K,Z){this.index=0,this.nodes=K,this.functionName=Z!=null?Z.value:null,this.lastValue=null,this.rewindIndex=-1}var Y=J.prototype;return Y.hasTokens=function(){return this.index<=this.nodes.length-1},Y[t6]=function(){if(!this.hasTokens())return null;var K=this.nodes[this.index];for(var Z=0;Z<arguments.length;Z+=1){var X=Z<0||arguments.length<=Z?void 0:arguments[Z],Q=X(K);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},Y.matches=function(){return this[t6].apply(this,arguments)!==null},Y.expect=function(){var Z=this[t6].apply(this,arguments);return Z!==null?Z:this.throw()},Y.matchesFunction=function(){var Z=this.nodes[this.index];if(Z.type!=="function")return null;var X=new J(Z.nodes,Z);return this.index+=1,this.lastValue=null,X},Y.expectFunction=function(){var Z=this.matchesFunction();return Z!==null?Z:this.throw()},Y.expectEmpty=function(){if(this.hasTokens())this.throw()},Y.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},Y.saveRewindPoint=function(){this.rewindIndex=this.index},Y.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),tX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,eX=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,JQ=/^true|false$/i,YQ=/^null$/i,KQ=/^undefined$/i,Y2=function(Y,K){if(Bun.env.NODE_ENV!=="production"){var Z=!sX.test(Y),X=eX.test(K);if(Z&&X)console.warn('Expected style "'+Y+": "+K+'" to contain units');if(!Z&&K!=="0"&&!X)console.warn('Expected style "'+Y+": "+K+'" to be unitless')}var Q=K.match(tX);if(Q!==null)return Number(Q[1]);var W=K.match(JQ);if(W!==null)return W[0].toLowerCase()==="true";var z=K.match(YQ);if(z!==null)return null;var $=K.match(KQ);if($!==null)return;return K},n7=function(Y,K){var Z=hZ(K),X=new aX(Z.nodes);return J2[Y](X)},ZQ=Bun.env.NODE_ENV==="production"?n7:function(J,Y){try{return n7(J,Y)}catch(K){throw Error('Failed to parse declaration "'+J+": "+Y+'"')}},K2=function(Y,K,Z){var X,Q=Z===!1||!(Y in J2),W=K.trim(),z=Q?(X={},X[Y]=Y2(Y,W),X):ZQ(Y,W);return z},Z2=function(Y){var K=/^--\w+/.test(Y);if(K)return Y;return xZ(Y)},XQ=function(Y,K){if(K===void 0)K=[];return Y.reduce(function(Z,X){var Q=Z2(X[0]),W=X[1],z=K.indexOf(Q)===-1;return Object.assign(Z,K2(Q,W,z))},{})};X2.default=XQ;X2.getPropertyName=Z2;X2.getStylesForProperty=K2;X2.transformRawValue=Y2});var W2=x0((Q2,_8)=>{/*!
|
|
2
|
+
import{Ec as gK,Jc as hK,vc as SK,wc as g4,xc as vK,yc as kK}from"./chunk-pgjk5ft3.js";import{Uc as y4,pd as yK}from"./chunk-k8endm5j.js";import{ud as _K,zd as IK}from"./chunk-e3mggavt.js";import{Ad as p4,Cd as t4,Ed as m4,Jd as $8,Ld as Y1,Md as G0,Pd as i4,Qd as B8,Rd as d4,Sd as G5,Td as f4,Ud as j1,Vd as i0,Xd as FK,Yd as _6,be as k5,fe as y0,je as TK}from"./chunk-85av4ncy.js";import{qe as U0}from"./chunk-k14dmqwh.js";import{Ye as p0}from"./chunk-nncwsdzz.js";import{Ze as T5,af as X0}from"./chunk-w6gb9gc5.js";import{df as w1,ef as x0,hf as oJ}from"./chunk-7f5ad759.js";var H7=x0((GB,U7)=>{var x6=0,X7=-3;function h5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function eK(J,Y){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=Y,this.destLen=0,this.ltree=new h5,this.dtree=new h5}var Q7=new h5,W7=new h5,b6=new Uint8Array(30),f6=new Uint16Array(30),$7=new Uint8Array(30),z7=new Uint16Array(30),JZ=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Y7=new h5,N1=new Uint8Array(320);function w7(J,Y,K,Z){var X,Q;for(X=0;X<K;++X)J[X]=0;for(X=0;X<30-K;++X)J[X+K]=X/K|0;for(Q=Z,X=0;X<30;++X)Y[X]=Q,Q+=1<<J[X]}function YZ(J,Y){var K;for(K=0;K<7;++K)J.table[K]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(K=0;K<24;++K)J.trans[K]=256+K;for(K=0;K<144;++K)J.trans[24+K]=K;for(K=0;K<8;++K)J.trans[168+K]=280+K;for(K=0;K<112;++K)J.trans[176+K]=144+K;for(K=0;K<5;++K)Y.table[K]=0;Y.table[5]=32;for(K=0;K<32;++K)Y.trans[K]=K}var K7=new Uint16Array(16);function y6(J,Y,K,Z){var X,Q;for(X=0;X<16;++X)J.table[X]=0;for(X=0;X<Z;++X)J.table[Y[K+X]]++;J.table[0]=0;for(Q=0,X=0;X<16;++X)K7[X]=Q,Q+=J.table[X];for(X=0;X<Z;++X)if(Y[K+X])J.trans[K7[Y[K+X]]++]=X}function KZ(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var Y=J.tag&1;return J.tag>>>=1,Y}function q1(J,Y,K){if(!Y)return K;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Z=J.tag&65535>>>16-Y;return J.tag>>>=Y,J.bitcount-=Y,Z+K}function h6(J,Y){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var K=0,Z=0,X=0,Q=J.tag;do Z=2*Z+(Q&1),Q>>>=1,++X,K+=Y.table[X],Z-=Y.table[X];while(Z>=0);return J.tag=Q,J.bitcount-=X,Y.trans[K+Z]}function ZZ(J,Y,K){var Z,X,Q,W,z,$;Z=q1(J,5,257),X=q1(J,5,1),Q=q1(J,4,4);for(W=0;W<19;++W)N1[W]=0;for(W=0;W<Q;++W){var w=q1(J,3,0);N1[JZ[W]]=w}y6(Y7,N1,0,19);for(z=0;z<Z+X;){var U=h6(J,Y7);switch(U){case 16:var H=N1[z-1];for($=q1(J,2,3);$;--$)N1[z++]=H;break;case 17:for($=q1(J,3,3);$;--$)N1[z++]=0;break;case 18:for($=q1(J,7,11);$;--$)N1[z++]=0;break;default:N1[z++]=U;break}}y6(Y,N1,0,Z),y6(K,N1,Z,X)}function Z7(J,Y,K){while(!0){var Z=h6(J,Y);if(Z===256)return x6;if(Z<256)J.dest[J.destLen++]=Z;else{var X,Q,W,z;Z-=257,X=q1(J,b6[Z],f6[Z]),Q=h6(J,K),W=J.destLen-q1(J,$7[Q],z7[Q]);for(z=W;z<W+X;++z)J.dest[J.destLen++]=J.dest[z]}}}function XZ(J){var Y,K,Z;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(Y=J.source[J.sourceIndex+1],Y=256*Y+J.source[J.sourceIndex],K=J.source[J.sourceIndex+3],K=256*K+J.source[J.sourceIndex+2],Y!==(~K&65535))return X7;J.sourceIndex+=4;for(Z=Y;Z;--Z)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,x6}function QZ(J,Y){var K=new eK(J,Y),Z,X,Q;do{switch(Z=KZ(K),X=q1(K,2,0),X){case 0:Q=XZ(K);break;case 1:Q=Z7(K,Q7,W7);break;case 2:ZZ(K,K.ltree,K.dtree),Q=Z7(K,K.ltree,K.dtree);break;default:Q=X7}if(Q!==x6)throw Error("Data error")}while(!Z);if(K.destLen<K.dest.length)if(typeof K.dest.slice==="function")return K.dest.slice(0,K.destLen);else return K.dest.subarray(0,K.destLen);return K.dest}YZ(Q7,W7);w7(b6,f6,4,3);w7($7,z7,2,1);b6[28]=0;f6[28]=258;U7.exports=QZ});var B7=x0((OB,A7)=>{var WZ=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,V7=(J,Y,K)=>{let Z=J[Y];J[Y]=J[K],J[K]=Z},$Z=(J)=>{let Y=J.length;for(let K=0;K<Y;K+=4)V7(J,K,K+3),V7(J,K+1,K+2)},zZ=(J)=>{if(WZ)$Z(J)};A7.exports={swap32LE:zZ}});var L7=x0((MB,M7)=>{var G7=H7(),{swap32LE:wZ}=B7();class O7{constructor(J){let Y=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(Y||J instanceof Uint8Array){let K;if(Y)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),K=J.readUInt32LE(8),J=J.slice(12);else{let Z=new DataView(J.buffer);this.highStart=Z.getUint32(0,!0),this.errorValue=Z.getUint32(4,!0),K=Z.getUint32(8,!0),J=J.subarray(12)}J=G7(J,new Uint8Array(K)),J=G7(J,new Uint8Array(K)),wZ(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let Y;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return Y=(this.data[J>>5]<<2)+(J&31),this.data[Y];if(J<=65535)return Y=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[Y];if(J<this.highStart)return Y=this.data[2080+(J>>11)],Y=this.data[Y+(J>>5&63)],Y=(Y<<2)+(J&31),this.data[Y];return this.data[this.data.length-4]}}M7.exports=O7});var j7=x0((G8)=>{var UZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var Y=typeof Uint8Array<"u"?Uint8Array:Array,K=43,Z=47,X=48,Q=97,W=65,z=45,$=95;function w(V){var A=V.charCodeAt(0);if(A===K||A===z)return 62;if(A===Z||A===$)return 63;if(A<X)return-1;if(A<X+10)return A-X+26+26;if(A<W+26)return A-W;if(A<Q+26)return A-Q+26}function U(V){var A,O,B,M,j,N;if(V.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=V.length;j=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,N=new Y(V.length*3/4-j),B=j>0?V.length-4:V.length;var I=0;function F(q){N[I++]=q}for(A=0,O=0;A<B;A+=4,O+=3)M=w(V.charAt(A))<<18|w(V.charAt(A+1))<<12|w(V.charAt(A+2))<<6|w(V.charAt(A+3)),F((M&16711680)>>16),F((M&65280)>>8),F(M&255);if(j===2)M=w(V.charAt(A))<<2|w(V.charAt(A+1))>>4,F(M&255);else if(j===1)M=w(V.charAt(A))<<10|w(V.charAt(A+1))<<4|w(V.charAt(A+2))>>2,F(M>>8&255),F(M&255);return N}function H(V){var A,O=V.length%3,B="",M,j;function N(I){return UZ.charAt(I)}function E(I){return N(I>>18&63)+N(I>>12&63)+N(I>>6&63)+N(I&63)}for(A=0,j=V.length-O;A<j;A+=3)M=(V[A]<<16)+(V[A+1]<<8)+V[A+2],B+=E(M);switch(O){case 1:M=V[V.length-1],B+=N(M>>2),B+=N(M<<4&63),B+="==";break;case 2:M=(V[V.length-2]<<8)+V[V.length-1],B+=N(M>>10),B+=N(M>>4&63),B+=N(M<<2&63),B+="=";break}return B}J.toByteArray=U,J.fromByteArray=H})(typeof G8>"u"?G8.base64js={}:G8)});var S7=x0((NB,P7)=>{var c6=40,l6=41,L8=39,p6=34,i6=92,M5=47,n6=44,o6=58,j8=42,_Z=117,IZ=85,DZ=43,RZ=/^[a-f0-9?-]+$/i;P7.exports=function(J){var Y=[],K=J,Z,X,Q,W,z,$,w,U,H=0,V=K.charCodeAt(H),A=K.length,O=[{nodes:Y}],B=0,M,j="",N="",E="";while(H<A)if(V<=32){Z=H;do Z+=1,V=K.charCodeAt(Z);while(V<=32);if(W=K.slice(H,Z),Q=Y[Y.length-1],V===l6&&B)E=W;else if(Q&&Q.type==="div")Q.after=W,Q.sourceEndIndex+=W.length;else if(V===n6||V===o6||V===M5&&K.charCodeAt(Z+1)!==j8&&(!M||M&&M.type==="function"&&M.value!=="calc"))N=W;else Y.push({type:"space",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}else if(V===L8||V===p6){Z=H,X=V===L8?"'":'"',W={type:"string",sourceIndex:H,quote:X};do if(z=!1,Z=K.indexOf(X,Z+1),~Z){$=Z;while(K.charCodeAt($-1)===i6)$-=1,z=!z}else K+=X,Z=K.length-1,W.unclosed=!0;while(z);W.value=K.slice(H+1,Z),W.sourceEndIndex=W.unclosed?Z:Z+1,Y.push(W),H=Z+1,V=K.charCodeAt(H)}else if(V===M5&&K.charCodeAt(H+1)===j8){if(Z=K.indexOf("*/",H),W={type:"comment",sourceIndex:H,sourceEndIndex:Z+2},Z===-1)W.unclosed=!0,Z=K.length,W.sourceEndIndex=Z;W.value=K.slice(H+2,Z),Y.push(W),H=Z+2,V=K.charCodeAt(H)}else if((V===M5||V===j8)&&M&&M.type==="function"&&M.value==="calc")W=K[H],Y.push({type:"word",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W}),H+=1,V=K.charCodeAt(H);else if(V===M5||V===n6||V===o6)W=K[H],Y.push({type:"div",sourceIndex:H-N.length,sourceEndIndex:H+W.length,value:W,before:N,after:""}),N="",H+=1,V=K.charCodeAt(H);else if(c6===V){Z=H;do Z+=1,V=K.charCodeAt(Z);while(V<=32);if(U=H,W={type:"function",sourceIndex:H-j.length,value:j,before:K.slice(U+1,Z)},H=Z,j==="url"&&V!==L8&&V!==p6){Z-=1;do if(z=!1,Z=K.indexOf(")",Z+1),~Z){$=Z;while(K.charCodeAt($-1)===i6)$-=1,z=!z}else K+=")",Z=K.length-1,W.unclosed=!0;while(z);w=Z;do w-=1,V=K.charCodeAt(w);while(V<=32);if(U<w){if(H!==w+1)W.nodes=[{type:"word",sourceIndex:H,sourceEndIndex:w+1,value:K.slice(H,w+1)}];else W.nodes=[];if(W.unclosed&&w+1!==Z)W.after="",W.nodes.push({type:"space",sourceIndex:w+1,sourceEndIndex:Z,value:K.slice(w+1,Z)});else W.after=K.slice(w+1,Z),W.sourceEndIndex=Z}else W.after="",W.nodes=[];H=Z+1,W.sourceEndIndex=W.unclosed?Z:H,V=K.charCodeAt(H),Y.push(W)}else B+=1,W.after="",W.sourceEndIndex=H+1,Y.push(W),O.push(W),Y=W.nodes=[],M=W;j=""}else if(l6===V&&B)H+=1,V=K.charCodeAt(H),M.after=E,M.sourceEndIndex+=E.length,E="",B-=1,O[O.length-1].sourceEndIndex=H,O.pop(),M=O[B],Y=M.nodes;else{Z=H;do{if(V===i6)Z+=1;Z+=1,V=K.charCodeAt(Z)}while(Z<A&&!(V<=32||V===L8||V===p6||V===n6||V===o6||V===M5||V===c6||V===j8&&M&&M.type==="function"&&M.value==="calc"||V===M5&&M.type==="function"&&M.value==="calc"||V===l6&&B));if(W=K.slice(H,Z),c6===V)j=W;else if((_Z===W.charCodeAt(0)||IZ===W.charCodeAt(0))&&DZ===W.charCodeAt(1)&&RZ.test(W.slice(2)))Y.push({type:"unicode-range",sourceIndex:H,sourceEndIndex:Z,value:W});else Y.push({type:"word",sourceIndex:H,sourceEndIndex:Z,value:W});H=Z}for(H=O.length-1;H;H-=1)O[H].unclosed=!0,O[H].sourceEndIndex=K.length;return O[0].nodes}});var k7=x0((qB,v7)=>{v7.exports=function J(Y,K,Z){var X,Q,W,z;for(X=0,Q=Y.length;X<Q;X+=1){if(W=Y[X],!Z)z=K(W,X,Y);if(z!==!1&&W.type==="function"&&Array.isArray(W.nodes))J(W.nodes,K,Z);if(Z)K(W,X,Y)}}});var x7=x0((EB,h7)=>{function g7(J,Y){var{type:K,value:Z}=J,X,Q;if(Y&&(Q=Y(J))!==void 0)return Q;else if(K==="word"||K==="space")return Z;else if(K==="string")return X=J.quote||"",X+Z+(J.unclosed?"":X);else if(K==="comment")return"/*"+Z+(J.unclosed?"":"*/");else if(K==="div")return(J.before||"")+Z+(J.after||"");else if(Array.isArray(J.nodes)){if(X=y7(J.nodes,Y),K!=="function")return X;return Z+"("+(J.before||"")+X+(J.after||"")+(J.unclosed?"":")")}return Z}function y7(J,Y){var K,Z;if(Array.isArray(J)){K="";for(Z=J.length-1;~Z;Z-=1)K=g7(J[Z],Y)+K;return K}return g7(J,Y)}h7.exports=y7});var f7=x0((FB,b7)=>{var N8=45,q8=43,r6=46,CZ=101,TZ=69;function PZ(J){var Y=J.charCodeAt(0),K;if(Y===q8||Y===N8){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;var Z=J.charCodeAt(2);if(K===r6&&Z>=48&&Z<=57)return!0;return!1}if(Y===r6){if(K=J.charCodeAt(1),K>=48&&K<=57)return!0;return!1}if(Y>=48&&Y<=57)return!0;return!1}b7.exports=function(J){var Y=0,K=J.length,Z,X,Q;if(K===0||!PZ(J))return!1;if(Z=J.charCodeAt(Y),Z===q8||Z===N8)Y++;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Z===r6&&X>=48&&X<=57){Y+=2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}if(Z=J.charCodeAt(Y),X=J.charCodeAt(Y+1),Q=J.charCodeAt(Y+2),(Z===CZ||Z===TZ)&&(X>=48&&X<=57||(X===q8||X===N8)&&Q>=48&&Q<=57)){Y+=X===q8||X===N8?3:2;while(Y<K){if(Z=J.charCodeAt(Y),Z<48||Z>57)break;Y+=1}}return{number:J.slice(0,Y),unit:J.slice(Y)}}});var s6=x0((_B,u7)=>{var SZ=S7(),m7=k7(),d7=x7();function m1(J){if(this instanceof m1)return this.nodes=SZ(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?d7(this.nodes):""};m1.prototype.walk=function(J,Y){return m7(this.nodes,J,Y),this};m1.unit=f7();m1.walk=m7;m1.stringify=d7;u7.exports=m1});var p7=x0((IB,l7)=>{l7.exports=function(J){if(typeof J==="string")return c7(J);return a6(J)};function a6(J){if(!J||typeof J!=="object")return J;if(kZ(J)||gZ(J))return J;if(vZ(J))return xZ(J,a6);return bZ(hZ(J),function(Y,K){var Z=c7(K);return Y[Z]=a6(J[K]),Y},{})}function c7(J){return J.replace(/[_.-](\w|$)/g,function(Y,K){return K.toUpperCase()})}var vZ=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},kZ=function(J){return Object.prototype.toString.call(J)==="[object Date]"},gZ=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},yZ=Object.prototype.hasOwnProperty,hZ=Object.keys||function(J){var Y=[];for(var K in J)if(yZ.call(J,K))Y.push(K);return Y};function xZ(J,Y){if(J.map)return J.map(Y);var K=[];for(var Z=0;Z<J.length;Z++)K.push(Y(J[Z],Z));return K}function bZ(J,Y,K){if(J.reduce)return J.reduce(Y,K);for(var Z=0;Z<J.length;Z++)K=Y(K,J[Z],Z);return K}});var i7=x0((DB,fZ)=>{fZ.exports={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"}});var F8=x0((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});function Z9(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var r7=s6(),mZ=Z9(r7),dZ=Z9(p7()),uZ=Z9(i7()),cZ=function(Y){if(Y.type!=="string")return null;return Y.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(K,Z){return String.fromCharCode(parseInt(Z,16))}).replace(/\\/g,"")},lZ=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,pZ=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,iZ=function(Y){if(Y.type==="word"&&(lZ.test(Y.value)||(Y.value in uZ)||Y.value==="transparent"))return Y.value;else if(Y.type==="function"&&pZ.test(Y.value))return r7.stringify(Y);return null},nZ=/^(none)$/i,oZ=/^(auto)$/i,rZ=/(^-?[_a-z][_a-z0-9-]*$)/i,sZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,aZ=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,tZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,eZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,JX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,X9=function(Y){return function(K){return Y(K)?"<token>":null}},YX=function(Y){return function(K){return K.type===Y?K.value:null}},v0=function(Y,K){if(K===void 0)K=String;return function(Z){if(Z.type!=="word")return null;var X=Z.value.match(Y);if(X===null)return null;var Q=K(X[1]);return Q}},g0=X9(function(J){return J.type==="space"}),s7=X9(function(J){return J.type==="div"&&J.value==="/"}),KX=X9(function(J){return J.type==="div"&&J.value===","}),ZX=YX("word"),Q9=v0(nZ),J9=v0(oZ),j5=v0(sZ,Number),r0=v0(aZ,Number),T1=v0(tZ),a7=v0(eZ,function(J){return J.toLowerCase()}),W9=v0(JX),E8=v0(rZ),XX=cZ,b5=iZ,Y9=v0(/^(none|underline|line-through)$/i),QX=function(Y){var K=Y.expect(j5);if(Y.hasTokens())Y.expect(s7),K/=Y.expect(j5);return{aspectRatio:K}},WX=v0(/^(solid|dashed|dotted)$/),$X=1,zX="black",wX="solid",UX=function(Y){var K,Z,X;if(Y.matches(Q9))return Y.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&Y.hasTokens()){if(Q!==0)Y.expect(g0);if(K===void 0&&Y.matches(r0,T1))K=Y.lastValue;else if(Z===void 0&&Y.matches(b5))Z=Y.lastValue;else if(X===void 0&&Y.matches(WX))X=Y.lastValue;else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=$X;if(Z===void 0)Z=zX;if(X===void 0)X=wX;return{borderWidth:K,borderColor:Z,borderStyle:X}},f5=function(Y){var K=Y.types,Z=K===void 0?[r0,T1,W9]:K,X=Y.directions,Q=X===void 0?["Top","Right","Bottom","Left"]:X,W=Y.prefix,z=W===void 0?"":W,$=Y.suffix,w=$===void 0?"":$;return function(U){var H,V=[];V.push(U.expect.apply(U,Z));while(V.length<4&&U.hasTokens())U.expect(g0),V.push(U.expect.apply(U,Z));U.expectEmpty();var A=V[0],O=V[1],B=O===void 0?A:O,M=V[2],j=M===void 0?A:M,N=V[3],E=N===void 0?B:N,I=function(q){return""+z+Q[q]+w};return H={},H[I(0)]=A,H[I(1)]=B,H[I(2)]=j,H[I(3)]=E,H}},t7=function(Y){var K=Y.expect(r0),Z=Y.matches(g0)?Y.expect(r0):K;return Y.expectEmpty(),{width:K,height:Z}},e7=function(Y){var K,Z,X,Q;if(Y.matches(Q9))return Y.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var W=!1;while(Y.hasTokens()){if(W)Y.expect(g0);if(K===void 0&&Y.matches(r0,T1))if(K=Y.lastValue,Y.expect(g0),Z=Y.expect(r0,T1),Y.saveRewindPoint(),Y.matches(g0)&&Y.matches(r0,T1))X=Y.lastValue;else Y.rewind();else if(Q===void 0&&Y.matches(b5))Q=Y.lastValue;else Y.throw();W=!0}if(K===void 0)Y.throw();return{offset:{width:K,height:Z},radius:X!==void 0?X:0,color:Q!==void 0?Q:"black"}},HX=function(Y){var K=e7(Y),Z=K.offset,X=K.radius,Q=K.color;return{shadowOffset:Z,shadowRadius:X,shadowColor:Q,shadowOpacity:1}},VX=1,AX=1,BX=0,GX=function(Y){var K,Z,X;if(Y.matches(Q9))return Y.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Y.saveRewindPoint(),Y.matches(J9)&&!Y.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};Y.rewind();var Q=0;while(Q<2&&Y.hasTokens()){if(Q!==0)Y.expect(g0);if(K===void 0&&Y.matches(j5))if(K=Y.lastValue,Y.saveRewindPoint(),Y.matches(g0)&&Y.matches(j5))Z=Y.lastValue;else Y.rewind();else if(X===void 0&&Y.matches(r0,T1,W9))X=Y.lastValue;else if(X===void 0&&Y.matches(J9))X="auto";else Y.throw();Q+=1}if(Y.expectEmpty(),K===void 0)K=VX;if(Z===void 0)Z=AX;if(X===void 0)X=BX;return{flexGrow:K,flexShrink:Z,flexBasis:X}},OX=v0(/(nowrap|wrap|wrap-reverse)/),MX=v0(/(row|row-reverse|column|column-reverse)/),LX="nowrap",jX="row",NX=function(Y){var K,Z,X=0;while(X<2&&Y.hasTokens()){if(X!==0)Y.expect(g0);if(K===void 0&&Y.matches(OX))K=Y.lastValue;else if(Z===void 0&&Y.matches(MX))Z=Y.lastValue;else Y.throw();X+=1}if(Y.expectEmpty(),K===void 0)K=LX;if(Z===void 0)Z=jX;return{flexWrap:K,flexDirection:Z}},J2=function(Y){var K;if(Y.matches(XX))K=Y.lastValue;else{K=Y.expect(E8);while(Y.hasTokens()){Y.expect(g0);var Z=Y.expect(E8);K+=" "+Z}}return Y.expectEmpty(),{fontFamily:K}},qX=v0(/^(normal)$/),EX=v0(/^(italic)$/),FX=v0(/^([1-9]00|bold)$/),_X=v0(/^(small-caps)$/),IX="normal",DX="normal",RX=[],CX=function(Y){var K,Z,X,Q,W=0;while(W<3&&Y.hasTokens()){if(Y.matches(qX));else if(K===void 0&&Y.matches(EX))K=Y.lastValue;else if(Z===void 0&&Y.matches(FX))Z=Y.lastValue;else if(X===void 0&&Y.matches(_X))X=[Y.lastValue];else break;Y.expect(g0),W+=1}var z=Y.expect(r0,T1);if(Y.matches(s7))Q=Y.expect(r0,T1);Y.expect(g0);var $=J2(Y),w=$.fontFamily;if(K===void 0)K=IX;if(Z===void 0)Z=DX;if(X===void 0)X=RX;var U={fontStyle:K,fontWeight:Z,fontVariant:X,fontSize:z,fontFamily:w};if(Q!==void 0)U.lineHeight=Q;return U},TX=function(Y){var K=[Y.expect(E8)];while(Y.hasTokens())Y.expect(g0),K.push(Y.expect(E8));return{fontVariant:K}},PX=v0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),SX=v0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),vX=function(Y){var K=Y.expect(PX),Z;if(Y.hasTokens())Y.expect(g0),Z=Y.expect(SX);else Z="stretch";return Y.expectEmpty(),{alignContent:K,justifyContent:Z}},kX=v0(/^(solid|double|dotted|dashed)$/),gX="none",yX="solid",hX="black",xX=function(Y){var K,Z,X,Q=!1;while(Y.hasTokens()){if(Q)Y.expect(g0);if(K===void 0&&Y.matches(Y9)){var W=[Y.lastValue.toLowerCase()];if(Y.saveRewindPoint(),W[0]!=="none"&&Y.matches(g0)&&Y.matches(Y9))W.push(Y.lastValue.toLowerCase()),W.sort().reverse();else Y.rewind();K=W.join(" ")}else if(Z===void 0&&Y.matches(kX))Z=Y.lastValue;else if(X===void 0&&Y.matches(b5))X=Y.lastValue;else Y.throw();Q=!0}return{textDecorationLine:K!==void 0?K:gX,textDecorationColor:X!==void 0?X:hX,textDecorationStyle:Z!==void 0?Z:yX}},bX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(g0);K.push(Y.expect(Y9).toLowerCase()),Z=!0}return K.sort().reverse(),{textDecorationLine:K.join(" ")}},fX=function(Y){var K=e7(Y),Z=K.offset,X=K.radius,Q=K.color;return{textShadowOffset:Z,textShadowRadius:X,textShadowColor:Q}},$9=function(Y){return function(K){var Z=K.expect(Y);return K.expectEmpty(),Z}},t6=$9(j5),n7=$9(r0),L5=$9(a7),z9=function(Y){return function(K,Z){return function(X){var Q,W,z=X.expect(Y),$;if(X.hasTokens())X.expect(KX),$=X.expect(Y);else if(Z!==void 0)$=Z;else return z;return X.expectEmpty(),[(Q={},Q[K+"Y"]=$,Q),(W={},W[K+"X"]=z,W)]}}},mX=z9(j5),dX=z9(r0),uX=z9(a7),cX={perspective:t6,scale:mX("scale"),scaleX:t6,scaleY:t6,translate:dX("translate",0),translateX:n7,translateY:n7,rotate:L5,rotateX:L5,rotateY:L5,rotateZ:L5,skewX:L5,skewY:L5,skew:uX("skew","0deg")},lX=function(Y){var K=[],Z=!1;while(Y.hasTokens()){if(Z)Y.expect(g0);var X=Y.expectFunction(),Q=X.functionName,W=cX[Q](X);if(!Array.isArray(W)){var z;W=[(z={},z[Q]=W,z)]}K=W.concat(K),Z=!0}return{transform:K}},pX=function(Y){return{backgroundColor:Y.expect(b5)}},iX=f5({types:[b5],prefix:"border",suffix:"Color"}),nX=f5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),oX=f5({prefix:"border",suffix:"Width"}),rX=f5({types:[r0,T1,W9,J9],prefix:"margin"}),sX=f5({prefix:"padding"}),aX=function(Y){return{fontWeight:Y.expect(ZX)}},tX=function(Y){return{shadowOffset:t7(Y)}},eX=function(Y){return{textShadowOffset:t7(Y)}},Y2={aspectRatio:QX,background:pX,border:UX,borderColor:iX,borderRadius:nX,borderWidth:oX,boxShadow:HX,flex:GX,flexFlow:NX,font:CX,fontFamily:J2,fontVariant:TX,fontWeight:aX,margin:rX,padding:sX,placeContent:vX,shadowOffset:tX,textShadow:fX,textShadowOffset:eX,textDecoration:xX,textDecorationLine:bX,transform:lX},K9;if(Bun.env.NODE_ENV!=="production")K9=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var JQ=K9!=null?new RegExp(K9.join("|")):null,e6="SYMBOL_MATCH",YQ=function(){function J(K,Z){this.index=0,this.nodes=K,this.functionName=Z!=null?Z.value:null,this.lastValue=null,this.rewindIndex=-1}var Y=J.prototype;return Y.hasTokens=function(){return this.index<=this.nodes.length-1},Y[e6]=function(){if(!this.hasTokens())return null;var K=this.nodes[this.index];for(var Z=0;Z<arguments.length;Z+=1){var X=Z<0||arguments.length<=Z?void 0:arguments[Z],Q=X(K);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},Y.matches=function(){return this[e6].apply(this,arguments)!==null},Y.expect=function(){var Z=this[e6].apply(this,arguments);return Z!==null?Z:this.throw()},Y.matchesFunction=function(){var Z=this.nodes[this.index];if(Z.type!=="function")return null;var X=new J(Z.nodes,Z);return this.index+=1,this.lastValue=null,X},Y.expectFunction=function(){var Z=this.matchesFunction();return Z!==null?Z:this.throw()},Y.expectEmpty=function(){if(this.hasTokens())this.throw()},Y.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},Y.saveRewindPoint=function(){this.rewindIndex=this.index},Y.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),KQ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,ZQ=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,XQ=/^true|false$/i,QQ=/^null$/i,WQ=/^undefined$/i,K2=function(Y,K){if(Bun.env.NODE_ENV!=="production"){var Z=!JQ.test(Y),X=ZQ.test(K);if(Z&&X)console.warn('Expected style "'+Y+": "+K+'" to contain units');if(!Z&&K!=="0"&&!X)console.warn('Expected style "'+Y+": "+K+'" to be unitless')}var Q=K.match(KQ);if(Q!==null)return Number(Q[1]);var W=K.match(XQ);if(W!==null)return W[0].toLowerCase()==="true";var z=K.match(QQ);if(z!==null)return null;var $=K.match(WQ);if($!==null)return;return K},o7=function(Y,K){var Z=mZ(K),X=new YQ(Z.nodes);return Y2[Y](X)},$Q=Bun.env.NODE_ENV==="production"?o7:function(J,Y){try{return o7(J,Y)}catch(K){throw Error('Failed to parse declaration "'+J+": "+Y+'"')}},Z2=function(Y,K,Z){var X,Q=Z===!1||!(Y in Y2),W=K.trim(),z=Q?(X={},X[Y]=K2(Y,W),X):$Q(Y,W);return z},X2=function(Y){var K=/^--\w+/.test(Y);if(K)return Y;return dZ(Y)},zQ=function(Y,K){if(K===void 0)K=[];return Y.reduce(function(Z,X){var Q=X2(X[0]),W=X[1],z=K.indexOf(Q)===-1;return Object.assign(Z,Z2(Q,W,z))},{})};Q2.default=zQ;Q2.getPropertyName=X2;Q2.getStylesForProperty=Z2;Q2.transformRawValue=K2});var $2=x0((W2,_8)=>{/*!
|
|
3
3
|
* https://github.com/gilmoreorless/css-background-parser
|
|
4
4
|
* Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
|
|
5
|
-
*/(function(J){function Y(W){if(!(this instanceof Y))return new Y;this.backgrounds=W||[]}Y.prototype.toString=function(){return this.backgrounds.join(", ")};function K(W){if(!(this instanceof K))return new K(W);W=W||{};var z=this;function $(w,U){z[w]=w in W?W[w]:U}$("color",""),$("image","none"),$("attachment","scroll"),$("clip","border-box"),$("origin","padding-box"),$("position","0% 0%"),$("repeat","repeat"),$("size","auto")}K.prototype.toString=function(){var W=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)W.unshift(this.color);return W.join(" ")},J.BackgroundList=Y,J.Background=K;function Z(W){var z=[],$=/[,\(\)]/,w=0,U="";if(W==null)return z;while(W.length){var H=$.exec(W);if(!H)break;var V=H[0],A=!1;switch(V){case",":if(!w)z.push(U.trim()),U="",A=!0;break;case"(":w++;break;case")":w--;break}var
|
|
5
|
+
*/(function(J){function Y(W){if(!(this instanceof Y))return new Y;this.backgrounds=W||[]}Y.prototype.toString=function(){return this.backgrounds.join(", ")};function K(W){if(!(this instanceof K))return new K(W);W=W||{};var z=this;function $(w,U){z[w]=w in W?W[w]:U}$("color",""),$("image","none"),$("attachment","scroll"),$("clip","border-box"),$("origin","padding-box"),$("position","0% 0%"),$("repeat","repeat"),$("size","auto")}K.prototype.toString=function(){var W=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)W.unshift(this.color);return W.join(" ")},J.BackgroundList=Y,J.Background=K;function Z(W){var z=[],$=/[,\(\)]/,w=0,U="";if(W==null)return z;while(W.length){var H=$.exec(W);if(!H)break;var V=H[0],A=!1;switch(V){case",":if(!w)z.push(U.trim()),U="",A=!0;break;case"(":w++;break;case")":w--;break}var O=H.index+1;U+=W.slice(0,A?O-1:O),W=W.slice(O)}if(U.length||W.length)z.push((U+W).trim());return z}function X(W){return W.trim()}function Q(W){return(W||"").split(",").map(X)}J.parseElementStyle=function(W){var z=new Y;if(W==null)return z;var $=Z(W.backgroundImage),w=W.backgroundColor,U=Q(W.backgroundAttachment),H=Q(W.backgroundClip),V=Q(W.backgroundOrigin),A=Q(W.backgroundPosition),O=Q(W.backgroundRepeat),B=Q(W.backgroundSize),M;for(var j=0,N=$.length;j<N;j++){if(M=new K({image:$[j],attachment:U[j%U.length],clip:H[j%H.length],origin:V[j%V.length],position:A[j%A.length],repeat:O[j%O.length],size:B[j%B.length]}),j===N-1)M.color=w;z.backgrounds.push(M)}return z}})(function(J){if(typeof _8<"u"&&W2!==void 0)return W2;return J.cssBgParser={}}(W2))});var w2=x0((CB,z2)=>{var AQ=/,(?![^\(]*\))/,BQ=/\s(?![^(]*\))/,GQ=/^[0-9]+[a-zA-Z%]+?$/,OQ=(J)=>{let Y=J.split(BQ),K=Y.includes("inset"),Z=Y.slice(-1)[0],X=!LQ(Z)?Z:void 0,Q=Y.filter((U)=>U!=="inset").filter((U)=>U!==X).map(jQ),[W,z,$,w]=Q;return{inset:K,offsetX:W,offsetY:z,blurRadius:$,spreadRadius:w,color:X}},MQ=(J)=>{let{inset:Y,offsetX:K=0,offsetY:Z=0,blurRadius:X=0,spreadRadius:Q,color:W}=J||{};return[Y?"inset":null,K,Z,X,Q,W].filter((z)=>z!==null&&z!==void 0).map(NQ).map((z)=>(""+z).trim()).join(" ")},LQ=(J)=>J==="0"||GQ.test(J),jQ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let Y=parseFloat(J);return!isNaN(Y)?Y:J},NQ=(J)=>typeof J==="number"&&J!==0?J+"px":J,qQ=(J)=>J.split(AQ).map((Y)=>Y.trim()).map(OQ),EQ=(J)=>J.map(MQ).join(", ");z2.exports={parse:qQ,stringify:EQ}});var H2=x0((TB,U2)=>{U2.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 A2=x0((PB,V2)=>{var FQ=new RegExp("[^#a-f\\d]","gi"),_Q=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");V2.exports=(J,Y={})=>{if(typeof J!=="string"||FQ.test(J)||!_Q.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let K=1;if(J.length===8)K=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)K=Number.parseInt(J.slice(3,4).repeat(2),16)/255,J=J.slice(0,3);if(J.length===3)J=J[0]+J[0]+J[1]+J[1]+J[2]+J[2];let Z=Number.parseInt(J,16),X=Z>>16,Q=Z>>8&255,W=Z&255,z=typeof Y.alpha==="number"?Y.alpha:K;if(Y.format==="array")return[X,Q,W,z];if(Y.format==="css"){let $=z===1?"":` / ${Number((z*100).toFixed(2))}%`;return`rgb(${X} ${Q} ${W}${$})`}return{red:X,green:Q,blue:W,alpha:z}}});var j2=x0((vB,L2)=>{/*!
|
|
6
6
|
* escape-html
|
|
7
7
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
8
8
|
* Copyright(c) 2015 Andreas Lubbe
|
|
9
9
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
10
10
|
* MIT Licensed
|
|
11
|
-
*/var dQ=/["'&<>]/;M2.exports=cQ;function cQ(J){var Y=""+J,K=dQ.exec(Y);if(!K)return Y;var Z,X="",Q=0,W=0;for(Q=K.index;Q<Y.length;Q++){switch(Y.charCodeAt(Q)){case 34:Z=""";break;case 38:Z="&";break;case 39:Z="'";break;case 60:Z="<";break;case 62:Z=">";break;default:continue}if(W!==Q)X+=Y.substring(W,Q);W=Q+1,X+=Z}return W!==Q?X+Y.substring(W,Q):X}});class k0{static getFacadeAccessor(){throw Error(`Facade [${this.name}] does not implement getFacadeAccessor().`)}static getFacadeRoot(){return X0(this.getFacadeAccessor())}}import{AsyncLocalStorage as yK}from"async_hooks";class L6{config;static token="broadcast";publishCb;context=new yK;constructor(J){this.config=J}get channels(){return this.config.channels}onPublish(J){this.publishCb=J}publish(...J){let[Y,K,Z]=J;this.publishCb(Y,K,Z)}async handleMessage(J,Y){let K=JSON.parse(Y);if(K.type==="subscribe"){let Z=Object.entries(this.channels).sort(([X],[Q])=>X.length-Q.length);for(let[X,Q]of Z){let W=new URLPattern({pathname:X});if(W.test({pathname:K.topic})){let z=W.exec({pathname:K.topic})?.pathname.groups,$=new Q;if(await $.subscribe.call($,z))J.subscribe(K.topic);break}}}if(K.type==="broadcast")J.publish(K.topic,JSON.stringify({topic:K.topic,data:K.payload}));if(K.type==="unsubscribe")J.unsubscribe(K.topic)}run(J,Y){let K=J.get("Cookie"),Z=new Map;if(K){let X=K.split(";");for(let Q of X){let[W,z]=Q.split("=");Z.set(W.trim(),z.trim())}}this.context.run({headers:J,cookies:Z},Y)}}class A8 extends k0{static getFacadeAccessor(){return L6}static channel(J,Y){let K=this.getFacadeRoot(),Z=K.channels[J];if(!Z)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Z;return{publish:(Q,W=!1)=>{let z=i0(J,Y);K.publish(z,JSON.stringify({topic:z,data:X.publish(Q)}),W)}}}}class f1 extends k0{static getFacadeAccessor(){return g0}static async user(){let J=U0.getStore(),Y=A8.getFacadeRoot().context.getStore(),K="",Z="";if(J?.req)K=J.req.cookies.get("access_token"),Z=J.req.headers.get("User-Agent");if(Y?.cookies)Z=Y.headers.get("User-Agent"),K=Y.cookies.get("access_token");let X=J?.user;if(!X)X=(await this.getFacadeRoot().getSession(K,Z))?.user,J?.setUser(X);if(X)return X;throw new b4}static async guard(J){let Y=await f1.user();if(!Y)throw new B8;try{if(!await J(Y))throw new B8}catch(K){throw new B8}}static async guardSafe(J){let Y=await f1.user();if(!Y)return!1;try{return await J(Y)}catch(K){return!1}}static async authenticate(J){return await this.getFacadeRoot().authenticate(J)}static async createMagicLink(J){return await this.getFacadeRoot().createMagicLinkToken(J)}}class B5 extends k0{static getFacadeAccessor(){return p0}static getSupportedLocales(){return this.getFacadeRoot().supportedLocales}static getDefaultLocale(){return this.getFacadeRoot().defaultLocale}static locale(){let J=this.getFacadeRoot(),Y=U0.getStore();if(Y)return Y.locale??J.detectLocale(Y.req);return J.defaultLocale}static setLocale(J=B5.locale()){let Y=this.getFacadeRoot(),K=J;if(!Y.supportedLocales.includes(J))K=Y.defaultLocale;let Z=U0.getStore();return Z.setCookie("i18n-locale",K,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Z.setLocale(K),K}}import hK from"sharp";import{Buffer as xK}from"buffer";class N6{async read(J){let Y=typeof J==="string"?{name:J}:J,K=await this.fetch({name:Y.name,bucket:Y.bucket});if(!K.ok)throw new G5(Y.name);let Z=K.headers.get("Content-Type")??"application/octet-stream",X=K.headers.get("ETag")??void 0,Q=K.headers.get("Last-Modified"),W=Q?new Date(Q):void 0;if(Y.range){let w=await K.blob();return{body:w,start:0,end:w.size-1,total:w.size,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}let z=Number(K.headers.get("Content-Length")),$=Number.isFinite(z)?z:0;return{body:K.body,start:0,end:$-1,total:$,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}async size(J){let Y=typeof J==="string"?J:J.name,K=typeof J==="string"?void 0:J.bucket,Z=await this.fetch({name:Y,bucket:K});if(!Z.ok)throw new G5(Y);let X=Number(Z.headers.get("Content-Length"));if(Number.isFinite(X))return await Z.body?.cancel(),X;return(await Z.blob()).size}}import{readdir as gK}from"fs/promises";class j6 extends N6{folderPath;constructor(J=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=J}async put(J){let Y,K;if(J instanceof Blob)Y=J,K=`${Bun.randomUUIDv7()}.${J.type.split("/")[1].split(";")[0]}`;else Y=J.body,K=J.name;let Z=Y instanceof Buffer?Y:Y instanceof Blob||Y instanceof File?Buffer.from(await Y.arrayBuffer()):"",X=`${this.folderPath}/${K}`;return await Bun.write(X,Z),K}async fetch(J){let Y=process.env.BUCKET_NAME,K;if(typeof J==="string")K=J;else Y=J.bucket??Y,K=J.name;if(!K)throw Error("Object name has to be specified");let Z=`${this.folderPath}/${K}`,X=Bun.file(Z),Q=Bun.file(Z).stream(),W=new Date(X.lastModified).toUTCString();return new Response(Q,{headers:{"Content-Type":X.type,"Content-Length":String(X.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":W}})}async read(J){let Y=typeof J==="string"?{name:J}:J,{name:K,range:Z=null}=Y;if(!K)throw Error("Object name has to be specified");let X=Bun.file(`${this.folderPath}/${K}`);if(!await X.exists())throw new G5(K);let Q=X.size,W=Z?f4(Z,Q):null;if(Z&&!W)throw new m4(Q);let z=W?.start??0,$=W?W.end:Q-1;return{body:W?X.slice(z,$+1):X,start:z,end:$,total:Q,partial:Boolean(W),type:X.type||"application/octet-stream",lastModified:new Date(X.lastModified),name:K}}async size(J){let Y=typeof J==="string"?J:J.name,K=Bun.file(`${this.folderPath}/${Y}`);if(!await K.exists())throw new G5(Y);return K.size}async list(){return await gK(this.folderPath)}}function X3(J){return J}function d4(){return{driver:new j6}}class q6{static token="filesystem";driver;constructor(J={}){this.driver=J.driver??d4().driver}}class c4 extends k0{static getFacadeAccessor(){return q6}static async put(J){return this.getFacadeRoot().driver.put(J)}static async metadata(J){let Y=xK.from(await J.arrayBuffer());try{return await hK(Y).metadata()}catch{return{}}}static async fetch(J){return this.getFacadeRoot().driver.fetch(J)}static async read(J,Y={}){let K=typeof J==="string"?{name:J}:{...J},Z="range"in Y?Y.range??null:K.range!==void 0?K.range:U0.getStore()?.rangeRequest??null;return this.getFacadeRoot().driver.read({...K,range:Z})}static list(J){return this.getFacadeRoot().driver.list(J)}static delete(){}}function u4(J){return Object.fromEntries(Object.entries(J).filter(([,Y])=>{return Y!==null&&Y!==void 0}))}var bK=50;class O5{fetcher;entries=new Map;settleListener=null;failListener=null;shellAt=null;settledBacklog=[];shipped=new Set;requestStartedAt=performance.now();renderStartedAt=null;discoveryHintsMuted=!1;constructor(J){this.fetcher=J}elapsed(){return Math.round(performance.now()-this.requestStartedAt)}keyFor(J,Y){return[J,Y].filter((K)=>K.length>0).join("?")}markRenderStart(){if(this.renderStartedAt===null)this.renderStartedAt=performance.now()}markShell(){if(this.shellAt===null)this.shellAt=this.elapsed()}summarize(J){let Y=this.elapsed();return{shellAt:this.shellAt??Y,settledAt:Y,aborted:J,queries:Array.from(this.entries.values(),(K)=>({path:K.path,variantKey:K.variantKey,startedAt:K.startedAt,settledAt:K.settledAt,status:K.status,source:K.source}))}}onQueryFail(J){this.failListener=J}muteDiscoveryHints(){this.discoveryHintsMuted=!0}maybeLogLateDiscovery(J){if(!J.lateBy||this.discoveryHintsMuted)return;if(J.status!=="resolved")return;if(Bun.env.NODE_ENV==="production")return;let Y="";try{let X=JSON.stringify(J.data)?.length??0;Y=X>=1024?`${(X/1024).toFixed(1)} kB`:`${X} B`}catch{Y="an unserializable payload"}let K=(J.settledAt??0)-J.startedAt,Z=J.variantKey?`, { search: ${JSON.stringify(Object.fromEntries(new URLSearchParams(J.variantKey)))} }`:"";console.warn(`[gemi] useQuery("${J.patternPath}") was discovered ${J.lateBy}ms into the `+`server render \u2014 under a suspended segment, so its fetch (${K}ms, resolved ${Y}) could not overlap the others. It still streamed. If the query belongs on this route, \`Query.prefetch("${J.patternPath}"${Z})\` in the view `+"handler starts it at request time \u2014 but note prefetched data is also re-fetched and "+`streamed into every client-side navigation payload for the route, even when the client already holds it, so weigh that bandwidth against the ${Y}. If the data is only needed conditionally (a closed popover, a hidden tab), \`{ lazy: true }\` + \`trigger()\` avoids running it here at all. \`Query.noPrefetch()\` in the handler marks the omission intentional and silences this hint for the route.`)}read(J,Y){return this.entries.get(this.keyFor(J,Y))}ensure(J,Y={},K="render"){let Z=Y.params??{},X=new URLSearchParams(u4(Y.search??{}));X.delete("json"),X.sort();let Q=i0(J,Z),W=X.toString(),z=this.keyFor(Q,W),$=this.entries.get(z);if($)return $;let w;if(K==="render"&&this.renderStartedAt!==null){let A=Math.round(performance.now()-this.renderStartedAt);if(A>bK)w=A}let U,H=new Promise((A)=>{U=A}),V={path:Q,patternPath:J,variantKey:W,lateBy:w,status:"pending",promise:H,source:K,startedAt:this.elapsed()};return this.entries.set(z,V),this.fetcher(J,Z,X).then((A)=>{V.status="resolved",V.data=A},(A)=>{V.status="rejected",V.error=A}).then(()=>{if(V.settledAt=this.elapsed(),this.maybeLogLateDiscovery(V),V.status==="rejected"&&this.failListener)this.failListener(V);if(this.settleListener)this.settleListener(V);else this.settledBacklog.push(V);U()}),V}async allSettled(){let J=0;while(J!==this.entries.size)J=this.entries.size,await Promise.all(Array.from(this.entries.values(),(Y)=>Y.promise))}snapshotResolved(){let J={};for(let[Y,K]of this.entries){if(K.status!=="resolved")continue;this.shipped.add(Y),J[K.path]??={},J[K.path][K.variantKey]=K.data}return J}onSettle(J){this.settleListener=(K)=>{if(this.shipped.has(this.keyFor(K.path,K.variantKey)))return;J(K)};let Y=this.settledBacklog;this.settledBacklog=[];for(let K of Y)this.settleListener(K)}}class v5 extends Error{path;variantKey;status;body;constructor(J,Y,K,Z){super(typeof Z?.message==="string"?Z.message:`Request to /api${J} failed with status ${K}`);this.path=J;this.variantKey=Y;this.status=K;this.body=Z;this.name="QueryError"}}class E6 extends G0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class i4 extends G0{schema={email:{required:"Email is required",email:"Invalid email"}}}class n4 extends G0{schema={password:{required:"Password is required",password:"Invalid password"}}}class h0 extends l4{async me(){let J=await f1.user();if(!J)throw new p4;return J}async verifyEmail(J=new G0){let Y=await J.input(),{userProvider:K}=X0(g0),Z=await K.findUserByVerificationToken(Y.get("token"));if(!Z)return{email:null};return await K.verifyUser(Z.email),{email:Z.email}}async signInWithMagicLink(J=new G0){let Y=X0(g0),{userProvider:K}=Y,Z=J.search.get("token"),X=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await K.findUserMagicLinkToken({email:X,token:Z})}catch($){return console.log($),{error:JSON.stringify($)}}if(!Q)return{error:"Invalid token"};await K.verifyUser(X),await K.deleteMagicLinkToken(X);let W=await Y.createOrUpdateSession({email:X}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn(W,J.search.toJSON()),{session:W}}async signInWithPinV2(J=new G0){let Y=X0(g0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSessionV2({email:W}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),$}async signInWithPin(J=new G0){let Y=X0(g0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSession({email:W}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),{session:$}}async signInV2(J=new E6){let Y=new URL(J.rawRequest.url),K=await J.input(),{email:Z,password:X}=K.toJSON(),Q=Z.toLowerCase().trim(),W=X0(g0),z=await W.userProvider.findUserByEmailAddress(Q,W.config.verifyEmail);if(!z)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await W.config.verifyPassword(X,z.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let w=await W.createOrUpdateSessionV2({email:z.email,id:z.id});J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!Y.origin.includes("localhost"),httpOnly:!0}),await W.config.onSignIn(z,J.search.toJSON());let{password:U,...H}=z;return H}async signIn(J=new E6){let Y=await J.input(),{email:K,password:Z}=Y.toJSON(),X=K.toLowerCase().trim(),Q=X0(g0),W=await Q.userProvider.findUserByEmailAddress(X,Q.config.verifyEmail);if(!W)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await Q.config.verifyPassword(Z,W.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let $=await Q.createOrUpdateSession({email:W.email,id:W.id}),w=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Q.config.onSignIn(W,J.search.toJSON());let{password:U,...H}=W;return H}async signUp(){let J=X0(g0),{userProvider:Y,config:K}=J,Z=new K.signUpRequest,X=await Z.input(),{email:Q,password:W,name:z,invitationId:$}=X.toJSON(),w=Q.toLowerCase().trim();if(await Y.findUserByEmailAddress(w,!1))throw new Y1({email:["Email address already exists"]});let H=await K.hashPassword(W),V=X0(p0).detectLocale(Z),A;if($)A=await Y.findInvitation($,w);let M,B="";if(A)M=await Y.transaction(async()=>{await Y.deleteInvitationById($);let O=await Y.createUser({email:w,name:z,password:H,emailVerifiedAt:new Date,locale:V});return await Y.createAccount({organizationId:A.organizationId,userId:O.id,organizationRole:A.role}),await K.onUserCreated(O),O});else B=await K.generateEmailVerificationToken(w),M=await Y.transaction(async()=>{let O=await Y.createUser({email:w,name:z,password:H,verificationToken:B,locale:V});return await K.onUserCreated(O),O});return await K.onSignUp(M,B,Z.search.toJSON()),M}async signOut(J=new G0){let Y=J.cookies.get("access_token"),K=await f1.user(),{userProvider:Z,config:X}=X0(g0);await Z.deleteSession({token:Y});let Q=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Q.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(K),{}}async forgotPassword(J=new i4){let K=(await J.input()).get("email").toLowerCase().trim(),{userProvider:Z,config:X}=X0(g0),Q=await Z.findUserByEmailAddress(K,X.verifyEmail);if(!Q)return{};let W=await X.generateForgotPasswordToken(Q);return await Z.createPasswordResetToken({user:Q,token:W}),await X.onForgotPassword(Q,W),{}}async resetPassword(J=new n4){let{userProvider:Y,config:K}=X0(g0),Z=await J.input(),{password:X,token:Q}=Z.toJSON(),W=await Y.findPasswordResetToken({token:Q});if(!W)throw new Y1({token:["Invalid token"]});if(k5.Instant.from(W.createdAt.toISOString()).add({hours:24}).until(k5.Now.instant()).sign>=0)throw new Y1({token:["Token expired"]});await Y.deletePasswordResetToken({token:Q});let $=await Y.findUserByEmailAddress(W.user.email,K.verifyEmail);if(!$)throw new Y1({email:["User not found"]});let w=await K.hashPassword(X);return await Y.updateUserPassword({id:$.id,password:w}),await Y.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new G0){let{userProvider:Y,config:K}=X0(g0),Z=await f1.user(),X=await J.input(),{oldPassword:Q,newPassword:W}=X.toJSON(),{password:z}=await Y.findUserByEmailAddress(Z.email,K.verifyEmail);if(!await K.verifyPassword(Q,z))throw new Y1({oldPassword:["Incorrect password"]});let w=await K.hashPassword(W);return await Y.updateUserPassword({id:Z.id,password:w}),await Y.deleteAllUserSessions(Z.id),{}}async oauthRedirect(J=new G0){let{provider:Y}=J.params,K=X0(g0).config.oauthProviders[Y];if(!K)throw Error(`Invalid provider: ${Y}`);return{destination:await K.getRedirectUrl(J)}}async oauthCallback(J=new G0){let{provider:Y}=J.params,K=X0(g0),{userProvider:Z,config:X}=K,Q=X.oauthProviders[Y],{email:W,name:z}=await Q.onCallback(J);if(!W)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await Z.findUserByEmailAddress(W,!1),w=X0(p0).detectLocale(J),U="signin";if(!$)U="signup",$=await Z.transaction(async()=>{let A=await Z.createUser({email:W,name:z,locale:w,emailVerifiedAt:new Date});return await Z.createSocialAccount({provider:Y,userId:A.id,email:W,username:z,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""}),await X.onUserCreated(A),A});let H=await K.createOrUpdateSessionV2({email:$.email,id:$.id}),V=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",H.token,{secure:!V.origin.includes("localhost"),httpOnly:!0,expires:H.expiresAt}),U==="signup")await X.onSignUp($,"",J.search.toJSON());else await X.onSignIn($,J.search.toJSON());return{session:H}}async createMagicLinkToken(J=new G0){let K=(await J.input()).get("email").toLowerCase().trim(),Z=X0(g0),{user:X,pin:Q,token:W}=await Z.createMagicLinkToken(K);if(X)return await Z.config.onMagicLinkCreated(X,{email:K,pin:Q,token:W}),{email:K};return{email:null}}}class o4 extends F6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[h0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[h0,"oauthCallback"])}}class _6 extends F6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[h0,"signInWithMagicLink"]),"/oauth":o4}}class I6 extends N1{middlewares=["cache:private"];routes={"/sign-in":this.post(h0,"signIn"),"/sign-in-v2":this.post(h0,"signInV2"),"/sign-up":this.post(h0,"signUp"),"/sign-out":this.post(h0,"signOut"),"/forgot-password":this.post(h0,"forgotPassword"),"/reset-password":this.post(h0,"resetPassword"),"/change-password":this.post(h0,"changePassword"),"/verify-email":this.post(h0,"verifyEmail"),"/me":this.get(h0,"me").middleware(["auth"]),"/magic-link":this.post(h0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(h0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(h0,"signInWithPinV2")}}class D6 extends N1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let Y=new G0().params.locale;return await X0(p0).onLocaleChange(Y),{locale:Y}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new G0,Y=`/${J.params.scope??""}`,K=J.params.locale,Z=X0(p0),X=K??Z.detectLocale(J),Q=Z.getPageTranslations(X,Y);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Q}})}}import fK from"sharp";class R6{}class C6 extends R6{async resize(J,Y){let{height:K,width:Z,quality:X,fit:Q}=Y;return await fK(J).resize(Z>0?Z:void 0,K>0?K:void 0,{fit:Q}).webp({quality:X>0?X:80,force:!0}).toBuffer()}}function c3(J){return J}function r4(){return{driver:new C6}}class T6 extends N1{routes={"/resize":this.file(async()=>{let J=new G0,Y=new URL(J.rawRequest.url),K=Y.searchParams.get("url"),Z=Number(Y.searchParams.get("w")),X=Number(Y.searchParams.get("h")),Q=Y.searchParams.get("fit")??"cover",W=Number(Y.searchParams.get("q"));if(!K)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let $=`${K.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${K}`,w=await fetch($);if(!w.ok)return new Response(JSON.stringify({error:"Image not found",info:$}),{headers:{"Content-Type":"application/json"},status:404});let U=Buffer.from(await w.arrayBuffer()),H=await X0(s4).resize(U,{height:X,width:Z,fit:Q,quality:W});w.headers.delete("Content-Type"),w.headers.delete("Content-Length");let V=new Headers(w.headers);return V.set("Content-Type","image/webp"),V.set("Content-Length",`${H.byteLength}`),new Response(new Uint8Array(H),{headers:V})})}}class s4{static token="image";driver;constructor(J={}){this.driver=J.driver??r4().driver}resize(J,Y){return this.driver.resize(J,Y)}}import{mkdir as P6,readdir as mK,access as dK}from"fs/promises";async function S6(J){try{return await dK(J),!0}catch{return!1}}class y5{config;static token="log";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;bootPromise=null;currentLogFilePath;constructor(J){this.config=J}boot(){if(!this.bootPromise)this.bootPromise=this.createStorage().then(()=>{this.isReady=!0});return this.bootPromise}async createStorage(){if(!process.env.ROOT_DIR)return;if(!await S6(`${process.env.ROOT_DIR}/storage`))await P6(`${process.env.ROOT_DIR}/storage`);if(!await S6(this.logsDirPath))await P6(this.logsDirPath);await this.newLogFile()}async newLogFile(){if(!await S6(this.logsDirPath))await P6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let K=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.config.onLogFileClosed(K),this.fileSize=0,this.writerSize=0}let Y=(await mK(this.logsDirPath)).sort().reverse()[0];if(Y){let K=Bun.file(`${this.logsDirPath}/${Y}`);if(K.size<this.config.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${Y}`,this.writer=K.writer(),this.writer.write(await K.text()),this.writer.write(`
|
|
11
|
+
*/var pQ=/["'&<>]/;L2.exports=iQ;function iQ(J){var Y=""+J,K=pQ.exec(Y);if(!K)return Y;var Z,X="",Q=0,W=0;for(Q=K.index;Q<Y.length;Q++){switch(Y.charCodeAt(Q)){case 34:Z=""";break;case 38:Z="&";break;case 39:Z="'";break;case 60:Z="<";break;case 62:Z=">";break;default:continue}if(W!==Q)X+=Y.substring(W,Q);W=Q+1,X+=Z}return W!==Q?X+Y.substring(W,Q):X}});class k0{static getFacadeAccessor(){throw Error(`Facade [${this.name}] does not implement getFacadeAccessor().`)}static getFacadeRoot(){return X0(this.getFacadeAccessor())}}import{AsyncLocalStorage as bK}from"async_hooks";class j6{config;static token="broadcast";publishCb;context=new bK;constructor(J){this.config=J}get channels(){return this.config.channels}onPublish(J){this.publishCb=J}publish(...J){let[Y,K,Z]=J;this.publishCb(Y,K,Z)}async handleMessage(J,Y){let K=JSON.parse(Y);if(K.type==="subscribe"){let Z=Object.entries(this.channels).sort(([X],[Q])=>X.length-Q.length);for(let[X,Q]of Z){let W=new URLPattern({pathname:X});if(W.test({pathname:K.topic})){let z=W.exec({pathname:K.topic})?.pathname.groups,$=new Q;if(await $.subscribe.call($,z))J.subscribe(K.topic);break}}}if(K.type==="broadcast")J.publish(K.topic,JSON.stringify({topic:K.topic,data:K.payload}));if(K.type==="unsubscribe")J.unsubscribe(K.topic)}run(J,Y){let K=J.get("Cookie"),Z=new Map;if(K){let X=K.split(";");for(let Q of X){let[W,z]=Q.split("=");Z.set(W.trim(),z.trim())}}this.context.run({headers:J,cookies:Z},Y)}}class A8 extends k0{static getFacadeAccessor(){return j6}static channel(J,Y){let K=this.getFacadeRoot(),Z=K.channels[J];if(!Z)return console.error(`Channel ${J} not found`),{publish:()=>{}};let X=new Z;return{publish:(Q,W=!1)=>{let z=i0(J,Y);K.publish(z,JSON.stringify({topic:z,data:X.publish(Q)}),W)}}}}class f1 extends k0{static getFacadeAccessor(){return y0}static async user(){let J=U0.getStore(),Y=A8.getFacadeRoot().context.getStore(),K="",Z="";if(J?.req)K=J.req.cookies.get("access_token"),Z=J.req.headers.get("User-Agent");if(Y?.cookies)Z=Y.headers.get("User-Agent"),K=Y.cookies.get("access_token");let X=J?.user;if(!X)X=(await this.getFacadeRoot().getSession(K,Z))?.user,J?.setUser(X);if(X)return X;throw new f4}static async guard(J){let Y=await f1.user();if(!Y)throw new B8;try{if(!await J(Y))throw new B8}catch(K){throw new B8}}static async guardSafe(J){let Y=await f1.user();if(!Y)return!1;try{return await J(Y)}catch(K){return!1}}static async authenticate(J){return await this.getFacadeRoot().authenticate(J)}static async createMagicLink(J){return await this.getFacadeRoot().createMagicLinkToken(J)}}class B5 extends k0{static getFacadeAccessor(){return p0}static getSupportedLocales(){return this.getFacadeRoot().supportedLocales}static getDefaultLocale(){return this.getFacadeRoot().defaultLocale}static locale(){let J=this.getFacadeRoot(),Y=U0.getStore();if(Y)return Y.locale??J.detectLocale(Y.req);return J.defaultLocale}static setLocale(J=B5.locale()){let Y=this.getFacadeRoot(),K=J;if(!Y.supportedLocales.includes(J))K=Y.defaultLocale;let Z=U0.getStore();return Z.setCookie("i18n-locale",K,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Z.setLocale(K),K}}import mK from"sharp";import{Buffer as dK}from"buffer";class N6{async read(J){let Y=typeof J==="string"?{name:J}:J,K=await this.fetch({name:Y.name,bucket:Y.bucket});if(!K.ok)throw new G5(Y.name);let Z=K.headers.get("Content-Type")??"application/octet-stream",X=K.headers.get("ETag")??void 0,Q=K.headers.get("Last-Modified"),W=Q?new Date(Q):void 0;if(Y.range){let w=await K.blob();return{body:w,start:0,end:w.size-1,total:w.size,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}let z=Number(K.headers.get("Content-Length")),$=Number.isFinite(z)?z:0;return{body:K.body,start:0,end:$-1,total:$,partial:!1,type:Z,etag:X,lastModified:W,name:Y.name}}async size(J){let Y=typeof J==="string"?J:J.name,K=typeof J==="string"?void 0:J.bucket,Z=await this.fetch({name:Y,bucket:K});if(!Z.ok)throw new G5(Y);let X=Number(Z.headers.get("Content-Length"));if(Number.isFinite(X))return await Z.body?.cancel(),X;return(await Z.blob()).size}}import{readdir as fK}from"fs/promises";class q6 extends N6{folderPath;constructor(J=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=J}async put(J){let Y,K;if(J instanceof Blob)Y=J,K=`${Bun.randomUUIDv7()}.${J.type.split("/")[1].split(";")[0]}`;else Y=J.body,K=J.name;let Z=Y instanceof Buffer?Y:Y instanceof Blob||Y instanceof File?Buffer.from(await Y.arrayBuffer()):"",X=`${this.folderPath}/${K}`;return await Bun.write(X,Z),K}async fetch(J){let Y=process.env.BUCKET_NAME,K;if(typeof J==="string")K=J;else Y=J.bucket??Y,K=J.name;if(!K)throw Error("Object name has to be specified");let Z=`${this.folderPath}/${K}`,X=Bun.file(Z),Q=Bun.file(Z).stream(),W=new Date(X.lastModified).toUTCString();return new Response(Q,{headers:{"Content-Type":X.type,"Content-Length":String(X.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":W}})}async read(J){let Y=typeof J==="string"?{name:J}:J,{name:K,range:Z=null}=Y;if(!K)throw Error("Object name has to be specified");let X=Bun.file(`${this.folderPath}/${K}`);if(!await X.exists())throw new G5(K);let Q=X.size,W=Z?m4(Z,Q):null;if(Z&&!W)throw new d4(Q);let z=W?.start??0,$=W?W.end:Q-1;return{body:W?X.slice(z,$+1):X,start:z,end:$,total:Q,partial:Boolean(W),type:X.type||"application/octet-stream",lastModified:new Date(X.lastModified),name:K}}async size(J){let Y=typeof J==="string"?J:J.name,K=Bun.file(`${this.folderPath}/${Y}`);if(!await K.exists())throw new G5(Y);return K.size}async list(){return await fK(this.folderPath)}}function UA(J){return J}function u4(){return{driver:new q6}}class E6{static token="filesystem";driver;constructor(J={}){this.driver=J.driver??u4().driver}}class c4 extends k0{static getFacadeAccessor(){return E6}static async put(J){return this.getFacadeRoot().driver.put(J)}static async metadata(J){let Y=dK.from(await J.arrayBuffer());try{return await mK(Y).metadata()}catch{return{}}}static async fetch(J){return this.getFacadeRoot().driver.fetch(J)}static async read(J,Y={}){let K=typeof J==="string"?{name:J}:{...J},Z="range"in Y?Y.range??null:K.range!==void 0?K.range:U0.getStore()?.rangeRequest??null;return this.getFacadeRoot().driver.read({...K,range:Z})}static list(J){return this.getFacadeRoot().driver.list(J)}static delete(){}}function l4(J){return Object.fromEntries(Object.entries(J).filter(([,Y])=>{return Y!==null&&Y!==void 0}))}var uK=50;class O5{fetcher;entries=new Map;settleListener=null;failListener=null;shellAt=null;settledBacklog=[];shipped=new Set;requestStartedAt=performance.now();renderStartedAt=null;discoveryHintsMuted=!1;constructor(J){this.fetcher=J}elapsed(){return Math.round(performance.now()-this.requestStartedAt)}keyFor(J,Y){return[J,Y].filter((K)=>K.length>0).join("?")}markRenderStart(){if(this.renderStartedAt===null)this.renderStartedAt=performance.now()}markShell(){if(this.shellAt===null)this.shellAt=this.elapsed()}summarize(J){let Y=this.elapsed();return{shellAt:this.shellAt??Y,settledAt:Y,aborted:J,queries:Array.from(this.entries.values(),(K)=>({path:K.path,variantKey:K.variantKey,startedAt:K.startedAt,settledAt:K.settledAt,status:K.status,source:K.source}))}}onQueryFail(J){this.failListener=J}muteDiscoveryHints(){this.discoveryHintsMuted=!0}maybeLogLateDiscovery(J){if(!J.lateBy||this.discoveryHintsMuted)return;if(J.status!=="resolved")return;if(Bun.env.NODE_ENV==="production")return;let Y="";try{let X=JSON.stringify(J.data)?.length??0;Y=X>=1024?`${(X/1024).toFixed(1)} kB`:`${X} B`}catch{Y="an unserializable payload"}let K=(J.settledAt??0)-J.startedAt,Z=J.variantKey?`, { search: ${JSON.stringify(Object.fromEntries(new URLSearchParams(J.variantKey)))} }`:"";console.warn(`[gemi] useQuery("${J.patternPath}") was discovered ${J.lateBy}ms into the `+`server render \u2014 under a suspended segment, so its fetch (${K}ms, resolved ${Y}) could not overlap the others. It still streamed. If the query belongs on this route, \`Query.prefetch("${J.patternPath}"${Z})\` in the view `+"handler starts it at request time \u2014 but note prefetched data is also re-fetched and "+`streamed into every client-side navigation payload for the route, even when the client already holds it, so weigh that bandwidth against the ${Y}. If the data is only needed conditionally (a closed popover, a hidden tab), \`{ lazy: true }\` + \`trigger()\` avoids running it here at all. \`Query.noPrefetch()\` in the handler marks the omission intentional and silences this hint for the route.`)}read(J,Y){return this.entries.get(this.keyFor(J,Y))}ensure(J,Y={},K="render"){let Z=Y.params??{},X=new URLSearchParams(l4(Y.search??{}));X.delete("json"),X.sort();let Q=i0(J,Z),W=X.toString(),z=this.keyFor(Q,W),$=this.entries.get(z);if($)return $;let w;if(K==="render"&&this.renderStartedAt!==null){let A=Math.round(performance.now()-this.renderStartedAt);if(A>uK)w=A}let U,H=new Promise((A)=>{U=A}),V={path:Q,patternPath:J,variantKey:W,lateBy:w,status:"pending",promise:H,source:K,startedAt:this.elapsed()};return this.entries.set(z,V),this.fetcher(J,Z,X).then((A)=>{V.status="resolved",V.data=A},(A)=>{V.status="rejected",V.error=A}).then(()=>{if(V.settledAt=this.elapsed(),this.maybeLogLateDiscovery(V),V.status==="rejected"&&this.failListener)this.failListener(V);if(this.settleListener)this.settleListener(V);else this.settledBacklog.push(V);U()}),V}async allSettled(){let J=0;while(J!==this.entries.size)J=this.entries.size,await Promise.all(Array.from(this.entries.values(),(Y)=>Y.promise))}snapshotResolved(){let J={};for(let[Y,K]of this.entries){if(K.status!=="resolved")continue;this.shipped.add(Y),J[K.path]??={},J[K.path][K.variantKey]=K.data}return J}onSettle(J){this.settleListener=(K)=>{if(this.shipped.has(this.keyFor(K.path,K.variantKey)))return;J(K)};let Y=this.settledBacklog;this.settledBacklog=[];for(let K of Y)this.settleListener(K)}}class v5 extends Error{path;variantKey;status;body;constructor(J,Y,K,Z){super(typeof Z?.message==="string"?Z.message:`Request to /api${J} failed with status ${K}`);this.path=J;this.variantKey=Y;this.status=K;this.body=Z;this.name="QueryError"}}class F6 extends G0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class n4 extends G0{schema={email:{required:"Email is required",email:"Invalid email"}}}class o4 extends G0{schema={password:{required:"Password is required",password:"Invalid password"}}}class h0 extends p4{async me(){let J=await f1.user();if(!J)throw new i4;return J}async verifyEmail(J=new G0){let Y=await J.input(),{userProvider:K}=X0(y0),Z=await K.findUserByVerificationToken(Y.get("token"));if(!Z)return{email:null};return await K.verifyUser(Z.email),{email:Z.email}}async signInWithMagicLink(J=new G0){let Y=X0(y0),{userProvider:K}=Y,Z=J.search.get("token"),X=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await K.findUserMagicLinkToken({email:X,token:Z})}catch($){return console.log($),{error:JSON.stringify($)}}if(!Q)return{error:"Invalid token"};await K.verifyUser(X),await K.deleteMagicLinkToken(X);let W=await Y.createOrUpdateSession({email:X}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn(W,J.search.toJSON()),{session:W}}async signInWithPinV2(J=new G0){let Y=X0(y0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSessionV2({email:W}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),$}async signInWithPin(J=new G0){let Y=X0(y0),{userProvider:K}=Y,Z=await J.input(),{email:X,pin:Q}=Z.toJSON(),W=X.toLowerCase().trim();if(!await K.findUserMagicLinkToken({email:W,pin:Q}))throw new Y1({pin:["Invalid pin"]});await K.deleteMagicLinkToken(W),await K.verifyUser(W);let $=await Y.createOrUpdateSession({email:W}),w=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Y.config.onSignIn($,J.search.toJSON()),{session:$}}async signInV2(J=new F6){let Y=new URL(J.rawRequest.url),K=await J.input(),{email:Z,password:X}=K.toJSON(),Q=Z.toLowerCase().trim(),W=X0(y0),z=await W.userProvider.findUserByEmailAddress(Q,W.config.verifyEmail);if(!z)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await W.config.verifyPassword(X,z.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let w=await W.createOrUpdateSessionV2({email:z.email,id:z.id});J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!Y.origin.includes("localhost"),httpOnly:!0}),await W.config.onSignIn(z,J.search.toJSON());let{password:U,...H}=z;return H}async signIn(J=new F6){let Y=await J.input(),{email:K,password:Z}=Y.toJSON(),X=K.toLowerCase().trim(),Q=X0(y0),W=await Q.userProvider.findUserByEmailAddress(X,Q.config.verifyEmail);if(!W)throw new Y1({invalid_credentials:["Invalid credentials"]});if(!await Q.config.verifyPassword(Z,W.password))throw new Y1({invalid_credentials:["Invalid credentials"]});let $=await Q.createOrUpdateSession({email:W.email,id:W.id}),w=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!w.origin.includes("localhost"),httpOnly:!0}),await Q.config.onSignIn(W,J.search.toJSON());let{password:U,...H}=W;return H}async signUp(){let J=X0(y0),{userProvider:Y,config:K}=J,Z=new K.signUpRequest,X=await Z.input(),{email:Q,password:W,name:z,invitationId:$}=X.toJSON(),w=Q.toLowerCase().trim();if(await Y.findUserByEmailAddress(w,!1))throw new Y1({email:["Email address already exists"]});let H=await K.hashPassword(W),V=X0(p0).detectLocale(Z),A;if($)A=await Y.findInvitation($,w);let O,B="";if(A)O=await Y.transaction(async()=>{await Y.deleteInvitationById($);let M=await Y.createUser({email:w,name:z,password:H,emailVerifiedAt:new Date,locale:V});return await Y.createAccount({organizationId:A.organizationId,userId:M.id,organizationRole:A.role}),await K.onUserCreated(M),M});else B=await K.generateEmailVerificationToken(w),O=await Y.transaction(async()=>{let M=await Y.createUser({email:w,name:z,password:H,verificationToken:B,locale:V});return await K.onUserCreated(M),M});return await K.onSignUp(O,B,Z.search.toJSON()),O}async signOut(J=new G0){let Y=J.cookies.get("access_token"),K=await f1.user(),{userProvider:Z,config:X}=X0(y0);await Z.deleteSession({token:Y});let Q=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Q.origin.includes("localhost"),httpOnly:!0}),await X.onSignOut(K),{}}async forgotPassword(J=new n4){let K=(await J.input()).get("email").toLowerCase().trim(),{userProvider:Z,config:X}=X0(y0),Q=await Z.findUserByEmailAddress(K,X.verifyEmail);if(!Q)return{};let W=await X.generateForgotPasswordToken(Q);return await Z.createPasswordResetToken({user:Q,token:W}),await X.onForgotPassword(Q,W),{}}async resetPassword(J=new o4){let{userProvider:Y,config:K}=X0(y0),Z=await J.input(),{password:X,token:Q}=Z.toJSON(),W=await Y.findPasswordResetToken({token:Q});if(!W)throw new Y1({token:["Invalid token"]});if(k5.Instant.from(W.createdAt.toISOString()).add({hours:24}).until(k5.Now.instant()).sign>=0)throw new Y1({token:["Token expired"]});await Y.deletePasswordResetToken({token:Q});let $=await Y.findUserByEmailAddress(W.user.email,K.verifyEmail);if(!$)throw new Y1({email:["User not found"]});let w=await K.hashPassword(X);return await Y.updateUserPassword({id:$.id,password:w}),await Y.deleteAllUserSessions($.id),await K.onResetPassword($),{}}async changePassword(J=new G0){let{userProvider:Y,config:K}=X0(y0),Z=await f1.user(),X=await J.input(),{oldPassword:Q,newPassword:W}=X.toJSON(),{password:z}=await Y.findUserByEmailAddress(Z.email,K.verifyEmail);if(!await K.verifyPassword(Q,z))throw new Y1({oldPassword:["Incorrect password"]});let w=await K.hashPassword(W);return await Y.updateUserPassword({id:Z.id,password:w}),await Y.deleteAllUserSessions(Z.id),{}}async oauthRedirect(J=new G0){let{provider:Y}=J.params,K=X0(y0).config.oauthProviders[Y];if(!K)throw Error(`Invalid provider: ${Y}`);return{destination:await K.getRedirectUrl(J)}}async oauthCallback(J=new G0){let{provider:Y}=J.params,K=X0(y0),{userProvider:Z,config:X}=K,Q=X.oauthProviders[Y],{email:W,name:z}=await Q.onCallback(J);if(!W)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let $=await Z.findUserByEmailAddress(W,!1),w=X0(p0).detectLocale(J),U="signin";if(!$)U="signup",$=await Z.transaction(async()=>{let A=await Z.createUser({email:W,name:z,locale:w,emailVerifiedAt:new Date});return await Z.createSocialAccount({provider:Y,userId:A.id,email:W,username:z,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""}),await X.onUserCreated(A),A});let H=await K.createOrUpdateSessionV2({email:$.email,id:$.id}),V=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",H.token,{secure:!V.origin.includes("localhost"),httpOnly:!0,expires:H.expiresAt}),U==="signup")await X.onSignUp($,"",J.search.toJSON());else await X.onSignIn($,J.search.toJSON());return{session:H}}async createMagicLinkToken(J=new G0){let K=(await J.input()).get("email").toLowerCase().trim(),Z=X0(y0),{user:X,pin:Q,token:W}=await Z.createMagicLinkToken(K);if(X)return await Z.config.onMagicLinkCreated(X,{email:K,pin:Q,token:W}),{email:K};return{email:null}}}class r4 extends _6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[h0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[h0,"oauthCallback"])}}class I6 extends _6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[h0,"signInWithMagicLink"]),"/oauth":r4}}class D6 extends j1{middlewares=["cache:private"];routes={"/sign-in":this.post(h0,"signIn"),"/sign-in-v2":this.post(h0,"signInV2"),"/sign-up":this.post(h0,"signUp"),"/sign-out":this.post(h0,"signOut"),"/forgot-password":this.post(h0,"forgotPassword"),"/reset-password":this.post(h0,"resetPassword"),"/change-password":this.post(h0,"changePassword"),"/verify-email":this.post(h0,"verifyEmail"),"/me":this.get(h0,"me").middleware(["auth"]),"/magic-link":this.post(h0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(h0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(h0,"signInWithPinV2")}}class R6 extends j1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let Y=new G0().params.locale;return await X0(p0).onLocaleChange(Y),{locale:Y}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new G0,Y=`/${J.params.scope??""}`,K=J.params.locale,Z=X0(p0),X=K??Z.detectLocale(J),Q=Z.getPageTranslations(X,Y);return J.ctx().setCookie("i18n-locale",X,{expires:new Date(Date.now()+31536000000)}),{[X]:Q}})}}import cK from"sharp";class C6{}class T6 extends C6{async resize(J,Y){let{height:K,width:Z,quality:X,fit:Q}=Y;return await cK(J).resize(Z>0?Z:void 0,K>0?K:void 0,{fit:Q}).webp({quality:X>0?X:80,force:!0}).toBuffer()}}function oA(J){return J}function s4(){return{driver:new T6}}class P6 extends j1{routes={"/resize":this.file(async()=>{let J=new G0,Y=new URL(J.rawRequest.url),K=Y.searchParams.get("url"),Z=Number(Y.searchParams.get("w")),X=Number(Y.searchParams.get("h")),Q=Y.searchParams.get("fit")??"cover",W=Number(Y.searchParams.get("q"));if(!K)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let $=`${K.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${K}`,w=await fetch($);if(!w.ok)return new Response(JSON.stringify({error:"Image not found",info:$}),{headers:{"Content-Type":"application/json"},status:404});let U=Buffer.from(await w.arrayBuffer()),H=await X0(a4).resize(U,{height:X,width:Z,fit:Q,quality:W});w.headers.delete("Content-Type"),w.headers.delete("Content-Length");let V=new Headers(w.headers);return V.set("Content-Type","image/webp"),V.set("Content-Length",`${H.byteLength}`),new Response(new Uint8Array(H),{headers:V})})}}class a4{static token="image";driver;constructor(J={}){this.driver=J.driver??s4().driver}resize(J,Y){return this.driver.resize(J,Y)}}import{mkdir as S6,readdir as lK,access as pK}from"fs/promises";async function v6(J){try{return await pK(J),!0}catch{return!1}}class g5{config;static token="log";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;bootPromise=null;currentLogFilePath;constructor(J){this.config=J}boot(){if(!this.bootPromise)this.bootPromise=this.createStorage().then(()=>{this.isReady=!0});return this.bootPromise}async createStorage(){if(!process.env.ROOT_DIR)return;if(!await v6(`${process.env.ROOT_DIR}/storage`))await S6(`${process.env.ROOT_DIR}/storage`);if(!await v6(this.logsDirPath))await S6(this.logsDirPath);await this.newLogFile()}async newLogFile(){if(!await v6(this.logsDirPath))await S6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let K=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.config.onLogFileClosed(K),this.fileSize=0,this.writerSize=0}let Y=(await lK(this.logsDirPath)).sort().reverse()[0];if(Y){let K=Bun.file(`${this.logsDirPath}/${Y}`);if(K.size<this.config.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${Y}`,this.writer=K.writer(),this.writer.write(await K.text()),this.writer.write(`
|
|
12
12
|
`),this.writer.flush(),this.fileSize=K.size}if(!this.writer){let K=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${K}`;let Z=Bun.file(`${this.logsDirPath}/${K}`);this.writer=Z.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,Y,K={}){if(!this.isReady)await this.boot();let Z=U0.getStore(),X={};if(Z)X={url:Z.req.rawRequest.url,method:Z.req.rawRequest.method,headers:Z.req.rawRequest.headers,body:Z.req.rawRequest.body};let Q={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:Y,metadata:{...X,...K}},W="";try{W=JSON.stringify(Q)}catch(z){console.log("Error parsing log object",z)}this.writerSize+=W.length,this.fileSize+=W.length;try{this.writer.write(W),this.writer.write(`
|
|
13
|
-
`),this.config.onLogCreated(Q),this.tryFlush()}catch(z){console.error("Error writing log",z)}}async tryFlush(){if(this.fileSize>this.config.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.config.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class v6 extends N1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(X0(y5).currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function cK(J){let Y=new Map;for(let K of J)if(typeof K==="string"){let[Z,X=""]=K.split(":");if(Z.startsWith("-")){if(Y.has(Z.replace("-","")))Y.delete(Z.replace("-",""))}else Y.set(Z,X.split(",").filter(Boolean))}else Y.set(K,[]);return Y}class g5{config;static token="middleware";constructor(J){this.config=J}get aliases(){return this.config.aliases}runMiddleware(J){let Y=new G0;return Array.from(cK(J).entries()).map(([K,Z])=>{if(typeof K==="string"){let X=this.aliases[K];if(X){let Q=new X(Y);return()=>Q.run.call(Q,...Z)}}else{if(a4(K)){let X=new K(Y);return X.run.bind(X)}return K}}).filter(Boolean).reduce((K,Z)=>{return async()=>{return{...await K(),...await Z()}}},()=>Promise.resolve({}))()}}function QB(J){return J}function t4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function e4(){return{partialRendering:!0,onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{},onStreamComplete:()=>{}}}function uK(J){return"run"in J}function lK(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function pK(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function iK(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function nK(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function oK(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function k6(J,Y="",K=[]){let Z={};function X(Q,W,z,$){let w=Q==="/"?"":Q,U=Y==="/"?"":Y,H=(`${U}${w}`===""?"/":`${U}${w}`).replaceAll("//","/");if(!Z[H])Z[H]={};Z[H][W.toUpperCase()]={exec:z,middleware:[...K,...$]},Z[H].OPTIONS={exec:()=>{let A=new G0().ctx().headers;return new Response(null,{headers:A,status:204})},middleware:[]}}for(let[Q,W]of Object.entries(J)){if(nK(W)){let z=W;for(let $ of["GET","POST","PUT","DELETE"])X(Q,$,z.run.bind(z),[]);continue}if(uK(W)){let z=W,$=z.method,w=z.middlewares,U=z.run.bind(z);if(X(Q,$,U,w),oK(W))X(Q,"HEAD",U,w)}if(lK(W))for(let[z,$]of Object.entries(W)){let w=$.middlewares,U=$.run.bind($);X(Q,z,U,w)}if(iK(W)){let z=new W,$=k6(z.routes,`${Y}${Q}`,z.middlewares);for(let[w,U]of Object.entries($))Z[w.replaceAll("//","/")]=U}if(pK(W)){let{first:z,second:$}=W;for(let[w,U]of Object.entries(z)){let H=U.middlewares,V=U.run.bind(U),[A,...M]=Q.split("/").reverse();if(!A.startsWith(":"))throw Error("Resource route must end with a dynamic segment");X(M.reverse().join("/"),w,V,H)}for(let[w,U]of Object.entries($)){let H=U.middlewares,V=U.run.bind(U);X(Q,w,V,H)}}}return Object.fromEntries(Object.entries(Z).sort(([Q],[W])=>{let z=Q.split("/").length+Q.split(":").length,$=W.split("/").length+W.split(":").length;return z-$}))}var _7=w1(M7(),1),I7=w1(L7(),1),d6={};var $Z=5;var N7=12,zZ=13;var wZ=16,UZ=17;var HZ=22;var j7=28;var q7=31;var VZ=33,O8=34,AZ=35,f6=36,m6=37,D7=38,BZ=39,GZ=40,x5=41,OZ=42,G=0,L=1,z0=2,R7=3,_=4,MZ=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,L,L,_,_,_,_,L,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,_,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[_,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,L,G,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,G,G,L,L,L,L,L,L,L,G,G,_,z0,_,L,L,L,L,L,G,L,L,L,G],[L,_,_,L,L,L,_,_,_,G,G,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,G,L,_,_,_,G,G,L,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,G,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,_,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,L,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,L,L,L,L,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,L,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,L,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,L,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G]],LZ=I7.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),NZ=new _7.default(LZ),E7=function(J){switch(J){case VZ:return N7;case BZ:case GZ:case OZ:return N7;case AZ:return $Z;default:return J}},F7=function(J){switch(J){case m6:case D7:return O8;case x5:return HZ;default:return J}};class M8{constructor(J,Y=!1){this.position=J,this.required=Y}}class C7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),Y=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=Y&&Y<=57343)return this.pos++,(J-55296)*1024+(Y-56320)+65536;return J}nextCharClass(){return E7(NZ.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case x5:return!1;case O8:case m6:case D7:return this.curClass=O8,!1;case f6:return this.curClass=f6,!1}return null}getPairTableBreak(J){let Y=!1;switch(MZ[this.curClass][this.nextClass]){case G:Y=!0;break;case L:Y=J===x5;break;case z0:if(Y=J===x5,!Y)return Y=!1,Y;break;case R7:if(J!==x5)return Y;break;case _:break}if(this.LB8a)Y=!1;if(this.LB21a&&(this.curClass===wZ||this.curClass===UZ))Y=!1,this.LB21a=!1;else this.LB21a=this.curClass===zZ;if(this.curClass===j7){if(this.LB30a++,this.LB30a==2&&this.nextClass===j7)Y=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,Y}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=F7(J),this.nextClass=J,this.LB8a=J===q7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===O8||this.curClass===f6&&this.nextClass!==m6)return this.curClass=F7(E7(this.nextClass)),new M8(this.lastPos,!0);let Y=this.getSimpleBreak();if(Y===null)Y=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===q7,Y)return new M8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new M8(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}d6=C7;var O1=w1(F8(),1),RY=w1(W2(),1),CY=w1(z2(),1);var B2=w1(U2(),1),G2=w1(V2(),1),qQ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,EQ=new RegExp(qQ,"i"),z9="-?\\d*(?:\\.\\d+)",j5=`(${z9}?)`,E1=`(${z9}?%)`,q5=`(${z9}?%?)`,FQ=`^
|
|
13
|
+
`),this.config.onLogCreated(Q),this.tryFlush()}catch(z){console.error("Error writing log",z)}}async tryFlush(){if(this.fileSize>this.config.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.config.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class k6 extends j1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(X0(g5).currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function iK(J){let Y=new Map;for(let K of J)if(typeof K==="string"){let[Z,X=""]=K.split(":");if(Z.startsWith("-")){if(Y.has(Z.replace("-","")))Y.delete(Z.replace("-",""))}else Y.set(Z,X.split(",").filter(Boolean))}else Y.set(K,[]);return Y}class y5{config;static token="middleware";constructor(J){this.config=J}get aliases(){return this.config.aliases}runMiddleware(J){let Y=new G0;return Array.from(iK(J).entries()).map(([K,Z])=>{if(typeof K==="string"){let X=this.aliases[K];if(X){let Q=new X(Y);return()=>Q.run.call(Q,...Z)}}else{if(t4(K)){let X=new K(Y);return X.run.bind(X)}return K}}).filter(Boolean).reduce((K,Z)=>{return async()=>{return{...await K(),...await Z()}}},()=>Promise.resolve({}))()}}function HB(J){return J}function e4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function J7(){return{partialRendering:!0,onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{},onStreamComplete:()=>{}}}function nK(J){return"run"in J}function oK(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function rK(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function sK(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function aK(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function tK(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function g6(J,Y="",K=[]){let Z={};function X(Q,W,z,$){let w=Q==="/"?"":Q,U=Y==="/"?"":Y,H=(`${U}${w}`===""?"/":`${U}${w}`).replaceAll("//","/");if(!Z[H])Z[H]={};Z[H][W.toUpperCase()]={exec:z,middleware:[...K,...$]},Z[H].OPTIONS={exec:()=>{let A=new G0().ctx().headers;return new Response(null,{headers:A,status:204})},middleware:[]}}for(let[Q,W]of Object.entries(J)){if(aK(W)){let z=W;for(let $ of["GET","POST","PUT","DELETE"])X(Q,$,z.run.bind(z),[]);continue}if(nK(W)){let z=W,$=z.method,w=z.middlewares,U=z.run.bind(z);if(X(Q,$,U,w),tK(W))X(Q,"HEAD",U,w)}if(oK(W))for(let[z,$]of Object.entries(W)){let w=$.middlewares,U=$.run.bind($);X(Q,z,U,w)}if(sK(W)){let z=new W,$=g6(z.routes,`${Y}${Q}`,z.middlewares);for(let[w,U]of Object.entries($))Z[w.replaceAll("//","/")]=U}if(rK(W)){let{first:z,second:$}=W;for(let[w,U]of Object.entries(z)){let H=U.middlewares,V=U.run.bind(U),[A,...O]=Q.split("/").reverse();if(!A.startsWith(":"))throw Error("Resource route must end with a dynamic segment");X(O.reverse().join("/"),w,V,H)}for(let[w,U]of Object.entries($)){let H=U.middlewares,V=U.run.bind(U);X(Q,w,V,H)}}}return Object.fromEntries(Object.entries(Z).sort(([Q],[W])=>{let z=Q.split("/").length+Q.split(":").length,$=W.split("/").length+W.split(":").length;return z-$}))}var I7=w1(L7(),1),D7=w1(j7(),1),u6={};var HZ=5;var N7=12,VZ=13;var AZ=16,BZ=17;var GZ=22;var q7=28;var E7=31;var OZ=33,O8=34,MZ=35,m6=36,d6=37,R7=38,LZ=39,jZ=40,x5=41,NZ=42,G=0,L=1,z0=2,C7=3,_=4,qZ=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,C7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,L,L,_,_,_,_,L,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,_,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[_,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,L,G,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,G,G,L,L,L,L,L,L,L,G,G,_,z0,_,L,L,L,L,L,G,L,L,L,G],[L,_,_,L,L,L,_,_,_,G,G,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,G,L,_,_,_,G,G,L,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,G,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,_,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,L,L,L,L,L,L,_,z0,_,L,L,L,L,L,L,L,L,L,L],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,L,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,L,L,L,L,G,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,L,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,L,G,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,G,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,L,G,G,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,L,L,G],[G,_,_,L,L,L,_,_,_,G,L,G,G,G,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[L,_,_,L,L,L,_,_,_,L,L,L,L,L,G,L,L,L,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G],[G,_,_,L,L,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,z0,_,G,G,G,G,G,G,G,G,L,G]],EZ=D7.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),FZ=new I7.default(EZ),F7=function(J){switch(J){case OZ:return N7;case LZ:case jZ:case NZ:return N7;case MZ:return HZ;default:return J}},_7=function(J){switch(J){case d6:case R7:return O8;case x5:return GZ;default:return J}};class M8{constructor(J,Y=!1){this.position=J,this.required=Y}}class T7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),Y=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=Y&&Y<=57343)return this.pos++,(J-55296)*1024+(Y-56320)+65536;return J}nextCharClass(){return F7(FZ.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case x5:return!1;case O8:case d6:case R7:return this.curClass=O8,!1;case m6:return this.curClass=m6,!1}return null}getPairTableBreak(J){let Y=!1;switch(qZ[this.curClass][this.nextClass]){case G:Y=!0;break;case L:Y=J===x5;break;case z0:if(Y=J===x5,!Y)return Y=!1,Y;break;case C7:if(J!==x5)return Y;break;case _:break}if(this.LB8a)Y=!1;if(this.LB21a&&(this.curClass===AZ||this.curClass===BZ))Y=!1,this.LB21a=!1;else this.LB21a=this.curClass===VZ;if(this.curClass===q7){if(this.LB30a++,this.LB30a==2&&this.nextClass===q7)Y=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,Y}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=_7(J),this.nextClass=J,this.LB8a=J===E7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===O8||this.curClass===m6&&this.nextClass!==d6)return this.curClass=_7(F7(this.nextClass)),new M8(this.lastPos,!0);let Y=this.getSimpleBreak();if(Y===null)Y=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===E7,Y)return new M8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new M8(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}u6=T7;var O1=w1(F8(),1),CY=w1($2(),1),TY=w1(w2(),1);var G2=w1(H2(),1),O2=w1(A2(),1),IQ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,DQ=new RegExp(IQ,"i"),w9="-?\\d*(?:\\.\\d+)",N5=`(${w9}?)`,E1=`(${w9}?%)`,q5=`(${w9}?%?)`,RQ=`^
|
|
14
14
|
hsla?\\(
|
|
15
15
|
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
|
16
16
|
\\s*${E1}\\s*,
|
|
@@ -18,7 +18,7 @@ import{Ec as PK,Jc as vK,vc as RK,wc as k4,xc as CK,yc as TK}from"./chunk-pgjk5f
|
|
|
18
18
|
(?:,\\s*${q5}\\s*)?
|
|
19
19
|
\\)
|
|
20
20
|
$
|
|
21
|
-
`.replace(/\n|\s/g,""),
|
|
21
|
+
`.replace(/\n|\s/g,""),CQ=new RegExp(RQ),TQ=`^
|
|
22
22
|
hsla?\\(
|
|
23
23
|
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
|
24
24
|
\\s+${E1}
|
|
@@ -26,15 +26,15 @@ import{Ec as PK,Jc as vK,vc as RK,wc as k4,xc as CK,yc as TK}from"./chunk-pgjk5f
|
|
|
26
26
|
\\s*(?:\\s*\\/\\s*${q5}\\s*)?
|
|
27
27
|
\\)
|
|
28
28
|
$
|
|
29
|
-
`.replace(/\n|\s/g,""),
|
|
29
|
+
`.replace(/\n|\s/g,""),PQ=new RegExp(TQ),SQ=`^
|
|
30
30
|
rgba?\\(
|
|
31
|
-
\\s*${
|
|
32
|
-
\\s*${
|
|
33
|
-
\\s*${
|
|
31
|
+
\\s*${N5}\\s*,
|
|
32
|
+
\\s*${N5}\\s*,
|
|
33
|
+
\\s*${N5}\\s*
|
|
34
34
|
(?:,\\s*${q5}\\s*)?
|
|
35
35
|
\\)
|
|
36
36
|
$
|
|
37
|
-
`.replace(/\n|\s/g,""),
|
|
37
|
+
`.replace(/\n|\s/g,""),vQ=new RegExp(SQ),kQ=`^
|
|
38
38
|
rgba?\\(
|
|
39
39
|
\\s*${E1}\\s*,
|
|
40
40
|
\\s*${E1}\\s*,
|
|
@@ -42,15 +42,15 @@ import{Ec as PK,Jc as vK,vc as RK,wc as k4,xc as CK,yc as TK}from"./chunk-pgjk5f
|
|
|
42
42
|
(?:,\\s*${q5}\\s*)?
|
|
43
43
|
\\)
|
|
44
44
|
$
|
|
45
|
-
`.replace(/\n|\s/g,""),
|
|
45
|
+
`.replace(/\n|\s/g,""),gQ=new RegExp(kQ),yQ=`^
|
|
46
46
|
rgba?\\(
|
|
47
|
-
\\s*${
|
|
48
|
-
\\s+${
|
|
49
|
-
\\s+${
|
|
47
|
+
\\s*${N5}
|
|
48
|
+
\\s+${N5}
|
|
49
|
+
\\s+${N5}
|
|
50
50
|
\\s*(?:\\s*\\/\\s*${q5}\\s*)?
|
|
51
51
|
\\)
|
|
52
52
|
$
|
|
53
|
-
`.replace(/\n|\s/g,""),
|
|
53
|
+
`.replace(/\n|\s/g,""),hQ=new RegExp(yQ),xQ=`^
|
|
54
54
|
rgba?\\(
|
|
55
55
|
\\s*${E1}
|
|
56
56
|
\\s+${E1}
|
|
@@ -58,14 +58,14 @@ $
|
|
|
58
58
|
\\s*(?:\\s*\\/\\s*${q5}\\s*)?
|
|
59
59
|
\\)
|
|
60
60
|
$
|
|
61
|
-
`.replace(/\n|\s/g,""),yQ=new RegExp(kQ),gQ=/^transparent$/,hQ=new RegExp(gQ,"i"),w9=(J,Y,K)=>Math.min(Math.max(Y,J),K),xQ=(J)=>{let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)*255/100:parseFloat(Y);return w9(Math.round(Y),0,255)},A2=(J)=>w9(parseFloat(J),0,100);function O2(J){let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)/100:parseFloat(Y);return w9(Y,0,1)}function bQ(J){let[Y,K,Z,X]=G2.default(J,{format:"array"});return I8([null,Y,K,Z,X])}function fQ([,J,Y,K,Z=1]){let X=J;if(X.endsWith("turn"))X=parseFloat(X)*360/1;else if(X.endsWith("rad"))X=Math.round(parseFloat(X)*180/Math.PI);else X=parseFloat(X);return{type:"hsl",values:[X,A2(Y),A2(K)],alpha:O2(Z===null?1:Z)}}function I8([,J,Y,K,Z=1]){return{type:"rgb",values:[J,Y,K].map(xQ),alpha:O2(Z===null?1:Z)}}var mQ=(J)=>{if(typeof J!=="string")return null;let Y=EQ.exec(J);if(Y)return bQ(Y[0]);let K=DQ.exec(J)||_Q.exec(J);if(K)return fQ(K);let Z=vQ.exec(J)||yQ.exec(J)||CQ.exec(J)||PQ.exec(J);if(Z)return I8(Z);if(hQ.exec(J))return I8([null,0,0,0,0]);let X=B2.default[J.toLowerCase()];if(X)return I8([null,X[0],X[1],X[2],1]);return null},D8=mQ;var TY=w1(r6(),1),PY=w1(F8(),1),u9=w1(L2(),1);function H9(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}function U9(J){let Y=[];for(let K=0,Z=J.length;K<Z;){let[X,Q]=H9(J[K],/\s+/);uQ(J[K+1])?(Y.push({color:X,offset:Y5(Q),hint:Y5(J[K+1])}),K+=2):(Y.push({color:X,offset:Y5(Q)}),K++)}return Y}var q2=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function uQ(J){return q2.test(J)}function Y5(J){if(!J)return;let[,Y,K]=J.trim().match(q2)||[];return{value:Y,unit:K}}function E2(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?linear-gradient\((.+)\)/),Z={orientation:{type:"directional",value:"bottom"},repeating:!!Y,stops:[]},X=H9(K),Q=lQ(X[0]);return Q&&(Z.orientation=Q,X.shift()),{...Z,stops:U9(X)}}function lQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((Y)=>J.endsWith(Y))?{type:"angular",value:Y5(J)}:null}var pQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),iQ=new Set(["center","left","top","right","bottom"]);function N2(J){return pQ.has(J)}function j2(J){return iQ.has(J)}function nQ(J){let Y=Array(2).fill("");for(let K=0;K<2;K++)J[K]?Y[K]=J[K]:Y[K]="center";return Y}function F2(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?radial-gradient\((.+)\)/),Z={shape:"ellipse",repeating:!!Y,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},X=H9(K);if(oQ(X[0]))return{...Z,stops:U9(X)};let Q=X[0].split("at").map((w)=>w.trim()),W=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],z=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],$=nQ((Q[1]||"").split(" "));return W?Z.shape=W:z.length===1&&!N2(z[0])?Z.shape="circle":Z.shape="ellipse",z.length===0&&z.push("farthest-corner"),Z.size=z.map((w)=>N2(w)?{type:"keyword",value:w}:{type:"length",value:Y5(w)}),Z.position.x=j2($[0])?{type:"keyword",value:$[0]}:{type:"length",value:Y5($[0])},Z.position.y=j2($[1])?{type:"keyword",value:$[1]}:{type:"length",value:Y5($[1])},(W||z.length>0||Q[1])&&X.shift(),{...Z,stops:U9(X)}}function oQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var l9=w1(F8(),1);var K1=Uint8Array,Z5=Uint16Array,a2=Uint32Array,t2=new K1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),e2=new K1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),rQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),JJ=function(J,Y){var K=new Z5(31);for(var Z=0;Z<31;++Z)K[Z]=Y+=1<<J[Z-1];var X=new a2(K[30]);for(var Z=1;Z<30;++Z)for(var Q=K[Z];Q<K[Z+1];++Q)X[Q]=Q-K[Z]<<5|Z;return[K,X]},YJ=JJ(t2,2),KJ=YJ[0],sQ=YJ[1];KJ[28]=258,sQ[258]=28;var aQ=JJ(e2,0),tQ=aQ[0],q9=new Z5(32768);for(W0=0;W0<32768;++W0)F1=(W0&43690)>>>1|(W0&21845)<<1,F1=(F1&52428)>>>2|(F1&13107)<<2,F1=(F1&61680)>>>4|(F1&3855)<<4,q9[W0]=((F1&65280)>>>8|(F1&255)<<8)>>>1;var F1,W0,d5=function(J,Y,K){var Z=J.length,X=0,Q=new Z5(Y);for(;X<Z;++X)if(J[X])++Q[J[X]-1];var W=new Z5(Y);for(X=0;X<Y;++X)W[X]=W[X-1]+Q[X-1]<<1;var z;if(K){z=new Z5(1<<Y);var $=15-Y;for(X=0;X<Z;++X)if(J[X]){var w=X<<4|J[X],U=Y-J[X],H=W[J[X]-1]++<<U;for(var V=H|(1<<U)-1;H<=V;++H)z[q9[H]>>>$]=w}}else{z=new Z5(Z);for(X=0;X<Z;++X)if(J[X])z[X]=q9[W[J[X]-1]++]>>>15-J[X]}return z},l5=new K1(288);for(W0=0;W0<144;++W0)l5[W0]=8;var W0;for(W0=144;W0<256;++W0)l5[W0]=9;var W0;for(W0=256;W0<280;++W0)l5[W0]=7;var W0;for(W0=280;W0<288;++W0)l5[W0]=8;var W0,ZJ=new K1(32);for(W0=0;W0<32;++W0)ZJ[W0]=5;var W0,eQ=d5(l5,9,1),JW=d5(ZJ,5,1),V9=function(J){var Y=J[0];for(var K=1;K<J.length;++K)if(J[K]>Y)Y=J[K];return Y},U1=function(J,Y,K){var Z=Y/8|0;return(J[Z]|J[Z+1]<<8)>>(Y&7)&K},A9=function(J,Y){var K=Y/8|0;return(J[K]|J[K+1]<<8|J[K+2]<<16)>>(Y&7)},YW=function(J){return(J+7)/8|0},KW=function(J,Y,K){if(Y==null||Y<0)Y=0;if(K==null||K>J.length)K=J.length;var Z=new(J.BYTES_PER_ELEMENT==2?Z5:J.BYTES_PER_ELEMENT==4?a2:K1)(K-Y);return Z.set(J.subarray(Y,K)),Z},ZW=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],u1=function(J,Y,K){var Z=Error(Y||ZW[J]);if(Z.code=J,Error.captureStackTrace)Error.captureStackTrace(Z,u1);if(!K)throw Z;return Z},XW=function(J,Y,K){var Z=J.length;if(!Z||K&&K.f&&!K.l)return Y||new K1(0);var X=!Y||K,Q=!K||K.i;if(!K)K={};if(!Y)Y=new K1(Z*3);var W=function(h){var s=Y.length;if(h>s){var Z0=new K1(Math.max(s*2,h));Z0.set(Y),Y=Z0}},z=K.f||0,$=K.p||0,w=K.b||0,U=K.l,H=K.d,V=K.m,A=K.n,M=Z*8;do{if(!U){z=U1(J,$,1);var B=U1(J,$+1,3);if($+=3,!B){var O=YW($)+4,N=J[O-4]|J[O-3]<<8,j=O+N;if(j>Z){if(Q)u1(0);break}if(X)W(w+N);Y.set(J.subarray(O,j),w),K.b=w+=N,K.p=$=j*8,K.f=z;continue}else if(B==1)U=eQ,H=JW,V=9,A=5;else if(B==2){var E=U1(J,$,31)+257,I=U1(J,$+10,15)+4,F=E+U1(J,$+5,31)+1;$+=14;var q=new K1(F),T=new K1(19);for(var D=0;D<I;++D)T[rQ[D]]=U1(J,$+D*3,7);$+=I*3;var R=V9(T),g=(1<<R)-1,c=d5(T,R,1);for(var D=0;D<F;){var i=c[U1(J,$,g)];$+=i&15;var O=i>>>4;if(O<16)q[D++]=O;else{var p=0,S=0;if(O==16)S=3+U1(J,$,3),$+=2,p=q[D-1];else if(O==17)S=3+U1(J,$,7),$+=3;else if(O==18)S=11+U1(J,$,127),$+=7;while(S--)q[D++]=p}}var v=q.subarray(0,E),C=q.subarray(E);V=V9(v),A=V9(C),U=d5(v,V,1),H=d5(C,A,1)}else u1(1);if($>M){if(Q)u1(0);break}}if(X)W(w+131072);var m=(1<<V)-1,u=(1<<A)-1,a=$;for(;;a=$){var p=U[A9(J,$)&m],n=p>>>4;if($+=p&15,$>M){if(Q)u1(0);break}if(!p)u1(2);if(n<256)Y[w++]=n;else if(n==256){a=$,U=null;break}else{var f=n-254;if(n>264){var D=n-257,d=t2[D];f=U1(J,$,(1<<d)-1)+KJ[D],$+=d}var P=H[A9(J,$)&u],k=P>>>4;if(!P)u1(3);$+=P&15;var C=tQ[k];if(k>3){var d=e2[k];C+=A9(J,$)&(1<<d)-1,$+=d}if($>M){if(Q)u1(0);break}if(X)W(w+131072);var l=w+f;for(;w<l;w+=4)Y[w]=Y[w-C],Y[w+1]=Y[w+1-C],Y[w+2]=Y[w+2-C],Y[w+3]=Y[w+3-C];w=l}}if(K.l=U,K.p=a,K.b=w,K.f=z,U)z=1,K.m=V,K.d=H,K.n=A}while(!z);return w==Y.length?Y:KW(Y,0,w)},QW=new K1(0);function WW(J,Y){return XW(J,Y)}var $W=typeof TextDecoder<"u"&&new TextDecoder,zW=0;try{$W.decode(QW,{stream:!0}),zW=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,Y){this.commands.push({type:"M",x:J,y:Y})};f0.prototype.lineTo=function(J,Y){this.commands.push({type:"L",x:J,y:Y})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,Y,K,Z,X,Q){this.commands.push({type:"C",x1:J,y1:Y,x2:K,y2:Z,x:X,y:Q})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,Y,K,Z){this.commands.push({type:"Q",x1:J,y1:Y,x:K,y:Z})};f0.prototype.close=f0.prototype.closePath=function(){this.commands.push({type:"Z"})};f0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};f0.prototype.toPathData=function(J){J=J!==void 0?J:2;function Y(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function K(){var W=arguments,z="";for(var $=0;$<arguments.length;$+=1){var w=W[$];if(w>=0&&$>0)z+=" ";z+=Y(w)}return z}var Z="";for(var X=0;X<this.commands.length;X+=1){var Q=this.commands[X];if(Q.type==="M")Z+="M"+K(Q.x,Q.y);else if(Q.type==="L")Z+="L"+K(Q.x,Q.y);else if(Q.type==="C")Z+="C"+K(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")Z+="Q"+K(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")Z+="Z"}return Z};var wW=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],UW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],HW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function XJ(J){this.font=J}XJ.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.font.glyphs;if(K)for(var Z=0;Z<K.length;Z+=1){var X=K.get(Z);for(var Q=0;Q<X.unicodes.length;Q+=1)if(X.unicodes[Q]===Y)return Z}return null};function QJ(J){this.cmap=J}QJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function P8(J,Y){this.encoding=J,this.charset=Y}P8.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.encoding[Y];return this.charset.indexOf(K)};function VW(J){var Y,K=J.tables.cmap.glyphIndexMap,Z=Object.keys(K);for(var X=0;X<Z.length;X+=1){var Q=Z[X],W=K[Q];Y=J.glyphs.get(W),Y.addUnicode(parseInt(Q))}}function AW(J){J._IndexToUnicodeMap={};var Y=J.tables.cmap.glyphIndexMap,K=Object.keys(Y);for(var Z=0;Z<K.length;Z+=1){var X=K[Z],Q=Y[X];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(X)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(X))}}function BW(J,Y){if(Y.lowMemory)AW(J);else VW(J)}function WJ(J){throw Error(J)}function _2(J,Y){if(!J)WJ(Y)}var H0={fail:WJ,argument:_2,assert:_2};function GW(J,Y){var K=Y||new f0;return{configurable:!0,get:function(){if(typeof K==="function")K=K();return K},set:function(Z){K=Z}}}function v1(J){this.bindConstructorValues(J)}v1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",GW(this,J.path))};v1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};v1.prototype.getPath=function(J,Y,K,Z,X){J=J!==void 0?J:0,Y=Y!==void 0?Y:0,K=K!==void 0?K:72;var Q,W;if(!Z)Z={};var{xScale:z,yScale:$}=Z;if(Z.hinting&&X&&X.hinting)W=this.path&&X.hinting.exec(this,K);if(W)Q=X.hinting.getCommands(W),J=Math.round(J),Y=Math.round(Y),z=$=1;else{Q=this.path.commands;var w=1/(this.path.unitsPerEm||1000)*K;if(z===void 0)z=w;if($===void 0)$=w}var U=new f0;for(var H=0;H<Q.length;H+=1){var V=Q[H];if(V.type==="M")U.moveTo(J+V.x*z,Y+-V.y*$);else if(V.type==="L")U.lineTo(J+V.x*z,Y+-V.y*$);else if(V.type==="Q")U.quadraticCurveTo(J+V.x1*z,Y+-V.y1*$,J+V.x*z,Y+-V.y*$);else if(V.type==="C")U.curveTo(J+V.x1*z,Y+-V.y1*$,J+V.x2*z,Y+-V.y2*$,J+V.x*z,Y+-V.y*$);else if(V.type==="Z")U.closePath()}return U};v1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],Y=[];for(var K=0;K<this.points.length;K+=1){var Z=this.points[K];if(Y.push(Z),Z.lastPointOfContour)J.push(Y),Y=[]}return H0.argument(Y.length===0,"There are still points left in the current contour."),J};v1.prototype.getMetrics=function(){var J=this.path.commands,Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(X.type!=="Z")Y.push(X.x),K.push(X.y);if(X.type==="Q"||X.type==="C")Y.push(X.x1),K.push(X.y1);if(X.type==="C")Y.push(X.x2),K.push(X.y2)}var Q={xMin:Math.min.apply(null,Y),yMin:Math.min.apply(null,K),xMax:Math.max.apply(null,Y),yMax:Math.max.apply(null,K),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function R8(J,Y,K){Object.defineProperty(J,Y,{get:function(){return J.path,J[K]},set:function(Z){J[K]=Z},enumerable:!0,configurable:!0})}function _9(J,Y){if(this.font=J,this.glyphs={},Array.isArray(Y))for(var K=0;K<Y.length;K++){var Z=Y[K];Z.path.unitsPerEm=J.unitsPerEm,this.glyphs[K]=Z}this.length=Y&&Y.length||0}_9.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var Y=this.glyphs[J],K=this.font._IndexToUnicodeMap[J];if(K)for(var Z=0;Z<K.unicodes.length;Z++)Y.addUnicode(K.unicodes[Z]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};_9.prototype.push=function(J,Y){this.glyphs[J]=Y,this.length++};function OW(J,Y){return new v1({index:Y,font:J})}function MW(J,Y,K,Z,X,Q){return function(){var W=new v1({index:Y,font:J});return W.path=function(){K(W,Z,X);var z=Q(J.glyphs,W);return z.unitsPerEm=J.unitsPerEm,z},R8(W,"xMin","_xMin"),R8(W,"xMax","_xMax"),R8(W,"yMin","_yMin"),R8(W,"yMax","_yMax"),W}}function LW(J,Y,K,Z){return function(){var X=new v1({index:Y,font:J});return X.path=function(){var Q=K(J,X,Z);return Q.unitsPerEm=J.unitsPerEm,Q},X}}var I1={GlyphSet:_9,glyphLoader:OW,ttfGlyphLoader:MW,cffGlyphLoader:LW};function B9(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X].tag;if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function I2(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X];if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function D2(J,Y){var K,Z=0,X=J.length-1;while(Z<=X){var Q=Z+X>>>1;K=J[Q];var W=K.start;if(W===Y)return K;else if(W<Y)Z=Q+1;else X=Q-1}if(Z>0){if(K=J[Z-1],Y>K.end)return 0;return K}}function p5(J,Y){this.font=J,this.tableName=Y}p5.prototype={searchTag:B9,binSearch:I2,getTable:function(J){var Y=this.font.tables[this.tableName];if(!Y&&J)Y=this.font.tables[this.tableName]=this.createDefaultTable();return Y},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var Y=!1;for(var K=0;K<J.scripts.length;K++){var Z=J.scripts[K].tag;if(Z==="DFLT")return Z;if(Z==="latn")Y=!0}if(Y)return"latn"},getScriptTable:function(J,Y){var K=this.getTable(Y);if(K){J=J||"DFLT";var Z=K.scripts,X=B9(K.scripts,J);if(X>=0)return Z[X].script;else if(Y){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return Z.splice(-1-X,0,Q),Q.script}}},getLangSysTable:function(J,Y,K){var Z=this.getScriptTable(J,K);if(Z){if(!Y||Y==="dflt"||Y==="DFLT")return Z.defaultLangSys;var X=B9(Z.langSysRecords,Y);if(X>=0)return Z.langSysRecords[X].langSys;else if(K){var Q={tag:Y,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return Z.langSysRecords.splice(-1-X,0,Q),Q.langSys}}},getFeatureTable:function(J,Y,K,Z){var X=this.getLangSysTable(J,Y,Z);if(X){var Q,W=X.featureIndexes,z=this.font.tables[this.tableName].features;for(var $=0;$<W.length;$++)if(Q=z[W[$]],Q.tag===K)return Q.feature;if(Z){var w=z.length;return H0.assert(w===0||K>=z[w-1].tag,"Features must be added in alphabetical order."),Q={tag:K,feature:{params:0,lookupListIndexes:[]}},z.push(Q),W.push(w),Q.feature}}},getLookupTables:function(J,Y,K,Z,X){var Q=this.getFeatureTable(J,Y,K,X),W=[];if(Q){var z,$=Q.lookupListIndexes,w=this.font.tables[this.tableName].lookups;for(var U=0;U<$.length;U++)if(z=w[$[U]],z.lookupType===Z)W.push(z);if(W.length===0&&X){z={lookupType:Z,lookupFlag:0,subtables:[],markFilteringSet:void 0};var H=w.length;return w.push(z),$.push(H),[z]}}return W},getGlyphClass:function(J,Y){switch(J.format){case 1:if(J.startGlyph<=Y&&Y<J.startGlyph+J.classes.length)return J.classes[Y-J.startGlyph];return 0;case 2:var K=D2(J.ranges,Y);return K?K.classId:0}},getCoverageIndex:function(J,Y){switch(J.format){case 1:var K=I2(J.glyphs,Y);return K>=0?K:-1;case 2:var Z=D2(J.ranges,Y);return Z?Z.index+Y-Z.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var Y=[],K=J.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z],Q=X.start,W=X.end;for(var z=Q;z<=W;z++)Y.push(z)}return Y}}};function i5(J){p5.call(this,J,"gpos")}i5.prototype=p5.prototype;i5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};i5.prototype.getKerningValue=function(J,Y,K){for(var Z=0;Z<J.length;Z++){var X=J[Z].subtables;for(var Q=0;Q<X.length;Q++){var W=X[Q],z=this.getCoverageIndex(W.coverage,Y);if(z<0)continue;switch(W.posFormat){case 1:var $=W.pairSets[z];for(var w=0;w<$.length;w++){var U=$[w];if(U.secondGlyph===K)return U.value1&&U.value1.xAdvance||0}break;case 2:var H=this.getGlyphClass(W.classDef1,Y),V=this.getGlyphClass(W.classDef2,K),A=W.classRecords[H][V];return A.value1&&A.value1.xAdvance||0}}}return 0};i5.prototype.getKerningTables=function(J,Y){if(this.font.tables.gpos)return this.getLookupTables(J,Y,"kern",2)};function s0(J){p5.call(this,J,"gsub")}function NW(J,Y){var K=J.length;if(K!==Y.length)return!1;for(var Z=0;Z<K;Z++)if(J[Z]!==Y[Z])return!1;return!0}function I9(J,Y,K){var Z=J.subtables;for(var X=0;X<Z.length;X++){var Q=Z[X];if(Q.substFormat===Y)return Q}if(K)return Z.push(K),K;return}s0.prototype=p5.prototype;s0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};s0.prototype.getSingle=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,1);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=void 0;if($.substFormat===1){var H=$.deltaGlyphId;for(U=0;U<w.length;U++){var V=w[U];Z.push({sub:V,by:V+H})}}else{var A=$.substitute;for(U=0;U<w.length;U++)Z.push({sub:w[U],by:A[U]})}}}return Z};s0.prototype.getMultiple=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,2);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=void 0;for(U=0;U<w.length;U++){var H=w[U],V=$.sequences[U];Z.push({sub:H,by:V})}}}return Z};s0.prototype.getAlternates=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,3);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=$.alternateSets;for(var H=0;H<w.length;H++)Z.push({sub:w[H],by:U[H]})}}return Z};s0.prototype.getLigatures=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,4);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=$.ligatureSets;for(var H=0;H<w.length;H++){var V=w[H],A=U[H];for(var M=0;M<A.length;M++){var B=A[M];Z.push({sub:[V].concat(B.components),by:B.ligGlyph})}}}}return Z};s0.prototype.addSingle=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,1,!0)[0],Q=I9(X,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});H0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.substitute.splice(z,0,0);Q.substitute[z]=Y.by};s0.prototype.addMultiple=function(J,Y,K,Z){H0.assert(Y.by instanceof Array&&Y.by.length>1,'Multiple: "by" must be an array of two or more ids');var X=this.getLookupTables(K,Z,J,2,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});H0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.sequences.splice(z,0,0);Q.sequences[z]=Y.by};s0.prototype.addAlternate=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,3,!0)[0],Q=I9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});H0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.alternateSets.splice(z,0,0);Q.alternateSets[z]=Y.by};s0.prototype.addLigature=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,4,!0)[0],Q=X.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},X.subtables[0]=Q;H0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub[0],z=Y.sub.slice(1),$={ligGlyph:Y.by,components:z},w=this.binSearch(Q.coverage.glyphs,W);if(w>=0){var U=Q.ligatureSets[w];for(var H=0;H<U.length;H++)if(NW(U[H].components,z))return;U.push($)}else w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.ligatureSets.splice(w,0,[$])};s0.prototype.getFeature=function(J,Y,K){if(/ss\d\d/.test(J))return this.getSingle(J,Y,K);switch(J){case"aalt":case"salt":return this.getSingle(J,Y,K).concat(this.getAlternates(J,Y,K));case"dlig":case"liga":case"rlig":return this.getLigatures(J,Y,K);case"ccmp":return this.getMultiple(J,Y,K).concat(this.getLigatures(J,Y,K));case"stch":return this.getMultiple(J,Y,K)}return};s0.prototype.add=function(J,Y,K,Z){if(/ss\d\d/.test(J))return this.addSingle(J,Y,K,Z);switch(J){case"aalt":case"salt":if(typeof Y.by==="number")return this.addSingle(J,Y,K,Z);return this.addAlternate(J,Y,K,Z);case"dlig":case"liga":case"rlig":return this.addLigature(J,Y,K,Z);case"ccmp":if(Y.by instanceof Array)return this.addMultiple(J,Y,K,Z);return this.addLigature(J,Y,K,Z)}return};function m5(J,Y){if(!J)throw Y}function R2(J,Y){return J.getUint8(Y)}function S8(J,Y){return J.getUint16(Y,!1)}function jW(J,Y){return J.getInt16(Y,!1)}function D9(J,Y){return J.getUint32(Y,!1)}function $J(J,Y){var K=J.getInt16(Y,!1),Z=J.getUint16(Y+2,!1);return K+Z/65535}function qW(J,Y){var K="";for(var Z=Y;Z<Y+4;Z+=1)K+=String.fromCharCode(J.getInt8(Z));return K}function EW(J,Y,K){var Z=0;for(var X=0;X<K;X+=1)Z<<=8,Z+=J.getUint8(Y+X);return Z}function FW(J,Y,K){var Z=[];for(var X=Y;X<K;X+=1)Z.push(J.getUint8(X));return Z}function _W(J){var Y="";for(var K=0;K<J.length;K+=1)Y+=String.fromCharCode(J[K]);return Y}var IW={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function y(J,Y){this.data=J,this.offset=Y,this.relativeOffset=0}y.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};y.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};y.prototype.parseCard8=y.prototype.parseByte;y.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};y.prototype.parseCard16=y.prototype.parseUShort;y.prototype.parseSID=y.prototype.parseUShort;y.prototype.parseOffset16=y.prototype.parseUShort;y.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};y.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};y.prototype.parseULong=function(){var J=D9(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};y.prototype.parseOffset32=y.prototype.parseULong;y.prototype.parseFixed=function(){var J=$J(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};y.prototype.parseString=function(J){var Y=this.data,K=this.offset+this.relativeOffset,Z="";this.relativeOffset+=J;for(var X=0;X<J;X++)Z+=String.fromCharCode(Y.getUint8(K+X));return Z};y.prototype.parseTag=function(){return this.parseString(4)};y.prototype.parseLongDateTime=function(){var J=D9(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};y.prototype.parseVersion=function(J){var Y=S8(this.data,this.offset+this.relativeOffset),K=S8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return Y+K/J/10};y.prototype.skip=function(J,Y){if(Y===void 0)Y=1;this.relativeOffset+=IW[J]*Y};y.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint32(Z),Z+=4;return this.relativeOffset+=J*4,Y};y.prototype.parseOffset16List=y.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint16(Z),Z+=2;return this.relativeOffset+=J*2,Y};y.prototype.parseShortList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getInt16(Z),Z+=2;return this.relativeOffset+=J*2,Y};y.prototype.parseByteList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint8(Z++);return this.relativeOffset+=J,Y};y.prototype.parseList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};y.prototype.parseList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};y.prototype.parseRecordList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var z=Z[W],$=Y[z];Q[z]=$.call(this)}K[X]=Q}return K};y.prototype.parseRecordList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var z=Z[W],$=Y[z];Q[z]=$.call(this)}K[X]=Q}return K};y.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var Y=Object.keys(J),K={};for(var Z=0;Z<Y.length;Z++){var X=Y[Z],Q=J[X];K[X]=Q.call(this)}return K}};y.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var Y={};if(J&1)Y.xPlacement=this.parseShort();if(J&2)Y.yPlacement=this.parseShort();if(J&4)Y.xAdvance=this.parseShort();if(J&8)Y.yAdvance=this.parseShort();if(J&16)Y.xPlaDevice=void 0,this.parseShort();if(J&32)Y.yPlaDevice=void 0,this.parseShort();if(J&64)Y.xAdvDevice=void 0,this.parseShort();if(J&128)Y.yAdvDevice=void 0,this.parseShort();return Y};y.prototype.parseValueRecordList=function(){var J=this.parseUShort(),Y=this.parseUShort(),K=Array(Y);for(var Z=0;Z<Y;Z++)K[Z]=this.parseValueRecord(J);return K};y.prototype.parsePointer=function(J){var Y=this.parseOffset16();if(Y>0)return new y(this.data,this.offset+Y).parseStruct(J);return};y.prototype.parsePointer32=function(J){var Y=this.parseOffset32();if(Y>0)return new y(this.data,this.offset+Y).parseStruct(J);return};y.prototype.parseListOfLists=function(J){var Y=this.parseOffset16List(),K=Y.length,Z=this.relativeOffset,X=Array(K);for(var Q=0;Q<K;Q++){var W=Y[Q];if(W===0){X[Q]=void 0;continue}if(this.relativeOffset=W,J){var z=this.parseOffset16List(),$=Array(z.length);for(var w=0;w<z.length;w++)this.relativeOffset=W+z[w],$[w]=J.call(this);X[Q]=$}else X[Q]=this.parseUShortList()}return this.relativeOffset=Z,X};y.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort(),K=this.parseUShort();if(Y===1)return{format:1,glyphs:this.parseUShortList(K)};else if(Y===2){var Z=Array(K);for(var X=0;X<K;X++)Z[X]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:Z}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};y.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(Y===2)return{format:2,ranges:this.parseRecordList({start:y.uShort,end:y.uShort,classId:y.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};y.list=function(J,Y){return function(){return this.parseList(J,Y)}};y.list32=function(J,Y){return function(){return this.parseList32(J,Y)}};y.recordList=function(J,Y){return function(){return this.parseRecordList(J,Y)}};y.recordList32=function(J,Y){return function(){return this.parseRecordList32(J,Y)}};y.pointer=function(J){return function(){return this.parsePointer(J)}};y.pointer32=function(J){return function(){return this.parsePointer32(J)}};y.tag=y.prototype.parseTag;y.byte=y.prototype.parseByte;y.uShort=y.offset16=y.prototype.parseUShort;y.uShortList=y.prototype.parseUShortList;y.uLong=y.offset32=y.prototype.parseULong;y.uLongList=y.prototype.parseULongList;y.struct=y.prototype.parseStruct;y.coverage=y.prototype.parseCoverage;y.classDef=y.prototype.parseClassDef;var C2={reserved:y.uShort,reqFeatureIndex:y.uShort,featureIndexes:y.uShortList};y.prototype.parseScriptList=function(){return this.parsePointer(y.recordList({tag:y.tag,script:y.pointer({defaultLangSys:y.pointer(C2),langSysRecords:y.recordList({tag:y.tag,langSys:y.pointer(C2)})})}))||[]};y.prototype.parseFeatureList=function(){return this.parsePointer(y.recordList({tag:y.tag,feature:y.pointer({featureParams:y.offset16,lookupListIndexes:y.uShortList})}))||[]};y.prototype.parseLookupList=function(J){return this.parsePointer(y.list(y.pointer(function(){var Y=this.parseUShort();H0.argument(1<=Y&&Y<=9,"GPOS/GSUB lookup type "+Y+" unknown.");var K=this.parseUShort(),Z=K&16;return{lookupType:Y,lookupFlag:K,subtables:this.parseList(y.pointer(J[Y])),markFilteringSet:Z?this.parseUShort():void 0}})))||[]};y.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),Y=this.parseUShort();H0.argument(J===1&&Y<1,"GPOS/GSUB feature variations table unknown.");var K=this.parseRecordList32({conditionSetOffset:y.offset32,featureTableSubstitutionOffset:y.offset32});return K})||[]};var r={getByte:R2,getCard8:R2,getUShort:S8,getCard16:S8,getShort:jW,getULong:D9,getFixed:$J,getTag:qW,getOffset:EW,getBytes:FW,bytesToString:_W,Parser:y};function T2(J,Y,K,Z,X){var Q;if((Y&Z)>0){if(Q=J.parseByte(),(Y&X)===0)Q=-Q;Q=K+Q}else if((Y&X)>0)Q=K;else Q=K+J.parseShort();return Q}function zJ(J,Y,K){var Z=new r.Parser(Y,K);J.numberOfContours=Z.parseShort(),J._xMin=Z.parseShort(),J._yMin=Z.parseShort(),J._xMax=Z.parseShort(),J._yMax=Z.parseShort();var X,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var z=0;z<J.numberOfContours;z+=1)W.push(Z.parseUShort());J.instructionLength=Z.parseUShort(),J.instructions=[];for(var $=0;$<J.instructionLength;$+=1)J.instructions.push(Z.parseByte());var w=W[W.length-1]+1;X=[];for(var U=0;U<w;U+=1)if(Q=Z.parseByte(),X.push(Q),(Q&8)>0){var H=Z.parseByte();for(var V=0;V<H;V+=1)X.push(Q),U+=1}if(H0.argument(X.length===w,"Bad flags."),W.length>0){var A=[],M;if(w>0){for(var B=0;B<w;B+=1)Q=X[B],M={},M.onCurve=!!(Q&1),M.lastPointOfContour=W.indexOf(B)>=0,A.push(M);var O=0;for(var N=0;N<w;N+=1)Q=X[N],M=A[N],M.x=T2(Z,Q,O,2,16),O=M.x;var j=0;for(var E=0;E<w;E+=1)Q=X[E],M=A[E],M.y=T2(Z,Q,j,4,32),j=M.y}J.points=A}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var I=!0;while(I){X=Z.parseUShort();var F={glyphIndex:Z.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((X&1)>0)if((X&2)>0)F.dx=Z.parseShort(),F.dy=Z.parseShort();else F.matchedPoints=[Z.parseUShort(),Z.parseUShort()];else if((X&2)>0)F.dx=Z.parseChar(),F.dy=Z.parseChar();else F.matchedPoints=[Z.parseByte(),Z.parseByte()];if((X&8)>0)F.xScale=F.yScale=Z.parseF2Dot14();else if((X&64)>0)F.xScale=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();else if((X&128)>0)F.xScale=Z.parseF2Dot14(),F.scale01=Z.parseF2Dot14(),F.scale10=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();J.components.push(F),I=!!(X&32)}if(X&256){J.instructionLength=Z.parseUShort(),J.instructions=[];for(var q=0;q<J.instructionLength;q+=1)J.instructions.push(Z.parseByte())}}}function G9(J,Y){var K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z],Q={x:Y.xScale*X.x+Y.scale01*X.y+Y.dx,y:Y.scale10*X.x+Y.yScale*X.y+Y.dy,onCurve:X.onCurve,lastPointOfContour:X.lastPointOfContour};K.push(Q)}return K}function DW(J){var Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(K.push(X),X.lastPointOfContour)Y.push(K),K=[]}return H0.argument(K.length===0,"There are still points left in the current contour."),Y}function wJ(J){var Y=new f0;if(!J)return Y;var K=DW(J);for(var Z=0;Z<K.length;++Z){var X=K[Z],Q=null,W=X[X.length-1],z=X[0];if(W.onCurve)Y.moveTo(W.x,W.y);else if(z.onCurve)Y.moveTo(z.x,z.y);else{var $={x:(W.x+z.x)*0.5,y:(W.y+z.y)*0.5};Y.moveTo($.x,$.y)}for(var w=0;w<X.length;++w)if(Q=W,W=z,z=X[(w+1)%X.length],W.onCurve)Y.lineTo(W.x,W.y);else{var U=Q,H=z;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!z.onCurve)H={x:(W.x+z.x)*0.5,y:(W.y+z.y)*0.5};Y.quadraticCurveTo(W.x,W.y,H.x,H.y)}Y.closePath()}return Y}function UJ(J,Y){if(Y.isComposite)for(var K=0;K<Y.components.length;K+=1){var Z=Y.components[K],X=J.get(Z.glyphIndex);if(X.getPath(),X.points){var Q=void 0;if(Z.matchedPoints===void 0)Q=G9(X.points,Z);else{if(Z.matchedPoints[0]>Y.points.length-1||Z.matchedPoints[1]>X.points.length-1)throw Error("Matched points out of range in "+Y.name);var W=Y.points[Z.matchedPoints[0]],z=X.points[Z.matchedPoints[1]],$={xScale:Z.xScale,scale01:Z.scale01,scale10:Z.scale10,yScale:Z.yScale,dx:0,dy:0};z=G9([z],$)[0],$.dx=W.x-z.x,$.dy=W.y-z.y,Q=G9(X.points,$)}Y.points=Y.points.concat(Q)}}return wJ(Y.points)}function RW(J,Y,K,Z){var X=new I1.GlyphSet(Z);for(var Q=0;Q<K.length-1;Q+=1){var W=K[Q],z=K[Q+1];if(W!==z)X.push(Q,I1.ttfGlyphLoader(Z,Q,zJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))}return X}function CW(J,Y,K,Z){var X=new I1.GlyphSet(Z);return Z._push=function(Q){var W=K[Q],z=K[Q+1];if(W!==z)X.push(Q,I1.ttfGlyphLoader(Z,Q,zJ,J,Y+W,UJ));else X.push(Q,I1.glyphLoader(Z,Q))},X}function TW(J,Y,K,Z,X){if(X.lowMemory)return CW(J,Y,K,Z);else return RW(J,Y,K,Z)}var HJ={getPath:wJ,parse:TW},VJ,X5,AJ,E9;function BJ(J){this.font=J,this.getCommands=function(Y){return HJ.getPath(Y).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function PW(J){return J}function GJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function SW(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function vW(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function kW(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function yW(J){return Math.sign(J)*Math.floor(Math.abs(J))}var OJ=function(J){var Y=this.srPeriod,K=this.srPhase,Z=this.srThreshold,X=1;if(J<0)J=-J,X=-1;if(J+=Z-K,J=Math.trunc(J/Y)*Y,J+=K,J<0)return K*X;return J*X},_1={x:1,y:0,axis:"x",distance:function(J,Y,K,Z){return(K?J.xo:J.x)-(Z?Y.xo:Y.x)},interpolate:function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(!Z||Z===this){if(X=J.xo-Y.xo,Q=J.xo-K.xo,$=Y.x-Y.xo,w=K.x-K.xo,W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){J.x=J.xo+($+w)/2;return}J.x=J.xo+($*z+w*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),w=Z.distance(K,K,!1,!0),W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){_1.setRelative(J,J,($+w)/2,Z,!0);return}_1.setRelative(J,J,($*z+w*W)/U,Z,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.x=(X?Y.xo:Y.x)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y;J.x=z+(J.y-$)/Z.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},P1={x:0,y:1,axis:"y",distance:function(J,Y,K,Z){return(K?J.yo:J.y)-(Z?Y.yo:Y.y)},interpolate:function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(!Z||Z===this){if(X=J.yo-Y.yo,Q=J.yo-K.yo,$=Y.y-Y.yo,w=K.y-K.yo,W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){J.y=J.yo+($+w)/2;return}J.y=J.yo+($*z+w*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),w=Z.distance(K,K,!1,!0),W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){P1.setRelative(J,J,($+w)/2,Z,!0);return}P1.setRelative(J,J,($*z+w*W)/U,Z,!0)},normalSlope:0,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.y=(X?Y.yo:Y.y)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y;J.y=$+Z.normalSlope*(J.x-z)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(_1);Object.freeze(P1);function n5(J,Y){this.x=J,this.y=Y,this.axis=void 0,this.slope=Y/J,this.normalSlope=-J/Y,Object.freeze(this)}n5.prototype.distance=function(J,Y,K,Z){return this.x*_1.distance(J,Y,K,Z)+this.y*P1.distance(J,Y,K,Z)};n5.prototype.interpolate=function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(W=Z.distance(J,Y,!0,!0),z=Z.distance(J,K,!0,!0),X=Z.distance(Y,Y,!1,!0),Q=Z.distance(K,K,!1,!0),$=Math.abs(W),w=Math.abs(z),U=$+w,U===0){this.setRelative(J,J,(X+Q)/2,Z,!0);return}this.setRelative(J,J,(X*w+Q*$)/U,Z,!0)};n5.prototype.setRelative=function(J,Y,K,Z,X){Z=Z||this;var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y,w=Z.normalSlope,U=this.slope,H=J.x,V=J.y;J.x=(U*H-w*z+$-V)/(U-w),J.y=U*(J.x-H)+V};n5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function o5(J,Y){var K=Math.sqrt(J*J+Y*Y);if(J/=K,Y/=K,J===1&&Y===0)return _1;else if(J===0&&Y===1)return P1;else return new n5(J,Y)}function S1(J,Y,K,Z){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(Y*64)/64,this.lastPointOfContour=K,this.onCurve=Z,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}S1.prototype.nextTouched=function(J){var Y=this.nextPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.nextPointOnContour;return Y};S1.prototype.prevTouched=function(J){var Y=this.prevPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.prevPointOnContour;return Y};var u5=Object.freeze(new S1(0,0)),gW={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(J,Y){switch(this.env=J,this.stack=[],this.prog=Y,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=_1,this.round=GJ}}BJ.prototype.exec=function(J,Y){if(typeof Y!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var K=this.font,Z=this._prepState;if(!Z||Z.ppem!==Y){var X=this._fpgmState;if(!X){if(p1.prototype=gW,X=this._fpgmState=new p1("fpgm",K.tables.fpgm),X.funcs=[],X.font=K,CB.DEBUG)console.log("---EXEC FPGM---"),X.step=-1;try{X5(X)}catch(w){console.log("Hinting error in FPGM:"+w),this._errorState=3;return}}p1.prototype=X,Z=this._prepState=new p1("prep",K.tables.prep),Z.ppem=Y;var Q=K.tables.cvt;if(Q){var W=Z.cvt=Array(Q.length),z=Y/K.unitsPerEm;for(var $=0;$<Q.length;$++)W[$]=Q[$]*z}else Z.cvt=[];if(CB.DEBUG)console.log("---EXEC PREP---"),Z.step=-1;try{X5(Z)}catch(w){if(this._errorState<2)console.log("Hinting error in PREP:"+w);this._errorState=2}}if(this._errorState>1)return;try{return AJ(J,Z)}catch(w){if(this._errorState<1)console.log("Hinting error:"+w),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};AJ=function(J,Y){var K=Y.ppem/Y.font.unitsPerEm,Z=K,X=J.components,Q,W,z;if(p1.prototype=Y,!X){if(z=new p1("glyf",J.instructions),CB.DEBUG)console.log("---EXEC GLYPH---"),z.step=-1;E9(J,z,K,Z),W=z.gZone}else{var $=Y.font;W=[],Q=[];for(var w=0;w<X.length;w++){var U=X[w],H=$.glyphs.get(U.glyphIndex);if(z=new p1("glyf",H.instructions),CB.DEBUG)console.log("---EXEC COMP "+w+"---"),z.step=-1;E9(H,z,K,Z);var V=Math.round(U.dx*K),A=Math.round(U.dy*Z),M=z.gZone,B=z.contours;for(var O=0;O<M.length;O++){var N=M[O];N.xTouched=N.yTouched=!1,N.xo=N.x=N.x+V,N.yo=N.y=N.y+A}var j=W.length;W.push.apply(W,M);for(var E=0;E<B.length;E++)Q.push(B[E]+j)}if(J.instructions&&!z.inhibitGridFit){if(z=new p1("glyf",J.instructions),z.gZone=z.z0=z.z1=z.z2=W,z.contours=Q,W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),CB.DEBUG)console.log("---EXEC COMPOSITE---"),z.step=-1;X5(z),W.length-=2}}return W};E9=function(J,Y,K,Z){var X=J.points||[],Q=X.length,W=Y.gZone=Y.z0=Y.z1=Y.z2=[],z=Y.contours=[],$;for(var w=0;w<Q;w++)$=X[w],W[w]=new S1($.x*K,$.y*Z,$.lastPointOfContour,$.onCurve);var U,H;for(var V=0;V<Q;V++){if($=W[V],!U)U=$,z.push(V);if($.lastPointOfContour)$.nextPointOnContour=U,U.prevPointOnContour=$,U=void 0;else H=W[V+1],$.nextPointOnContour=H,H.prevPointOnContour=$}if(Y.inhibitGridFit)return;if(CB.DEBUG){console.log("PROCESSING GLYPH",Y.stack);for(var A=0;A<Q;A++)console.log(A,W[A].x,W[A].y)}if(W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),X5(Y),W.length-=2,CB.DEBUG){console.log("FINISHED GLYPH",Y.stack);for(var M=0;M<Q;M++)console.log(M,W[M].x,W[M].y)}};X5=function(J){var Y=J.prog;if(!Y)return;var K=Y.length,Z;for(J.ip=0;J.ip<K;J.ip++){if(CB.DEBUG)J.step++;if(Z=VJ[Y[J.ip]],!Z)throw Error("unknown instruction: 0x"+Number(Y[J.ip]).toString(16));Z(J)}};function v8(J){var Y=J.tZone=Array(J.gZone.length);for(var K=0;K<Y.length;K++)Y[K]=new S1(0,0)}function MJ(J,Y){var{prog:K,ip:Z}=J,X=1,Q;do if(Q=K[++Z],Q===88)X++;else if(Q===89)X--;else if(Q===64)Z+=K[Z+1]+1;else if(Q===65)Z+=2*K[Z+1]+1;else if(Q>=176&&Q<=183)Z+=Q-176+1;else if(Q>=184&&Q<=191)Z+=(Q-184+1)*2;else if(Y&&X===1&&Q===27)break;while(X>0);J.ip=Z}function P2(J,Y){if(CB.DEBUG)console.log(Y.step,"SVTCA["+J.axis+"]");Y.fv=Y.pv=Y.dpv=J}function S2(J,Y){if(CB.DEBUG)console.log(Y.step,"SPVTCA["+J.axis+"]");Y.pv=Y.dpv=J}function v2(J,Y){if(CB.DEBUG)console.log(Y.step,"SFVTCA["+J.axis+"]");Y.fv=J}function k2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(CB.DEBUG)console.log("SPVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.pv=Y.dpv=o5(z,$)}function y2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(CB.DEBUG)console.log("SFVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.fv=o5(z,$)}function hW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.pv=J.dpv=o5(Z,K)}function xW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.fv=o5(Z,K)}function bW(J){var{stack:Y,pv:K}=J;if(CB.DEBUG)console.log(J.step,"GPV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function fW(J){var{stack:Y,fv:K}=J;if(CB.DEBUG)console.log(J.step,"GFV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function mW(J){if(J.fv=J.pv,CB.DEBUG)console.log(J.step,"SFVTPV[]")}function dW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop(),Q=Y.pop(),W=Y.pop(),z=J.z0,$=J.z1,w=z[K],U=z[Z],H=$[X],V=$[Q],A=J.z2[W];if(CB.DEBUG)console.log("ISECT[], ",K,Z,X,Q,W);var{x:M,y:B}=w,O=U.x,N=U.y,j=H.x,E=H.y,I=V.x,F=V.y,q=(M-O)*(E-F)-(B-N)*(j-I),T=M*N-B*O,D=j*F-E*I;A.x=(T*(j-I)-D*(M-O))/q,A.y=(T*(E-F)-D*(B-N))/q}function cW(J){if(J.rp0=J.stack.pop(),CB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function uW(J){if(J.rp1=J.stack.pop(),CB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function lW(J){if(J.rp2=J.stack.pop(),CB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function pW(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SZP0[]",Y);switch(J.zp0=Y,Y){case 0:if(!J.tZone)v8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function iW(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SZP1[]",Y);switch(J.zp1=Y,Y){case 0:if(!J.tZone)v8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function nW(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SZP2[]",Y);switch(J.zp2=Y,Y){case 0:if(!J.tZone)v8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function oW(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SZPS[]",Y);switch(J.zp0=J.zp1=J.zp2=Y,Y){case 0:if(!J.tZone)v8(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function rW(J){if(J.loop=J.stack.pop(),CB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function sW(J){if(CB.DEBUG)console.log(J.step,"RTG[]");J.round=GJ}function aW(J){if(CB.DEBUG)console.log(J.step,"RTHG[]");J.round=vW}function tW(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SMD[]",Y);J.minDis=Y/64}function eW(J){if(CB.DEBUG)console.log(J.step,"ELSE[]");MJ(J,!1)}function J$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"JMPR[]",Y);J.ip+=Y-1}function Y$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SCVTCI[]",Y);J.cvCutIn=Y/64}function K$(J){var Y=J.stack;if(CB.DEBUG)console.log(J.step,"DUP[]");Y.push(Y[Y.length-1])}function O9(J){if(CB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function Z$(J){if(CB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function X$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"SWAP[]");Y.push(K),Y.push(Z)}function Q$(J){var Y=J.stack;if(CB.DEBUG)console.log(J.step,"DEPTH[]");Y.push(Y.length)}function W$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"LOOPCALL[]",K,Z);var{ip:X,prog:Q}=J;J.prog=J.funcs[K];for(var W=0;W<Z;W++)if(X5(J),CB.DEBUG)console.log(++J.step,W+1<Z?"next loopcall":"done loopcall",W);J.ip=X,J.prog=Q}function $$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"CALL[]",Y);var{ip:K,prog:Z}=J;if(J.prog=J.funcs[Y],X5(J),J.ip=K,J.prog=Z,CB.DEBUG)console.log(++J.step,"returning from",Y)}function z$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"CINDEX[]",K);Y.push(Y[Y.length-K])}function w$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"MINDEX[]",K);Y.push(Y.splice(Y.length-K,1)[0])}function U$(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:Y,prog:K,ip:Z}=J,X=Y.pop(),Q=Z;if(CB.DEBUG)console.log(J.step,"FDEF[]",X);while(K[++Z]!==45);J.ip=Z,J.funcs[X]=K.slice(Q+1,Z)}function g2(J,Y){var K=Y.stack.pop(),Z=Y.z0[K],X=Y.fv,Q=Y.pv;if(CB.DEBUG)console.log(Y.step,"MDAP["+J+"]",K);var W=Q.distance(Z,u5);if(J)W=Y.round(W);X.setRelative(Z,u5,W,Q),X.touch(Z),Y.rp0=Y.rp1=K}function h2(J,Y){var K=Y.z2,Z=K.length-2,X,Q,W;if(CB.DEBUG)console.log(Y.step,"IUP["+J.axis+"]");for(var z=0;z<Z;z++){if(X=K[z],J.touched(X))continue;if(Q=X.prevTouched(J),Q===X)continue;if(W=X.nextTouched(J),Q===W)J.setRelative(X,X,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(X,Q,W,J)}}function x2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=Y.loop,$=Y.z2;while(z--){var w=K.pop(),U=$[w],H=W.distance(X,X,!1,!0);if(Q.setRelative(U,U,H,W),Q.touch(U),CB.DEBUG)console.log(Y.step,(Y.loop>1?"loop "+(Y.loop-z)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",w)}Y.loop=1}function b2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=K.pop(),$=Y.z2[Y.contours[z]],w=$;if(CB.DEBUG)console.log(Y.step,"SHC["+J+"]",z);var U=W.distance(X,X,!1,!0);do{if(w!==X)Q.setRelative(w,w,U,W);w=w.nextPointOnContour}while(w!==$)}function f2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=K.pop();if(CB.DEBUG)console.log(Y.step,"SHZ["+J+"]",z);var $;switch(z){case 0:$=Y.tZone;break;case 1:$=Y.gZone;break;default:throw Error("Invalid zone")}var w,U=W.distance(X,X,!1,!0),H=$.length-2;for(var V=0;V<H;V++)w=$[V],Q.setRelative(w,w,U,W)}function H$(J){var{stack:Y,loop:K,fv:Z}=J,X=Y.pop()/64,Q=J.z2;while(K--){var W=Y.pop(),z=Q[W];if(CB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-K)+": ":"")+"SHPIX[]",W,X);Z.setRelative(z,z,X),Z.touch(z)}J.loop=1}function V$(J){var{stack:Y,rp1:K,rp2:Z,loop:X}=J,Q=J.z0[K],W=J.z1[Z],z=J.fv,$=J.dpv,w=J.z2;while(X--){var U=Y.pop(),H=w[U];if(CB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"IP[]",U,K,"<->",Z);z.interpolate(H,Q,W,$),z.touch(H)}J.loop=1}function m2(J,Y){var K=Y.stack,Z=K.pop()/64,X=K.pop(),Q=Y.z1[X],W=Y.z0[Y.rp0],z=Y.fv,$=Y.pv;if(z.setRelative(Q,W,Z,$),z.touch(Q),CB.DEBUG)console.log(Y.step,"MSIRP["+J+"]",Z,X);if(Y.rp1=Y.rp0,Y.rp2=X,J)Y.rp0=X}function A$(J){var{stack:Y,rp0:K}=J,Z=J.z0[K],X=J.loop,Q=J.fv,W=J.pv,z=J.z1;while(X--){var $=Y.pop(),w=z[$];if(CB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"ALIGNRP[]",$);Q.setRelative(w,Z,0,W),Q.touch(w)}J.loop=1}function B$(J){if(CB.DEBUG)console.log(J.step,"RTDG[]");J.round=SW}function d2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z0[X],W=Y.fv,z=Y.pv,$=Y.cvt[Z];if(CB.DEBUG)console.log(Y.step,"MIAP["+J+"]",Z,"(",$,")",X);var w=z.distance(Q,u5);if(J){if(Math.abs(w-$)<Y.cvCutIn)w=$;w=Y.round(w)}if(W.setRelative(Q,u5,w,z),Y.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),Y.rp0=Y.rp1=X}function G$(J){var{prog:Y,ip:K,stack:Z}=J,X=Y[++K];if(CB.DEBUG)console.log(J.step,"NPUSHB[]",X);for(var Q=0;Q<X;Q++)Z.push(Y[++K]);J.ip=K}function O$(J){var{ip:Y,prog:K,stack:Z}=J,X=K[++Y];if(CB.DEBUG)console.log(J.step,"NPUSHW[]",X);for(var Q=0;Q<X;Q++){var W=K[++Y]<<8|K[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}J.ip=Y}function M$(J){var{stack:Y,store:K}=J;if(!K)K=J.store=[];var Z=Y.pop(),X=Y.pop();if(CB.DEBUG)console.log(J.step,"WS",Z,X);K[X]=Z}function L$(J){var{stack:Y,store:K}=J,Z=Y.pop();if(CB.DEBUG)console.log(J.step,"RS",Z);var X=K&&K[Z]||0;Y.push(X)}function N$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"WCVTP",K,Z);J.cvt[Z]=K/64}function j$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"RCVT",K);Y.push(J.cvt[K]*64)}function c2(J,Y){var K=Y.stack,Z=K.pop(),X=Y.z2[Z];if(CB.DEBUG)console.log(Y.step,"GC["+J+"]",Z);K.push(Y.dpv.distance(X,u5,J,!1)*64)}function u2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z1[Z],W=Y.z0[X],z=Y.dpv.distance(W,Q,J,J);if(CB.DEBUG)console.log(Y.step,"MD["+J+"]",Z,X,"->",z);Y.stack.push(Math.round(z*64))}function q$(J){if(CB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function E$(J){if(CB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function F$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"LT[]",K,Z);Y.push(Z<K?1:0)}function _$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"LTEQ[]",K,Z);Y.push(Z<=K?1:0)}function I$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"GT[]",K,Z);Y.push(Z>K?1:0)}function D$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"GTEQ[]",K,Z);Y.push(Z>=K?1:0)}function R$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"EQ[]",K,Z);Y.push(K===Z?1:0)}function C$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"NEQ[]",K,Z);Y.push(K!==Z?1:0)}function T$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"ODD[]",K);Y.push(Math.trunc(K)%2?1:0)}function P$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"EVEN[]",K);Y.push(Math.trunc(K)%2?0:1)}function S$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"IF[]",Y);if(!Y){if(MJ(J,!0),CB.DEBUG)console.log(J.step,"EIF[]")}}function v$(J){if(CB.DEBUG)console.log(J.step,"EIF[]")}function k$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"AND[]",K,Z);Y.push(K&&Z?1:0)}function y$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"OR[]",K,Z);Y.push(K||Z?1:0)}function g$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"NOT[]",K);Y.push(K?0:1)}function M9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.fv,Q=Y.pv,W=Y.ppem,z=Y.deltaBase+(J-1)*16,$=Y.deltaShift,w=Y.z0;if(CB.DEBUG)console.log(Y.step,"DELTAP["+J+"]",Z,K);for(var U=0;U<Z;U++){var H=K.pop(),V=K.pop(),A=z+((V&240)>>4);if(A!==W)continue;var M=(V&15)-8;if(M>=0)M++;if(CB.DEBUG)console.log(Y.step,"DELTAPFIX",H,"by",M*$);var B=w[H];X.setRelative(B,B,M*$,Q)}}function h$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"SDB[]",K);J.deltaBase=K}function x$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"SDS[]",K);J.deltaShift=Math.pow(0.5,K)}function b$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"ADD[]",K,Z);Y.push(Z+K)}function f$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"SUB[]",K,Z);Y.push(Z-K)}function m$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"DIV[]",K,Z);Y.push(Z*64/K)}function d$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"MUL[]",K,Z);Y.push(Z*K/64)}function c$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"ABS[]",K);Y.push(Math.abs(K))}function u$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"NEG[]",K);Y.push(-K)}function l$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"FLOOR[]",K);Y.push(Math.floor(K/64)*64)}function p$(J){var Y=J.stack,K=Y.pop();if(CB.DEBUG)console.log(J.step,"CEILING[]",K);Y.push(Math.ceil(K/64)*64)}function C8(J,Y){var K=Y.stack,Z=K.pop();if(CB.DEBUG)console.log(Y.step,"ROUND[]");K.push(Y.round(Z/64)*64)}function i$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"WCVTF[]",K,Z);J.cvt[Z]=K*J.ppem/J.font.unitsPerEm}function L9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.ppem,Q=Y.deltaBase+(J-1)*16,W=Y.deltaShift;if(CB.DEBUG)console.log(Y.step,"DELTAC["+J+"]",Z,K);for(var z=0;z<Z;z++){var $=K.pop(),w=K.pop(),U=Q+((w&240)>>4);if(U!==X)continue;var H=(w&15)-8;if(H>=0)H++;var V=H*W;if(CB.DEBUG)console.log(Y.step,"DELTACFIX",$,"by",V);Y.cvt[$]+=V}}function n$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SROUND[]",Y);J.round=OJ;var K;switch(Y&192){case 0:K=0.5;break;case 64:K=1;break;case 128:K=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid SROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function o$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"S45ROUND[]",Y);J.round=OJ;var K;switch(Y&192){case 0:K=Math.sqrt(2)/2;break;case 64:K=Math.sqrt(2);break;case 128:K=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid S45ROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function r$(J){if(CB.DEBUG)console.log(J.step,"ROFF[]");J.round=PW}function s$(J){if(CB.DEBUG)console.log(J.step,"RUTG[]");J.round=kW}function a$(J){if(CB.DEBUG)console.log(J.step,"RDTG[]");J.round=yW}function t$(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SCANCTRL[]",Y)}function l2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(CB.DEBUG)console.log(Y.step,"SDPVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.dpv=o5(z,$)}function e$(J){var Y=J.stack,K=Y.pop(),Z=0;if(CB.DEBUG)console.log(J.step,"GETINFO[]",K);if(K&1)Z=35;if(K&32)Z|=4096;Y.push(Z)}function Jz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop();if(CB.DEBUG)console.log(J.step,"ROLL[]");Y.push(Z),Y.push(K),Y.push(X)}function Yz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"MAX[]",K,Z);Y.push(Math.max(Z,K))}function Kz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(CB.DEBUG)console.log(J.step,"MIN[]",K,Z);Y.push(Math.min(Z,K))}function Zz(J){var Y=J.stack.pop();if(CB.DEBUG)console.log(J.step,"SCANTYPE[]",Y)}function Xz(J){var Y=J.stack.pop(),K=J.stack.pop();if(CB.DEBUG)console.log(J.step,"INSTCTRL[]",Y,K);switch(Y){case 1:J.inhibitGridFit=!!K;return;case 2:J.ignoreCvt=!!K;return;default:throw Error("invalid INSTCTRL[] selector")}}function d1(J,Y){var{stack:K,prog:Z,ip:X}=Y;if(CB.DEBUG)console.log(Y.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)K.push(Z[++X]);Y.ip=X}function c1(J,Y){var{ip:K,prog:Z,stack:X}=Y;if(CB.DEBUG)console.log(Y.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=Z[++K]<<8|Z[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}Y.ip=K}function o(J,Y,K,Z,X,Q){var W=Q.stack,z=J&&W.pop(),$=W.pop(),w=Q.rp0,U=Q.z0[w],H=Q.z1[$],V=Q.minDis,A=Q.fv,M=Q.dpv,B,O,N,j;if(O=B=M.distance(H,U,!0,!0),N=O>=0?1:-1,O=Math.abs(O),J){if(j=Q.cvt[z],Z&&Math.abs(O-j)<Q.cvCutIn)O=j}if(K&&O<V)O=V;if(Z)O=Q.round(O);if(A.setRelative(H,U,N*O,M),A.touch(H),CB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(Y?"M":"m")+(K?">":"_")+(Z?"R":"_")+(X===0?"Gr":X===1?"Bl":X===2?"Wh":"")+"]",J?z+"("+Q.cvt[z]+","+j+")":"",$,"(d =",B,"->",N*O,")");if(Q.rp1=Q.rp0,Q.rp2=$,Y)Q.rp0=$}VJ=[P2.bind(void 0,P1),P2.bind(void 0,_1),S2.bind(void 0,P1),S2.bind(void 0,_1),v2.bind(void 0,P1),v2.bind(void 0,_1),k2.bind(void 0,0),k2.bind(void 0,1),y2.bind(void 0,0),y2.bind(void 0,1),hW,xW,bW,fW,mW,dW,cW,uW,lW,pW,iW,nW,oW,rW,sW,aW,tW,eW,J$,Y$,void 0,void 0,K$,O9,Z$,X$,Q$,z$,w$,void 0,void 0,void 0,W$,$$,U$,void 0,g2.bind(void 0,0),g2.bind(void 0,1),h2.bind(void 0,P1),h2.bind(void 0,_1),x2.bind(void 0,0),x2.bind(void 0,1),b2.bind(void 0,0),b2.bind(void 0,1),f2.bind(void 0,0),f2.bind(void 0,1),H$,V$,m2.bind(void 0,0),m2.bind(void 0,1),A$,B$,d2.bind(void 0,0),d2.bind(void 0,1),G$,O$,M$,L$,N$,j$,c2.bind(void 0,0),c2.bind(void 0,1),void 0,u2.bind(void 0,0),u2.bind(void 0,1),q$,void 0,E$,void 0,void 0,F$,_$,I$,D$,R$,C$,T$,P$,S$,v$,k$,y$,g$,M9.bind(void 0,1),h$,x$,b$,f$,m$,d$,c$,u$,l$,p$,C8.bind(void 0,0),C8.bind(void 0,1),C8.bind(void 0,2),C8.bind(void 0,3),void 0,void 0,void 0,void 0,i$,M9.bind(void 0,2),M9.bind(void 0,3),L9.bind(void 0,1),L9.bind(void 0,2),L9.bind(void 0,3),n$,o$,void 0,void 0,r$,void 0,s$,a$,O9,O9,void 0,void 0,void 0,void 0,void 0,t$,l2.bind(void 0,0),l2.bind(void 0,1),e$,void 0,Jz,Yz,Kz,Zz,Xz,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d1.bind(void 0,1),d1.bind(void 0,2),d1.bind(void 0,3),d1.bind(void 0,4),d1.bind(void 0,5),d1.bind(void 0,6),d1.bind(void 0,7),d1.bind(void 0,8),c1.bind(void 0,1),c1.bind(void 0,2),c1.bind(void 0,3),c1.bind(void 0,4),c1.bind(void 0,5),c1.bind(void 0,6),c1.bind(void 0,7),c1.bind(void 0,8),o.bind(void 0,0,0,0,0,0),o.bind(void 0,0,0,0,0,1),o.bind(void 0,0,0,0,0,2),o.bind(void 0,0,0,0,0,3),o.bind(void 0,0,0,0,1,0),o.bind(void 0,0,0,0,1,1),o.bind(void 0,0,0,0,1,2),o.bind(void 0,0,0,0,1,3),o.bind(void 0,0,0,1,0,0),o.bind(void 0,0,0,1,0,1),o.bind(void 0,0,0,1,0,2),o.bind(void 0,0,0,1,0,3),o.bind(void 0,0,0,1,1,0),o.bind(void 0,0,0,1,1,1),o.bind(void 0,0,0,1,1,2),o.bind(void 0,0,0,1,1,3),o.bind(void 0,0,1,0,0,0),o.bind(void 0,0,1,0,0,1),o.bind(void 0,0,1,0,0,2),o.bind(void 0,0,1,0,0,3),o.bind(void 0,0,1,0,1,0),o.bind(void 0,0,1,0,1,1),o.bind(void 0,0,1,0,1,2),o.bind(void 0,0,1,0,1,3),o.bind(void 0,0,1,1,0,0),o.bind(void 0,0,1,1,0,1),o.bind(void 0,0,1,1,0,2),o.bind(void 0,0,1,1,0,3),o.bind(void 0,0,1,1,1,0),o.bind(void 0,0,1,1,1,1),o.bind(void 0,0,1,1,1,2),o.bind(void 0,0,1,1,1,3),o.bind(void 0,1,0,0,0,0),o.bind(void 0,1,0,0,0,1),o.bind(void 0,1,0,0,0,2),o.bind(void 0,1,0,0,0,3),o.bind(void 0,1,0,0,1,0),o.bind(void 0,1,0,0,1,1),o.bind(void 0,1,0,0,1,2),o.bind(void 0,1,0,0,1,3),o.bind(void 0,1,0,1,0,0),o.bind(void 0,1,0,1,0,1),o.bind(void 0,1,0,1,0,2),o.bind(void 0,1,0,1,0,3),o.bind(void 0,1,0,1,1,0),o.bind(void 0,1,0,1,1,1),o.bind(void 0,1,0,1,1,2),o.bind(void 0,1,0,1,1,3),o.bind(void 0,1,1,0,0,0),o.bind(void 0,1,1,0,0,1),o.bind(void 0,1,1,0,0,2),o.bind(void 0,1,1,0,0,3),o.bind(void 0,1,1,0,1,0),o.bind(void 0,1,1,0,1,1),o.bind(void 0,1,1,0,1,2),o.bind(void 0,1,1,0,1,3),o.bind(void 0,1,1,1,0,0),o.bind(void 0,1,1,1,0,1),o.bind(void 0,1,1,1,0,2),o.bind(void 0,1,1,1,0,3),o.bind(void 0,1,1,1,1,0),o.bind(void 0,1,1,1,1,1),o.bind(void 0,1,1,1,1,2),o.bind(void 0,1,1,1,1,3)];function F5(J){this.char=J,this.state={},this.activeState=null}function R9(J,Y,K){this.contextName=K,this.startIndex=J,this.endOffset=Y}function Qz(J,Y,K){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=Y,this.checkEnd=K}function H1(J,Y){this.context=J,this.index=Y,this.length=J.length,this.current=J[Y],this.backtrack=J.slice(0,Y),this.lookahead=J.slice(Y+1)}function k8(J){this.eventId=J,this.subscribers=[]}function Wz(J){var Y=this,K=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(K.forEach(function(X){Object.defineProperty(Y.events,X,{value:new k8(X)})}),J)K.forEach(function(X){var Q=J[X];if(typeof Q==="function")Y.events[X].subscribe(Q)});var Z=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];Z.forEach(function(X){Y.events[X].subscribe(Y.updateContextsRanges)})}function _0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Wz.call(this,J)}F5.prototype.setState=function(J,Y){return this.state[J]=Y,this.activeState={key:J,value:this.state[J]},this.activeState};F5.prototype.getState=function(J){return this.state[J]||null};_0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};_0.prototype.composeRUD=function(J){var Y=this,K=!0,Z=J.map(function(Q){return Y[Q[0]].apply(Y,Q.slice(1).concat(K))}),X=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(Z.every(X))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:Z.filter(X)};this.dispatch("composeRUD",[Z.filter(function(Q){return!X(Q)})])};_0.prototype.replaceRange=function(J,Y,K,Z){Y=Y!==null?Y:this.tokens.length;var X=K.every(function(W){return W instanceof F5});if(!isNaN(J)&&this.inboundIndex(J)&&X){var Q=this.tokens.splice.apply(this.tokens,[J,Y].concat(K));if(!Z)this.dispatch("replaceToken",[J,Y,K]);return[Q,K]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};_0.prototype.replaceToken=function(J,Y,K){if(!isNaN(J)&&this.inboundIndex(J)&&Y instanceof F5){var Z=this.tokens.splice(J,1,Y);if(!K)this.dispatch("replaceToken",[J,Y]);return[Z[0],Y]}else return{FAIL:"replaceToken: invalid token or index."}};_0.prototype.removeRange=function(J,Y,K){Y=!isNaN(Y)?Y:this.tokens.length;var Z=this.tokens.splice(J,Y);if(!K)this.dispatch("removeRange",[Z,J,Y]);return Z};_0.prototype.removeToken=function(J,Y){if(!isNaN(J)&&this.inboundIndex(J)){var K=this.tokens.splice(J,1);if(!Y)this.dispatch("removeToken",[K,J]);return K}else return{FAIL:"removeToken: invalid token index."}};_0.prototype.insertToken=function(J,Y,K){var Z=J.every(function(X){return X instanceof F5});if(Z){if(this.tokens.splice.apply(this.tokens,[Y,0].concat(J)),!K)this.dispatch("insertToken",[J,Y]);return J}else return{FAIL:"insertToken: invalid token(s)."}};_0.prototype.registerModifier=function(J,Y,K){this.events.newToken.subscribe(function(Z,X){var Q=[Z,X],W=Y===null||Y.apply(this,Q)===!0,z=[Z,X];if(W){var $=K.apply(this,z);Z.setState(J,$)}}),this.registeredModifiers.push(J)};k8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};k8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};H1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};_0.prototype.rangeToText=function(J){if(J instanceof R9)return this.getRangeTokens(J).map(function(Y){return Y.char}).join("")};_0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};_0.prototype.getContext=function(J){var Y=this.registeredContexts[J];return Y?Y:null};_0.prototype.on=function(J,Y){var K=this.events[J];if(K)return K.subscribe(Y);else return null};_0.prototype.dispatch=function(J,Y){var K=this,Z=this.events[J];if(Z instanceof k8)Z.subscribers.forEach(function(X){X.apply(K,Y||[])})};_0.prototype.registerContextChecker=function(J,Y,K){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof Y!=="function")return{FAIL:"missing context start check."};if(typeof K!=="function")return{FAIL:"missing context end check."};var Z=new Qz(J,Y,K);return this.registeredContexts[J]=Z,this.contextCheckers.push(Z),Z};_0.prototype.getRangeTokens=function(J){var Y=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,Y))};_0.prototype.getContextRanges=function(J){var Y=this.getContext(J);if(Y)return Y.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};_0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var Y in J)if(J.hasOwnProperty(Y)){var K=J[Y];K.ranges=[]}};_0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(Z){return Z.char});for(var Y=0;Y<J.length;Y++){var K=new H1(J,Y);this.runContextCheck(K)}this.dispatch("updateContextsRanges",[this.registeredContexts])};_0.prototype.setEndOffset=function(J,Y){var K=this.getContext(Y).openRange.startIndex,Z=new R9(K,J,Y),X=this.getContext(Y).ranges;return Z.rangeId=Y+"."+X.length,X.push(Z),this.getContext(Y).openRange=null,Z};_0.prototype.runContextCheck=function(J){var Y=this,K=J.index;this.contextCheckers.forEach(function(Z){var X=Z.contextName,Q=Y.getContext(X).openRange;if(!Q&&Z.checkStart(J))Q=new R9(K,null,X),Y.getContext(X).openRange=Q,Y.dispatch("contextStart",[X,K]);if(!!Q&&Z.checkEnd(J)){var W=K-Q.startIndex+1,z=Y.setEndOffset(W,X);Y.dispatch("contextEnd",[X,z])}})};_0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var Y=Array.from(J);this.dispatch("start");for(var K=0;K<Y.length;K++){var Z=Y[K],X=new H1(Y,K);this.dispatch("next",[X]),this.runContextCheck(X);var Q=new F5(Z);this.tokens.push(Q),this.dispatch("newToken",[Q,X])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function LJ(J){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(J)}function n1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function T8(J){return/[A-z]/.test(J)}function $z(J){return/\s/.test(J)}function a0(J){this.font=J,this.features={}}function K5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function r5(J,Y){if(!J)return-1;switch(Y.format){case 1:return Y.glyphs.indexOf(J);case 2:var K=Y.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(J>=X.start&&J<=X.end){var Q=J-X.start;return X.index+Q}}break;default:return-1}return-1}function zz(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return J+Y.deltaGlyphId}function wz(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.substitute[K]}function N9(J,Y){var K=[];for(var Z=0;Z<J.length;Z++){var X=J[Z],Q=Y.current;Q=Array.isArray(Q)?Q[0]:Q;var W=r5(Q,X);if(W!==-1)K.push(W)}if(K.length!==J.length)return-1;return K}function Uz(J,Y){var K=Y.inputCoverage.length+Y.lookaheadCoverage.length+Y.backtrackCoverage.length;if(J.context.length<K)return[];var Z=N9(Y.inputCoverage,J);if(Z===-1)return[];var X=Y.inputCoverage.length-1;if(J.lookahead.length<Y.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(X);while(Q.length&&n1(Q[0].char))Q.shift();var W=new H1(Q,0),z=N9(Y.lookaheadCoverage,W),$=[].concat(J.backtrack);$.reverse();while($.length&&n1($[0].char))$.shift();if($.length<Y.backtrackCoverage.length)return[];var w=new H1($,0),U=N9(Y.backtrackCoverage,w),H=Z.length===Y.inputCoverage.length&&z.length===Y.lookaheadCoverage.length&&U.length===Y.backtrackCoverage.length,V=[];if(H)for(var A=0;A<Y.lookupRecords.length;A++){var M=Y.lookupRecords[A],B=M.lookupListIndex,O=this.getLookupByIndex(B);for(var N=0;N<O.subtables.length;N++){var j=O.subtables[N],E=this.getLookupMethod(O,j),I=this.getSubstitutionType(O,j);if(I==="12")for(var F=0;F<Z.length;F++){var q=J.get(F),T=E(q);if(T)V.push(T)}}}return V}function Hz(J,Y){var K=J.current,Z=r5(K,Y.coverage);if(Z===-1)return null;var X,Q=Y.ligatureSets[Z];for(var W=0;W<Q.length;W++){X=Q[W];for(var z=0;z<X.components.length;z++){var $=J.lookahead[z],w=X.components[z];if($!==w)break;if(z===X.components.length-1)return X}}return null}function Vz(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.sequences[K]}a0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var Y=0;Y<J.length;Y++){var K=J[Y];if(K.tag==="DFLT")return K.script.defaultLangSys.featureIndexes}return[]};a0.prototype.getScriptFeaturesIndexes=function(J){var Y=this.font.tables;if(!Y.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var K=this.font.tables.gsub.scripts;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(X.tag===J&&X.script.defaultLangSys)return X.script.defaultLangSys.featureIndexes;else{var Q=X.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var z=Q[W];if(z.tag===J){var $=z.langSys;return $.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};a0.prototype.mapTagsToFeatures=function(J,Y){var K={};for(var Z=0;Z<J.length;Z++){var X=J[Z].tag,Q=J[Z].feature;K[X]=Q}this.features[Y].tags=K};a0.prototype.getScriptFeatures=function(J){var Y=this.features[J];if(this.features.hasOwnProperty(J))return Y;var K=this.getScriptFeaturesIndexes(J);if(!K)return null;var Z=this.font.tables.gsub;return Y=K.map(function(X){return Z.features[X]}),this.features[J]=Y,this.mapTagsToFeatures(Y,J),Y};a0.prototype.getSubstitutionType=function(J,Y){var K=J.lookupType.toString(),Z=Y.substFormat.toString();return K+Z};a0.prototype.getLookupMethod=function(J,Y){var K=this,Z=this.getSubstitutionType(J,Y);switch(Z){case"11":return function(X){return zz.apply(K,[X,Y])};case"12":return function(X){return wz.apply(K,[X,Y])};case"63":return function(X){return Uz.apply(K,[X,Y])};case"41":return function(X){return Hz.apply(K,[X,Y])};case"21":return function(X){return Vz.apply(K,[X,Y])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+Y.substFormat+" is not yet supported")}};a0.prototype.lookupFeature=function(J){var Y=J.contextParams,K=Y.index,Z=this.getFeature({tag:J.tag,script:J.script});if(!Z)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var X=this.getFeatureLookups(Z),Q=[].concat(Y.context);for(var W=0;W<X.length;W++){var z=X[W],$=this.getLookupSubtables(z);for(var w=0;w<$.length;w++){var U=$[w],H=this.getSubstitutionType(z,U),V=this.getLookupMethod(z,U),A=void 0;switch(H){case"11":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:11,tag:J.tag,substitution:A}));break;case"12":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:12,tag:J.tag,substitution:A}));break;case"63":if(A=V(Y),Array.isArray(A)&&A.length)Q.splice(K,1,new K5({id:63,tag:J.tag,substitution:A}));break;case"41":if(A=V(Y),A)Q.splice(K,1,new K5({id:41,tag:J.tag,substitution:A}));break;case"21":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:21,tag:J.tag,substitution:A}));break}if(Y=new H1(Q,K),Array.isArray(A)&&!A.length)continue;A=null}}return Q.length?Q:null};a0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var Y=this.features.hasOwnProperty(J.script);if(!J.tag)return Y;var K=this.features[J.script].some(function(Z){return Z.tag===J.tag});return Y&&K};a0.prototype.getLookupSubtables=function(J){return J.subtables||null};a0.prototype.getLookupByIndex=function(J){var Y=this.font.tables.gsub.lookups;return Y[J]||null};a0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};a0.prototype.getFeature=function(Y){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(Y.script))this.getScriptFeatures(Y.script);var K=this.features[Y.script];if(!K)return{FAIL:"No feature for script "+Y.script};if(!K.tags[Y.tag])return null;return this.features[Y.script].tags[Y.tag]};function Az(J){var Y=J.current,K=J.get(-1);return K===null&&i1(Y)||!i1(K)&&i1(Y)}function Bz(J){var Y=J.get(1);return Y===null||!i1(Y)}var Gz={startCheck:Az,endCheck:Bz};function Oz(J){var Y=J.current,K=J.get(-1);return(i1(Y)||n1(Y))&&!i1(K)}function Mz(J){var Y=J.get(1);switch(!0){case Y===null:return!0;case(!i1(Y)&&!n1(Y)):var K=$z(Y);if(!K)return!0;if(K){var Z=!1;if(Z=J.lookahead.some(function(X){return i1(X)||n1(X)}),!Z)return!0}break;default:return!1}}var Lz={startCheck:Oz,endCheck:Mz};function Nz(J,Y,K){Y[K].setState(J.tag,J.substitution)}function jz(J,Y,K){Y[K].setState(J.tag,J.substitution)}function qz(J,Y,K){J.substitution.forEach(function(Z,X){var Q=Y[K+X];Q.setState(J.tag,Z)})}function Ez(J,Y,K){var Z=Y[K];Z.setState(J.tag,J.substitution.ligGlyph);var X=J.substitution.components.length;for(var Q=0;Q<X;Q++)Z=Y[K+Q+1],Z.setState("deleted",!0)}var p2={11:Nz,12:jz,63:qz,41:Ez};function C9(J,Y,K){if(J instanceof K5&&p2[J.id])p2[J.id](J,Y,K)}function Fz(J){var Y=[].concat(J.backtrack);for(var K=Y.length-1;K>=0;K--){var Z=Y[K],X=LJ(Z),Q=n1(Z);if(!X&&!Q)return!0;if(X)return!1}return!1}function _z(J){if(LJ(J.current))return!1;for(var Y=0;Y<J.lookahead.length;Y++){var K=J.lookahead[Y],Z=n1(K);if(!Z)return!0}return!1}function Iz(J){var Y=this,K="arab",Z=this.featuresTags[K],X=this.tokenizer.getRangeTokens(J);if(X.length===1)return;var Q=new H1(X.map(function(z){return z.getState("glyphIndex")}),0),W=new H1(X.map(function(z){return z.char}),0);X.forEach(function(z,$){if(n1(z.char))return;Q.setCurrentIndex($),W.setCurrentIndex($);var w=0;if(Fz(W))w|=1;if(_z(W))w|=2;var U;switch(w){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(Z.indexOf(U)===-1)return;var H=Y.query.lookupFeature({tag:U,script:K,contextParams:Q});if(H instanceof Error)return console.info(H.message);H.forEach(function(V,A){if(V instanceof K5)C9(V,X,A),Q.context[A]=V.substitution})})}function i2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Dz(J){var Y=this,K="arab",Z=this.tokenizer.getRangeTokens(J),X=i2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var z=Y.query.lookupFeature({tag:"rlig",script:K,contextParams:X});if(z.length)z.forEach(function($){return C9($,Z,W)}),X=i2(Z)})}function Rz(J){var Y=J.current,K=J.get(-1);return K===null&&T8(Y)||!T8(K)&&T8(Y)}function Cz(J){var Y=J.get(1);return Y===null||!T8(Y)}var Tz={startCheck:Rz,endCheck:Cz};function n2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Pz(J){var Y=this,K="latn",Z=this.tokenizer.getRangeTokens(J),X=n2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var z=Y.query.lookupFeature({tag:"liga",script:K,contextParams:X});if(z.length)z.forEach(function($){return C9($,Z,W)}),X=n2(Z)})}function B1(J){this.baseDir=J||"ltr",this.tokenizer=new _0,this.featuresTags={}}B1.prototype.setText=function(J){this.text=J};B1.prototype.contextChecks={latinWordCheck:Tz,arabicWordCheck:Gz,arabicSentenceCheck:Lz};function j9(J){var Y=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,Y.startCheck,Y.endCheck)}function Sz(){return j9.call(this,"latinWord"),j9.call(this,"arabicWord"),j9.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function vz(){var J=this,Y=this.tokenizer.getContextRanges("arabicSentence");Y.forEach(function(K){var Z=J.tokenizer.getRangeTokens(K);J.tokenizer.replaceRange(K.startIndex,K.endOffset,Z.reverse())})}B1.prototype.registerFeatures=function(J,Y){var K=this,Z=Y.filter(function(X){return K.query.supports({script:J,tag:X})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=Z;else this.featuresTags[J]=this.featuresTags[J].concat(Z)};B1.prototype.applyFeatures=function(J,Y){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new a0(J);for(var K=0;K<Y.length;K++){var Z=Y[K];if(!this.query.supports({script:Z.script}))continue;this.registerFeatures(Z.script,Z.tags)}};B1.prototype.registerModifier=function(J,Y,K){this.tokenizer.registerModifier(J,Y,K)};function T9(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function kz(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;T9.call(this);var K=this.tokenizer.getContextRanges("arabicWord");K.forEach(function(Z){Iz.call(J,Z)})}function yz(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("rlig")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("arabicWord");Z.forEach(function(X){Dz.call(J,X)})}function gz(){var J=this,Y="latn";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("liga")===-1)return;T9.call(this);var Z=this.tokenizer.getContextRanges("latinWord");Z.forEach(function(X){Pz.call(J,X)})}B1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};B1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))kz.call(this),yz.call(this);if(this.checkContextReady("latinWord"))gz.call(this);if(this.checkContextReady("arabicSentence"))vz.call(this)};B1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),Sz.call(this),this.applyFeaturesToContexts()};B1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};B1.prototype.getTextGlyphs=function(J){this.processText(J);var Y=[];for(var K=0;K<this.tokenizer.tokens.length;K++){var Z=this.tokenizer.tokens[K];if(Z.state.deleted)continue;var X=Z.activeState.value;Y.push(Array.isArray(X)?X[0]:X)}return Y};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)m5(J.familyName,"When creating a new Font object, familyName is required."),m5(J.styleName,"When creating a new Font object, styleName is required."),m5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),m5(J.ascender,"When creating a new Font object, ascender is required."),m5(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new I1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new i5(this),this.substitution=new s0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new BJ(this)}})}m0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};m0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};m0.prototype.charToGlyph=function(J){var Y=this.charToGlyphIndex(J),K=this.glyphs.get(Y);if(!K)K=this.glyphs.get(0);return K};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(Y){if(Y.script==="latn")return{script:"latn",tags:Y.tags.filter(function(K){return J[K]})};else return Y})};m0.prototype.stringToGlyphs=function(J,Y){var K=this,Z=new B1,X=function(H){return K.charToGlyphIndex(H.char)};Z.registerModifier("glyphIndex",null,X);var Q=Y?this.updateFeatures(Y.features):this.defaultRenderOptions.features;Z.applyFeatures(this,Q);var W=Z.getTextGlyphs(J),z=W.length,$=Array(z),w=this.glyphs.get(0);for(var U=0;U<z;U+=1)$[U]=this.glyphs.get(W[U])||w;return $};m0.prototype.getKerningValue=function(J,Y){J=J.index||J,Y=Y.index||Y;var K=this.position.defaultKerningTables;if(K)return this.position.getKerningValue(K,J,Y);return this.kerningPairs[J+","+Y]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,Y,K,Z,X,Q){Y=Y!==void 0?Y:0,K=K!==void 0?K:0,Z=Z!==void 0?Z:72,X=Object.assign({},this.defaultRenderOptions,X);var W=1/this.unitsPerEm*Z,z=this.stringToGlyphs(J,X),$;if(X.kerning){var w=X.script||this.position.getDefaultScriptName();$=this.position.getKerningTables(w,X.language)}for(var U=0;U<z.length;U+=1){var H=z[U];if(Q.call(this,H,Y,K,Z,X),H.advanceWidth)Y+=H.advanceWidth*W;if(X.kerning&&U<z.length-1){var V=$?this.position.getKerningValue($,H.index,z[U+1].index):this.getKerningValue(H,z[U+1]);Y+=V*W}if(X.letterSpacing)Y+=X.letterSpacing*Z;else if(X.tracking)Y+=X.tracking/1000*Z}return Y};m0.prototype.getPath=function(J,Y,K,Z,X){var Q=new f0;return this.forEachGlyph(J,Y,K,Z,X,function(W,z,$,w){var U=W.getPath(z,$,w,X,this);Q.extend(U)}),Q};m0.prototype.getPaths=function(J,Y,K,Z,X){var Q=[];return this.forEachGlyph(J,Y,K,Z,X,function(W,z,$,w){var U=W.getPath(z,$,w,X,this);Q.push(U)}),Q};m0.prototype.getAdvanceWidth=function(J,Y,K){return this.forEachGlyph(J,0,0,Y,K,function(){})};m0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};m0.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};m0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function hz(J,Y){Y.parseUShort(),J.length=Y.parseULong(),J.language=Y.parseULong();var K;J.groupCount=K=Y.parseULong(),J.glyphIndexMap={};for(var Z=0;Z<K;Z+=1){var X=Y.parseULong(),Q=Y.parseULong(),W=Y.parseULong();for(var z=X;z<=Q;z+=1)J.glyphIndexMap[z]=W,W++}}function xz(J,Y,K,Z,X){J.length=Y.parseUShort(),J.language=Y.parseUShort();var Q;J.segCount=Q=Y.parseUShort()>>1,Y.skip("uShort",3),J.glyphIndexMap={};var W=new r.Parser(K,Z+X+14),z=new r.Parser(K,Z+X+16+Q*2),$=new r.Parser(K,Z+X+16+Q*4),w=new r.Parser(K,Z+X+16+Q*6),U=Z+X+16+Q*8;for(var H=0;H<Q-1;H+=1){var V=void 0,A=W.parseUShort(),M=z.parseUShort(),B=$.parseShort(),O=w.parseUShort();for(var N=M;N<=A;N+=1){if(O!==0){if(U=w.offset+w.relativeOffset-2,U+=O,U+=(N-M)*2,V=r.getUShort(K,U),V!==0)V=V+B&65535}else V=N+B&65535;J.glyphIndexMap[N]=V}}}function bz(J,Y){var K={};K.version=r.getUShort(J,Y),H0.argument(K.version===0,"cmap table version should be 0."),K.numTables=r.getUShort(J,Y+2);var Z=-1;for(var X=K.numTables-1;X>=0;X-=1){var Q=r.getUShort(J,Y+4+X*8),W=r.getUShort(J,Y+4+X*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){Z=r.getULong(J,Y+4+X*8+4);break}}if(Z===-1)throw Error("No valid cmap sub-tables found.");var z=new r.Parser(J,Y+Z);if(K.format=z.parseUShort(),K.format===12)hz(K,z);else if(K.format===4)xz(K,z,J,Y,Z);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+K.format+").");return K}var fz={parse:bz};function F9(J){var Y;if(J.length<1240)Y=107;else if(J.length<33900)Y=1131;else Y=32768;return Y}function l1(J,Y,K){var Z=[],X=[],Q=r.getCard16(J,Y),W,z;if(Q!==0){var $=r.getByte(J,Y+2);W=Y+(Q+1)*$+2;var w=Y+3;for(var U=0;U<Q+1;U+=1)Z.push(r.getOffset(J,w,$)),w+=$;z=W+Z[Q]}else z=Y+2;for(var H=0;H<Z.length-1;H+=1){var V=r.getBytes(J,W+Z[H],W+Z[H+1]);if(K)V=K(V);X.push(V)}return{objects:X,startOffset:Y,endOffset:z}}function mz(J,Y){var K=[],Z=r.getCard16(J,Y),X,Q;if(Z!==0){var W=r.getByte(J,Y+2);X=Y+(Z+1)*W+2;var z=Y+3;for(var $=0;$<Z+1;$+=1)K.push(r.getOffset(J,z,W)),z+=W;Q=X+K[Z]}else Q=Y+2;return{offsets:K,startOffset:Y,endOffset:Q}}function dz(J,Y,K,Z,X){var Q=r.getCard16(K,Z),W=0;if(Q!==0){var z=r.getByte(K,Z+2);W=Z+(Q+1)*z+2}var $=r.getBytes(K,W+Y[J],W+Y[J+1]);if(X)$=X($);return $}function cz(J){var Y="",K=15,Z=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var X=J.parseByte(),Q=X>>4,W=X&15;if(Q===K)break;if(Y+=Z[Q],W===K)break;Y+=Z[W]}return parseFloat(Y)}function uz(J,Y){var K,Z,X,Q;if(Y===28)return K=J.parseByte(),Z=J.parseByte(),K<<8|Z;if(Y===29)return K=J.parseByte(),Z=J.parseByte(),X=J.parseByte(),Q=J.parseByte(),K<<24|Z<<16|X<<8|Q;if(Y===30)return cz(J);if(Y>=32&&Y<=246)return Y-139;if(Y>=247&&Y<=250)return K=J.parseByte(),(Y-247)*256+K+108;if(Y>=251&&Y<=254)return K=J.parseByte(),-(Y-251)*256-K-108;throw Error("Invalid b0 "+Y)}function lz(J){var Y={};for(var K=0;K<J.length;K+=1){var Z=J[K][0],X=J[K][1],Q=void 0;if(X.length===1)Q=X[0];else Q=X;if(Y.hasOwnProperty(Z)&&!isNaN(Y[Z]))throw Error("Object "+Y+" already has key "+Z);Y[Z]=Q}return Y}function NJ(J,Y,K){Y=Y!==void 0?Y:0;var Z=new r.Parser(J,Y),X=[],Q=[];K=K!==void 0?K:J.length;while(Z.relativeOffset<K){var W=Z.parseByte();if(W<=21){if(W===12)W=1200+Z.parseByte();X.push([W,Q]),Q=[]}else Q.push(uz(Z,W))}return lz(X)}function c5(J,Y){if(Y<=390)Y=wW[Y];else Y=J[Y-391];return Y}function jJ(J,Y,K){var Z={},X;for(var Q=0;Q<Y.length;Q+=1){var W=Y[Q];if(Array.isArray(W.type)){var z=[];z.length=W.type.length;for(var $=0;$<W.type.length;$++){if(X=J[W.op]!==void 0?J[W.op][$]:void 0,X===void 0)X=W.value!==void 0&&W.value[$]!==void 0?W.value[$]:null;if(W.type[$]==="SID")X=c5(K,X);z[$]=X}Z[W.name]=z}else{if(X=J[W.op],X===void 0)X=W.value!==void 0?W.value:null;if(W.type==="SID")X=c5(K,X);Z[W.name]=X}}return Z}function pz(J,Y){var K={};return K.formatMajor=r.getCard8(J,Y),K.formatMinor=r.getCard8(J,Y+1),K.size=r.getCard8(J,Y+2),K.offsetSize=r.getCard8(J,Y+3),K.startOffset=Y,K.endOffset=Y+4,K}var iz=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[0.001,0,0,0.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],nz=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function oz(J,Y){var K=NJ(J,0,J.byteLength);return jJ(K,iz,Y)}function qJ(J,Y,K,Z){var X=NJ(J,Y,K);return jJ(X,nz,Z)}function o2(J,Y,K,Z){var X=[];for(var Q=0;Q<K.length;Q+=1){var W=new DataView(new Uint8Array(K[Q]).buffer),z=oz(W,Z);z._subrs=[],z._subrsBias=0,z._defaultWidthX=0,z._nominalWidthX=0;var $=z.private[0],w=z.private[1];if($!==0&&w!==0){var U=qJ(J,w+Y,$,Z);if(z._defaultWidthX=U.defaultWidthX,z._nominalWidthX=U.nominalWidthX,U.subrs!==0){var H=w+U.subrs,V=l1(J,H+Y);z._subrs=V.objects,z._subrsBias=F9(z._subrs)}z._privateDict=U}X.push(z)}return X}function rz(J,Y,K,Z){var X,Q,W=new r.Parser(J,Y);K-=1;var z=[".notdef"],$=W.parseCard8();if($===0)for(var w=0;w<K;w+=1)X=W.parseSID(),z.push(c5(Z,X));else if($===1)while(z.length<=K){X=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)z.push(c5(Z,X)),X+=1}else if($===2)while(z.length<=K){X=W.parseSID(),Q=W.parseCard16();for(var H=0;H<=Q;H+=1)z.push(c5(Z,X)),X+=1}else throw Error("Unknown charset format "+$);return z}function sz(J,Y,K){var Z,X={},Q=new r.Parser(J,Y),W=Q.parseCard8();if(W===0){var z=Q.parseCard8();for(var $=0;$<z;$+=1)Z=Q.parseCard8(),X[Z]=$}else if(W===1){var w=Q.parseCard8();Z=1;for(var U=0;U<w;U+=1){var H=Q.parseCard8(),V=Q.parseCard8();for(var A=H;A<=H+V;A+=1)X[A]=Z,Z+=1}}else throw Error("Unknown encoding format "+W);return new P8(X,K)}function r2(J,Y,K){var Z,X,Q,W,z=new f0,$=[],w=0,U=!1,H=!1,V=0,A=0,M,B,O,N;if(J.isCIDFont){var j=J.tables.cff.topDict._fdSelect[Y.index],E=J.tables.cff.topDict._fdArray[j];M=E._subrs,B=E._subrsBias,O=E._defaultWidthX,N=E._nominalWidthX}else M=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,O=J.tables.cff.topDict._defaultWidthX,N=J.tables.cff.topDict._nominalWidthX;var I=O;function F(D,R){if(H)z.closePath();z.moveTo(D,R),H=!0}function q(){var D=$.length%2!==0;if(D&&!U)I=$.shift()+N;w+=$.length>>1,$.length=0,U=!0}function T(D){var R,g,c,i,p,S,v,C,m,u,a,n,f=0;while(f<D.length){var d=D[f];switch(f+=1,d){case 1:q();break;case 3:q();break;case 4:if($.length>1&&!U)I=$.shift()+N,U=!0;A+=$.pop(),F(V,A);break;case 5:while($.length>0)V+=$.shift(),A+=$.shift(),z.lineTo(V,A);break;case 6:while($.length>0){if(V+=$.shift(),z.lineTo(V,A),$.length===0)break;A+=$.shift(),z.lineTo(V,A)}break;case 7:while($.length>0){if(A+=$.shift(),z.lineTo(V,A),$.length===0)break;V+=$.shift(),z.lineTo(V,A)}break;case 8:while($.length>0)Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 10:if(p=$.pop()+B,S=M[p],S)T(S);break;case 11:return;case 12:switch(d=D[f],f+=1,d){case 35:Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W+$.shift(),m=v+$.shift(),u=C+$.shift(),a=m+$.shift(),n=u+$.shift(),V=a+$.shift(),A=n+$.shift(),$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,u,a,n,V,A);break;case 34:Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W,m=v+$.shift(),u=W,a=m+$.shift(),n=A,V=a+$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,u,a,n,V,A);break;case 36:Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W,m=v+$.shift(),u=W,a=m+$.shift(),n=u+$.shift(),V=a+$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,u,a,n,V,A);break;case 37:if(Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W+$.shift(),m=v+$.shift(),u=C+$.shift(),a=m+$.shift(),n=u+$.shift(),Math.abs(a-V)>Math.abs(n-A))V=a+$.shift();else A=n+$.shift();z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,u,a,n,V,A);break;default:console.log("Glyph "+Y.index+": unknown operator 1200"+d),$.length=0}break;case 14:if($.length>0&&!U)I=$.shift()+N,U=!0;if(H)z.closePath(),H=!1;break;case 18:q();break;case 19:case 20:q(),f+=w+7>>3;break;case 21:if($.length>2&&!U)I=$.shift()+N,U=!0;A+=$.pop(),V+=$.pop(),F(V,A);break;case 22:if($.length>1&&!U)I=$.shift()+N,U=!0;V+=$.pop(),F(V,A);break;case 23:q();break;case 24:while($.length>2)Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);V+=$.shift(),A+=$.shift(),z.lineTo(V,A);break;case 25:while($.length>6)V+=$.shift(),A+=$.shift(),z.lineTo(V,A);Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 26:if($.length%2)V+=$.shift();while($.length>0)Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q,A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 27:if($.length%2)A+=$.shift();while($.length>0)Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W,z.curveTo(Z,X,Q,W,V,A);break;case 28:R=D[f],g=D[f+1],$.push((R<<24|g<<16)>>16),f+=2;break;case 29:if(p=$.pop()+J.gsubrsBias,S=J.gsubrs[p],S)T(S);break;case 30:while($.length>0){if(Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A),$.length===0)break;Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),A=W+$.shift(),V=Q+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A)}break;case 31:while($.length>0){if(Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),A=W+$.shift(),V=Q+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A),$.length===0)break;Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A)}break;default:if(d<32)console.log("Glyph "+Y.index+": unknown operator "+d);else if(d<247)$.push(d-139);else if(d<251)R=D[f],f+=1,$.push((d-247)*256+R+108);else if(d<255)R=D[f],f+=1,$.push(-(d-251)*256-R-108);else R=D[f],g=D[f+1],c=D[f+2],i=D[f+3],f+=4,$.push((R<<24|g<<16|c<<8|i)/65536)}}}return T(K),Y.advanceWidth=I,z}function az(J,Y,K,Z){var X=[],Q,W=new r.Parser(J,Y),z=W.parseCard8();if(z===0)for(var $=0;$<K;$++){if(Q=W.parseCard8(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");X.push(Q)}else if(z===3){var w=W.parseCard16(),U=W.parseCard16();if(U!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var H;for(var V=0;V<w;V++){if(Q=W.parseCard8(),H=W.parseCard16(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");if(H>K)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+H);for(;U<H;U++)X.push(Q);U=H}if(H!==K)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+H)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+z);return X}function tz(J,Y,K,Z){K.tables.cff={};var X=pz(J,Y),Q=l1(J,X.endOffset,r.bytesToString),W=l1(J,Q.endOffset),z=l1(J,W.endOffset,r.bytesToString),$=l1(J,z.endOffset);K.gsubrs=$.objects,K.gsubrsBias=F9(K.gsubrs);var w=o2(J,Y,W.objects,z.objects);if(w.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+w.length);var U=w[0];if(K.tables.cff.topDict=U,U._privateDict)K.defaultWidthX=U._privateDict.defaultWidthX,K.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)K.isCIDFont=!0;if(K.isCIDFont){var{fdArray:H,fdSelect:V}=U;if(H===0||V===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");H+=Y;var A=l1(J,H),M=o2(J,Y,A.objects,z.objects);U._fdArray=M,V+=Y,U._fdSelect=az(J,V,K.numGlyphs,M.length)}var B=Y+U.private[1],O=qJ(J,B,U.private[0],z.objects);if(K.defaultWidthX=O.defaultWidthX,K.nominalWidthX=O.nominalWidthX,O.subrs!==0){var N=B+O.subrs,j=l1(J,N);K.subrs=j.objects,K.subrsBias=F9(K.subrs)}else K.subrs=[],K.subrsBias=0;var E;if(Z.lowMemory)E=mz(J,Y+U.charStrings),K.nGlyphs=E.offsets.length;else E=l1(J,Y+U.charStrings),K.nGlyphs=E.objects.length;var I=rz(J,Y+U.charset,K.nGlyphs,z.objects);if(U.encoding===0)K.cffEncoding=new P8(UW,I);else if(U.encoding===1)K.cffEncoding=new P8(HW,I);else K.cffEncoding=sz(J,Y+U.encoding,I);if(K.encoding=K.encoding||K.cffEncoding,K.glyphs=new I1.GlyphSet(K),Z.lowMemory)K._push=function(T){var D=dz(T,E.offsets,J,Y+U.charStrings);K.glyphs.push(T,I1.cffGlyphLoader(K,T,r2,D))};else for(var F=0;F<K.nGlyphs;F+=1){var q=E.objects[F];K.glyphs.push(F,I1.cffGlyphLoader(K,F,r2,q))}}var ez={parse:tz};function Jw(J,Y,K){var Z={},X=new r.Parser(J,Y);return Z.tag=X.parseTag(),Z.minValue=X.parseFixed(),Z.defaultValue=X.parseFixed(),Z.maxValue=X.parseFixed(),X.skip("uShort",1),Z.name=K[X.parseUShort()]||{},Z}function Yw(J,Y,K,Z){var X={},Q=new r.Parser(J,Y);X.name=Z[Q.parseUShort()]||{},Q.skip("uShort",1),X.coordinates={};for(var W=0;W<K.length;++W)X.coordinates[K[W].tag]=Q.parseFixed();return X}function Kw(J,Y,K){var Z=new r.Parser(J,Y),X=Z.parseULong();H0.argument(X===65536,"Unsupported fvar table version.");var Q=Z.parseOffset16();Z.skip("uShort",1);var W=Z.parseUShort(),z=Z.parseUShort(),$=Z.parseUShort(),w=Z.parseUShort(),U=[];for(var H=0;H<W;H++)U.push(Jw(J,Y+Q+H*z,K));var V=[],A=Y+Q+W*z;for(var M=0;M<$;M++)V.push(Yw(J,A+M*w,U,K));return{axes:U,instances:V}}var Zw={parse:Kw},Xw=function(){return{coverage:this.parsePointer(y.coverage),attachPoints:this.parseList(y.pointer(y.uShortList))}},Qw=function(){var J=this.parseUShort();if(H0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},Ww=function(){return this.parseList(y.pointer(Qw))},$w=function(){return{coverage:this.parsePointer(y.coverage),ligGlyphs:this.parseList(y.pointer(Ww))}},zw=function(){return this.parseUShort(),this.parseList(y.pointer(y.coverage))};function ww(J,Y){Y=Y||0;var K=new y(J,Y),Z=K.parseVersion(1);H0.argument(Z===1||Z===1.2||Z===1.3,"Unsupported GDEF table version.");var X={version:Z,classDef:K.parsePointer(y.classDef),attachList:K.parsePointer(Xw),ligCaretList:K.parsePointer($w),markAttachClassDef:K.parsePointer(y.classDef)};if(Z>=1.2)X.markGlyphSets=K.parsePointer(zw);return X}var Uw={parse:ww},V1=[,,,,,,,,,,];V1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{posFormat:1,coverage:this.parsePointer(y.coverage),value:this.parseValueRecord()};else if(K===2)return{posFormat:2,coverage:this.parsePointer(y.coverage),values:this.parseValueRecordList()};H0.assert(!1,"0x"+Y.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};V1[2]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();H0.assert(K===1||K===2,"0x"+Y.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var Z=this.parsePointer(y.coverage),X=this.parseUShort(),Q=this.parseUShort();if(K===1)return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,pairSets:this.parseList(y.pointer(y.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}})))};else if(K===2){var W=this.parsePointer(y.classDef),z=this.parsePointer(y.classDef),$=this.parseUShort(),w=this.parseUShort();return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,classDef1:W,classDef2:z,class1Count:$,class2Count:w,classRecords:this.parseList($,y.list(w,function(){return{value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}}))}}};V1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};V1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};V1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};V1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};V1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};V1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};V1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function Hw(J,Y){Y=Y||0;var K=new y(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GPOS table version "+Z),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1),variations:K.parseFeatureVariationsList()}}var Vw={parse:Hw},A1=[,,,,,,,,,];A1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(y.coverage),deltaGlyphId:this.parseUShort()};else if(K===2)return{substFormat:2,coverage:this.parsePointer(y.coverage),substitute:this.parseOffset16List()};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 1 format must be 1 or 2.")};A1[2]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(y.coverage),sequences:this.parseListOfLists()}};A1[3]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(y.coverage),alternateSets:this.parseListOfLists()}};A1[4]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB ligature table identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(y.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var E5={sequenceIndex:y.uShort,lookupListIndex:y.uShort};A1[5]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:K,coverage:this.parsePointer(y.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,E5)}})};else if(K===2)return{substFormat:K,coverage:this.parsePointer(y.coverage),classDef:this.parsePointer(y.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,E5)}})};else if(K===3){var Z=this.parseUShort(),X=this.parseUShort();return{substFormat:K,coverages:this.parseList(Z,y.pointer(y.coverage)),lookupRecords:this.parseRecordList(X,E5)}}H0.assert(!1,"0x"+Y.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};A1[6]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(y.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(K===2)return{substFormat:2,coverage:this.parsePointer(y.coverage),backtrackClassDef:this.parsePointer(y.classDef),inputClassDef:this.parsePointer(y.classDef),lookaheadClassDef:this.parsePointer(y.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(K===3)return{substFormat:3,backtrackCoverage:this.parseList(y.pointer(y.coverage)),inputCoverage:this.parseList(y.pointer(y.coverage)),lookaheadCoverage:this.parseList(y.pointer(y.coverage)),lookupRecords:this.parseRecordList(E5)};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};A1[7]=function(){var Y=this.parseUShort();H0.argument(Y===1,"GSUB Extension Substitution subtable identifier-format must be 1");var K=this.parseUShort(),Z=new y(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:K,extension:A1[K].call(Z)}};A1[8]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(y.coverage),backtrackCoverage:this.parseList(y.pointer(y.coverage)),lookaheadCoverage:this.parseList(y.pointer(y.coverage)),substitutes:this.parseUShortList()}};function Aw(J,Y){Y=Y||0;var K=new y(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GSUB table version."),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1),variations:K.parseFeatureVariationsList()}}var Bw={parse:Aw};function Gw(J,Y){var K={},Z=new r.Parser(J,Y);return K.version=Z.parseVersion(),K.fontRevision=Math.round(Z.parseFixed()*1000)/1000,K.checkSumAdjustment=Z.parseULong(),K.magicNumber=Z.parseULong(),H0.argument(K.magicNumber===1594834165,"Font header has wrong magic number."),K.flags=Z.parseUShort(),K.unitsPerEm=Z.parseUShort(),K.created=Z.parseLongDateTime(),K.modified=Z.parseLongDateTime(),K.xMin=Z.parseShort(),K.yMin=Z.parseShort(),K.xMax=Z.parseShort(),K.yMax=Z.parseShort(),K.macStyle=Z.parseUShort(),K.lowestRecPPEM=Z.parseUShort(),K.fontDirectionHint=Z.parseShort(),K.indexToLocFormat=Z.parseShort(),K.glyphDataFormat=Z.parseShort(),K}var Ow={parse:Gw};function Mw(J,Y){var K={},Z=new r.Parser(J,Y);return K.version=Z.parseVersion(),K.ascender=Z.parseShort(),K.descender=Z.parseShort(),K.lineGap=Z.parseShort(),K.advanceWidthMax=Z.parseUShort(),K.minLeftSideBearing=Z.parseShort(),K.minRightSideBearing=Z.parseShort(),K.xMaxExtent=Z.parseShort(),K.caretSlopeRise=Z.parseShort(),K.caretSlopeRun=Z.parseShort(),K.caretOffset=Z.parseShort(),Z.relativeOffset+=8,K.metricDataFormat=Z.parseShort(),K.numberOfHMetrics=Z.parseUShort(),K}var Lw={parse:Mw};function Nw(J,Y,K,Z,X){var Q,W,z=new r.Parser(J,Y);for(var $=0;$<Z;$+=1){if($<K)Q=z.parseUShort(),W=z.parseShort();var w=X.get($);w.advanceWidth=Q,w.leftSideBearing=W}}function jw(J,Y,K,Z,X){J._hmtxTableData={};var Q,W,z=new r.Parser(Y,K);for(var $=0;$<X;$+=1){if($<Z)Q=z.parseUShort(),W=z.parseShort();J._hmtxTableData[$]={advanceWidth:Q,leftSideBearing:W}}}function qw(J,Y,K,Z,X,Q,W){if(W.lowMemory)jw(J,Y,K,Z,X);else Nw(Y,K,Z,X,Q)}var Ew={parse:qw};function Fw(J){var Y={};J.skip("uShort");var K=J.parseUShort();H0.argument(K===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var Z=J.parseUShort();J.skip("uShort",3);for(var X=0;X<Z;X+=1){var Q=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();Y[Q+","+W]=z}return Y}function _w(J){var Y={};J.skip("uShort");var K=J.parseULong();if(K>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var Z=J.parseUShort(),X=Z&255;if(J.skip("uShort"),X===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var z=J.parseUShort(),$=J.parseUShort(),w=J.parseShort();Y[z+","+$]=w}}return Y}function Iw(J,Y){var K=new r.Parser(J,Y),Z=K.parseUShort();if(Z===0)return Fw(K);else if(Z===1)return _w(K);else throw Error("Unsupported kern table version ("+Z+").")}var Dw={parse:Iw};function Rw(J,Y){var K=new r.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported ltag table version."),K.skip("uLong",1);var X=K.parseULong(),Q=[];for(var W=0;W<X;W++){var z="",$=Y+K.parseUShort(),w=K.parseUShort();for(var U=$;U<$+w;++U)z+=String.fromCharCode(J.getInt8(U));Q.push(z)}return Q}var Cw={parse:Rw};function Tw(J,Y,K,Z){var X=new r.Parser(J,Y),Q=Z?X.parseUShort:X.parseULong,W=[];for(var z=0;z<K+1;z+=1){var $=Q.call(X);if(Z)$*=2;W.push($)}return W}var Pw={parse:Tw};function Sw(J,Y){var K={},Z=new r.Parser(J,Y);if(K.version=Z.parseVersion(),K.numGlyphs=Z.parseUShort(),K.version===1)K.maxPoints=Z.parseUShort(),K.maxContours=Z.parseUShort(),K.maxCompositePoints=Z.parseUShort(),K.maxCompositeContours=Z.parseUShort(),K.maxZones=Z.parseUShort(),K.maxTwilightPoints=Z.parseUShort(),K.maxStorage=Z.parseUShort(),K.maxFunctionDefs=Z.parseUShort(),K.maxInstructionDefs=Z.parseUShort(),K.maxStackElements=Z.parseUShort(),K.maxSizeOfInstructions=Z.parseUShort(),K.maxComponentElements=Z.parseUShort(),K.maxComponentDepth=Z.parseUShort();return K}var vw={parse:Sw};function kw(J,Y){var K={},Z=new r.Parser(J,Y);K.version=Z.parseUShort(),K.xAvgCharWidth=Z.parseShort(),K.usWeightClass=Z.parseUShort(),K.usWidthClass=Z.parseUShort(),K.fsType=Z.parseUShort(),K.ySubscriptXSize=Z.parseShort(),K.ySubscriptYSize=Z.parseShort(),K.ySubscriptXOffset=Z.parseShort(),K.ySubscriptYOffset=Z.parseShort(),K.ySuperscriptXSize=Z.parseShort(),K.ySuperscriptYSize=Z.parseShort(),K.ySuperscriptXOffset=Z.parseShort(),K.ySuperscriptYOffset=Z.parseShort(),K.yStrikeoutSize=Z.parseShort(),K.yStrikeoutPosition=Z.parseShort(),K.sFamilyClass=Z.parseShort(),K.panose=[];for(var X=0;X<10;X++)K.panose[X]=Z.parseByte();if(K.ulUnicodeRange1=Z.parseULong(),K.ulUnicodeRange2=Z.parseULong(),K.ulUnicodeRange3=Z.parseULong(),K.ulUnicodeRange4=Z.parseULong(),K.achVendID=String.fromCharCode(Z.parseByte(),Z.parseByte(),Z.parseByte(),Z.parseByte()),K.fsSelection=Z.parseUShort(),K.usFirstCharIndex=Z.parseUShort(),K.usLastCharIndex=Z.parseUShort(),K.sTypoAscender=Z.parseShort(),K.sTypoDescender=Z.parseShort(),K.sTypoLineGap=Z.parseShort(),K.usWinAscent=Z.parseUShort(),K.usWinDescent=Z.parseUShort(),K.version>=1)K.ulCodePageRange1=Z.parseULong(),K.ulCodePageRange2=Z.parseULong();if(K.version>=2)K.sxHeight=Z.parseShort(),K.sCapHeight=Z.parseShort(),K.usDefaultChar=Z.parseUShort(),K.usBreakChar=Z.parseUShort(),K.usMaxContent=Z.parseUShort();return K}var yw={parse:kw};function gw(J,Y){var K={},Z=new r.Parser(J,Y);switch(K.version=Z.parseVersion(),K.italicAngle=Z.parseFixed(),K.underlinePosition=Z.parseShort(),K.underlineThickness=Z.parseShort(),K.isFixedPitch=Z.parseULong(),K.minMemType42=Z.parseULong(),K.maxMemType42=Z.parseULong(),K.minMemType1=Z.parseULong(),K.maxMemType1=Z.parseULong(),K.names=[],K.version){case 1:break;case 2:K.numberOfGlyphs=Z.parseUShort(),K.glyphNameIndex=Array(K.numberOfGlyphs);for(var X=0;X<K.numberOfGlyphs;X++)K.glyphNameIndex[X]=Z.parseUShort();break;case 2.5:K.numberOfGlyphs=Z.parseUShort(),K.offset=Array(K.numberOfGlyphs);for(var Q=0;Q<K.numberOfGlyphs;Q++)K.offset[Q]=Z.parseChar();break}return K}var hw={parse:gw},y8={};y8.UTF8=function(J,Y,K){var Z=[],X=K;for(var Q=0;Q<X;Q++,Y+=1)Z[Q]=J.getUint8(Y);return String.fromCharCode.apply(null,Z)};y8.UTF16=function(J,Y,K){var Z=[],X=K/2;for(var Q=0;Q<X;Q++,Y+=2)Z[Q]=J.getUint16(Y);return String.fromCharCode.apply(null,Z)};var xw={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A"+"\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8"+"\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9"+"\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7"+"\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145"+"\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"};y8.MACSTRING=function(J,Y,K,Z){var X=xw[Z];if(X===void 0)return;var Q="";for(var W=0;W<K;W++){var z=J.getUint8(Y+W);if(z<=127)Q+=String.fromCharCode(z);else Q+=X[z&127]}return Q};function bw(J,Y){var K=new r.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported META table version."),K.parseULong(),K.parseULong();var X=K.parseULong(),Q={};for(var W=0;W<X;W++){var z=K.parseTag(),$=K.parseULong(),w=K.parseULong(),U=y8.UTF8(J,Y+$,w);Q[z]=U}return Q}var fw={parse:bw};function s2(J,Y){var K=[],Z=12;for(var X=0;X<Y;X+=1){var Q=r.getTag(J,Z),W=r.getULong(J,Z+4),z=r.getULong(J,Z+8),$=r.getULong(J,Z+12);K.push({tag:Q,checksum:W,offset:z,length:$,compression:!1}),Z+=16}return K}function mw(J,Y){var K=[],Z=44;for(var X=0;X<Y;X+=1){var Q=r.getTag(J,Z),W=r.getULong(J,Z+4),z=r.getULong(J,Z+8),$=r.getULong(J,Z+12),w=void 0;if(z<$)w="WOFF";else w=!1;K.push({tag:Q,offset:W,compression:w,compressedLength:z,length:$}),Z+=20}return K}function P0(J,Y){if(Y.compression==="WOFF"){var K=new Uint8Array(J.buffer,Y.offset+2,Y.compressedLength-2),Z=new Uint8Array(Y.length);if(WW(K,Z),Z.byteLength!==Y.length)throw Error("Decompression error: "+Y.tag+" decompressed length doesn't match recorded length");var X=new DataView(Z.buffer,0);return{data:X,offset:0}}else return{data:J,offset:Y.offset}}function dw(J,Y){Y=Y===void 0||Y===null?{}:Y;var K,Z=new m0({empty:!0}),X=new DataView(J,0),Q,W=[],z=r.getTag(X,0);if(z===String.fromCharCode(0,1,0,0)||z==="true"||z==="typ1")Z.outlinesFormat="truetype",Q=r.getUShort(X,4),W=s2(X,Q);else if(z==="OTTO")Z.outlinesFormat="cff",Q=r.getUShort(X,4),W=s2(X,Q);else if(z==="wOFF"){var $=r.getTag(X,4);if($===String.fromCharCode(0,1,0,0))Z.outlinesFormat="truetype";else if($==="OTTO")Z.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+z);Q=r.getUShort(X,12),W=mw(X,Q)}else throw Error("Unsupported OpenType signature "+z);var w,U,H,V,A,M,B,O,N,j,E;for(var I=0;I<Q;I+=1){var F=W[I],q=void 0;switch(F.tag){case"cmap":q=P0(X,F),Z.tables.cmap=fz.parse(q.data,q.offset),Z.encoding=new QJ(Z.tables.cmap);break;case"cvt ":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":U=F;break;case"fpgm":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.fpgm=E.parseByteList(F.length);break;case"head":q=P0(X,F),Z.tables.head=Ow.parse(q.data,q.offset),Z.unitsPerEm=Z.tables.head.unitsPerEm,K=Z.tables.head.indexToLocFormat;break;case"hhea":q=P0(X,F),Z.tables.hhea=Lw.parse(q.data,q.offset),Z.ascender=Z.tables.hhea.ascender,Z.descender=Z.tables.hhea.descender,Z.numberOfHMetrics=Z.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":q=P0(X,F),ltagTable=Cw.parse(q.data,q.offset);break;case"maxp":q=P0(X,F),Z.tables.maxp=vw.parse(q.data,q.offset),Z.numGlyphs=Z.tables.maxp.numGlyphs;break;case"OS/2":q=P0(X,F),Z.tables.os2=yw.parse(q.data,q.offset);break;case"post":q=P0(X,F),Z.tables.post=hw.parse(q.data,q.offset);break;case"prep":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.prep=E.parseByteList(F.length);break;case"glyf":H=F;break;case"loca":N=F;break;case"CFF ":w=F;break;case"kern":O=F;break;case"GDEF":V=F;break;case"GPOS":A=F;break;case"GSUB":M=F;break;case"meta":j=F;break}}if(H&&N){var T=K===0,D=P0(X,N),R=Pw.parse(D.data,D.offset,Z.numGlyphs,T),g=P0(X,H);Z.glyphs=HJ.parse(g.data,g.offset,R,Z,Y)}else if(w){var c=P0(X,w);ez.parse(c.data,c.offset,Z,Y)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var i=P0(X,B);if(Ew.parse(Z,i.data,i.offset,Z.numberOfHMetrics,Z.numGlyphs,Z.glyphs,Y),BW(Z,Y),O){var p=P0(X,O);Z.kerningPairs=Dw.parse(p.data,p.offset)}else Z.kerningPairs={};if(V){var S=P0(X,V);Z.tables.gdef=Uw.parse(S.data,S.offset)}if(A){var v=P0(X,A);Z.tables.gpos=Vw.parse(v.data,v.offset),Z.position.init()}if(M){var C=P0(X,M);Z.tables.gsub=Bw.parse(C.data,C.offset)}if(U){var m=P0(X,U);Z.tables.fvar=Zw.parse(m.data,m.offset,Z.names)}if(j){var u=P0(X,j);Z.tables.meta=fw.parse(u.data,u.offset),Z.metas=Z.tables.meta}return Z}function cw(){}function uw(){}var lw=Object.freeze({__proto__:null,Font:m0,Glyph:v1,Path:f0,_parse:r,parse:dw,load:cw,loadSync:uw}),g8=lw;var{create:pw,defineProperty:J6,getOwnPropertyDescriptor:iw,getOwnPropertyNames:nw,getPrototypeOf:ow}=Object,rw=Object.prototype.hasOwnProperty,o9=(J,Y)=>()=>(J&&(Y=J(J=0)),Y),e=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),r9=(J,Y)=>{for(var K in Y)J6(J,K,{get:Y[K],enumerable:!0})},oJ=(J,Y,K,Z)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let X of nw(Y))!rw.call(J,X)&&X!==K&&J6(J,X,{get:()=>Y[X],enumerable:!(Z=iw(Y,X))||Z.enumerable});return J},sw=(J,Y,K)=>(K=J!=null?pw(ow(J)):{},oJ(Y||!J||!J.__esModule?J6(K,"default",{value:J,enumerable:!0}):K,J)),t8=(J)=>oJ(J6({},"__esModule",{value:!0}),J),rJ={};r9(rJ,{getYogaModule:()=>aw});async function aw(){let{default:J}=await import("./chunk-3bw1jk21.js");return J()}var tw=o9(()=>{}),sJ=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(K=`${K}`,K==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(K))return K.replace(/^[+-]?/,(Z)=>Z==="-"?"":"-");if(K.includes("var(")||K.includes("calc("))return`calc(${K} * -1)`}}),ew=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});var Y=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),JU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K,Z){return K===void 0?Z:Array.isArray(K)?K:[...new Set(Z.filter((X)=>K!==!1&&K[X]!==!1).concat(Object.keys(K).filter((X)=>K[X]!==!1)))]}}),aJ=e((J,Y)=>{Y.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:K})=>({inherit:K.inherit,current:K.current,transparent:K.transparent,black:K.black,white:K.white,slate:K.slate,gray:K.gray,zinc:K.zinc,neutral:K.neutral,stone:K.stone,red:K.red,orange:K.orange,amber:K.amber,yellow:K.yellow,lime:K.lime,green:K.green,emerald:K.emerald,teal:K.teal,cyan:K.cyan,sky:K.sky,blue:K.blue,indigo:K.indigo,violet:K.violet,purple:K.purple,fuchsia:K.fuchsia,pink:K.pink,rose:K.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:K})=>K("blur"),backdropBrightness:({theme:K})=>K("brightness"),backdropContrast:({theme:K})=>K("contrast"),backdropGrayscale:({theme:K})=>K("grayscale"),backdropHueRotate:({theme:K})=>K("hueRotate"),backdropInvert:({theme:K})=>K("invert"),backdropOpacity:({theme:K})=>K("opacity"),backdropSaturate:({theme:K})=>K("saturate"),backdropSepia:({theme:K})=>K("sepia"),backgroundColor:({theme:K})=>K("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:K})=>K("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:K})=>({...K("colors"),DEFAULT:K("colors.gray.200","currentColor")}),borderOpacity:({theme:K})=>K("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:K})=>({...K("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:K})=>K("colors"),caretColor:({theme:K})=>K("colors"),accentColor:({theme:K})=>({...K("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:K})=>K("borderColor"),divideOpacity:({theme:K})=>K("borderOpacity"),divideWidth:({theme:K})=>K("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:K})=>K("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:K})=>K("spacing"),gradientColorStops:({theme:K})=>K("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:K})=>({auto:"auto",...K("spacing")}),maxHeight:({theme:K})=>({...K("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:K,breakpoints:Z})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...Z(K("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:K})=>K("spacing"),placeholderColor:({theme:K})=>K("colors"),placeholderOpacity:({theme:K})=>K("opacity"),outlineColor:({theme:K})=>K("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:K})=>({DEFAULT:K("colors.blue.500","#3b82f6"),...K("colors")}),ringOffsetColor:({theme:K})=>K("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:K})=>({DEFAULT:"0.5",...K("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:K})=>({...K("spacing")}),scrollPadding:({theme:K})=>K("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:K})=>({...K("spacing")}),stroke:({theme:K})=>K("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:K})=>K("colors"),textDecorationColor:({theme:K})=>K("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:K})=>({...K("spacing")}),textOpacity:({theme:K})=>K("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:K})=>({...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),Y6={};r9(Y6,{default:()=>tJ});var tJ,s9=o9(()=>{tJ={info(J,Y){console.info(...Array.isArray(J)?[J]:[Y,J])},warn(J,Y){console.warn(...Array.isArray(J)?[J]:[Y,J])},risk(J,Y){console.error(...Array.isArray(J)?[J]:[Y,J])}}}),YU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=K((s9(),t8(Y6)));function K(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z({version:Q,from:W,to:z}){Y.default.warn(`${W}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${W}\` has been renamed to \`${z}\`.`,"Update your configuration file to silence this warning."])}var X={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return Z({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Z({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Z({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Z({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Z({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),KU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>Y});function Y(K,...Z){for(let W of Z){for(let z in W){var X;!(K==null||(X=K.hasOwnProperty)===null||X===void 0)&&X.call(K,z)||(K[z]=W[z])}for(let z of Object.getOwnPropertySymbols(W)){var Q;!(K==null||(Q=K.hasOwnProperty)===null||Q===void 0)&&Q.call(K,z)||(K[z]=W[z])}}return K}}),ZU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>Y});function Y(K){if(Array.isArray(K))return K;let Z=K.split("[").length-1,X=K.split("]").length-1;if(Z!==X)throw Error(`Path is invalid. Has unbalanced brackets: ${K}`);return K.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),XU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>X});var Y=Z((s9(),t8(Y6)));function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,z=new WeakMap;return(K=function($){return $?z:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var z=K(W);if(z&&z.has(Q))return z.get(Q);var $={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=w?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,z&&z.set(Q,$),$}function X(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((z)=>typeof z=="string"?!0:!(typeof(z==null?void 0:z.raw)!="string"||z!=null&&z.extension&&typeof(z==null?void 0:z.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((z)=>!["files","extract","transform"].includes(z)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((z)=>typeof z=="string"?!0:!(typeof(z==null?void 0:z.raw)!="string"||z!=null&&z.extension&&typeof(z==null?void 0:z.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let z of Object.values(Q.content.extract))if(typeof z!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let z of Object.values(Q.content.transform))if(typeof z!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||Y.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),Q.safelist=(()=>{var z;let{content:$,purge:w,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray($==null?void 0:$.safelist)?$.safelist:Array.isArray(w==null?void 0:w.safelist)?w.safelist:Array.isArray(w==null||(z=w.options)===null||z===void 0?void 0:z.safelist)?w.options.safelist:[]})(),typeof Q.prefix=="function")Y.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),Q.prefix="";else{var W;Q.prefix=(W=Q.prefix)!==null&&W!==void 0?W:""}Q.content={files:(()=>{let{content:z,purge:$}=Q;return Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.content:Array.isArray(z)?z:Array.isArray(z==null?void 0:z.content)?z.content:Array.isArray(z==null?void 0:z.files)?z.files:[]})(),extract:(()=>{let z=(()=>{var U,H,V,A,M,B,O,N,j,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((H=Q.content)===null||H===void 0)&&H.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(A=V.extract)===null||A===void 0)&&A.DEFAULT?Q.purge.extract.DEFAULT:!((M=Q.content)===null||M===void 0||(B=M.extract)===null||B===void 0)&&B.DEFAULT?Q.content.extract.DEFAULT:!((O=Q.purge)===null||O===void 0||(N=O.options)===null||N===void 0)&&N.extractors?Q.purge.options.extractors:!((j=Q.content)===null||j===void 0||(E=j.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),$={},w=(()=>{var U,H,V,A;if(!((U=Q.purge)===null||U===void 0||(H=U.options)===null||H===void 0)&&H.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(A=V.options)===null||A===void 0)&&A.defaultExtractor)return Q.content.options.defaultExtractor})();if(w!==void 0&&($.DEFAULT=w),typeof z=="function")$.DEFAULT=z;else if(Array.isArray(z))for(let{extensions:U,extractor:H}of z??[])for(let V of U)$[V]=H;else typeof z=="object"&&z!==null&&Object.assign($,z);return $})(),transform:(()=>{let z=(()=>{var w,U,H,V,A,M;return!((w=Q.purge)===null||w===void 0)&&w.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!((H=Q.purge)===null||H===void 0||(V=H.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((A=Q.content)===null||A===void 0||(M=A.transform)===null||M===void 0)&&M.DEFAULT?Q.content.transform.DEFAULT:{}})(),$={};return typeof z=="function"&&($.DEFAULT=z),typeof z=="object"&&z!==null&&Object.assign($,z),$})()};for(let z of Q.content.files)if(typeof z=="string"&&/{([^,]*?)}/g.test(z)){Y.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Y.dim)(z)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Y.dim)(z.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),QU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(Object.prototype.toString.call(K)!=="[object Object]")return!1;let Z=Object.getPrototypeOf(K);return Z===null||Z===Object.prototype}}),WU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>Y});function Y(K){return Array.isArray(K)?K.map((Z)=>Y(Z)):typeof K=="object"&&K!==null?Object.fromEntries(Object.entries(K).map(([Z,X])=>[Z,Y(X)])):K}}),eJ=e((J,Y)=>{J.__esModule=!0,J.default=X;function K(Q){for(var W=Q.toLowerCase(),z="",$=!1,w=0;w<6&&W[w]!==void 0;w++){var U=W.charCodeAt(w),H=U>=97&&U<=102||U>=48&&U<=57;if($=U===32,!H)break;z+=W[w]}if(z.length!==0){var V=parseInt(z,16),A=V>=55296&&V<=57343;return A||V===0||V>1114111?["\uFFFD",z.length+($?1:0)]:[String.fromCodePoint(V),z.length+($?1:0)]}}var Z=/\\/;function X(Q){var W=Z.test(Q);if(!W)return Q;for(var z="",$=0;$<Q.length;$++){if(Q[$]==="\\"){var w=K(Q.slice($+1,$+7));if(w!==void 0){z+=w[0],$+=w[1];continue}if(Q[$+1]==="\\"){z+="\\",$++;continue}Q.length===$+1&&(z+=Q[$]);continue}z+=Q[$]}return z}Y.exports=J.default}),$U=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var z=Q.shift();if(!Z[z])return;Z=Z[z]}return Z}Y.exports=J.default}),zU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var z=Q.shift();Z[z]||(Z[z]={}),Z=Z[z]}}Y.exports=J.default}),wU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X="",Q=Z.indexOf("/*"),W=0;Q>=0;){X=X+Z.slice(W,Q);var z=Z.indexOf("*/",Q+2);if(z<0)return X;W=z+2,Q=Z.indexOf("/*",W)}return X=X+Z.slice(W),X}Y.exports=J.default}),K6=e((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var Y=Q(eJ());J.unesc=Y.default;var K=Q($U());J.getProp=K.default;var Z=Q(zU());J.ensureObject=Z.default;var X=Q(wU());J.stripComments=X.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),r1=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=K6();function Z(z,$){for(var w=0;w<$.length;w++){var U=$[w];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(z,U.key,U)}}function X(z,$,w){return $&&Z(z.prototype,$),w&&Z(z,w),z}var Q=function z($,w){if(typeof $!="object"||$===null)return $;var U=new $.constructor;for(var H in $)if($.hasOwnProperty(H)){var V=$[H],A=typeof V;H==="parent"&&A==="object"?w&&(U[H]=w):V instanceof Array?U[H]=V.map(function(M){return z(M,U)}):U[H]=z(V,U)}return U},W=function(){function z(w){w===void 0&&(w={}),Object.assign(this,w),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var $=z.prototype;return $.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},$.replaceWith=function(){if(this.parent){for(var w in arguments)this.parent.insertBefore(this,arguments[w]);this.remove()}return this},$.next=function(){return this.parent.at(this.parent.index(this)+1)},$.prev=function(){return this.parent.at(this.parent.index(this)-1)},$.clone=function(w){w===void 0&&(w={});var U=Q(this);for(var H in w)U[H]=w[H];return U},$.appendToPropertyAndEscape=function(w,U,H){this.raws||(this.raws={});var V=this[w],A=this.raws[w];this[w]=V+U,A||H!==U?this.raws[w]=(A||V)+H:delete this.raws[w]},$.setPropertyAndEscape=function(w,U,H){this.raws||(this.raws={}),this[w]=U,this.raws[w]=H},$.setPropertyWithoutEscape=function(w,U){this[w]=U,this.raws&&delete this.raws[w]},$.isAtPosition=function(w,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>w||this.source.end.line<w||this.source.start.line===w&&this.source.start.column>U||this.source.end.line===w&&this.source.end.column<U)},$.stringifyProperty=function(w){return this.raws&&this.raws[w]||this[w]},$.valueToString=function(){return String(this.stringifyProperty("value"))},$.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},X(z,[{key:"rawSpaceBefore",get:function(){var w=this.raws&&this.raws.spaces&&this.raws.spaces.before;return w===void 0&&(w=this.spaces&&this.spaces.before),w||""},set:function(w){(0,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=w}},{key:"rawSpaceAfter",get:function(){var w=this.raws&&this.raws.spaces&&this.raws.spaces.after;return w===void 0&&(w=this.spaces.after),w||""},set:function(w){(0,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=w}}]),z}();J.default=W,Y.exports=J.default}),d0=e((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var Y="tag";J.TAG=Y;var K="string";J.STRING=K;var Z="selector";J.SELECTOR=Z;var X="root";J.ROOT=X;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var z="id";J.ID=z;var $="comment";J.COMMENT=$;var w="combinator";J.COMBINATOR=w;var U="class";J.CLASS=U;var H="attribute";J.ATTRIBUTE=H;var V="universal";J.UNIVERSAL=V}),a9=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(r1()),Z=Q(d0());function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var O=X();if(O&&O.has(B))return O.get(B);var N={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=j?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(N,E,I):N[E]=B[E]}return N.default=B,O&&O.set(B,N),N}function W(B){return B&&B.__esModule?B:{default:B}}function z(B,O){var N;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(N=$(B))||O&&B&&typeof B.length=="number"){N&&(B=N);var j=0;return function(){return j>=B.length?{done:!0}:{done:!1,value:B[j++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return N=B[Symbol.iterator](),N.next.bind(N)}function $(B,O){if(B){if(typeof B=="string")return w(B,O);var N=Object.prototype.toString.call(B).slice(8,-1);if(N==="Object"&&B.constructor&&(N=B.constructor.name),N==="Map"||N==="Set")return Array.from(B);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return w(B,O)}}function w(B,O){(O==null||O>B.length)&&(O=B.length);for(var N=0,j=Array(O);N<O;N++)j[N]=B[N];return j}function U(B,O){for(var N=0;N<O.length;N++){var j=O[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(B,j.key,j)}}function H(B,O,N){return O&&U(B.prototype,O),N&&U(B,N),B}function V(B,O){B.prototype=Object.create(O.prototype),B.prototype.constructor=B,A(B,O)}function A(B,O){return A=Object.setPrototypeOf||function(N,j){return N.__proto__=j,N},A(B,O)}var M=function(B){V(O,B);function O(j){var E;return E=B.call(this,j)||this,E.nodes||(E.nodes=[]),E}var N=O.prototype;return N.append=function(j){return j.parent=this,this.nodes.push(j),this},N.prepend=function(j){return j.parent=this,this.nodes.unshift(j),this},N.at=function(j){return this.nodes[j]},N.index=function(j){return typeof j=="number"?j:this.nodes.indexOf(j)},N.removeChild=function(j){j=this.index(j),this.at(j).parent=void 0,this.nodes.splice(j,1);var E;for(var I in this.indexes)E=this.indexes[I],E>=j&&(this.indexes[I]=E-1);return this},N.removeAll=function(){for(var j=z(this.nodes),E;!(E=j()).done;){var I=E.value;I.parent=void 0}return this.nodes=[],this},N.empty=function(){return this.removeAll()},N.insertAfter=function(j,E){E.parent=this;var I=this.index(j);this.nodes.splice(I+1,0,E),E.parent=this;var F;for(var q in this.indexes)F=this.indexes[q],I<=F&&(this.indexes[q]=F+1);return this},N.insertBefore=function(j,E){E.parent=this;var I=this.index(j);this.nodes.splice(I,0,E),E.parent=this;var F;for(var q in this.indexes)F=this.indexes[q],F<=I&&(this.indexes[q]=F+1);return this},N._findChildAtPosition=function(j,E){var I=void 0;return this.each(function(F){if(F.atPosition){var q=F.atPosition(j,E);if(q)return I=q,!1}else if(F.isAtPosition(j,E))return I=F,!1}),I},N.atPosition=function(j,E){if(this.isAtPosition(j,E))return this._findChildAtPosition(j,E)||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(j){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var I,F;this.indexes[E]<this.length&&(I=this.indexes[E],F=j(this.at(I),I),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},N.walk=function(j){return this.each(function(E,I){var F=j(E,I);if(F!==!1&&E.length&&(F=E.walk(j)),F===!1)return!1})},N.walkAttributes=function(j){var E=this;return this.walk(function(I){if(I.type===Z.ATTRIBUTE)return j.call(E,I)})},N.walkClasses=function(j){var E=this;return this.walk(function(I){if(I.type===Z.CLASS)return j.call(E,I)})},N.walkCombinators=function(j){var E=this;return this.walk(function(I){if(I.type===Z.COMBINATOR)return j.call(E,I)})},N.walkComments=function(j){var E=this;return this.walk(function(I){if(I.type===Z.COMMENT)return j.call(E,I)})},N.walkIds=function(j){var E=this;return this.walk(function(I){if(I.type===Z.ID)return j.call(E,I)})},N.walkNesting=function(j){var E=this;return this.walk(function(I){if(I.type===Z.NESTING)return j.call(E,I)})},N.walkPseudos=function(j){var E=this;return this.walk(function(I){if(I.type===Z.PSEUDO)return j.call(E,I)})},N.walkTags=function(j){var E=this;return this.walk(function(I){if(I.type===Z.TAG)return j.call(E,I)})},N.walkUniversals=function(j){var E=this;return this.walk(function(I){if(I.type===Z.UNIVERSAL)return j.call(E,I)})},N.split=function(j){var E=this,I=[];return this.reduce(function(F,q,T){var D=j.call(E,q);return I.push(q),D?(F.push(I),I=[]):T===E.length-1&&F.push(I),F},[])},N.map=function(j){return this.nodes.map(j)},N.reduce=function(j,E){return this.nodes.reduce(j,E)},N.every=function(j){return this.nodes.every(j)},N.some=function(j){return this.nodes.some(j)},N.filter=function(j){return this.nodes.filter(j)},N.sort=function(j){return this.nodes.sort(j)},N.toString=function(){return this.map(String).join("")},H(O,[{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}}]),O}(K.default);J.default=M,Y.exports=J.default}),JY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X(U){return U&&U.__esModule?U:{default:U}}function Q(U,H){for(var V=0;V<H.length;V++){var A=H[V];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(U,A.key,A)}}function W(U,H,V){return H&&Q(U.prototype,H),V&&Q(U,V),U}function z(U,H){U.prototype=Object.create(H.prototype),U.prototype.constructor=U,$(U,H)}function $(U,H){return $=Object.setPrototypeOf||function(V,A){return V.__proto__=A,V},$(U,H)}var w=function(U){z(H,U);function H(A){var M;return M=U.call(this,A)||this,M.type=Z.ROOT,M}var V=H.prototype;return V.toString=function(){var A=this.reduce(function(M,B){return M.push(String(B)),M},[]).join(",");return this.trailingComma?A+",":A},V.error=function(A,M){return this._error?this._error(A,M):Error(A)},W(H,[{key:"errorGenerator",set:function(A){this._error=A}}]),H}(K.default);J.default=w,Y.exports=J.default}),YY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.SELECTOR,H}return w}(K.default);J.default=z,Y.exports=J.default}),t9=e((J,Y)=>{var K={},Z=K.hasOwnProperty,X=function(w,U){if(!w)return U;var H={};for(var V in U)H[V]=Z.call(w,V)?w[V]:U[V];return H},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,z=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,$=function w(U,H){H=X(H,w.options),H.quotes!="single"&&H.quotes!="double"&&(H.quotes="single");for(var V=H.quotes=="double"?'"':"'",A=H.isIdentifier,M=U.charAt(0),B="",O=0,N=U.length;O<N;){var j=U.charAt(O++),E=j.charCodeAt(),I=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&O<N){var F=U.charCodeAt(O++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:O--}I="\\"+E.toString(16).toUpperCase()+" "}else H.escapeEverything?Q.test(j)?I="\\"+j:I="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(j)?I="\\"+E.toString(16).toUpperCase()+" ":j=="\\"||!A&&(j=='"'&&V==j||j=="'"&&V==j)||A&&W.test(j)?I="\\"+j:I=j;B+=I}return A&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(M)&&(B="\\3"+M+" "+B.slice(1))),B=B.replace(z,function(q,T,D){return T&&T.length%2?q:(T||"")+D}),!A&&H.wrap?V+B+V:B};$.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},$.version="3.0.0",Y.exports=$}),KY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(t9()),Z=K6(),X=W(r1()),Q=d0();function W(V){return V&&V.__esModule?V:{default:V}}function z(V,A){for(var M=0;M<A.length;M++){var B=A[M];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(V,B.key,B)}}function $(V,A,M){return A&&z(V.prototype,A),M&&z(V,M),V}function w(V,A){V.prototype=Object.create(A.prototype),V.prototype.constructor=V,U(V,A)}function U(V,A){return U=Object.setPrototypeOf||function(M,B){return M.__proto__=B,M},U(V,A)}var H=function(V){w(A,V);function A(B){var O;return O=V.call(this,B)||this,O.type=Q.CLASS,O._constructed=!0,O}var M=A.prototype;return M.valueToString=function(){return"."+V.prototype.valueToString.call(this)},$(A,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var O=(0,K.default)(B,{isIdentifier:!0});O!==B?((0,Z.ensureObject)(this,"raws"),this.raws.value=O):this.raws&&delete this.raws.value}this._value=B}}]),A}(X.default);J.default=H,Y.exports=J.default}),ZY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.COMMENT,H}return w}(K.default);J.default=z,Y.exports=J.default}),XY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(H){var V;return V=$.call(this,H)||this,V.type=Z.ID,V}var U=w.prototype;return U.valueToString=function(){return"#"+$.prototype.valueToString.call(this)},w}(K.default);J.default=z,Y.exports=J.default}),e9=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Q(t9()),Z=K6(),X=Q(r1());function Q(H){return H&&H.__esModule?H:{default:H}}function W(H,V){for(var A=0;A<V.length;A++){var M=V[A];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(H,M.key,M)}}function z(H,V,A){return V&&W(H.prototype,V),A&&W(H,A),H}function $(H,V){H.prototype=Object.create(V.prototype),H.prototype.constructor=H,w(H,V)}function w(H,V){return w=Object.setPrototypeOf||function(A,M){return A.__proto__=M,A},w(H,V)}var U=function(H){$(V,H);function V(){return H.apply(this,arguments)||this}var A=V.prototype;return A.qualifiedName=function(M){return this.namespace?this.namespaceString+"|"+M:M},A.valueToString=function(){return this.qualifiedName(H.prototype.valueToString.call(this))},z(V,[{key:"namespace",get:function(){return this._namespace},set:function(M){if(M===!0||M==="*"||M==="&"){this._namespace=M,this.raws&&delete this.raws.namespace;return}var B=(0,K.default)(M,{isIdentifier:!0});this._namespace=M,B!==M?((0,Z.ensureObject)(this,"raws"),this.raws.namespace=B):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(M){this.namespace=M}},{key:"namespaceString",get:function(){if(this.namespace){var M=this.stringifyProperty("namespace");return M===!0?"":M}else return""}}]),V}(X.default);J.default=U,Y.exports=J.default}),QY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.TAG,H}return w}(K.default);J.default=z,Y.exports=J.default}),WY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.STRING,H}return w}(K.default);J.default=z,Y.exports=J.default}),$Y=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(a9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(H){var V;return V=$.call(this,H)||this,V.type=Z.PSEUDO,V}var U=w.prototype;return U.toString=function(){var H=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),H,this.rawSpaceAfter].join("")},w}(K.default);J.default=z,Y.exports=J.default}),UU=e((J,Y)=>{Y.exports=function(K,Z){return function(...X){return console.warn(Z),K(...X)}}}),zY=e((J)=>{J.__esModule=!0,J.unescapeValue=O,J.default=void 0;var Y=W(t9()),K=W(eJ()),Z=W(e9()),X=d0(),Q;function W(F){return F&&F.__esModule?F:{default:F}}function z(F,q){for(var T=0;T<q.length;T++){var D=q[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}function $(F,q,T){return q&&z(F.prototype,q),T&&z(F,T),F}function w(F,q){F.prototype=Object.create(q.prototype),F.prototype.constructor=F,U(F,q)}function U(F,q){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(F,q)}var H=UU(),V=/^('|")([^]*)\1$/,A=H(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),M=H(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=H(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function O(F){var q=!1,T=null,D=F,R=D.match(V);return R&&(T=R[1],D=R[2]),D=(0,K.default)(D),D!==F&&(q=!0),{deprecatedUsage:q,unescaped:D,quoteMark:T}}function N(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var q=O(F.value),T=q.quoteMark,D=q.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=D,F.quoteMark=T,F}var j=function(F){w(q,F);function q(D){var R;return D===void 0&&(D={}),R=F.call(this,N(D))||this,R.type=X.ATTRIBUTE,R.raws=R.raws||{},Object.defineProperty(R.raws,"unquoted",{get:H(function(){return R.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:H(function(){return R.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),R._constructed=!0,R}var T=q.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var R=this._determineQuoteMark(D),g=E[R],c=(0,Y.default)(this._value,g);return c},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,R){R===void 0&&(R={}),this._value=D,this._quoteMark=this._determineQuoteMark(R),this._syncRawValue()},T.smartQuoteMark=function(D){var R=this.value,g=R.replace(/[^']/g,"").length,c=R.replace(/[^"]/g,"").length;if(g+c===0){var i=(0,Y.default)(R,{isIdentifier:!0});if(i===R)return q.NO_QUOTE;var p=this.preferredQuoteMark(D);if(p===q.NO_QUOTE){var S=this.quoteMark||D.quoteMark||q.DOUBLE_QUOTE,v=E[S],C=(0,Y.default)(R,v);if(C.length<i.length)return S}return p}else return c===g?this.preferredQuoteMark(D):c<g?q.DOUBLE_QUOTE:q.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var R=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return R===void 0&&(R=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),R===void 0&&(R=q.DOUBLE_QUOTE),R},T._syncRawValue=function(){var D=(0,Y.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,R){if(this._constructed){var g=(0,Y.default)(R,{isIdentifier:!0});g!==R?this.raws[D]=g:delete this.raws[D]}},T._spacesFor=function(D){var R={before:"",after:""},g=this.spaces[D]||{},c=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(R,g,c)},T._stringFor=function(D,R,g){R===void 0&&(R=D),g===void 0&&(g=I);var c=this._spacesFor(R);return g(this.stringifyProperty(D),c)},T.offsetOf=function(D){var R=1,g=this._spacesFor("attribute");if(R+=g.before.length,D==="namespace"||D==="ns")return this.namespace?R:-1;if(D==="attributeNS"||(R+=this.namespaceString.length,this.namespace&&(R+=1),D==="attribute"))return R;R+=this.stringifyProperty("attribute").length,R+=g.after.length;var c=this._spacesFor("operator");R+=c.before.length;var i=this.stringifyProperty("operator");if(D==="operator")return i?R:-1;R+=i.length,R+=c.after.length;var p=this._spacesFor("value");R+=p.before.length;var S=this.stringifyProperty("value");if(D==="value")return S?R:-1;R+=S.length,R+=p.after.length;var v=this._spacesFor("insensitive");return R+=v.before.length,D==="insensitive"&&this.insensitive?R:-1},T.toString=function(){var D=this,R=[this.rawSpaceBefore,"["];return R.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(R.push(this._stringFor("operator")),R.push(this._stringFor("value")),R.push(this._stringFor("insensitiveFlag","insensitive",function(g,c){return g.length>0&&!D.quoted&&c.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(c.before=" "),I(g,c)}))),R.push("]"),R.push(this.rawSpaceAfter),R.join("")},$(q,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){M()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,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(D){if(this._constructed){var R=O(D),g=R.deprecatedUsage,c=R.unescaped,i=R.quoteMark;if(g&&A(),c===this._value&&i===this._quoteMark)return;this._value=c,this._quoteMark=i,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),q}(Z.default);J.default=j,j.NO_QUOTE=null,j.SINGLE_QUOTE="'",j.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function I(F,q){return""+q.before+F+q.after}}),wY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(e9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.UNIVERSAL,H.value="*",H}return w}(K.default);J.default=z,Y.exports=J.default}),UY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.COMBINATOR,H}return w}(K.default);J.default=z,Y.exports=J.default}),HY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.NESTING,H.value="&",H}return w}(K.default);J.default=z,Y.exports=J.default}),HU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){return Z.sort(function(X,Q){return X-Q})}Y.exports=J.default}),VY=e((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var Y=38;J.ampersand=Y;var K=42;J.asterisk=K;var Z=64;J.at=Z;var X=44;J.comma=X;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var z=40;J.openParenthesis=z;var $=41;J.closeParenthesis=$;var w=91;J.openSquare=w;var U=93;J.closeSquare=U;var H=36;J.dollar=H;var V=126;J.tilde=V;var A=94;J.caret=A;var M=43;J.plus=M;var B=61;J.equals=B;var O=124;J.pipe=O;var N=62;J.greaterThan=N;var j=32;J.space=j;var E=39;J.singleQuote=E;var I=34;J.doubleQuote=I;var F=47;J.slash=F;var q=33;J.bang=q;var T=92;J.backslash=T;var D=13;J.cr=D;var R=12;J.feed=R;var g=10;J.newline=g;var c=9;J.tab=c;var i=E;J.str=i;var p=-1;J.comment=p;var S=-2;J.word=S;var v=-3;J.combinator=v}),VU=e((J)=>{J.__esModule=!0,J.default=M,J.FIELDS=void 0;var Y=Q(VY()),K,Z;function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var O=X();if(O&&O.has(B))return O.get(B);var N={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=j?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(N,E,I):N[E]=B[E]}return N.default=B,O&&O.set(B,N),N}var W=(K={},K[Y.tab]=!0,K[Y.newline]=!0,K[Y.cr]=!0,K[Y.feed]=!0,K),z=(Z={},Z[Y.space]=!0,Z[Y.tab]=!0,Z[Y.newline]=!0,Z[Y.cr]=!0,Z[Y.feed]=!0,Z[Y.ampersand]=!0,Z[Y.asterisk]=!0,Z[Y.bang]=!0,Z[Y.comma]=!0,Z[Y.colon]=!0,Z[Y.semicolon]=!0,Z[Y.openParenthesis]=!0,Z[Y.closeParenthesis]=!0,Z[Y.openSquare]=!0,Z[Y.closeSquare]=!0,Z[Y.singleQuote]=!0,Z[Y.doubleQuote]=!0,Z[Y.plus]=!0,Z[Y.pipe]=!0,Z[Y.tilde]=!0,Z[Y.greaterThan]=!0,Z[Y.equals]=!0,Z[Y.dollar]=!0,Z[Y.caret]=!0,Z[Y.slash]=!0,Z),$={},w="0123456789abcdefABCDEF";for(U=0;U<w.length;U++)$[w.charCodeAt(U)]=!0;var U;function H(B,O){var N=O,j;do{if(j=B.charCodeAt(N),z[j])return N-1;j===Y.backslash?N=V(B,N)+1:N++}while(N<B.length);return N-1}function V(B,O){var N=O,j=B.charCodeAt(N+1);if(!W[j])if($[j]){var E=0;do N++,E++,j=B.charCodeAt(N+1);while($[j]&&E<6);E<6&&j===Y.space&&N++}else N++;return N}var A={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=A;function M(B){var O=[],N=B.css.valueOf(),j=N,E=j.length,I=-1,F=1,q=0,T=0,D,R,g,c,i,p,S,v,C,m,u,a,n;function f(d,P){if(B.safe)N+=P,C=N.length-1;else throw B.error("Unclosed "+d,F,q-I,q)}for(;q<E;){switch(D=N.charCodeAt(q),D===Y.newline&&(I=q,F+=1),D){case Y.space:case Y.tab:case Y.newline:case Y.cr:case Y.feed:C=q;do C+=1,D=N.charCodeAt(C),D===Y.newline&&(I=C,F+=1);while(D===Y.space||D===Y.newline||D===Y.tab||D===Y.cr||D===Y.feed);n=Y.space,c=F,g=C-I-1,T=C;break;case Y.plus:case Y.greaterThan:case Y.tilde:case Y.pipe:C=q;do C+=1,D=N.charCodeAt(C);while(D===Y.plus||D===Y.greaterThan||D===Y.tilde||D===Y.pipe);n=Y.combinator,c=F,g=q-I,T=C;break;case Y.asterisk:case Y.ampersand:case Y.bang:case Y.comma:case Y.equals:case Y.dollar:case Y.caret:case Y.openSquare:case Y.closeSquare:case Y.colon:case Y.semicolon:case Y.openParenthesis:case Y.closeParenthesis:C=q,n=D,c=F,g=q-I,T=C+1;break;case Y.singleQuote:case Y.doubleQuote:a=D===Y.singleQuote?"'":'"',C=q;do for(i=!1,C=N.indexOf(a,C+1),C===-1&&f("quote",a),p=C;N.charCodeAt(p-1)===Y.backslash;)p-=1,i=!i;while(i);n=Y.str,c=F,g=q-I,T=C+1;break;default:D===Y.slash&&N.charCodeAt(q+1)===Y.asterisk?(C=N.indexOf("*/",q+2)+1,C===0&&f("comment","*/"),R=N.slice(q,C+1),v=R.split(`
|
|
63
|
-
`),S=v.length-1,S>0?(m=F+S,u=C-v[S].length):(m=F,u=I),n=Y.comment,F=m,c=m,g=C-u):D===Y.slash?(C=q,n=D,c=F,g=q-I,T=C+1):(C=H(N,q),n=Y.word,c=F,g=C-I),T=C+1;break}O.push([n,F,q-I,c,g,q,T]),u&&(I=u,u=null),q=T}return O}}),AU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=T(JY()),Z=T(YY()),X=T(KY()),Q=T(ZY()),W=T(XY()),z=T(QY()),$=T(WY()),w=T($Y()),U=q(zY()),H=T(wY()),V=T(UY()),A=T(HY()),M=T(HU()),B=q(VU()),O=q(VY()),N=q(d0()),j=K6(),E,I;function F(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return F=function(){return f},f}function q(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var d=F();if(d&&d.has(f))return d.get(f);var P={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in f)if(Object.prototype.hasOwnProperty.call(f,l)){var h=k?Object.getOwnPropertyDescriptor(f,l):null;h&&(h.get||h.set)?Object.defineProperty(P,l,h):P[l]=f[l]}return P.default=f,d&&d.set(f,P),P}function T(f){return f&&f.__esModule?f:{default:f}}function D(f,d){for(var P=0;P<d.length;P++){var k=d[P];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(f,k.key,k)}}function R(f,d,P){return d&&D(f.prototype,d),P&&D(f,P),f}var g=(E={},E[O.space]=!0,E[O.cr]=!0,E[O.feed]=!0,E[O.newline]=!0,E[O.tab]=!0,E),c=Object.assign({},g,(I={},I[O.comment]=!0,I));function i(f){return{line:f[B.FIELDS.START_LINE],column:f[B.FIELDS.START_COL]}}function p(f){return{line:f[B.FIELDS.END_LINE],column:f[B.FIELDS.END_COL]}}function S(f,d,P,k){return{start:{line:f,column:d},end:{line:P,column:k}}}function v(f){return S(f[B.FIELDS.START_LINE],f[B.FIELDS.START_COL],f[B.FIELDS.END_LINE],f[B.FIELDS.END_COL])}function C(f,d){if(f)return S(f[B.FIELDS.START_LINE],f[B.FIELDS.START_COL],d[B.FIELDS.END_LINE],d[B.FIELDS.END_COL])}function m(f,d){var P=f[d];if(typeof P=="string")return P.indexOf("\\")!==-1&&((0,j.ensureObject)(f,"raws"),f[d]=(0,j.unesc)(P),f.raws[d]===void 0&&(f.raws[d]=P)),f}function u(f,d){for(var P=-1,k=[];(P=f.indexOf(d,P+1))!==-1;)k.push(P);return k}function a(){var f=Array.prototype.concat.apply([],arguments);return f.filter(function(d,P){return P===f.indexOf(d)})}var n=function(){function f(P,k){k===void 0&&(k={}),this.rule=P,this.options=Object.assign({lossy:!1,safe:!1},k),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,B.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var l=C(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new K.default({source:l}),this.root.errorGenerator=this._errorGenerator();var h=new Z.default({source:{start:{line:1,column:1}}});this.root.append(h),this.current=h,this.loop()}var d=f.prototype;return d._errorGenerator=function(){var P=this;return function(k,l){return typeof P.rule=="string"?Error(k):P.rule.error(k,l)}},d.attribute=function(){var P=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==O.closeSquare;)P.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==O.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var l=P.length,h={source:S(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[B.FIELDS.START_POS]};if(l===1&&!~[O.word].indexOf(P[0][B.FIELDS.TYPE]))return this.expected("attribute",P[0][B.FIELDS.START_POS]);for(var s=0,Z0="",Q0="",J0=null,A0=!1;s<l;){var E0=P[s],K0=this.content(E0),B0=P[s+1];switch(E0[B.FIELDS.TYPE]){case O.space:if(A0=!0,this.options.lossy)break;if(J0){(0,j.ensureObject)(h,"spaces",J0);var C0=h.spaces[J0].after||"";h.spaces[J0].after=C0+K0;var c0=(0,j.getProp)(h,"raws","spaces",J0,"after")||null;c0&&(h.raws.spaces[J0].after=c0+K0)}else Z0=Z0+K0,Q0=Q0+K0;break;case O.asterisk:if(B0[B.FIELDS.TYPE]===O.equals)h.operator=K0,J0="operator";else if((!h.namespace||J0==="namespace"&&!A0)&&B0){Z0&&((0,j.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Z0,Z0=""),Q0&&((0,j.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Z0,Q0=""),h.namespace=(h.namespace||"")+K0;var I0=(0,j.getProp)(h,"raws","namespace")||null;I0&&(h.raws.namespace+=K0),J0="namespace"}A0=!1;break;case O.dollar:if(J0==="value"){var D0=(0,j.getProp)(h,"raws","value");h.value+="$",D0&&(h.raws.value=D0+"$");break}case O.caret:B0[B.FIELDS.TYPE]===O.equals&&(h.operator=K0,J0="operator"),A0=!1;break;case O.combinator:if(K0==="~"&&B0[B.FIELDS.TYPE]===O.equals&&(h.operator=K0,J0="operator"),K0!=="|"){A0=!1;break}B0[B.FIELDS.TYPE]===O.equals?(h.operator=K0,J0="operator"):!h.namespace&&!h.attribute&&(h.namespace=!0),A0=!1;break;case O.word:if(B0&&this.content(B0)==="|"&&P[s+2]&&P[s+2][B.FIELDS.TYPE]!==O.equals&&!h.operator&&!h.namespace)h.namespace=K0,J0="namespace";else if(!h.attribute||J0==="attribute"&&!A0){Z0&&((0,j.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Z0,Z0=""),Q0&&((0,j.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Q0,Q0=""),h.attribute=(h.attribute||"")+K0;var u0=(0,j.getProp)(h,"raws","attribute")||null;u0&&(h.raws.attribute+=K0),J0="attribute"}else if(!h.value&&h.value!==""||J0==="value"&&!A0){var n0=(0,j.unesc)(K0),o0=(0,j.getProp)(h,"raws","value")||"",Q1=h.value||"";h.value=Q1+n0,h.quoteMark=null,(n0!==K0||o0)&&((0,j.ensureObject)(h,"raws"),h.raws.value=(o0||Q1)+K0),J0="value"}else{var W1=K0==="i"||K0==="I";(h.value||h.value==="")&&(h.quoteMark||A0)?(h.insensitive=W1,(!W1||K0==="I")&&((0,j.ensureObject)(h,"raws"),h.raws.insensitiveFlag=K0),J0="insensitive",Z0&&((0,j.ensureObject)(h,"spaces","insensitive"),h.spaces.insensitive.before=Z0,Z0=""),Q0&&((0,j.ensureObject)(h,"raws","spaces","insensitive"),h.raws.spaces.insensitive.before=Q0,Q0="")):(h.value||h.value==="")&&(J0="value",h.value+=K0,h.raws.value&&(h.raws.value+=K0))}A0=!1;break;case O.str:if(!h.attribute||!h.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:E0[B.FIELDS.START_POS]});var e0=(0,U.unescapeValue)(K0),U5=e0.unescaped,g1=e0.quoteMark;h.value=U5,h.quoteMark=g1,J0="value",(0,j.ensureObject)(h,"raws"),h.raws.value=K0,A0=!1;break;case O.equals:if(!h.attribute)return this.expected("attribute",E0[B.FIELDS.START_POS],K0);if(h.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:E0[B.FIELDS.START_POS]});h.operator=h.operator?h.operator+K0:K0,J0="operator",A0=!1;break;case O.comment:if(J0)if(A0||B0&&B0[B.FIELDS.TYPE]===O.space||J0==="insensitive"){var t1=(0,j.getProp)(h,"spaces",J0,"after")||"",H5=(0,j.getProp)(h,"raws","spaces",J0,"after")||t1;(0,j.ensureObject)(h,"raws","spaces",J0),h.raws.spaces[J0].after=H5+K0}else{var U8=h[J0]||"",V5=(0,j.getProp)(h,"raws",J0)||U8;(0,j.ensureObject)(h,"raws"),h.raws[J0]=V5+K0}else Q0=Q0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:E0[B.FIELDS.START_POS]})}s++}m(h,"attribute"),m(h,"namespace"),this.newNode(new U.default(h)),this.position++},d.parseWhitespaceEquivalentTokens=function(P){P<0&&(P=this.tokens.length);var k=this.position,l=[],h="",s=void 0;do if(g[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(h+=this.content());else if(this.currToken[B.FIELDS.TYPE]===O.comment){var Z0={};h&&(Z0.before=h,h=""),s=new Q.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:Z0}),l.push(s)}while(++this.position<P);if(h){if(s)s.spaces.after=h;else if(!this.options.lossy){var Q0=this.tokens[k],J0=this.tokens[this.position-1];l.push(new $.default({value:"",source:S(Q0[B.FIELDS.START_LINE],Q0[B.FIELDS.START_COL],J0[B.FIELDS.END_LINE],J0[B.FIELDS.END_COL]),sourceIndex:Q0[B.FIELDS.START_POS],spaces:{before:h,after:""}}))}}return l},d.convertWhitespaceNodesToSpace=function(P,k){var l=this;k===void 0&&(k=!1);var h="",s="";P.forEach(function(Q0){var J0=l.lossySpace(Q0.spaces.before,k),A0=l.lossySpace(Q0.rawSpaceBefore,k);h+=J0+l.lossySpace(Q0.spaces.after,k&&J0.length===0),s+=J0+Q0.value+l.lossySpace(Q0.rawSpaceAfter,k&&A0.length===0)}),s===h&&(s=void 0);var Z0={space:h,rawSpace:s};return Z0},d.isNamedCombinator=function(P){return P===void 0&&(P=this.position),this.tokens[P+0]&&this.tokens[P+0][B.FIELDS.TYPE]===O.slash&&this.tokens[P+1]&&this.tokens[P+1][B.FIELDS.TYPE]===O.word&&this.tokens[P+2]&&this.tokens[P+2][B.FIELDS.TYPE]===O.slash},d.namedCombinator=function(){if(this.isNamedCombinator()){var P=this.content(this.tokens[this.position+1]),k=(0,j.unesc)(P).toLowerCase(),l={};k!==P&&(l.value="/"+P+"/");var h=new V.default({value:"/"+k+"/",source:S(this.currToken[B.FIELDS.START_LINE],this.currToken[B.FIELDS.START_COL],this.tokens[this.position+2][B.FIELDS.END_LINE],this.tokens[this.position+2][B.FIELDS.END_COL]),sourceIndex:this.currToken[B.FIELDS.START_POS],raws:l});return this.position=this.position+3,h}else this.unexpected()},d.combinator=function(){var P=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][B.FIELDS.TYPE]===O.comma){var l=this.parseWhitespaceEquivalentTokens(k);if(l.length>0){var h=this.current.last;if(h){var s=this.convertWhitespaceNodesToSpace(l),Z0=s.space,Q0=s.rawSpace;Q0!==void 0&&(h.rawSpaceAfter+=Q0),h.spaces.after+=Z0}else l.forEach(function(o0){return P.newNode(o0)})}return}var J0=this.currToken,A0=void 0;k>this.position&&(A0=this.parseWhitespaceEquivalentTokens(k));var E0;if(this.isNamedCombinator()?E0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===O.combinator?(E0=new V.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):g[this.currToken[B.FIELDS.TYPE]]||A0||this.unexpected(),E0){if(A0){var K0=this.convertWhitespaceNodesToSpace(A0),B0=K0.space,C0=K0.rawSpace;E0.spaces.before=B0,E0.rawSpaceBefore=C0}}else{var c0=this.convertWhitespaceNodesToSpace(A0,!0),I0=c0.space,D0=c0.rawSpace;D0||(D0=I0);var u0={},n0={spaces:{}};I0.endsWith(" ")&&D0.endsWith(" ")?(u0.before=I0.slice(0,I0.length-1),n0.spaces.before=D0.slice(0,D0.length-1)):I0.startsWith(" ")&&D0.startsWith(" ")?(u0.after=I0.slice(1),n0.spaces.after=D0.slice(1)):n0.value=D0,E0=new V.default({value:" ",source:C(J0,this.tokens[this.position-1]),sourceIndex:J0[B.FIELDS.START_POS],spaces:u0,raws:n0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===O.space&&(E0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(E0)},d.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var P=new Z.default({source:{start:i(this.tokens[this.position+1])}});this.current.parent.append(P),this.current=P,this.position++},d.comment=function(){var P=this.currToken;this.newNode(new Q.default({value:this.content(),source:v(P),sourceIndex:P[B.FIELDS.START_POS]})),this.position++},d.error=function(P,k){throw this.root.error(P,k)},d.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},d.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},d.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},d.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},d.namespace=function(){var P=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===O.word)return this.position++,this.word(P);if(this.nextToken[B.FIELDS.TYPE]===O.asterisk)return this.position++,this.universal(P)},d.nesting=function(){if(this.nextToken){var P=this.content(this.nextToken);if(P==="|"){this.position++;return}}var k=this.currToken;this.newNode(new A.default({value:this.content(),source:v(k),sourceIndex:k[B.FIELDS.START_POS]})),this.position++},d.parentheses=function(){var P=this.current.last,k=1;if(this.position++,P&&P.type===N.PSEUDO){var l=new Z.default({source:{start:i(this.tokens[this.position-1])}}),h=this.current;for(P.append(l),this.current=l;this.position<this.tokens.length&&k;)this.currToken[B.FIELDS.TYPE]===O.openParenthesis&&k++,this.currToken[B.FIELDS.TYPE]===O.closeParenthesis&&k--,k?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=h}else{for(var s=this.currToken,Z0="(",Q0;this.position<this.tokens.length&&k;)this.currToken[B.FIELDS.TYPE]===O.openParenthesis&&k++,this.currToken[B.FIELDS.TYPE]===O.closeParenthesis&&k--,Q0=this.currToken,Z0+=this.parseParenthesisToken(this.currToken),this.position++;P?P.appendToPropertyAndEscape("value",Z0,Z0):this.newNode(new $.default({value:Z0,source:S(s[B.FIELDS.START_LINE],s[B.FIELDS.START_COL],Q0[B.FIELDS.END_LINE],Q0[B.FIELDS.END_COL]),sourceIndex:s[B.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},d.pseudo=function(){for(var P=this,k="",l=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===O.colon;)k+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===O.word)this.splitWord(!1,function(h,s){k+=h,P.newNode(new w.default({value:k,source:C(l,P.currToken),sourceIndex:l[B.FIELDS.START_POS]})),s>1&&P.nextToken&&P.nextToken[B.FIELDS.TYPE]===O.openParenthesis&&P.error("Misplaced parenthesis.",{index:P.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},d.space=function(){var P=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===O.comma||this.prevToken[B.FIELDS.TYPE]===O.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(P),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===O.comma||this.nextToken[B.FIELDS.TYPE]===O.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(P),this.position++):this.combinator()},d.string=function(){var P=this.currToken;this.newNode(new $.default({value:this.content(),source:v(P),sourceIndex:P[B.FIELDS.START_POS]})),this.position++},d.universal=function(P){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var l=this.currToken;this.newNode(new H.default({value:this.content(),source:v(l),sourceIndex:l[B.FIELDS.START_POS]}),P),this.position++},d.splitWord=function(P,k){for(var l=this,h=this.nextToken,s=this.content();h&&~[O.dollar,O.caret,O.equals,O.word].indexOf(h[B.FIELDS.TYPE]);){this.position++;var Z0=this.content();if(s+=Z0,Z0.lastIndexOf("\\")===Z0.length-1){var Q0=this.nextToken;Q0&&Q0[B.FIELDS.TYPE]===O.space&&(s+=this.requiredSpace(this.content(Q0)),this.position++)}h=this.nextToken}var J0=u(s,".").filter(function(B0){var C0=s[B0-1]==="\\",c0=/^\d+\.\d+%$/.test(s);return!C0&&!c0}),A0=u(s,"#").filter(function(B0){return s[B0-1]!=="\\"}),E0=u(s,"#{");E0.length&&(A0=A0.filter(function(B0){return!~E0.indexOf(B0)}));var K0=(0,M.default)(a([0].concat(J0,A0)));K0.forEach(function(B0,C0){var c0=K0[C0+1]||s.length,I0=s.slice(B0,c0);if(C0===0&&k)return k.call(l,I0,K0.length);var D0,u0=l.currToken,n0=u0[B.FIELDS.START_POS]+K0[C0],o0=S(u0[1],u0[2]+B0,u0[3],u0[2]+(c0-1));if(~J0.indexOf(B0)){var Q1={value:I0.slice(1),source:o0,sourceIndex:n0};D0=new X.default(m(Q1,"value"))}else if(~A0.indexOf(B0)){var W1={value:I0.slice(1),source:o0,sourceIndex:n0};D0=new W.default(m(W1,"value"))}else{var e0={value:I0,source:o0,sourceIndex:n0};m(e0,"value"),D0=new z.default(e0)}l.newNode(D0,P),P=null}),this.position++},d.word=function(P){var k=this.nextToken;return k&&this.content(k)==="|"?(this.position++,this.namespace()):this.splitWord(P)},d.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},d.parse=function(P){switch(this.currToken[B.FIELDS.TYPE]){case O.space:this.space();break;case O.comment:this.comment();break;case O.openParenthesis:this.parentheses();break;case O.closeParenthesis:P&&this.missingParenthesis();break;case O.openSquare:this.attribute();break;case O.dollar:case O.caret:case O.equals:case O.word:this.word();break;case O.colon:this.pseudo();break;case O.comma:this.comma();break;case O.asterisk:this.universal();break;case O.ampersand:this.nesting();break;case O.slash:case O.combinator:this.combinator();break;case O.str:this.string();break;case O.closeSquare:this.missingSquareBracket();case O.semicolon:this.missingBackslash();default:this.unexpected()}},d.expected=function(P,k,l){if(Array.isArray(P)){var h=P.pop();P=P.join(", ")+" or "+h}var s=/^[aeiou]/.test(P[0])?"an":"a";return l?this.error("Expected "+s+" "+P+', found "'+l+'" instead.',{index:k}):this.error("Expected "+s+" "+P+".",{index:k})},d.requiredSpace=function(P){return this.options.lossy?" ":P},d.optionalSpace=function(P){return this.options.lossy?"":P},d.lossySpace=function(P,k){return this.options.lossy?k?" ":"":P},d.parseParenthesisToken=function(P){var k=this.content(P);return P[B.FIELDS.TYPE]===O.space?this.requiredSpace(k):k},d.newNode=function(P,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),P.namespace=k,m(P,"namespace")),this.spaces&&(P.spaces.before=this.spaces,this.spaces=""),this.current.append(P)},d.content=function(P){return P===void 0&&(P=this.currToken),this.css.slice(P[B.FIELDS.START_POS],P[B.FIELDS.END_POS])},d.locateNextMeaningfulToken=function(P){P===void 0&&(P=this.position+1);for(var k=P;k<this.tokens.length;)if(c[this.tokens[k][B.FIELDS.TYPE]]){k++;continue}else return k;return-1},R(f,[{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]}}]),f}();J.default=n,Y.exports=J.default}),BU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Z(AU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}var X=function(){function Q(z,$){this.func=z||function(){},this.funcRes=null,this.options=$}var W=Q.prototype;return W._shouldUpdateSelector=function(z,$){$===void 0&&($={});var w=Object.assign({},this.options,$);return w.updateSelector===!1?!1:typeof z!="string"},W._isLossy=function(z){z===void 0&&(z={});var $=Object.assign({},this.options,z);return $.lossless===!1},W._root=function(z,$){$===void 0&&($={});var w=new K.default(z,this._parseOptions($));return w.root},W._parseOptions=function(z){return{lossy:this._isLossy(z)}},W._run=function(z,$){var w=this;return $===void 0&&($={}),new Promise(function(U,H){try{var V=w._root(z,$);Promise.resolve(w.func(V)).then(function(A){var M=void 0;return w._shouldUpdateSelector(z,$)&&(M=V.toString(),z.selector=M),{transform:A,root:V,string:M}}).then(U,H)}catch(A){H(A);return}})},W._runSync=function(z,$){$===void 0&&($={});var w=this._root(z,$),U=this.func(w);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var H=void 0;return $.updateSelector&&typeof z!="string"&&(H=w.toString(),z.selector=H),{transform:U,root:w,string:H}},W.ast=function(z,$){return this._run(z,$).then(function(w){return w.root})},W.astSync=function(z,$){return this._runSync(z,$).root},W.transform=function(z,$){return this._run(z,$).then(function(w){return w.transform})},W.transformSync=function(z,$){return this._runSync(z,$).transform},W.process=function(z,$){return this._run(z,$).then(function(w){return w.string||w.root.toString()})},W.processSync=function(z,$){var w=this._runSync(z,$);return w.string||w.root.toString()},Q}();J.default=X,Y.exports=J.default}),GU=e((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var Y=A(zY()),K=A(KY()),Z=A(UY()),X=A(ZY()),Q=A(XY()),W=A(HY()),z=A($Y()),$=A(JY()),w=A(YY()),U=A(WY()),H=A(QY()),V=A(wY());function A(g){return g&&g.__esModule?g:{default:g}}var M=function(g){return new Y.default(g)};J.attribute=M;var B=function(g){return new K.default(g)};J.className=B;var O=function(g){return new Z.default(g)};J.combinator=O;var N=function(g){return new X.default(g)};J.comment=N;var j=function(g){return new Q.default(g)};J.id=j;var E=function(g){return new W.default(g)};J.nesting=E;var I=function(g){return new z.default(g)};J.pseudo=I;var F=function(g){return new $.default(g)};J.root=F;var q=function(g){return new w.default(g)};J.selector=q;var T=function(g){return new U.default(g)};J.string=T;var D=function(g){return new H.default(g)};J.tag=D;var R=function(g){return new V.default(g)};J.universal=R}),OU=e((J)=>{J.__esModule=!0,J.isNode=X,J.isPseudoElement=j,J.isPseudoClass=E,J.isContainer=I,J.isNamespace=F,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var Y=d0(),K,Z=(K={},K[Y.ATTRIBUTE]=!0,K[Y.CLASS]=!0,K[Y.COMBINATOR]=!0,K[Y.COMMENT]=!0,K[Y.ID]=!0,K[Y.NESTING]=!0,K[Y.PSEUDO]=!0,K[Y.ROOT]=!0,K[Y.SELECTOR]=!0,K[Y.STRING]=!0,K[Y.TAG]=!0,K[Y.UNIVERSAL]=!0,K);function X(q){return typeof q=="object"&&Z[q.type]}function Q(q,T){return X(T)&&T.type===q}var W=Q.bind(null,Y.ATTRIBUTE);J.isAttribute=W;var z=Q.bind(null,Y.CLASS);J.isClassName=z;var $=Q.bind(null,Y.COMBINATOR);J.isCombinator=$;var w=Q.bind(null,Y.COMMENT);J.isComment=w;var U=Q.bind(null,Y.ID);J.isIdentifier=U;var H=Q.bind(null,Y.NESTING);J.isNesting=H;var V=Q.bind(null,Y.PSEUDO);J.isPseudo=V;var A=Q.bind(null,Y.ROOT);J.isRoot=A;var M=Q.bind(null,Y.SELECTOR);J.isSelector=M;var B=Q.bind(null,Y.STRING);J.isString=B;var O=Q.bind(null,Y.TAG);J.isTag=O;var N=Q.bind(null,Y.UNIVERSAL);J.isUniversal=N;function j(q){return V(q)&&q.value&&(q.value.startsWith("::")||q.value.toLowerCase()===":before"||q.value.toLowerCase()===":after"||q.value.toLowerCase()===":first-letter"||q.value.toLowerCase()===":first-line")}function E(q){return V(q)&&!j(q)}function I(q){return!!(X(q)&&q.walk)}function F(q){return W(q)||O(q)}}),MU=e((J)=>{J.__esModule=!0;var Y=d0();Object.keys(Y).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Y[X]||(J[X]=Y[X])});var K=GU();Object.keys(K).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===K[X]||(J[X]=K[X])});var Z=OU();Object.keys(Z).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Z[X]||(J[X]=Z[X])})}),LU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(BU()),Z=Q(MU());function X(){if(typeof WeakMap!="function")return null;var w=new WeakMap;return X=function(){return w},w}function Q(w){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var U=X();if(U&&U.has(w))return U.get(w);var H={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(Object.prototype.hasOwnProperty.call(w,A)){var M=V?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(H,A,M):H[A]=w[A]}return H.default=w,U&&U.set(w,H),H}function W(w){return w&&w.__esModule?w:{default:w}}var z=function(w){return new K.default(w)};Object.assign(z,Z),delete z.__esModule;var $=z;J.default=$,Y.exports=J.default}),NU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return K.replace(/\\,/g,"\\2c ")}}),jU=e((J,Y)=>{Y.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]}}),AY=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(M,B){for(var O in B)Object.defineProperty(M,O,{enumerable:!0,get:B[O]})}Y(J,{parseColor:()=>V,formatColor:()=>A});var K=Z(jU());function Z(M){return M&&M.__esModule?M:{default:M}}var X=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,W=/(?:\d+|\d*\.\d+)%?/,z=/(?:\s*,\s*|\s+)/,$=/\s*[,/]\s*/,w=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${W.source}|${w.source})(?:${z.source}(${W.source}|${w.source}))?(?:${z.source}(${W.source}|${w.source}))?(?:${$.source}(${W.source}|${w.source}))?\\s*\\)$`),H=new RegExp(`^(hsl)a?\\(\\s*((?:${W.source})(?:deg|rad|grad|turn)?|${w.source})(?:${z.source}(${W.source}|${w.source}))?(?:${z.source}(${W.source}|${w.source}))?(?:${$.source}(${W.source}|${w.source}))?\\s*\\)$`);function V(M,{loose:B=!1}={}){var O,N;if(typeof M!="string")return null;if(M=M.trim(),M==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(M in K.default)return{mode:"rgb",color:K.default[M].map((q)=>q.toString())};let j=M.replace(Q,(q,T,D,R,g)=>["#",T,T,D,D,R,R,g?g+g:""].join("")).match(X);if(j!==null)return{mode:"rgb",color:[parseInt(j[1],16),parseInt(j[2],16),parseInt(j[3],16)].map((q)=>q.toString()),alpha:j[4]?(parseInt(j[4],16)/255).toString():void 0};var E;let I=(E=M.match(U))!==null&&E!==void 0?E:M.match(H);if(I===null)return null;let F=[I[2],I[3],I[4]].filter(Boolean).map((q)=>q.toString());return!B&&F.length!==3||F.length<3&&!F.some((q)=>/^var\(.*?\)$/.test(q))?null:{mode:I[1],color:F,alpha:(O=I[5])===null||O===void 0||(N=O.toString)===null||N===void 0?void 0:N.call(O)}}function A({mode:M,color:B,alpha:O}){let N=O!==void 0;return`${M}(${B.join(" ")}${N?` / ${O}`:""})`}}),BY=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(Q,W){for(var z in W)Object.defineProperty(Q,z,{enumerable:!0,get:W[z]})}Y(J,{withAlphaValue:()=>Z,default:()=>X});var K=AY();function Z(Q,W,z){if(typeof Q=="function")return Q({opacityValue:W});let $=(0,K.parseColor)(Q,{loose:!0});return $===null?z:(0,K.formatColor)({...$,alpha:W})}function X({color:Q,property:W,variable:z}){let $=[].concat(W);if(typeof Q=="function")return{[z]:"1",...Object.fromEntries($.map((U)=>[U,Q({opacityVariable:z,opacityValue:`var(${z})`})]))};let w=(0,K.parseColor)(Q);return w===null?Object.fromEntries($.map((U)=>[U,Q])):w.alpha!==void 0?Object.fromEntries($.map((U)=>[U,Q])):{[z]:"1",...Object.fromEntries($.map((U)=>[U,(0,K.formatColor)({...w,alpha:`var(${z})`})]))}}}),qU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(V,A){for(var M in A)Object.defineProperty(V,M,{enumerable:!0,get:A[M]})}Y(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>z,optional:()=>$,zeroOrMore:()=>w,nestedBrackets:()=>U,escape:()=>H});var K=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(K.source);function X(V){return V=Array.isArray(V)?V:[V],V=V.map((A)=>A instanceof RegExp?A.source:A),V.join("")}function Q(V){return new RegExp(X(V),"g")}function W(V){return new RegExp(`(?:${X(V)})`,"g")}function z(V){return`(?:${V.map(X).join("|")})`}function $(V){return`(?:${X(V)})?`}function w(V){return`(?:${X(V)})*`}function U(V,A,M=1){return W([H(V),/[^\s]*/,M===1?`[^${H(V)}${H(A)}s]*`:z([`[^${H(V)}${H(A)}s]*`,U(V,A,M-1)]),/[^\s]*/,H(A)])}function H(V){return V&&Z.test(V)?V.replace(K,"\\$&"):V||""}}),EU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>X});var Y=Z(qU());function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,z=new WeakMap;return(K=function($){return $?z:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var z=K(W);if(z&&z.has(Q))return z.get(Q);var $={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=w?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,z&&z.set(Q,$),$}function*X(Q,W){let z=new RegExp(`[(){}\\[\\]${Y.escape(W)}]`,"g"),$=0,w=0,U=!1,H=0,V=0,A=W.length;for(let M of Q.matchAll(z)){let B=M[0]===W[H],O=H===A-1,N=B&&O;M[0]==="("&&$++,M[0]===")"&&$--,M[0]==="["&&$++,M[0]==="]"&&$--,M[0]==="{"&&$++,M[0]==="}"&&$--,B&&$===0&&(V===0&&(V=M.index),H++),N&&$===0&&(U=!0,yield Q.substring(w,V),w=V+A),H===A&&(H=0,V=0)}U?yield Q.substring(w):yield Q}}),FU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y($,w){for(var U in w)Object.defineProperty($,U,{enumerable:!0,get:w[U]})}Y(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>z});var K=EU(),Z=new Set(["inset","inherit","initial","revert","unset"]),X=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W($){return Array.from((0,K.splitAtTopLevelOnly)($,",")).map((w)=>{let U=w.trim(),H={raw:U},V=U.split(X),A=new Set;for(let M of V)Q.lastIndex=0,!A.has("KEYWORD")&&Z.has(M)?(H.keyword=M,A.add("KEYWORD")):Q.test(M)?A.has("X")?A.has("Y")?A.has("BLUR")?A.has("SPREAD")||(H.spread=M,A.add("SPREAD")):(H.blur=M,A.add("BLUR")):(H.y=M,A.add("Y")):(H.x=M,A.add("X")):H.color?(H.unknown||(H.unknown=[]),H.unknown.push(M)):H.color=M;return H.valid=H.x!==void 0&&H.y!==void 0,H})}function z($){return $.map((w)=>w.valid?[w.keyword,w.x,w.y,w.blur,w.spread,w.color].filter(Boolean).join(" "):w.raw).join(", ")}}),_U=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(S,v){for(var C in v)Object.defineProperty(S,C,{enumerable:!0,get:v[C]})}Y(J,{normalize:()=>z,url:()=>$,number:()=>w,percentage:()=>U,length:()=>A,lineWidth:()=>B,shadow:()=>O,color:()=>N,image:()=>j,gradient:()=>I,position:()=>q,familyName:()=>T,genericName:()=>R,absoluteSize:()=>c,relativeSize:()=>p});var K=AY(),Z=FU(),X=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function z(S,v=!0){return S.includes("url(")?S.split(/(url\(.*?\))/g).filter(Boolean).map((C)=>/^url\(.*?\)$/.test(C)?C:z(C,!1)).join(""):(S=S.replace(/([^\\])_+/g,(C,m)=>m+" ".repeat(C.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),v&&(S=S.trim()),S=S.replace(/(calc|min|max|clamp)\(.+\)/g,(C)=>C.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),S)}function $(S){return S.startsWith("url(")}function w(S){return!isNaN(Number(S))||X.some((v)=>new RegExp(`^${v}\\(.+?`).test(S))}function U(S){return S.split(W).every((v)=>/%$/g.test(v)||X.some((C)=>new RegExp(`^${C}\\(.+?%`).test(v)))}var H=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${H.join("|")})`;function A(S){return S.split(W).every((v)=>v==="0"||new RegExp(`${V}$`).test(v)||X.some((C)=>new RegExp(`^${C}\\(.+?${V}`).test(v)))}var M=new Set(["thin","medium","thick"]);function B(S){return M.has(S)}function O(S){let v=(0,Z.parseBoxShadowValue)(z(S));for(let C of v)if(!C.valid)return!1;return!0}function N(S){let v=0;return S.split(W).every((C)=>(C=z(C),C.startsWith("var(")?!0:(0,K.parseColor)(C,{loose:!0})!==null?(v++,!0):!1))?v>0:!1}function j(S){let v=0;return S.split(Q).every((C)=>(C=z(C),C.startsWith("var(")?!0:$(C)||I(C)||["element(","image(","cross-fade(","image-set("].some((m)=>C.startsWith(m))?(v++,!0):!1))?v>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function I(S){S=z(S);for(let v of E)if(S.startsWith(`${v}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function q(S){let v=0;return S.split(W).every((C)=>(C=z(C),C.startsWith("var(")?!0:F.has(C)||A(C)||U(C)?(v++,!0):!1))?v>0:!1}function T(S){let v=0;return S.split(Q).every((C)=>(C=z(C),C.startsWith("var(")?!0:C.includes(" ")&&!/(['"])([^"']+)\1/g.test(C)||/^\d/g.test(C)?!1:(v++,!0)))?v>0:!1}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function R(S){return D.has(S)}var g=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function c(S){return g.has(S)}var i=new Set(["larger","smaller"]);function p(S){return i.has(S)}}),IU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(q,T){for(var D in T)Object.defineProperty(q,D,{enumerable:!0,get:T[D]})}Y(J,{updateAllClasses:()=>$,asValue:()=>H,parseColorFormat:()=>M,asColor:()=>B,asLookupValue:()=>O,coerceValue:()=>F});var K=z(LU()),Z=z(NU()),X=BY(),Q=_U(),W=z(sJ());function z(q){return q&&q.__esModule?q:{default:q}}function $(q,T){return(0,K.default)((D)=>{D.walkClasses((R)=>{let g=T(R.value);R.value=g,R.raws&&R.raws.value&&(R.raws.value=(0,Z.default)(R.raws.value))})}).processSync(q)}function w(q,T){if(!V(q))return;let D=q.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(q,T={},D){let R=T[q];if(R!==void 0)return(0,W.default)(R);if(V(q)){let g=w(q,D);return g===void 0?void 0:(0,W.default)(g)}}function H(q,T={},{validate:D=()=>!0}={}){var R;let g=(R=T.values)===null||R===void 0?void 0:R[q];return g!==void 0?g:T.supportsNegativeValues&&q.startsWith("-")?U(q.slice(1),T.values,D):w(q,D)}function V(q){return q.startsWith("[")&&q.endsWith("]")}function A(q){let T=q.lastIndexOf("/");return T===-1||T===q.length-1?[q]:[q.slice(0,T),q.slice(T+1)]}function M(q){if(typeof q=="string"&&q.includes("<alpha-value>")){let T=q;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return q}function B(q,T={},{tailwindConfig:D={}}={}){var R;if(((R=T.values)===null||R===void 0?void 0:R[q])!==void 0){var g;return M((g=T.values)===null||g===void 0?void 0:g[q])}let[c,i]=A(q);if(i!==void 0){var p,S,v,C;let m=(C=(p=T.values)===null||p===void 0?void 0:p[c])!==null&&C!==void 0?C:V(c)?c.slice(1,-1):void 0;return m===void 0?void 0:(m=M(m),V(i)?(0,X.withAlphaValue)(m,i.slice(1,-1)):((S=D.theme)===null||S===void 0||(v=S.opacity)===null||v===void 0?void 0:v[i])===void 0?void 0:(0,X.withAlphaValue)(m,D.theme.opacity[i]))}return H(q,T,{validate:Q.color})}function O(q,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[q]}function N(q){return(T,D)=>H(T,D,{validate:q})}var j={any:H,color:B,url:N(Q.url),image:N(Q.image),length:N(Q.length),percentage:N(Q.percentage),position:N(Q.position),lookup:O,"generic-name":N(Q.genericName),"family-name":N(Q.familyName),number:N(Q.number),"line-width":N(Q.lineWidth),"absolute-size":N(Q.absoluteSize),"relative-size":N(Q.relativeSize),shadow:N(Q.shadow)},E=Object.keys(j);function I(q,T){let D=q.indexOf(T);return D===-1?[void 0,q]:[q.slice(0,D),q.slice(D+1)]}function F(q,T,D,R){if(V(T)){let g=T.slice(1,-1),[c,i]=I(g,":");if(!/^[\w-_]+$/g.test(c))i=g;else if(c!==void 0&&!E.includes(c))return[];if(i.length>0&&E.includes(c))return[H(`[${i}]`,D),c]}for(let g of[].concat(q)){let c=j[g](T,D,{tailwindConfig:R});if(c!==void 0)return[c,g]}return[]}}),DU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return typeof K=="function"?K({}):K}}),RU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var Y=M(sJ()),K=M(ew()),Z=M(JU()),X=M(aJ()),Q=M(YU()),W=KU(),z=ZU(),$=XU(),w=M(QU()),U=WU(),H=IU(),V=BY(),A=M(DU());function M(S){return S&&S.__esModule?S:{default:S}}function B(S){return typeof S=="function"}function O(S){return typeof S=="object"&&S!==null}function N(S,...v){let C=v.pop();for(let m of v)for(let u in m){let a=C(S[u],m[u]);a===void 0?O(S[u])&&O(m[u])?S[u]=N(S[u],m[u],C):S[u]=m[u]:S[u]=a}return S}var j={colors:Q.default,negative(S){return Object.keys(S).filter((v)=>S[v]!=="0").reduce((v,C)=>{let m=(0,Y.default)(S[C]);return m!==void 0&&(v[`-${C}`]=m),v},{})},breakpoints(S){return Object.keys(S).filter((v)=>typeof S[v]=="string").reduce((v,C)=>({...v,[`screen-${C}`]:S[C]}),{})}};function E(S,...v){return B(S)?S(...v):S}function I(S){return S.reduce((v,{extend:C})=>N(v,C,(m,u)=>m===void 0?[u]:Array.isArray(m)?[u,...m]:[u,m]),{})}function F(S){return{...S.reduce((v,C)=>(0,W.defaults)(v,C),{}),extend:I(S)}}function q(S,v){if(Array.isArray(S)&&O(S[0]))return S.concat(v);if(Array.isArray(v)&&O(v[0])&&O(S))return[S,...v];if(Array.isArray(v))return v}function T({extend:S,...v}){return N(v,S,(C,m)=>!B(C)&&!m.some(B)?N({},C,...m,q):(u,a)=>N({},...[C,...m].map((n)=>E(n,u,a)),q))}function*D(S){let v=(0,z.toPath)(S);if(v.length===0||(yield v,Array.isArray(S)))return;let C=/^(.*?)\s*\/\s*([^/]+)$/,m=S.match(C);if(m!==null){let[,u,a]=m,n=(0,z.toPath)(u);n.alpha=a,yield n}}function R(S){let v=(C,m)=>{for(let u of D(C)){let a=0,n=S;for(;n!=null&&a<u.length;)n=n[u[a++]],n=B(n)&&(u.alpha===void 0||a<=u.length-1)?n(v,j):n;if(n!==void 0){if(u.alpha!==void 0){let f=(0,H.parseColorFormat)(n);return(0,V.withAlphaValue)(f,u.alpha,(0,A.default)(f))}return(0,w.default)(n)?(0,U.cloneDeep)(n):n}}return m};return Object.assign(v,{theme:v,...j}),Object.keys(S).reduce((C,m)=>(C[m]=B(S[m])?S[m](v,j):S[m],C),{})}function g(S){let v=[];return S.forEach((C)=>{v=[...v,C];var m;let u=(m=C==null?void 0:C.plugins)!==null&&m!==void 0?m:[];u.length!==0&&u.forEach((a)=>{a.__isOptionsFunction&&(a=a());var n;v=[...v,...g([(n=a==null?void 0:a.config)!==null&&n!==void 0?n:{}])]})}),v}function c(S){return[...S].reduceRight((v,C)=>B(C)?C({corePlugins:v}):(0,Z.default)(C,v),K.default)}function i(S){return[...S].reduceRight((v,C)=>[...v,...C],[])}function p(S){let v=[...g(S),{prefix:"",important:!1,separator:":",variantOrder:X.default.variantOrder}];var C,m;return(0,$.normalizeConfig)((0,W.defaults)({theme:R(T(F(v.map((u)=>(C=u==null?void 0:u.theme)!==null&&C!==void 0?C:{})))),corePlugins:c(v.map((u)=>u.corePlugins)),plugins:i(S.map((u)=>(m=u==null?void 0:u.plugins)!==null&&m!==void 0?m:[]))},...v))}}),GY={};r9(GY,{default:()=>OY});var OY,CU=o9(()=>{OY={yellow:(J)=>J}}),TU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(H,V){for(var A in V)Object.defineProperty(H,A,{enumerable:!0,get:V[A]})}Y(J,{flagEnabled:()=>z,issueFlagNotices:()=>w,default:()=>U});var K=X((CU(),t8(GY))),Z=X((s9(),t8(Y6)));function X(H){return H&&H.__esModule?H:{default:H}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function z(H,V){if(W.future.includes(V)){var A,M,B;return H.future==="all"||((B=(M=H==null||(A=H.future)===null||A===void 0?void 0:A[V])!==null&&M!==void 0?M:Q[V])!==null&&B!==void 0?B:!1)}if(W.experimental.includes(V)){var O,N,j;return H.experimental==="all"||((j=(N=H==null||(O=H.experimental)===null||O===void 0?void 0:O[V])!==null&&N!==void 0?N:Q[V])!==null&&j!==void 0?j:!1)}return!1}function $(H){if(H.experimental==="all")return W.experimental;var V;return Object.keys((V=H==null?void 0:H.experimental)!==null&&V!==void 0?V:{}).filter((A)=>W.experimental.includes(A)&&H.experimental[A])}function w(H){if(process.env.JEST_WORKER_ID===void 0&&$(H).length>0){let V=$(H).map((A)=>K.default.yellow(A)).join(", ");Z.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${V}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),PU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(aJ()),K=TU();function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(Q){var W;let z=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[Y.default]).slice().reverse().flatMap((U)=>X(typeof U=="function"?U():U)),$={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},w=Object.keys($).filter((U)=>(0,K.flagEnabled)(Q,U)).map((U)=>$[U]);return[Q,...w,...z]}}),SU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(RU()),K=Z(PU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(...Q){let[,...W]=(0,K.default)(Q[0]);return(0,Y.default)([...Q,...W])}}),vU=e((J,Y)=>{var K=SU();Y.exports=(K.__esModule?K:{default:K}).default}),h8;var s5=null;async function Z6(){return h8||(s5?(await s5,h8):(s5=Promise.resolve().then(()=>(tw(),rJ)).then((J)=>J.getYogaModule()).then((J)=>h8=J),await s5,s5=null,h8))}var Z8=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),kU=Z8((J,Y)=>{Y.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),yU=Z8((J,Y)=>{Y.exports=["deg","grad","rad","turn"]}),gU=Z8((J,Y)=>{Y.exports=["dpi","dpcm","dppx"]}),hU=Z8((J,Y)=>{Y.exports=["Hz","kHz"]}),xU=Z8((J,Y)=>{Y.exports=["s","ms"]}),bU=kU(),MY=yU(),LY=gU(),NY=hU(),jY=xU();function J4(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if(fU(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=P9(J),this.unit="%";return}var Y=dU(J);if(!Y){this.type="number",this.value=P9(J);return}this.type=uU(Y),this.value=P9(J.substr(0,J.length-Y.length)),this.unit=Y}J4.prototype.valueOf=function(){return this.value};J4.prototype.toString=function(){return this.value+(this.unit||"")};function X8(J){return new J4(J)}function fU(J){var Y=J.match(/\./g);return Y?Y.length:0}function P9(J){var Y=parseFloat(J);if(isNaN(Y))throw Error("Invalid number: "+J);return Y}var mU=[].concat(MY,NY,bU,LY,jY);function dU(J){var Y=J.match(/\D+$/),K=Y&&Y[0];if(K&&mU.indexOf(K)===-1)throw Error("Invalid unit: "+K);return K}var cU=Object.assign(x8(MY,"angle"),x8(NY,"frequency"),x8(LY,"resolution"),x8(jY,"time"));function x8(J,Y){return Object.fromEntries(J.map((K)=>[K,Y]))}function uU(J){return cU[J]||"length"}function n8(J){let Y=typeof J;return!(Y==="number"||Y==="bigint"||Y==="string"||Y==="boolean")}function lU(J){return/^class\s/.test(J.toString())}function pU(J){return"dangerouslySetInnerHTML"in J}function iU(J){let Y=typeof J>"u"?[]:[].concat(J).flat(1/0),K=[];for(let Z=0;Z<Y.length;Z++){let X=Y[Z];typeof X>"u"||typeof X=="boolean"||X===null||(typeof X=="number"&&(X=String(X)),typeof X=="string"&&K.length&&typeof K[K.length-1]=="string"?K[K.length-1]+=X:K.push(X))}return K}function V0(J,Y,K,Z,X=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new X8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*Y;case"rem":return Q.value*16;case"vw":return~~(Q.value*Z._viewportWidth/100);case"vh":return~~(Q.value*Z._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return qY(J);if(Q.type==="percentage"&&X)return Q.value/100*K}}catch{}}function qY(J){let Y=new X8(J);switch(Y.unit){case"deg":return Y.value;case"rad":return Y.value*180/Math.PI;case"turn":return Y.value*360;case"grad":return 0.9*Y.value}}function o8(J,Y){return[J[0]*Y[0]+J[2]*Y[1],J[1]*Y[0]+J[3]*Y[1],J[0]*Y[2]+J[2]*Y[3],J[1]*Y[2]+J[3]*Y[3],J[0]*Y[4]+J[2]*Y[5]+J[4],J[1]*Y[4]+J[3]*Y[5]+J[5]]}function G1(J,Y,K,Z){let X=Y[J];if(typeof X>"u"){if(Z&&typeof J<"u")throw Error(`Invalid value for CSS property "${Z}". Allowed values: ${Object.keys(Y).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);X=K}return X}var S9,v9,nU=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function M1(J,Y,K){if(!S9||!v9){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");S9=new Intl.Segmenter(K,{granularity:"word"}),v9=new Intl.Segmenter(K,{granularity:"grapheme"})}if(Y==="grapheme")return[...v9.segment(J)].map((Z)=>Z.segment);{let Z=[...S9.segment(J)].map((W)=>W.segment),X=[],Q=0;for(;Q<Z.length;){let W=Z[Q];if(W=="\xA0"){let z=Q===0?"":X.pop(),$=Q===Z.length-1?"":Z[Q+1];X.push(z+"\xA0"+$),Q+=2}else X.push(W),Q++}return X}}function t(J,Y,K){let Z="";for(let[X,Q]of Object.entries(Y))typeof Q<"u"&&(Z+=` ${X}="${Q}"`);return K?`<${J}${Z}>${K}</${J}>`:`<${J}${Z}/>`}function oU(J=20){let Y=new Map;function K(Q,W){if(Y.size>=J){let z=Y.keys().next().value;Y.delete(z)}Y.set(Q,W)}function Z(Q){if(!Y.has(Q))return;let W=Y.get(Q);return Y.delete(Q),Y.set(Q,W),W}function X(){Y.clear()}return{set:K,get:Z,clear:X}}function Y4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function rU(J){return Object.prototype.toString.call(J)}function EY(J){return typeof J=="string"}function sU(J){return typeof J=="number"}function aU(J){return rU(J)==="[object Undefined]"}function tU(J,Y){if(Y==="break-all")return{words:M1(J,"grapheme"),requiredBreaks:[]};if(Y==="keep-all")return{words:M1(J,"word"),requiredBreaks:[]};let K=new d6(J),Z=0,X=K.nextBreak(),Q=[],W=[!1];for(;X;){let z=J.slice(Z,X.position);Q.push(z),X.required?W.push(!0):W.push(!1),Z=X.position,X=K.nextBreak()}return{words:Q,requiredBreaks:W}}var eU=(J)=>J.replaceAll(/([A-Z])/g,(Y,K)=>`-${K.toLowerCase()}`);function FY(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}var JH="image/avif",YH="image/webp",X6="image/apng",Q6="image/png",W6="image/jpeg",$6="image/gif",K4="image/svg+xml";function _Y(J){let Y=new DataView(J),K=4,Z=Y.byteLength;for(;K<Z;){let X=Y.getUint16(K,!1);if(X>Z)throw TypeError("Invalid JPEG");let Q=Y.getUint8(X+1+K);if(Q===192||Q===193||Q===194)return[Y.getUint16(X+7+K,!1),Y.getUint16(X+5+K,!1)];K+=X+2}throw TypeError("Invalid JPEG")}function IY(J){let Y=new Uint8Array(J.slice(6,10));return[Y[0]|Y[1]<<8,Y[2]|Y[3]<<8]}function DY(J){let Y=new DataView(J);return[Y.getUint16(18,!1),Y.getUint16(22,!1)]}var o1=oU(100),r8=new Map,KH=[Q6,X6,W6,$6,K4];function ZH(J){let Y="",K=new Uint8Array(J);for(let Z=0;Z<K.byteLength;Z++)Y+=String.fromCharCode(K[Z]);return btoa(Y)}function XH(J){let Y=atob(J),K=Y.length,Z=new Uint8Array(K);for(let X=0;X<K;X++)Z[X]=Y.charCodeAt(X);return Z.buffer}function EJ(J,Y){let K=Y.match(/<svg[^>]*>/)[0],Z=K.match(/viewBox=['"](.+)['"]/),X=Z?Y4(Z[1]):null,Q=K.match(/width=['"](\d*\.\d+|\d+)['"]/),W=K.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!X&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let z=X?[X[2],X[3]]:[+Q[1],+W[1]],$=z[0]/z[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/$]:W?[+W[1]*$,+W[1]]:[z[0],z[1]]}function FJ(J){let Y,K=QH(new Uint8Array(J));switch(K){case Q6:case X6:Y=DY(J);break;case $6:Y=IY(J);break;case W6:Y=_Y(J);break}if(!KH.includes(K))throw Error(`Unsupported image type: ${K||"unknown"}`);return[`data:${K};base64,${ZH(J)}`,Y]}async function Z4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[X,Q]=FJ(J);return[X,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let X;try{X=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:W,dataString:z}=X;if(Q===K4){let $=W==="base64"?atob(z):decodeURIComponent(z.replace(/ /g,"%20")),w=W==="base64"?J:`data:image/svg+xml;base64,${btoa($)}`,U=EJ(J,$);return o1.set(J,[w,...U]),[w,...U]}else if(W==="base64"){let $,w=XH(z);switch(Q){case Q6:case X6:$=DY(w);break;case $6:$=IY(w);break;case W6:$=_Y(w);break}return o1.set(J,[J,...$]),[J,...$]}else return console.warn("Image data URI resolved without size:"+J),o1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(r8.has(J))return r8.get(J);let Y=o1.get(J);if(Y)return Y;let K=J,Z=fetch(K).then((X)=>{let Q=X.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?X.text():X.arrayBuffer()}).then((X)=>{if(typeof X=="string")try{let z=`data:image/svg+xml;base64,${btoa(X)}`,$=EJ(K,X);return[z,...$]}catch(z){throw Error(`Failed to parse SVG image: ${z.message}`)}let[Q,W]=FJ(X);return[Q,...W]}).then((X)=>(o1.set(K,X),X)).catch((X)=>(console.error(`Can't load image ${K}: `+X.message),o1.set(K,[]),[]));return r8.set(K,Z),Z}function QH(J){return[255,216,255].every((Y,K)=>J[K]===Y)?W6:[137,80,78,71,13,10,26,10].every((Y,K)=>J[K]===Y)?WH(J)?X6:Q6:[71,73,70,56].every((Y,K)=>J[K]===Y)?$6:[82,73,70,70,0,0,0,0,87,69,66,80].every((Y,K)=>!Y||J[K]===Y)?YH:[60,63,120,109,108].every((Y,K)=>J[K]===Y)?K4:[0,0,0,0,102,116,121,112,97,118,105,102].every((Y,K)=>!Y||J[K]===Y)?JH:null}function WH(J){let Y=new DataView(J.buffer),K,Z,X=8,Q=!1;for(;!Q&&K!=="IEND"&&X<J.length;){Z=Y.getUint32(X);let W=J.subarray(X+4,X+8);K=String.fromCharCode(...W),Q=K==="acTL",X+=12+Z}return Q}var d9={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},$H=/[\r\n%#()<>?[\\\]^`{|}"']/g;function c9(J,Y){if(!J)return"";if(Array.isArray(J))return J.map((w)=>c9(w,Y)).join("");if(typeof J!="object")return String(J);let K=J.type;if(K==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:Z,style:X,...Q}=J.props||{},W=(X==null?void 0:X.color)||Y,z=`${Object.entries(Q).map(([w,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),w==="href"&&K==="image"?` ${d9[w]||w}="${o1.get(U)[0]}"`:` ${d9[w]||w}="${U}"`)).join("")}`,$=X?` style="${Object.entries(X).map(([w,U])=>`${eU(w)}:${U}`).join(";")}"`:"";return`<${K}${z}${$}>${c9(Z,W)}</${K}>`}async function zH(J){let Y=new Set,K=(Z)=>{if(Z&&n8(Z)){if(Array.isArray(Z)){Z.forEach((X)=>K(X));return}else typeof Z=="object"&&(Z.type==="image"?Y.has(Z.props.href)||Y.add(Z.props.href):Z.type==="img"&&(Y.has(Z.props.src)||Y.add(Z.props.src)));Array.isArray(Z.props.children)?Z.props.children.map((X)=>K(X)):K(Z.props.children)}};return K(J),Promise.all(Array.from(Y).map((Z)=>Z4(Z)))}async function wH(J,Y){let{viewBox:K,viewbox:Z,width:X,height:Q,className:W,style:z,children:$,...w}=J.props||{};K||=Z,w.xmlns="http://www.w3.org/2000/svg";let U=(z==null?void 0:z.color)||Y,H=Y4(K),V=H?H[3]/H[2]:null;return X=X||V&&Q?Q/V:null,Q=Q||V&&X?X*V:null,w.width=X,w.height=Q,K&&(w.viewBox=K),`data:image/svg+xml;utf8,${`<svg ${Object.entries(w).map(([A,M])=>(typeof M=="string"&&M.toLowerCase()==="currentcolor"&&(M=U),` ${d9[A]||A}="${M}"`)).join("")}>${c9($,U)}</svg>`.replace($H,encodeURIComponent)}`}var Z1="flex",UH={p:{display:Z1,marginTop:"1em",marginBottom:"1em"},div:{display:Z1},blockquote:{display:Z1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Z1,textAlign:"center"},hr:{display:Z1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Z1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Z1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Z1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Z1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Z1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Z1,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:Z1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},HH=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function VH(J){let Y={};for(let K in J)HH.has(K)&&(Y[K]=J[K]);return Y}function AH(J,Y){try{let K=new X8(J);switch(K.unit){case"px":return{absolute:K.value};case"em":return{absolute:K.value*Y};case"rem":return{absolute:K.value*16};case"%":return{relative:K.value};default:return{}}}catch{return{}}}function k9(J,Y,K){switch(J){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 Z=AH(J,Y);return Z.absolute?{[K?"xAbsolute":"yAbsolute"]:Z.absolute}:Z.relative?{[K?"xRelative":"yRelative"]:Z.relative}:{}}}}function BH(J,Y){if(typeof J=="number")return{xAbsolute:J};let K;try{K=TY.default(J).nodes.filter((Z)=>Z.type==="word").map((Z)=>Z.value)}catch{return{}}return K.length===1?k9(K[0],Y,!0):K.length===2?((K[0]==="top"||K[0]==="bottom"||K[1]==="left"||K[1]==="right")&&K.reverse(),{...k9(K[0],Y,!0),...k9(K[1],Y,!1)}):{}}function a5(J,Y){let K=PY.getPropertyName(`mask-${Y}`);return J[K]||J[`WebkitM${K.substring(1)}`]}function GH(J){let Y=J.maskImage||J.WebkitMaskImage,K={position:a5(J,"position")||"0% 0%",size:a5(J,"size")||"100% 100%",repeat:a5(J,"repeat")||"repeat",origin:a5(J,"origin")||"border-box",clip:a5(J,"origin")||"border-box"};return FY(Y).filter((Z)=>Z&&Z!=="none").reverse().map((Z)=>({image:Z,...K}))}var OH=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),MH=new Set(["lineHeight"]);function LH(J,Y,K,Z){return J==="textDecoration"&&!K.includes(Y.textDecorationColor)&&(Y.textDecorationColor=Z),Y}function Q5(J,Y){let K=Number(Y);return isNaN(K)?Y:OH.has(J)?MH.has(J)?K:String(Y):K+"px"}function NH(J,Y,K){if(J==="lineHeight")return{lineHeight:Q5(J,Y)};if(J==="fontFamily")return{fontFamily:Y.split(",").map((Z)=>Z.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof Y!="string"||!Y.includes("/"))return;let[Z,X]=Y.split("/"),Q=O1.getStylesForProperty(J,Z,!0),W=O1.getStylesForProperty(J,X,!0);for(let z in Q)W[z]=Q5(J,Q[z])+" "+Q5(J,W[z]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let Z=O1.getStylesForProperty("border",Y,!0);Z.borderWidth===1&&!String(Y).includes("1px")&&(Z.borderWidth=3),Z.borderColor==="black"&&!String(Y).includes("black")&&(Z.borderColor=K);let X={Width:Q5(J+"Width",Z.borderWidth),Style:G1(Z.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:Z.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let z in X)Q["border"+W+z]=X[z];return Q}if(J==="boxShadow"){if(!Y)throw Error('Invalid `boxShadow` value: "'+Y+'".');return{[J]:typeof Y=="string"?CY.parse(Y):Y}}if(J==="transform"){if(typeof Y!="string")throw Error("Invalid `transform` value.");let Z={},X=Y.replace(/(-?[\d.]+%)/g,(W,z)=>{let $=~~(Math.random()*1e9);return Z[$]=z,$+"px"}),Q=O1.getStylesForProperty("transform",X,!0);for(let W of Q.transform)for(let z in W)Z[W[z]]&&(W[z]=Z[W[z]]);return Q}if(J==="background")return Y=Y.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(Y)?O1.getStylesForProperty("backgroundImage",Y,!0):O1.getStylesForProperty("background",Y,!0);if(J==="textShadow"){Y=Y.toString().trim();let Z={},X=FY(Y);for(let Q of X){let W=O1.getStylesForProperty("textShadow",Q,!0);for(let z in W)Z[z]?Z[z].push(W[z]):Z[z]=[W[z]]}return Z}if(J==="WebkitTextStroke"){Y=Y.toString().trim();let Z=Y.split(" ");if(Z.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,Z[0]),WebkitTextStrokeColor:Q5(J,Z[1])}}}function _J(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var IJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function SY(J){if(typeof J=="string"&&IJ.test(J.trim()))return J.trim().replace(IJ,(Y,K,Z,X,Q)=>`rgba(${K}, ${Z}, ${X}, ${Q})`);if(typeof J=="object"&&J!==null){for(let Y in J)J[Y]=SY(J[Y]);return J}return J}function DJ(J,Y){let K={};if(J){let X=qH(J.color,Y.color);K.color=X;for(let Q in J){if(Q.startsWith("_")){K[Q]=J[Q];continue}if(Q==="color")continue;let W=O1.getPropertyName(Q),z=FH(J[Q],X);try{let $=NH(W,z,X)||LH(W,O1.getStylesForProperty(W,Q5(W,z),!0),z,X);Object.assign(K,$)}catch($){throw Error($.message+($.message.includes(z)?`
|
|
64
|
-
`+
|
|
65
|
-
in CSS rule \`${W}: ${z}\`.${_J(W)}`))}}}if(K.backgroundImage){let{backgrounds:X}=RY.parseElementStyle(K);K.backgroundImage=X}(K.maskImage||K.WebkitMaskImage)&&(K.maskImage=GH(K));let Z=jH(K.fontSize,Y.fontSize);typeof K.fontSize<"u"&&(K.fontSize=Z),K.transformOrigin&&(K.transformOrigin=BH(K.transformOrigin,Z));for(let X in K){let Q=K[X];if(X==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=K[X]=V0(Q,Z,Z,Y,!0)/Z);else{if(typeof Q=="string"){let W=V0(Q,Z,Z,Y);typeof W<"u"&&(K[X]=W),Q=K[X]}if(typeof Q=="string"||typeof Q=="object"){let W=SY(Q);W&&(K[X]=W),Q=K[X]}}if(X==="opacity"&&typeof Q=="number"&&(K.opacity=Q*Y.opacity),X==="transform"){let W=Q;for(let z of W){let $=Object.keys(z)[0],w=z[$],U=typeof w=="string"?V0(w,Z,Z,Y)??w:w;z[$]=U}}if(X==="textShadowRadius"){let W=Q;K.textShadowRadius=W.map((z)=>V0(z,Z,0,Y,!1))}if(X==="textShadowOffset"){let W=Q;K.textShadowOffset=W.map(({height:z,width:$})=>({height:V0(z,Z,0,Y,!1),width:V0($,Z,0,Y,!1)}))}}return K}function jH(J,Y){if(typeof J=="number")return J;try{let K=new X8(J);switch(K.unit){case"em":return K.value*Y;case"rem":return K.value*16}}catch{return Y}}function RJ(J){if(J.startsWith("hsl")){let Y=D8(J),[K,Z,X]=Y.values;return`hsl(${[K,`${Z}%`,`${X}%`].concat(Y.alpha===1?[]:[Y.alpha]).join(",")})`}return J}function qH(J,Y){return J&&J.toLowerCase()!=="currentcolor"?RJ(J):RJ(Y)}function EH(J,Y){return J.replace(/currentcolor/gi,Y)}function FH(J,Y){return EY(J)&&(J=EH(J,Y)),J}async function _H(J,Y,K,Z,X){let Q=await Z6(),W={...K,...DJ(UH[Y],K),...DJ(Z,K)};if(Y==="img"){let[z,$,w]=await Z4(X.src);if($===void 0&&w===void 0){if(X.width===void 0||X.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");$=parseInt(X.width),w=parseInt(X.height)}let U=w/$,H=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),V=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),A=W.width||X.width,M=W.height||X.height,B=typeof A=="number"&&typeof M=="number";B&&(A-=H,M-=V),A===void 0&&M===void 0?(A="100%",J.setAspectRatio(1/U)):A===void 0?typeof M=="number"?A=M/U:J.setAspectRatio(1/U):M===void 0&&(typeof A=="number"?M=A*U:J.setAspectRatio(1/U)),W.width=B?A+H:A,W.height=B?M+V:M,W.__src=z}if(Y==="svg"){let z=X.viewBox||X.viewbox,$=Y4(z),w=$?$[3]/$[2]:null,{width:U,height:H}=X;typeof U>"u"&&H?w==null?U=0:typeof H=="string"&&H.endsWith("%")?U=parseInt(H)/w+"%":(H=V0(H,K.fontSize,1,K),U=H/w):typeof H>"u"&&U?w==null?U=0:typeof U=="string"&&U.endsWith("%")?H=parseInt(U)*w+"%":(U=V0(U,K.fontSize,1,K),H=U*w):(typeof U<"u"&&(U=V0(U,K.fontSize,1,K)||U),typeof H<"u"&&(H=V0(H,K.fontSize,1,K)||H),U||=$==null?void 0:$[2],H||=$==null?void 0:$[3]),!W.width&&U&&(W.width=U),!W.height&&H&&(W.height=H)}return J.setDisplay(G1(W.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(G1(W.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems(G1(W.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(G1(W.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(G1(W.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(G1(W.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(G1(W.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof W.gap<"u"&&J.setGap(Q.GUTTER_ALL,W.gap),typeof W.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,W.rowGap),typeof W.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,W.columnGap),typeof W.flexBasis<"u"&&J.setFlexBasis(W.flexBasis),J.setFlexGrow(typeof W.flexGrow>"u"?0:W.flexGrow),J.setFlexShrink(typeof W.flexShrink>"u"?0:W.flexShrink),typeof W.maxHeight<"u"&&J.setMaxHeight(W.maxHeight),typeof W.maxWidth<"u"&&J.setMaxWidth(W.maxWidth),typeof W.minHeight<"u"&&J.setMinHeight(W.minHeight),typeof W.minWidth<"u"&&J.setMinWidth(W.minWidth),J.setOverflow(G1(W.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,W.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,W.marginBottom||0),J.setMargin(Q.EDGE_LEFT,W.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,W.marginRight||0),J.setBorder(Q.EDGE_TOP,W.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,W.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,W.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,W.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,W.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,W.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,W.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,W.paddingRight||0),J.setPositionType(G1(W.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof W.top<"u"&&J.setPosition(Q.EDGE_TOP,W.top),typeof W.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,W.bottom),typeof W.left<"u"&&J.setPosition(Q.EDGE_LEFT,W.left),typeof W.right<"u"&&J.setPosition(Q.EDGE_RIGHT,W.right),typeof W.height<"u"?J.setHeight(W.height):J.setHeightAuto(),typeof W.width<"u"?J.setWidth(W.width):J.setWidthAuto(),[W,VH(W)]}var CJ=[1,0,0,1,0,0];function IH(J,Y,K){let Z=[...CJ];for(let X of J){let Q=Object.keys(X)[0],W=X[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*Y,X[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*K,X[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let z=W,$=[...CJ];switch(Q){case"translateX":$[4]=z;break;case"translateY":$[5]=z;break;case"scale":$[0]=z,$[3]=z;break;case"scaleX":$[0]=z;break;case"scaleY":$[3]=z;break;case"rotate":{let w=z*Math.PI/180,U=Math.cos(w),H=Math.sin(w);$[0]=U,$[1]=H,$[2]=-H,$[3]=U;break}case"skewX":$[2]=Math.tan(z*Math.PI/180);break;case"skewY":$[1]=Math.tan(z*Math.PI/180);break}Z=o8($,Z)}J.splice(0,J.length),J.push(...Z),J.__resolved=!0}function vY({left:J,top:Y,width:K,height:Z},X,Q,W){let z;X.__resolved||IH(X,K,Z);let $=X;if(Q)z=$;else{let w=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*K/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*Z/100,H=J+w,V=Y+U;z=o8([1,0,0,1,H,V],o8($,[1,0,0,1,-H,-V])),$.__parent&&(z=o8($.__parent,z)),$.splice(0,6,...z)}return`matrix(${z.map((w)=>w.toFixed(2)).join(",")})`}function DH({left:J,top:Y,width:K,height:Z,isInheritingTransform:X},Q){let W="",z=1;return Q.transform&&(W=vY({left:J,top:Y,width:K,height:Z},Q.transform,X,Q.transformOrigin)),Q.opacity!==void 0&&(z=+Q.opacity),{matrix:W,opacity:z}}function RH({id:J,content:Y,filter:K,left:Z,top:X,width:Q,height:W,matrix:z,opacity:$,image:w,clipPathId:U,debug:H,shape:V,decorationShape:A},M){let B="";if(H&&(B=t("rect",{x:Z,y:X-W,width:Q,height:W,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0})),w){let N={href:w,x:Z,y:X,width:Q,height:W,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+t("image",{...N,opacity:$!==1?$:void 0})+(A||"")+(K?"</g>":"")+B,""]}let O={x:Z,y:X,width:Q,height:W,"font-weight":M.fontWeight,"font-style":M.fontStyle,"font-size":M.fontSize,"font-family":M.fontFamily,"letter-spacing":M.letterSpacing||void 0,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0,"stroke-width":M.WebkitTextStrokeWidth?`${M.WebkitTextStrokeWidth}px`:void 0,stroke:M.WebkitTextStrokeWidth?M.WebkitTextStrokeColor:void 0,"stroke-linejoin":M.WebkitTextStrokeWidth?"round":void 0,"paint-order":M.WebkitTextStrokeWidth?"stroke":void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+t("text",{...O,fill:M.color,opacity:$!==1?$:void 0},u9.default(Y))+(A||"")+(K?"</g>":"")+B,V?t("text",O,u9.default(Y)):""]}function CH(J,Y,K){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(Z,X,Q,W){return X+(parseFloat(Q)+Y)+","+(parseFloat(W)+K)})}var b8=1.1;function TH({id:J,width:Y,height:K},Z){if(!Z.shadowColor||!Z.shadowOffset||typeof Z.shadowRadius>"u")return"";let X=Z.shadowColor.length,Q="",W="",z=0,$=Y,w=0,U=K;for(let H=0;H<X;H++){let V=Z.shadowRadius[H]*Z.shadowRadius[H]/4;z=Math.min(Z.shadowOffset[H].width-V,z),$=Math.max(Z.shadowOffset[H].width+V+Y,$),w=Math.min(Z.shadowOffset[H].height-V,w),U=Math.max(Z.shadowOffset[H].height+V+K,U),Q+=t("feDropShadow",{dx:Z.shadowOffset[H].width,dy:Z.shadowOffset[H].height,stdDeviation:Z.shadowRadius[H]/2,"flood-color":Z.shadowColor[H],"flood-opacity":1,...X>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${H}`}:{}}),X>1&&(W=t("feMergeNode",{in:`satori_s-${J}-result-${H}`})+W)}return t("filter",{id:`satori_s-${J}`,x:(z/Y*100*b8).toFixed(2)+"%",y:(w/K*100*b8).toFixed(2)+"%",width:(($-z)/Y*100*b8).toFixed(2)+"%",height:((U-w)/K*100*b8).toFixed(2)+"%"},Q+(W?t("feMerge",{},W):""))}function PH({width:J,height:Y,shape:K,opacity:Z,id:X},Q){if(!Q.boxShadow)return null;let W="",z="";for(let $=Q.boxShadow.length-1;$>=0;$--){let w="",U=Q.boxShadow[$];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let H=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),V=Math.min(-H-(U.inset?U.offsetX:0),0),A=Math.max(H+J-(U.inset?U.offsetX:0),J),M=Math.min(-H-(U.inset?U.offsetY:0),0),B=Math.max(H+Y-(U.inset?U.offsetY:0),Y),O=`satori_s-${X}-${$}`,N=`satori_ms-${X}-${$}`,j=U.spreadRadius?K.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):K;w+=t("mask",{id:N,maskUnits:"userSpaceOnUse"},t("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+j.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=j.replace(/d="([^"]+)"/,(I,F)=>'d="'+CH(F,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(I,F)=>'x="'+(parseFloat(F)+U.offsetX)+'"').replace(/y="([^"]+)"/,(I,F)=>'y="'+(parseFloat(F)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(w+=t("mask",{id:N+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=t("g",{mask:`url(#${N}-neg)`},E)),w+=t("defs",{},t("filter",{id:O,x:`${V/J*100}%`,y:`${M/Y*100}%`,width:`${(A-V)/J*100}%`,height:`${(B-M)/Y*100}%`},t("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+t("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+t("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+t("g",{mask:`url(#${N})`,filter:`url(#${O})`,opacity:Z},E),U.inset?z+=w:W+=w}return[W,z]}function SH({width:J,left:Y,top:K,ascender:Z,clipPathId:X,matrix:Q},W){let{textDecorationColor:z,textDecorationStyle:$,textDecorationLine:w,fontSize:U,color:H}=W;if(!w||w==="none")return"";let V=Math.max(1,U*0.1),A=w==="line-through"?K+Z*0.7:w==="underline"?K+Z*1.1:K,M=$==="dashed"?`${V*1.2} ${V*2}`:$==="dotted"?`0 ${V*2}`:void 0;return(X?`<g clip-path="url(#${X})">`:"")+t("line",{x1:Y,y1:A,x2:Y+J,y2:A,stroke:z||H,"stroke-width":V,"stroke-dasharray":M,"stroke-linecap":$==="dotted"?"round":"square",transform:Q})+(X?"</g>":"")}function X4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var K8=X4("U+0020"),kY=X4("U+0009"),s8=X4("U+2026");function vH(J,Y,K){let{fontSize:Z,letterSpacing:X}=K,Q=new Map;function W(w){if(Q.has(w))return Q.get(w);let U=J.measure(w,{fontSize:Z,letterSpacing:X});return Q.set(w,U),U}function z(w){let U=0;for(let H of w)Y(H)?U+=Z:U+=W(H);return U}function $(w){return z(M1(w,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:z,measureText:$}}function kH(J,Y,K){let{textTransform:Z,whiteSpace:X,wordBreak:Q}=Y;J=yH(J,Z,K);let{content:W,shouldCollapseTabsAndSpaces:z,allowSoftWrap:$}=xH(J,X),{words:w,requiredBreaks:U,allowBreakWord:H}=hH(W,Q),[V,A]=gH(Y,$);return{words:w,requiredBreaks:U,allowSoftWrap:$,allowBreakWord:H,processedContent:W,shouldCollapseTabsAndSpaces:z,lineLimit:V,blockEllipsis:A}}function yH(J,Y,K){return Y==="uppercase"?J=J.toLocaleUpperCase(K):Y==="lowercase"?J=J.toLocaleLowerCase(K):Y==="capitalize"&&(J=M1(J,"word",K).map((Z)=>M1(Z,"grapheme",K).map((X,Q)=>Q===0?X.toLocaleUpperCase(K):X).join("")).join("")),J}function gH(J,Y){let{textOverflow:K,lineClamp:Z,WebkitLineClamp:X,WebkitBoxOrient:Q,overflow:W,display:z}=J;if(z==="block"&&Z){let[$,w=s8]=bH(Z);if($)return[$,w]}return K==="ellipsis"&&z==="-webkit-box"&&Q==="vertical"&&sU(X)&&X>0?[X,s8]:K==="ellipsis"&&W==="hidden"&&!Y?[1,s8]:[1/0]}function hH(J,Y){let K=["break-all","break-word"].includes(Y),{words:Z,requiredBreaks:X}=tU(J,Y);return{words:Z,requiredBreaks:X,allowBreakWord:K}}function xH(J,Y){let K=["pre","pre-wrap","pre-line"].includes(Y),Z=["normal","nowrap","pre-line"].includes(Y),X=!["pre","nowrap"].includes(Y);return K||(J=J.replace(/\n/g,K8)),Z&&(J=J.replace(/([ ]|\t)+/g,K8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:Z,allowSoftWrap:X}}function bH(J){if(typeof J=="number")return[J];let Y=/^(\d+)\s*"(.*)"$/,K=/^(\d+)\s*'(.*)'$/,Z=Y.exec(J),X=K.exec(J);if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}else if(X){let Q=+X[1],W=X[2];return[Q,W]}return[]}var fH=new Set([kY]);function mH(J){return fH.has(J)}async function*dH(J,Y){let K=await Z6(),{parentStyle:Z,inheritedStyle:X,parent:Q,font:W,id:z,isInheritingTransform:$,debug:w,embedFont:U,graphemeImages:H,locale:V,canLoadAdditionalAssets:A}=Y,{textAlign:M,lineHeight:B,textWrap:O,fontSize:N,filter:j,tabSize:E=8,letterSpacing:I,_inheritedBackgroundClipTextPath:F,flexShrink:q}=Z,{words:T,requiredBreaks:D,allowSoftWrap:R,allowBreakWord:g,processedContent:c,shouldCollapseTabsAndSpaces:i,lineLimit:p,blockEllipsis:S}=kH(J,Z,V),v=cH(K,M);Q.insertChild(v,Q.getChildCount()),aU(q)&&Q.setFlexShrink(1);let C=W.getEngine(N,B,Z,V),m=A?M1(c,"grapheme").filter(($0)=>!mH($0)&&!C.has($0)):[];yield m.map(($0)=>({word:$0,locale:V})),m.length&&(C=W.getEngine(N,B,Z,V));function u($0){return!!(H&&H[$0])}let{measureGrapheme:a,measureGraphemeArray:n,measureText:f}=vH(C,u,{fontSize:N,letterSpacing:I}),d=EY(E)?V0(E,N,1,Z):a(K8)*E,P=($0,j0)=>{if($0.length===0)return{originWidth:0,endingSpacesWidth:0,text:$0};let{index:F0,tabCount:O0}=uH($0),T0=0;if(O0>0){let S0=$0.slice(0,F0),R0=$0.slice(F0+O0),L0=f(S0),L1=L0+j0;T0=(d===0?L0:(Math.floor(L1/d)+O0)*d)+f(R0)}else T0=f($0);let M0=$0.trimEnd()===$0?T0:f($0.trimEnd());return{originWidth:T0,endingSpacesWidth:T0-M0,text:$0}},k=[],l=[],h=[],s=[],Z0=[];function Q0($0){let j0=0,F0=0,O0=-1,T0=0,M0=0,S0=0,R0=0;k=[],h=[0],s=[],Z0=[];let L0=0,L1=0;for(;L0<T.length&&j0<p;){let w0=T[L0],e1=D[L0],J1=0,{originWidth:x1,endingSpacesWidth:H8,text:b1}=P(w0,M0);w0=b1,J1=x1;let q0=H8;e1&&S0===0&&(S0=C.height(w0));let b0=",.!?:-@)>]}%#".indexOf(w0[0])<0,$1=!M0,V8=L0&&b0&&M0+J1>$0+q0&&R;if(g&&J1>$0&&(!M0||V8||e1)){let l0=M1(w0,"grapheme");T.splice(L0,1,...l0),M0>0&&(k.push(M0-L1),l.push(R0),j0++,T0+=S0,M0=0,S0=0,R0=0,h.push(1),O0=-1),L1=q0;continue}if(e1||V8)i&&w0===K8&&(J1=0),k.push(M0-L1),l.push(R0),j0++,T0+=S0,M0=J1,S0=J1?C.height(w0):0,R0=J1?C.baseline(w0):0,h.push(1),O0=-1,e1||(F0=Math.max(F0,$0));else{M0+=J1;let l0=C.height(w0);l0>S0&&(S0=l0,R0=C.baseline(w0)),$1&&h[h.length-1]++}$1&&O0++,F0=Math.max(F0,M0);let P5=M0-J1;if(J1===0)Z0.push({y:T0,x:P5,width:0,line:j0,lineIndex:O0,isImage:!1});else{let l0=M1(w0,"word");for(let z1=0;z1<l0.length;z1++){let J5=l0[z1],C1=0,S5=!1;u(J5)?(C1=N,S5=!0):C1=a(J5),s.push(J5),Z0.push({y:T0,x:P5,width:C1,line:j0,lineIndex:O0,isImage:S5}),P5+=C1}}L0++,L1=q0}return M0&&(j0<p&&(T0+=S0),j0++,k.push(M0),l.push(R0)),{width:F0,height:T0}}let J0={width:0,height:0};v.setMeasureFunc(($0)=>{let{width:j0,height:F0}=Q0($0);if(O==="balance"){let T0=j0/2,M0=j0,S0=j0;for(;T0+1<M0;){S0=(T0+M0)/2;let{height:L0}=Q0(S0);L0>F0?T0=S0:M0=S0}Q0(M0);let R0=Math.ceil(M0);return J0={width:R0,height:F0},{width:R0,height:F0}}let O0=Math.ceil(j0);return J0={width:O0,height:F0},{width:O0,height:F0}});let[A0,E0]=yield,K0="",B0="",C0=X._inheritedClipPathId,c0=X._inheritedMaskId,{left:I0,top:D0,width:u0,height:n0}=v.getComputedLayout(),o0=Q.getComputedWidth()-Q.getComputedPadding(K.EDGE_LEFT)-Q.getComputedPadding(K.EDGE_RIGHT)-Q.getComputedBorder(K.EDGE_LEFT)-Q.getComputedBorder(K.EDGE_RIGHT),Q1=A0+I0,W1=E0+D0,{matrix:e0,opacity:U5}=DH({left:I0,top:D0,width:u0,height:n0,isInheritingTransform:$},Z),g1="";if(Z.textShadowOffset){let{textShadowColor:$0,textShadowOffset:j0,textShadowRadius:F0}=Z;g1=TH({width:J0.width,height:J0.height,id:z},{shadowColor:$0,shadowOffset:j0,shadowRadius:F0}),g1=t("defs",{},g1)}let t1="",H5="",U8="",V5=-1,A5={},h1=null,g4=0;for(let $0=0;$0<s.length;$0++){let j0=Z0[$0],F0=Z0[$0+1];if(!j0)continue;let O0=s[$0],T0=null,M0=!1,S0=H?H[O0]:null,R0=j0.y,L0=j0.x,L1=j0.width,w0=j0.line;if(w0===V5)continue;let e1=!1;if(k.length>1){let q0=u0-k[w0];if(M==="right"||M==="end")L0+=q0;else if(M==="center")L0+=q0/2;else if(M==="justify"&&w0<k.length-1){let b0=h[w0],$1=b0>1?q0/(b0-1):0;L0+=$1*j0.lineIndex,e1=!0}}let J1=l[w0],x1=C.baseline(O0),H8=C.height(O0),b1=J1-x1;if(A5[w0]||(A5[w0]=[L0,W1+R0+b1,x1,e1?u0:k[w0]]),p!==1/0){let q0=function(l0,z1){let J5=M1(z1,"grapheme",V),C1="",S5=0;for(let h4 of J5){let x4=l0+n([C1+h4]);if(C1&&x4+$1>o0)break;C1+=h4,S5=x4}return{subset:C1,resolvedWidth:S5}},b0=S,$1=a(S);$1>o0&&(b0=s8,$1=a(b0));let V8=a(K8),P5=w0<k.length-1;if(w0+1===p&&(P5||k[w0]>o0)){if(L0+L1+$1+V8>o0){let{subset:l0,resolvedWidth:z1}=q0(L0,O0);O0=l0+b0,V5=w0,A5[w0][2]=z1,M0=!0}else if(F0&&F0.line!==w0)if(M==="center"){let{subset:l0,resolvedWidth:z1}=q0(L0,O0);O0=l0+b0,V5=w0,A5[w0][2]=z1,M0=!0}else{let l0=s[$0+1],{subset:z1,resolvedWidth:J5}=q0(L1+L0,l0);O0=O0+z1+b0,V5=w0,A5[w0][2]=J5,M0=!0}}}if(S0)R0+=0;else if(U){if(!O0.includes(kY)&&!nU.includes(O0)&&s[$0+1]&&F0&&!F0.isImage&&R0===F0.y&&!M0){h1===null&&(g4=L0),h1=h1===null?O0:h1+O0;continue}let q0=h1===null?O0:h1+O0,b0=h1===null?L0:g4,$1=j0.width+L0-b0;T0=C.getSVG(q0.replace(/(\t)+/g,""),{fontSize:N,left:Q1+b0,top:W1+R0+x1+b1,letterSpacing:I}),h1=null,w&&(U8+=t("rect",{x:Q1+b0,y:W1+R0+b1,width:$1,height:H8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:e0||void 0,"clip-path":C0?`url(#${C0})`:void 0})+t("line",{x1:Q1+L0,x2:Q1+L0+j0.width,y1:W1+R0+b1+x1,y2:W1+R0+b1+x1,stroke:"#14c000","stroke-width":1,transform:e0||void 0,"clip-path":C0?`url(#${C0})`:void 0}))}else R0+=x1+b1;if(Z.textDecorationLine){let q0=A5[w0];q0&&!q0[4]&&(t1+=SH({left:Q1+q0[0],top:q0[1],width:q0[3],ascender:q0[2],clipPathId:C0,matrix:e0},Z),q0[4]=1)}if(T0!==null)H5+=T0+" ";else{let[q0,b0]=RH({content:O0,filter:g1,id:z,left:Q1+L0,top:W1+R0,width:L1,height:H8,matrix:e0,opacity:U5,image:S0,clipPathId:C0,debug:w,shape:!!F,decorationShape:t1},Z);K0+=q0,B0+=b0,t1=""}if(M0)break}if(H5){let $0=Z.color!=="transparent"&&U5!==0?t("path",{fill:Z.color,d:H5,transform:e0||void 0,opacity:U5!==1?U5:void 0,"clip-path":C0?`url(#${C0})`:void 0,mask:c0?`url(#${c0})`:void 0,style:j?`filter:${j}`:void 0,"stroke-width":X.WebkitTextStrokeWidth?`${X.WebkitTextStrokeWidth}px`:void 0,stroke:X.WebkitTextStrokeWidth?X.WebkitTextStrokeColor:void 0,"stroke-linejoin":X.WebkitTextStrokeWidth?"round":void 0,"paint-order":X.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(B0=t("path",{d:H5,transform:e0||void 0})),K0+=(g1?g1+t("g",{filter:`url(#satori_s-${z})`},$0+t1):$0+t1)+U8}return B0&&(Z._inheritedBackgroundClipTextPath.value+=B0),K0}function cH(J,Y){let K=J.Node.create();return K.setAlignItems(J.ALIGN_BASELINE),K.setJustifyContent(G1(Y,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),K}function uH(J){let Y=/(\t)+/.exec(J);return Y?{index:Y.index,tabCount:Y[0].length}:{index:null,tabCount:0}}function yY(J,Y,K,Z,X){let Q=[];for(let w of Y){let{color:U}=w;if(!Q.length&&(Q.push({offset:0,color:U}),!w.offset||w.offset.value==="0"))continue;let H=typeof w.offset>"u"?void 0:w.offset.unit==="%"?+w.offset.value/100:Number(V0(`${w.offset.value}${w.offset.unit}`,K.fontSize,J,K,!0))/J;Q.push({offset:H,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let W=Q[Q.length-1];W.offset!==1&&(typeof W.offset>"u"?W.offset=1:Z?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let z=0,$=1;for(let w=0;w<Q.length;w++)if(typeof Q[w].offset>"u"){for($<w&&($=w);typeof Q[$].offset>"u";)$++;Q[w].offset=(Q[$].offset-Q[z].offset)/($-z)*(w-z)+Q[z].offset}else z=w;return X==="mask"?Q.map((w)=>{let U=D8(w.color);return U?U.alpha===0?{...w,color:"rgba(0, 0, 0, 1)"}:{...w,color:`rgba(255, 255, 255, ${U.alpha})`}:w}):Q}function lH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,z,$,w){let U=E2(Q),[H,V]=W,A=Q.startsWith("repeating"),M,B,O;if(U.orientation.type==="directional")M=iH(U.orientation.value),B=Math.sqrt(Math.pow((M.x2-M.x1)*H,2)+Math.pow((M.y2-M.y1)*V,2));else if(U.orientation.type==="angular"){let{length:F,...q}=nH(qY(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,H,V);B=F,M=q}O=A?oH(U.stops,B,M,$):M;let N=yY(A?pH(U.stops,B):B,U.stops,$,A,w),j=`satori_bi${J}`,E=`satori_pattern_${J}`,I=t("pattern",{id:E,x:z[0]/Y,y:z[1]/K,width:Z?H/Y:"1",height:X?V/K:"1",patternUnits:"objectBoundingBox"},t("linearGradient",{id:j,...O,spreadMethod:A?"repeat":"pad"},N.map((F)=>t("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+t("rect",{x:0,y:0,width:H,height:V,fill:`url(#${j})`}));return[E,I]}function pH(J,Y){let K=J[J.length-1],{offset:Z}=K;return Z?Z.unit==="%"?Number(Z.value)/100*Y:Number(Z.value):Y}function iH(J){let Y=0,K=0,Z=0,X=0;return J.includes("top")?K=1:J.includes("bottom")&&(X=1),J.includes("left")?Y=1:J.includes("right")&&(Z=1),!Y&&!Z&&!K&&!X&&(K=1),{x1:Y,y1:K,x2:Z,y2:X}}function nH(J,Y,K){let Z=Math.pow(K/Y,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let X,Q,W,z,$,w,U,H,V=(A)=>{if(A===0){X=0,Q=K,W=0,z=0,$=K;return}else if(A===Math.PI/2){X=0,Q=0,W=Y,z=0,$=Y;return}if(A>0&&A<Math.PI/2){X=(Z*Y/2/Math.tan(A)-K/2)/(Math.tan(A)+Z/Math.tan(A)),Q=Math.tan(A)*X+K,W=Math.abs(Y/2-X)+Y/2,z=K/2-Math.abs(Q-K/2),$=Math.sqrt(Math.pow(W-X,2)+Math.pow(z-Q,2)),U=(Y/2/Math.tan(A)-K/2)/(Math.tan(A)+1/Math.tan(A)),H=Math.tan(A)*U+K,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else if(A>Math.PI/2&&A<Math.PI){X=(K/2+Z*Y/2/Math.tan(A))/(Math.tan(A)+Z/Math.tan(A)),Q=Math.tan(A)*X,W=Math.abs(Y/2-X)+Y/2,z=K/2+Math.abs(Q-K/2),U=(Y/2/Math.tan(A)+K/2)/(Math.tan(A)+1/Math.tan(A)),H=Math.tan(A)*U,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else A>=Math.PI&&(V(A-Math.PI),w=X,X=W,W=w,w=Q,Q=z,z=w)};return V(J),{x1:X/Y,y1:Q/K,x2:W/Y,y2:z/K,length:$}}function oH(J,Y,K,Z){let{x1:X,x2:Q,y1:W,y2:z}=K,$=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:V0(`${J[0].offset.value}${J[0].offset.unit}`,Z.fontSize,Y,Z,!0)/Y:0,w=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:V0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,Z.fontSize,Y,Z,!0)/Y:1,U=(Q-X)*$+X,H=(z-W)*$+W,V=(Q-X)*w+X,A=(z-W)*w+W;return{x1:U,y1:H,x2:V,y2:A}}function rH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,z,$,w){var U;let{shape:H,stops:V,position:A,size:M}=F2(Q),[B,O]=W,N=B/2,j=O/2,E=sH(A.x,A.y,B,O,$.fontSize,$);N=E.x,j=E.y;let I=yY(Y,V,$,!1,w),F=`satori_radial_${J}`,q=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=aH(H,M,$.fontSize,{x:N,y:j},[B,O],$),R=t("pattern",{id:q,x:z[0]/Y,y:z[1]/K,width:Z?B/Y:"1",height:X?O/K:"1",patternUnits:"objectBoundingBox"},t("radialGradient",{id:F},I.map((g)=>t("stop",{offset:g.offset||0,"stop-color":g.color})).join(""))+t("mask",{id:T},t("rect",{x:0,y:0,width:B,height:O,fill:"#fff"}))+t("rect",{x:0,y:0,width:B,height:O,fill:((U=I.at(-1))==null?void 0:U.color)||"transparent"})+t(H,{cx:N,cy:j,width:B,height:O,...D,fill:`url(#${F})`,mask:`url(#${T})`}));return[q,R]}function sH(J,Y,K,Z,X,Q){let W={x:K/2,y:Z/2};return J.type==="keyword"?Object.assign(W,TJ(J.value,K,Z,"x")):W.x=V0(`${J.value.value}${J.value.unit}`,X,K,Q,!0)||K/2,Y.type==="keyword"?Object.assign(W,TJ(Y.value,K,Z,"y")):W.y=V0(`${Y.value.value}${Y.value.unit}`,X,Z,Q,!0)||Z/2,W}function TJ(J,Y,K,Z){switch(J){case"center":return{[Z]:Z==="x"?Y/2:K/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:Y};case"bottom":return{y:K}}}function aH(J,Y,K,Z,X,Q){let[W,z]=X,{x:$,y:w}=Z,U={},H=0,V=0;if(tH(Y)){if(Y.some((A)=>A.value.value.startsWith("-")))throw 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 J==="circle"?{r:Number(V0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0))}:{rx:Number(V0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0)),ry:Number(V0(`${Y[1].value.value}${Y[1].value.unit}`,K,z,Q,!0))}}switch(Y[0].value){case"farthest-corner":H=Math.max(Math.abs(W-$),Math.abs($)),V=Math.max(Math.abs(z-w),Math.abs(w));break;case"closest-corner":H=Math.min(Math.abs(W-$),Math.abs($)),V=Math.min(Math.abs(z-w),Math.abs(w));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-$),Math.abs($),Math.abs(z-w),Math.abs(w)):(U.rx=Math.max(Math.abs(W-$),Math.abs($)),U.ry=Math.max(Math.abs(z-w),Math.abs(w))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(W-$),Math.abs($),Math.abs(z-w),Math.abs(w)):(U.rx=Math.min(Math.abs(W-$),Math.abs($)),U.ry=Math.min(Math.abs(z-w),Math.abs(w))),U}if(J==="circle")U.r=Math.sqrt(H*H+V*V);else{let A=V!==0?H/V:1;H===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(H*H+V*V*A*A)/A,U.rx=U.ry*A)}return U}function tH(J){return!J.some((Y)=>Y.type==="keyword")}function eH(J,Y){return typeof J=="string"&&J.endsWith("%")?Y*parseFloat(J)/100:+J}function y9(J,{x:Y,y:K,defaultX:Z,defaultY:X}){return(J?J.split(" ").map((Q)=>{try{let W=new X8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[Z,X]).map((Q,W)=>eH(Q,[Y,K][W]))}async function gY({id:J,width:Y,height:K,left:Z,top:X},{image:Q,size:W,position:z,repeat:$},w,U){$=$||"repeat",U=U||"background";let H=$==="repeat-x"||$==="repeat",V=$==="repeat-y"||$==="repeat",A=y9(W,{x:Y,y:K,defaultX:Y,defaultY:K}),M=y9(z,{x:Y,y:K,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return lH({id:J,width:Y,height:K,repeatX:H,repeatY:V},Q,A,M,w,U);if(Q.startsWith("radial-gradient("))return rH({id:J,width:Y,height:K,repeatX:H,repeatY:V},Q,A,M,w,U);if(Q.startsWith("url(")){let B=y9(W,{x:Y,y:K,defaultX:0,defaultY:0}),[O,N,j]=await Z4(Q.slice(4,-1)),E=U==="mask"?N||B[0]:B[0]||N,I=U==="mask"?j||B[1]:B[1]||j;return[`satori_bi${J}`,t("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:M[0]+Z,y:M[1]+X,width:H?E:"100%",height:V?I:"100%"},t("image",{x:0,y:0,width:E,height:I,preserveAspectRatio:"none",href:O}))]}throw Error(`Invalid background image: "${Q}"`)}function JV([J,Y]){return Math.round(J*1000)===0&&Math.round(Y*1000)===0?0:Math.round(J*Y/Math.sqrt(J*J+Y*Y)*1000)/1000}function f8(J,Y,K){return K<J+Y&&(K/2<J&&K/2<Y?J=Y=K/2:K/2<J?J=K-Y:K/2<Y&&(Y=K-J)),[J,Y]}function m8(J){J[0]=J[1]=Math.min(J[0],J[1])}function d8(J,Y,K,Z,X){if(typeof J=="string"){let Q=J.split(" ").map((z)=>z.trim()),W=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[W,[Math.min(V0(Q[0],Z,Y,X,!0),Y),Math.min(V0(Q[1],Z,K,X,!0),K)]]}return typeof J=="number"?[!0,[Math.min(J,Y),Math.min(J,K)]]:[!0,void 0]}var c8=(J)=>J&&J[0]!==0&&J[1]!==0;function YV({id:J,borderRadiusPath:Y,borderType:K,left:Z,top:X,width:Q,height:W},z){let $=`satori_brc-${J}`;return[t("clipPath",{id:$},t(K,{x:Z,y:X,width:Q,height:W,d:Y||void 0})),$]}function e8({left:J,top:Y,width:K,height:Z},X,Q){let{borderTopLeftRadius:W,borderTopRightRadius:z,borderBottomLeftRadius:$,borderBottomRightRadius:w,fontSize:U}=X,H,V,A,M;if([H,W]=d8(W,K,Z,U,X),[V,z]=d8(z,K,Z,U,X),[A,$]=d8($,K,Z,U,X),[M,w]=d8(w,K,Z,U,X),!Q&&!c8(W)&&!c8(z)&&!c8($)&&!c8(w))return"";W||=[0,0],z||=[0,0],$||=[0,0],w||=[0,0],[W[0],z[0]]=f8(W[0],z[0],K),[$[0],w[0]]=f8($[0],w[0],K),[W[1],$[1]]=f8(W[1],$[1],Z),[z[1],w[1]]=f8(z[1],w[1],Z),H&&m8(W),V&&m8(z),A&&m8($),M&&m8(w);let B=[];B[0]=[z,z],B[1]=[w,[-w[0],w[1]]],B[2]=[$,[-$[0],-$[1]]],B[3]=[W,[W[0],-W[1]]];let O=`h${K-W[0]-z[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,N=`v${Z-z[1]-w[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,j=`h${w[0]+$[0]-K} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${$[1]+W[1]-Z} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let I=function(i){let p=JV([W,z,w,$][i]);return i===0?[[J+W[0]-p,Y+W[1]-p],[J+W[0],Y]]:i===1?[[J+K-z[0]+p,Y+z[1]-p],[J+K,Y+z[1]]]:i===2?[[J+K-w[0]+p,Y+Z-w[1]+p],[J+K-w[0],Y+Z]]:[[J+$[0]-p,Y+Z-$[1]+p],[J,Y+Z-$[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let q="",T=I(F),D=`M${T[0]} A${B[(F+3)%4][0]} 0 0 1 ${T[1]}`,R=0;for(;R<4&&Q[(F+R)%4];R++)q+=D+" ",D=[O,N,j,E][(F+R)%4];let g=(F+R)%4;q+=D.split(" ")[0];let c=I(g);return q+=` A${B[(g+3)%4][0]} 0 0 1 ${c[0]}`,q}return`M${J+W[0]},${Y} ${O} ${N} ${j} ${E}`}function PJ(J,Y,K){return K[J+"Width"]===K[Y+"Width"]&&K[J+"Style"]===K[Y+"Style"]&&K[J+"Color"]===K[Y+"Color"]}function KV({id:J,currentClipPathId:Y,borderPath:K,borderType:Z,left:X,top:Q,width:W,height:z},$){if(!($.borderTopWidth||$.borderRightWidth||$.borderBottomWidth||$.borderLeftWidth))return null;let w=`satori_bc-${J}`;return[t("clipPath",{id:w,"clip-path":Y?`url(#${Y})`:void 0},t(Z,{x:X,y:Q,width:W,height:z,d:K||void 0})),w]}function hY({left:J,top:Y,width:K,height:Z,props:X,asContentMask:Q,maskBorderOnly:W},z){let $=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!$.some((A)=>z[A+"Width"]))return"";let w="",U=0;for(;U>0&&PJ($[U],$[(U+3)%4],z);)U=(U+3)%4;let H=[!1,!1,!1,!1],V=[];for(let A=0;A<4;A++){let M=(U+A)%4,B=(U+A+1)%4,O=$[M],N=$[B];if(H[M]=!0,V=[z[O+"Width"],z[O+"Style"],z[O+"Color"],O],!PJ(O,N,z)){let j=(V[0]||0)+(Q&&!W&&z[O.replace("border","padding")]||0);j&&(w+=t("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":V[2],"stroke-width":j*2,"stroke-dasharray":!Q&&V[1]==="dashed"?j*2+" "+j:void 0,d:e8({left:J,top:Y,width:K,height:Z},z,H)})),H=[!1,!1,!1,!1]}}if(H.some(Boolean)){let A=(V[0]||0)+(Q&&!W&&z[V[3].replace("border","padding")]||0);A&&(w+=t("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":V[2],"stroke-width":A*2,"stroke-dasharray":!Q&&V[1]==="dashed"?A*2+" "+A:void 0,d:e8({left:J,top:Y,width:K,height:Z},z,H)}))}return w}function ZV({id:J,left:Y,top:K,width:Z,height:X,matrix:Q,borderOnly:W},z){let $=(z.borderLeftWidth||0)+(W?0:z.paddingLeft||0),w=(z.borderTopWidth||0)+(W?0:z.paddingTop||0),U=(z.borderRightWidth||0)+(W?0:z.paddingRight||0),H=(z.borderBottomWidth||0)+(W?0:z.paddingBottom||0),V={x:Y+$,y:K+w,width:Z-$-U,height:X-w-H};return t("mask",{id:J},t("rect",{...V,fill:"#fff",transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0,mask:z._inheritedMaskId?`url(#${z._inheritedMaskId})`:void 0})+hY({left:Y,top:K,width:Z,height:X,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},z))}var t5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function XV({width:J,height:Y},K,Z){function X(w){let U=w.match(t5.circle);if(!U)return null;let[,H]=U,[V,A=""]=H.split("at").map((O)=>O.trim()),{x:M,y:B}=vJ(A,J,Y);return{type:"circle",r:V0(V,Z.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(Y,2))/Math.sqrt(2),Z,!0),cx:V0(M,Z.fontSize,J,Z,!0),cy:V0(B,Z.fontSize,Y,Z,!0)}}function Q(w){let U=w.match(t5.ellipse);if(!U)return null;let[,H]=U,[V,A=""]=H.split("at").map((j)=>j.trim()),[M,B]=V.split(" "),{x:O,y:N}=vJ(A,J,Y);return{type:"ellipse",rx:V0(M||"50%",Z.fontSize,J,Z,!0),ry:V0(B||"50%",Z.fontSize,Y,Z,!0),cx:V0(O,Z.fontSize,J,Z,!0),cy:V0(N,Z.fontSize,Y,Z,!0)}}function W(w){let U=w.match(t5.path);if(!U)return null;let[H,V]=SJ(U[1]);return{type:"path",d:V,"fill-rule":H}}function z(w){let U=w.match(t5.polygon);if(!U)return null;let[H,V]=SJ(U[1]);return{type:"polygon","fill-rule":H,points:V.split(",").map((A)=>A.split(" ").map((M,B)=>V0(M,Z.fontSize,B===0?J:Y,Z,!0)).join(" ")).join(",")}}function $(w){let U=w.match(t5.inset);if(!U)return null;let[H,V]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),A=l9.getStylesForProperty("borderRadius",V,!0),M=Object.values(A).map((I)=>String(I)).map((I,F)=>V0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),B=Object.values(l9.getStylesForProperty("margin",H,!0)).map((I)=>String(I)).map((I,F)=>V0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),O=B[3],N=B[0],j=J-(B[1]+B[3]),E=Y-(B[0]+B[2]);return M.some((I)=>I>0)?{type:"path",d:e8({left:O,top:N,width:j,height:E},{...K,...A})}:{type:"rect",x:O,y:N,width:j,height:E}}return{parseCircle:X,parseEllipse:Q,parsePath:W,parsePolygon:z,parseInset:$}}function SJ(J){let[,Y="nonzero",K]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[Y,K]}function vJ(J,Y,K){let Z=J.split(" "),X={x:Z[0]||"50%",y:Z[1]||"50%"};return Z.forEach((Q)=>{Q==="top"?X.y=0:Q==="bottom"?X.y=K:Q==="left"?X.x=0:Q==="right"?X.x=Y:Q==="center"&&(X.x=Y/2,X.y=K/2)}),X}function Q4(J){return`satori_cp-${J}`}function QV(J){return`url(#${Q4(J)})`}function WV(J,Y,K){if(Y.clipPath==="none")return"";let Z=XV(J,Y,K),X=Y.clipPath,Q={type:""};for(let W of Object.keys(Z))if(Q=Z[W](X),Q)break;if(Q){let{type:W,...z}=Q;return t("clipPath",{id:Q4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},t(W,z))}return""}function $V({left:J,top:Y,width:K,height:Z,path:X,matrix:Q,id:W,currentClipPath:z,src:$},w,U){let H="",V=w.clipPath&&w.clipPath!=="none"?WV({left:J,top:Y,width:K,height:Z,path:X,id:W,matrix:Q,currentClipPath:z,src:$},w,U):"";if(w.overflow!=="hidden"&&!$)H="";else{let M=V?`satori_ocp-${W}`:Q4(W);H=t("clipPath",{id:M,"clip-path":z},t(X?"path":"rect",{x:J,y:Y,width:K,height:Z,d:X||void 0,transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0}))}let A=ZV({id:`satori_om-${W}`,left:J,top:Y,width:K,height:Z,matrix:Q,borderOnly:!$},w);return V+H+A}var zV=(J)=>`satori_mi-${J}`;async function wV(J,Y,K){if(!Y.maskImage)return["",""];let{left:Z,top:X,width:Q,height:W,id:z}=J,$=Y.maskImage,w=$.length;if(!w)return["",""];let U=zV(z),H="";for(let V=0;V<w;V++){let A=$[V],[M,B]=await gY({id:`${U}-${V}`,left:Z,top:X,width:Q,height:W},A,K,"mask");H+=B+t("rect",{x:Z,y:X,width:Q,height:W,fill:`url(#${M})`})}return H=t("mask",{id:U},H),[U,H]}async function g9({id:J,left:Y,top:K,width:Z,height:X,isInheritingTransform:Q,src:W,debug:z},$,w){if($.display==="none")return"";let U=!!W,H="rect",V="",A="",M=[],B=1,O="";$.backgroundColor&&M.push($.backgroundColor),$.opacity!==void 0&&(B=+$.opacity),$.transform&&(V=vY({left:Y,top:K,width:Z,height:X},$.transform,Q,$.transformOrigin));let N="";if($.backgroundImage){let v=[];for(let C=0;C<$.backgroundImage.length;C++){let m=$.backgroundImage[C],u=await gY({id:J+"_"+C,width:Z,height:X,left:Y,top:K},m,w);u&&v.unshift(u)}for(let C of v)M.push(`url(#${C[0]})`),A+=C[1],C[2]&&(N+=C[2])}let[j,E]=await wV({id:J,left:Y,top:K,width:Z,height:X},$,w);A+=E;let I=j?`url(#${j})`:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0,F=e8({left:Y,top:K,width:Z,height:X},$);F&&(H="path");let q=$._inheritedClipPathId;z&&(O=t("rect",{x:Y,y:K,width:Z,height:X,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":q?`url(#${q})`:void 0}));let{backgroundClip:T,filter:D}=$,R=T==="text"?`url(#satori_bct-${J})`:q?`url(#${q})`:$.clipPath?QV(J):void 0,g=$V({left:Y,top:K,width:Z,height:X,path:F,id:J,matrix:V,currentClipPath:R,src:W},$,w),c=M.map((v)=>t(H,{x:Y,y:K,width:Z,height:X,fill:v,d:F||void 0,transform:V||void 0,"clip-path":$.transform?void 0:R,style:D?`filter:${D}`:void 0,mask:$.transform?void 0:I})).join(""),i=KV({id:J,left:Y,top:K,width:Z,height:X,currentClipPathId:q,borderPath:F,borderType:H},$),p;if(U){let v=($.borderLeftWidth||0)+($.paddingLeft||0),C=($.borderTopWidth||0)+($.paddingTop||0),m=($.borderRightWidth||0)+($.paddingRight||0),u=($.borderBottomWidth||0)+($.paddingBottom||0),a=$.objectFit==="contain"?"xMidYMid":$.objectFit==="cover"?"xMidYMid slice":"none";$.transform&&(p=YV({id:J,borderRadiusPath:F,borderType:H,left:Y,top:K,width:Z,height:X},$)),c+=t("image",{x:Y+v,y:K+C,width:Z-v-m,height:X-C-u,href:W,preserveAspectRatio:a,transform:V||void 0,style:D?`filter:${D}`:void 0,"clip-path":$.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:$.transform?void 0:j?`url(#${j})`:`url(#satori_om-${J})`})}if(i){A+=i[0];let v=i[1];c+=hY({left:Y,top:K,width:Z,height:X,props:{transform:V||void 0,"clip-path":`url(#${v})`}},$)}let S=PH({width:Z,height:X,id:J,opacity:B,shape:t(H,{x:Y,y:K,width:Z,height:X,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:V||void 0,"clip-path":R,mask:I})},$);return(A?t("defs",{},A):"")+(S?S[0]:"")+(p?p[0]:"")+g+(B!==1?`<g opacity="${B}">`:"")+($.transform&&(R||I)?`<g${R?` clip-path="${R}"`:""}${I?` mask="${I}"`:""}>`:"")+(N||c)+($.transform&&(R||I)?"</g>":"")+(B!==1?"</g>":"")+(S?S[1]:"")+O}var UV=()=>/[#*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,HV=new RegExp(UV(),""),p9={emoji:HV,symbol:/\p{Symbol}/u,math:/\p{Math}/u},i9={"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},W4=Object.keys({...i9,...p9});function VV(J){return W4.includes(J)}function AV(J,Y){for(let Z of Object.keys(p9))if(p9[Z].test(J))return[Z];let K=Object.keys(i9).filter((Z)=>i9[Z].test(J));if(K.length===0)return["unknown"];if(Y){let Z=K.findIndex((X)=>X===Y);Z!==-1&&(K.splice(Z,1),K.unshift(Y))}return K}function BV(J){if(J)return W4.find((Y)=>Y.toLowerCase().startsWith(J.toLowerCase()))}async function*n9(J,Y){var K;let Z=await Z6(),{id:X,inheritedStyle:Q,parent:W,font:z,debug:$,locale:w,embedFont:U=!0,graphemeImages:H,canLoadAdditionalAssets:V,getTwStyles:A}=Y;if(J===null||typeof J>"u")return yield,yield,"";if(!n8(J)||typeof J.type=="function"){let k;if(!n8(J))k=dH(String(J),Y),yield(await k.next()).value;else{if(lU(J.type))throw Error("Class component is not supported.");k=n9(J.type(J.props),Y),yield(await k.next()).value}await k.next();let l=yield;return(await k.next(l)).value}let{type:M,props:B}=J;if(B&&pU(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:O,children:N,tw:j,lang:E=w}=B||{},I=BV(E);if(j){let k=A(j,O);O=Object.assign(k,O)}let F=Z.Node.create();W.insertChild(F,W.getChildCount());let[q,T]=await _H(F,M,Q,O,B),D=q.transform===Q.transform;if(D||(q.transform.__parent=Q.transform),(q.overflow==="hidden"||q.clipPath&&q.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${X}`,T._inheritedMaskId=`satori_om-${X}`),q.maskImage&&(T._inheritedMaskId=`satori_mi-${X}`),q.backgroundClip==="text"){let k={value:""};T._inheritedBackgroundClipTextPath=k,q._inheritedBackgroundClipTextPath=k}let R=iU(N),g=[],c=0,i=[];for(let k of R){let l=n9(k,{id:X+"-"+c++,parentStyle:q,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:z,embedFont:U,debug:$,graphemeImages:H,canLoadAdditionalAssets:V,locale:I,getTwStyles:A,onNodeDetected:Y.onNodeDetected});V?i.push(...(await l.next()).value||[]):await l.next(),g.push(l)}yield i;for(let k of g)await k.next();let[p,S]=yield,{left:v,top:C,width:m,height:u}=F.getComputedLayout();v+=p,C+=S;let a="",n="",f="",{children:d,...P}=B;if((K=Y.onNodeDetected)==null||K.call(Y,{left:v,top:C,width:m,height:u,type:M,props:P,key:J.key,textContent:n8(d)?void 0:d}),M==="img"){let k=q.__src;n=await g9({id:X,left:v,top:C,width:m,height:u,src:k,isInheritingTransform:D,debug:$},q,T)}else if(M==="svg"){let k=q.color,l=await wH(J,k);n=await g9({id:X,left:v,top:C,width:m,height:u,src:l,isInheritingTransform:D,debug:$},q,T)}else{let k=O==null?void 0:O.display;if(M==="div"&&N&&typeof N!="string"&&k!=="flex"&&k!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');n=await g9({id:X,left:v,top:C,width:m,height:u,isInheritingTransform:D,debug:$},q,T)}for(let k of g)a+=(await k.next([v,C])).value;return q._inheritedBackgroundClipTextPath&&(f+=t("clipPath",{id:`satori_bct-${X}`,"clip-path":q._inheritedClipPathId?`url(#${q._inheritedClipPathId})`:void 0},q._inheritedBackgroundClipTextPath.value)),f+n+a}var xY="unknown";function GV(J,Y,[K,Z],[X,Q]){if(K!==X)return K?!X||K===J?-1:X===J?1:J===400&&K===500||J===500&&K===400?-1:J===400&&X===500||J===500&&X===400?1:J<400?K<J&&X<J?X-K:K<J?-1:X<J?1:K-X:J<K&&J<X?K-X:J<K?-1:J<X?1:X-K:1;if(Z!==Q){if(Z===Y)return-1;if(Q===Y)return 1}return-1}var OV=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:Y,style:K}){if(!this.fonts.has(J))return null;Y==="normal"&&(Y=400),Y==="bold"&&(Y=700),typeof Y=="string"&&(Y=Number.parseInt(Y,10));let Z=[...this.fonts.get(J)],X=Z[0];for(let Q=1;Q<Z.length;Q++){let[,W,z]=X,[,$,w]=Z[Q];GV(Y,K,[W,z],[$,w])>0&&(X=Z[Q])}return X[0]}addFonts(J){for(let Y of J){let{name:K,data:Z,lang:X}=Y;if(X&&!VV(X))throw Error(`Invalid value for props \`lang\`: "${X}". The value must be one of the following: ${W4.join(", ")}.`);let Q=X??xY,W=g8.parse("buffer"in Z?Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength):Z,{lowMemory:!0}),z=W.charToGlyphIndex;W.charToGlyphIndex=(w)=>{let U=z.call(W,w);return U===0&&W._trackBrokenChars&&W._trackBrokenChars.push(w),U},this.defaultFont||(this.defaultFont=W);let $=`${K.toLowerCase()}_${Q}`;this.fonts.has($)||this.fonts.set($,[]),this.fonts.get($).push([W,Y.weight,Y.style])}}getEngine(J=16,Y="normal",{fontFamily:K="sans-serif",fontWeight:Z=400,fontStyle:X="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");K=(Array.isArray(K)?K:[K]).map((N)=>N.toLowerCase());let W=[];K.forEach((N)=>{let j=this.get({name:N,weight:Z,style:X});if(j){W.push(j);return}let E=this.get({name:N+"_unknown",weight:Z,style:X});if(E){W.push(E);return}});let z=Array.from(this.fonts.keys()),$=[],w=[],U=[];for(let N of z)if(!K.includes(N))if(Q){let j=MV(N);j?j===Q?$.push(this.get({name:N,weight:Z,style:X})):w.push(this.get({name:N,weight:Z,style:X})):U.push(this.get({name:N,weight:Z,style:X}))}else U.push(this.get({name:N,weight:Z,style:X}));let H=new Map,V=(N,j=!0)=>{let E=[...W,...U,...$,...j?w:[]];if(typeof N>"u")return j?E[E.length-1]:void 0;let I=N.charCodeAt(0);if(H.has(I))return H.get(I);let F=E.find((q,T)=>!!q.charToGlyphIndex(N)||j&&T===E.length-1);return F&&H.set(I,F),F},A=(N,j=!1)=>{var E,I;return((j?(I=(E=N.tables)==null?void 0:E.os2)==null?void 0:I.sTypoAscender:0)||N.ascender)/N.unitsPerEm*J},M=(N,j=!1)=>{var E,I;return((j?(I=(E=N.tables)==null?void 0:E.os2)==null?void 0:I.sTypoDescender:0)||N.descender)/N.unitsPerEm*J},B=(N,j=!1)=>{var E,I;if(typeof Y=="string"&&Y==="normal"){let F=(j?(I=(E=N.tables)==null?void 0:E.os2)==null?void 0:I.sTypoLineGap:0)||0;return A(N,j)-M(N,j)+F/N.unitsPerEm*J}else if(typeof Y=="number")return J*Y},O=(N)=>V(N,!1);return{has:(N)=>{if(N===`
|
|
66
|
-
`)return!0;let j=O(N);return j?(j._trackBrokenChars=[],j.stringToGlyphs(N),j._trackBrokenChars.length?(j._trackBrokenChars=void 0,!1):!0):!1},baseline:(N,j=typeof N>"u"?W[0]:V(N))=>{let E=A(j),I=M(j),F=E-I;return E+(B(j)-F)/2},height:(N,j=typeof N>"u"?W[0]:V(N))=>B(j),measure:(N,j)=>this.measure(V,N,j),getSVG:(N,j)=>this.getSVG(V,N,j)}}patchFontFallbackResolver(J,Y){let K=[];J._trackBrokenChars=K;let Z=J.stringToGlyphs;return J.stringToGlyphs=(X,...Q)=>{let W=Z.call(J,X,...Q);for(let z=0;z<W.length;z++)if(W[z].unicode===void 0){let $=K.shift(),w=Y($);if(w!==J){let U=w.charToGlyph($),H=J.unitsPerEm/w.unitsPerEm,V=new g8.Path;V.unitsPerEm=J.unitsPerEm,V.commands=U.path.commands.map((M)=>{let B={...M};for(let O in B)typeof B[O]=="number"&&(B[O]*=H);return B});let A=new g8.Glyph({...U,advanceWidth:U.advanceWidth*H,xMin:U.xMin*H,xMax:U.xMax*H,yMin:U.yMin*H,yMax:U.yMax*H,path:V});W[z]=A}}return W},()=>{J.stringToGlyphs=Z,J._trackBrokenChars=void 0}}measure(J,Y,{fontSize:K,letterSpacing:Z=0}){let X=J(Y),Q=this.patchFontFallbackResolver(X,J);try{return X.getAdvanceWidth(Y,K,{letterSpacing:Z/K})}finally{Q()}}getSVG(J,Y,{fontSize:K,top:Z,left:X,letterSpacing:Q=0}){let W=J(Y),z=this.patchFontFallbackResolver(W,J);try{return K===0?"":W.getPath(Y.replace(/\n/g,""),X,Z,K,{letterSpacing:Q/K}).toPathData(1)}finally{z()}}};function MV(J){let Y=J.split("_"),K=Y[Y.length-1];return K===xY?void 0:K}function LV({width:J,height:Y,content:K}){return t("svg",{width:J,height:Y,viewBox:`0 0 ${J} ${Y}`,xmlns:"http://www.w3.org/2000/svg"},K)}var NV=sw(vU()),jV=["ios","android","windows","macos","web"];function qV(J){return jV.includes(J)}var EV=["portrait","landscape"];function FV(J){return EV.includes(J)}var kJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(kJ||(kJ={}));var N0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(N0||(N0={}));function yJ(J){return typeof J=="string"}function gJ(J){return typeof J=="object"}var h9;function x(J){return{kind:"complete",style:J}}function X1(J,Y={}){let{fractions:K}=Y;if(K&&J.includes("/")){let[Q="",W=""]=J.split("/",2),z=X1(Q),$=X1(W);return!z||!$?null:[z[0]/$[0],$[1]]}let Z=parseFloat(J);if(Number.isNaN(Z))return null;let X=J.match(/(([a-z]{2,}|%))$/);if(!X)return[Z,N0.none];switch(X==null?void 0:X[1]){case"rem":return[Z,N0.rem];case"px":return[Z,N0.px];case"em":return[Z,N0.em];case"%":return[Z,N0.percent];case"vw":return[Z,N0.vw];case"vh":return[Z,N0.vh];default:return null}}function Q8(J,Y,K={}){let Z=W5(Y,K);return Z===null?null:x({[J]:Z})}function x9(J,Y,K){let Z=W5(Y);return Z!==null&&(K[J]=Z),K}function _V(J,Y){let K=W5(Y);return K===null?null:{[J]:K}}function W5(J,Y={}){if(J===void 0)return null;let K=X1(String(J),Y);return K?W8(...K,Y):null}function W8(J,Y,K={}){let{isNegative:Z,device:X}=K;switch(Y){case N0.rem:return J*16*(Z?-1:1);case N0.px:return J*(Z?-1:1);case N0.percent:return`${Z?"-":""}${J}%`;case N0.none:return J*(Z?-1:1);case N0.vw:return X!=null&&X.windowDimensions?X.windowDimensions.width*(J/100):(k1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case N0.vh:return X!=null&&X.windowDimensions?X.windowDimensions.height*(J/100):(k1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function hJ(J){let Y=X1(J);if(!Y)return null;let[K,Z]=Y;switch(Z){case N0.rem:return K*16;case N0.px:return K;default:return null}}var IV={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function bY(J){return IV[J??""]||"All"}function fY(J){let Y="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(K,Z)=>(Y=bY(Z),"")),Y]}function z6(J,Y={}){if(J.includes("/")){let K=xJ(J,{...Y,fractions:!0});if(K)return K}return J[0]==="["&&(J=J.slice(1,-1)),xJ(J,Y)}function $5(J,Y,K={}){let Z=z6(Y,K);return Z===null?null:x({[J]:Z})}function xJ(J,Y={}){if(J==="px")return 1;let K=X1(J,Y);if(!K)return null;let[Z,X]=K;return Y.fractions&&(X=N0.percent,Z*=100),X===N0.none&&(Z=Z/4,X=N0.rem),W8(Z,X,Y)}function DV(...J){console.warn(...J)}function RV(...J){}var k1=typeof process>"u"||((h9=process==null?void 0:process.env)===null||h9===void 0?void 0:h9.JEST_WORKER_ID)===void 0?DV:RV,CV=[["aspect-square",x({aspectRatio:1})],["aspect-video",x({aspectRatio:1.7777777777777777})],["items-center",x({alignItems:"center"})],["items-start",x({alignItems:"flex-start"})],["items-end",x({alignItems:"flex-end"})],["items-baseline",x({alignItems:"baseline"})],["items-stretch",x({alignItems:"stretch"})],["justify-start",x({justifyContent:"flex-start"})],["justify-end",x({justifyContent:"flex-end"})],["justify-center",x({justifyContent:"center"})],["justify-between",x({justifyContent:"space-between"})],["justify-around",x({justifyContent:"space-around"})],["justify-evenly",x({justifyContent:"space-evenly"})],["content-start",x({alignContent:"flex-start"})],["content-end",x({alignContent:"flex-end"})],["content-between",x({alignContent:"space-between"})],["content-around",x({alignContent:"space-around"})],["content-stretch",x({alignContent:"stretch"})],["content-center",x({alignContent:"center"})],["self-auto",x({alignSelf:"auto"})],["self-start",x({alignSelf:"flex-start"})],["self-end",x({alignSelf:"flex-end"})],["self-center",x({alignSelf:"center"})],["self-stretch",x({alignSelf:"stretch"})],["self-baseline",x({alignSelf:"baseline"})],["direction-inherit",x({direction:"inherit"})],["direction-ltr",x({direction:"ltr"})],["direction-rtl",x({direction:"rtl"})],["hidden",x({display:"none"})],["flex",x({display:"flex"})],["flex-row",x({flexDirection:"row"})],["flex-row-reverse",x({flexDirection:"row-reverse"})],["flex-col",x({flexDirection:"column"})],["flex-col-reverse",x({flexDirection:"column-reverse"})],["flex-wrap",x({flexWrap:"wrap"})],["flex-wrap-reverse",x({flexWrap:"wrap-reverse"})],["flex-nowrap",x({flexWrap:"nowrap"})],["flex-auto",x({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",x({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",x({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",x({overflow:"hidden"})],["overflow-visible",x({overflow:"visible"})],["overflow-scroll",x({overflow:"scroll"})],["absolute",x({position:"absolute"})],["relative",x({position:"relative"})],["italic",x({fontStyle:"italic"})],["not-italic",x({fontStyle:"normal"})],["oldstyle-nums",e5("oldstyle-nums")],["small-caps",e5("small-caps")],["lining-nums",e5("lining-nums")],["tabular-nums",e5("tabular-nums")],["proportional-nums",e5("proportional-nums")],["font-thin",x({fontWeight:"100"})],["font-100",x({fontWeight:"100"})],["font-extralight",x({fontWeight:"200"})],["font-200",x({fontWeight:"200"})],["font-light",x({fontWeight:"300"})],["font-300",x({fontWeight:"300"})],["font-normal",x({fontWeight:"normal"})],["font-400",x({fontWeight:"400"})],["font-medium",x({fontWeight:"500"})],["font-500",x({fontWeight:"500"})],["font-semibold",x({fontWeight:"600"})],["font-600",x({fontWeight:"600"})],["font-bold",x({fontWeight:"bold"})],["font-700",x({fontWeight:"700"})],["font-extrabold",x({fontWeight:"800"})],["font-800",x({fontWeight:"800"})],["font-black",x({fontWeight:"900"})],["font-900",x({fontWeight:"900"})],["include-font-padding",x({includeFontPadding:!0})],["remove-font-padding",x({includeFontPadding:!1})],["max-w-none",x({maxWidth:"99999%"})],["text-left",x({textAlign:"left"})],["text-center",x({textAlign:"center"})],["text-right",x({textAlign:"right"})],["text-justify",x({textAlign:"justify"})],["text-auto",x({textAlign:"auto"})],["underline",x({textDecorationLine:"underline"})],["line-through",x({textDecorationLine:"line-through"})],["no-underline",x({textDecorationLine:"none"})],["uppercase",x({textTransform:"uppercase"})],["lowercase",x({textTransform:"lowercase"})],["capitalize",x({textTransform:"capitalize"})],["normal-case",x({textTransform:"none"})],["w-auto",x({width:"auto"})],["h-auto",x({height:"auto"})],["shadow-sm",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",x({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],bJ=CV;function e5(J){return{kind:"dependent",complete(Y){(!Y.fontVariant||!Array.isArray(Y.fontVariant))&&(Y.fontVariant=[]),Y.fontVariant.push(J)}}}var TV=class{constructor(J){this.ir=new Map(bJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...bJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,Y){this.styles.set(J,Y)}getIr(J){return this.ir.get(J)}setIr(J,Y){this.ir.set(J,Y)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,Y){this.prefixes.set(J,Y)}};function PV(J,Y,K={}){let Z=Y==null?void 0:Y[J];if(!Z)return $5("fontSize",J,K);if(typeof Z=="string")return Q8("fontSize",Z);let X={},[Q,W]=Z,z=_V("fontSize",Q);if(z&&(X=z),typeof W=="string")return x(x9("lineHeight",fJ(W,X),X));let{lineHeight:$,letterSpacing:w}=W;return $&&x9("lineHeight",fJ($,X),X),w&&x9("letterSpacing",w,X),x(X)}function fJ(J,Y){let K=X1(J);if(K){let[Z,X]=K;if((X===N0.none||X===N0.em)&&typeof Y.fontSize=="number")return Y.fontSize*Z}return J}function SV(J,Y){var K;let Z=(K=Y==null?void 0:Y[J])!==null&&K!==void 0?K:J.startsWith("[")?J.slice(1,-1):J,X=X1(Z);if(!X)return null;let[Q,W]=X;if(W===N0.none)return{kind:"dependent",complete($){if(typeof $.fontSize!="number")return"relative line-height utilities require that font-size be set";$.lineHeight=$.fontSize*Q}};let z=W8(Q,W);return z!==null?x({lineHeight:z}):null}function vV(J,Y,K,Z,X){let Q="";if(Z[0]==="[")Q=Z.slice(1,-1);else{let w=X==null?void 0:X[Z];if(w)Q=w;else{let U=z6(Z);return U&&typeof U=="number"?mJ(U,N0.px,Y,J):null}}if(Q==="auto")return mY(Y,J,"auto");let W=X1(Q);if(!W)return null;let[z,$]=W;return K&&(z=-z),mJ(z,$,Y,J)}function mJ(J,Y,K,Z){let X=W8(J,Y);return X===null?null:mY(K,Z,X)}function mY(J,Y,K){switch(J){case"All":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Right`]:K,[`${Y}Bottom`]:K,[`${Y}Left`]:K}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${Y}${J}`]:K}};case"Vertical":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Bottom`]:K}};case"Horizontal":return{kind:"complete",style:{[`${Y}Left`]:K,[`${Y}Right`]:K}};default:return null}}function kV(J){if(!J)return{};let Y=Object.entries(J).reduce((X,[Q,W])=>{let z=[0,1/0,0],$=typeof W=="string"?{min:W}:W,w=$.min?hJ($.min):0;w===null?k1(`invalid screen config value: ${Q}->min: ${$.min}`):z[0]=w;let U=$.max?hJ($.max):1/0;return U===null?k1(`invalid screen config value: ${Q}->max: ${$.max}`):z[1]=U,X[Q]=z,X},{}),K=Object.values(Y);K.sort((X,Q)=>{let[W,z]=X,[$,w]=Q;return z===1/0||w===1/0?W-$:z-w});let Z=0;return K.forEach((X)=>X[2]=Z++),Y}function yV(J,Y){let K=Y==null?void 0:Y[J];if(!K)return null;if(typeof K=="string")return x({fontFamily:K});let Z=K[0];return Z?x({fontFamily:Z}):null}function Y8(J,Y,K){if(!K)return null;let Z;Y.includes("/")&&([Y="",Z]=Y.split("/",2));let X="";if(Y.startsWith("[#")||Y.startsWith("[rgb")?X=Y.slice(1,-1):X=dY(Y,K),!X)return null;if(Z){let Q=Number(Z);if(!Number.isNaN(Q))return X=dJ(X,Q/100),x({[a8[J].color]:X})}return{kind:"dependent",complete(Q){let W=a8[J].opacity,z=Q[W];typeof z=="number"&&(X=dJ(X,z)),Q[a8[J].color]=X}}}function u8(J,Y){let K=parseInt(Y,10);if(Number.isNaN(K))return null;let Z=K/100;return{kind:"complete",style:{[a8[J].opacity]:Z}}}function dJ(J,Y){return J.startsWith("#")?J=hV(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${Y})`)}function gV(J){for(let Y in J)Y.startsWith("__opacity_")&&delete J[Y]}var a8={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 hV(J){let Y=J;J=J.replace(xV,(W,z,$,w)=>z+z+$+$+w+w);let K=bV.exec(J);if(!K)return k1(`invalid config hex color value: ${Y}`),"rgba(0, 0, 0, 1)";let Z=parseInt(K[1],16),X=parseInt(K[2],16),Q=parseInt(K[3],16);return`rgba(${Z}, ${X}, ${Q}, 1)`}function dY(J,Y){let K=Y[J];if(yJ(K))return K;if(gJ(K)&&yJ(K.DEFAULT))return K.DEFAULT;let[Z="",...X]=J.split("-");for(;Z!==J;){let Q=Y[Z];if(gJ(Q))return dY(X.join("-"),Q);if(X.length===0)return"";Z=`${Z}-${X.shift()}`}return""}var xV=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,bV=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function fV(J,Y){let[K,Z]=fY(J);if(K.match(/^(-?(\d)+)?$/))return mV(K,Z,Y==null?void 0:Y.borderWidth);if(K=K.replace(/^-/,""),["dashed","solid","dotted"].includes(K))return x({borderStyle:K});let X="border";switch(Z){case"Bottom":X="borderBottom";break;case"Top":X="borderTop";break;case"Left":X="borderLeft";break;case"Right":X="borderRight";break}let Q=Y8(X,K,Y==null?void 0:Y.borderColor);if(Q)return Q;let W=`border${Z==="All"?"":Z}Width`;K=K.replace(/^-/,"");let z=K.slice(1,-1),$=$5(W,z);return typeof($==null?void 0:$.style[W])!="number"?null:$}function mV(J,Y,K){if(!K)return null;J=J.replace(/^-/,"");let Z=K[J===""?"DEFAULT":J];if(Z===void 0)return null;let X=`border${Y==="All"?"":Y}Width`;return Q8(X,Z)}function dV(J,Y){if(!Y)return null;let[K,Z]=fY(J);K=K.replace(/^-/,""),K===""&&(K="DEFAULT");let X=`border${Z==="All"?"":Z}Radius`,Q=Y[K];if(Q)return cJ(Q8(X,Q));let W=$5(X,K);return typeof(W==null?void 0:W.style[X])!="number"?null:cJ(W)}function cJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let Y=J.style.borderTopRadius;Y!==void 0&&(J.style.borderTopLeftRadius=Y,J.style.borderTopRightRadius=Y,delete J.style.borderTopRadius);let K=J.style.borderBottomRadius;K!==void 0&&(J.style.borderBottomLeftRadius=K,J.style.borderBottomRightRadius=K,delete J.style.borderBottomRadius);let Z=J.style.borderLeftRadius;Z!==void 0&&(J.style.borderBottomLeftRadius=Z,J.style.borderTopLeftRadius=Z,delete J.style.borderLeftRadius);let X=J.style.borderRightRadius;return X!==void 0&&(J.style.borderBottomRightRadius=X,J.style.borderTopRightRadius=X,delete J.style.borderRightRadius),J}function J8(J,Y,K,Z){let X=null;J==="inset"&&(Y=Y.replace(/^(x|y)-/,(z,$)=>(X=$==="x"?"x":"y","")));let Q=Z==null?void 0:Z[Y];if(Q){let z=W5(Q,{isNegative:K});if(z!==null)return uJ(J,X,z)}let W=z6(Y,{isNegative:K});return W!==null?uJ(J,X,W):null}function uJ(J,Y,K){if(J!=="inset")return x({[J]:K});switch(Y){case null:return x({top:K,left:K,right:K,bottom:K});case"y":return x({top:K,bottom:K});case"x":return x({left:K,right:K})}}function l8(J,Y,K){var Z;Y=Y.replace(/^-/,"");let X=Y===""?"DEFAULT":Y,Q=Number((Z=K==null?void 0:K[X])!==null&&Z!==void 0?Z:Y);return Number.isNaN(Q)?null:x({[`flex${J}`]:Q})}function cV(J,Y){var K,Z;if(J=(Y==null?void 0:Y[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return x({flexGrow:Number(J),flexBasis:"0%"});let X=J.match(/^(\d+)\s+(\d+)$/);if(X)return x({flexGrow:Number(X[1]),flexShrink:Number(X[2])});if(X=J.match(/^(\d+)\s+([^ ]+)$/),X){let Q=W5((K=X[2])!==null&&K!==void 0?K:"");return Q?x({flexGrow:Number(X[1]),flexBasis:Q}):null}if(X=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),X){let Q=W5((Z=X[3])!==null&&Z!==void 0?Z:"");return Q?x({flexGrow:Number(X[1]),flexShrink:Number(X[2]),flexBasis:Q}):null}return null}function lJ(J,Y,K={},Z){let X=Z==null?void 0:Z[Y];return X!==void 0?Q8(J,X,K):$5(J,Y,K)}function p8(J,Y,K={},Z){let X=W5(Z==null?void 0:Z[Y],K);return X?x({[J]:X}):(Y==="screen"&&(Y=J.includes("Width")?"100vw":"100vh"),$5(J,Y,K))}function uV(J,Y,K){let Z=K==null?void 0:K[J];if(Z){let X=X1(Z,{isNegative:Y});if(!X)return null;let[Q,W]=X;if(W===N0.em)return lV(Q);if(W===N0.percent)return k1("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 z=W8(Q,W,{isNegative:Y});return z!==null?x({letterSpacing:z}):null}return $5("letterSpacing",J,{isNegative:Y})}function lV(J){return{kind:"dependent",complete(Y){let K=Y.fontSize;if(typeof K!="number"||Number.isNaN(K))return"tracking-X relative letter spacing classes require font-size to be set";Y.letterSpacing=Math.round((J*K+Number.EPSILON)*100)/100}}}function pV(J,Y){let K=Y==null?void 0:Y[J];if(K){let X=X1(String(K));if(X)return x({opacity:X[0]})}let Z=X1(J);return Z?x({opacity:Z[0]/100}):null}function iV(J){let Y=parseInt(J,10);return Number.isNaN(Y)?null:{kind:"complete",style:{shadowOpacity:Y/100}}}function nV(J){if(J.includes("/")){let[K="",Z=""]=J.split("/",2),X=b9(K),Q=b9(Z);return X===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:X,height:Q}}}}let Y=b9(J);return Y===null?null:{kind:"complete",style:{shadowOffset:{width:Y,height:Y}}}}function b9(J){let Y=z6(J);return typeof Y=="number"?Y:null}var pJ=class{constructor(J,Y={},K,Z,X){var Q,W,z,$,w,U;this.config=Y,this.cache=K,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=Z;let H=J.trim().split(":"),V=[];H.length===1?this.string=J:(this.string=(Q=H.pop())!==null&&Q!==void 0?Q:"",V=H),this.char=this.string[0];let A=kV((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let M of V)if(A[M]){let B=(z=A[M])===null||z===void 0?void 0:z[2];B!==void 0&&(this.order=(($=this.order)!==null&&$!==void 0?$:0)+B);let O=(w=Z.windowDimensions)===null||w===void 0?void 0:w.width;if(O){let[N,j]=(U=A[M])!==null&&U!==void 0?U:[0,0];(O<=N||O>j)&&(this.isNull=!0)}else this.isNull=!0}else qV(M)?this.isNull=M!==X:FV(M)?Z.windowDimensions?(Z.windowDimensions.width>Z.windowDimensions.height?"landscape":"portrait")!==M?this.isNull=!0:this.incrementOrder():this.isNull=!0:M==="retina"?Z.pixelDensity===2?this.incrementOrder():this.isNull=!0:M==="dark"?Z.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(M)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let Y=this.parseUtility();return Y?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:Y}:Y:{kind:"null"}}parseUtility(){var J,Y,K,Z,X;let Q=this.config.theme,W=null;switch(this.char){case"m":case"p":{let z=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(z){let $=this.char==="m"?"margin":"padding";this.advance(((Y=(J=z[0])===null||J===void 0?void 0:J.length)!==null&&Y!==void 0?Y:0)+1);let w=bY(z[1]),U=vV($,w,this.isNegative,this.rest,(K=this.config.theme)===null||K===void 0?void 0:K[$]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=lJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=lJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=p8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=p8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=p8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=p8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=SV(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=PV(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=Y8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=u8("text",this.rest),W))||this.consumePeeked("font-")&&(W=yV(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&k1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=Q8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=Y8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=Y8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=u8("bg",this.rest),W))||this.consumePeeked("border")&&(W=fV(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=u8("border",this.rest),W))||this.consumePeeked("rounded")&&(W=dV(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=J8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=J8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=J8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=J8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=J8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=cV(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=u8("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=iV(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=nV(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=$5("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=Y8("shadow",this.rest,Q==null?void 0:Q.colors),W))return W;if(this.consumePeeked("elevation-")){let z=parseInt(this.rest,10);if(!Number.isNaN(z))return x({elevation:z})}if(this.consumePeeked("opacity-")&&(W=pV(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=uV(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let z=Number((X=(Z=Q==null?void 0:Q.zIndex)===null||Z===void 0?void 0:Z[this.rest])!==null&&X!==void 0?X:this.rest);if(!Number.isNaN(z))return x({zIndex:z})}return k1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var Y;if(J[0]!=="m")return!1;let K=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!K)return!1;if(!(!((Y=this.context.device)===null||Y===void 0)&&Y.windowDimensions))return this.isNull=!0,!0;let Z=this.context.device.windowDimensions,[,X="",Q="",W=""]=K,z=Q==="w"?Z.width:Z.height,$=X1(W,this.context);if($===null)return this.isNull=!0,!0;let[w,U]=$;return U!=="px"&&(this.isNull=!0),(X==="min"?z>=w:z<=w)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,Y){return this.string.slice(this.position+J,this.position+Y)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function oV(J){let Y=[],K=null;return J.forEach((Z)=>{if(typeof Z=="string")Y=[...Y,...f9(Z)];else if(Array.isArray(Z))Y=[...Y,...Z.flatMap(f9)];else if(typeof Z=="object"&&Z!==null)for(let[X,Q]of Object.entries(Z))typeof Q=="boolean"?Y=[...Y,...Q?f9(X):[]]:K?K[X]=Q:K={[X]:Q}}),[Y.filter(Boolean).filter(rV),K]}function f9(J){return J.trim().split(/\s+/)}function rV(J,Y,K){return K.indexOf(J)===Y}function sV(J){var Y;return(Y=J==null?void 0:J.reduce((K,Z)=>({...K,...aV(Z.handler)}),{}))!==null&&Y!==void 0?Y:{}}function aV(J){let Y={};return J({addUtilities:(K)=>{Y=K},...tV}),Y}function D1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var tV={addComponents:D1,addBase:D1,addVariant:D1,e:D1,prefix:D1,theme:D1,variants:D1,config:D1,corePlugins:D1,matchUtilities:D1,postcss:null};function eV(J,Y){let K=(0,NV.default)(JA(J)),Z={},X=sV(K.plugins),Q={},W=Object.entries(X).map(([M,B])=>typeof B=="string"?(Q[M]=B,[M,{kind:"null"}]):[M,x(B)]).filter(([,M])=>M.kind!=="null");function z(){return[Z.windowDimensions?`w${Z.windowDimensions.width}`:!1,Z.windowDimensions?`h${Z.windowDimensions.height}`:!1,Z.fontScale?`fs${Z.fontScale}`:!1,Z.colorScheme==="dark"?"dark":!1,Z.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let $=z(),w={};function U(){let M=w[$];if(M)return M;let B=new TV(W);return w[$]=B,B}function H(...M){let B=U(),O={},N=[],j=[],[E,I]=oV(M),F=E.join(" "),q=B.getStyle(F);if(q)return{...q,...I||{}};for(let T of E){let D=B.getIr(T);if(!D&&T in Q){let R=H(Q[T]);B.setIr(T,x(R)),O={...O,...R};continue}switch(D=new pJ(T,K,B,Z,Y).parse(),D.kind){case"complete":O={...O,...D.style},B.setIr(T,D);break;case"dependent":N.push(D);break;case"ordered":j.push(D);break;case"null":B.setIr(T,D);break}}if(j.length>0){j.sort((T,D)=>T.order-D.order);for(let T of j)switch(T.styleIr.kind){case"complete":O={...O,...T.styleIr.style};break;case"dependent":N.push(T.styleIr);break}}if(N.length>0){for(let T of N){let D=T.complete(O);D&&k1(D)}gV(O)}return F!==""&&B.setStyle(F,O),I&&(O={...O,...I}),O}function V(M){let B=H(M.split(/\s+/g).map((O)=>O.replace(/^(bg|text|border)-/,"")).map((O)=>`bg-${O}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let A=(M,...B)=>{let O="";return M.forEach((N,j)=>{var E;O+=N+((E=B[j])!==null&&E!==void 0?E:"")}),H(O)};return A.style=H,A.color=V,A.prefixMatch=(...M)=>{let B=M.sort().join(":"),O=U(),N=O.getPrefixMatch(B);if(N!==void 0)return N;let j=new pJ(`${B}:flex`,K,O,Z,Y).parse().kind!=="null";return O.setPrefixMatch(B,j),j},A.setWindowDimensions=(M)=>{Z.windowDimensions=M,$=z()},A.setFontScale=(M)=>{Z.fontScale=M,$=z()},A.setPixelDensity=(M)=>{Z.pixelDensity=M,$=z()},A.setColorScheme=(M)=>{Z.colorScheme=M,$=z()},A}function JA(J){return{...J,content:["_no_warnings_please"]}}var YA={handler:({addUtilities:J})=>{J({"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 KA(J){return eV({...J,plugins:[...(J==null?void 0:J.plugins)??[],YA]},"web")}var i8;function ZA({width:J,height:Y,config:K}){return i8||(i8=KA(K)),i8.setWindowDimensions({width:+J,height:+Y}),i8}var m9=new WeakMap;async function cY(J,Y){let K=await Z6();if(!K||!K.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+K);Y.fonts=Y.fonts||[];let Z;m9.has(Y.fonts)?Z=m9.get(Y.fonts):m9.set(Y.fonts,Z=new OV(Y.fonts));let X="width"in Y?Y.width:void 0,Q="height"in Y?Y.height:void 0,W=K.Node.create();X&&W.setWidth(X),Q&&W.setHeight(Q),W.setFlexDirection(K.FLEX_DIRECTION_ROW),W.setFlexWrap(K.WRAP_WRAP),W.setAlignContent(K.ALIGN_AUTO),W.setAlignItems(K.ALIGN_FLEX_START),W.setJustifyContent(K.JUSTIFY_FLEX_START),W.setOverflow(K.OVERFLOW_HIDDEN);let z={...Y.graphemeImages},$=new Set;o1.clear(),r8.clear(),await zH(J);let w=n9(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:X,_viewportHeight:Q},parent:W,font:Z,embedFont:Y.embedFont,debug:Y.debug,graphemeImages:z,canLoadAdditionalAssets:!!Y.loadAdditionalAsset,onNodeDetected:Y.onNodeDetected,getTwStyles:(M,B)=>{let O={...ZA({width:X,height:Q,config:Y.tailwindConfig})([M])};return typeof O.lineHeight=="number"&&(O.lineHeight=O.lineHeight/(+O.fontSize||B.fontSize||16)),O.shadowColor&&O.boxShadow&&(O.boxShadow=O.boxShadow.replace(/rgba?\([^)]+\)/,O.shadowColor)),O}}),U=(await w.next()).value;if(Y.loadAdditionalAsset&&U.length){let M=XA(U),B=[],O={};await Promise.all(Object.entries(M).flatMap(([N,j])=>j.map((E)=>{let I=`${N}_${E}`;return $.has(I)?null:($.add(I),Y.loadAdditionalAsset(N,E).then((F)=>{typeof F=="string"?O[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),Z.addFonts(B),Object.assign(z,O)}await w.next(),W.calculateLayout(X,Q,K.DIRECTION_LTR);let H=(await w.next([0,0])).value,V=W.getComputedWidth(),A=W.getComputedHeight();return W.freeRecursive(),LV({width:V,height:A,content:H})}function XA(J){let Y={},K={};for(let{word:Z,locale:X}of J){let Q=AV(Z,X).join("|");K[Q]=K[Q]||"",K[Q]+=Z}return Object.keys(K).forEach((Z)=>{Y[Z]=Y[Z]||[],Z==="emoji"?Y[Z].push(...iJ(M1(K[Z],"grapheme"))):(Y[Z][0]=Y[Z][0]||"",Y[Z][0]+=iJ(M1(K[Z],"grapheme",Z==="unknown"?void 0:Z)).join(""))}),Y}function iJ(J){return Array.from(new Set(J))}import _A from"sharp";function w6(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function $4(J,Y){if(J==="/")return Y;if(Y==="/")return J;return`${J}${Y}`}function z4(J){let Y=w6(J);return Y.length>1?Y.replace(/\/$/,""):Y}function uY(J,Y){return Y.map((K)=>({...K,path:z4($4(J,K.path))}))}function U6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z;if("children"in X){let Q=new X.children,W=U6(Q.routes);for(let[z,{exec:$,middleware:w,segments:U}]of Object.entries(W)){let H=$4(K,z),V=(A)=>X.run.call(X,A,K);Y[w6(H)]={exec:[V,...$],middleware:[...X.middlewares,...w],viewPath:X.viewPath,segments:[{path:z4(K),viewPath:X.viewPath,...X.alwaysRuns?{alwaysRun:!0}:{}},...uY(K,U)]}}}else{let Q=(W)=>X.run.call(X,W,K);Y[w6(K)]={exec:[Q],middleware:X.middlewares,viewPath:X.viewPath,segments:[{path:z4(K),viewPath:X.viewPath}]}}}else{let X=new Z,Q=U6(X.routes);for(let[W,{exec:z,middleware:$,viewPath:w,segments:U}]of Object.entries(Q)){let H=$4(K,W);Y[w6(H)]={exec:z,middleware:[...X.middlewares,...$],viewPath:w,segments:uY(K,U)}}}return Object.fromEntries(Object.entries(Y).sort(([K],[Z])=>{let X=K.split("/").length+K.split(":").length,Q=Z.split("/").length+Z.split(":").length;return X-Q}))}var QA=Object.defineProperty,Y0=(J,Y)=>QA(J,"name",{value:Y,configurable:!0}),D5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,Y,K,Z,X,Q){this.type=J,this.name=Y,this.prefix=K,this.value=Z,this.suffix=X,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};Y0(D5,"Part");var WA=/[$_\p{ID_Start}]/u,$A=/[$_\u200C\u200D\p{ID_Continue}]/u,U4=".*";function lY(J,Y){return(Y?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}Y0(lY,"isASCII");function A4(J,Y=!1){let K=[],Z=0;for(;Z<J.length;){let X=J[Z],Q=Y0(function(W){if(!Y)throw TypeError(W);K.push({type:"INVALID_CHAR",index:Z,value:J[Z++]})},"ErrorOrInvalid");if(X==="*"){K.push({type:"ASTERISK",index:Z,value:J[Z++]});continue}if(X==="+"||X==="?"){K.push({type:"OTHER_MODIFIER",index:Z,value:J[Z++]});continue}if(X==="\\"){K.push({type:"ESCAPED_CHAR",index:Z++,value:J[Z++]});continue}if(X==="{"){K.push({type:"OPEN",index:Z,value:J[Z++]});continue}if(X==="}"){K.push({type:"CLOSE",index:Z,value:J[Z++]});continue}if(X===":"){let W="",z=Z+1;for(;z<J.length;){let $=J.substr(z,1);if(z===Z+1&&WA.test($)||z!==Z+1&&$A.test($)){W+=J[z++];continue}break}if(!W){Q(`Missing parameter name at ${Z}`);continue}K.push({type:"NAME",index:Z,value:W}),Z=z;continue}if(X==="("){let W=1,z="",$=Z+1,w=!1;if(J[$]==="?"){Q(`Pattern cannot start with "?" at ${$}`);continue}for(;$<J.length;){if(!lY(J[$],!1)){Q(`Invalid character '${J[$]}' at ${$}.`),w=!0;break}if(J[$]==="\\"){z+=J[$++]+J[$++];continue}if(J[$]===")"){if(W--,W===0){$++;break}}else if(J[$]==="("&&(W++,J[$+1]!=="?")){Q(`Capturing groups are not allowed at ${$}`),w=!0;break}z+=J[$++]}if(w)continue;if(W){Q(`Unbalanced pattern at ${Z}`);continue}if(!z){Q(`Missing pattern at ${Z}`);continue}K.push({type:"REGEX",index:Z,value:z}),Z=$;continue}K.push({type:"CHAR",index:Z,value:J[Z++]})}return K.push({type:"END",index:Z,value:""}),K}Y0(A4,"lexer");function B4(J,Y={}){let K=A4(J);Y.delimiter??="/#?",Y.prefixes??="./";let Z=`[^${t0(Y.delimiter)}]+?`,X=[],Q=0,W=0,z="",$=new Set,w=Y0((E)=>{if(W<K.length&&K[W].type===E)return K[W++].value},"tryConsume"),U=Y0(()=>w("OTHER_MODIFIER")??w("ASTERISK"),"tryConsumeModifier"),H=Y0((E)=>{let I=w(E);if(I!==void 0)return I;let{type:F,index:q}=K[W];throw TypeError(`Unexpected ${F} at ${q}, expected ${E}`)},"mustConsume"),V=Y0(()=>{let E="",I;for(;I=w("CHAR")??w("ESCAPED_CHAR");)E+=I;return E},"consumeText"),A=Y0((E)=>E,"DefaultEncodePart"),M=Y.encodePart||A,B="",O=Y0((E)=>{B+=E},"appendToPendingFixedValue"),N=Y0(()=>{B.length&&(X.push(new D5(3,"","",M(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),j=Y0((E,I,F,q,T)=>{let D=3;switch(T){case"?":D=1;break;case"*":D=0;break;case"+":D=2;break}if(!I&&!F&&D===3){O(E);return}if(N(),!I&&!F){if(!E)return;X.push(new D5(3,"","",M(E),"",D));return}let R;F?F==="*"?R=U4:R=F:R=Z;let g=2;R===Z?(g=1,R=""):R===U4&&(g=0,R="");let c;if(I?c=I:F&&(c=Q++),$.has(c))throw TypeError(`Duplicate name '${c}'.`);$.add(c),X.push(new D5(g,c,M(E),R,M(q),D))},"addPart");for(;W<K.length;){let E=w("CHAR"),I=w("NAME"),F=w("REGEX");if(!I&&!F&&(F=w("ASTERISK")),I||F){let T=E??"";Y.prefixes.indexOf(T)===-1&&(O(T),T=""),N();let D=U();j(T,I,F,"",D);continue}let q=E??w("ESCAPED_CHAR");if(q){O(q);continue}if(w("OPEN")){let T=V(),D=w("NAME"),R=w("REGEX");!D&&!R&&(R=w("ASTERISK"));let g=V();H("CLOSE");let c=U();j(T,D,R,g,c);continue}N(),H("END")}return X}Y0(B4,"parse");function t0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}Y0(t0,"escapeString");function H4(J){return J&&J.ignoreCase?"ui":"u"}Y0(H4,"flags");function pY(J,Y,K){return G4(B4(J,K),Y,K)}Y0(pY,"stringToRegexp");function z5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}Y0(z5,"modifierToString");function G4(J,Y,K={}){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Z=K.start?"^":"";for(let z of J){if(z.type===3){z.modifier===3?Z+=t0(z.value):Z+=`(?:${t0(z.value)})${z5(z.modifier)}`;continue}Y&&Y.push(z.name);let $=`[^${t0(K.delimiter)}]+?`,w=z.value;if(z.type===1?w=$:z.type===0&&(w=U4),!z.prefix.length&&!z.suffix.length){z.modifier===3||z.modifier===1?Z+=`(${w})${z5(z.modifier)}`:Z+=`((?:${w})${z5(z.modifier)})`;continue}if(z.modifier===3||z.modifier===1){Z+=`(?:${t0(z.prefix)}(${w})${t0(z.suffix)})`,Z+=z5(z.modifier);continue}Z+=`(?:${t0(z.prefix)}`,Z+=`((?:${w})(?:`,Z+=t0(z.suffix),Z+=t0(z.prefix),Z+=`(?:${w}))*)${t0(z.suffix)})`,z.modifier===0&&(Z+="?")}let X=`[${t0(K.endsWith)}]|$`,Q=`[${t0(K.delimiter)}]`;if(K.end)return K.strict||(Z+=`${Q}?`),K.endsWith.length?Z+=`(?=${X})`:Z+="$",new RegExp(Z,H4(K));K.strict||(Z+=`(?:${Q}(?=${X}))?`);let W=!1;if(J.length){let z=J[J.length-1];z.type===3&&z.modifier===3&&(W=K.delimiter.indexOf(z)>-1)}return W||(Z+=`(?=${Q}|${X})`),new RegExp(Z,H4(K))}Y0(G4,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},zA={delimiter:".",prefixes:"",sensitive:!0,strict:!0},wA={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function iY(J,Y){return J.length?J[0]==="/"?!0:!Y||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}Y0(iY,"isAbsolutePathname");function O4(J,Y){return J.startsWith(Y)?J.substring(Y.length,J.length):J}Y0(O4,"maybeStripPrefix");function nY(J,Y){return J.endsWith(Y)?J.substr(0,J.length-Y.length):J}Y0(nY,"maybeStripSuffix");function M4(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}Y0(M4,"treatAsIPv6Hostname");var oY=["ftp","file","http","https","ws","wss"];function L4(J){if(!J)return!0;for(let Y of oY)if(J.test(Y))return!0;return!1}Y0(L4,"isSpecialScheme");function rY(J,Y){if(J=O4(J,"#"),Y||J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash?K.hash.substring(1,K.hash.length):""}Y0(rY,"canonicalizeHash");function sY(J,Y){if(J=O4(J,"?"),Y||J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search?K.search.substring(1,K.search.length):""}Y0(sY,"canonicalizeSearch");function aY(J,Y){return Y||J===""?J:M4(J)?q4(J):j4(J)}Y0(aY,"canonicalizeHostname");function tY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}Y0(tY,"canonicalizePassword");function eY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}Y0(eY,"canonicalizeUsername");function JK(J,Y,K){if(K||J==="")return J;if(Y&&!oY.includes(Y))return new URL(`${Y}:${J}`).pathname;let Z=J[0]=="/";return J=new URL(Z?J:"/-"+J,"https://example.com").pathname,Z||(J=J.substring(2,J.length)),J}Y0(JK,"canonicalizePathname");function YK(J,Y,K){return N4(Y)===J&&(J=""),K||J===""?J:E4(J)}Y0(YK,"canonicalizePort");function KK(J,Y){return J=nY(J,":"),Y||J===""?J:H6(J)}Y0(KK,"canonicalizeProtocol");function N4(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}Y0(N4,"defaultPortForProtocol");function H6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}Y0(H6,"protocolEncodeCallback");function ZK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}Y0(ZK,"usernameEncodeCallback");function XK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}Y0(XK,"passwordEncodeCallback");function j4(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let Y=new URL("https://example.com");return Y.hostname=J,Y.hostname}Y0(j4,"hostnameEncodeCallback");function q4(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}Y0(q4,"ipv6HostnameEncodeCallback");function E4(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}Y0(E4,"portEncodeCallback");function QK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?Y.pathname.substring(2,Y.pathname.length):Y.pathname}Y0(QK,"standardURLPathnameEncodeCallback");function WK(J){return J===""?J:new URL(`data:${J}`).pathname}Y0(WK,"pathURLPathnameEncodeCallback");function $K(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search.substring(1,Y.search.length)}Y0($K,"searchEncodeCallback");function zK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash.substring(1,Y.hash.length)}Y0(zK,"hashEncodeCallback");var wK=class{#Q;#Z=[];#Y={};#J=0;#X=1;#w=0;#$=0;#A=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#Y}parse(){for(this.#Z=A4(this.#Q,!0);this.#J<this.#Z.length;this.#J+=this.#X){if(this.#X=1,this.#Z[this.#J].type==="END"){if(this.#$===0){this.#N(),this.#U()?this.#K(9,1):this.#H()?this.#K(8,1):this.#K(7,0);continue}else if(this.#$===2){this.#V(5);continue}this.#K(10,0);break}if(this.#A>0)if(this.#D())this.#A-=1;else continue;if(this.#I()){this.#A+=1;continue}switch(this.#$){case 0:this.#j()&&this.#V(1);break;case 1:if(this.#j()){this.#T();let J=7,Y=1;this.#E()?(J=2,Y=3):this.#G&&(J=2),this.#K(J,Y)}break;case 2:this.#M()?this.#V(3):(this.#L()||this.#H()||this.#U())&&this.#V(5);break;case 3:this.#F()?this.#K(4,1):this.#M()&&this.#K(5,1);break;case 4:this.#M()&&this.#K(5,1);break;case 5:this.#R()?this.#B+=1:this.#C()&&(this.#B-=1),this.#_()&&!this.#B?this.#K(6,1):this.#L()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 6:this.#L()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 7:this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 8:this.#U()&&this.#K(9,1);break;case 9:break;case 10:break}}this.#Y.hostname!==void 0&&this.#Y.port===void 0&&(this.#Y.port="")}#K(J,Y){switch(this.#$){case 0:break;case 1:this.#Y.protocol=this.#z();break;case 2:break;case 3:this.#Y.username=this.#z();break;case 4:this.#Y.password=this.#z();break;case 5:this.#Y.hostname=this.#z();break;case 6:this.#Y.port=this.#z();break;case 7:this.#Y.pathname=this.#z();break;case 8:this.#Y.search=this.#z();break;case 9:this.#Y.hash=this.#z();break;case 10:break}this.#$!==0&&J!==10&&([1,2,3,4].includes(this.#$)&&[6,7,8,9].includes(J)&&(this.#Y.hostname??=""),[1,2,3,4,5,6].includes(this.#$)&&[8,9].includes(J)&&(this.#Y.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#$)&&J===9&&(this.#Y.search??="")),this.#q(J,Y)}#q(J,Y){this.#$=J,this.#w=this.#J+Y,this.#J+=Y,this.#X=0}#N(){this.#J=this.#w,this.#X=0}#V(J){this.#N(),this.#$=J}#O(J){return J<0&&(J=this.#Z.length-J),J<this.#Z.length?this.#Z[J]:this.#Z[this.#Z.length-1]}#W(J,Y){let K=this.#O(J);return K.value===Y&&(K.type==="CHAR"||K.type==="ESCAPED_CHAR"||K.type==="INVALID_CHAR")}#j(){return this.#W(this.#J,":")}#E(){return this.#W(this.#J+1,"/")&&this.#W(this.#J+2,"/")}#M(){return this.#W(this.#J,"@")}#F(){return this.#W(this.#J,":")}#_(){return this.#W(this.#J,":")}#L(){return this.#W(this.#J,"/")}#H(){if(this.#W(this.#J,"?"))return!0;if(this.#Z[this.#J].value!=="?")return!1;let J=this.#O(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#U(){return this.#W(this.#J,"#")}#I(){return this.#Z[this.#J].type=="OPEN"}#D(){return this.#Z[this.#J].type=="CLOSE"}#R(){return this.#W(this.#J,"[")}#C(){return this.#W(this.#J,"]")}#z(){let J=this.#Z[this.#J],Y=this.#O(this.#w).index;return this.#Q.substring(Y,J.index)}#T(){let J={};Object.assign(J,a1),J.encodePart=H6;let Y=pY(this.#z(),void 0,J);this.#G=L4(Y)}};Y0(wK,"Parser");var w4=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function V4(J,Y){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let K=new URL(J,Y);return{protocol:K.protocol.substring(0,K.protocol.length-1),username:K.username,password:K.password,hostname:K.hostname,port:K.port,pathname:K.pathname,search:K.search!==""?K.search.substring(1,K.search.length):void 0,hash:K.hash!==""?K.hash.substring(1,K.hash.length):void 0}}Y0(V4,"extractValues");function R1(J,Y){return Y?I5(J):J}Y0(R1,"processBaseURLString");function _5(J,Y,K){let Z;if(typeof Y.baseURL=="string")try{Z=new URL(Y.baseURL),Y.protocol===void 0&&(J.protocol=R1(Z.protocol.substring(0,Z.protocol.length-1),K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&(J.username=R1(Z.username,K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&Y.password===void 0&&(J.password=R1(Z.password,K)),Y.protocol===void 0&&Y.hostname===void 0&&(J.hostname=R1(Z.hostname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&(J.port=R1(Z.port,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&(J.pathname=R1(Z.pathname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&(J.search=R1(Z.search.substring(1,Z.search.length),K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&Y.hash===void 0&&(J.hash=R1(Z.hash.substring(1,Z.hash.length),K))}catch{throw TypeError(`invalid baseURL '${Y.baseURL}'.`)}if(typeof Y.protocol=="string"&&(J.protocol=KK(Y.protocol,K)),typeof Y.username=="string"&&(J.username=eY(Y.username,K)),typeof Y.password=="string"&&(J.password=tY(Y.password,K)),typeof Y.hostname=="string"&&(J.hostname=aY(Y.hostname,K)),typeof Y.port=="string"&&(J.port=YK(Y.port,J.protocol,K)),typeof Y.pathname=="string"){if(J.pathname=Y.pathname,Z&&!iY(J.pathname,K)){let X=Z.pathname.lastIndexOf("/");X>=0&&(J.pathname=R1(Z.pathname.substring(0,X+1),K)+J.pathname)}J.pathname=JK(J.pathname,J.protocol,K)}return typeof Y.search=="string"&&(J.search=sY(Y.search,K)),typeof Y.hash=="string"&&(J.hash=rY(Y.hash,K)),J}Y0(_5,"applyInit");function I5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}Y0(I5,"escapePatternString");function UK(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}Y0(UK,"escapeRegexpString");function HK(J,Y){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let K=".*",Z=`[^${UK(Y.delimiter)}]+?`,X=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let W=0;W<J.length;++W){let z=J[W];if(z.type===3){if(z.modifier===3){Q+=I5(z.value);continue}Q+=`{${I5(z.value)}}${z5(z.modifier)}`;continue}let $=z.hasCustomName(),w=!!z.suffix.length||!!z.prefix.length&&(z.prefix.length!==1||!Y.prefixes.includes(z.prefix)),U=W>0?J[W-1]:null,H=W<J.length-1?J[W+1]:null;if(!w&&$&&z.type===1&&z.modifier===3&&H&&!H.prefix.length&&!H.suffix.length)if(H.type===3){let V=H.value.length>0?H.value[0]:"";w=X.test(V)}else w=!H.hasCustomName();if(!w&&!z.prefix.length&&U&&U.type===3){let V=U.value[U.value.length-1];w=Y.prefixes.includes(V)}w&&(Q+="{"),Q+=I5(z.prefix),$&&(Q+=`:${z.name}`),z.type===2?Q+=`(${z.value})`:z.type===1?$||(Q+=`(${Z})`):z.type===0&&(!$&&(!U||U.type===3||U.modifier!==3||w||z.prefix!=="")?Q+="*":Q+=`(${K})`),z.type===1&&$&&z.suffix.length&&X.test(z.suffix[0])&&(Q+="\\"),Q+=I5(z.suffix),w&&(Q+="}"),z.modifier!==3&&(Q+=z5(z.modifier))}return Q}Y0(HK,"partsToPattern");var F4=class{#Q;#Z={};#Y={};#J={};#X={};#w=!1;constructor(J={},Y,K){try{let Z;if(typeof Y=="string"?Z=Y:K=Y,typeof J=="string"){let z=new wK(J);if(z.parse(),J=z.result,Z===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=Z}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(Z)throw TypeError("parameter 1 is not of type 'string'.")}typeof K>"u"&&(K={ignoreCase:!1});let X={ignoreCase:K.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=_5(Q,J,!0),N4(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let W;for(W of w4){if(!(W in this.#Q))continue;let z={},$=this.#Q[W];switch(this.#Y[W]=[],W){case"protocol":Object.assign(z,a1),z.encodePart=H6;break;case"username":Object.assign(z,a1),z.encodePart=ZK;break;case"password":Object.assign(z,a1),z.encodePart=XK;break;case"hostname":Object.assign(z,zA),M4($)?z.encodePart=q4:z.encodePart=j4;break;case"port":Object.assign(z,a1),z.encodePart=E4;break;case"pathname":L4(this.#Z.protocol)?(Object.assign(z,wA,X),z.encodePart=QK):(Object.assign(z,a1,X),z.encodePart=WK);break;case"search":Object.assign(z,a1,X),z.encodePart=$K;break;case"hash":Object.assign(z,a1,X),z.encodePart=zK;break}try{this.#X[W]=B4($,z),this.#Z[W]=G4(this.#X[W],this.#Y[W],z),this.#J[W]=HK(this.#X[W],z),this.#w=this.#w||this.#X[W].some((w)=>w.type===2)}catch{throw TypeError(`invalid ${W} pattern '${this.#Q[W]}'.`)}}}catch(Z){throw TypeError(`Failed to construct 'URLPattern': ${Z.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,V4(J,Y),!1)}catch{return!1}let Z;for(Z of w4)if(!this.#Z[Z].exec(K[Z]))return!1;return!0}exec(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,V4(J,Y),!1)}catch{return null}let Z={};Y?Z.inputs=[J,Y]:Z.inputs=[J];let X;for(X of w4){let Q=this.#Z[X].exec(K[X]);if(!Q)return null;let W={};for(let[z,$]of this.#Y[X].entries())if(typeof $=="string"||typeof $=="number"){let w=Q[z+1];W[$]=w}Z[X]={input:K[X]??"",groups:W}}return Z}static compareComponent(J,Y,K){let Z=Y0((z,$)=>{for(let w of["type","modifier","prefix","value","suffix"]){if(z[w]<$[w])return-1;if(z[w]===$[w])continue;return 1}return 0},"comparePart"),X=new D5(3,"","","","",3),Q=new D5(0,"","","","",3),W=Y0((z,$)=>{let w=0;for(;w<Math.min(z.length,$.length);++w){let U=Z(z[w],$[w]);if(U)return U}return z.length===$.length?0:Z(z[w]??X,$[w]??X)},"comparePartList");return!Y.#J[J]&&!K.#J[J]?0:Y.#J[J]&&!K.#J[J]?W(Y.#X[J],[Q]):!Y.#J[J]&&K.#J[J]?W([Q],K.#X[J]):W(Y.#X[J],K.#X[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#w}};Y0(F4,"URLPattern");function V6(J,Y){for(let[K,Z]of Object.entries(J)){let X=new F4({pathname:K});if(X.test({pathname:Y}))return{routePath:K,params:X.exec({pathname:Y})?.pathname.groups??{},route:Z}}return null}var w5={startIndex:0,carriedViews:[]};function VK(J,Y){let K=i0(J.path,Y);return K.includes("*")?null:K}function UA(J,Y){if(!J)return w5;if(J.search!==Y.search)return w5;let K=Math.min(J.segments.length,Y.segments.length-1),Z=0;while(Z<K){let X=J.segments[Z],Q=Y.segments[Z];if(Q.alwaysRun)break;if(X.viewPath!==Q.viewPath)break;let W=VK(X,J.params),z=VK(Q,Y.params);if(W===null||z===null||W!==z)break;Z++}if(Z===0)return w5;return{startIndex:Z,carriedViews:Y.segments.slice(0,Z).map(({viewPath:X})=>X)}}function HA(J,Y){let[,K,...Z]=J.split("/");if(!Y.includes(K))return J;let X=`/${Z.join("/")}`;return X==="/"?"/":X.replace(/\/$/,"")}function AK(J){let{flatViewRoutes:Y,supportedLocales:K,from:Z,origin:X,to:Q}=J;if(!Z)return w5;let W;try{W=new URL(Z,X)}catch{return w5}if(W.origin!==X)return w5;let z=V6(Y,HA(W.pathname,K));if(!z)return w5;return UA({segments:z.route.segments,params:z.params,search:W.search},Q)}var _4="x-gemi-from";import{createElement as C5,Fragment as IA}from"react";function VA(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function A6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if("children"in Z){Y[K]=[X];let Q=new Z.children,W=A6(Q.routes);for(let[z,$]of Object.entries(W)){let w=K==="/"?z:`${K}${z}`,U=z==="/"&&K!=="/"?K:w;Y[U]=[X,...$]}if(Y[K].length===1)delete Y[K]}else Y[K]=[X]}else{let X=new Z,Q=A6(X.routes);for(let[W,z]of Object.entries(Q)){let $=K==="/"?W:`${K}${W}`,w=W==="/"&&K!=="/"?K:$;Y[w]=z}}return Object.fromEntries(Object.entries(Y).map(([K,Z])=>[VA(K),Z]))}function B6(J){let Y=[];for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if(X==="__")continue;if(X==="REDIRECT")continue;if(X==="FILE")continue;if("children"in Z){let Q=new Z.children,W=B6(Q.routes);Y.push([X,W])}else Y.push([X,[]])}else{let X=new Z,Q=B6(X.routes);Y.push(...Q)}return Y}function I4(J){let Y=[];for(let[K,Z]of J)Y.push(K,...I4(Z).flat());return Array.from(new Set(Y))}class R5 extends k0{static getFacadeAccessor(){return y5}static debug(J,Y){this.getFacadeRoot().log("debug",J,Y)}static info(J,Y){this.getFacadeRoot().log("info",J,Y)}static notice(J,Y){this.getFacadeRoot().log("notice",J,Y)}static warning(J,Y){this.getFacadeRoot().log("warning",J,Y)}static error(J,Y){this.getFacadeRoot().log("error",J,Y)}static critical(J,Y){this.getFacadeRoot().log("critical",J,Y)}static alert(J,Y){this.getFacadeRoot().log("alert",J,Y)}static emergency(J,Y){this.getFacadeRoot().log("emergency",J,Y)}}class D4{id;static token="kernel.id";constructor(J=crypto.randomUUID()){this.id=J}}function BK(J){return JSON.stringify(J).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function AA(J){return`<script>(self.__GEMI_STREAM__=self.__GEMI_STREAM__||[]).push(${BK([J.path,J.variantKey,J.data])})</script>`}function BA(J){return`<script>(self.__GEMI_DICT__=self.__GEMI_DICT__||[]).push(${BK([J.id,J.locale,J.strings])})</script>`}function R4(J,Y,K={},Z){let X=new TextEncoder,Q=[],W=!1,z=!1,$=()=>{if(z)return;z=!0,K.onClose?.()};Y.onSettle((V)=>{if(V.status!=="resolved")return;Q.push(AA(V))}),Z?.onUse((V)=>{Q.push(BA(V))});let w=J.getReader(),U=(V,A)=>{V.enqueue(A),K.onChunk?.(A)},H=(V)=>{while(Q.length>0)U(V,X.encode(Q.shift()))};return new ReadableStream({async pull(V){let A;try{A=await w.read()}catch(O){throw $(),O}let{done:M,value:B}=A;if(M){H(V),V.close(),$();return}if(!W){W=!0,U(V,B),K.onShell?.(),H(V);return}H(V),U(V,B)},cancel(V){return $(),w.cancel(V)}})}var GA=/bot|crawler|spider|crawling|slurp|bingpreview|mediapartners|headless|lighthouse|prerender|facebookexternalhit|whatsapp|telegram|discord|twitterbot|linkedinbot/i;function GK(J){if(!J)return!1;return GA.test(J)}var OA=new Set(["script","style","template","title"]),MA=/\shidden([\s=/]|$)/i,LA=/"[^"]*"|'[^']*'/g;function NA(J){let Y=0,K=0,Z=0,X=0;while(X<J.length){let Q=J.indexOf("<",X),W=Q===-1?J.length:Q;if(W>X){let H=J.slice(X,W).replace(/\s+/g,"").length;if(Z>0)K+=H;else Y+=H}if(Q===-1)break;if(J.startsWith("<!--",Q)){let H=J.indexOf("-->",Q+4);X=H===-1?J.length:H+3;continue}let z=J.indexOf(">",Q);if(z===-1)break;let $=J.slice(Q+1,z);X=z+1;let w=/^\/?([a-zA-Z][a-zA-Z0-9-]*)/.exec($)?.[1]?.toLowerCase();if(!w)continue;let U=$.startsWith("/");if(!U&&OA.has(w)&&!$.endsWith("/")){let H=J.indexOf(`</${w}`,X);X=H===-1?J.length:H;continue}if(w!=="div")continue;if(U){if(Z>0)Z-=1}else if(Z>0)Z+=1;else if(MA.test($.replace(LA,'""')))Z=1}return{shellChars:Y,deferredChars:K}}var jA=1000,qA=64;function EA(J){return J>=1000?`${(J/1000).toFixed(1)} kB`:`${J} chars`}function FA(J,Y){if(Y.deferredChars<jA)return null;if(Y.shellChars>=qA)return null;return`[gemi] GET ${J} streams ${EA(Y.deferredChars)} of its `+`content behind reveal scripts \u2014 a no-JS visitor sees ~${Y.shellChars} chars. If this is a public/content route, add "no-stream" to its middleware.`}function OK(J=console.warn){let Y=new Set;return{shouldObserve(K){return!Y.has(K)},report(K,Z){if(Y.has(K))return;let X=FA(K,Z);if(!X)return;Y.add(K),J(X)}}}function MK(){let J=new TextDecoder,Y="";return{onChunk(K){Y+=J.decode(K,{stream:!0})},measure(){return Y+=J.decode(),NA(Y)}}}function LK(J,Y,K=1e4,Z){let X=new TextEncoder,Q=()=>{};return new ReadableStream({start(W){let z=!1,$=(U)=>{if(z)return;z=!0,clearTimeout(w);try{W.close()}catch{}Z?.({aborted:U})};Q=$,W.enqueue(X.encode(`${JSON.stringify(J)}
|
|
61
|
+
`.replace(/\n|\s/g,""),bQ=new RegExp(xQ),fQ=/^transparent$/,mQ=new RegExp(fQ,"i"),U9=(J,Y,K)=>Math.min(Math.max(Y,J),K),dQ=(J)=>{let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)*255/100:parseFloat(Y);return U9(Math.round(Y),0,255)},B2=(J)=>U9(parseFloat(J),0,100);function M2(J){let Y=J;if(typeof Y!=="number")Y=Y.endsWith("%")?parseFloat(Y)/100:parseFloat(Y);return U9(Y,0,1)}function uQ(J){let[Y,K,Z,X]=O2.default(J,{format:"array"});return I8([null,Y,K,Z,X])}function cQ([,J,Y,K,Z=1]){let X=J;if(X.endsWith("turn"))X=parseFloat(X)*360/1;else if(X.endsWith("rad"))X=Math.round(parseFloat(X)*180/Math.PI);else X=parseFloat(X);return{type:"hsl",values:[X,B2(Y),B2(K)],alpha:M2(Z===null?1:Z)}}function I8([,J,Y,K,Z=1]){return{type:"rgb",values:[J,Y,K].map(dQ),alpha:M2(Z===null?1:Z)}}var lQ=(J)=>{if(typeof J!=="string")return null;let Y=DQ.exec(J);if(Y)return uQ(Y[0]);let K=PQ.exec(J)||CQ.exec(J);if(K)return cQ(K);let Z=hQ.exec(J)||bQ.exec(J)||vQ.exec(J)||gQ.exec(J);if(Z)return I8(Z);if(mQ.exec(J))return I8([null,0,0,0,0]);let X=G2.default[J.toLowerCase()];if(X)return I8([null,X[0],X[1],X[2],1]);return null},D8=lQ;var PY=w1(s6(),1),SY=w1(F8(),1),l9=w1(j2(),1);function V9(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}function H9(J){let Y=[];for(let K=0,Z=J.length;K<Z;){let[X,Q]=V9(J[K],/\s+/);nQ(J[K+1])?(Y.push({color:X,offset:Y5(Q),hint:Y5(J[K+1])}),K+=2):(Y.push({color:X,offset:Y5(Q)}),K++)}return Y}var E2=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function nQ(J){return E2.test(J)}function Y5(J){if(!J)return;let[,Y,K]=J.trim().match(E2)||[];return{value:Y,unit:K}}function F2(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?linear-gradient\((.+)\)/),Z={orientation:{type:"directional",value:"bottom"},repeating:!!Y,stops:[]},X=V9(K),Q=oQ(X[0]);return Q&&(Z.orientation=Q,X.shift()),{...Z,stops:H9(X)}}function oQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((Y)=>J.endsWith(Y))?{type:"angular",value:Y5(J)}:null}var rQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),sQ=new Set(["center","left","top","right","bottom"]);function N2(J){return rQ.has(J)}function q2(J){return sQ.has(J)}function aQ(J){let Y=Array(2).fill("");for(let K=0;K<2;K++)J[K]?Y[K]=J[K]:Y[K]="center";return Y}function _2(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,Y,K]=J.match(/(repeating-)?radial-gradient\((.+)\)/),Z={shape:"ellipse",repeating:!!Y,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},X=V9(K);if(tQ(X[0]))return{...Z,stops:H9(X)};let Q=X[0].split("at").map((w)=>w.trim()),W=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],z=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],$=aQ((Q[1]||"").split(" "));return W?Z.shape=W:z.length===1&&!N2(z[0])?Z.shape="circle":Z.shape="ellipse",z.length===0&&z.push("farthest-corner"),Z.size=z.map((w)=>N2(w)?{type:"keyword",value:w}:{type:"length",value:Y5(w)}),Z.position.x=q2($[0])?{type:"keyword",value:$[0]}:{type:"length",value:Y5($[0])},Z.position.y=q2($[1])?{type:"keyword",value:$[1]}:{type:"length",value:Y5($[1])},(W||z.length>0||Q[1])&&X.shift(),{...Z,stops:H9(X)}}function tQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var p9=w1(F8(),1);var K1=Uint8Array,Z5=Uint16Array,t2=Uint32Array,e2=new K1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),JJ=new K1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),eQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),YJ=function(J,Y){var K=new Z5(31);for(var Z=0;Z<31;++Z)K[Z]=Y+=1<<J[Z-1];var X=new t2(K[30]);for(var Z=1;Z<30;++Z)for(var Q=K[Z];Q<K[Z+1];++Q)X[Q]=Q-K[Z]<<5|Z;return[K,X]},KJ=YJ(e2,2),ZJ=KJ[0],JW=KJ[1];ZJ[28]=258,JW[258]=28;var YW=YJ(JJ,0),KW=YW[0],E9=new Z5(32768);for(W0=0;W0<32768;++W0)F1=(W0&43690)>>>1|(W0&21845)<<1,F1=(F1&52428)>>>2|(F1&13107)<<2,F1=(F1&61680)>>>4|(F1&3855)<<4,E9[W0]=((F1&65280)>>>8|(F1&255)<<8)>>>1;var F1,W0,d5=function(J,Y,K){var Z=J.length,X=0,Q=new Z5(Y);for(;X<Z;++X)if(J[X])++Q[J[X]-1];var W=new Z5(Y);for(X=0;X<Y;++X)W[X]=W[X-1]+Q[X-1]<<1;var z;if(K){z=new Z5(1<<Y);var $=15-Y;for(X=0;X<Z;++X)if(J[X]){var w=X<<4|J[X],U=Y-J[X],H=W[J[X]-1]++<<U;for(var V=H|(1<<U)-1;H<=V;++H)z[E9[H]>>>$]=w}}else{z=new Z5(Z);for(X=0;X<Z;++X)if(J[X])z[X]=E9[W[J[X]-1]++]>>>15-J[X]}return z},l5=new K1(288);for(W0=0;W0<144;++W0)l5[W0]=8;var W0;for(W0=144;W0<256;++W0)l5[W0]=9;var W0;for(W0=256;W0<280;++W0)l5[W0]=7;var W0;for(W0=280;W0<288;++W0)l5[W0]=8;var W0,XJ=new K1(32);for(W0=0;W0<32;++W0)XJ[W0]=5;var W0,ZW=d5(l5,9,1),XW=d5(XJ,5,1),A9=function(J){var Y=J[0];for(var K=1;K<J.length;++K)if(J[K]>Y)Y=J[K];return Y},U1=function(J,Y,K){var Z=Y/8|0;return(J[Z]|J[Z+1]<<8)>>(Y&7)&K},B9=function(J,Y){var K=Y/8|0;return(J[K]|J[K+1]<<8|J[K+2]<<16)>>(Y&7)},QW=function(J){return(J+7)/8|0},WW=function(J,Y,K){if(Y==null||Y<0)Y=0;if(K==null||K>J.length)K=J.length;var Z=new(J.BYTES_PER_ELEMENT==2?Z5:J.BYTES_PER_ELEMENT==4?t2:K1)(K-Y);return Z.set(J.subarray(Y,K)),Z},$W=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],c1=function(J,Y,K){var Z=Error(Y||$W[J]);if(Z.code=J,Error.captureStackTrace)Error.captureStackTrace(Z,c1);if(!K)throw Z;return Z},zW=function(J,Y,K){var Z=J.length;if(!Z||K&&K.f&&!K.l)return Y||new K1(0);var X=!Y||K,Q=!K||K.i;if(!K)K={};if(!Y)Y=new K1(Z*3);var W=function(h){var s=Y.length;if(h>s){var Z0=new K1(Math.max(s*2,h));Z0.set(Y),Y=Z0}},z=K.f||0,$=K.p||0,w=K.b||0,U=K.l,H=K.d,V=K.m,A=K.n,O=Z*8;do{if(!U){z=U1(J,$,1);var B=U1(J,$+1,3);if($+=3,!B){var M=QW($)+4,j=J[M-4]|J[M-3]<<8,N=M+j;if(N>Z){if(Q)c1(0);break}if(X)W(w+j);Y.set(J.subarray(M,N),w),K.b=w+=j,K.p=$=N*8,K.f=z;continue}else if(B==1)U=ZW,H=XW,V=9,A=5;else if(B==2){var E=U1(J,$,31)+257,I=U1(J,$+10,15)+4,F=E+U1(J,$+5,31)+1;$+=14;var q=new K1(F),T=new K1(19);for(var D=0;D<I;++D)T[eQ[D]]=U1(J,$+D*3,7);$+=I*3;var R=A9(T),y=(1<<R)-1,u=d5(T,R,1);for(var D=0;D<F;){var i=u[U1(J,$,y)];$+=i&15;var M=i>>>4;if(M<16)q[D++]=M;else{var p=0,S=0;if(M==16)S=3+U1(J,$,3),$+=2,p=q[D-1];else if(M==17)S=3+U1(J,$,7),$+=3;else if(M==18)S=11+U1(J,$,127),$+=7;while(S--)q[D++]=p}}var v=q.subarray(0,E),C=q.subarray(E);V=A9(v),A=A9(C),U=d5(v,V,1),H=d5(C,A,1)}else c1(1);if($>O){if(Q)c1(0);break}}if(X)W(w+131072);var m=(1<<V)-1,c=(1<<A)-1,a=$;for(;;a=$){var p=U[B9(J,$)&m],n=p>>>4;if($+=p&15,$>O){if(Q)c1(0);break}if(!p)c1(2);if(n<256)Y[w++]=n;else if(n==256){a=$,U=null;break}else{var f=n-254;if(n>264){var D=n-257,d=e2[D];f=U1(J,$,(1<<d)-1)+ZJ[D],$+=d}var P=H[B9(J,$)&c],k=P>>>4;if(!P)c1(3);$+=P&15;var C=KW[k];if(k>3){var d=JJ[k];C+=B9(J,$)&(1<<d)-1,$+=d}if($>O){if(Q)c1(0);break}if(X)W(w+131072);var l=w+f;for(;w<l;w+=4)Y[w]=Y[w-C],Y[w+1]=Y[w+1-C],Y[w+2]=Y[w+2-C],Y[w+3]=Y[w+3-C];w=l}}if(K.l=U,K.p=a,K.b=w,K.f=z,U)z=1,K.m=V,K.d=H,K.n=A}while(!z);return w==Y.length?Y:WW(Y,0,w)},wW=new K1(0);function UW(J,Y){return zW(J,Y)}var HW=typeof TextDecoder<"u"&&new TextDecoder,VW=0;try{HW.decode(wW,{stream:!0}),VW=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,Y){this.commands.push({type:"M",x:J,y:Y})};f0.prototype.lineTo=function(J,Y){this.commands.push({type:"L",x:J,y:Y})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,Y,K,Z,X,Q){this.commands.push({type:"C",x1:J,y1:Y,x2:K,y2:Z,x:X,y:Q})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,Y,K,Z){this.commands.push({type:"Q",x1:J,y1:Y,x:K,y:Z})};f0.prototype.close=f0.prototype.closePath=function(){this.commands.push({type:"Z"})};f0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};f0.prototype.toPathData=function(J){J=J!==void 0?J:2;function Y(W){if(Math.round(W)===W)return""+Math.round(W);else return W.toFixed(J)}function K(){var W=arguments,z="";for(var $=0;$<arguments.length;$+=1){var w=W[$];if(w>=0&&$>0)z+=" ";z+=Y(w)}return z}var Z="";for(var X=0;X<this.commands.length;X+=1){var Q=this.commands[X];if(Q.type==="M")Z+="M"+K(Q.x,Q.y);else if(Q.type==="L")Z+="L"+K(Q.x,Q.y);else if(Q.type==="C")Z+="C"+K(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")Z+="Q"+K(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")Z+="Z"}return Z};var AW=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],BW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],GW=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function QJ(J){this.font=J}QJ.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.font.glyphs;if(K)for(var Z=0;Z<K.length;Z+=1){var X=K.get(Z);for(var Q=0;Q<X.unicodes.length;Q+=1)if(X.unicodes[Q]===Y)return Z}return null};function WJ(J){this.cmap=J}WJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function P8(J,Y){this.encoding=J,this.charset=Y}P8.prototype.charToGlyphIndex=function(J){var Y=J.codePointAt(0),K=this.encoding[Y];return this.charset.indexOf(K)};function OW(J){var Y,K=J.tables.cmap.glyphIndexMap,Z=Object.keys(K);for(var X=0;X<Z.length;X+=1){var Q=Z[X],W=K[Q];Y=J.glyphs.get(W),Y.addUnicode(parseInt(Q))}}function MW(J){J._IndexToUnicodeMap={};var Y=J.tables.cmap.glyphIndexMap,K=Object.keys(Y);for(var Z=0;Z<K.length;Z+=1){var X=K[Z],Q=Y[X];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(X)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(X))}}function LW(J,Y){if(Y.lowMemory)MW(J);else OW(J)}function $J(J){throw Error(J)}function I2(J,Y){if(!J)$J(Y)}var H0={fail:$J,argument:I2,assert:I2};function jW(J,Y){var K=Y||new f0;return{configurable:!0,get:function(){if(typeof K==="function")K=K();return K},set:function(Z){K=Z}}}function v1(J){this.bindConstructorValues(J)}v1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",jW(this,J.path))};v1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};v1.prototype.getPath=function(J,Y,K,Z,X){J=J!==void 0?J:0,Y=Y!==void 0?Y:0,K=K!==void 0?K:72;var Q,W;if(!Z)Z={};var{xScale:z,yScale:$}=Z;if(Z.hinting&&X&&X.hinting)W=this.path&&X.hinting.exec(this,K);if(W)Q=X.hinting.getCommands(W),J=Math.round(J),Y=Math.round(Y),z=$=1;else{Q=this.path.commands;var w=1/(this.path.unitsPerEm||1000)*K;if(z===void 0)z=w;if($===void 0)$=w}var U=new f0;for(var H=0;H<Q.length;H+=1){var V=Q[H];if(V.type==="M")U.moveTo(J+V.x*z,Y+-V.y*$);else if(V.type==="L")U.lineTo(J+V.x*z,Y+-V.y*$);else if(V.type==="Q")U.quadraticCurveTo(J+V.x1*z,Y+-V.y1*$,J+V.x*z,Y+-V.y*$);else if(V.type==="C")U.curveTo(J+V.x1*z,Y+-V.y1*$,J+V.x2*z,Y+-V.y2*$,J+V.x*z,Y+-V.y*$);else if(V.type==="Z")U.closePath()}return U};v1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],Y=[];for(var K=0;K<this.points.length;K+=1){var Z=this.points[K];if(Y.push(Z),Z.lastPointOfContour)J.push(Y),Y=[]}return H0.argument(Y.length===0,"There are still points left in the current contour."),J};v1.prototype.getMetrics=function(){var J=this.path.commands,Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(X.type!=="Z")Y.push(X.x),K.push(X.y);if(X.type==="Q"||X.type==="C")Y.push(X.x1),K.push(X.y1);if(X.type==="C")Y.push(X.x2),K.push(X.y2)}var Q={xMin:Math.min.apply(null,Y),yMin:Math.min.apply(null,K),xMax:Math.max.apply(null,Y),yMax:Math.max.apply(null,K),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function R8(J,Y,K){Object.defineProperty(J,Y,{get:function(){return J.path,J[K]},set:function(Z){J[K]=Z},enumerable:!0,configurable:!0})}function I9(J,Y){if(this.font=J,this.glyphs={},Array.isArray(Y))for(var K=0;K<Y.length;K++){var Z=Y[K];Z.path.unitsPerEm=J.unitsPerEm,this.glyphs[K]=Z}this.length=Y&&Y.length||0}I9.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var Y=this.glyphs[J],K=this.font._IndexToUnicodeMap[J];if(K)for(var Z=0;Z<K.unicodes.length;Z++)Y.addUnicode(K.unicodes[Z]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};I9.prototype.push=function(J,Y){this.glyphs[J]=Y,this.length++};function NW(J,Y){return new v1({index:Y,font:J})}function qW(J,Y,K,Z,X,Q){return function(){var W=new v1({index:Y,font:J});return W.path=function(){K(W,Z,X);var z=Q(J.glyphs,W);return z.unitsPerEm=J.unitsPerEm,z},R8(W,"xMin","_xMin"),R8(W,"xMax","_xMax"),R8(W,"yMin","_yMin"),R8(W,"yMax","_yMax"),W}}function EW(J,Y,K,Z){return function(){var X=new v1({index:Y,font:J});return X.path=function(){var Q=K(J,X,Z);return Q.unitsPerEm=J.unitsPerEm,Q},X}}var I1={GlyphSet:I9,glyphLoader:NW,ttfGlyphLoader:qW,cffGlyphLoader:EW};function G9(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X].tag;if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function D2(J,Y){var K=0,Z=J.length-1;while(K<=Z){var X=K+Z>>>1,Q=J[X];if(Q===Y)return X;else if(Q<Y)K=X+1;else Z=X-1}return-K-1}function R2(J,Y){var K,Z=0,X=J.length-1;while(Z<=X){var Q=Z+X>>>1;K=J[Q];var W=K.start;if(W===Y)return K;else if(W<Y)Z=Q+1;else X=Q-1}if(Z>0){if(K=J[Z-1],Y>K.end)return 0;return K}}function p5(J,Y){this.font=J,this.tableName=Y}p5.prototype={searchTag:G9,binSearch:D2,getTable:function(J){var Y=this.font.tables[this.tableName];if(!Y&&J)Y=this.font.tables[this.tableName]=this.createDefaultTable();return Y},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var Y=!1;for(var K=0;K<J.scripts.length;K++){var Z=J.scripts[K].tag;if(Z==="DFLT")return Z;if(Z==="latn")Y=!0}if(Y)return"latn"},getScriptTable:function(J,Y){var K=this.getTable(Y);if(K){J=J||"DFLT";var Z=K.scripts,X=G9(K.scripts,J);if(X>=0)return Z[X].script;else if(Y){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return Z.splice(-1-X,0,Q),Q.script}}},getLangSysTable:function(J,Y,K){var Z=this.getScriptTable(J,K);if(Z){if(!Y||Y==="dflt"||Y==="DFLT")return Z.defaultLangSys;var X=G9(Z.langSysRecords,Y);if(X>=0)return Z.langSysRecords[X].langSys;else if(K){var Q={tag:Y,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return Z.langSysRecords.splice(-1-X,0,Q),Q.langSys}}},getFeatureTable:function(J,Y,K,Z){var X=this.getLangSysTable(J,Y,Z);if(X){var Q,W=X.featureIndexes,z=this.font.tables[this.tableName].features;for(var $=0;$<W.length;$++)if(Q=z[W[$]],Q.tag===K)return Q.feature;if(Z){var w=z.length;return H0.assert(w===0||K>=z[w-1].tag,"Features must be added in alphabetical order."),Q={tag:K,feature:{params:0,lookupListIndexes:[]}},z.push(Q),W.push(w),Q.feature}}},getLookupTables:function(J,Y,K,Z,X){var Q=this.getFeatureTable(J,Y,K,X),W=[];if(Q){var z,$=Q.lookupListIndexes,w=this.font.tables[this.tableName].lookups;for(var U=0;U<$.length;U++)if(z=w[$[U]],z.lookupType===Z)W.push(z);if(W.length===0&&X){z={lookupType:Z,lookupFlag:0,subtables:[],markFilteringSet:void 0};var H=w.length;return w.push(z),$.push(H),[z]}}return W},getGlyphClass:function(J,Y){switch(J.format){case 1:if(J.startGlyph<=Y&&Y<J.startGlyph+J.classes.length)return J.classes[Y-J.startGlyph];return 0;case 2:var K=R2(J.ranges,Y);return K?K.classId:0}},getCoverageIndex:function(J,Y){switch(J.format){case 1:var K=D2(J.glyphs,Y);return K>=0?K:-1;case 2:var Z=R2(J.ranges,Y);return Z?Z.index+Y-Z.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var Y=[],K=J.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z],Q=X.start,W=X.end;for(var z=Q;z<=W;z++)Y.push(z)}return Y}}};function i5(J){p5.call(this,J,"gpos")}i5.prototype=p5.prototype;i5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};i5.prototype.getKerningValue=function(J,Y,K){for(var Z=0;Z<J.length;Z++){var X=J[Z].subtables;for(var Q=0;Q<X.length;Q++){var W=X[Q],z=this.getCoverageIndex(W.coverage,Y);if(z<0)continue;switch(W.posFormat){case 1:var $=W.pairSets[z];for(var w=0;w<$.length;w++){var U=$[w];if(U.secondGlyph===K)return U.value1&&U.value1.xAdvance||0}break;case 2:var H=this.getGlyphClass(W.classDef1,Y),V=this.getGlyphClass(W.classDef2,K),A=W.classRecords[H][V];return A.value1&&A.value1.xAdvance||0}}}return 0};i5.prototype.getKerningTables=function(J,Y){if(this.font.tables.gpos)return this.getLookupTables(J,Y,"kern",2)};function s0(J){p5.call(this,J,"gsub")}function FW(J,Y){var K=J.length;if(K!==Y.length)return!1;for(var Z=0;Z<K;Z++)if(J[Z]!==Y[Z])return!1;return!0}function D9(J,Y,K){var Z=J.subtables;for(var X=0;X<Z.length;X++){var Q=Z[X];if(Q.substFormat===Y)return Q}if(K)return Z.push(K),K;return}s0.prototype=p5.prototype;s0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};s0.prototype.getSingle=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,1);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=void 0;if($.substFormat===1){var H=$.deltaGlyphId;for(U=0;U<w.length;U++){var V=w[U];Z.push({sub:V,by:V+H})}}else{var A=$.substitute;for(U=0;U<w.length;U++)Z.push({sub:w[U],by:A[U]})}}}return Z};s0.prototype.getMultiple=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,2);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=void 0;for(U=0;U<w.length;U++){var H=w[U],V=$.sequences[U];Z.push({sub:H,by:V})}}}return Z};s0.prototype.getAlternates=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,3);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=$.alternateSets;for(var H=0;H<w.length;H++)Z.push({sub:w[H],by:U[H]})}}return Z};s0.prototype.getLigatures=function(J,Y,K){var Z=[],X=this.getLookupTables(Y,K,J,4);for(var Q=0;Q<X.length;Q++){var W=X[Q].subtables;for(var z=0;z<W.length;z++){var $=W[z],w=this.expandCoverage($.coverage),U=$.ligatureSets;for(var H=0;H<w.length;H++){var V=w[H],A=U[H];for(var O=0;O<A.length;O++){var B=A[O];Z.push({sub:[V].concat(B.components),by:B.ligGlyph})}}}}return Z};s0.prototype.addSingle=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,1,!0)[0],Q=D9(X,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});H0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.substitute.splice(z,0,0);Q.substitute[z]=Y.by};s0.prototype.addMultiple=function(J,Y,K,Z){H0.assert(Y.by instanceof Array&&Y.by.length>1,'Multiple: "by" must be an array of two or more ids');var X=this.getLookupTables(K,Z,J,2,!0)[0],Q=D9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});H0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.sequences.splice(z,0,0);Q.sequences[z]=Y.by};s0.prototype.addAlternate=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,3,!0)[0],Q=D9(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});H0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub,z=this.binSearch(Q.coverage.glyphs,W);if(z<0)z=-1-z,Q.coverage.glyphs.splice(z,0,W),Q.alternateSets.splice(z,0,0);Q.alternateSets[z]=Y.by};s0.prototype.addLigature=function(J,Y,K,Z){var X=this.getLookupTables(K,Z,J,4,!0)[0],Q=X.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},X.subtables[0]=Q;H0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var W=Y.sub[0],z=Y.sub.slice(1),$={ligGlyph:Y.by,components:z},w=this.binSearch(Q.coverage.glyphs,W);if(w>=0){var U=Q.ligatureSets[w];for(var H=0;H<U.length;H++)if(FW(U[H].components,z))return;U.push($)}else w=-1-w,Q.coverage.glyphs.splice(w,0,W),Q.ligatureSets.splice(w,0,[$])};s0.prototype.getFeature=function(J,Y,K){if(/ss\d\d/.test(J))return this.getSingle(J,Y,K);switch(J){case"aalt":case"salt":return this.getSingle(J,Y,K).concat(this.getAlternates(J,Y,K));case"dlig":case"liga":case"rlig":return this.getLigatures(J,Y,K);case"ccmp":return this.getMultiple(J,Y,K).concat(this.getLigatures(J,Y,K));case"stch":return this.getMultiple(J,Y,K)}return};s0.prototype.add=function(J,Y,K,Z){if(/ss\d\d/.test(J))return this.addSingle(J,Y,K,Z);switch(J){case"aalt":case"salt":if(typeof Y.by==="number")return this.addSingle(J,Y,K,Z);return this.addAlternate(J,Y,K,Z);case"dlig":case"liga":case"rlig":return this.addLigature(J,Y,K,Z);case"ccmp":if(Y.by instanceof Array)return this.addMultiple(J,Y,K,Z);return this.addLigature(J,Y,K,Z)}return};function m5(J,Y){if(!J)throw Y}function C2(J,Y){return J.getUint8(Y)}function S8(J,Y){return J.getUint16(Y,!1)}function _W(J,Y){return J.getInt16(Y,!1)}function R9(J,Y){return J.getUint32(Y,!1)}function zJ(J,Y){var K=J.getInt16(Y,!1),Z=J.getUint16(Y+2,!1);return K+Z/65535}function IW(J,Y){var K="";for(var Z=Y;Z<Y+4;Z+=1)K+=String.fromCharCode(J.getInt8(Z));return K}function DW(J,Y,K){var Z=0;for(var X=0;X<K;X+=1)Z<<=8,Z+=J.getUint8(Y+X);return Z}function RW(J,Y,K){var Z=[];for(var X=Y;X<K;X+=1)Z.push(J.getUint8(X));return Z}function CW(J){var Y="";for(var K=0;K<J.length;K+=1)Y+=String.fromCharCode(J[K]);return Y}var TW={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function g(J,Y){this.data=J,this.offset=Y,this.relativeOffset=0}g.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};g.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};g.prototype.parseCard8=g.prototype.parseByte;g.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};g.prototype.parseCard16=g.prototype.parseUShort;g.prototype.parseSID=g.prototype.parseUShort;g.prototype.parseOffset16=g.prototype.parseUShort;g.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};g.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};g.prototype.parseULong=function(){var J=R9(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};g.prototype.parseOffset32=g.prototype.parseULong;g.prototype.parseFixed=function(){var J=zJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};g.prototype.parseString=function(J){var Y=this.data,K=this.offset+this.relativeOffset,Z="";this.relativeOffset+=J;for(var X=0;X<J;X++)Z+=String.fromCharCode(Y.getUint8(K+X));return Z};g.prototype.parseTag=function(){return this.parseString(4)};g.prototype.parseLongDateTime=function(){var J=R9(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};g.prototype.parseVersion=function(J){var Y=S8(this.data,this.offset+this.relativeOffset),K=S8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return Y+K/J/10};g.prototype.skip=function(J,Y){if(Y===void 0)Y=1;this.relativeOffset+=TW[J]*Y};g.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint32(Z),Z+=4;return this.relativeOffset+=J*4,Y};g.prototype.parseOffset16List=g.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint16(Z),Z+=2;return this.relativeOffset+=J*2,Y};g.prototype.parseShortList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getInt16(Z),Z+=2;return this.relativeOffset+=J*2,Y};g.prototype.parseByteList=function(J){var Y=Array(J),K=this.data,Z=this.offset+this.relativeOffset;for(var X=0;X<J;X++)Y[X]=K.getUint8(Z++);return this.relativeOffset+=J,Y};g.prototype.parseList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};g.prototype.parseList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J);for(var Z=0;Z<J;Z++)K[Z]=Y.call(this);return K};g.prototype.parseRecordList=function(J,Y){if(!Y)Y=J,J=this.parseUShort();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var z=Z[W],$=Y[z];Q[z]=$.call(this)}K[X]=Q}return K};g.prototype.parseRecordList32=function(J,Y){if(!Y)Y=J,J=this.parseULong();var K=Array(J),Z=Object.keys(Y);for(var X=0;X<J;X++){var Q={};for(var W=0;W<Z.length;W++){var z=Z[W],$=Y[z];Q[z]=$.call(this)}K[X]=Q}return K};g.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var Y=Object.keys(J),K={};for(var Z=0;Z<Y.length;Z++){var X=Y[Z],Q=J[X];K[X]=Q.call(this)}return K}};g.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var Y={};if(J&1)Y.xPlacement=this.parseShort();if(J&2)Y.yPlacement=this.parseShort();if(J&4)Y.xAdvance=this.parseShort();if(J&8)Y.yAdvance=this.parseShort();if(J&16)Y.xPlaDevice=void 0,this.parseShort();if(J&32)Y.yPlaDevice=void 0,this.parseShort();if(J&64)Y.xAdvDevice=void 0,this.parseShort();if(J&128)Y.yAdvDevice=void 0,this.parseShort();return Y};g.prototype.parseValueRecordList=function(){var J=this.parseUShort(),Y=this.parseUShort(),K=Array(Y);for(var Z=0;Z<Y;Z++)K[Z]=this.parseValueRecord(J);return K};g.prototype.parsePointer=function(J){var Y=this.parseOffset16();if(Y>0)return new g(this.data,this.offset+Y).parseStruct(J);return};g.prototype.parsePointer32=function(J){var Y=this.parseOffset32();if(Y>0)return new g(this.data,this.offset+Y).parseStruct(J);return};g.prototype.parseListOfLists=function(J){var Y=this.parseOffset16List(),K=Y.length,Z=this.relativeOffset,X=Array(K);for(var Q=0;Q<K;Q++){var W=Y[Q];if(W===0){X[Q]=void 0;continue}if(this.relativeOffset=W,J){var z=this.parseOffset16List(),$=Array(z.length);for(var w=0;w<z.length;w++)this.relativeOffset=W+z[w],$[w]=J.call(this);X[Q]=$}else X[Q]=this.parseUShortList()}return this.relativeOffset=Z,X};g.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort(),K=this.parseUShort();if(Y===1)return{format:1,glyphs:this.parseUShortList(K)};else if(Y===2){var Z=Array(K);for(var X=0;X<K;X++)Z[X]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:Z}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};g.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(Y===2)return{format:2,ranges:this.parseRecordList({start:g.uShort,end:g.uShort,classId:g.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};g.list=function(J,Y){return function(){return this.parseList(J,Y)}};g.list32=function(J,Y){return function(){return this.parseList32(J,Y)}};g.recordList=function(J,Y){return function(){return this.parseRecordList(J,Y)}};g.recordList32=function(J,Y){return function(){return this.parseRecordList32(J,Y)}};g.pointer=function(J){return function(){return this.parsePointer(J)}};g.pointer32=function(J){return function(){return this.parsePointer32(J)}};g.tag=g.prototype.parseTag;g.byte=g.prototype.parseByte;g.uShort=g.offset16=g.prototype.parseUShort;g.uShortList=g.prototype.parseUShortList;g.uLong=g.offset32=g.prototype.parseULong;g.uLongList=g.prototype.parseULongList;g.struct=g.prototype.parseStruct;g.coverage=g.prototype.parseCoverage;g.classDef=g.prototype.parseClassDef;var T2={reserved:g.uShort,reqFeatureIndex:g.uShort,featureIndexes:g.uShortList};g.prototype.parseScriptList=function(){return this.parsePointer(g.recordList({tag:g.tag,script:g.pointer({defaultLangSys:g.pointer(T2),langSysRecords:g.recordList({tag:g.tag,langSys:g.pointer(T2)})})}))||[]};g.prototype.parseFeatureList=function(){return this.parsePointer(g.recordList({tag:g.tag,feature:g.pointer({featureParams:g.offset16,lookupListIndexes:g.uShortList})}))||[]};g.prototype.parseLookupList=function(J){return this.parsePointer(g.list(g.pointer(function(){var Y=this.parseUShort();H0.argument(1<=Y&&Y<=9,"GPOS/GSUB lookup type "+Y+" unknown.");var K=this.parseUShort(),Z=K&16;return{lookupType:Y,lookupFlag:K,subtables:this.parseList(g.pointer(J[Y])),markFilteringSet:Z?this.parseUShort():void 0}})))||[]};g.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),Y=this.parseUShort();H0.argument(J===1&&Y<1,"GPOS/GSUB feature variations table unknown.");var K=this.parseRecordList32({conditionSetOffset:g.offset32,featureTableSubstitutionOffset:g.offset32});return K})||[]};var r={getByte:C2,getCard8:C2,getUShort:S8,getCard16:S8,getShort:_W,getULong:R9,getFixed:zJ,getTag:IW,getOffset:DW,getBytes:RW,bytesToString:CW,Parser:g};function P2(J,Y,K,Z,X){var Q;if((Y&Z)>0){if(Q=J.parseByte(),(Y&X)===0)Q=-Q;Q=K+Q}else if((Y&X)>0)Q=K;else Q=K+J.parseShort();return Q}function wJ(J,Y,K){var Z=new r.Parser(Y,K);J.numberOfContours=Z.parseShort(),J._xMin=Z.parseShort(),J._yMin=Z.parseShort(),J._xMax=Z.parseShort(),J._yMax=Z.parseShort();var X,Q;if(J.numberOfContours>0){var W=J.endPointIndices=[];for(var z=0;z<J.numberOfContours;z+=1)W.push(Z.parseUShort());J.instructionLength=Z.parseUShort(),J.instructions=[];for(var $=0;$<J.instructionLength;$+=1)J.instructions.push(Z.parseByte());var w=W[W.length-1]+1;X=[];for(var U=0;U<w;U+=1)if(Q=Z.parseByte(),X.push(Q),(Q&8)>0){var H=Z.parseByte();for(var V=0;V<H;V+=1)X.push(Q),U+=1}if(H0.argument(X.length===w,"Bad flags."),W.length>0){var A=[],O;if(w>0){for(var B=0;B<w;B+=1)Q=X[B],O={},O.onCurve=!!(Q&1),O.lastPointOfContour=W.indexOf(B)>=0,A.push(O);var M=0;for(var j=0;j<w;j+=1)Q=X[j],O=A[j],O.x=P2(Z,Q,M,2,16),M=O.x;var N=0;for(var E=0;E<w;E+=1)Q=X[E],O=A[E],O.y=P2(Z,Q,N,4,32),N=O.y}J.points=A}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var I=!0;while(I){X=Z.parseUShort();var F={glyphIndex:Z.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((X&1)>0)if((X&2)>0)F.dx=Z.parseShort(),F.dy=Z.parseShort();else F.matchedPoints=[Z.parseUShort(),Z.parseUShort()];else if((X&2)>0)F.dx=Z.parseChar(),F.dy=Z.parseChar();else F.matchedPoints=[Z.parseByte(),Z.parseByte()];if((X&8)>0)F.xScale=F.yScale=Z.parseF2Dot14();else if((X&64)>0)F.xScale=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();else if((X&128)>0)F.xScale=Z.parseF2Dot14(),F.scale01=Z.parseF2Dot14(),F.scale10=Z.parseF2Dot14(),F.yScale=Z.parseF2Dot14();J.components.push(F),I=!!(X&32)}if(X&256){J.instructionLength=Z.parseUShort(),J.instructions=[];for(var q=0;q<J.instructionLength;q+=1)J.instructions.push(Z.parseByte())}}}function O9(J,Y){var K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z],Q={x:Y.xScale*X.x+Y.scale01*X.y+Y.dx,y:Y.scale10*X.x+Y.yScale*X.y+Y.dy,onCurve:X.onCurve,lastPointOfContour:X.lastPointOfContour};K.push(Q)}return K}function PW(J){var Y=[],K=[];for(var Z=0;Z<J.length;Z+=1){var X=J[Z];if(K.push(X),X.lastPointOfContour)Y.push(K),K=[]}return H0.argument(K.length===0,"There are still points left in the current contour."),Y}function UJ(J){var Y=new f0;if(!J)return Y;var K=PW(J);for(var Z=0;Z<K.length;++Z){var X=K[Z],Q=null,W=X[X.length-1],z=X[0];if(W.onCurve)Y.moveTo(W.x,W.y);else if(z.onCurve)Y.moveTo(z.x,z.y);else{var $={x:(W.x+z.x)*0.5,y:(W.y+z.y)*0.5};Y.moveTo($.x,$.y)}for(var w=0;w<X.length;++w)if(Q=W,W=z,z=X[(w+1)%X.length],W.onCurve)Y.lineTo(W.x,W.y);else{var U=Q,H=z;if(!Q.onCurve)U={x:(W.x+Q.x)*0.5,y:(W.y+Q.y)*0.5};if(!z.onCurve)H={x:(W.x+z.x)*0.5,y:(W.y+z.y)*0.5};Y.quadraticCurveTo(W.x,W.y,H.x,H.y)}Y.closePath()}return Y}function HJ(J,Y){if(Y.isComposite)for(var K=0;K<Y.components.length;K+=1){var Z=Y.components[K],X=J.get(Z.glyphIndex);if(X.getPath(),X.points){var Q=void 0;if(Z.matchedPoints===void 0)Q=O9(X.points,Z);else{if(Z.matchedPoints[0]>Y.points.length-1||Z.matchedPoints[1]>X.points.length-1)throw Error("Matched points out of range in "+Y.name);var W=Y.points[Z.matchedPoints[0]],z=X.points[Z.matchedPoints[1]],$={xScale:Z.xScale,scale01:Z.scale01,scale10:Z.scale10,yScale:Z.yScale,dx:0,dy:0};z=O9([z],$)[0],$.dx=W.x-z.x,$.dy=W.y-z.y,Q=O9(X.points,$)}Y.points=Y.points.concat(Q)}}return UJ(Y.points)}function SW(J,Y,K,Z){var X=new I1.GlyphSet(Z);for(var Q=0;Q<K.length-1;Q+=1){var W=K[Q],z=K[Q+1];if(W!==z)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,HJ));else X.push(Q,I1.glyphLoader(Z,Q))}return X}function vW(J,Y,K,Z){var X=new I1.GlyphSet(Z);return Z._push=function(Q){var W=K[Q],z=K[Q+1];if(W!==z)X.push(Q,I1.ttfGlyphLoader(Z,Q,wJ,J,Y+W,HJ));else X.push(Q,I1.glyphLoader(Z,Q))},X}function kW(J,Y,K,Z,X){if(X.lowMemory)return vW(J,Y,K,Z);else return SW(J,Y,K,Z)}var VJ={getPath:UJ,parse:kW},AJ,X5,BJ,F9;function GJ(J){this.font=J,this.getCommands=function(Y){return VJ.getPath(Y).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function gW(J){return J}function OJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function yW(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function hW(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function xW(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function bW(J){return Math.sign(J)*Math.floor(Math.abs(J))}var MJ=function(J){var Y=this.srPeriod,K=this.srPhase,Z=this.srThreshold,X=1;if(J<0)J=-J,X=-1;if(J+=Z-K,J=Math.trunc(J/Y)*Y,J+=K,J<0)return K*X;return J*X},_1={x:1,y:0,axis:"x",distance:function(J,Y,K,Z){return(K?J.xo:J.x)-(Z?Y.xo:Y.x)},interpolate:function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(!Z||Z===this){if(X=J.xo-Y.xo,Q=J.xo-K.xo,$=Y.x-Y.xo,w=K.x-K.xo,W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){J.x=J.xo+($+w)/2;return}J.x=J.xo+($*z+w*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),w=Z.distance(K,K,!1,!0),W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){_1.setRelative(J,J,($+w)/2,Z,!0);return}_1.setRelative(J,J,($*z+w*W)/U,Z,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.x=(X?Y.xo:Y.x)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y;J.x=z+(J.y-$)/Z.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},P1={x:0,y:1,axis:"y",distance:function(J,Y,K,Z){return(K?J.yo:J.y)-(Z?Y.yo:Y.y)},interpolate:function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(!Z||Z===this){if(X=J.yo-Y.yo,Q=J.yo-K.yo,$=Y.y-Y.yo,w=K.y-K.yo,W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){J.y=J.yo+($+w)/2;return}J.y=J.yo+($*z+w*W)/U;return}if(X=Z.distance(J,Y,!0,!0),Q=Z.distance(J,K,!0,!0),$=Z.distance(Y,Y,!1,!0),w=Z.distance(K,K,!1,!0),W=Math.abs(X),z=Math.abs(Q),U=W+z,U===0){P1.setRelative(J,J,($+w)/2,Z,!0);return}P1.setRelative(J,J,($*z+w*W)/U,Z,!0)},normalSlope:0,setRelative:function(J,Y,K,Z,X){if(!Z||Z===this){J.y=(X?Y.yo:Y.y)+K;return}var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y;J.y=$+Z.normalSlope*(J.x-z)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(_1);Object.freeze(P1);function n5(J,Y){this.x=J,this.y=Y,this.axis=void 0,this.slope=Y/J,this.normalSlope=-J/Y,Object.freeze(this)}n5.prototype.distance=function(J,Y,K,Z){return this.x*_1.distance(J,Y,K,Z)+this.y*P1.distance(J,Y,K,Z)};n5.prototype.interpolate=function(J,Y,K,Z){var X,Q,W,z,$,w,U;if(W=Z.distance(J,Y,!0,!0),z=Z.distance(J,K,!0,!0),X=Z.distance(Y,Y,!1,!0),Q=Z.distance(K,K,!1,!0),$=Math.abs(W),w=Math.abs(z),U=$+w,U===0){this.setRelative(J,J,(X+Q)/2,Z,!0);return}this.setRelative(J,J,(X*w+Q*$)/U,Z,!0)};n5.prototype.setRelative=function(J,Y,K,Z,X){Z=Z||this;var Q=X?Y.xo:Y.x,W=X?Y.yo:Y.y,z=Q+K*Z.x,$=W+K*Z.y,w=Z.normalSlope,U=this.slope,H=J.x,V=J.y;J.x=(U*H-w*z+$-V)/(U-w),J.y=U*(J.x-H)+V};n5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function o5(J,Y){var K=Math.sqrt(J*J+Y*Y);if(J/=K,Y/=K,J===1&&Y===0)return _1;else if(J===0&&Y===1)return P1;else return new n5(J,Y)}function S1(J,Y,K,Z){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(Y*64)/64,this.lastPointOfContour=K,this.onCurve=Z,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}S1.prototype.nextTouched=function(J){var Y=this.nextPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.nextPointOnContour;return Y};S1.prototype.prevTouched=function(J){var Y=this.prevPointOnContour;while(!J.touched(Y)&&Y!==this)Y=Y.prevPointOnContour;return Y};var c5=Object.freeze(new S1(0,0)),fW={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(J,Y){switch(this.env=J,this.stack=[],this.prog=Y,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=_1,this.round=OJ}}GJ.prototype.exec=function(J,Y){if(typeof Y!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var K=this.font,Z=this._prepState;if(!Z||Z.ppem!==Y){var X=this._fpgmState;if(!X){if(p1.prototype=fW,X=this._fpgmState=new p1("fpgm",K.tables.fpgm),X.funcs=[],X.font=K,gB.DEBUG)console.log("---EXEC FPGM---"),X.step=-1;try{X5(X)}catch(w){console.log("Hinting error in FPGM:"+w),this._errorState=3;return}}p1.prototype=X,Z=this._prepState=new p1("prep",K.tables.prep),Z.ppem=Y;var Q=K.tables.cvt;if(Q){var W=Z.cvt=Array(Q.length),z=Y/K.unitsPerEm;for(var $=0;$<Q.length;$++)W[$]=Q[$]*z}else Z.cvt=[];if(gB.DEBUG)console.log("---EXEC PREP---"),Z.step=-1;try{X5(Z)}catch(w){if(this._errorState<2)console.log("Hinting error in PREP:"+w);this._errorState=2}}if(this._errorState>1)return;try{return BJ(J,Z)}catch(w){if(this._errorState<1)console.log("Hinting error:"+w),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};BJ=function(J,Y){var K=Y.ppem/Y.font.unitsPerEm,Z=K,X=J.components,Q,W,z;if(p1.prototype=Y,!X){if(z=new p1("glyf",J.instructions),gB.DEBUG)console.log("---EXEC GLYPH---"),z.step=-1;F9(J,z,K,Z),W=z.gZone}else{var $=Y.font;W=[],Q=[];for(var w=0;w<X.length;w++){var U=X[w],H=$.glyphs.get(U.glyphIndex);if(z=new p1("glyf",H.instructions),gB.DEBUG)console.log("---EXEC COMP "+w+"---"),z.step=-1;F9(H,z,K,Z);var V=Math.round(U.dx*K),A=Math.round(U.dy*Z),O=z.gZone,B=z.contours;for(var M=0;M<O.length;M++){var j=O[M];j.xTouched=j.yTouched=!1,j.xo=j.x=j.x+V,j.yo=j.y=j.y+A}var N=W.length;W.push.apply(W,O);for(var E=0;E<B.length;E++)Q.push(B[E]+N)}if(J.instructions&&!z.inhibitGridFit){if(z=new p1("glyf",J.instructions),z.gZone=z.z0=z.z1=z.z2=W,z.contours=Q,W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),gB.DEBUG)console.log("---EXEC COMPOSITE---"),z.step=-1;X5(z),W.length-=2}}return W};F9=function(J,Y,K,Z){var X=J.points||[],Q=X.length,W=Y.gZone=Y.z0=Y.z1=Y.z2=[],z=Y.contours=[],$;for(var w=0;w<Q;w++)$=X[w],W[w]=new S1($.x*K,$.y*Z,$.lastPointOfContour,$.onCurve);var U,H;for(var V=0;V<Q;V++){if($=W[V],!U)U=$,z.push(V);if($.lastPointOfContour)$.nextPointOnContour=U,U.prevPointOnContour=$,U=void 0;else H=W[V+1],$.nextPointOnContour=H,H.prevPointOnContour=$}if(Y.inhibitGridFit)return;if(gB.DEBUG){console.log("PROCESSING GLYPH",Y.stack);for(var A=0;A<Q;A++)console.log(A,W[A].x,W[A].y)}if(W.push(new S1(0,0),new S1(Math.round(J.advanceWidth*K),0)),X5(Y),W.length-=2,gB.DEBUG){console.log("FINISHED GLYPH",Y.stack);for(var O=0;O<Q;O++)console.log(O,W[O].x,W[O].y)}};X5=function(J){var Y=J.prog;if(!Y)return;var K=Y.length,Z;for(J.ip=0;J.ip<K;J.ip++){if(gB.DEBUG)J.step++;if(Z=AJ[Y[J.ip]],!Z)throw Error("unknown instruction: 0x"+Number(Y[J.ip]).toString(16));Z(J)}};function v8(J){var Y=J.tZone=Array(J.gZone.length);for(var K=0;K<Y.length;K++)Y[K]=new S1(0,0)}function LJ(J,Y){var{prog:K,ip:Z}=J,X=1,Q;do if(Q=K[++Z],Q===88)X++;else if(Q===89)X--;else if(Q===64)Z+=K[Z+1]+1;else if(Q===65)Z+=2*K[Z+1]+1;else if(Q>=176&&Q<=183)Z+=Q-176+1;else if(Q>=184&&Q<=191)Z+=(Q-184+1)*2;else if(Y&&X===1&&Q===27)break;while(X>0);J.ip=Z}function S2(J,Y){if(gB.DEBUG)console.log(Y.step,"SVTCA["+J.axis+"]");Y.fv=Y.pv=Y.dpv=J}function v2(J,Y){if(gB.DEBUG)console.log(Y.step,"SPVTCA["+J.axis+"]");Y.pv=Y.dpv=J}function k2(J,Y){if(gB.DEBUG)console.log(Y.step,"SFVTCA["+J.axis+"]");Y.fv=J}function g2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(gB.DEBUG)console.log("SPVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.pv=Y.dpv=o5(z,$)}function y2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(gB.DEBUG)console.log("SFVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.fv=o5(z,$)}function mW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.pv=J.dpv=o5(Z,K)}function dW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"SPVFS[]",K,Z);J.fv=o5(Z,K)}function uW(J){var{stack:Y,pv:K}=J;if(gB.DEBUG)console.log(J.step,"GPV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function cW(J){var{stack:Y,fv:K}=J;if(gB.DEBUG)console.log(J.step,"GFV[]");Y.push(K.x*16384),Y.push(K.y*16384)}function lW(J){if(J.fv=J.pv,gB.DEBUG)console.log(J.step,"SFVTPV[]")}function pW(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop(),Q=Y.pop(),W=Y.pop(),z=J.z0,$=J.z1,w=z[K],U=z[Z],H=$[X],V=$[Q],A=J.z2[W];if(gB.DEBUG)console.log("ISECT[], ",K,Z,X,Q,W);var{x:O,y:B}=w,M=U.x,j=U.y,N=H.x,E=H.y,I=V.x,F=V.y,q=(O-M)*(E-F)-(B-j)*(N-I),T=O*j-B*M,D=N*F-E*I;A.x=(T*(N-I)-D*(O-M))/q,A.y=(T*(E-F)-D*(B-j))/q}function iW(J){if(J.rp0=J.stack.pop(),gB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function nW(J){if(J.rp1=J.stack.pop(),gB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function oW(J){if(J.rp2=J.stack.pop(),gB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function rW(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SZP0[]",Y);switch(J.zp0=Y,Y){case 0:if(!J.tZone)v8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function sW(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SZP1[]",Y);switch(J.zp1=Y,Y){case 0:if(!J.tZone)v8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function aW(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SZP2[]",Y);switch(J.zp2=Y,Y){case 0:if(!J.tZone)v8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function tW(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SZPS[]",Y);switch(J.zp0=J.zp1=J.zp2=Y,Y){case 0:if(!J.tZone)v8(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function eW(J){if(J.loop=J.stack.pop(),gB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function J$(J){if(gB.DEBUG)console.log(J.step,"RTG[]");J.round=OJ}function Y$(J){if(gB.DEBUG)console.log(J.step,"RTHG[]");J.round=hW}function K$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SMD[]",Y);J.minDis=Y/64}function Z$(J){if(gB.DEBUG)console.log(J.step,"ELSE[]");LJ(J,!1)}function X$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"JMPR[]",Y);J.ip+=Y-1}function Q$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SCVTCI[]",Y);J.cvCutIn=Y/64}function W$(J){var Y=J.stack;if(gB.DEBUG)console.log(J.step,"DUP[]");Y.push(Y[Y.length-1])}function M9(J){if(gB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function $$(J){if(gB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function z$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"SWAP[]");Y.push(K),Y.push(Z)}function w$(J){var Y=J.stack;if(gB.DEBUG)console.log(J.step,"DEPTH[]");Y.push(Y.length)}function U$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"LOOPCALL[]",K,Z);var{ip:X,prog:Q}=J;J.prog=J.funcs[K];for(var W=0;W<Z;W++)if(X5(J),gB.DEBUG)console.log(++J.step,W+1<Z?"next loopcall":"done loopcall",W);J.ip=X,J.prog=Q}function H$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"CALL[]",Y);var{ip:K,prog:Z}=J;if(J.prog=J.funcs[Y],X5(J),J.ip=K,J.prog=Z,gB.DEBUG)console.log(++J.step,"returning from",Y)}function V$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"CINDEX[]",K);Y.push(Y[Y.length-K])}function A$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"MINDEX[]",K);Y.push(Y.splice(Y.length-K,1)[0])}function B$(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:Y,prog:K,ip:Z}=J,X=Y.pop(),Q=Z;if(gB.DEBUG)console.log(J.step,"FDEF[]",X);while(K[++Z]!==45);J.ip=Z,J.funcs[X]=K.slice(Q+1,Z)}function h2(J,Y){var K=Y.stack.pop(),Z=Y.z0[K],X=Y.fv,Q=Y.pv;if(gB.DEBUG)console.log(Y.step,"MDAP["+J+"]",K);var W=Q.distance(Z,c5);if(J)W=Y.round(W);X.setRelative(Z,c5,W,Q),X.touch(Z),Y.rp0=Y.rp1=K}function x2(J,Y){var K=Y.z2,Z=K.length-2,X,Q,W;if(gB.DEBUG)console.log(Y.step,"IUP["+J.axis+"]");for(var z=0;z<Z;z++){if(X=K[z],J.touched(X))continue;if(Q=X.prevTouched(J),Q===X)continue;if(W=X.nextTouched(J),Q===W)J.setRelative(X,X,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(X,Q,W,J)}}function b2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=Y.loop,$=Y.z2;while(z--){var w=K.pop(),U=$[w],H=W.distance(X,X,!1,!0);if(Q.setRelative(U,U,H,W),Q.touch(U),gB.DEBUG)console.log(Y.step,(Y.loop>1?"loop "+(Y.loop-z)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",w)}Y.loop=1}function f2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=K.pop(),$=Y.z2[Y.contours[z]],w=$;if(gB.DEBUG)console.log(Y.step,"SHC["+J+"]",z);var U=W.distance(X,X,!1,!0);do{if(w!==X)Q.setRelative(w,w,U,W);w=w.nextPointOnContour}while(w!==$)}function m2(J,Y){var K=Y.stack,Z=J?Y.rp1:Y.rp2,X=(J?Y.z0:Y.z1)[Z],Q=Y.fv,W=Y.pv,z=K.pop();if(gB.DEBUG)console.log(Y.step,"SHZ["+J+"]",z);var $;switch(z){case 0:$=Y.tZone;break;case 1:$=Y.gZone;break;default:throw Error("Invalid zone")}var w,U=W.distance(X,X,!1,!0),H=$.length-2;for(var V=0;V<H;V++)w=$[V],Q.setRelative(w,w,U,W)}function G$(J){var{stack:Y,loop:K,fv:Z}=J,X=Y.pop()/64,Q=J.z2;while(K--){var W=Y.pop(),z=Q[W];if(gB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-K)+": ":"")+"SHPIX[]",W,X);Z.setRelative(z,z,X),Z.touch(z)}J.loop=1}function O$(J){var{stack:Y,rp1:K,rp2:Z,loop:X}=J,Q=J.z0[K],W=J.z1[Z],z=J.fv,$=J.dpv,w=J.z2;while(X--){var U=Y.pop(),H=w[U];if(gB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"IP[]",U,K,"<->",Z);z.interpolate(H,Q,W,$),z.touch(H)}J.loop=1}function d2(J,Y){var K=Y.stack,Z=K.pop()/64,X=K.pop(),Q=Y.z1[X],W=Y.z0[Y.rp0],z=Y.fv,$=Y.pv;if(z.setRelative(Q,W,Z,$),z.touch(Q),gB.DEBUG)console.log(Y.step,"MSIRP["+J+"]",Z,X);if(Y.rp1=Y.rp0,Y.rp2=X,J)Y.rp0=X}function M$(J){var{stack:Y,rp0:K}=J,Z=J.z0[K],X=J.loop,Q=J.fv,W=J.pv,z=J.z1;while(X--){var $=Y.pop(),w=z[$];if(gB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"ALIGNRP[]",$);Q.setRelative(w,Z,0,W),Q.touch(w)}J.loop=1}function L$(J){if(gB.DEBUG)console.log(J.step,"RTDG[]");J.round=yW}function u2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z0[X],W=Y.fv,z=Y.pv,$=Y.cvt[Z];if(gB.DEBUG)console.log(Y.step,"MIAP["+J+"]",Z,"(",$,")",X);var w=z.distance(Q,c5);if(J){if(Math.abs(w-$)<Y.cvCutIn)w=$;w=Y.round(w)}if(W.setRelative(Q,c5,w,z),Y.zp0===0)Q.xo=Q.x,Q.yo=Q.y;W.touch(Q),Y.rp0=Y.rp1=X}function j$(J){var{prog:Y,ip:K,stack:Z}=J,X=Y[++K];if(gB.DEBUG)console.log(J.step,"NPUSHB[]",X);for(var Q=0;Q<X;Q++)Z.push(Y[++K]);J.ip=K}function N$(J){var{ip:Y,prog:K,stack:Z}=J,X=K[++Y];if(gB.DEBUG)console.log(J.step,"NPUSHW[]",X);for(var Q=0;Q<X;Q++){var W=K[++Y]<<8|K[++Y];if(W&32768)W=-((W^65535)+1);Z.push(W)}J.ip=Y}function q$(J){var{stack:Y,store:K}=J;if(!K)K=J.store=[];var Z=Y.pop(),X=Y.pop();if(gB.DEBUG)console.log(J.step,"WS",Z,X);K[X]=Z}function E$(J){var{stack:Y,store:K}=J,Z=Y.pop();if(gB.DEBUG)console.log(J.step,"RS",Z);var X=K&&K[Z]||0;Y.push(X)}function F$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"WCVTP",K,Z);J.cvt[Z]=K/64}function _$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"RCVT",K);Y.push(J.cvt[K]*64)}function c2(J,Y){var K=Y.stack,Z=K.pop(),X=Y.z2[Z];if(gB.DEBUG)console.log(Y.step,"GC["+J+"]",Z);K.push(Y.dpv.distance(X,c5,J,!1)*64)}function l2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z1[Z],W=Y.z0[X],z=Y.dpv.distance(W,Q,J,J);if(gB.DEBUG)console.log(Y.step,"MD["+J+"]",Z,X,"->",z);Y.stack.push(Math.round(z*64))}function I$(J){if(gB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function D$(J){if(gB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function R$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"LT[]",K,Z);Y.push(Z<K?1:0)}function C$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"LTEQ[]",K,Z);Y.push(Z<=K?1:0)}function T$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"GT[]",K,Z);Y.push(Z>K?1:0)}function P$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"GTEQ[]",K,Z);Y.push(Z>=K?1:0)}function S$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"EQ[]",K,Z);Y.push(K===Z?1:0)}function v$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"NEQ[]",K,Z);Y.push(K!==Z?1:0)}function k$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"ODD[]",K);Y.push(Math.trunc(K)%2?1:0)}function g$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"EVEN[]",K);Y.push(Math.trunc(K)%2?0:1)}function y$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"IF[]",Y);if(!Y){if(LJ(J,!0),gB.DEBUG)console.log(J.step,"EIF[]")}}function h$(J){if(gB.DEBUG)console.log(J.step,"EIF[]")}function x$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"AND[]",K,Z);Y.push(K&&Z?1:0)}function b$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"OR[]",K,Z);Y.push(K||Z?1:0)}function f$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"NOT[]",K);Y.push(K?0:1)}function L9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.fv,Q=Y.pv,W=Y.ppem,z=Y.deltaBase+(J-1)*16,$=Y.deltaShift,w=Y.z0;if(gB.DEBUG)console.log(Y.step,"DELTAP["+J+"]",Z,K);for(var U=0;U<Z;U++){var H=K.pop(),V=K.pop(),A=z+((V&240)>>4);if(A!==W)continue;var O=(V&15)-8;if(O>=0)O++;if(gB.DEBUG)console.log(Y.step,"DELTAPFIX",H,"by",O*$);var B=w[H];X.setRelative(B,B,O*$,Q)}}function m$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"SDB[]",K);J.deltaBase=K}function d$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"SDS[]",K);J.deltaShift=Math.pow(0.5,K)}function u$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"ADD[]",K,Z);Y.push(Z+K)}function c$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"SUB[]",K,Z);Y.push(Z-K)}function l$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"DIV[]",K,Z);Y.push(Z*64/K)}function p$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"MUL[]",K,Z);Y.push(Z*K/64)}function i$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"ABS[]",K);Y.push(Math.abs(K))}function n$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"NEG[]",K);Y.push(-K)}function o$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"FLOOR[]",K);Y.push(Math.floor(K/64)*64)}function r$(J){var Y=J.stack,K=Y.pop();if(gB.DEBUG)console.log(J.step,"CEILING[]",K);Y.push(Math.ceil(K/64)*64)}function C8(J,Y){var K=Y.stack,Z=K.pop();if(gB.DEBUG)console.log(Y.step,"ROUND[]");K.push(Y.round(Z/64)*64)}function s$(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"WCVTF[]",K,Z);J.cvt[Z]=K*J.ppem/J.font.unitsPerEm}function j9(J,Y){var K=Y.stack,Z=K.pop(),X=Y.ppem,Q=Y.deltaBase+(J-1)*16,W=Y.deltaShift;if(gB.DEBUG)console.log(Y.step,"DELTAC["+J+"]",Z,K);for(var z=0;z<Z;z++){var $=K.pop(),w=K.pop(),U=Q+((w&240)>>4);if(U!==X)continue;var H=(w&15)-8;if(H>=0)H++;var V=H*W;if(gB.DEBUG)console.log(Y.step,"DELTACFIX",$,"by",V);Y.cvt[$]+=V}}function a$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SROUND[]",Y);J.round=MJ;var K;switch(Y&192){case 0:K=0.5;break;case 64:K=1;break;case 128:K=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid SROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function t$(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"S45ROUND[]",Y);J.round=MJ;var K;switch(Y&192){case 0:K=Math.sqrt(2)/2;break;case 64:K=Math.sqrt(2);break;case 128:K=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=K,Y&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*K;break;case 32:J.srPhase=0.5*K;break;case 48:J.srPhase=0.75*K;break;default:throw Error("invalid S45ROUND value")}if(Y&=15,Y===0)J.srThreshold=0;else J.srThreshold=(Y/8-0.5)*K}function e$(J){if(gB.DEBUG)console.log(J.step,"ROFF[]");J.round=gW}function Jz(J){if(gB.DEBUG)console.log(J.step,"RUTG[]");J.round=xW}function Yz(J){if(gB.DEBUG)console.log(J.step,"RDTG[]");J.round=bW}function Kz(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SCANCTRL[]",Y)}function p2(J,Y){var K=Y.stack,Z=K.pop(),X=K.pop(),Q=Y.z2[Z],W=Y.z1[X];if(gB.DEBUG)console.log(Y.step,"SDPVTL["+J+"]",Z,X);var z,$;if(!J)z=W.x-Q.x,$=W.y-Q.y;else z=Q.y-W.y,$=W.x-Q.x;Y.dpv=o5(z,$)}function Zz(J){var Y=J.stack,K=Y.pop(),Z=0;if(gB.DEBUG)console.log(J.step,"GETINFO[]",K);if(K&1)Z=35;if(K&32)Z|=4096;Y.push(Z)}function Xz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop(),X=Y.pop();if(gB.DEBUG)console.log(J.step,"ROLL[]");Y.push(Z),Y.push(K),Y.push(X)}function Qz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"MAX[]",K,Z);Y.push(Math.max(Z,K))}function Wz(J){var Y=J.stack,K=Y.pop(),Z=Y.pop();if(gB.DEBUG)console.log(J.step,"MIN[]",K,Z);Y.push(Math.min(Z,K))}function $z(J){var Y=J.stack.pop();if(gB.DEBUG)console.log(J.step,"SCANTYPE[]",Y)}function zz(J){var Y=J.stack.pop(),K=J.stack.pop();if(gB.DEBUG)console.log(J.step,"INSTCTRL[]",Y,K);switch(Y){case 1:J.inhibitGridFit=!!K;return;case 2:J.ignoreCvt=!!K;return;default:throw Error("invalid INSTCTRL[] selector")}}function d1(J,Y){var{stack:K,prog:Z,ip:X}=Y;if(gB.DEBUG)console.log(Y.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)K.push(Z[++X]);Y.ip=X}function u1(J,Y){var{ip:K,prog:Z,stack:X}=Y;if(gB.DEBUG)console.log(Y.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var W=Z[++K]<<8|Z[++K];if(W&32768)W=-((W^65535)+1);X.push(W)}Y.ip=K}function o(J,Y,K,Z,X,Q){var W=Q.stack,z=J&&W.pop(),$=W.pop(),w=Q.rp0,U=Q.z0[w],H=Q.z1[$],V=Q.minDis,A=Q.fv,O=Q.dpv,B,M,j,N;if(M=B=O.distance(H,U,!0,!0),j=M>=0?1:-1,M=Math.abs(M),J){if(N=Q.cvt[z],Z&&Math.abs(M-N)<Q.cvCutIn)M=N}if(K&&M<V)M=V;if(Z)M=Q.round(M);if(A.setRelative(H,U,j*M,O),A.touch(H),gB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(Y?"M":"m")+(K?">":"_")+(Z?"R":"_")+(X===0?"Gr":X===1?"Bl":X===2?"Wh":"")+"]",J?z+"("+Q.cvt[z]+","+N+")":"",$,"(d =",B,"->",j*M,")");if(Q.rp1=Q.rp0,Q.rp2=$,Y)Q.rp0=$}AJ=[S2.bind(void 0,P1),S2.bind(void 0,_1),v2.bind(void 0,P1),v2.bind(void 0,_1),k2.bind(void 0,P1),k2.bind(void 0,_1),g2.bind(void 0,0),g2.bind(void 0,1),y2.bind(void 0,0),y2.bind(void 0,1),mW,dW,uW,cW,lW,pW,iW,nW,oW,rW,sW,aW,tW,eW,J$,Y$,K$,Z$,X$,Q$,void 0,void 0,W$,M9,$$,z$,w$,V$,A$,void 0,void 0,void 0,U$,H$,B$,void 0,h2.bind(void 0,0),h2.bind(void 0,1),x2.bind(void 0,P1),x2.bind(void 0,_1),b2.bind(void 0,0),b2.bind(void 0,1),f2.bind(void 0,0),f2.bind(void 0,1),m2.bind(void 0,0),m2.bind(void 0,1),G$,O$,d2.bind(void 0,0),d2.bind(void 0,1),M$,L$,u2.bind(void 0,0),u2.bind(void 0,1),j$,N$,q$,E$,F$,_$,c2.bind(void 0,0),c2.bind(void 0,1),void 0,l2.bind(void 0,0),l2.bind(void 0,1),I$,void 0,D$,void 0,void 0,R$,C$,T$,P$,S$,v$,k$,g$,y$,h$,x$,b$,f$,L9.bind(void 0,1),m$,d$,u$,c$,l$,p$,i$,n$,o$,r$,C8.bind(void 0,0),C8.bind(void 0,1),C8.bind(void 0,2),C8.bind(void 0,3),void 0,void 0,void 0,void 0,s$,L9.bind(void 0,2),L9.bind(void 0,3),j9.bind(void 0,1),j9.bind(void 0,2),j9.bind(void 0,3),a$,t$,void 0,void 0,e$,void 0,Jz,Yz,M9,M9,void 0,void 0,void 0,void 0,void 0,Kz,p2.bind(void 0,0),p2.bind(void 0,1),Zz,void 0,Xz,Qz,Wz,$z,zz,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d1.bind(void 0,1),d1.bind(void 0,2),d1.bind(void 0,3),d1.bind(void 0,4),d1.bind(void 0,5),d1.bind(void 0,6),d1.bind(void 0,7),d1.bind(void 0,8),u1.bind(void 0,1),u1.bind(void 0,2),u1.bind(void 0,3),u1.bind(void 0,4),u1.bind(void 0,5),u1.bind(void 0,6),u1.bind(void 0,7),u1.bind(void 0,8),o.bind(void 0,0,0,0,0,0),o.bind(void 0,0,0,0,0,1),o.bind(void 0,0,0,0,0,2),o.bind(void 0,0,0,0,0,3),o.bind(void 0,0,0,0,1,0),o.bind(void 0,0,0,0,1,1),o.bind(void 0,0,0,0,1,2),o.bind(void 0,0,0,0,1,3),o.bind(void 0,0,0,1,0,0),o.bind(void 0,0,0,1,0,1),o.bind(void 0,0,0,1,0,2),o.bind(void 0,0,0,1,0,3),o.bind(void 0,0,0,1,1,0),o.bind(void 0,0,0,1,1,1),o.bind(void 0,0,0,1,1,2),o.bind(void 0,0,0,1,1,3),o.bind(void 0,0,1,0,0,0),o.bind(void 0,0,1,0,0,1),o.bind(void 0,0,1,0,0,2),o.bind(void 0,0,1,0,0,3),o.bind(void 0,0,1,0,1,0),o.bind(void 0,0,1,0,1,1),o.bind(void 0,0,1,0,1,2),o.bind(void 0,0,1,0,1,3),o.bind(void 0,0,1,1,0,0),o.bind(void 0,0,1,1,0,1),o.bind(void 0,0,1,1,0,2),o.bind(void 0,0,1,1,0,3),o.bind(void 0,0,1,1,1,0),o.bind(void 0,0,1,1,1,1),o.bind(void 0,0,1,1,1,2),o.bind(void 0,0,1,1,1,3),o.bind(void 0,1,0,0,0,0),o.bind(void 0,1,0,0,0,1),o.bind(void 0,1,0,0,0,2),o.bind(void 0,1,0,0,0,3),o.bind(void 0,1,0,0,1,0),o.bind(void 0,1,0,0,1,1),o.bind(void 0,1,0,0,1,2),o.bind(void 0,1,0,0,1,3),o.bind(void 0,1,0,1,0,0),o.bind(void 0,1,0,1,0,1),o.bind(void 0,1,0,1,0,2),o.bind(void 0,1,0,1,0,3),o.bind(void 0,1,0,1,1,0),o.bind(void 0,1,0,1,1,1),o.bind(void 0,1,0,1,1,2),o.bind(void 0,1,0,1,1,3),o.bind(void 0,1,1,0,0,0),o.bind(void 0,1,1,0,0,1),o.bind(void 0,1,1,0,0,2),o.bind(void 0,1,1,0,0,3),o.bind(void 0,1,1,0,1,0),o.bind(void 0,1,1,0,1,1),o.bind(void 0,1,1,0,1,2),o.bind(void 0,1,1,0,1,3),o.bind(void 0,1,1,1,0,0),o.bind(void 0,1,1,1,0,1),o.bind(void 0,1,1,1,0,2),o.bind(void 0,1,1,1,0,3),o.bind(void 0,1,1,1,1,0),o.bind(void 0,1,1,1,1,1),o.bind(void 0,1,1,1,1,2),o.bind(void 0,1,1,1,1,3)];function F5(J){this.char=J,this.state={},this.activeState=null}function C9(J,Y,K){this.contextName=K,this.startIndex=J,this.endOffset=Y}function wz(J,Y,K){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=Y,this.checkEnd=K}function H1(J,Y){this.context=J,this.index=Y,this.length=J.length,this.current=J[Y],this.backtrack=J.slice(0,Y),this.lookahead=J.slice(Y+1)}function k8(J){this.eventId=J,this.subscribers=[]}function Uz(J){var Y=this,K=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(K.forEach(function(X){Object.defineProperty(Y.events,X,{value:new k8(X)})}),J)K.forEach(function(X){var Q=J[X];if(typeof Q==="function")Y.events[X].subscribe(Q)});var Z=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];Z.forEach(function(X){Y.events[X].subscribe(Y.updateContextsRanges)})}function _0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Uz.call(this,J)}F5.prototype.setState=function(J,Y){return this.state[J]=Y,this.activeState={key:J,value:this.state[J]},this.activeState};F5.prototype.getState=function(J){return this.state[J]||null};_0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};_0.prototype.composeRUD=function(J){var Y=this,K=!0,Z=J.map(function(Q){return Y[Q[0]].apply(Y,Q.slice(1).concat(K))}),X=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(Z.every(X))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:Z.filter(X)};this.dispatch("composeRUD",[Z.filter(function(Q){return!X(Q)})])};_0.prototype.replaceRange=function(J,Y,K,Z){Y=Y!==null?Y:this.tokens.length;var X=K.every(function(W){return W instanceof F5});if(!isNaN(J)&&this.inboundIndex(J)&&X){var Q=this.tokens.splice.apply(this.tokens,[J,Y].concat(K));if(!Z)this.dispatch("replaceToken",[J,Y,K]);return[Q,K]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};_0.prototype.replaceToken=function(J,Y,K){if(!isNaN(J)&&this.inboundIndex(J)&&Y instanceof F5){var Z=this.tokens.splice(J,1,Y);if(!K)this.dispatch("replaceToken",[J,Y]);return[Z[0],Y]}else return{FAIL:"replaceToken: invalid token or index."}};_0.prototype.removeRange=function(J,Y,K){Y=!isNaN(Y)?Y:this.tokens.length;var Z=this.tokens.splice(J,Y);if(!K)this.dispatch("removeRange",[Z,J,Y]);return Z};_0.prototype.removeToken=function(J,Y){if(!isNaN(J)&&this.inboundIndex(J)){var K=this.tokens.splice(J,1);if(!Y)this.dispatch("removeToken",[K,J]);return K}else return{FAIL:"removeToken: invalid token index."}};_0.prototype.insertToken=function(J,Y,K){var Z=J.every(function(X){return X instanceof F5});if(Z){if(this.tokens.splice.apply(this.tokens,[Y,0].concat(J)),!K)this.dispatch("insertToken",[J,Y]);return J}else return{FAIL:"insertToken: invalid token(s)."}};_0.prototype.registerModifier=function(J,Y,K){this.events.newToken.subscribe(function(Z,X){var Q=[Z,X],W=Y===null||Y.apply(this,Q)===!0,z=[Z,X];if(W){var $=K.apply(this,z);Z.setState(J,$)}}),this.registeredModifiers.push(J)};k8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};k8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};H1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};_0.prototype.rangeToText=function(J){if(J instanceof C9)return this.getRangeTokens(J).map(function(Y){return Y.char}).join("")};_0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};_0.prototype.getContext=function(J){var Y=this.registeredContexts[J];return Y?Y:null};_0.prototype.on=function(J,Y){var K=this.events[J];if(K)return K.subscribe(Y);else return null};_0.prototype.dispatch=function(J,Y){var K=this,Z=this.events[J];if(Z instanceof k8)Z.subscribers.forEach(function(X){X.apply(K,Y||[])})};_0.prototype.registerContextChecker=function(J,Y,K){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof Y!=="function")return{FAIL:"missing context start check."};if(typeof K!=="function")return{FAIL:"missing context end check."};var Z=new wz(J,Y,K);return this.registeredContexts[J]=Z,this.contextCheckers.push(Z),Z};_0.prototype.getRangeTokens=function(J){var Y=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,Y))};_0.prototype.getContextRanges=function(J){var Y=this.getContext(J);if(Y)return Y.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};_0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var Y in J)if(J.hasOwnProperty(Y)){var K=J[Y];K.ranges=[]}};_0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(Z){return Z.char});for(var Y=0;Y<J.length;Y++){var K=new H1(J,Y);this.runContextCheck(K)}this.dispatch("updateContextsRanges",[this.registeredContexts])};_0.prototype.setEndOffset=function(J,Y){var K=this.getContext(Y).openRange.startIndex,Z=new C9(K,J,Y),X=this.getContext(Y).ranges;return Z.rangeId=Y+"."+X.length,X.push(Z),this.getContext(Y).openRange=null,Z};_0.prototype.runContextCheck=function(J){var Y=this,K=J.index;this.contextCheckers.forEach(function(Z){var X=Z.contextName,Q=Y.getContext(X).openRange;if(!Q&&Z.checkStart(J))Q=new C9(K,null,X),Y.getContext(X).openRange=Q,Y.dispatch("contextStart",[X,K]);if(!!Q&&Z.checkEnd(J)){var W=K-Q.startIndex+1,z=Y.setEndOffset(W,X);Y.dispatch("contextEnd",[X,z])}})};_0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var Y=Array.from(J);this.dispatch("start");for(var K=0;K<Y.length;K++){var Z=Y[K],X=new H1(Y,K);this.dispatch("next",[X]),this.runContextCheck(X);var Q=new F5(Z);this.tokens.push(Q),this.dispatch("newToken",[Q,X])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function jJ(J){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(J)}function n1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function T8(J){return/[A-z]/.test(J)}function Hz(J){return/\s/.test(J)}function a0(J){this.font=J,this.features={}}function K5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function r5(J,Y){if(!J)return-1;switch(Y.format){case 1:return Y.glyphs.indexOf(J);case 2:var K=Y.ranges;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(J>=X.start&&J<=X.end){var Q=J-X.start;return X.index+Q}}break;default:return-1}return-1}function Vz(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return J+Y.deltaGlyphId}function Az(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.substitute[K]}function N9(J,Y){var K=[];for(var Z=0;Z<J.length;Z++){var X=J[Z],Q=Y.current;Q=Array.isArray(Q)?Q[0]:Q;var W=r5(Q,X);if(W!==-1)K.push(W)}if(K.length!==J.length)return-1;return K}function Bz(J,Y){var K=Y.inputCoverage.length+Y.lookaheadCoverage.length+Y.backtrackCoverage.length;if(J.context.length<K)return[];var Z=N9(Y.inputCoverage,J);if(Z===-1)return[];var X=Y.inputCoverage.length-1;if(J.lookahead.length<Y.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(X);while(Q.length&&n1(Q[0].char))Q.shift();var W=new H1(Q,0),z=N9(Y.lookaheadCoverage,W),$=[].concat(J.backtrack);$.reverse();while($.length&&n1($[0].char))$.shift();if($.length<Y.backtrackCoverage.length)return[];var w=new H1($,0),U=N9(Y.backtrackCoverage,w),H=Z.length===Y.inputCoverage.length&&z.length===Y.lookaheadCoverage.length&&U.length===Y.backtrackCoverage.length,V=[];if(H)for(var A=0;A<Y.lookupRecords.length;A++){var O=Y.lookupRecords[A],B=O.lookupListIndex,M=this.getLookupByIndex(B);for(var j=0;j<M.subtables.length;j++){var N=M.subtables[j],E=this.getLookupMethod(M,N),I=this.getSubstitutionType(M,N);if(I==="12")for(var F=0;F<Z.length;F++){var q=J.get(F),T=E(q);if(T)V.push(T)}}}return V}function Gz(J,Y){var K=J.current,Z=r5(K,Y.coverage);if(Z===-1)return null;var X,Q=Y.ligatureSets[Z];for(var W=0;W<Q.length;W++){X=Q[W];for(var z=0;z<X.components.length;z++){var $=J.lookahead[z],w=X.components[z];if($!==w)break;if(z===X.components.length-1)return X}}return null}function Oz(J,Y){var K=r5(J,Y.coverage);if(K===-1)return null;return Y.sequences[K]}a0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var Y=0;Y<J.length;Y++){var K=J[Y];if(K.tag==="DFLT")return K.script.defaultLangSys.featureIndexes}return[]};a0.prototype.getScriptFeaturesIndexes=function(J){var Y=this.font.tables;if(!Y.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var K=this.font.tables.gsub.scripts;for(var Z=0;Z<K.length;Z++){var X=K[Z];if(X.tag===J&&X.script.defaultLangSys)return X.script.defaultLangSys.featureIndexes;else{var Q=X.langSysRecords;if(Q)for(var W=0;W<Q.length;W++){var z=Q[W];if(z.tag===J){var $=z.langSys;return $.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};a0.prototype.mapTagsToFeatures=function(J,Y){var K={};for(var Z=0;Z<J.length;Z++){var X=J[Z].tag,Q=J[Z].feature;K[X]=Q}this.features[Y].tags=K};a0.prototype.getScriptFeatures=function(J){var Y=this.features[J];if(this.features.hasOwnProperty(J))return Y;var K=this.getScriptFeaturesIndexes(J);if(!K)return null;var Z=this.font.tables.gsub;return Y=K.map(function(X){return Z.features[X]}),this.features[J]=Y,this.mapTagsToFeatures(Y,J),Y};a0.prototype.getSubstitutionType=function(J,Y){var K=J.lookupType.toString(),Z=Y.substFormat.toString();return K+Z};a0.prototype.getLookupMethod=function(J,Y){var K=this,Z=this.getSubstitutionType(J,Y);switch(Z){case"11":return function(X){return Vz.apply(K,[X,Y])};case"12":return function(X){return Az.apply(K,[X,Y])};case"63":return function(X){return Bz.apply(K,[X,Y])};case"41":return function(X){return Gz.apply(K,[X,Y])};case"21":return function(X){return Oz.apply(K,[X,Y])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+Y.substFormat+" is not yet supported")}};a0.prototype.lookupFeature=function(J){var Y=J.contextParams,K=Y.index,Z=this.getFeature({tag:J.tag,script:J.script});if(!Z)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var X=this.getFeatureLookups(Z),Q=[].concat(Y.context);for(var W=0;W<X.length;W++){var z=X[W],$=this.getLookupSubtables(z);for(var w=0;w<$.length;w++){var U=$[w],H=this.getSubstitutionType(z,U),V=this.getLookupMethod(z,U),A=void 0;switch(H){case"11":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:11,tag:J.tag,substitution:A}));break;case"12":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:12,tag:J.tag,substitution:A}));break;case"63":if(A=V(Y),Array.isArray(A)&&A.length)Q.splice(K,1,new K5({id:63,tag:J.tag,substitution:A}));break;case"41":if(A=V(Y),A)Q.splice(K,1,new K5({id:41,tag:J.tag,substitution:A}));break;case"21":if(A=V(Y.current),A)Q.splice(K,1,new K5({id:21,tag:J.tag,substitution:A}));break}if(Y=new H1(Q,K),Array.isArray(A)&&!A.length)continue;A=null}}return Q.length?Q:null};a0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var Y=this.features.hasOwnProperty(J.script);if(!J.tag)return Y;var K=this.features[J.script].some(function(Z){return Z.tag===J.tag});return Y&&K};a0.prototype.getLookupSubtables=function(J){return J.subtables||null};a0.prototype.getLookupByIndex=function(J){var Y=this.font.tables.gsub.lookups;return Y[J]||null};a0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};a0.prototype.getFeature=function(Y){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(Y.script))this.getScriptFeatures(Y.script);var K=this.features[Y.script];if(!K)return{FAIL:"No feature for script "+Y.script};if(!K.tags[Y.tag])return null;return this.features[Y.script].tags[Y.tag]};function Mz(J){var Y=J.current,K=J.get(-1);return K===null&&i1(Y)||!i1(K)&&i1(Y)}function Lz(J){var Y=J.get(1);return Y===null||!i1(Y)}var jz={startCheck:Mz,endCheck:Lz};function Nz(J){var Y=J.current,K=J.get(-1);return(i1(Y)||n1(Y))&&!i1(K)}function qz(J){var Y=J.get(1);switch(!0){case Y===null:return!0;case(!i1(Y)&&!n1(Y)):var K=Hz(Y);if(!K)return!0;if(K){var Z=!1;if(Z=J.lookahead.some(function(X){return i1(X)||n1(X)}),!Z)return!0}break;default:return!1}}var Ez={startCheck:Nz,endCheck:qz};function Fz(J,Y,K){Y[K].setState(J.tag,J.substitution)}function _z(J,Y,K){Y[K].setState(J.tag,J.substitution)}function Iz(J,Y,K){J.substitution.forEach(function(Z,X){var Q=Y[K+X];Q.setState(J.tag,Z)})}function Dz(J,Y,K){var Z=Y[K];Z.setState(J.tag,J.substitution.ligGlyph);var X=J.substitution.components.length;for(var Q=0;Q<X;Q++)Z=Y[K+Q+1],Z.setState("deleted",!0)}var i2={11:Fz,12:_z,63:Iz,41:Dz};function T9(J,Y,K){if(J instanceof K5&&i2[J.id])i2[J.id](J,Y,K)}function Rz(J){var Y=[].concat(J.backtrack);for(var K=Y.length-1;K>=0;K--){var Z=Y[K],X=jJ(Z),Q=n1(Z);if(!X&&!Q)return!0;if(X)return!1}return!1}function Cz(J){if(jJ(J.current))return!1;for(var Y=0;Y<J.lookahead.length;Y++){var K=J.lookahead[Y],Z=n1(K);if(!Z)return!0}return!1}function Tz(J){var Y=this,K="arab",Z=this.featuresTags[K],X=this.tokenizer.getRangeTokens(J);if(X.length===1)return;var Q=new H1(X.map(function(z){return z.getState("glyphIndex")}),0),W=new H1(X.map(function(z){return z.char}),0);X.forEach(function(z,$){if(n1(z.char))return;Q.setCurrentIndex($),W.setCurrentIndex($);var w=0;if(Rz(W))w|=1;if(Cz(W))w|=2;var U;switch(w){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(Z.indexOf(U)===-1)return;var H=Y.query.lookupFeature({tag:U,script:K,contextParams:Q});if(H instanceof Error)return console.info(H.message);H.forEach(function(V,A){if(V instanceof K5)T9(V,X,A),Q.context[A]=V.substitution})})}function n2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function Pz(J){var Y=this,K="arab",Z=this.tokenizer.getRangeTokens(J),X=n2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var z=Y.query.lookupFeature({tag:"rlig",script:K,contextParams:X});if(z.length)z.forEach(function($){return T9($,Z,W)}),X=n2(Z)})}function Sz(J){var Y=J.current,K=J.get(-1);return K===null&&T8(Y)||!T8(K)&&T8(Y)}function vz(J){var Y=J.get(1);return Y===null||!T8(Y)}var kz={startCheck:Sz,endCheck:vz};function o2(J,Y){var K=J.map(function(Z){return Z.activeState.value});return new H1(K,Y||0)}function gz(J){var Y=this,K="latn",Z=this.tokenizer.getRangeTokens(J),X=o2(Z);X.context.forEach(function(Q,W){X.setCurrentIndex(W);var z=Y.query.lookupFeature({tag:"liga",script:K,contextParams:X});if(z.length)z.forEach(function($){return T9($,Z,W)}),X=o2(Z)})}function B1(J){this.baseDir=J||"ltr",this.tokenizer=new _0,this.featuresTags={}}B1.prototype.setText=function(J){this.text=J};B1.prototype.contextChecks={latinWordCheck:kz,arabicWordCheck:jz,arabicSentenceCheck:Ez};function q9(J){var Y=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,Y.startCheck,Y.endCheck)}function yz(){return q9.call(this,"latinWord"),q9.call(this,"arabicWord"),q9.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function hz(){var J=this,Y=this.tokenizer.getContextRanges("arabicSentence");Y.forEach(function(K){var Z=J.tokenizer.getRangeTokens(K);J.tokenizer.replaceRange(K.startIndex,K.endOffset,Z.reverse())})}B1.prototype.registerFeatures=function(J,Y){var K=this,Z=Y.filter(function(X){return K.query.supports({script:J,tag:X})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=Z;else this.featuresTags[J]=this.featuresTags[J].concat(Z)};B1.prototype.applyFeatures=function(J,Y){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new a0(J);for(var K=0;K<Y.length;K++){var Z=Y[K];if(!this.query.supports({script:Z.script}))continue;this.registerFeatures(Z.script,Z.tags)}};B1.prototype.registerModifier=function(J,Y,K){this.tokenizer.registerModifier(J,Y,K)};function P9(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function xz(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;P9.call(this);var K=this.tokenizer.getContextRanges("arabicWord");K.forEach(function(Z){Tz.call(J,Z)})}function bz(){var J=this,Y="arab";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("rlig")===-1)return;P9.call(this);var Z=this.tokenizer.getContextRanges("arabicWord");Z.forEach(function(X){Pz.call(J,X)})}function fz(){var J=this,Y="latn";if(!this.featuresTags.hasOwnProperty(Y))return;var K=this.featuresTags[Y];if(K.indexOf("liga")===-1)return;P9.call(this);var Z=this.tokenizer.getContextRanges("latinWord");Z.forEach(function(X){gz.call(J,X)})}B1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};B1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))xz.call(this),bz.call(this);if(this.checkContextReady("latinWord"))fz.call(this);if(this.checkContextReady("arabicSentence"))hz.call(this)};B1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),yz.call(this),this.applyFeaturesToContexts()};B1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};B1.prototype.getTextGlyphs=function(J){this.processText(J);var Y=[];for(var K=0;K<this.tokenizer.tokens.length;K++){var Z=this.tokenizer.tokens[K];if(Z.state.deleted)continue;var X=Z.activeState.value;Y.push(Array.isArray(X)?X[0]:X)}return Y};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)m5(J.familyName,"When creating a new Font object, familyName is required."),m5(J.styleName,"When creating a new Font object, styleName is required."),m5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),m5(J.ascender,"When creating a new Font object, ascender is required."),m5(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new I1.GlyphSet(this,J.glyphs||[]),this.encoding=new QJ(this),this.position=new i5(this),this.substitution=new s0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new GJ(this)}})}m0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};m0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};m0.prototype.charToGlyph=function(J){var Y=this.charToGlyphIndex(J),K=this.glyphs.get(Y);if(!K)K=this.glyphs.get(0);return K};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(Y){if(Y.script==="latn")return{script:"latn",tags:Y.tags.filter(function(K){return J[K]})};else return Y})};m0.prototype.stringToGlyphs=function(J,Y){var K=this,Z=new B1,X=function(H){return K.charToGlyphIndex(H.char)};Z.registerModifier("glyphIndex",null,X);var Q=Y?this.updateFeatures(Y.features):this.defaultRenderOptions.features;Z.applyFeatures(this,Q);var W=Z.getTextGlyphs(J),z=W.length,$=Array(z),w=this.glyphs.get(0);for(var U=0;U<z;U+=1)$[U]=this.glyphs.get(W[U])||w;return $};m0.prototype.getKerningValue=function(J,Y){J=J.index||J,Y=Y.index||Y;var K=this.position.defaultKerningTables;if(K)return this.position.getKerningValue(K,J,Y);return this.kerningPairs[J+","+Y]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,Y,K,Z,X,Q){Y=Y!==void 0?Y:0,K=K!==void 0?K:0,Z=Z!==void 0?Z:72,X=Object.assign({},this.defaultRenderOptions,X);var W=1/this.unitsPerEm*Z,z=this.stringToGlyphs(J,X),$;if(X.kerning){var w=X.script||this.position.getDefaultScriptName();$=this.position.getKerningTables(w,X.language)}for(var U=0;U<z.length;U+=1){var H=z[U];if(Q.call(this,H,Y,K,Z,X),H.advanceWidth)Y+=H.advanceWidth*W;if(X.kerning&&U<z.length-1){var V=$?this.position.getKerningValue($,H.index,z[U+1].index):this.getKerningValue(H,z[U+1]);Y+=V*W}if(X.letterSpacing)Y+=X.letterSpacing*Z;else if(X.tracking)Y+=X.tracking/1000*Z}return Y};m0.prototype.getPath=function(J,Y,K,Z,X){var Q=new f0;return this.forEachGlyph(J,Y,K,Z,X,function(W,z,$,w){var U=W.getPath(z,$,w,X,this);Q.extend(U)}),Q};m0.prototype.getPaths=function(J,Y,K,Z,X){var Q=[];return this.forEachGlyph(J,Y,K,Z,X,function(W,z,$,w){var U=W.getPath(z,$,w,X,this);Q.push(U)}),Q};m0.prototype.getAdvanceWidth=function(J,Y,K){return this.forEachGlyph(J,0,0,Y,K,function(){})};m0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};m0.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};m0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function mz(J,Y){Y.parseUShort(),J.length=Y.parseULong(),J.language=Y.parseULong();var K;J.groupCount=K=Y.parseULong(),J.glyphIndexMap={};for(var Z=0;Z<K;Z+=1){var X=Y.parseULong(),Q=Y.parseULong(),W=Y.parseULong();for(var z=X;z<=Q;z+=1)J.glyphIndexMap[z]=W,W++}}function dz(J,Y,K,Z,X){J.length=Y.parseUShort(),J.language=Y.parseUShort();var Q;J.segCount=Q=Y.parseUShort()>>1,Y.skip("uShort",3),J.glyphIndexMap={};var W=new r.Parser(K,Z+X+14),z=new r.Parser(K,Z+X+16+Q*2),$=new r.Parser(K,Z+X+16+Q*4),w=new r.Parser(K,Z+X+16+Q*6),U=Z+X+16+Q*8;for(var H=0;H<Q-1;H+=1){var V=void 0,A=W.parseUShort(),O=z.parseUShort(),B=$.parseShort(),M=w.parseUShort();for(var j=O;j<=A;j+=1){if(M!==0){if(U=w.offset+w.relativeOffset-2,U+=M,U+=(j-O)*2,V=r.getUShort(K,U),V!==0)V=V+B&65535}else V=j+B&65535;J.glyphIndexMap[j]=V}}}function uz(J,Y){var K={};K.version=r.getUShort(J,Y),H0.argument(K.version===0,"cmap table version should be 0."),K.numTables=r.getUShort(J,Y+2);var Z=-1;for(var X=K.numTables-1;X>=0;X-=1){var Q=r.getUShort(J,Y+4+X*8),W=r.getUShort(J,Y+4+X*8+2);if(Q===3&&(W===0||W===1||W===10)||Q===0&&(W===0||W===1||W===2||W===3||W===4)){Z=r.getULong(J,Y+4+X*8+4);break}}if(Z===-1)throw Error("No valid cmap sub-tables found.");var z=new r.Parser(J,Y+Z);if(K.format=z.parseUShort(),K.format===12)mz(K,z);else if(K.format===4)dz(K,z,J,Y,Z);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+K.format+").");return K}var cz={parse:uz};function _9(J){var Y;if(J.length<1240)Y=107;else if(J.length<33900)Y=1131;else Y=32768;return Y}function l1(J,Y,K){var Z=[],X=[],Q=r.getCard16(J,Y),W,z;if(Q!==0){var $=r.getByte(J,Y+2);W=Y+(Q+1)*$+2;var w=Y+3;for(var U=0;U<Q+1;U+=1)Z.push(r.getOffset(J,w,$)),w+=$;z=W+Z[Q]}else z=Y+2;for(var H=0;H<Z.length-1;H+=1){var V=r.getBytes(J,W+Z[H],W+Z[H+1]);if(K)V=K(V);X.push(V)}return{objects:X,startOffset:Y,endOffset:z}}function lz(J,Y){var K=[],Z=r.getCard16(J,Y),X,Q;if(Z!==0){var W=r.getByte(J,Y+2);X=Y+(Z+1)*W+2;var z=Y+3;for(var $=0;$<Z+1;$+=1)K.push(r.getOffset(J,z,W)),z+=W;Q=X+K[Z]}else Q=Y+2;return{offsets:K,startOffset:Y,endOffset:Q}}function pz(J,Y,K,Z,X){var Q=r.getCard16(K,Z),W=0;if(Q!==0){var z=r.getByte(K,Z+2);W=Z+(Q+1)*z+2}var $=r.getBytes(K,W+Y[J],W+Y[J+1]);if(X)$=X($);return $}function iz(J){var Y="",K=15,Z=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var X=J.parseByte(),Q=X>>4,W=X&15;if(Q===K)break;if(Y+=Z[Q],W===K)break;Y+=Z[W]}return parseFloat(Y)}function nz(J,Y){var K,Z,X,Q;if(Y===28)return K=J.parseByte(),Z=J.parseByte(),K<<8|Z;if(Y===29)return K=J.parseByte(),Z=J.parseByte(),X=J.parseByte(),Q=J.parseByte(),K<<24|Z<<16|X<<8|Q;if(Y===30)return iz(J);if(Y>=32&&Y<=246)return Y-139;if(Y>=247&&Y<=250)return K=J.parseByte(),(Y-247)*256+K+108;if(Y>=251&&Y<=254)return K=J.parseByte(),-(Y-251)*256-K-108;throw Error("Invalid b0 "+Y)}function oz(J){var Y={};for(var K=0;K<J.length;K+=1){var Z=J[K][0],X=J[K][1],Q=void 0;if(X.length===1)Q=X[0];else Q=X;if(Y.hasOwnProperty(Z)&&!isNaN(Y[Z]))throw Error("Object "+Y+" already has key "+Z);Y[Z]=Q}return Y}function NJ(J,Y,K){Y=Y!==void 0?Y:0;var Z=new r.Parser(J,Y),X=[],Q=[];K=K!==void 0?K:J.length;while(Z.relativeOffset<K){var W=Z.parseByte();if(W<=21){if(W===12)W=1200+Z.parseByte();X.push([W,Q]),Q=[]}else Q.push(nz(Z,W))}return oz(X)}function u5(J,Y){if(Y<=390)Y=AW[Y];else Y=J[Y-391];return Y}function qJ(J,Y,K){var Z={},X;for(var Q=0;Q<Y.length;Q+=1){var W=Y[Q];if(Array.isArray(W.type)){var z=[];z.length=W.type.length;for(var $=0;$<W.type.length;$++){if(X=J[W.op]!==void 0?J[W.op][$]:void 0,X===void 0)X=W.value!==void 0&&W.value[$]!==void 0?W.value[$]:null;if(W.type[$]==="SID")X=u5(K,X);z[$]=X}Z[W.name]=z}else{if(X=J[W.op],X===void 0)X=W.value!==void 0?W.value:null;if(W.type==="SID")X=u5(K,X);Z[W.name]=X}}return Z}function rz(J,Y){var K={};return K.formatMajor=r.getCard8(J,Y),K.formatMinor=r.getCard8(J,Y+1),K.size=r.getCard8(J,Y+2),K.offsetSize=r.getCard8(J,Y+3),K.startOffset=Y,K.endOffset=Y+4,K}var sz=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[0.001,0,0,0.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],az=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function tz(J,Y){var K=NJ(J,0,J.byteLength);return qJ(K,sz,Y)}function EJ(J,Y,K,Z){var X=NJ(J,Y,K);return qJ(X,az,Z)}function r2(J,Y,K,Z){var X=[];for(var Q=0;Q<K.length;Q+=1){var W=new DataView(new Uint8Array(K[Q]).buffer),z=tz(W,Z);z._subrs=[],z._subrsBias=0,z._defaultWidthX=0,z._nominalWidthX=0;var $=z.private[0],w=z.private[1];if($!==0&&w!==0){var U=EJ(J,w+Y,$,Z);if(z._defaultWidthX=U.defaultWidthX,z._nominalWidthX=U.nominalWidthX,U.subrs!==0){var H=w+U.subrs,V=l1(J,H+Y);z._subrs=V.objects,z._subrsBias=_9(z._subrs)}z._privateDict=U}X.push(z)}return X}function ez(J,Y,K,Z){var X,Q,W=new r.Parser(J,Y);K-=1;var z=[".notdef"],$=W.parseCard8();if($===0)for(var w=0;w<K;w+=1)X=W.parseSID(),z.push(u5(Z,X));else if($===1)while(z.length<=K){X=W.parseSID(),Q=W.parseCard8();for(var U=0;U<=Q;U+=1)z.push(u5(Z,X)),X+=1}else if($===2)while(z.length<=K){X=W.parseSID(),Q=W.parseCard16();for(var H=0;H<=Q;H+=1)z.push(u5(Z,X)),X+=1}else throw Error("Unknown charset format "+$);return z}function Jw(J,Y,K){var Z,X={},Q=new r.Parser(J,Y),W=Q.parseCard8();if(W===0){var z=Q.parseCard8();for(var $=0;$<z;$+=1)Z=Q.parseCard8(),X[Z]=$}else if(W===1){var w=Q.parseCard8();Z=1;for(var U=0;U<w;U+=1){var H=Q.parseCard8(),V=Q.parseCard8();for(var A=H;A<=H+V;A+=1)X[A]=Z,Z+=1}}else throw Error("Unknown encoding format "+W);return new P8(X,K)}function s2(J,Y,K){var Z,X,Q,W,z=new f0,$=[],w=0,U=!1,H=!1,V=0,A=0,O,B,M,j;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[Y.index],E=J.tables.cff.topDict._fdArray[N];O=E._subrs,B=E._subrsBias,M=E._defaultWidthX,j=E._nominalWidthX}else O=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,M=J.tables.cff.topDict._defaultWidthX,j=J.tables.cff.topDict._nominalWidthX;var I=M;function F(D,R){if(H)z.closePath();z.moveTo(D,R),H=!0}function q(){var D=$.length%2!==0;if(D&&!U)I=$.shift()+j;w+=$.length>>1,$.length=0,U=!0}function T(D){var R,y,u,i,p,S,v,C,m,c,a,n,f=0;while(f<D.length){var d=D[f];switch(f+=1,d){case 1:q();break;case 3:q();break;case 4:if($.length>1&&!U)I=$.shift()+j,U=!0;A+=$.pop(),F(V,A);break;case 5:while($.length>0)V+=$.shift(),A+=$.shift(),z.lineTo(V,A);break;case 6:while($.length>0){if(V+=$.shift(),z.lineTo(V,A),$.length===0)break;A+=$.shift(),z.lineTo(V,A)}break;case 7:while($.length>0){if(A+=$.shift(),z.lineTo(V,A),$.length===0)break;V+=$.shift(),z.lineTo(V,A)}break;case 8:while($.length>0)Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 10:if(p=$.pop()+B,S=O[p],S)T(S);break;case 11:return;case 12:switch(d=D[f],f+=1,d){case 35:Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W+$.shift(),m=v+$.shift(),c=C+$.shift(),a=m+$.shift(),n=c+$.shift(),V=a+$.shift(),A=n+$.shift(),$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,c,a,n,V,A);break;case 34:Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W,m=v+$.shift(),c=W,a=m+$.shift(),n=A,V=a+$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,c,a,n,V,A);break;case 36:Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W,m=v+$.shift(),c=W,a=m+$.shift(),n=c+$.shift(),V=a+$.shift(),z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,c,a,n,V,A);break;case 37:if(Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),v=Q+$.shift(),C=W+$.shift(),m=v+$.shift(),c=C+$.shift(),a=m+$.shift(),n=c+$.shift(),Math.abs(a-V)>Math.abs(n-A))V=a+$.shift();else A=n+$.shift();z.curveTo(Z,X,Q,W,v,C),z.curveTo(m,c,a,n,V,A);break;default:console.log("Glyph "+Y.index+": unknown operator 1200"+d),$.length=0}break;case 14:if($.length>0&&!U)I=$.shift()+j,U=!0;if(H)z.closePath(),H=!1;break;case 18:q();break;case 19:case 20:q(),f+=w+7>>3;break;case 21:if($.length>2&&!U)I=$.shift()+j,U=!0;A+=$.pop(),V+=$.pop(),F(V,A);break;case 22:if($.length>1&&!U)I=$.shift()+j,U=!0;V+=$.pop(),F(V,A);break;case 23:q();break;case 24:while($.length>2)Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);V+=$.shift(),A+=$.shift(),z.lineTo(V,A);break;case 25:while($.length>6)V+=$.shift(),A+=$.shift(),z.lineTo(V,A);Z=V+$.shift(),X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 26:if($.length%2)V+=$.shift();while($.length>0)Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q,A=W+$.shift(),z.curveTo(Z,X,Q,W,V,A);break;case 27:if($.length%2)A+=$.shift();while($.length>0)Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W,z.curveTo(Z,X,Q,W,V,A);break;case 28:R=D[f],y=D[f+1],$.push((R<<24|y<<16)>>16),f+=2;break;case 29:if(p=$.pop()+J.gsubrsBias,S=J.gsubrs[p],S)T(S);break;case 30:while($.length>0){if(Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A),$.length===0)break;Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),A=W+$.shift(),V=Q+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A)}break;case 31:while($.length>0){if(Z=V+$.shift(),X=A,Q=Z+$.shift(),W=X+$.shift(),A=W+$.shift(),V=Q+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A),$.length===0)break;Z=V,X=A+$.shift(),Q=Z+$.shift(),W=X+$.shift(),V=Q+$.shift(),A=W+($.length===1?$.shift():0),z.curveTo(Z,X,Q,W,V,A)}break;default:if(d<32)console.log("Glyph "+Y.index+": unknown operator "+d);else if(d<247)$.push(d-139);else if(d<251)R=D[f],f+=1,$.push((d-247)*256+R+108);else if(d<255)R=D[f],f+=1,$.push(-(d-251)*256-R-108);else R=D[f],y=D[f+1],u=D[f+2],i=D[f+3],f+=4,$.push((R<<24|y<<16|u<<8|i)/65536)}}}return T(K),Y.advanceWidth=I,z}function Yw(J,Y,K,Z){var X=[],Q,W=new r.Parser(J,Y),z=W.parseCard8();if(z===0)for(var $=0;$<K;$++){if(Q=W.parseCard8(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");X.push(Q)}else if(z===3){var w=W.parseCard16(),U=W.parseCard16();if(U!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var H;for(var V=0;V<w;V++){if(Q=W.parseCard8(),H=W.parseCard16(),Q>=Z)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+Z+")");if(H>K)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+H);for(;U<H;U++)X.push(Q);U=H}if(H!==K)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+H)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+z);return X}function Kw(J,Y,K,Z){K.tables.cff={};var X=rz(J,Y),Q=l1(J,X.endOffset,r.bytesToString),W=l1(J,Q.endOffset),z=l1(J,W.endOffset,r.bytesToString),$=l1(J,z.endOffset);K.gsubrs=$.objects,K.gsubrsBias=_9(K.gsubrs);var w=r2(J,Y,W.objects,z.objects);if(w.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+w.length);var U=w[0];if(K.tables.cff.topDict=U,U._privateDict)K.defaultWidthX=U._privateDict.defaultWidthX,K.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)K.isCIDFont=!0;if(K.isCIDFont){var{fdArray:H,fdSelect:V}=U;if(H===0||V===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");H+=Y;var A=l1(J,H),O=r2(J,Y,A.objects,z.objects);U._fdArray=O,V+=Y,U._fdSelect=Yw(J,V,K.numGlyphs,O.length)}var B=Y+U.private[1],M=EJ(J,B,U.private[0],z.objects);if(K.defaultWidthX=M.defaultWidthX,K.nominalWidthX=M.nominalWidthX,M.subrs!==0){var j=B+M.subrs,N=l1(J,j);K.subrs=N.objects,K.subrsBias=_9(K.subrs)}else K.subrs=[],K.subrsBias=0;var E;if(Z.lowMemory)E=lz(J,Y+U.charStrings),K.nGlyphs=E.offsets.length;else E=l1(J,Y+U.charStrings),K.nGlyphs=E.objects.length;var I=ez(J,Y+U.charset,K.nGlyphs,z.objects);if(U.encoding===0)K.cffEncoding=new P8(BW,I);else if(U.encoding===1)K.cffEncoding=new P8(GW,I);else K.cffEncoding=Jw(J,Y+U.encoding,I);if(K.encoding=K.encoding||K.cffEncoding,K.glyphs=new I1.GlyphSet(K),Z.lowMemory)K._push=function(T){var D=pz(T,E.offsets,J,Y+U.charStrings);K.glyphs.push(T,I1.cffGlyphLoader(K,T,s2,D))};else for(var F=0;F<K.nGlyphs;F+=1){var q=E.objects[F];K.glyphs.push(F,I1.cffGlyphLoader(K,F,s2,q))}}var Zw={parse:Kw};function Xw(J,Y,K){var Z={},X=new r.Parser(J,Y);return Z.tag=X.parseTag(),Z.minValue=X.parseFixed(),Z.defaultValue=X.parseFixed(),Z.maxValue=X.parseFixed(),X.skip("uShort",1),Z.name=K[X.parseUShort()]||{},Z}function Qw(J,Y,K,Z){var X={},Q=new r.Parser(J,Y);X.name=Z[Q.parseUShort()]||{},Q.skip("uShort",1),X.coordinates={};for(var W=0;W<K.length;++W)X.coordinates[K[W].tag]=Q.parseFixed();return X}function Ww(J,Y,K){var Z=new r.Parser(J,Y),X=Z.parseULong();H0.argument(X===65536,"Unsupported fvar table version.");var Q=Z.parseOffset16();Z.skip("uShort",1);var W=Z.parseUShort(),z=Z.parseUShort(),$=Z.parseUShort(),w=Z.parseUShort(),U=[];for(var H=0;H<W;H++)U.push(Xw(J,Y+Q+H*z,K));var V=[],A=Y+Q+W*z;for(var O=0;O<$;O++)V.push(Qw(J,A+O*w,U,K));return{axes:U,instances:V}}var $w={parse:Ww},zw=function(){return{coverage:this.parsePointer(g.coverage),attachPoints:this.parseList(g.pointer(g.uShortList))}},ww=function(){var J=this.parseUShort();if(H0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},Uw=function(){return this.parseList(g.pointer(ww))},Hw=function(){return{coverage:this.parsePointer(g.coverage),ligGlyphs:this.parseList(g.pointer(Uw))}},Vw=function(){return this.parseUShort(),this.parseList(g.pointer(g.coverage))};function Aw(J,Y){Y=Y||0;var K=new g(J,Y),Z=K.parseVersion(1);H0.argument(Z===1||Z===1.2||Z===1.3,"Unsupported GDEF table version.");var X={version:Z,classDef:K.parsePointer(g.classDef),attachList:K.parsePointer(zw),ligCaretList:K.parsePointer(Hw),markAttachClassDef:K.parsePointer(g.classDef)};if(Z>=1.2)X.markGlyphSets=K.parsePointer(Vw);return X}var Bw={parse:Aw},V1=[,,,,,,,,,,];V1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{posFormat:1,coverage:this.parsePointer(g.coverage),value:this.parseValueRecord()};else if(K===2)return{posFormat:2,coverage:this.parsePointer(g.coverage),values:this.parseValueRecordList()};H0.assert(!1,"0x"+Y.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};V1[2]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();H0.assert(K===1||K===2,"0x"+Y.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var Z=this.parsePointer(g.coverage),X=this.parseUShort(),Q=this.parseUShort();if(K===1)return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,pairSets:this.parseList(g.pointer(g.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}})))};else if(K===2){var W=this.parsePointer(g.classDef),z=this.parsePointer(g.classDef),$=this.parseUShort(),w=this.parseUShort();return{posFormat:K,coverage:Z,valueFormat1:X,valueFormat2:Q,classDef1:W,classDef2:z,class1Count:$,class2Count:w,classRecords:this.parseList($,g.list(w,function(){return{value1:this.parseValueRecord(X),value2:this.parseValueRecord(Q)}}))}}};V1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};V1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};V1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};V1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};V1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};V1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};V1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function Gw(J,Y){Y=Y||0;var K=new g(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GPOS table version "+Z),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(V1),variations:K.parseFeatureVariationsList()}}var Ow={parse:Gw},A1=[,,,,,,,,,];A1[1]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(g.coverage),deltaGlyphId:this.parseUShort()};else if(K===2)return{substFormat:2,coverage:this.parsePointer(g.coverage),substitute:this.parseOffset16List()};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 1 format must be 1 or 2.")};A1[2]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(g.coverage),sequences:this.parseListOfLists()}};A1[3]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(g.coverage),alternateSets:this.parseListOfLists()}};A1[4]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB ligature table identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(g.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var E5={sequenceIndex:g.uShort,lookupListIndex:g.uShort};A1[5]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:K,coverage:this.parsePointer(g.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,E5)}})};else if(K===2)return{substFormat:K,coverage:this.parsePointer(g.coverage),classDef:this.parsePointer(g.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),W=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(W,E5)}})};else if(K===3){var Z=this.parseUShort(),X=this.parseUShort();return{substFormat:K,coverages:this.parseList(Z,g.pointer(g.coverage)),lookupRecords:this.parseRecordList(X,E5)}}H0.assert(!1,"0x"+Y.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};A1[6]=function(){var Y=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{substFormat:1,coverage:this.parsePointer(g.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(K===2)return{substFormat:2,coverage:this.parsePointer(g.coverage),backtrackClassDef:this.parsePointer(g.classDef),inputClassDef:this.parsePointer(g.classDef),lookaheadClassDef:this.parsePointer(g.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(E5)}})};else if(K===3)return{substFormat:3,backtrackCoverage:this.parseList(g.pointer(g.coverage)),inputCoverage:this.parseList(g.pointer(g.coverage)),lookaheadCoverage:this.parseList(g.pointer(g.coverage)),lookupRecords:this.parseRecordList(E5)};H0.assert(!1,"0x"+Y.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};A1[7]=function(){var Y=this.parseUShort();H0.argument(Y===1,"GSUB Extension Substitution subtable identifier-format must be 1");var K=this.parseUShort(),Z=new g(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:K,extension:A1[K].call(Z)}};A1[8]=function(){var Y=this.parseUShort();return H0.argument(Y===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:Y,coverage:this.parsePointer(g.coverage),backtrackCoverage:this.parseList(g.pointer(g.coverage)),lookaheadCoverage:this.parseList(g.pointer(g.coverage)),substitutes:this.parseUShortList()}};function Mw(J,Y){Y=Y||0;var K=new g(J,Y),Z=K.parseVersion(1);if(H0.argument(Z===1||Z===1.1,"Unsupported GSUB table version."),Z===1)return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1)};else return{version:Z,scripts:K.parseScriptList(),features:K.parseFeatureList(),lookups:K.parseLookupList(A1),variations:K.parseFeatureVariationsList()}}var Lw={parse:Mw};function jw(J,Y){var K={},Z=new r.Parser(J,Y);return K.version=Z.parseVersion(),K.fontRevision=Math.round(Z.parseFixed()*1000)/1000,K.checkSumAdjustment=Z.parseULong(),K.magicNumber=Z.parseULong(),H0.argument(K.magicNumber===1594834165,"Font header has wrong magic number."),K.flags=Z.parseUShort(),K.unitsPerEm=Z.parseUShort(),K.created=Z.parseLongDateTime(),K.modified=Z.parseLongDateTime(),K.xMin=Z.parseShort(),K.yMin=Z.parseShort(),K.xMax=Z.parseShort(),K.yMax=Z.parseShort(),K.macStyle=Z.parseUShort(),K.lowestRecPPEM=Z.parseUShort(),K.fontDirectionHint=Z.parseShort(),K.indexToLocFormat=Z.parseShort(),K.glyphDataFormat=Z.parseShort(),K}var Nw={parse:jw};function qw(J,Y){var K={},Z=new r.Parser(J,Y);return K.version=Z.parseVersion(),K.ascender=Z.parseShort(),K.descender=Z.parseShort(),K.lineGap=Z.parseShort(),K.advanceWidthMax=Z.parseUShort(),K.minLeftSideBearing=Z.parseShort(),K.minRightSideBearing=Z.parseShort(),K.xMaxExtent=Z.parseShort(),K.caretSlopeRise=Z.parseShort(),K.caretSlopeRun=Z.parseShort(),K.caretOffset=Z.parseShort(),Z.relativeOffset+=8,K.metricDataFormat=Z.parseShort(),K.numberOfHMetrics=Z.parseUShort(),K}var Ew={parse:qw};function Fw(J,Y,K,Z,X){var Q,W,z=new r.Parser(J,Y);for(var $=0;$<Z;$+=1){if($<K)Q=z.parseUShort(),W=z.parseShort();var w=X.get($);w.advanceWidth=Q,w.leftSideBearing=W}}function _w(J,Y,K,Z,X){J._hmtxTableData={};var Q,W,z=new r.Parser(Y,K);for(var $=0;$<X;$+=1){if($<Z)Q=z.parseUShort(),W=z.parseShort();J._hmtxTableData[$]={advanceWidth:Q,leftSideBearing:W}}}function Iw(J,Y,K,Z,X,Q,W){if(W.lowMemory)_w(J,Y,K,Z,X);else Fw(Y,K,Z,X,Q)}var Dw={parse:Iw};function Rw(J){var Y={};J.skip("uShort");var K=J.parseUShort();H0.argument(K===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var Z=J.parseUShort();J.skip("uShort",3);for(var X=0;X<Z;X+=1){var Q=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();Y[Q+","+W]=z}return Y}function Cw(J){var Y={};J.skip("uShort");var K=J.parseULong();if(K>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var Z=J.parseUShort(),X=Z&255;if(J.skip("uShort"),X===0){var Q=J.parseUShort();J.skip("uShort",3);for(var W=0;W<Q;W+=1){var z=J.parseUShort(),$=J.parseUShort(),w=J.parseShort();Y[z+","+$]=w}}return Y}function Tw(J,Y){var K=new r.Parser(J,Y),Z=K.parseUShort();if(Z===0)return Rw(K);else if(Z===1)return Cw(K);else throw Error("Unsupported kern table version ("+Z+").")}var Pw={parse:Tw};function Sw(J,Y){var K=new r.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported ltag table version."),K.skip("uLong",1);var X=K.parseULong(),Q=[];for(var W=0;W<X;W++){var z="",$=Y+K.parseUShort(),w=K.parseUShort();for(var U=$;U<$+w;++U)z+=String.fromCharCode(J.getInt8(U));Q.push(z)}return Q}var vw={parse:Sw};function kw(J,Y,K,Z){var X=new r.Parser(J,Y),Q=Z?X.parseUShort:X.parseULong,W=[];for(var z=0;z<K+1;z+=1){var $=Q.call(X);if(Z)$*=2;W.push($)}return W}var gw={parse:kw};function yw(J,Y){var K={},Z=new r.Parser(J,Y);if(K.version=Z.parseVersion(),K.numGlyphs=Z.parseUShort(),K.version===1)K.maxPoints=Z.parseUShort(),K.maxContours=Z.parseUShort(),K.maxCompositePoints=Z.parseUShort(),K.maxCompositeContours=Z.parseUShort(),K.maxZones=Z.parseUShort(),K.maxTwilightPoints=Z.parseUShort(),K.maxStorage=Z.parseUShort(),K.maxFunctionDefs=Z.parseUShort(),K.maxInstructionDefs=Z.parseUShort(),K.maxStackElements=Z.parseUShort(),K.maxSizeOfInstructions=Z.parseUShort(),K.maxComponentElements=Z.parseUShort(),K.maxComponentDepth=Z.parseUShort();return K}var hw={parse:yw};function xw(J,Y){var K={},Z=new r.Parser(J,Y);K.version=Z.parseUShort(),K.xAvgCharWidth=Z.parseShort(),K.usWeightClass=Z.parseUShort(),K.usWidthClass=Z.parseUShort(),K.fsType=Z.parseUShort(),K.ySubscriptXSize=Z.parseShort(),K.ySubscriptYSize=Z.parseShort(),K.ySubscriptXOffset=Z.parseShort(),K.ySubscriptYOffset=Z.parseShort(),K.ySuperscriptXSize=Z.parseShort(),K.ySuperscriptYSize=Z.parseShort(),K.ySuperscriptXOffset=Z.parseShort(),K.ySuperscriptYOffset=Z.parseShort(),K.yStrikeoutSize=Z.parseShort(),K.yStrikeoutPosition=Z.parseShort(),K.sFamilyClass=Z.parseShort(),K.panose=[];for(var X=0;X<10;X++)K.panose[X]=Z.parseByte();if(K.ulUnicodeRange1=Z.parseULong(),K.ulUnicodeRange2=Z.parseULong(),K.ulUnicodeRange3=Z.parseULong(),K.ulUnicodeRange4=Z.parseULong(),K.achVendID=String.fromCharCode(Z.parseByte(),Z.parseByte(),Z.parseByte(),Z.parseByte()),K.fsSelection=Z.parseUShort(),K.usFirstCharIndex=Z.parseUShort(),K.usLastCharIndex=Z.parseUShort(),K.sTypoAscender=Z.parseShort(),K.sTypoDescender=Z.parseShort(),K.sTypoLineGap=Z.parseShort(),K.usWinAscent=Z.parseUShort(),K.usWinDescent=Z.parseUShort(),K.version>=1)K.ulCodePageRange1=Z.parseULong(),K.ulCodePageRange2=Z.parseULong();if(K.version>=2)K.sxHeight=Z.parseShort(),K.sCapHeight=Z.parseShort(),K.usDefaultChar=Z.parseUShort(),K.usBreakChar=Z.parseUShort(),K.usMaxContent=Z.parseUShort();return K}var bw={parse:xw};function fw(J,Y){var K={},Z=new r.Parser(J,Y);switch(K.version=Z.parseVersion(),K.italicAngle=Z.parseFixed(),K.underlinePosition=Z.parseShort(),K.underlineThickness=Z.parseShort(),K.isFixedPitch=Z.parseULong(),K.minMemType42=Z.parseULong(),K.maxMemType42=Z.parseULong(),K.minMemType1=Z.parseULong(),K.maxMemType1=Z.parseULong(),K.names=[],K.version){case 1:break;case 2:K.numberOfGlyphs=Z.parseUShort(),K.glyphNameIndex=Array(K.numberOfGlyphs);for(var X=0;X<K.numberOfGlyphs;X++)K.glyphNameIndex[X]=Z.parseUShort();break;case 2.5:K.numberOfGlyphs=Z.parseUShort(),K.offset=Array(K.numberOfGlyphs);for(var Q=0;Q<K.numberOfGlyphs;Q++)K.offset[Q]=Z.parseChar();break}return K}var mw={parse:fw},g8={};g8.UTF8=function(J,Y,K){var Z=[],X=K;for(var Q=0;Q<X;Q++,Y+=1)Z[Q]=J.getUint8(Y);return String.fromCharCode.apply(null,Z)};g8.UTF16=function(J,Y,K){var Z=[],X=K/2;for(var Q=0;Q<X;Q++,Y+=2)Z[Q]=J.getUint16(Y);return String.fromCharCode.apply(null,Z)};var dw={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A"+"\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8"+"\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9"+"\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7"+"\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145"+"\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"};g8.MACSTRING=function(J,Y,K,Z){var X=dw[Z];if(X===void 0)return;var Q="";for(var W=0;W<K;W++){var z=J.getUint8(Y+W);if(z<=127)Q+=String.fromCharCode(z);else Q+=X[z&127]}return Q};function uw(J,Y){var K=new r.Parser(J,Y),Z=K.parseULong();H0.argument(Z===1,"Unsupported META table version."),K.parseULong(),K.parseULong();var X=K.parseULong(),Q={};for(var W=0;W<X;W++){var z=K.parseTag(),$=K.parseULong(),w=K.parseULong(),U=g8.UTF8(J,Y+$,w);Q[z]=U}return Q}var cw={parse:uw};function a2(J,Y){var K=[],Z=12;for(var X=0;X<Y;X+=1){var Q=r.getTag(J,Z),W=r.getULong(J,Z+4),z=r.getULong(J,Z+8),$=r.getULong(J,Z+12);K.push({tag:Q,checksum:W,offset:z,length:$,compression:!1}),Z+=16}return K}function lw(J,Y){var K=[],Z=44;for(var X=0;X<Y;X+=1){var Q=r.getTag(J,Z),W=r.getULong(J,Z+4),z=r.getULong(J,Z+8),$=r.getULong(J,Z+12),w=void 0;if(z<$)w="WOFF";else w=!1;K.push({tag:Q,offset:W,compression:w,compressedLength:z,length:$}),Z+=20}return K}function P0(J,Y){if(Y.compression==="WOFF"){var K=new Uint8Array(J.buffer,Y.offset+2,Y.compressedLength-2),Z=new Uint8Array(Y.length);if(UW(K,Z),Z.byteLength!==Y.length)throw Error("Decompression error: "+Y.tag+" decompressed length doesn't match recorded length");var X=new DataView(Z.buffer,0);return{data:X,offset:0}}else return{data:J,offset:Y.offset}}function pw(J,Y){Y=Y===void 0||Y===null?{}:Y;var K,Z=new m0({empty:!0}),X=new DataView(J,0),Q,W=[],z=r.getTag(X,0);if(z===String.fromCharCode(0,1,0,0)||z==="true"||z==="typ1")Z.outlinesFormat="truetype",Q=r.getUShort(X,4),W=a2(X,Q);else if(z==="OTTO")Z.outlinesFormat="cff",Q=r.getUShort(X,4),W=a2(X,Q);else if(z==="wOFF"){var $=r.getTag(X,4);if($===String.fromCharCode(0,1,0,0))Z.outlinesFormat="truetype";else if($==="OTTO")Z.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+z);Q=r.getUShort(X,12),W=lw(X,Q)}else throw Error("Unsupported OpenType signature "+z);var w,U,H,V,A,O,B,M,j,N,E;for(var I=0;I<Q;I+=1){var F=W[I],q=void 0;switch(F.tag){case"cmap":q=P0(X,F),Z.tables.cmap=cz.parse(q.data,q.offset),Z.encoding=new WJ(Z.tables.cmap);break;case"cvt ":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":U=F;break;case"fpgm":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.fpgm=E.parseByteList(F.length);break;case"head":q=P0(X,F),Z.tables.head=Nw.parse(q.data,q.offset),Z.unitsPerEm=Z.tables.head.unitsPerEm,K=Z.tables.head.indexToLocFormat;break;case"hhea":q=P0(X,F),Z.tables.hhea=Ew.parse(q.data,q.offset),Z.ascender=Z.tables.hhea.ascender,Z.descender=Z.tables.hhea.descender,Z.numberOfHMetrics=Z.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":q=P0(X,F),ltagTable=vw.parse(q.data,q.offset);break;case"maxp":q=P0(X,F),Z.tables.maxp=hw.parse(q.data,q.offset),Z.numGlyphs=Z.tables.maxp.numGlyphs;break;case"OS/2":q=P0(X,F),Z.tables.os2=bw.parse(q.data,q.offset);break;case"post":q=P0(X,F),Z.tables.post=mw.parse(q.data,q.offset);break;case"prep":q=P0(X,F),E=new r.Parser(q.data,q.offset),Z.tables.prep=E.parseByteList(F.length);break;case"glyf":H=F;break;case"loca":j=F;break;case"CFF ":w=F;break;case"kern":M=F;break;case"GDEF":V=F;break;case"GPOS":A=F;break;case"GSUB":O=F;break;case"meta":N=F;break}}if(H&&j){var T=K===0,D=P0(X,j),R=gw.parse(D.data,D.offset,Z.numGlyphs,T),y=P0(X,H);Z.glyphs=VJ.parse(y.data,y.offset,R,Z,Y)}else if(w){var u=P0(X,w);Zw.parse(u.data,u.offset,Z,Y)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var i=P0(X,B);if(Dw.parse(Z,i.data,i.offset,Z.numberOfHMetrics,Z.numGlyphs,Z.glyphs,Y),LW(Z,Y),M){var p=P0(X,M);Z.kerningPairs=Pw.parse(p.data,p.offset)}else Z.kerningPairs={};if(V){var S=P0(X,V);Z.tables.gdef=Bw.parse(S.data,S.offset)}if(A){var v=P0(X,A);Z.tables.gpos=Ow.parse(v.data,v.offset),Z.position.init()}if(O){var C=P0(X,O);Z.tables.gsub=Lw.parse(C.data,C.offset)}if(U){var m=P0(X,U);Z.tables.fvar=$w.parse(m.data,m.offset,Z.names)}if(N){var c=P0(X,N);Z.tables.meta=cw.parse(c.data,c.offset),Z.metas=Z.tables.meta}return Z}function iw(){}function nw(){}var ow=Object.freeze({__proto__:null,Font:m0,Glyph:v1,Path:f0,_parse:r,parse:pw,load:iw,loadSync:nw}),y8=ow;var{create:rw,defineProperty:J6,getOwnPropertyDescriptor:sw,getOwnPropertyNames:aw,getPrototypeOf:tw}=Object,ew=Object.prototype.hasOwnProperty,r9=(J,Y)=>()=>(J&&(Y=J(J=0)),Y),e=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),s9=(J,Y)=>{for(var K in Y)J6(J,K,{get:Y[K],enumerable:!0})},rJ=(J,Y,K,Z)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let X of aw(Y))!ew.call(J,X)&&X!==K&&J6(J,X,{get:()=>Y[X],enumerable:!(Z=sw(Y,X))||Z.enumerable});return J},JU=(J,Y,K)=>(K=J!=null?rw(tw(J)):{},rJ(Y||!J||!J.__esModule?J6(K,"default",{value:J,enumerable:!0}):K,J)),t8=(J)=>rJ(J6({},"__esModule",{value:!0}),J),sJ={};s9(sJ,{getYogaModule:()=>YU});async function YU(){let{default:J}=await import("./chunk-3bw1jk21.js");return J()}var KU=r9(()=>{}),aJ=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(K=`${K}`,K==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(K))return K.replace(/^[+-]?/,(Z)=>Z==="-"?"":"-");if(K.includes("var(")||K.includes("calc("))return`calc(${K} * -1)`}}),ZU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});var Y=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),XU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K,Z){return K===void 0?Z:Array.isArray(K)?K:[...new Set(Z.filter((X)=>K!==!1&&K[X]!==!1).concat(Object.keys(K).filter((X)=>K[X]!==!1)))]}}),tJ=e((J,Y)=>{Y.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:K})=>({inherit:K.inherit,current:K.current,transparent:K.transparent,black:K.black,white:K.white,slate:K.slate,gray:K.gray,zinc:K.zinc,neutral:K.neutral,stone:K.stone,red:K.red,orange:K.orange,amber:K.amber,yellow:K.yellow,lime:K.lime,green:K.green,emerald:K.emerald,teal:K.teal,cyan:K.cyan,sky:K.sky,blue:K.blue,indigo:K.indigo,violet:K.violet,purple:K.purple,fuchsia:K.fuchsia,pink:K.pink,rose:K.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:K})=>K("blur"),backdropBrightness:({theme:K})=>K("brightness"),backdropContrast:({theme:K})=>K("contrast"),backdropGrayscale:({theme:K})=>K("grayscale"),backdropHueRotate:({theme:K})=>K("hueRotate"),backdropInvert:({theme:K})=>K("invert"),backdropOpacity:({theme:K})=>K("opacity"),backdropSaturate:({theme:K})=>K("saturate"),backdropSepia:({theme:K})=>K("sepia"),backgroundColor:({theme:K})=>K("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:K})=>K("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:K})=>({...K("colors"),DEFAULT:K("colors.gray.200","currentColor")}),borderOpacity:({theme:K})=>K("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:K})=>({...K("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:K})=>K("colors"),caretColor:({theme:K})=>K("colors"),accentColor:({theme:K})=>({...K("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:K})=>K("borderColor"),divideOpacity:({theme:K})=>K("borderOpacity"),divideWidth:({theme:K})=>K("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:K})=>K("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:K})=>K("spacing"),gradientColorStops:({theme:K})=>K("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:K})=>({auto:"auto",...K("spacing")}),maxHeight:({theme:K})=>({...K("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:K,breakpoints:Z})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...Z(K("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:K})=>K("spacing"),placeholderColor:({theme:K})=>K("colors"),placeholderOpacity:({theme:K})=>K("opacity"),outlineColor:({theme:K})=>K("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:K})=>({DEFAULT:K("colors.blue.500","#3b82f6"),...K("colors")}),ringOffsetColor:({theme:K})=>K("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:K})=>({DEFAULT:"0.5",...K("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:K})=>({...K("spacing")}),scrollPadding:({theme:K})=>K("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:K})=>({...K("spacing")}),stroke:({theme:K})=>K("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:K})=>K("colors"),textDecorationColor:({theme:K})=>K("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:K})=>({...K("spacing")}),textOpacity:({theme:K})=>K("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:K})=>({...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:K})=>({auto:"auto",...K("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),Y6={};s9(Y6,{default:()=>eJ});var eJ,a9=r9(()=>{eJ={info(J,Y){console.info(...Array.isArray(J)?[J]:[Y,J])},warn(J,Y){console.warn(...Array.isArray(J)?[J]:[Y,J])},risk(J,Y){console.error(...Array.isArray(J)?[J]:[Y,J])}}}),QU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=K((a9(),t8(Y6)));function K(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z({version:Q,from:W,to:z}){Y.default.warn(`${W}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${W}\` has been renamed to \`${z}\`.`,"Update your configuration file to silence this warning."])}var X={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return Z({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Z({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Z({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Z({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Z({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),WU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>Y});function Y(K,...Z){for(let W of Z){for(let z in W){var X;!(K==null||(X=K.hasOwnProperty)===null||X===void 0)&&X.call(K,z)||(K[z]=W[z])}for(let z of Object.getOwnPropertySymbols(W)){var Q;!(K==null||(Q=K.hasOwnProperty)===null||Q===void 0)&&Q.call(K,z)||(K[z]=W[z])}}return K}}),$U=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>Y});function Y(K){if(Array.isArray(K))return K;let Z=K.split("[").length-1,X=K.split("]").length-1;if(Z!==X)throw Error(`Path is invalid. Has unbalanced brackets: ${K}`);return K.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),zU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>X});var Y=Z((a9(),t8(Y6)));function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,z=new WeakMap;return(K=function($){return $?z:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var z=K(W);if(z&&z.has(Q))return z.get(Q);var $={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=w?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,z&&z.set(Q,$),$}function X(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((z)=>typeof z=="string"?!0:!(typeof(z==null?void 0:z.raw)!="string"||z!=null&&z.extension&&typeof(z==null?void 0:z.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((z)=>!["files","extract","transform"].includes(z)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((z)=>typeof z=="string"?!0:!(typeof(z==null?void 0:z.raw)!="string"||z!=null&&z.extension&&typeof(z==null?void 0:z.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let z of Object.values(Q.content.extract))if(typeof z!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let z of Object.values(Q.content.transform))if(typeof z!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||Y.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),Q.safelist=(()=>{var z;let{content:$,purge:w,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray($==null?void 0:$.safelist)?$.safelist:Array.isArray(w==null?void 0:w.safelist)?w.safelist:Array.isArray(w==null||(z=w.options)===null||z===void 0?void 0:z.safelist)?w.options.safelist:[]})(),typeof Q.prefix=="function")Y.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),Q.prefix="";else{var W;Q.prefix=(W=Q.prefix)!==null&&W!==void 0?W:""}Q.content={files:(()=>{let{content:z,purge:$}=Q;return Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.content:Array.isArray(z)?z:Array.isArray(z==null?void 0:z.content)?z.content:Array.isArray(z==null?void 0:z.files)?z.files:[]})(),extract:(()=>{let z=(()=>{var U,H,V,A,O,B,M,j,N,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!((H=Q.content)===null||H===void 0)&&H.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(A=V.extract)===null||A===void 0)&&A.DEFAULT?Q.purge.extract.DEFAULT:!((O=Q.content)===null||O===void 0||(B=O.extract)===null||B===void 0)&&B.DEFAULT?Q.content.extract.DEFAULT:!((M=Q.purge)===null||M===void 0||(j=M.options)===null||j===void 0)&&j.extractors?Q.purge.options.extractors:!((N=Q.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),$={},w=(()=>{var U,H,V,A;if(!((U=Q.purge)===null||U===void 0||(H=U.options)===null||H===void 0)&&H.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(A=V.options)===null||A===void 0)&&A.defaultExtractor)return Q.content.options.defaultExtractor})();if(w!==void 0&&($.DEFAULT=w),typeof z=="function")$.DEFAULT=z;else if(Array.isArray(z))for(let{extensions:U,extractor:H}of z??[])for(let V of U)$[V]=H;else typeof z=="object"&&z!==null&&Object.assign($,z);return $})(),transform:(()=>{let z=(()=>{var w,U,H,V,A,O;return!((w=Q.purge)===null||w===void 0)&&w.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!((H=Q.purge)===null||H===void 0||(V=H.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((A=Q.content)===null||A===void 0||(O=A.transform)===null||O===void 0)&&O.DEFAULT?Q.content.transform.DEFAULT:{}})(),$={};return typeof z=="function"&&($.DEFAULT=z),typeof z=="object"&&z!==null&&Object.assign($,z),$})()};for(let z of Q.content.files)if(typeof z=="string"&&/{([^,]*?)}/g.test(z)){Y.default.warn("invalid-glob-braces",[`The glob pattern ${(0,Y.dim)(z)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,Y.dim)(z.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),wU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){if(Object.prototype.toString.call(K)!=="[object Object]")return!1;let Z=Object.getPrototypeOf(K);return Z===null||Z===Object.prototype}}),UU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>Y});function Y(K){return Array.isArray(K)?K.map((Z)=>Y(Z)):typeof K=="object"&&K!==null?Object.fromEntries(Object.entries(K).map(([Z,X])=>[Z,Y(X)])):K}}),JY=e((J,Y)=>{J.__esModule=!0,J.default=X;function K(Q){for(var W=Q.toLowerCase(),z="",$=!1,w=0;w<6&&W[w]!==void 0;w++){var U=W.charCodeAt(w),H=U>=97&&U<=102||U>=48&&U<=57;if($=U===32,!H)break;z+=W[w]}if(z.length!==0){var V=parseInt(z,16),A=V>=55296&&V<=57343;return A||V===0||V>1114111?["\uFFFD",z.length+($?1:0)]:[String.fromCodePoint(V),z.length+($?1:0)]}}var Z=/\\/;function X(Q){var W=Z.test(Q);if(!W)return Q;for(var z="",$=0;$<Q.length;$++){if(Q[$]==="\\"){var w=K(Q.slice($+1,$+7));if(w!==void 0){z+=w[0],$+=w[1];continue}if(Q[$+1]==="\\"){z+="\\",$++;continue}Q.length===$+1&&(z+=Q[$]);continue}z+=Q[$]}return z}Y.exports=J.default}),HU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var z=Q.shift();if(!Z[z])return;Z=Z[z]}return Z}Y.exports=J.default}),VU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X=arguments.length,Q=Array(X>1?X-1:0),W=1;W<X;W++)Q[W-1]=arguments[W];for(;Q.length>0;){var z=Q.shift();Z[z]||(Z[z]={}),Z=Z[z]}}Y.exports=J.default}),AU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){for(var X="",Q=Z.indexOf("/*"),W=0;Q>=0;){X=X+Z.slice(W,Q);var z=Z.indexOf("*/",Q+2);if(z<0)return X;W=z+2,Q=Z.indexOf("/*",W)}return X=X+Z.slice(W),X}Y.exports=J.default}),K6=e((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var Y=Q(JY());J.unesc=Y.default;var K=Q(HU());J.getProp=K.default;var Z=Q(VU());J.ensureObject=Z.default;var X=Q(AU());J.stripComments=X.default;function Q(W){return W&&W.__esModule?W:{default:W}}}),r1=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=K6();function Z(z,$){for(var w=0;w<$.length;w++){var U=$[w];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(z,U.key,U)}}function X(z,$,w){return $&&Z(z.prototype,$),w&&Z(z,w),z}var Q=function z($,w){if(typeof $!="object"||$===null)return $;var U=new $.constructor;for(var H in $)if($.hasOwnProperty(H)){var V=$[H],A=typeof V;H==="parent"&&A==="object"?w&&(U[H]=w):V instanceof Array?U[H]=V.map(function(O){return z(O,U)}):U[H]=z(V,U)}return U},W=function(){function z(w){w===void 0&&(w={}),Object.assign(this,w),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var $=z.prototype;return $.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},$.replaceWith=function(){if(this.parent){for(var w in arguments)this.parent.insertBefore(this,arguments[w]);this.remove()}return this},$.next=function(){return this.parent.at(this.parent.index(this)+1)},$.prev=function(){return this.parent.at(this.parent.index(this)-1)},$.clone=function(w){w===void 0&&(w={});var U=Q(this);for(var H in w)U[H]=w[H];return U},$.appendToPropertyAndEscape=function(w,U,H){this.raws||(this.raws={});var V=this[w],A=this.raws[w];this[w]=V+U,A||H!==U?this.raws[w]=(A||V)+H:delete this.raws[w]},$.setPropertyAndEscape=function(w,U,H){this.raws||(this.raws={}),this[w]=U,this.raws[w]=H},$.setPropertyWithoutEscape=function(w,U){this[w]=U,this.raws&&delete this.raws[w]},$.isAtPosition=function(w,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>w||this.source.end.line<w||this.source.start.line===w&&this.source.start.column>U||this.source.end.line===w&&this.source.end.column<U)},$.stringifyProperty=function(w){return this.raws&&this.raws[w]||this[w]},$.valueToString=function(){return String(this.stringifyProperty("value"))},$.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},X(z,[{key:"rawSpaceBefore",get:function(){var w=this.raws&&this.raws.spaces&&this.raws.spaces.before;return w===void 0&&(w=this.spaces&&this.spaces.before),w||""},set:function(w){(0,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=w}},{key:"rawSpaceAfter",get:function(){var w=this.raws&&this.raws.spaces&&this.raws.spaces.after;return w===void 0&&(w=this.spaces.after),w||""},set:function(w){(0,K.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=w}}]),z}();J.default=W,Y.exports=J.default}),d0=e((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var Y="tag";J.TAG=Y;var K="string";J.STRING=K;var Z="selector";J.SELECTOR=Z;var X="root";J.ROOT=X;var Q="pseudo";J.PSEUDO=Q;var W="nesting";J.NESTING=W;var z="id";J.ID=z;var $="comment";J.COMMENT=$;var w="combinator";J.COMBINATOR=w;var U="class";J.CLASS=U;var H="attribute";J.ATTRIBUTE=H;var V="universal";J.UNIVERSAL=V}),t9=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(r1()),Z=Q(d0());function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var M=X();if(M&&M.has(B))return M.get(B);var j={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(j,E,I):j[E]=B[E]}return j.default=B,M&&M.set(B,j),j}function W(B){return B&&B.__esModule?B:{default:B}}function z(B,M){var j;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(j=$(B))||M&&B&&typeof B.length=="number"){j&&(B=j);var N=0;return function(){return N>=B.length?{done:!0}:{done:!1,value:B[N++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return j=B[Symbol.iterator](),j.next.bind(j)}function $(B,M){if(B){if(typeof B=="string")return w(B,M);var j=Object.prototype.toString.call(B).slice(8,-1);if(j==="Object"&&B.constructor&&(j=B.constructor.name),j==="Map"||j==="Set")return Array.from(B);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return w(B,M)}}function w(B,M){(M==null||M>B.length)&&(M=B.length);for(var j=0,N=Array(M);j<M;j++)N[j]=B[j];return N}function U(B,M){for(var j=0;j<M.length;j++){var N=M[j];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function H(B,M,j){return M&&U(B.prototype,M),j&&U(B,j),B}function V(B,M){B.prototype=Object.create(M.prototype),B.prototype.constructor=B,A(B,M)}function A(B,M){return A=Object.setPrototypeOf||function(j,N){return j.__proto__=N,j},A(B,M)}var O=function(B){V(M,B);function M(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var j=M.prototype;return j.append=function(N){return N.parent=this,this.nodes.push(N),this},j.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},j.at=function(N){return this.nodes[N]},j.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},j.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var I in this.indexes)E=this.indexes[I],E>=N&&(this.indexes[I]=E-1);return this},j.removeAll=function(){for(var N=z(this.nodes),E;!(E=N()).done;){var I=E.value;I.parent=void 0}return this.nodes=[],this},j.empty=function(){return this.removeAll()},j.insertAfter=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I+1,0,E),E.parent=this;var F;for(var q in this.indexes)F=this.indexes[q],I<=F&&(this.indexes[q]=F+1);return this},j.insertBefore=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I,0,E),E.parent=this;var F;for(var q in this.indexes)F=this.indexes[q],F<=I&&(this.indexes[q]=F+1);return this},j._findChildAtPosition=function(N,E){var I=void 0;return this.each(function(F){if(F.atPosition){var q=F.atPosition(N,E);if(q)return I=q,!1}else if(F.isAtPosition(N,E))return I=F,!1}),I},j.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},j._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))},j.each=function(N){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var I,F;this.indexes[E]<this.length&&(I=this.indexes[E],F=N(this.at(I),I),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},j.walk=function(N){return this.each(function(E,I){var F=N(E,I);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},j.walkAttributes=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ATTRIBUTE)return N.call(E,I)})},j.walkClasses=function(N){var E=this;return this.walk(function(I){if(I.type===Z.CLASS)return N.call(E,I)})},j.walkCombinators=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMBINATOR)return N.call(E,I)})},j.walkComments=function(N){var E=this;return this.walk(function(I){if(I.type===Z.COMMENT)return N.call(E,I)})},j.walkIds=function(N){var E=this;return this.walk(function(I){if(I.type===Z.ID)return N.call(E,I)})},j.walkNesting=function(N){var E=this;return this.walk(function(I){if(I.type===Z.NESTING)return N.call(E,I)})},j.walkPseudos=function(N){var E=this;return this.walk(function(I){if(I.type===Z.PSEUDO)return N.call(E,I)})},j.walkTags=function(N){var E=this;return this.walk(function(I){if(I.type===Z.TAG)return N.call(E,I)})},j.walkUniversals=function(N){var E=this;return this.walk(function(I){if(I.type===Z.UNIVERSAL)return N.call(E,I)})},j.split=function(N){var E=this,I=[];return this.reduce(function(F,q,T){var D=N.call(E,q);return I.push(q),D?(F.push(I),I=[]):T===E.length-1&&F.push(I),F},[])},j.map=function(N){return this.nodes.map(N)},j.reduce=function(N,E){return this.nodes.reduce(N,E)},j.every=function(N){return this.nodes.every(N)},j.some=function(N){return this.nodes.some(N)},j.filter=function(N){return this.nodes.filter(N)},j.sort=function(N){return this.nodes.sort(N)},j.toString=function(){return this.map(String).join("")},H(M,[{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}}]),M}(K.default);J.default=O,Y.exports=J.default}),YY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(t9()),Z=d0();function X(U){return U&&U.__esModule?U:{default:U}}function Q(U,H){for(var V=0;V<H.length;V++){var A=H[V];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(U,A.key,A)}}function W(U,H,V){return H&&Q(U.prototype,H),V&&Q(U,V),U}function z(U,H){U.prototype=Object.create(H.prototype),U.prototype.constructor=U,$(U,H)}function $(U,H){return $=Object.setPrototypeOf||function(V,A){return V.__proto__=A,V},$(U,H)}var w=function(U){z(H,U);function H(A){var O;return O=U.call(this,A)||this,O.type=Z.ROOT,O}var V=H.prototype;return V.toString=function(){var A=this.reduce(function(O,B){return O.push(String(B)),O},[]).join(",");return this.trailingComma?A+",":A},V.error=function(A,O){return this._error?this._error(A,O):Error(A)},W(H,[{key:"errorGenerator",set:function(A){this._error=A}}]),H}(K.default);J.default=w,Y.exports=J.default}),KY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(t9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.SELECTOR,H}return w}(K.default);J.default=z,Y.exports=J.default}),e9=e((J,Y)=>{var K={},Z=K.hasOwnProperty,X=function(w,U){if(!w)return U;var H={};for(var V in U)H[V]=Z.call(w,V)?w[V]:U[V];return H},Q=/[ -,\.\/:-@\[-\^`\{-~]/,W=/[ -,\.\/:-@\[\]\^`\{-~]/,z=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,$=function w(U,H){H=X(H,w.options),H.quotes!="single"&&H.quotes!="double"&&(H.quotes="single");for(var V=H.quotes=="double"?'"':"'",A=H.isIdentifier,O=U.charAt(0),B="",M=0,j=U.length;M<j;){var N=U.charAt(M++),E=N.charCodeAt(),I=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&M<j){var F=U.charCodeAt(M++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:M--}I="\\"+E.toString(16).toUpperCase()+" "}else H.escapeEverything?Q.test(N)?I="\\"+N:I="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?I="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!A&&(N=='"'&&V==N||N=="'"&&V==N)||A&&W.test(N)?I="\\"+N:I=N;B+=I}return A&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(O)&&(B="\\3"+O+" "+B.slice(1))),B=B.replace(z,function(q,T,D){return T&&T.length%2?q:(T||"")+D}),!A&&H.wrap?V+B+V:B};$.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},$.version="3.0.0",Y.exports=$}),ZY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(e9()),Z=K6(),X=W(r1()),Q=d0();function W(V){return V&&V.__esModule?V:{default:V}}function z(V,A){for(var O=0;O<A.length;O++){var B=A[O];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(V,B.key,B)}}function $(V,A,O){return A&&z(V.prototype,A),O&&z(V,O),V}function w(V,A){V.prototype=Object.create(A.prototype),V.prototype.constructor=V,U(V,A)}function U(V,A){return U=Object.setPrototypeOf||function(O,B){return O.__proto__=B,O},U(V,A)}var H=function(V){w(A,V);function A(B){var M;return M=V.call(this,B)||this,M.type=Q.CLASS,M._constructed=!0,M}var O=A.prototype;return O.valueToString=function(){return"."+V.prototype.valueToString.call(this)},$(A,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var M=(0,K.default)(B,{isIdentifier:!0});M!==B?((0,Z.ensureObject)(this,"raws"),this.raws.value=M):this.raws&&delete this.raws.value}this._value=B}}]),A}(X.default);J.default=H,Y.exports=J.default}),XY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.COMMENT,H}return w}(K.default);J.default=z,Y.exports=J.default}),QY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(H){var V;return V=$.call(this,H)||this,V.type=Z.ID,V}var U=w.prototype;return U.valueToString=function(){return"#"+$.prototype.valueToString.call(this)},w}(K.default);J.default=z,Y.exports=J.default}),J4=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Q(e9()),Z=K6(),X=Q(r1());function Q(H){return H&&H.__esModule?H:{default:H}}function W(H,V){for(var A=0;A<V.length;A++){var O=V[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(H,O.key,O)}}function z(H,V,A){return V&&W(H.prototype,V),A&&W(H,A),H}function $(H,V){H.prototype=Object.create(V.prototype),H.prototype.constructor=H,w(H,V)}function w(H,V){return w=Object.setPrototypeOf||function(A,O){return A.__proto__=O,A},w(H,V)}var U=function(H){$(V,H);function V(){return H.apply(this,arguments)||this}var A=V.prototype;return A.qualifiedName=function(O){return this.namespace?this.namespaceString+"|"+O:O},A.valueToString=function(){return this.qualifiedName(H.prototype.valueToString.call(this))},z(V,[{key:"namespace",get:function(){return this._namespace},set:function(O){if(O===!0||O==="*"||O==="&"){this._namespace=O,this.raws&&delete this.raws.namespace;return}var B=(0,K.default)(O,{isIdentifier:!0});this._namespace=O,B!==O?((0,Z.ensureObject)(this,"raws"),this.raws.namespace=B):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(O){this.namespace=O}},{key:"namespaceString",get:function(){if(this.namespace){var O=this.stringifyProperty("namespace");return O===!0?"":O}else return""}}]),V}(X.default);J.default=U,Y.exports=J.default}),WY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(J4()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.TAG,H}return w}(K.default);J.default=z,Y.exports=J.default}),$Y=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.STRING,H}return w}(K.default);J.default=z,Y.exports=J.default}),zY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(t9()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(H){var V;return V=$.call(this,H)||this,V.type=Z.PSEUDO,V}var U=w.prototype;return U.toString=function(){var H=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),H,this.rawSpaceAfter].join("")},w}(K.default);J.default=z,Y.exports=J.default}),BU=e((J,Y)=>{Y.exports=function(K,Z){return function(...X){return console.warn(Z),K(...X)}}}),wY=e((J)=>{J.__esModule=!0,J.unescapeValue=M,J.default=void 0;var Y=W(e9()),K=W(JY()),Z=W(J4()),X=d0(),Q;function W(F){return F&&F.__esModule?F:{default:F}}function z(F,q){for(var T=0;T<q.length;T++){var D=q[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}function $(F,q,T){return q&&z(F.prototype,q),T&&z(F,T),F}function w(F,q){F.prototype=Object.create(q.prototype),F.prototype.constructor=F,U(F,q)}function U(F,q){return U=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},U(F,q)}var H=BU(),V=/^('|")([^]*)\1$/,A=H(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),O=H(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=H(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function M(F){var q=!1,T=null,D=F,R=D.match(V);return R&&(T=R[1],D=R[2]),D=(0,K.default)(D),D!==F&&(q=!0),{deprecatedUsage:q,unescaped:D,quoteMark:T}}function j(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var q=M(F.value),T=q.quoteMark,D=q.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=D,F.quoteMark=T,F}var N=function(F){w(q,F);function q(D){var R;return D===void 0&&(D={}),R=F.call(this,j(D))||this,R.type=X.ATTRIBUTE,R.raws=R.raws||{},Object.defineProperty(R.raws,"unquoted",{get:H(function(){return R.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:H(function(){return R.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),R._constructed=!0,R}var T=q.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var R=this._determineQuoteMark(D),y=E[R],u=(0,Y.default)(this._value,y);return u},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,R){R===void 0&&(R={}),this._value=D,this._quoteMark=this._determineQuoteMark(R),this._syncRawValue()},T.smartQuoteMark=function(D){var R=this.value,y=R.replace(/[^']/g,"").length,u=R.replace(/[^"]/g,"").length;if(y+u===0){var i=(0,Y.default)(R,{isIdentifier:!0});if(i===R)return q.NO_QUOTE;var p=this.preferredQuoteMark(D);if(p===q.NO_QUOTE){var S=this.quoteMark||D.quoteMark||q.DOUBLE_QUOTE,v=E[S],C=(0,Y.default)(R,v);if(C.length<i.length)return S}return p}else return u===y?this.preferredQuoteMark(D):u<y?q.DOUBLE_QUOTE:q.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var R=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return R===void 0&&(R=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),R===void 0&&(R=q.DOUBLE_QUOTE),R},T._syncRawValue=function(){var D=(0,Y.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,R){if(this._constructed){var y=(0,Y.default)(R,{isIdentifier:!0});y!==R?this.raws[D]=y:delete this.raws[D]}},T._spacesFor=function(D){var R={before:"",after:""},y=this.spaces[D]||{},u=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(R,y,u)},T._stringFor=function(D,R,y){R===void 0&&(R=D),y===void 0&&(y=I);var u=this._spacesFor(R);return y(this.stringifyProperty(D),u)},T.offsetOf=function(D){var R=1,y=this._spacesFor("attribute");if(R+=y.before.length,D==="namespace"||D==="ns")return this.namespace?R:-1;if(D==="attributeNS"||(R+=this.namespaceString.length,this.namespace&&(R+=1),D==="attribute"))return R;R+=this.stringifyProperty("attribute").length,R+=y.after.length;var u=this._spacesFor("operator");R+=u.before.length;var i=this.stringifyProperty("operator");if(D==="operator")return i?R:-1;R+=i.length,R+=u.after.length;var p=this._spacesFor("value");R+=p.before.length;var S=this.stringifyProperty("value");if(D==="value")return S?R:-1;R+=S.length,R+=p.after.length;var v=this._spacesFor("insensitive");return R+=v.before.length,D==="insensitive"&&this.insensitive?R:-1},T.toString=function(){var D=this,R=[this.rawSpaceBefore,"["];return R.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(R.push(this._stringFor("operator")),R.push(this._stringFor("value")),R.push(this._stringFor("insensitiveFlag","insensitive",function(y,u){return y.length>0&&!D.quoted&&u.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(u.before=" "),I(y,u)}))),R.push("]"),R.push(this.rawSpaceAfter),R.join("")},$(q,[{key:"quoted",get:function(){var D=this.quoteMark;return D==="'"||D==='"'},set:function(D){O()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(D){if(!this._constructed){this._quoteMark=D;return}this._quoteMark!==D&&(this._quoteMark=D,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(D){if(this._constructed){var R=M(D),y=R.deprecatedUsage,u=R.unescaped,i=R.quoteMark;if(y&&A(),u===this._value&&i===this._quoteMark)return;this._value=u,this._quoteMark=i,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),q}(Z.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function I(F,q){return""+q.before+F+q.after}}),UY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(J4()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.UNIVERSAL,H.value="*",H}return w}(K.default);J.default=z,Y.exports=J.default}),HY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.COMBINATOR,H}return w}(K.default);J.default=z,Y.exports=J.default}),VY=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=X(r1()),Z=d0();function X($){return $&&$.__esModule?$:{default:$}}function Q($,w){$.prototype=Object.create(w.prototype),$.prototype.constructor=$,W($,w)}function W($,w){return W=Object.setPrototypeOf||function(U,H){return U.__proto__=H,U},W($,w)}var z=function($){Q(w,$);function w(U){var H;return H=$.call(this,U)||this,H.type=Z.NESTING,H.value="&",H}return w}(K.default);J.default=z,Y.exports=J.default}),GU=e((J,Y)=>{J.__esModule=!0,J.default=K;function K(Z){return Z.sort(function(X,Q){return X-Q})}Y.exports=J.default}),AY=e((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var Y=38;J.ampersand=Y;var K=42;J.asterisk=K;var Z=64;J.at=Z;var X=44;J.comma=X;var Q=58;J.colon=Q;var W=59;J.semicolon=W;var z=40;J.openParenthesis=z;var $=41;J.closeParenthesis=$;var w=91;J.openSquare=w;var U=93;J.closeSquare=U;var H=36;J.dollar=H;var V=126;J.tilde=V;var A=94;J.caret=A;var O=43;J.plus=O;var B=61;J.equals=B;var M=124;J.pipe=M;var j=62;J.greaterThan=j;var N=32;J.space=N;var E=39;J.singleQuote=E;var I=34;J.doubleQuote=I;var F=47;J.slash=F;var q=33;J.bang=q;var T=92;J.backslash=T;var D=13;J.cr=D;var R=12;J.feed=R;var y=10;J.newline=y;var u=9;J.tab=u;var i=E;J.str=i;var p=-1;J.comment=p;var S=-2;J.word=S;var v=-3;J.combinator=v}),OU=e((J)=>{J.__esModule=!0,J.default=O,J.FIELDS=void 0;var Y=Q(AY()),K,Z;function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var M=X();if(M&&M.has(B))return M.get(B);var j={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(j,E,I):j[E]=B[E]}return j.default=B,M&&M.set(B,j),j}var W=(K={},K[Y.tab]=!0,K[Y.newline]=!0,K[Y.cr]=!0,K[Y.feed]=!0,K),z=(Z={},Z[Y.space]=!0,Z[Y.tab]=!0,Z[Y.newline]=!0,Z[Y.cr]=!0,Z[Y.feed]=!0,Z[Y.ampersand]=!0,Z[Y.asterisk]=!0,Z[Y.bang]=!0,Z[Y.comma]=!0,Z[Y.colon]=!0,Z[Y.semicolon]=!0,Z[Y.openParenthesis]=!0,Z[Y.closeParenthesis]=!0,Z[Y.openSquare]=!0,Z[Y.closeSquare]=!0,Z[Y.singleQuote]=!0,Z[Y.doubleQuote]=!0,Z[Y.plus]=!0,Z[Y.pipe]=!0,Z[Y.tilde]=!0,Z[Y.greaterThan]=!0,Z[Y.equals]=!0,Z[Y.dollar]=!0,Z[Y.caret]=!0,Z[Y.slash]=!0,Z),$={},w="0123456789abcdefABCDEF";for(U=0;U<w.length;U++)$[w.charCodeAt(U)]=!0;var U;function H(B,M){var j=M,N;do{if(N=B.charCodeAt(j),z[N])return j-1;N===Y.backslash?j=V(B,j)+1:j++}while(j<B.length);return j-1}function V(B,M){var j=M,N=B.charCodeAt(j+1);if(!W[N])if($[N]){var E=0;do j++,E++,N=B.charCodeAt(j+1);while($[N]&&E<6);E<6&&N===Y.space&&j++}else j++;return j}var A={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=A;function O(B){var M=[],j=B.css.valueOf(),N=j,E=N.length,I=-1,F=1,q=0,T=0,D,R,y,u,i,p,S,v,C,m,c,a,n;function f(d,P){if(B.safe)j+=P,C=j.length-1;else throw B.error("Unclosed "+d,F,q-I,q)}for(;q<E;){switch(D=j.charCodeAt(q),D===Y.newline&&(I=q,F+=1),D){case Y.space:case Y.tab:case Y.newline:case Y.cr:case Y.feed:C=q;do C+=1,D=j.charCodeAt(C),D===Y.newline&&(I=C,F+=1);while(D===Y.space||D===Y.newline||D===Y.tab||D===Y.cr||D===Y.feed);n=Y.space,u=F,y=C-I-1,T=C;break;case Y.plus:case Y.greaterThan:case Y.tilde:case Y.pipe:C=q;do C+=1,D=j.charCodeAt(C);while(D===Y.plus||D===Y.greaterThan||D===Y.tilde||D===Y.pipe);n=Y.combinator,u=F,y=q-I,T=C;break;case Y.asterisk:case Y.ampersand:case Y.bang:case Y.comma:case Y.equals:case Y.dollar:case Y.caret:case Y.openSquare:case Y.closeSquare:case Y.colon:case Y.semicolon:case Y.openParenthesis:case Y.closeParenthesis:C=q,n=D,u=F,y=q-I,T=C+1;break;case Y.singleQuote:case Y.doubleQuote:a=D===Y.singleQuote?"'":'"',C=q;do for(i=!1,C=j.indexOf(a,C+1),C===-1&&f("quote",a),p=C;j.charCodeAt(p-1)===Y.backslash;)p-=1,i=!i;while(i);n=Y.str,u=F,y=q-I,T=C+1;break;default:D===Y.slash&&j.charCodeAt(q+1)===Y.asterisk?(C=j.indexOf("*/",q+2)+1,C===0&&f("comment","*/"),R=j.slice(q,C+1),v=R.split(`
|
|
63
|
+
`),S=v.length-1,S>0?(m=F+S,c=C-v[S].length):(m=F,c=I),n=Y.comment,F=m,u=m,y=C-c):D===Y.slash?(C=q,n=D,u=F,y=q-I,T=C+1):(C=H(j,q),n=Y.word,u=F,y=C-I),T=C+1;break}M.push([n,F,q-I,u,y,q,T]),c&&(I=c,c=null),q=T}return M}}),MU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=T(YY()),Z=T(KY()),X=T(ZY()),Q=T(XY()),W=T(QY()),z=T(WY()),$=T($Y()),w=T(zY()),U=q(wY()),H=T(UY()),V=T(HY()),A=T(VY()),O=T(GU()),B=q(OU()),M=q(AY()),j=q(d0()),N=K6(),E,I;function F(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return F=function(){return f},f}function q(f){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var d=F();if(d&&d.has(f))return d.get(f);var P={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in f)if(Object.prototype.hasOwnProperty.call(f,l)){var h=k?Object.getOwnPropertyDescriptor(f,l):null;h&&(h.get||h.set)?Object.defineProperty(P,l,h):P[l]=f[l]}return P.default=f,d&&d.set(f,P),P}function T(f){return f&&f.__esModule?f:{default:f}}function D(f,d){for(var P=0;P<d.length;P++){var k=d[P];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(f,k.key,k)}}function R(f,d,P){return d&&D(f.prototype,d),P&&D(f,P),f}var y=(E={},E[M.space]=!0,E[M.cr]=!0,E[M.feed]=!0,E[M.newline]=!0,E[M.tab]=!0,E),u=Object.assign({},y,(I={},I[M.comment]=!0,I));function i(f){return{line:f[B.FIELDS.START_LINE],column:f[B.FIELDS.START_COL]}}function p(f){return{line:f[B.FIELDS.END_LINE],column:f[B.FIELDS.END_COL]}}function S(f,d,P,k){return{start:{line:f,column:d},end:{line:P,column:k}}}function v(f){return S(f[B.FIELDS.START_LINE],f[B.FIELDS.START_COL],f[B.FIELDS.END_LINE],f[B.FIELDS.END_COL])}function C(f,d){if(f)return S(f[B.FIELDS.START_LINE],f[B.FIELDS.START_COL],d[B.FIELDS.END_LINE],d[B.FIELDS.END_COL])}function m(f,d){var P=f[d];if(typeof P=="string")return P.indexOf("\\")!==-1&&((0,N.ensureObject)(f,"raws"),f[d]=(0,N.unesc)(P),f.raws[d]===void 0&&(f.raws[d]=P)),f}function c(f,d){for(var P=-1,k=[];(P=f.indexOf(d,P+1))!==-1;)k.push(P);return k}function a(){var f=Array.prototype.concat.apply([],arguments);return f.filter(function(d,P){return P===f.indexOf(d)})}var n=function(){function f(P,k){k===void 0&&(k={}),this.rule=P,this.options=Object.assign({lossy:!1,safe:!1},k),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,B.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var l=C(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new K.default({source:l}),this.root.errorGenerator=this._errorGenerator();var h=new Z.default({source:{start:{line:1,column:1}}});this.root.append(h),this.current=h,this.loop()}var d=f.prototype;return d._errorGenerator=function(){var P=this;return function(k,l){return typeof P.rule=="string"?Error(k):P.rule.error(k,l)}},d.attribute=function(){var P=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==M.closeSquare;)P.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==M.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var l=P.length,h={source:S(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[B.FIELDS.START_POS]};if(l===1&&!~[M.word].indexOf(P[0][B.FIELDS.TYPE]))return this.expected("attribute",P[0][B.FIELDS.START_POS]);for(var s=0,Z0="",Q0="",J0=null,A0=!1;s<l;){var E0=P[s],K0=this.content(E0),B0=P[s+1];switch(E0[B.FIELDS.TYPE]){case M.space:if(A0=!0,this.options.lossy)break;if(J0){(0,N.ensureObject)(h,"spaces",J0);var C0=h.spaces[J0].after||"";h.spaces[J0].after=C0+K0;var u0=(0,N.getProp)(h,"raws","spaces",J0,"after")||null;u0&&(h.raws.spaces[J0].after=u0+K0)}else Z0=Z0+K0,Q0=Q0+K0;break;case M.asterisk:if(B0[B.FIELDS.TYPE]===M.equals)h.operator=K0,J0="operator";else if((!h.namespace||J0==="namespace"&&!A0)&&B0){Z0&&((0,N.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Z0,Z0=""),Q0&&((0,N.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Z0,Q0=""),h.namespace=(h.namespace||"")+K0;var I0=(0,N.getProp)(h,"raws","namespace")||null;I0&&(h.raws.namespace+=K0),J0="namespace"}A0=!1;break;case M.dollar:if(J0==="value"){var D0=(0,N.getProp)(h,"raws","value");h.value+="$",D0&&(h.raws.value=D0+"$");break}case M.caret:B0[B.FIELDS.TYPE]===M.equals&&(h.operator=K0,J0="operator"),A0=!1;break;case M.combinator:if(K0==="~"&&B0[B.FIELDS.TYPE]===M.equals&&(h.operator=K0,J0="operator"),K0!=="|"){A0=!1;break}B0[B.FIELDS.TYPE]===M.equals?(h.operator=K0,J0="operator"):!h.namespace&&!h.attribute&&(h.namespace=!0),A0=!1;break;case M.word:if(B0&&this.content(B0)==="|"&&P[s+2]&&P[s+2][B.FIELDS.TYPE]!==M.equals&&!h.operator&&!h.namespace)h.namespace=K0,J0="namespace";else if(!h.attribute||J0==="attribute"&&!A0){Z0&&((0,N.ensureObject)(h,"spaces","attribute"),h.spaces.attribute.before=Z0,Z0=""),Q0&&((0,N.ensureObject)(h,"raws","spaces","attribute"),h.raws.spaces.attribute.before=Q0,Q0=""),h.attribute=(h.attribute||"")+K0;var c0=(0,N.getProp)(h,"raws","attribute")||null;c0&&(h.raws.attribute+=K0),J0="attribute"}else if(!h.value&&h.value!==""||J0==="value"&&!A0){var n0=(0,N.unesc)(K0),o0=(0,N.getProp)(h,"raws","value")||"",Q1=h.value||"";h.value=Q1+n0,h.quoteMark=null,(n0!==K0||o0)&&((0,N.ensureObject)(h,"raws"),h.raws.value=(o0||Q1)+K0),J0="value"}else{var W1=K0==="i"||K0==="I";(h.value||h.value==="")&&(h.quoteMark||A0)?(h.insensitive=W1,(!W1||K0==="I")&&((0,N.ensureObject)(h,"raws"),h.raws.insensitiveFlag=K0),J0="insensitive",Z0&&((0,N.ensureObject)(h,"spaces","insensitive"),h.spaces.insensitive.before=Z0,Z0=""),Q0&&((0,N.ensureObject)(h,"raws","spaces","insensitive"),h.raws.spaces.insensitive.before=Q0,Q0="")):(h.value||h.value==="")&&(J0="value",h.value+=K0,h.raws.value&&(h.raws.value+=K0))}A0=!1;break;case M.str:if(!h.attribute||!h.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:E0[B.FIELDS.START_POS]});var e0=(0,U.unescapeValue)(K0),U5=e0.unescaped,y1=e0.quoteMark;h.value=U5,h.quoteMark=y1,J0="value",(0,N.ensureObject)(h,"raws"),h.raws.value=K0,A0=!1;break;case M.equals:if(!h.attribute)return this.expected("attribute",E0[B.FIELDS.START_POS],K0);if(h.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:E0[B.FIELDS.START_POS]});h.operator=h.operator?h.operator+K0:K0,J0="operator",A0=!1;break;case M.comment:if(J0)if(A0||B0&&B0[B.FIELDS.TYPE]===M.space||J0==="insensitive"){var t1=(0,N.getProp)(h,"spaces",J0,"after")||"",H5=(0,N.getProp)(h,"raws","spaces",J0,"after")||t1;(0,N.ensureObject)(h,"raws","spaces",J0),h.raws.spaces[J0].after=H5+K0}else{var U8=h[J0]||"",V5=(0,N.getProp)(h,"raws",J0)||U8;(0,N.ensureObject)(h,"raws"),h.raws[J0]=V5+K0}else Q0=Q0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:E0[B.FIELDS.START_POS]})}s++}m(h,"attribute"),m(h,"namespace"),this.newNode(new U.default(h)),this.position++},d.parseWhitespaceEquivalentTokens=function(P){P<0&&(P=this.tokens.length);var k=this.position,l=[],h="",s=void 0;do if(y[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(h+=this.content());else if(this.currToken[B.FIELDS.TYPE]===M.comment){var Z0={};h&&(Z0.before=h,h=""),s=new Q.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:Z0}),l.push(s)}while(++this.position<P);if(h){if(s)s.spaces.after=h;else if(!this.options.lossy){var Q0=this.tokens[k],J0=this.tokens[this.position-1];l.push(new $.default({value:"",source:S(Q0[B.FIELDS.START_LINE],Q0[B.FIELDS.START_COL],J0[B.FIELDS.END_LINE],J0[B.FIELDS.END_COL]),sourceIndex:Q0[B.FIELDS.START_POS],spaces:{before:h,after:""}}))}}return l},d.convertWhitespaceNodesToSpace=function(P,k){var l=this;k===void 0&&(k=!1);var h="",s="";P.forEach(function(Q0){var J0=l.lossySpace(Q0.spaces.before,k),A0=l.lossySpace(Q0.rawSpaceBefore,k);h+=J0+l.lossySpace(Q0.spaces.after,k&&J0.length===0),s+=J0+Q0.value+l.lossySpace(Q0.rawSpaceAfter,k&&A0.length===0)}),s===h&&(s=void 0);var Z0={space:h,rawSpace:s};return Z0},d.isNamedCombinator=function(P){return P===void 0&&(P=this.position),this.tokens[P+0]&&this.tokens[P+0][B.FIELDS.TYPE]===M.slash&&this.tokens[P+1]&&this.tokens[P+1][B.FIELDS.TYPE]===M.word&&this.tokens[P+2]&&this.tokens[P+2][B.FIELDS.TYPE]===M.slash},d.namedCombinator=function(){if(this.isNamedCombinator()){var P=this.content(this.tokens[this.position+1]),k=(0,N.unesc)(P).toLowerCase(),l={};k!==P&&(l.value="/"+P+"/");var h=new V.default({value:"/"+k+"/",source:S(this.currToken[B.FIELDS.START_LINE],this.currToken[B.FIELDS.START_COL],this.tokens[this.position+2][B.FIELDS.END_LINE],this.tokens[this.position+2][B.FIELDS.END_COL]),sourceIndex:this.currToken[B.FIELDS.START_POS],raws:l});return this.position=this.position+3,h}else this.unexpected()},d.combinator=function(){var P=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][B.FIELDS.TYPE]===M.comma){var l=this.parseWhitespaceEquivalentTokens(k);if(l.length>0){var h=this.current.last;if(h){var s=this.convertWhitespaceNodesToSpace(l),Z0=s.space,Q0=s.rawSpace;Q0!==void 0&&(h.rawSpaceAfter+=Q0),h.spaces.after+=Z0}else l.forEach(function(o0){return P.newNode(o0)})}return}var J0=this.currToken,A0=void 0;k>this.position&&(A0=this.parseWhitespaceEquivalentTokens(k));var E0;if(this.isNamedCombinator()?E0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===M.combinator?(E0=new V.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):y[this.currToken[B.FIELDS.TYPE]]||A0||this.unexpected(),E0){if(A0){var K0=this.convertWhitespaceNodesToSpace(A0),B0=K0.space,C0=K0.rawSpace;E0.spaces.before=B0,E0.rawSpaceBefore=C0}}else{var u0=this.convertWhitespaceNodesToSpace(A0,!0),I0=u0.space,D0=u0.rawSpace;D0||(D0=I0);var c0={},n0={spaces:{}};I0.endsWith(" ")&&D0.endsWith(" ")?(c0.before=I0.slice(0,I0.length-1),n0.spaces.before=D0.slice(0,D0.length-1)):I0.startsWith(" ")&&D0.startsWith(" ")?(c0.after=I0.slice(1),n0.spaces.after=D0.slice(1)):n0.value=D0,E0=new V.default({value:" ",source:C(J0,this.tokens[this.position-1]),sourceIndex:J0[B.FIELDS.START_POS],spaces:c0,raws:n0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===M.space&&(E0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(E0)},d.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var P=new Z.default({source:{start:i(this.tokens[this.position+1])}});this.current.parent.append(P),this.current=P,this.position++},d.comment=function(){var P=this.currToken;this.newNode(new Q.default({value:this.content(),source:v(P),sourceIndex:P[B.FIELDS.START_POS]})),this.position++},d.error=function(P,k){throw this.root.error(P,k)},d.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},d.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},d.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},d.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},d.namespace=function(){var P=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===M.word)return this.position++,this.word(P);if(this.nextToken[B.FIELDS.TYPE]===M.asterisk)return this.position++,this.universal(P)},d.nesting=function(){if(this.nextToken){var P=this.content(this.nextToken);if(P==="|"){this.position++;return}}var k=this.currToken;this.newNode(new A.default({value:this.content(),source:v(k),sourceIndex:k[B.FIELDS.START_POS]})),this.position++},d.parentheses=function(){var P=this.current.last,k=1;if(this.position++,P&&P.type===j.PSEUDO){var l=new Z.default({source:{start:i(this.tokens[this.position-1])}}),h=this.current;for(P.append(l),this.current=l;this.position<this.tokens.length&&k;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&k--,k?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=h}else{for(var s=this.currToken,Z0="(",Q0;this.position<this.tokens.length&&k;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&k++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&k--,Q0=this.currToken,Z0+=this.parseParenthesisToken(this.currToken),this.position++;P?P.appendToPropertyAndEscape("value",Z0,Z0):this.newNode(new $.default({value:Z0,source:S(s[B.FIELDS.START_LINE],s[B.FIELDS.START_COL],Q0[B.FIELDS.END_LINE],Q0[B.FIELDS.END_COL]),sourceIndex:s[B.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},d.pseudo=function(){for(var P=this,k="",l=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===M.colon;)k+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===M.word)this.splitWord(!1,function(h,s){k+=h,P.newNode(new w.default({value:k,source:C(l,P.currToken),sourceIndex:l[B.FIELDS.START_POS]})),s>1&&P.nextToken&&P.nextToken[B.FIELDS.TYPE]===M.openParenthesis&&P.error("Misplaced parenthesis.",{index:P.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},d.space=function(){var P=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===M.comma||this.prevToken[B.FIELDS.TYPE]===M.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(P),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===M.comma||this.nextToken[B.FIELDS.TYPE]===M.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(P),this.position++):this.combinator()},d.string=function(){var P=this.currToken;this.newNode(new $.default({value:this.content(),source:v(P),sourceIndex:P[B.FIELDS.START_POS]})),this.position++},d.universal=function(P){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var l=this.currToken;this.newNode(new H.default({value:this.content(),source:v(l),sourceIndex:l[B.FIELDS.START_POS]}),P),this.position++},d.splitWord=function(P,k){for(var l=this,h=this.nextToken,s=this.content();h&&~[M.dollar,M.caret,M.equals,M.word].indexOf(h[B.FIELDS.TYPE]);){this.position++;var Z0=this.content();if(s+=Z0,Z0.lastIndexOf("\\")===Z0.length-1){var Q0=this.nextToken;Q0&&Q0[B.FIELDS.TYPE]===M.space&&(s+=this.requiredSpace(this.content(Q0)),this.position++)}h=this.nextToken}var J0=c(s,".").filter(function(B0){var C0=s[B0-1]==="\\",u0=/^\d+\.\d+%$/.test(s);return!C0&&!u0}),A0=c(s,"#").filter(function(B0){return s[B0-1]!=="\\"}),E0=c(s,"#{");E0.length&&(A0=A0.filter(function(B0){return!~E0.indexOf(B0)}));var K0=(0,O.default)(a([0].concat(J0,A0)));K0.forEach(function(B0,C0){var u0=K0[C0+1]||s.length,I0=s.slice(B0,u0);if(C0===0&&k)return k.call(l,I0,K0.length);var D0,c0=l.currToken,n0=c0[B.FIELDS.START_POS]+K0[C0],o0=S(c0[1],c0[2]+B0,c0[3],c0[2]+(u0-1));if(~J0.indexOf(B0)){var Q1={value:I0.slice(1),source:o0,sourceIndex:n0};D0=new X.default(m(Q1,"value"))}else if(~A0.indexOf(B0)){var W1={value:I0.slice(1),source:o0,sourceIndex:n0};D0=new W.default(m(W1,"value"))}else{var e0={value:I0,source:o0,sourceIndex:n0};m(e0,"value"),D0=new z.default(e0)}l.newNode(D0,P),P=null}),this.position++},d.word=function(P){var k=this.nextToken;return k&&this.content(k)==="|"?(this.position++,this.namespace()):this.splitWord(P)},d.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},d.parse=function(P){switch(this.currToken[B.FIELDS.TYPE]){case M.space:this.space();break;case M.comment:this.comment();break;case M.openParenthesis:this.parentheses();break;case M.closeParenthesis:P&&this.missingParenthesis();break;case M.openSquare:this.attribute();break;case M.dollar:case M.caret:case M.equals:case M.word:this.word();break;case M.colon:this.pseudo();break;case M.comma:this.comma();break;case M.asterisk:this.universal();break;case M.ampersand:this.nesting();break;case M.slash:case M.combinator:this.combinator();break;case M.str:this.string();break;case M.closeSquare:this.missingSquareBracket();case M.semicolon:this.missingBackslash();default:this.unexpected()}},d.expected=function(P,k,l){if(Array.isArray(P)){var h=P.pop();P=P.join(", ")+" or "+h}var s=/^[aeiou]/.test(P[0])?"an":"a";return l?this.error("Expected "+s+" "+P+', found "'+l+'" instead.',{index:k}):this.error("Expected "+s+" "+P+".",{index:k})},d.requiredSpace=function(P){return this.options.lossy?" ":P},d.optionalSpace=function(P){return this.options.lossy?"":P},d.lossySpace=function(P,k){return this.options.lossy?k?" ":"":P},d.parseParenthesisToken=function(P){var k=this.content(P);return P[B.FIELDS.TYPE]===M.space?this.requiredSpace(k):k},d.newNode=function(P,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),P.namespace=k,m(P,"namespace")),this.spaces&&(P.spaces.before=this.spaces,this.spaces=""),this.current.append(P)},d.content=function(P){return P===void 0&&(P=this.currToken),this.css.slice(P[B.FIELDS.START_POS],P[B.FIELDS.END_POS])},d.locateNextMeaningfulToken=function(P){P===void 0&&(P=this.position+1);for(var k=P;k<this.tokens.length;)if(u[this.tokens[k][B.FIELDS.TYPE]]){k++;continue}else return k;return-1},R(f,[{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]}}]),f}();J.default=n,Y.exports=J.default}),LU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=Z(MU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}var X=function(){function Q(z,$){this.func=z||function(){},this.funcRes=null,this.options=$}var W=Q.prototype;return W._shouldUpdateSelector=function(z,$){$===void 0&&($={});var w=Object.assign({},this.options,$);return w.updateSelector===!1?!1:typeof z!="string"},W._isLossy=function(z){z===void 0&&(z={});var $=Object.assign({},this.options,z);return $.lossless===!1},W._root=function(z,$){$===void 0&&($={});var w=new K.default(z,this._parseOptions($));return w.root},W._parseOptions=function(z){return{lossy:this._isLossy(z)}},W._run=function(z,$){var w=this;return $===void 0&&($={}),new Promise(function(U,H){try{var V=w._root(z,$);Promise.resolve(w.func(V)).then(function(A){var O=void 0;return w._shouldUpdateSelector(z,$)&&(O=V.toString(),z.selector=O),{transform:A,root:V,string:O}}).then(U,H)}catch(A){H(A);return}})},W._runSync=function(z,$){$===void 0&&($={});var w=this._root(z,$),U=this.func(w);if(U&&typeof U.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var H=void 0;return $.updateSelector&&typeof z!="string"&&(H=w.toString(),z.selector=H),{transform:U,root:w,string:H}},W.ast=function(z,$){return this._run(z,$).then(function(w){return w.root})},W.astSync=function(z,$){return this._runSync(z,$).root},W.transform=function(z,$){return this._run(z,$).then(function(w){return w.transform})},W.transformSync=function(z,$){return this._runSync(z,$).transform},W.process=function(z,$){return this._run(z,$).then(function(w){return w.string||w.root.toString()})},W.processSync=function(z,$){var w=this._runSync(z,$);return w.string||w.root.toString()},Q}();J.default=X,Y.exports=J.default}),jU=e((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var Y=A(wY()),K=A(ZY()),Z=A(HY()),X=A(XY()),Q=A(QY()),W=A(VY()),z=A(zY()),$=A(YY()),w=A(KY()),U=A($Y()),H=A(WY()),V=A(UY());function A(y){return y&&y.__esModule?y:{default:y}}var O=function(y){return new Y.default(y)};J.attribute=O;var B=function(y){return new K.default(y)};J.className=B;var M=function(y){return new Z.default(y)};J.combinator=M;var j=function(y){return new X.default(y)};J.comment=j;var N=function(y){return new Q.default(y)};J.id=N;var E=function(y){return new W.default(y)};J.nesting=E;var I=function(y){return new z.default(y)};J.pseudo=I;var F=function(y){return new $.default(y)};J.root=F;var q=function(y){return new w.default(y)};J.selector=q;var T=function(y){return new U.default(y)};J.string=T;var D=function(y){return new H.default(y)};J.tag=D;var R=function(y){return new V.default(y)};J.universal=R}),NU=e((J)=>{J.__esModule=!0,J.isNode=X,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=I,J.isNamespace=F,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var Y=d0(),K,Z=(K={},K[Y.ATTRIBUTE]=!0,K[Y.CLASS]=!0,K[Y.COMBINATOR]=!0,K[Y.COMMENT]=!0,K[Y.ID]=!0,K[Y.NESTING]=!0,K[Y.PSEUDO]=!0,K[Y.ROOT]=!0,K[Y.SELECTOR]=!0,K[Y.STRING]=!0,K[Y.TAG]=!0,K[Y.UNIVERSAL]=!0,K);function X(q){return typeof q=="object"&&Z[q.type]}function Q(q,T){return X(T)&&T.type===q}var W=Q.bind(null,Y.ATTRIBUTE);J.isAttribute=W;var z=Q.bind(null,Y.CLASS);J.isClassName=z;var $=Q.bind(null,Y.COMBINATOR);J.isCombinator=$;var w=Q.bind(null,Y.COMMENT);J.isComment=w;var U=Q.bind(null,Y.ID);J.isIdentifier=U;var H=Q.bind(null,Y.NESTING);J.isNesting=H;var V=Q.bind(null,Y.PSEUDO);J.isPseudo=V;var A=Q.bind(null,Y.ROOT);J.isRoot=A;var O=Q.bind(null,Y.SELECTOR);J.isSelector=O;var B=Q.bind(null,Y.STRING);J.isString=B;var M=Q.bind(null,Y.TAG);J.isTag=M;var j=Q.bind(null,Y.UNIVERSAL);J.isUniversal=j;function N(q){return V(q)&&q.value&&(q.value.startsWith("::")||q.value.toLowerCase()===":before"||q.value.toLowerCase()===":after"||q.value.toLowerCase()===":first-letter"||q.value.toLowerCase()===":first-line")}function E(q){return V(q)&&!N(q)}function I(q){return!!(X(q)&&q.walk)}function F(q){return W(q)||M(q)}}),qU=e((J)=>{J.__esModule=!0;var Y=d0();Object.keys(Y).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Y[X]||(J[X]=Y[X])});var K=jU();Object.keys(K).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===K[X]||(J[X]=K[X])});var Z=NU();Object.keys(Z).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Z[X]||(J[X]=Z[X])})}),EU=e((J,Y)=>{J.__esModule=!0,J.default=void 0;var K=W(LU()),Z=Q(qU());function X(){if(typeof WeakMap!="function")return null;var w=new WeakMap;return X=function(){return w},w}function Q(w){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var U=X();if(U&&U.has(w))return U.get(w);var H={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(Object.prototype.hasOwnProperty.call(w,A)){var O=V?Object.getOwnPropertyDescriptor(w,A):null;O&&(O.get||O.set)?Object.defineProperty(H,A,O):H[A]=w[A]}return H.default=w,U&&U.set(w,H),H}function W(w){return w&&w.__esModule?w:{default:w}}var z=function(w){return new K.default(w)};Object.assign(z,Z),delete z.__esModule;var $=z;J.default=$,Y.exports=J.default}),FU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return K.replace(/\\,/g,"\\2c ")}}),_U=e((J,Y)=>{Y.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]}}),BY=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(O,B){for(var M in B)Object.defineProperty(O,M,{enumerable:!0,get:B[M]})}Y(J,{parseColor:()=>V,formatColor:()=>A});var K=Z(_U());function Z(O){return O&&O.__esModule?O:{default:O}}var X=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,W=/(?:\d+|\d*\.\d+)%?/,z=/(?:\s*,\s*|\s+)/,$=/\s*[,/]\s*/,w=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${W.source}|${w.source})(?:${z.source}(${W.source}|${w.source}))?(?:${z.source}(${W.source}|${w.source}))?(?:${$.source}(${W.source}|${w.source}))?\\s*\\)$`),H=new RegExp(`^(hsl)a?\\(\\s*((?:${W.source})(?:deg|rad|grad|turn)?|${w.source})(?:${z.source}(${W.source}|${w.source}))?(?:${z.source}(${W.source}|${w.source}))?(?:${$.source}(${W.source}|${w.source}))?\\s*\\)$`);function V(O,{loose:B=!1}={}){var M,j;if(typeof O!="string")return null;if(O=O.trim(),O==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(O in K.default)return{mode:"rgb",color:K.default[O].map((q)=>q.toString())};let N=O.replace(Q,(q,T,D,R,y)=>["#",T,T,D,D,R,R,y?y+y:""].join("")).match(X);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((q)=>q.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let I=(E=O.match(U))!==null&&E!==void 0?E:O.match(H);if(I===null)return null;let F=[I[2],I[3],I[4]].filter(Boolean).map((q)=>q.toString());return!B&&F.length!==3||F.length<3&&!F.some((q)=>/^var\(.*?\)$/.test(q))?null:{mode:I[1],color:F,alpha:(M=I[5])===null||M===void 0||(j=M.toString)===null||j===void 0?void 0:j.call(M)}}function A({mode:O,color:B,alpha:M}){let j=M!==void 0;return`${O}(${B.join(" ")}${j?` / ${M}`:""})`}}),GY=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(Q,W){for(var z in W)Object.defineProperty(Q,z,{enumerable:!0,get:W[z]})}Y(J,{withAlphaValue:()=>Z,default:()=>X});var K=BY();function Z(Q,W,z){if(typeof Q=="function")return Q({opacityValue:W});let $=(0,K.parseColor)(Q,{loose:!0});return $===null?z:(0,K.formatColor)({...$,alpha:W})}function X({color:Q,property:W,variable:z}){let $=[].concat(W);if(typeof Q=="function")return{[z]:"1",...Object.fromEntries($.map((U)=>[U,Q({opacityVariable:z,opacityValue:`var(${z})`})]))};let w=(0,K.parseColor)(Q);return w===null?Object.fromEntries($.map((U)=>[U,Q])):w.alpha!==void 0?Object.fromEntries($.map((U)=>[U,Q])):{[z]:"1",...Object.fromEntries($.map((U)=>[U,(0,K.formatColor)({...w,alpha:`var(${z})`})]))}}}),IU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(V,A){for(var O in A)Object.defineProperty(V,O,{enumerable:!0,get:A[O]})}Y(J,{pattern:()=>Q,withoutCapturing:()=>W,any:()=>z,optional:()=>$,zeroOrMore:()=>w,nestedBrackets:()=>U,escape:()=>H});var K=/[\\^$.*+?()[\]{}|]/g,Z=RegExp(K.source);function X(V){return V=Array.isArray(V)?V:[V],V=V.map((A)=>A instanceof RegExp?A.source:A),V.join("")}function Q(V){return new RegExp(X(V),"g")}function W(V){return new RegExp(`(?:${X(V)})`,"g")}function z(V){return`(?:${V.map(X).join("|")})`}function $(V){return`(?:${X(V)})?`}function w(V){return`(?:${X(V)})*`}function U(V,A,O=1){return W([H(V),/[^\s]*/,O===1?`[^${H(V)}${H(A)}s]*`:z([`[^${H(V)}${H(A)}s]*`,U(V,A,O-1)]),/[^\s]*/,H(A)])}function H(V){return V&&Z.test(V)?V.replace(K,"\\$&"):V||""}}),DU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>X});var Y=Z(IU());function K(Q){if(typeof WeakMap!="function")return null;var W=new WeakMap,z=new WeakMap;return(K=function($){return $?z:W})(Q)}function Z(Q,W){if(!W&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var z=K(W);if(z&&z.has(Q))return z.get(Q);var $={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var H=w?Object.getOwnPropertyDescriptor(Q,U):null;H&&(H.get||H.set)?Object.defineProperty($,U,H):$[U]=Q[U]}return $.default=Q,z&&z.set(Q,$),$}function*X(Q,W){let z=new RegExp(`[(){}\\[\\]${Y.escape(W)}]`,"g"),$=0,w=0,U=!1,H=0,V=0,A=W.length;for(let O of Q.matchAll(z)){let B=O[0]===W[H],M=H===A-1,j=B&&M;O[0]==="("&&$++,O[0]===")"&&$--,O[0]==="["&&$++,O[0]==="]"&&$--,O[0]==="{"&&$++,O[0]==="}"&&$--,B&&$===0&&(V===0&&(V=O.index),H++),j&&$===0&&(U=!0,yield Q.substring(w,V),w=V+A),H===A&&(H=0,V=0)}U?yield Q.substring(w):yield Q}}),RU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y($,w){for(var U in w)Object.defineProperty($,U,{enumerable:!0,get:w[U]})}Y(J,{parseBoxShadowValue:()=>W,formatBoxShadowValue:()=>z});var K=DU(),Z=new Set(["inset","inherit","initial","revert","unset"]),X=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function W($){return Array.from((0,K.splitAtTopLevelOnly)($,",")).map((w)=>{let U=w.trim(),H={raw:U},V=U.split(X),A=new Set;for(let O of V)Q.lastIndex=0,!A.has("KEYWORD")&&Z.has(O)?(H.keyword=O,A.add("KEYWORD")):Q.test(O)?A.has("X")?A.has("Y")?A.has("BLUR")?A.has("SPREAD")||(H.spread=O,A.add("SPREAD")):(H.blur=O,A.add("BLUR")):(H.y=O,A.add("Y")):(H.x=O,A.add("X")):H.color?(H.unknown||(H.unknown=[]),H.unknown.push(O)):H.color=O;return H.valid=H.x!==void 0&&H.y!==void 0,H})}function z($){return $.map((w)=>w.valid?[w.keyword,w.x,w.y,w.blur,w.spread,w.color].filter(Boolean).join(" "):w.raw).join(", ")}}),CU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(S,v){for(var C in v)Object.defineProperty(S,C,{enumerable:!0,get:v[C]})}Y(J,{normalize:()=>z,url:()=>$,number:()=>w,percentage:()=>U,length:()=>A,lineWidth:()=>B,shadow:()=>M,color:()=>j,image:()=>N,gradient:()=>I,position:()=>q,familyName:()=>T,genericName:()=>R,absoluteSize:()=>u,relativeSize:()=>p});var K=BY(),Z=RU(),X=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,W=/_(?![^(]*\))/g;function z(S,v=!0){return S.includes("url(")?S.split(/(url\(.*?\))/g).filter(Boolean).map((C)=>/^url\(.*?\)$/.test(C)?C:z(C,!1)).join(""):(S=S.replace(/([^\\])_+/g,(C,m)=>m+" ".repeat(C.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),v&&(S=S.trim()),S=S.replace(/(calc|min|max|clamp)\(.+\)/g,(C)=>C.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),S)}function $(S){return S.startsWith("url(")}function w(S){return!isNaN(Number(S))||X.some((v)=>new RegExp(`^${v}\\(.+?`).test(S))}function U(S){return S.split(W).every((v)=>/%$/g.test(v)||X.some((C)=>new RegExp(`^${C}\\(.+?%`).test(v)))}var H=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${H.join("|")})`;function A(S){return S.split(W).every((v)=>v==="0"||new RegExp(`${V}$`).test(v)||X.some((C)=>new RegExp(`^${C}\\(.+?${V}`).test(v)))}var O=new Set(["thin","medium","thick"]);function B(S){return O.has(S)}function M(S){let v=(0,Z.parseBoxShadowValue)(z(S));for(let C of v)if(!C.valid)return!1;return!0}function j(S){let v=0;return S.split(W).every((C)=>(C=z(C),C.startsWith("var(")?!0:(0,K.parseColor)(C,{loose:!0})!==null?(v++,!0):!1))?v>0:!1}function N(S){let v=0;return S.split(Q).every((C)=>(C=z(C),C.startsWith("var(")?!0:$(C)||I(C)||["element(","image(","cross-fade(","image-set("].some((m)=>C.startsWith(m))?(v++,!0):!1))?v>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function I(S){S=z(S);for(let v of E)if(S.startsWith(`${v}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function q(S){let v=0;return S.split(W).every((C)=>(C=z(C),C.startsWith("var(")?!0:F.has(C)||A(C)||U(C)?(v++,!0):!1))?v>0:!1}function T(S){let v=0;return S.split(Q).every((C)=>(C=z(C),C.startsWith("var(")?!0:C.includes(" ")&&!/(['"])([^"']+)\1/g.test(C)||/^\d/g.test(C)?!1:(v++,!0)))?v>0:!1}var D=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function R(S){return D.has(S)}var y=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function u(S){return y.has(S)}var i=new Set(["larger","smaller"]);function p(S){return i.has(S)}}),TU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(q,T){for(var D in T)Object.defineProperty(q,D,{enumerable:!0,get:T[D]})}Y(J,{updateAllClasses:()=>$,asValue:()=>H,parseColorFormat:()=>O,asColor:()=>B,asLookupValue:()=>M,coerceValue:()=>F});var K=z(EU()),Z=z(FU()),X=GY(),Q=CU(),W=z(aJ());function z(q){return q&&q.__esModule?q:{default:q}}function $(q,T){return(0,K.default)((D)=>{D.walkClasses((R)=>{let y=T(R.value);R.value=y,R.raws&&R.raws.value&&(R.raws.value=(0,Z.default)(R.raws.value))})}).processSync(q)}function w(q,T){if(!V(q))return;let D=q.slice(1,-1);if(T(D))return(0,Q.normalize)(D)}function U(q,T={},D){let R=T[q];if(R!==void 0)return(0,W.default)(R);if(V(q)){let y=w(q,D);return y===void 0?void 0:(0,W.default)(y)}}function H(q,T={},{validate:D=()=>!0}={}){var R;let y=(R=T.values)===null||R===void 0?void 0:R[q];return y!==void 0?y:T.supportsNegativeValues&&q.startsWith("-")?U(q.slice(1),T.values,D):w(q,D)}function V(q){return q.startsWith("[")&&q.endsWith("]")}function A(q){let T=q.lastIndexOf("/");return T===-1||T===q.length-1?[q]:[q.slice(0,T),q.slice(T+1)]}function O(q){if(typeof q=="string"&&q.includes("<alpha-value>")){let T=q;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return q}function B(q,T={},{tailwindConfig:D={}}={}){var R;if(((R=T.values)===null||R===void 0?void 0:R[q])!==void 0){var y;return O((y=T.values)===null||y===void 0?void 0:y[q])}let[u,i]=A(q);if(i!==void 0){var p,S,v,C;let m=(C=(p=T.values)===null||p===void 0?void 0:p[u])!==null&&C!==void 0?C:V(u)?u.slice(1,-1):void 0;return m===void 0?void 0:(m=O(m),V(i)?(0,X.withAlphaValue)(m,i.slice(1,-1)):((S=D.theme)===null||S===void 0||(v=S.opacity)===null||v===void 0?void 0:v[i])===void 0?void 0:(0,X.withAlphaValue)(m,D.theme.opacity[i]))}return H(q,T,{validate:Q.color})}function M(q,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[q]}function j(q){return(T,D)=>H(T,D,{validate:q})}var N={any:H,color:B,url:j(Q.url),image:j(Q.image),length:j(Q.length),percentage:j(Q.percentage),position:j(Q.position),lookup:M,"generic-name":j(Q.genericName),"family-name":j(Q.familyName),number:j(Q.number),"line-width":j(Q.lineWidth),"absolute-size":j(Q.absoluteSize),"relative-size":j(Q.relativeSize),shadow:j(Q.shadow)},E=Object.keys(N);function I(q,T){let D=q.indexOf(T);return D===-1?[void 0,q]:[q.slice(0,D),q.slice(D+1)]}function F(q,T,D,R){if(V(T)){let y=T.slice(1,-1),[u,i]=I(y,":");if(!/^[\w-_]+$/g.test(u))i=y;else if(u!==void 0&&!E.includes(u))return[];if(i.length>0&&E.includes(u))return[H(`[${i}]`,D),u]}for(let y of[].concat(q)){let u=N[y](T,D,{tailwindConfig:R});if(u!==void 0)return[u,y]}return[]}}),PU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Y});function Y(K){return typeof K=="function"?K({}):K}}),SU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var Y=O(aJ()),K=O(ZU()),Z=O(XU()),X=O(tJ()),Q=O(QU()),W=WU(),z=$U(),$=zU(),w=O(wU()),U=UU(),H=TU(),V=GY(),A=O(PU());function O(S){return S&&S.__esModule?S:{default:S}}function B(S){return typeof S=="function"}function M(S){return typeof S=="object"&&S!==null}function j(S,...v){let C=v.pop();for(let m of v)for(let c in m){let a=C(S[c],m[c]);a===void 0?M(S[c])&&M(m[c])?S[c]=j(S[c],m[c],C):S[c]=m[c]:S[c]=a}return S}var N={colors:Q.default,negative(S){return Object.keys(S).filter((v)=>S[v]!=="0").reduce((v,C)=>{let m=(0,Y.default)(S[C]);return m!==void 0&&(v[`-${C}`]=m),v},{})},breakpoints(S){return Object.keys(S).filter((v)=>typeof S[v]=="string").reduce((v,C)=>({...v,[`screen-${C}`]:S[C]}),{})}};function E(S,...v){return B(S)?S(...v):S}function I(S){return S.reduce((v,{extend:C})=>j(v,C,(m,c)=>m===void 0?[c]:Array.isArray(m)?[c,...m]:[c,m]),{})}function F(S){return{...S.reduce((v,C)=>(0,W.defaults)(v,C),{}),extend:I(S)}}function q(S,v){if(Array.isArray(S)&&M(S[0]))return S.concat(v);if(Array.isArray(v)&&M(v[0])&&M(S))return[S,...v];if(Array.isArray(v))return v}function T({extend:S,...v}){return j(v,S,(C,m)=>!B(C)&&!m.some(B)?j({},C,...m,q):(c,a)=>j({},...[C,...m].map((n)=>E(n,c,a)),q))}function*D(S){let v=(0,z.toPath)(S);if(v.length===0||(yield v,Array.isArray(S)))return;let C=/^(.*?)\s*\/\s*([^/]+)$/,m=S.match(C);if(m!==null){let[,c,a]=m,n=(0,z.toPath)(c);n.alpha=a,yield n}}function R(S){let v=(C,m)=>{for(let c of D(C)){let a=0,n=S;for(;n!=null&&a<c.length;)n=n[c[a++]],n=B(n)&&(c.alpha===void 0||a<=c.length-1)?n(v,N):n;if(n!==void 0){if(c.alpha!==void 0){let f=(0,H.parseColorFormat)(n);return(0,V.withAlphaValue)(f,c.alpha,(0,A.default)(f))}return(0,w.default)(n)?(0,U.cloneDeep)(n):n}}return m};return Object.assign(v,{theme:v,...N}),Object.keys(S).reduce((C,m)=>(C[m]=B(S[m])?S[m](v,N):S[m],C),{})}function y(S){let v=[];return S.forEach((C)=>{v=[...v,C];var m;let c=(m=C==null?void 0:C.plugins)!==null&&m!==void 0?m:[];c.length!==0&&c.forEach((a)=>{a.__isOptionsFunction&&(a=a());var n;v=[...v,...y([(n=a==null?void 0:a.config)!==null&&n!==void 0?n:{}])]})}),v}function u(S){return[...S].reduceRight((v,C)=>B(C)?C({corePlugins:v}):(0,Z.default)(C,v),K.default)}function i(S){return[...S].reduceRight((v,C)=>[...v,...C],[])}function p(S){let v=[...y(S),{prefix:"",important:!1,separator:":",variantOrder:X.default.variantOrder}];var C,m;return(0,$.normalizeConfig)((0,W.defaults)({theme:R(T(F(v.map((c)=>(C=c==null?void 0:c.theme)!==null&&C!==void 0?C:{})))),corePlugins:u(v.map((c)=>c.corePlugins)),plugins:i(S.map((c)=>(m=c==null?void 0:c.plugins)!==null&&m!==void 0?m:[]))},...v))}}),OY={};s9(OY,{default:()=>MY});var MY,vU=r9(()=>{MY={yellow:(J)=>J}}),kU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function Y(H,V){for(var A in V)Object.defineProperty(H,A,{enumerable:!0,get:V[A]})}Y(J,{flagEnabled:()=>z,issueFlagNotices:()=>w,default:()=>U});var K=X((vU(),t8(OY))),Z=X((a9(),t8(Y6)));function X(H){return H&&H.__esModule?H:{default:H}}var Q={optimizeUniversalDefaults:!1},W={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function z(H,V){if(W.future.includes(V)){var A,O,B;return H.future==="all"||((B=(O=H==null||(A=H.future)===null||A===void 0?void 0:A[V])!==null&&O!==void 0?O:Q[V])!==null&&B!==void 0?B:!1)}if(W.experimental.includes(V)){var M,j,N;return H.experimental==="all"||((N=(j=H==null||(M=H.experimental)===null||M===void 0?void 0:M[V])!==null&&j!==void 0?j:Q[V])!==null&&N!==void 0?N:!1)}return!1}function $(H){if(H.experimental==="all")return W.experimental;var V;return Object.keys((V=H==null?void 0:H.experimental)!==null&&V!==void 0?V:{}).filter((A)=>W.experimental.includes(A)&&H.experimental[A])}function w(H){if(process.env.JEST_WORKER_ID===void 0&&$(H).length>0){let V=$(H).map((A)=>K.default.yellow(A)).join(", ");Z.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${V}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=W}),gU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(tJ()),K=kU();function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(Q){var W;let z=((W=Q==null?void 0:Q.presets)!==null&&W!==void 0?W:[Y.default]).slice().reverse().flatMap((U)=>X(typeof U=="function"?U():U)),$={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},w=Object.keys($).filter((U)=>(0,K.flagEnabled)(Q,U)).map((U)=>$[U]);return[Q,...w,...z]}}),yU=e((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var Y=Z(SU()),K=Z(gU());function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}function X(...Q){let[,...W]=(0,K.default)(Q[0]);return(0,Y.default)([...Q,...W])}}),hU=e((J,Y)=>{var K=yU();Y.exports=(K.__esModule?K:{default:K}).default}),h8;var s5=null;async function Z6(){return h8||(s5?(await s5,h8):(s5=Promise.resolve().then(()=>(KU(),sJ)).then((J)=>J.getYogaModule()).then((J)=>h8=J),await s5,s5=null,h8))}var Z8=(J,Y)=>()=>(Y||J((Y={exports:{}}).exports,Y),Y.exports),xU=Z8((J,Y)=>{Y.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),bU=Z8((J,Y)=>{Y.exports=["deg","grad","rad","turn"]}),fU=Z8((J,Y)=>{Y.exports=["dpi","dpcm","dppx"]}),mU=Z8((J,Y)=>{Y.exports=["Hz","kHz"]}),dU=Z8((J,Y)=>{Y.exports=["s","ms"]}),uU=xU(),LY=bU(),jY=fU(),NY=mU(),qY=dU();function Y4(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if(cU(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=S9(J),this.unit="%";return}var Y=pU(J);if(!Y){this.type="number",this.value=S9(J);return}this.type=nU(Y),this.value=S9(J.substr(0,J.length-Y.length)),this.unit=Y}Y4.prototype.valueOf=function(){return this.value};Y4.prototype.toString=function(){return this.value+(this.unit||"")};function X8(J){return new Y4(J)}function cU(J){var Y=J.match(/\./g);return Y?Y.length:0}function S9(J){var Y=parseFloat(J);if(isNaN(Y))throw Error("Invalid number: "+J);return Y}var lU=[].concat(LY,NY,uU,jY,qY);function pU(J){var Y=J.match(/\D+$/),K=Y&&Y[0];if(K&&lU.indexOf(K)===-1)throw Error("Invalid unit: "+K);return K}var iU=Object.assign(x8(LY,"angle"),x8(NY,"frequency"),x8(jY,"resolution"),x8(qY,"time"));function x8(J,Y){return Object.fromEntries(J.map((K)=>[K,Y]))}function nU(J){return iU[J]||"length"}function n8(J){let Y=typeof J;return!(Y==="number"||Y==="bigint"||Y==="string"||Y==="boolean")}function oU(J){return/^class\s/.test(J.toString())}function rU(J){return"dangerouslySetInnerHTML"in J}function sU(J){let Y=typeof J>"u"?[]:[].concat(J).flat(1/0),K=[];for(let Z=0;Z<Y.length;Z++){let X=Y[Z];typeof X>"u"||typeof X=="boolean"||X===null||(typeof X=="number"&&(X=String(X)),typeof X=="string"&&K.length&&typeof K[K.length-1]=="string"?K[K.length-1]+=X:K.push(X))}return K}function V0(J,Y,K,Z,X=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new X8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*Y;case"rem":return Q.value*16;case"vw":return~~(Q.value*Z._viewportWidth/100);case"vh":return~~(Q.value*Z._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return EY(J);if(Q.type==="percentage"&&X)return Q.value/100*K}}catch{}}function EY(J){let Y=new X8(J);switch(Y.unit){case"deg":return Y.value;case"rad":return Y.value*180/Math.PI;case"turn":return Y.value*360;case"grad":return 0.9*Y.value}}function o8(J,Y){return[J[0]*Y[0]+J[2]*Y[1],J[1]*Y[0]+J[3]*Y[1],J[0]*Y[2]+J[2]*Y[3],J[1]*Y[2]+J[3]*Y[3],J[0]*Y[4]+J[2]*Y[5]+J[4],J[1]*Y[4]+J[3]*Y[5]+J[5]]}function G1(J,Y,K,Z){let X=Y[J];if(typeof X>"u"){if(Z&&typeof J<"u")throw Error(`Invalid value for CSS property "${Z}". Allowed values: ${Object.keys(Y).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);X=K}return X}var v9,k9,aU=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function M1(J,Y,K){if(!v9||!k9){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");v9=new Intl.Segmenter(K,{granularity:"word"}),k9=new Intl.Segmenter(K,{granularity:"grapheme"})}if(Y==="grapheme")return[...k9.segment(J)].map((Z)=>Z.segment);{let Z=[...v9.segment(J)].map((W)=>W.segment),X=[],Q=0;for(;Q<Z.length;){let W=Z[Q];if(W=="\xA0"){let z=Q===0?"":X.pop(),$=Q===Z.length-1?"":Z[Q+1];X.push(z+"\xA0"+$),Q+=2}else X.push(W),Q++}return X}}function t(J,Y,K){let Z="";for(let[X,Q]of Object.entries(Y))typeof Q<"u"&&(Z+=` ${X}="${Q}"`);return K?`<${J}${Z}>${K}</${J}>`:`<${J}${Z}/>`}function tU(J=20){let Y=new Map;function K(Q,W){if(Y.size>=J){let z=Y.keys().next().value;Y.delete(z)}Y.set(Q,W)}function Z(Q){if(!Y.has(Q))return;let W=Y.get(Q);return Y.delete(Q),Y.set(Q,W),W}function X(){Y.clear()}return{set:K,get:Z,clear:X}}function K4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function eU(J){return Object.prototype.toString.call(J)}function FY(J){return typeof J=="string"}function JH(J){return typeof J=="number"}function YH(J){return eU(J)==="[object Undefined]"}function KH(J,Y){if(Y==="break-all")return{words:M1(J,"grapheme"),requiredBreaks:[]};if(Y==="keep-all")return{words:M1(J,"word"),requiredBreaks:[]};let K=new u6(J),Z=0,X=K.nextBreak(),Q=[],W=[!1];for(;X;){let z=J.slice(Z,X.position);Q.push(z),X.required?W.push(!0):W.push(!1),Z=X.position,X=K.nextBreak()}return{words:Q,requiredBreaks:W}}var ZH=(J)=>J.replaceAll(/([A-Z])/g,(Y,K)=>`-${K.toLowerCase()}`);function _Y(J,Y=","){let K=[],Z=0,X=0;Y=new RegExp(Y);for(let Q=0;Q<J.length;Q++)J[Q]==="("?X++:J[Q]===")"&&X--,X===0&&Y.test(J[Q])&&(K.push(J.slice(Z,Q).trim()),Z=Q+1);return K.push(J.slice(Z).trim()),K}var XH="image/avif",QH="image/webp",X6="image/apng",Q6="image/png",W6="image/jpeg",$6="image/gif",Z4="image/svg+xml";function IY(J){let Y=new DataView(J),K=4,Z=Y.byteLength;for(;K<Z;){let X=Y.getUint16(K,!1);if(X>Z)throw TypeError("Invalid JPEG");let Q=Y.getUint8(X+1+K);if(Q===192||Q===193||Q===194)return[Y.getUint16(X+7+K,!1),Y.getUint16(X+5+K,!1)];K+=X+2}throw TypeError("Invalid JPEG")}function DY(J){let Y=new Uint8Array(J.slice(6,10));return[Y[0]|Y[1]<<8,Y[2]|Y[3]<<8]}function RY(J){let Y=new DataView(J);return[Y.getUint16(18,!1),Y.getUint16(22,!1)]}var o1=tU(100),r8=new Map,WH=[Q6,X6,W6,$6,Z4];function $H(J){let Y="",K=new Uint8Array(J);for(let Z=0;Z<K.byteLength;Z++)Y+=String.fromCharCode(K[Z]);return btoa(Y)}function zH(J){let Y=atob(J),K=Y.length,Z=new Uint8Array(K);for(let X=0;X<K;X++)Z[X]=Y.charCodeAt(X);return Z.buffer}function FJ(J,Y){let K=Y.match(/<svg[^>]*>/)[0],Z=K.match(/viewBox=['"](.+)['"]/),X=Z?K4(Z[1]):null,Q=K.match(/width=['"](\d*\.\d+|\d+)['"]/),W=K.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!X&&(!Q||!W))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let z=X?[X[2],X[3]]:[+Q[1],+W[1]],$=z[0]/z[1];return Q&&W?[+Q[1],+W[1]]:Q?[+Q[1],+Q[1]/$]:W?[+W[1]*$,+W[1]]:[z[0],z[1]]}function _J(J){let Y,K=wH(new Uint8Array(J));switch(K){case Q6:case X6:Y=RY(J);break;case $6:Y=DY(J);break;case W6:Y=IY(J);break}if(!WH.includes(K))throw Error(`Unsupported image type: ${K||"unknown"}`);return[`data:${K};base64,${$H(J)}`,Y]}async function X4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[X,Q]=_J(J);return[X,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let X;try{X=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:W,dataString:z}=X;if(Q===Z4){let $=W==="base64"?atob(z):decodeURIComponent(z.replace(/ /g,"%20")),w=W==="base64"?J:`data:image/svg+xml;base64,${btoa($)}`,U=FJ(J,$);return o1.set(J,[w,...U]),[w,...U]}else if(W==="base64"){let $,w=zH(z);switch(Q){case Q6:case X6:$=RY(w);break;case $6:$=DY(w);break;case W6:$=IY(w);break}return o1.set(J,[J,...$]),[J,...$]}else return console.warn("Image data URI resolved without size:"+J),o1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(r8.has(J))return r8.get(J);let Y=o1.get(J);if(Y)return Y;let K=J,Z=fetch(K).then((X)=>{let Q=X.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?X.text():X.arrayBuffer()}).then((X)=>{if(typeof X=="string")try{let z=`data:image/svg+xml;base64,${btoa(X)}`,$=FJ(K,X);return[z,...$]}catch(z){throw Error(`Failed to parse SVG image: ${z.message}`)}let[Q,W]=_J(X);return[Q,...W]}).then((X)=>(o1.set(K,X),X)).catch((X)=>(console.error(`Can't load image ${K}: `+X.message),o1.set(K,[]),[]));return r8.set(K,Z),Z}function wH(J){return[255,216,255].every((Y,K)=>J[K]===Y)?W6:[137,80,78,71,13,10,26,10].every((Y,K)=>J[K]===Y)?UH(J)?X6:Q6:[71,73,70,56].every((Y,K)=>J[K]===Y)?$6:[82,73,70,70,0,0,0,0,87,69,66,80].every((Y,K)=>!Y||J[K]===Y)?QH:[60,63,120,109,108].every((Y,K)=>J[K]===Y)?Z4:[0,0,0,0,102,116,121,112,97,118,105,102].every((Y,K)=>!Y||J[K]===Y)?XH:null}function UH(J){let Y=new DataView(J.buffer),K,Z,X=8,Q=!1;for(;!Q&&K!=="IEND"&&X<J.length;){Z=Y.getUint32(X);let W=J.subarray(X+4,X+8);K=String.fromCharCode(...W),Q=K==="acTL",X+=12+Z}return Q}var u9={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},HH=/[\r\n%#()<>?[\\\]^`{|}"']/g;function c9(J,Y){if(!J)return"";if(Array.isArray(J))return J.map((w)=>c9(w,Y)).join("");if(typeof J!="object")return String(J);let K=J.type;if(K==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:Z,style:X,...Q}=J.props||{},W=(X==null?void 0:X.color)||Y,z=`${Object.entries(Q).map(([w,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=W),w==="href"&&K==="image"?` ${u9[w]||w}="${o1.get(U)[0]}"`:` ${u9[w]||w}="${U}"`)).join("")}`,$=X?` style="${Object.entries(X).map(([w,U])=>`${ZH(w)}:${U}`).join(";")}"`:"";return`<${K}${z}${$}>${c9(Z,W)}</${K}>`}async function VH(J){let Y=new Set,K=(Z)=>{if(Z&&n8(Z)){if(Array.isArray(Z)){Z.forEach((X)=>K(X));return}else typeof Z=="object"&&(Z.type==="image"?Y.has(Z.props.href)||Y.add(Z.props.href):Z.type==="img"&&(Y.has(Z.props.src)||Y.add(Z.props.src)));Array.isArray(Z.props.children)?Z.props.children.map((X)=>K(X)):K(Z.props.children)}};return K(J),Promise.all(Array.from(Y).map((Z)=>X4(Z)))}async function AH(J,Y){let{viewBox:K,viewbox:Z,width:X,height:Q,className:W,style:z,children:$,...w}=J.props||{};K||=Z,w.xmlns="http://www.w3.org/2000/svg";let U=(z==null?void 0:z.color)||Y,H=K4(K),V=H?H[3]/H[2]:null;return X=X||V&&Q?Q/V:null,Q=Q||V&&X?X*V:null,w.width=X,w.height=Q,K&&(w.viewBox=K),`data:image/svg+xml;utf8,${`<svg ${Object.entries(w).map(([A,O])=>(typeof O=="string"&&O.toLowerCase()==="currentcolor"&&(O=U),` ${u9[A]||A}="${O}"`)).join("")}>${c9($,U)}</svg>`.replace(HH,encodeURIComponent)}`}var Z1="flex",BH={p:{display:Z1,marginTop:"1em",marginBottom:"1em"},div:{display:Z1},blockquote:{display:Z1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Z1,textAlign:"center"},hr:{display:Z1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Z1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Z1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Z1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Z1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Z1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Z1,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:Z1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},GH=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function OH(J){let Y={};for(let K in J)GH.has(K)&&(Y[K]=J[K]);return Y}function MH(J,Y){try{let K=new X8(J);switch(K.unit){case"px":return{absolute:K.value};case"em":return{absolute:K.value*Y};case"rem":return{absolute:K.value*16};case"%":return{relative:K.value};default:return{}}}catch{return{}}}function g9(J,Y,K){switch(J){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 Z=MH(J,Y);return Z.absolute?{[K?"xAbsolute":"yAbsolute"]:Z.absolute}:Z.relative?{[K?"xRelative":"yRelative"]:Z.relative}:{}}}}function LH(J,Y){if(typeof J=="number")return{xAbsolute:J};let K;try{K=PY.default(J).nodes.filter((Z)=>Z.type==="word").map((Z)=>Z.value)}catch{return{}}return K.length===1?g9(K[0],Y,!0):K.length===2?((K[0]==="top"||K[0]==="bottom"||K[1]==="left"||K[1]==="right")&&K.reverse(),{...g9(K[0],Y,!0),...g9(K[1],Y,!1)}):{}}function a5(J,Y){let K=SY.getPropertyName(`mask-${Y}`);return J[K]||J[`WebkitM${K.substring(1)}`]}function jH(J){let Y=J.maskImage||J.WebkitMaskImage,K={position:a5(J,"position")||"0% 0%",size:a5(J,"size")||"100% 100%",repeat:a5(J,"repeat")||"repeat",origin:a5(J,"origin")||"border-box",clip:a5(J,"origin")||"border-box"};return _Y(Y).filter((Z)=>Z&&Z!=="none").reverse().map((Z)=>({image:Z,...K}))}var NH=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),qH=new Set(["lineHeight"]);function EH(J,Y,K,Z){return J==="textDecoration"&&!K.includes(Y.textDecorationColor)&&(Y.textDecorationColor=Z),Y}function Q5(J,Y){let K=Number(Y);return isNaN(K)?Y:NH.has(J)?qH.has(J)?K:String(Y):K+"px"}function FH(J,Y,K){if(J==="lineHeight")return{lineHeight:Q5(J,Y)};if(J==="fontFamily")return{fontFamily:Y.split(",").map((Z)=>Z.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof Y!="string"||!Y.includes("/"))return;let[Z,X]=Y.split("/"),Q=O1.getStylesForProperty(J,Z,!0),W=O1.getStylesForProperty(J,X,!0);for(let z in Q)W[z]=Q5(J,Q[z])+" "+Q5(J,W[z]);return W}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let Z=O1.getStylesForProperty("border",Y,!0);Z.borderWidth===1&&!String(Y).includes("1px")&&(Z.borderWidth=3),Z.borderColor==="black"&&!String(Y).includes("black")&&(Z.borderColor=K);let X={Width:Q5(J+"Width",Z.borderWidth),Style:G1(Z.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:Z.borderColor},Q={};for(let W of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let z in X)Q["border"+W+z]=X[z];return Q}if(J==="boxShadow"){if(!Y)throw Error('Invalid `boxShadow` value: "'+Y+'".');return{[J]:typeof Y=="string"?TY.parse(Y):Y}}if(J==="transform"){if(typeof Y!="string")throw Error("Invalid `transform` value.");let Z={},X=Y.replace(/(-?[\d.]+%)/g,(W,z)=>{let $=~~(Math.random()*1e9);return Z[$]=z,$+"px"}),Q=O1.getStylesForProperty("transform",X,!0);for(let W of Q.transform)for(let z in W)Z[W[z]]&&(W[z]=Z[W[z]]);return Q}if(J==="background")return Y=Y.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(Y)?O1.getStylesForProperty("backgroundImage",Y,!0):O1.getStylesForProperty("background",Y,!0);if(J==="textShadow"){Y=Y.toString().trim();let Z={},X=_Y(Y);for(let Q of X){let W=O1.getStylesForProperty("textShadow",Q,!0);for(let z in W)Z[z]?Z[z].push(W[z]):Z[z]=[W[z]]}return Z}if(J==="WebkitTextStroke"){Y=Y.toString().trim();let Z=Y.split(" ");if(Z.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,Z[0]),WebkitTextStrokeColor:Q5(J,Z[1])}}}function IJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var DJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function vY(J){if(typeof J=="string"&&DJ.test(J.trim()))return J.trim().replace(DJ,(Y,K,Z,X,Q)=>`rgba(${K}, ${Z}, ${X}, ${Q})`);if(typeof J=="object"&&J!==null){for(let Y in J)J[Y]=vY(J[Y]);return J}return J}function RJ(J,Y){let K={};if(J){let X=IH(J.color,Y.color);K.color=X;for(let Q in J){if(Q.startsWith("_")){K[Q]=J[Q];continue}if(Q==="color")continue;let W=O1.getPropertyName(Q),z=RH(J[Q],X);try{let $=FH(W,z,X)||EH(W,O1.getStylesForProperty(W,Q5(W,z),!0),z,X);Object.assign(K,$)}catch($){throw Error($.message+($.message.includes(z)?`
|
|
64
|
+
`+IJ(W):`
|
|
65
|
+
in CSS rule \`${W}: ${z}\`.${IJ(W)}`))}}}if(K.backgroundImage){let{backgrounds:X}=CY.parseElementStyle(K);K.backgroundImage=X}(K.maskImage||K.WebkitMaskImage)&&(K.maskImage=jH(K));let Z=_H(K.fontSize,Y.fontSize);typeof K.fontSize<"u"&&(K.fontSize=Z),K.transformOrigin&&(K.transformOrigin=LH(K.transformOrigin,Z));for(let X in K){let Q=K[X];if(X==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=K[X]=V0(Q,Z,Z,Y,!0)/Z);else{if(typeof Q=="string"){let W=V0(Q,Z,Z,Y);typeof W<"u"&&(K[X]=W),Q=K[X]}if(typeof Q=="string"||typeof Q=="object"){let W=vY(Q);W&&(K[X]=W),Q=K[X]}}if(X==="opacity"&&typeof Q=="number"&&(K.opacity=Q*Y.opacity),X==="transform"){let W=Q;for(let z of W){let $=Object.keys(z)[0],w=z[$],U=typeof w=="string"?V0(w,Z,Z,Y)??w:w;z[$]=U}}if(X==="textShadowRadius"){let W=Q;K.textShadowRadius=W.map((z)=>V0(z,Z,0,Y,!1))}if(X==="textShadowOffset"){let W=Q;K.textShadowOffset=W.map(({height:z,width:$})=>({height:V0(z,Z,0,Y,!1),width:V0($,Z,0,Y,!1)}))}}return K}function _H(J,Y){if(typeof J=="number")return J;try{let K=new X8(J);switch(K.unit){case"em":return K.value*Y;case"rem":return K.value*16}}catch{return Y}}function CJ(J){if(J.startsWith("hsl")){let Y=D8(J),[K,Z,X]=Y.values;return`hsl(${[K,`${Z}%`,`${X}%`].concat(Y.alpha===1?[]:[Y.alpha]).join(",")})`}return J}function IH(J,Y){return J&&J.toLowerCase()!=="currentcolor"?CJ(J):CJ(Y)}function DH(J,Y){return J.replace(/currentcolor/gi,Y)}function RH(J,Y){return FY(J)&&(J=DH(J,Y)),J}async function CH(J,Y,K,Z,X){let Q=await Z6(),W={...K,...RJ(BH[Y],K),...RJ(Z,K)};if(Y==="img"){let[z,$,w]=await X4(X.src);if($===void 0&&w===void 0){if(X.width===void 0||X.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");$=parseInt(X.width),w=parseInt(X.height)}let U=w/$,H=(W.borderLeftWidth||0)+(W.borderRightWidth||0)+(W.paddingLeft||0)+(W.paddingRight||0),V=(W.borderTopWidth||0)+(W.borderBottomWidth||0)+(W.paddingTop||0)+(W.paddingBottom||0),A=W.width||X.width,O=W.height||X.height,B=typeof A=="number"&&typeof O=="number";B&&(A-=H,O-=V),A===void 0&&O===void 0?(A="100%",J.setAspectRatio(1/U)):A===void 0?typeof O=="number"?A=O/U:J.setAspectRatio(1/U):O===void 0&&(typeof A=="number"?O=A*U:J.setAspectRatio(1/U)),W.width=B?A+H:A,W.height=B?O+V:O,W.__src=z}if(Y==="svg"){let z=X.viewBox||X.viewbox,$=K4(z),w=$?$[3]/$[2]:null,{width:U,height:H}=X;typeof U>"u"&&H?w==null?U=0:typeof H=="string"&&H.endsWith("%")?U=parseInt(H)/w+"%":(H=V0(H,K.fontSize,1,K),U=H/w):typeof H>"u"&&U?w==null?U=0:typeof U=="string"&&U.endsWith("%")?H=parseInt(U)*w+"%":(U=V0(U,K.fontSize,1,K),H=U*w):(typeof U<"u"&&(U=V0(U,K.fontSize,1,K)||U),typeof H<"u"&&(H=V0(H,K.fontSize,1,K)||H),U||=$==null?void 0:$[2],H||=$==null?void 0:$[3]),!W.width&&U&&(W.width=U),!W.height&&H&&(W.height=H)}return J.setDisplay(G1(W.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(G1(W.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems(G1(W.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(G1(W.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(G1(W.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(G1(W.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(G1(W.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof W.gap<"u"&&J.setGap(Q.GUTTER_ALL,W.gap),typeof W.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,W.rowGap),typeof W.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,W.columnGap),typeof W.flexBasis<"u"&&J.setFlexBasis(W.flexBasis),J.setFlexGrow(typeof W.flexGrow>"u"?0:W.flexGrow),J.setFlexShrink(typeof W.flexShrink>"u"?0:W.flexShrink),typeof W.maxHeight<"u"&&J.setMaxHeight(W.maxHeight),typeof W.maxWidth<"u"&&J.setMaxWidth(W.maxWidth),typeof W.minHeight<"u"&&J.setMinHeight(W.minHeight),typeof W.minWidth<"u"&&J.setMinWidth(W.minWidth),J.setOverflow(G1(W.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,W.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,W.marginBottom||0),J.setMargin(Q.EDGE_LEFT,W.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,W.marginRight||0),J.setBorder(Q.EDGE_TOP,W.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,W.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,W.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,W.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,W.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,W.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,W.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,W.paddingRight||0),J.setPositionType(G1(W.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof W.top<"u"&&J.setPosition(Q.EDGE_TOP,W.top),typeof W.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,W.bottom),typeof W.left<"u"&&J.setPosition(Q.EDGE_LEFT,W.left),typeof W.right<"u"&&J.setPosition(Q.EDGE_RIGHT,W.right),typeof W.height<"u"?J.setHeight(W.height):J.setHeightAuto(),typeof W.width<"u"?J.setWidth(W.width):J.setWidthAuto(),[W,OH(W)]}var TJ=[1,0,0,1,0,0];function TH(J,Y,K){let Z=[...TJ];for(let X of J){let Q=Object.keys(X)[0],W=X[Q];if(typeof W=="string")if(Q==="translateX")W=parseFloat(W)/100*Y,X[Q]=W;else if(Q==="translateY")W=parseFloat(W)/100*K,X[Q]=W;else throw Error(`Invalid transform: "${Q}: ${W}".`);let z=W,$=[...TJ];switch(Q){case"translateX":$[4]=z;break;case"translateY":$[5]=z;break;case"scale":$[0]=z,$[3]=z;break;case"scaleX":$[0]=z;break;case"scaleY":$[3]=z;break;case"rotate":{let w=z*Math.PI/180,U=Math.cos(w),H=Math.sin(w);$[0]=U,$[1]=H,$[2]=-H,$[3]=U;break}case"skewX":$[2]=Math.tan(z*Math.PI/180);break;case"skewY":$[1]=Math.tan(z*Math.PI/180);break}Z=o8($,Z)}J.splice(0,J.length),J.push(...Z),J.__resolved=!0}function kY({left:J,top:Y,width:K,height:Z},X,Q,W){let z;X.__resolved||TH(X,K,Z);let $=X;if(Q)z=$;else{let w=(W==null?void 0:W.xAbsolute)??((W==null?void 0:W.xRelative)??50)*K/100,U=(W==null?void 0:W.yAbsolute)??((W==null?void 0:W.yRelative)??50)*Z/100,H=J+w,V=Y+U;z=o8([1,0,0,1,H,V],o8($,[1,0,0,1,-H,-V])),$.__parent&&(z=o8($.__parent,z)),$.splice(0,6,...z)}return`matrix(${z.map((w)=>w.toFixed(2)).join(",")})`}function PH({left:J,top:Y,width:K,height:Z,isInheritingTransform:X},Q){let W="",z=1;return Q.transform&&(W=kY({left:J,top:Y,width:K,height:Z},Q.transform,X,Q.transformOrigin)),Q.opacity!==void 0&&(z=+Q.opacity),{matrix:W,opacity:z}}function SH({id:J,content:Y,filter:K,left:Z,top:X,width:Q,height:W,matrix:z,opacity:$,image:w,clipPathId:U,debug:H,shape:V,decorationShape:A},O){let B="";if(H&&(B=t("rect",{x:Z,y:X-W,width:Q,height:W,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0})),w){let j={href:w,x:Z,y:X,width:Q,height:W,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0,style:O.filter?`filter:${O.filter}`:void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+t("image",{...j,opacity:$!==1?$:void 0})+(A||"")+(K?"</g>":"")+B,""]}let M={x:Z,y:X,width:Q,height:W,"font-weight":O.fontWeight,"font-style":O.fontStyle,"font-size":O.fontSize,"font-family":O.fontFamily,"letter-spacing":O.letterSpacing||void 0,transform:z||void 0,"clip-path":U?`url(#${U})`:void 0,style:O.filter?`filter:${O.filter}`:void 0,"stroke-width":O.WebkitTextStrokeWidth?`${O.WebkitTextStrokeWidth}px`:void 0,stroke:O.WebkitTextStrokeWidth?O.WebkitTextStrokeColor:void 0,"stroke-linejoin":O.WebkitTextStrokeWidth?"round":void 0,"paint-order":O.WebkitTextStrokeWidth?"stroke":void 0};return[(K?`${K}<g filter="url(#satori_s-${J})">`:"")+t("text",{...M,fill:O.color,opacity:$!==1?$:void 0},l9.default(Y))+(A||"")+(K?"</g>":"")+B,V?t("text",M,l9.default(Y)):""]}function vH(J,Y,K){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(Z,X,Q,W){return X+(parseFloat(Q)+Y)+","+(parseFloat(W)+K)})}var b8=1.1;function kH({id:J,width:Y,height:K},Z){if(!Z.shadowColor||!Z.shadowOffset||typeof Z.shadowRadius>"u")return"";let X=Z.shadowColor.length,Q="",W="",z=0,$=Y,w=0,U=K;for(let H=0;H<X;H++){let V=Z.shadowRadius[H]*Z.shadowRadius[H]/4;z=Math.min(Z.shadowOffset[H].width-V,z),$=Math.max(Z.shadowOffset[H].width+V+Y,$),w=Math.min(Z.shadowOffset[H].height-V,w),U=Math.max(Z.shadowOffset[H].height+V+K,U),Q+=t("feDropShadow",{dx:Z.shadowOffset[H].width,dy:Z.shadowOffset[H].height,stdDeviation:Z.shadowRadius[H]/2,"flood-color":Z.shadowColor[H],"flood-opacity":1,...X>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${H}`}:{}}),X>1&&(W=t("feMergeNode",{in:`satori_s-${J}-result-${H}`})+W)}return t("filter",{id:`satori_s-${J}`,x:(z/Y*100*b8).toFixed(2)+"%",y:(w/K*100*b8).toFixed(2)+"%",width:(($-z)/Y*100*b8).toFixed(2)+"%",height:((U-w)/K*100*b8).toFixed(2)+"%"},Q+(W?t("feMerge",{},W):""))}function gH({width:J,height:Y,shape:K,opacity:Z,id:X},Q){if(!Q.boxShadow)return null;let W="",z="";for(let $=Q.boxShadow.length-1;$>=0;$--){let w="",U=Q.boxShadow[$];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let H=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),V=Math.min(-H-(U.inset?U.offsetX:0),0),A=Math.max(H+J-(U.inset?U.offsetX:0),J),O=Math.min(-H-(U.inset?U.offsetY:0),0),B=Math.max(H+Y-(U.inset?U.offsetY:0),Y),M=`satori_s-${X}-${$}`,j=`satori_ms-${X}-${$}`,N=U.spreadRadius?K.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):K;w+=t("mask",{id:j,maskUnits:"userSpaceOnUse"},t("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+N.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(I,F)=>'d="'+vH(F,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(I,F)=>'x="'+(parseFloat(F)+U.offsetX)+'"').replace(/y="([^"]+)"/,(I,F)=>'y="'+(parseFloat(F)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(w+=t("mask",{id:j+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=t("g",{mask:`url(#${j}-neg)`},E)),w+=t("defs",{},t("filter",{id:M,x:`${V/J*100}%`,y:`${O/Y*100}%`,width:`${(A-V)/J*100}%`,height:`${(B-O)/Y*100}%`},t("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+t("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+t("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+t("g",{mask:`url(#${j})`,filter:`url(#${M})`,opacity:Z},E),U.inset?z+=w:W+=w}return[W,z]}function yH({width:J,left:Y,top:K,ascender:Z,clipPathId:X,matrix:Q},W){let{textDecorationColor:z,textDecorationStyle:$,textDecorationLine:w,fontSize:U,color:H}=W;if(!w||w==="none")return"";let V=Math.max(1,U*0.1),A=w==="line-through"?K+Z*0.7:w==="underline"?K+Z*1.1:K,O=$==="dashed"?`${V*1.2} ${V*2}`:$==="dotted"?`0 ${V*2}`:void 0;return(X?`<g clip-path="url(#${X})">`:"")+t("line",{x1:Y,y1:A,x2:Y+J,y2:A,stroke:z||H,"stroke-width":V,"stroke-dasharray":O,"stroke-linecap":$==="dotted"?"round":"square",transform:Q})+(X?"</g>":"")}function Q4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var K8=Q4("U+0020"),gY=Q4("U+0009"),s8=Q4("U+2026");function hH(J,Y,K){let{fontSize:Z,letterSpacing:X}=K,Q=new Map;function W(w){if(Q.has(w))return Q.get(w);let U=J.measure(w,{fontSize:Z,letterSpacing:X});return Q.set(w,U),U}function z(w){let U=0;for(let H of w)Y(H)?U+=Z:U+=W(H);return U}function $(w){return z(M1(w,"grapheme"))}return{measureGrapheme:W,measureGraphemeArray:z,measureText:$}}function xH(J,Y,K){let{textTransform:Z,whiteSpace:X,wordBreak:Q}=Y;J=bH(J,Z,K);let{content:W,shouldCollapseTabsAndSpaces:z,allowSoftWrap:$}=dH(J,X),{words:w,requiredBreaks:U,allowBreakWord:H}=mH(W,Q),[V,A]=fH(Y,$);return{words:w,requiredBreaks:U,allowSoftWrap:$,allowBreakWord:H,processedContent:W,shouldCollapseTabsAndSpaces:z,lineLimit:V,blockEllipsis:A}}function bH(J,Y,K){return Y==="uppercase"?J=J.toLocaleUpperCase(K):Y==="lowercase"?J=J.toLocaleLowerCase(K):Y==="capitalize"&&(J=M1(J,"word",K).map((Z)=>M1(Z,"grapheme",K).map((X,Q)=>Q===0?X.toLocaleUpperCase(K):X).join("")).join("")),J}function fH(J,Y){let{textOverflow:K,lineClamp:Z,WebkitLineClamp:X,WebkitBoxOrient:Q,overflow:W,display:z}=J;if(z==="block"&&Z){let[$,w=s8]=uH(Z);if($)return[$,w]}return K==="ellipsis"&&z==="-webkit-box"&&Q==="vertical"&&JH(X)&&X>0?[X,s8]:K==="ellipsis"&&W==="hidden"&&!Y?[1,s8]:[1/0]}function mH(J,Y){let K=["break-all","break-word"].includes(Y),{words:Z,requiredBreaks:X}=KH(J,Y);return{words:Z,requiredBreaks:X,allowBreakWord:K}}function dH(J,Y){let K=["pre","pre-wrap","pre-line"].includes(Y),Z=["normal","nowrap","pre-line"].includes(Y),X=!["pre","nowrap"].includes(Y);return K||(J=J.replace(/\n/g,K8)),Z&&(J=J.replace(/([ ]|\t)+/g,K8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:Z,allowSoftWrap:X}}function uH(J){if(typeof J=="number")return[J];let Y=/^(\d+)\s*"(.*)"$/,K=/^(\d+)\s*'(.*)'$/,Z=Y.exec(J),X=K.exec(J);if(Z){let Q=+Z[1],W=Z[2];return[Q,W]}else if(X){let Q=+X[1],W=X[2];return[Q,W]}return[]}var cH=new Set([gY]);function lH(J){return cH.has(J)}async function*pH(J,Y){let K=await Z6(),{parentStyle:Z,inheritedStyle:X,parent:Q,font:W,id:z,isInheritingTransform:$,debug:w,embedFont:U,graphemeImages:H,locale:V,canLoadAdditionalAssets:A}=Y,{textAlign:O,lineHeight:B,textWrap:M,fontSize:j,filter:N,tabSize:E=8,letterSpacing:I,_inheritedBackgroundClipTextPath:F,flexShrink:q}=Z,{words:T,requiredBreaks:D,allowSoftWrap:R,allowBreakWord:y,processedContent:u,shouldCollapseTabsAndSpaces:i,lineLimit:p,blockEllipsis:S}=xH(J,Z,V),v=iH(K,O);Q.insertChild(v,Q.getChildCount()),YH(q)&&Q.setFlexShrink(1);let C=W.getEngine(j,B,Z,V),m=A?M1(u,"grapheme").filter(($0)=>!lH($0)&&!C.has($0)):[];yield m.map(($0)=>({word:$0,locale:V})),m.length&&(C=W.getEngine(j,B,Z,V));function c($0){return!!(H&&H[$0])}let{measureGrapheme:a,measureGraphemeArray:n,measureText:f}=hH(C,c,{fontSize:j,letterSpacing:I}),d=FY(E)?V0(E,j,1,Z):a(K8)*E,P=($0,N0)=>{if($0.length===0)return{originWidth:0,endingSpacesWidth:0,text:$0};let{index:F0,tabCount:O0}=nH($0),T0=0;if(O0>0){let S0=$0.slice(0,F0),R0=$0.slice(F0+O0),L0=f(S0),L1=L0+N0;T0=(d===0?L0:(Math.floor(L1/d)+O0)*d)+f(R0)}else T0=f($0);let M0=$0.trimEnd()===$0?T0:f($0.trimEnd());return{originWidth:T0,endingSpacesWidth:T0-M0,text:$0}},k=[],l=[],h=[],s=[],Z0=[];function Q0($0){let N0=0,F0=0,O0=-1,T0=0,M0=0,S0=0,R0=0;k=[],h=[0],s=[],Z0=[];let L0=0,L1=0;for(;L0<T.length&&N0<p;){let w0=T[L0],e1=D[L0],J1=0,{originWidth:x1,endingSpacesWidth:H8,text:b1}=P(w0,M0);w0=b1,J1=x1;let q0=H8;e1&&S0===0&&(S0=C.height(w0));let b0=",.!?:-@)>]}%#".indexOf(w0[0])<0,$1=!M0,V8=L0&&b0&&M0+J1>$0+q0&&R;if(y&&J1>$0&&(!M0||V8||e1)){let l0=M1(w0,"grapheme");T.splice(L0,1,...l0),M0>0&&(k.push(M0-L1),l.push(R0),N0++,T0+=S0,M0=0,S0=0,R0=0,h.push(1),O0=-1),L1=q0;continue}if(e1||V8)i&&w0===K8&&(J1=0),k.push(M0-L1),l.push(R0),N0++,T0+=S0,M0=J1,S0=J1?C.height(w0):0,R0=J1?C.baseline(w0):0,h.push(1),O0=-1,e1||(F0=Math.max(F0,$0));else{M0+=J1;let l0=C.height(w0);l0>S0&&(S0=l0,R0=C.baseline(w0)),$1&&h[h.length-1]++}$1&&O0++,F0=Math.max(F0,M0);let P5=M0-J1;if(J1===0)Z0.push({y:T0,x:P5,width:0,line:N0,lineIndex:O0,isImage:!1});else{let l0=M1(w0,"word");for(let z1=0;z1<l0.length;z1++){let J5=l0[z1],C1=0,S5=!1;c(J5)?(C1=j,S5=!0):C1=a(J5),s.push(J5),Z0.push({y:T0,x:P5,width:C1,line:N0,lineIndex:O0,isImage:S5}),P5+=C1}}L0++,L1=q0}return M0&&(N0<p&&(T0+=S0),N0++,k.push(M0),l.push(R0)),{width:F0,height:T0}}let J0={width:0,height:0};v.setMeasureFunc(($0)=>{let{width:N0,height:F0}=Q0($0);if(M==="balance"){let T0=N0/2,M0=N0,S0=N0;for(;T0+1<M0;){S0=(T0+M0)/2;let{height:L0}=Q0(S0);L0>F0?T0=S0:M0=S0}Q0(M0);let R0=Math.ceil(M0);return J0={width:R0,height:F0},{width:R0,height:F0}}let O0=Math.ceil(N0);return J0={width:O0,height:F0},{width:O0,height:F0}});let[A0,E0]=yield,K0="",B0="",C0=X._inheritedClipPathId,u0=X._inheritedMaskId,{left:I0,top:D0,width:c0,height:n0}=v.getComputedLayout(),o0=Q.getComputedWidth()-Q.getComputedPadding(K.EDGE_LEFT)-Q.getComputedPadding(K.EDGE_RIGHT)-Q.getComputedBorder(K.EDGE_LEFT)-Q.getComputedBorder(K.EDGE_RIGHT),Q1=A0+I0,W1=E0+D0,{matrix:e0,opacity:U5}=PH({left:I0,top:D0,width:c0,height:n0,isInheritingTransform:$},Z),y1="";if(Z.textShadowOffset){let{textShadowColor:$0,textShadowOffset:N0,textShadowRadius:F0}=Z;y1=kH({width:J0.width,height:J0.height,id:z},{shadowColor:$0,shadowOffset:N0,shadowRadius:F0}),y1=t("defs",{},y1)}let t1="",H5="",U8="",V5=-1,A5={},h1=null,h4=0;for(let $0=0;$0<s.length;$0++){let N0=Z0[$0],F0=Z0[$0+1];if(!N0)continue;let O0=s[$0],T0=null,M0=!1,S0=H?H[O0]:null,R0=N0.y,L0=N0.x,L1=N0.width,w0=N0.line;if(w0===V5)continue;let e1=!1;if(k.length>1){let q0=c0-k[w0];if(O==="right"||O==="end")L0+=q0;else if(O==="center")L0+=q0/2;else if(O==="justify"&&w0<k.length-1){let b0=h[w0],$1=b0>1?q0/(b0-1):0;L0+=$1*N0.lineIndex,e1=!0}}let J1=l[w0],x1=C.baseline(O0),H8=C.height(O0),b1=J1-x1;if(A5[w0]||(A5[w0]=[L0,W1+R0+b1,x1,e1?c0:k[w0]]),p!==1/0){let q0=function(l0,z1){let J5=M1(z1,"grapheme",V),C1="",S5=0;for(let x4 of J5){let b4=l0+n([C1+x4]);if(C1&&b4+$1>o0)break;C1+=x4,S5=b4}return{subset:C1,resolvedWidth:S5}},b0=S,$1=a(S);$1>o0&&(b0=s8,$1=a(b0));let V8=a(K8),P5=w0<k.length-1;if(w0+1===p&&(P5||k[w0]>o0)){if(L0+L1+$1+V8>o0){let{subset:l0,resolvedWidth:z1}=q0(L0,O0);O0=l0+b0,V5=w0,A5[w0][2]=z1,M0=!0}else if(F0&&F0.line!==w0)if(O==="center"){let{subset:l0,resolvedWidth:z1}=q0(L0,O0);O0=l0+b0,V5=w0,A5[w0][2]=z1,M0=!0}else{let l0=s[$0+1],{subset:z1,resolvedWidth:J5}=q0(L1+L0,l0);O0=O0+z1+b0,V5=w0,A5[w0][2]=J5,M0=!0}}}if(S0)R0+=0;else if(U){if(!O0.includes(gY)&&!aU.includes(O0)&&s[$0+1]&&F0&&!F0.isImage&&R0===F0.y&&!M0){h1===null&&(h4=L0),h1=h1===null?O0:h1+O0;continue}let q0=h1===null?O0:h1+O0,b0=h1===null?L0:h4,$1=N0.width+L0-b0;T0=C.getSVG(q0.replace(/(\t)+/g,""),{fontSize:j,left:Q1+b0,top:W1+R0+x1+b1,letterSpacing:I}),h1=null,w&&(U8+=t("rect",{x:Q1+b0,y:W1+R0+b1,width:$1,height:H8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:e0||void 0,"clip-path":C0?`url(#${C0})`:void 0})+t("line",{x1:Q1+L0,x2:Q1+L0+N0.width,y1:W1+R0+b1+x1,y2:W1+R0+b1+x1,stroke:"#14c000","stroke-width":1,transform:e0||void 0,"clip-path":C0?`url(#${C0})`:void 0}))}else R0+=x1+b1;if(Z.textDecorationLine){let q0=A5[w0];q0&&!q0[4]&&(t1+=yH({left:Q1+q0[0],top:q0[1],width:q0[3],ascender:q0[2],clipPathId:C0,matrix:e0},Z),q0[4]=1)}if(T0!==null)H5+=T0+" ";else{let[q0,b0]=SH({content:O0,filter:y1,id:z,left:Q1+L0,top:W1+R0,width:L1,height:H8,matrix:e0,opacity:U5,image:S0,clipPathId:C0,debug:w,shape:!!F,decorationShape:t1},Z);K0+=q0,B0+=b0,t1=""}if(M0)break}if(H5){let $0=Z.color!=="transparent"&&U5!==0?t("path",{fill:Z.color,d:H5,transform:e0||void 0,opacity:U5!==1?U5:void 0,"clip-path":C0?`url(#${C0})`:void 0,mask:u0?`url(#${u0})`:void 0,style:N?`filter:${N}`:void 0,"stroke-width":X.WebkitTextStrokeWidth?`${X.WebkitTextStrokeWidth}px`:void 0,stroke:X.WebkitTextStrokeWidth?X.WebkitTextStrokeColor:void 0,"stroke-linejoin":X.WebkitTextStrokeWidth?"round":void 0,"paint-order":X.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(B0=t("path",{d:H5,transform:e0||void 0})),K0+=(y1?y1+t("g",{filter:`url(#satori_s-${z})`},$0+t1):$0+t1)+U8}return B0&&(Z._inheritedBackgroundClipTextPath.value+=B0),K0}function iH(J,Y){let K=J.Node.create();return K.setAlignItems(J.ALIGN_BASELINE),K.setJustifyContent(G1(Y,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),K}function nH(J){let Y=/(\t)+/.exec(J);return Y?{index:Y.index,tabCount:Y[0].length}:{index:null,tabCount:0}}function yY(J,Y,K,Z,X){let Q=[];for(let w of Y){let{color:U}=w;if(!Q.length&&(Q.push({offset:0,color:U}),!w.offset||w.offset.value==="0"))continue;let H=typeof w.offset>"u"?void 0:w.offset.unit==="%"?+w.offset.value/100:Number(V0(`${w.offset.value}${w.offset.unit}`,K.fontSize,J,K,!0))/J;Q.push({offset:H,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let W=Q[Q.length-1];W.offset!==1&&(typeof W.offset>"u"?W.offset=1:Z?Q[Q.length-1]={offset:1,color:W.color}:Q.push({offset:1,color:W.color}));let z=0,$=1;for(let w=0;w<Q.length;w++)if(typeof Q[w].offset>"u"){for($<w&&($=w);typeof Q[$].offset>"u";)$++;Q[w].offset=(Q[$].offset-Q[z].offset)/($-z)*(w-z)+Q[z].offset}else z=w;return X==="mask"?Q.map((w)=>{let U=D8(w.color);return U?U.alpha===0?{...w,color:"rgba(0, 0, 0, 1)"}:{...w,color:`rgba(255, 255, 255, ${U.alpha})`}:w}):Q}function oH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,z,$,w){let U=F2(Q),[H,V]=W,A=Q.startsWith("repeating"),O,B,M;if(U.orientation.type==="directional")O=sH(U.orientation.value),B=Math.sqrt(Math.pow((O.x2-O.x1)*H,2)+Math.pow((O.y2-O.y1)*V,2));else if(U.orientation.type==="angular"){let{length:F,...q}=aH(EY(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,H,V);B=F,O=q}M=A?tH(U.stops,B,O,$):O;let j=yY(A?rH(U.stops,B):B,U.stops,$,A,w),N=`satori_bi${J}`,E=`satori_pattern_${J}`,I=t("pattern",{id:E,x:z[0]/Y,y:z[1]/K,width:Z?H/Y:"1",height:X?V/K:"1",patternUnits:"objectBoundingBox"},t("linearGradient",{id:N,...M,spreadMethod:A?"repeat":"pad"},j.map((F)=>t("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+t("rect",{x:0,y:0,width:H,height:V,fill:`url(#${N})`}));return[E,I]}function rH(J,Y){let K=J[J.length-1],{offset:Z}=K;return Z?Z.unit==="%"?Number(Z.value)/100*Y:Number(Z.value):Y}function sH(J){let Y=0,K=0,Z=0,X=0;return J.includes("top")?K=1:J.includes("bottom")&&(X=1),J.includes("left")?Y=1:J.includes("right")&&(Z=1),!Y&&!Z&&!K&&!X&&(K=1),{x1:Y,y1:K,x2:Z,y2:X}}function aH(J,Y,K){let Z=Math.pow(K/Y,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let X,Q,W,z,$,w,U,H,V=(A)=>{if(A===0){X=0,Q=K,W=0,z=0,$=K;return}else if(A===Math.PI/2){X=0,Q=0,W=Y,z=0,$=Y;return}if(A>0&&A<Math.PI/2){X=(Z*Y/2/Math.tan(A)-K/2)/(Math.tan(A)+Z/Math.tan(A)),Q=Math.tan(A)*X+K,W=Math.abs(Y/2-X)+Y/2,z=K/2-Math.abs(Q-K/2),$=Math.sqrt(Math.pow(W-X,2)+Math.pow(z-Q,2)),U=(Y/2/Math.tan(A)-K/2)/(Math.tan(A)+1/Math.tan(A)),H=Math.tan(A)*U+K,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else if(A>Math.PI/2&&A<Math.PI){X=(K/2+Z*Y/2/Math.tan(A))/(Math.tan(A)+Z/Math.tan(A)),Q=Math.tan(A)*X,W=Math.abs(Y/2-X)+Y/2,z=K/2+Math.abs(Q-K/2),U=(Y/2/Math.tan(A)+K/2)/(Math.tan(A)+1/Math.tan(A)),H=Math.tan(A)*U,$=2*Math.sqrt(Math.pow(Y/2-U,2)+Math.pow(K/2-H,2));return}else A>=Math.PI&&(V(A-Math.PI),w=X,X=W,W=w,w=Q,Q=z,z=w)};return V(J),{x1:X/Y,y1:Q/K,x2:W/Y,y2:z/K,length:$}}function tH(J,Y,K,Z){let{x1:X,x2:Q,y1:W,y2:z}=K,$=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:V0(`${J[0].offset.value}${J[0].offset.unit}`,Z.fontSize,Y,Z,!0)/Y:0,w=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:V0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,Z.fontSize,Y,Z,!0)/Y:1,U=(Q-X)*$+X,H=(z-W)*$+W,V=(Q-X)*w+X,A=(z-W)*w+W;return{x1:U,y1:H,x2:V,y2:A}}function eH({id:J,width:Y,height:K,repeatX:Z,repeatY:X},Q,W,z,$,w){var U;let{shape:H,stops:V,position:A,size:O}=_2(Q),[B,M]=W,j=B/2,N=M/2,E=JV(A.x,A.y,B,M,$.fontSize,$);j=E.x,N=E.y;let I=yY(Y,V,$,!1,w),F=`satori_radial_${J}`,q=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=YV(H,O,$.fontSize,{x:j,y:N},[B,M],$),R=t("pattern",{id:q,x:z[0]/Y,y:z[1]/K,width:Z?B/Y:"1",height:X?M/K:"1",patternUnits:"objectBoundingBox"},t("radialGradient",{id:F},I.map((y)=>t("stop",{offset:y.offset||0,"stop-color":y.color})).join(""))+t("mask",{id:T},t("rect",{x:0,y:0,width:B,height:M,fill:"#fff"}))+t("rect",{x:0,y:0,width:B,height:M,fill:((U=I.at(-1))==null?void 0:U.color)||"transparent"})+t(H,{cx:j,cy:N,width:B,height:M,...D,fill:`url(#${F})`,mask:`url(#${T})`}));return[q,R]}function JV(J,Y,K,Z,X,Q){let W={x:K/2,y:Z/2};return J.type==="keyword"?Object.assign(W,PJ(J.value,K,Z,"x")):W.x=V0(`${J.value.value}${J.value.unit}`,X,K,Q,!0)||K/2,Y.type==="keyword"?Object.assign(W,PJ(Y.value,K,Z,"y")):W.y=V0(`${Y.value.value}${Y.value.unit}`,X,Z,Q,!0)||Z/2,W}function PJ(J,Y,K,Z){switch(J){case"center":return{[Z]:Z==="x"?Y/2:K/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:Y};case"bottom":return{y:K}}}function YV(J,Y,K,Z,X,Q){let[W,z]=X,{x:$,y:w}=Z,U={},H=0,V=0;if(KV(Y)){if(Y.some((A)=>A.value.value.startsWith("-")))throw 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 J==="circle"?{r:Number(V0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0))}:{rx:Number(V0(`${Y[0].value.value}${Y[0].value.unit}`,K,W,Q,!0)),ry:Number(V0(`${Y[1].value.value}${Y[1].value.unit}`,K,z,Q,!0))}}switch(Y[0].value){case"farthest-corner":H=Math.max(Math.abs(W-$),Math.abs($)),V=Math.max(Math.abs(z-w),Math.abs(w));break;case"closest-corner":H=Math.min(Math.abs(W-$),Math.abs($)),V=Math.min(Math.abs(z-w),Math.abs(w));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(W-$),Math.abs($),Math.abs(z-w),Math.abs(w)):(U.rx=Math.max(Math.abs(W-$),Math.abs($)),U.ry=Math.max(Math.abs(z-w),Math.abs(w))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(W-$),Math.abs($),Math.abs(z-w),Math.abs(w)):(U.rx=Math.min(Math.abs(W-$),Math.abs($)),U.ry=Math.min(Math.abs(z-w),Math.abs(w))),U}if(J==="circle")U.r=Math.sqrt(H*H+V*V);else{let A=V!==0?H/V:1;H===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt(H*H+V*V*A*A)/A,U.rx=U.ry*A)}return U}function KV(J){return!J.some((Y)=>Y.type==="keyword")}function ZV(J,Y){return typeof J=="string"&&J.endsWith("%")?Y*parseFloat(J)/100:+J}function y9(J,{x:Y,y:K,defaultX:Z,defaultY:X}){return(J?J.split(" ").map((Q)=>{try{let W=new X8(Q);return W.type==="length"||W.type==="number"?W.value:W.value+W.unit}catch{return null}}).filter((Q)=>Q!==null):[Z,X]).map((Q,W)=>ZV(Q,[Y,K][W]))}async function hY({id:J,width:Y,height:K,left:Z,top:X},{image:Q,size:W,position:z,repeat:$},w,U){$=$||"repeat",U=U||"background";let H=$==="repeat-x"||$==="repeat",V=$==="repeat-y"||$==="repeat",A=y9(W,{x:Y,y:K,defaultX:Y,defaultY:K}),O=y9(z,{x:Y,y:K,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return oH({id:J,width:Y,height:K,repeatX:H,repeatY:V},Q,A,O,w,U);if(Q.startsWith("radial-gradient("))return eH({id:J,width:Y,height:K,repeatX:H,repeatY:V},Q,A,O,w,U);if(Q.startsWith("url(")){let B=y9(W,{x:Y,y:K,defaultX:0,defaultY:0}),[M,j,N]=await X4(Q.slice(4,-1)),E=U==="mask"?j||B[0]:B[0]||j,I=U==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,t("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:O[0]+Z,y:O[1]+X,width:H?E:"100%",height:V?I:"100%"},t("image",{x:0,y:0,width:E,height:I,preserveAspectRatio:"none",href:M}))]}throw Error(`Invalid background image: "${Q}"`)}function XV([J,Y]){return Math.round(J*1000)===0&&Math.round(Y*1000)===0?0:Math.round(J*Y/Math.sqrt(J*J+Y*Y)*1000)/1000}function f8(J,Y,K){return K<J+Y&&(K/2<J&&K/2<Y?J=Y=K/2:K/2<J?J=K-Y:K/2<Y&&(Y=K-J)),[J,Y]}function m8(J){J[0]=J[1]=Math.min(J[0],J[1])}function d8(J,Y,K,Z,X){if(typeof J=="string"){let Q=J.split(" ").map((z)=>z.trim()),W=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[W,[Math.min(V0(Q[0],Z,Y,X,!0),Y),Math.min(V0(Q[1],Z,K,X,!0),K)]]}return typeof J=="number"?[!0,[Math.min(J,Y),Math.min(J,K)]]:[!0,void 0]}var u8=(J)=>J&&J[0]!==0&&J[1]!==0;function QV({id:J,borderRadiusPath:Y,borderType:K,left:Z,top:X,width:Q,height:W},z){let $=`satori_brc-${J}`;return[t("clipPath",{id:$},t(K,{x:Z,y:X,width:Q,height:W,d:Y||void 0})),$]}function e8({left:J,top:Y,width:K,height:Z},X,Q){let{borderTopLeftRadius:W,borderTopRightRadius:z,borderBottomLeftRadius:$,borderBottomRightRadius:w,fontSize:U}=X,H,V,A,O;if([H,W]=d8(W,K,Z,U,X),[V,z]=d8(z,K,Z,U,X),[A,$]=d8($,K,Z,U,X),[O,w]=d8(w,K,Z,U,X),!Q&&!u8(W)&&!u8(z)&&!u8($)&&!u8(w))return"";W||=[0,0],z||=[0,0],$||=[0,0],w||=[0,0],[W[0],z[0]]=f8(W[0],z[0],K),[$[0],w[0]]=f8($[0],w[0],K),[W[1],$[1]]=f8(W[1],$[1],Z),[z[1],w[1]]=f8(z[1],w[1],Z),H&&m8(W),V&&m8(z),A&&m8($),O&&m8(w);let B=[];B[0]=[z,z],B[1]=[w,[-w[0],w[1]]],B[2]=[$,[-$[0],-$[1]]],B[3]=[W,[W[0],-W[1]]];let M=`h${K-W[0]-z[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,j=`v${Z-z[1]-w[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${w[0]+$[0]-K} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${$[1]+W[1]-Z} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let I=function(i){let p=XV([W,z,w,$][i]);return i===0?[[J+W[0]-p,Y+W[1]-p],[J+W[0],Y]]:i===1?[[J+K-z[0]+p,Y+z[1]-p],[J+K,Y+z[1]]]:i===2?[[J+K-w[0]+p,Y+Z-w[1]+p],[J+K-w[0],Y+Z]]:[[J+$[0]-p,Y+Z-$[1]+p],[J,Y+Z-$[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let q="",T=I(F),D=`M${T[0]} A${B[(F+3)%4][0]} 0 0 1 ${T[1]}`,R=0;for(;R<4&&Q[(F+R)%4];R++)q+=D+" ",D=[M,j,N,E][(F+R)%4];let y=(F+R)%4;q+=D.split(" ")[0];let u=I(y);return q+=` A${B[(y+3)%4][0]} 0 0 1 ${u[0]}`,q}return`M${J+W[0]},${Y} ${M} ${j} ${N} ${E}`}function SJ(J,Y,K){return K[J+"Width"]===K[Y+"Width"]&&K[J+"Style"]===K[Y+"Style"]&&K[J+"Color"]===K[Y+"Color"]}function WV({id:J,currentClipPathId:Y,borderPath:K,borderType:Z,left:X,top:Q,width:W,height:z},$){if(!($.borderTopWidth||$.borderRightWidth||$.borderBottomWidth||$.borderLeftWidth))return null;let w=`satori_bc-${J}`;return[t("clipPath",{id:w,"clip-path":Y?`url(#${Y})`:void 0},t(Z,{x:X,y:Q,width:W,height:z,d:K||void 0})),w]}function xY({left:J,top:Y,width:K,height:Z,props:X,asContentMask:Q,maskBorderOnly:W},z){let $=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!$.some((A)=>z[A+"Width"]))return"";let w="",U=0;for(;U>0&&SJ($[U],$[(U+3)%4],z);)U=(U+3)%4;let H=[!1,!1,!1,!1],V=[];for(let A=0;A<4;A++){let O=(U+A)%4,B=(U+A+1)%4,M=$[O],j=$[B];if(H[O]=!0,V=[z[M+"Width"],z[M+"Style"],z[M+"Color"],M],!SJ(M,j,z)){let N=(V[0]||0)+(Q&&!W&&z[M.replace("border","padding")]||0);N&&(w+=t("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":V[2],"stroke-width":N*2,"stroke-dasharray":!Q&&V[1]==="dashed"?N*2+" "+N:void 0,d:e8({left:J,top:Y,width:K,height:Z},z,H)})),H=[!1,!1,!1,!1]}}if(H.some(Boolean)){let A=(V[0]||0)+(Q&&!W&&z[V[3].replace("border","padding")]||0);A&&(w+=t("path",{width:K,height:Z,...X,fill:"none",stroke:Q?"#000":V[2],"stroke-width":A*2,"stroke-dasharray":!Q&&V[1]==="dashed"?A*2+" "+A:void 0,d:e8({left:J,top:Y,width:K,height:Z},z,H)}))}return w}function $V({id:J,left:Y,top:K,width:Z,height:X,matrix:Q,borderOnly:W},z){let $=(z.borderLeftWidth||0)+(W?0:z.paddingLeft||0),w=(z.borderTopWidth||0)+(W?0:z.paddingTop||0),U=(z.borderRightWidth||0)+(W?0:z.paddingRight||0),H=(z.borderBottomWidth||0)+(W?0:z.paddingBottom||0),V={x:Y+$,y:K+w,width:Z-$-U,height:X-w-H};return t("mask",{id:J},t("rect",{...V,fill:"#fff",transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0,mask:z._inheritedMaskId?`url(#${z._inheritedMaskId})`:void 0})+xY({left:Y,top:K,width:Z,height:X,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:W},z))}var t5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function zV({width:J,height:Y},K,Z){function X(w){let U=w.match(t5.circle);if(!U)return null;let[,H]=U,[V,A=""]=H.split("at").map((M)=>M.trim()),{x:O,y:B}=kJ(A,J,Y);return{type:"circle",r:V0(V,Z.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(Y,2))/Math.sqrt(2),Z,!0),cx:V0(O,Z.fontSize,J,Z,!0),cy:V0(B,Z.fontSize,Y,Z,!0)}}function Q(w){let U=w.match(t5.ellipse);if(!U)return null;let[,H]=U,[V,A=""]=H.split("at").map((N)=>N.trim()),[O,B]=V.split(" "),{x:M,y:j}=kJ(A,J,Y);return{type:"ellipse",rx:V0(O||"50%",Z.fontSize,J,Z,!0),ry:V0(B||"50%",Z.fontSize,Y,Z,!0),cx:V0(M,Z.fontSize,J,Z,!0),cy:V0(j,Z.fontSize,Y,Z,!0)}}function W(w){let U=w.match(t5.path);if(!U)return null;let[H,V]=vJ(U[1]);return{type:"path",d:V,"fill-rule":H}}function z(w){let U=w.match(t5.polygon);if(!U)return null;let[H,V]=vJ(U[1]);return{type:"polygon","fill-rule":H,points:V.split(",").map((A)=>A.split(" ").map((O,B)=>V0(O,Z.fontSize,B===0?J:Y,Z,!0)).join(" ")).join(",")}}function $(w){let U=w.match(t5.inset);if(!U)return null;let[H,V]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),A=p9.getStylesForProperty("borderRadius",V,!0),O=Object.values(A).map((I)=>String(I)).map((I,F)=>V0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),B=Object.values(p9.getStylesForProperty("margin",H,!0)).map((I)=>String(I)).map((I,F)=>V0(I,Z.fontSize,F===0||F===2?Y:J,Z,!0)||0),M=B[3],j=B[0],N=J-(B[1]+B[3]),E=Y-(B[0]+B[2]);return O.some((I)=>I>0)?{type:"path",d:e8({left:M,top:j,width:N,height:E},{...K,...A})}:{type:"rect",x:M,y:j,width:N,height:E}}return{parseCircle:X,parseEllipse:Q,parsePath:W,parsePolygon:z,parseInset:$}}function vJ(J){let[,Y="nonzero",K]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[Y,K]}function kJ(J,Y,K){let Z=J.split(" "),X={x:Z[0]||"50%",y:Z[1]||"50%"};return Z.forEach((Q)=>{Q==="top"?X.y=0:Q==="bottom"?X.y=K:Q==="left"?X.x=0:Q==="right"?X.x=Y:Q==="center"&&(X.x=Y/2,X.y=K/2)}),X}function W4(J){return`satori_cp-${J}`}function wV(J){return`url(#${W4(J)})`}function UV(J,Y,K){if(Y.clipPath==="none")return"";let Z=zV(J,Y,K),X=Y.clipPath,Q={type:""};for(let W of Object.keys(Z))if(Q=Z[W](X),Q)break;if(Q){let{type:W,...z}=Q;return t("clipPath",{id:W4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},t(W,z))}return""}function HV({left:J,top:Y,width:K,height:Z,path:X,matrix:Q,id:W,currentClipPath:z,src:$},w,U){let H="",V=w.clipPath&&w.clipPath!=="none"?UV({left:J,top:Y,width:K,height:Z,path:X,id:W,matrix:Q,currentClipPath:z,src:$},w,U):"";if(w.overflow!=="hidden"&&!$)H="";else{let O=V?`satori_ocp-${W}`:W4(W);H=t("clipPath",{id:O,"clip-path":z},t(X?"path":"rect",{x:J,y:Y,width:K,height:Z,d:X||void 0,transform:w.overflow==="hidden"&&w.transform&&Q?Q:void 0}))}let A=$V({id:`satori_om-${W}`,left:J,top:Y,width:K,height:Z,matrix:Q,borderOnly:!$},w);return V+H+A}var VV=(J)=>`satori_mi-${J}`;async function AV(J,Y,K){if(!Y.maskImage)return["",""];let{left:Z,top:X,width:Q,height:W,id:z}=J,$=Y.maskImage,w=$.length;if(!w)return["",""];let U=VV(z),H="";for(let V=0;V<w;V++){let A=$[V],[O,B]=await hY({id:`${U}-${V}`,left:Z,top:X,width:Q,height:W},A,K,"mask");H+=B+t("rect",{x:Z,y:X,width:Q,height:W,fill:`url(#${O})`})}return H=t("mask",{id:U},H),[U,H]}async function h9({id:J,left:Y,top:K,width:Z,height:X,isInheritingTransform:Q,src:W,debug:z},$,w){if($.display==="none")return"";let U=!!W,H="rect",V="",A="",O=[],B=1,M="";$.backgroundColor&&O.push($.backgroundColor),$.opacity!==void 0&&(B=+$.opacity),$.transform&&(V=kY({left:Y,top:K,width:Z,height:X},$.transform,Q,$.transformOrigin));let j="";if($.backgroundImage){let v=[];for(let C=0;C<$.backgroundImage.length;C++){let m=$.backgroundImage[C],c=await hY({id:J+"_"+C,width:Z,height:X,left:Y,top:K},m,w);c&&v.unshift(c)}for(let C of v)O.push(`url(#${C[0]})`),A+=C[1],C[2]&&(j+=C[2])}let[N,E]=await AV({id:J,left:Y,top:K,width:Z,height:X},$,w);A+=E;let I=N?`url(#${N})`:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0,F=e8({left:Y,top:K,width:Z,height:X},$);F&&(H="path");let q=$._inheritedClipPathId;z&&(M=t("rect",{x:Y,y:K,width:Z,height:X,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":q?`url(#${q})`:void 0}));let{backgroundClip:T,filter:D}=$,R=T==="text"?`url(#satori_bct-${J})`:q?`url(#${q})`:$.clipPath?wV(J):void 0,y=HV({left:Y,top:K,width:Z,height:X,path:F,id:J,matrix:V,currentClipPath:R,src:W},$,w),u=O.map((v)=>t(H,{x:Y,y:K,width:Z,height:X,fill:v,d:F||void 0,transform:V||void 0,"clip-path":$.transform?void 0:R,style:D?`filter:${D}`:void 0,mask:$.transform?void 0:I})).join(""),i=WV({id:J,left:Y,top:K,width:Z,height:X,currentClipPathId:q,borderPath:F,borderType:H},$),p;if(U){let v=($.borderLeftWidth||0)+($.paddingLeft||0),C=($.borderTopWidth||0)+($.paddingTop||0),m=($.borderRightWidth||0)+($.paddingRight||0),c=($.borderBottomWidth||0)+($.paddingBottom||0),a=$.objectFit==="contain"?"xMidYMid":$.objectFit==="cover"?"xMidYMid slice":"none";$.transform&&(p=QV({id:J,borderRadiusPath:F,borderType:H,left:Y,top:K,width:Z,height:X},$)),u+=t("image",{x:Y+v,y:K+C,width:Z-v-m,height:X-C-c,href:W,preserveAspectRatio:a,transform:V||void 0,style:D?`filter:${D}`:void 0,"clip-path":$.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:$.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(i){A+=i[0];let v=i[1];u+=xY({left:Y,top:K,width:Z,height:X,props:{transform:V||void 0,"clip-path":`url(#${v})`}},$)}let S=gH({width:Z,height:X,id:J,opacity:B,shape:t(H,{x:Y,y:K,width:Z,height:X,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:V||void 0,"clip-path":R,mask:I})},$);return(A?t("defs",{},A):"")+(S?S[0]:"")+(p?p[0]:"")+y+(B!==1?`<g opacity="${B}">`:"")+($.transform&&(R||I)?`<g${R?` clip-path="${R}"`:""}${I?` mask="${I}"`:""}>`:"")+(j||u)+($.transform&&(R||I)?"</g>":"")+(B!==1?"</g>":"")+(S?S[1]:"")+M}var BV=()=>/[#*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,GV=new RegExp(BV(),""),i9={emoji:GV,symbol:/\p{Symbol}/u,math:/\p{Math}/u},n9={"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},$4=Object.keys({...n9,...i9});function OV(J){return $4.includes(J)}function MV(J,Y){for(let Z of Object.keys(i9))if(i9[Z].test(J))return[Z];let K=Object.keys(n9).filter((Z)=>n9[Z].test(J));if(K.length===0)return["unknown"];if(Y){let Z=K.findIndex((X)=>X===Y);Z!==-1&&(K.splice(Z,1),K.unshift(Y))}return K}function LV(J){if(J)return $4.find((Y)=>Y.toLowerCase().startsWith(J.toLowerCase()))}async function*o9(J,Y){var K;let Z=await Z6(),{id:X,inheritedStyle:Q,parent:W,font:z,debug:$,locale:w,embedFont:U=!0,graphemeImages:H,canLoadAdditionalAssets:V,getTwStyles:A}=Y;if(J===null||typeof J>"u")return yield,yield,"";if(!n8(J)||typeof J.type=="function"){let k;if(!n8(J))k=pH(String(J),Y),yield(await k.next()).value;else{if(oU(J.type))throw Error("Class component is not supported.");k=o9(J.type(J.props),Y),yield(await k.next()).value}await k.next();let l=yield;return(await k.next(l)).value}let{type:O,props:B}=J;if(B&&rU(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:M,children:j,tw:N,lang:E=w}=B||{},I=LV(E);if(N){let k=A(N,M);M=Object.assign(k,M)}let F=Z.Node.create();W.insertChild(F,W.getChildCount());let[q,T]=await CH(F,O,Q,M,B),D=q.transform===Q.transform;if(D||(q.transform.__parent=Q.transform),(q.overflow==="hidden"||q.clipPath&&q.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${X}`,T._inheritedMaskId=`satori_om-${X}`),q.maskImage&&(T._inheritedMaskId=`satori_mi-${X}`),q.backgroundClip==="text"){let k={value:""};T._inheritedBackgroundClipTextPath=k,q._inheritedBackgroundClipTextPath=k}let R=sU(j),y=[],u=0,i=[];for(let k of R){let l=o9(k,{id:X+"-"+u++,parentStyle:q,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:z,embedFont:U,debug:$,graphemeImages:H,canLoadAdditionalAssets:V,locale:I,getTwStyles:A,onNodeDetected:Y.onNodeDetected});V?i.push(...(await l.next()).value||[]):await l.next(),y.push(l)}yield i;for(let k of y)await k.next();let[p,S]=yield,{left:v,top:C,width:m,height:c}=F.getComputedLayout();v+=p,C+=S;let a="",n="",f="",{children:d,...P}=B;if((K=Y.onNodeDetected)==null||K.call(Y,{left:v,top:C,width:m,height:c,type:O,props:P,key:J.key,textContent:n8(d)?void 0:d}),O==="img"){let k=q.__src;n=await h9({id:X,left:v,top:C,width:m,height:c,src:k,isInheritingTransform:D,debug:$},q,T)}else if(O==="svg"){let k=q.color,l=await AH(J,k);n=await h9({id:X,left:v,top:C,width:m,height:c,src:l,isInheritingTransform:D,debug:$},q,T)}else{let k=M==null?void 0:M.display;if(O==="div"&&j&&typeof j!="string"&&k!=="flex"&&k!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');n=await h9({id:X,left:v,top:C,width:m,height:c,isInheritingTransform:D,debug:$},q,T)}for(let k of y)a+=(await k.next([v,C])).value;return q._inheritedBackgroundClipTextPath&&(f+=t("clipPath",{id:`satori_bct-${X}`,"clip-path":q._inheritedClipPathId?`url(#${q._inheritedClipPathId})`:void 0},q._inheritedBackgroundClipTextPath.value)),f+n+a}var bY="unknown";function jV(J,Y,[K,Z],[X,Q]){if(K!==X)return K?!X||K===J?-1:X===J?1:J===400&&K===500||J===500&&K===400?-1:J===400&&X===500||J===500&&X===400?1:J<400?K<J&&X<J?X-K:K<J?-1:X<J?1:K-X:J<K&&J<X?K-X:J<K?-1:J<X?1:X-K:1;if(Z!==Q){if(Z===Y)return-1;if(Q===Y)return 1}return-1}var NV=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:Y,style:K}){if(!this.fonts.has(J))return null;Y==="normal"&&(Y=400),Y==="bold"&&(Y=700),typeof Y=="string"&&(Y=Number.parseInt(Y,10));let Z=[...this.fonts.get(J)],X=Z[0];for(let Q=1;Q<Z.length;Q++){let[,W,z]=X,[,$,w]=Z[Q];jV(Y,K,[W,z],[$,w])>0&&(X=Z[Q])}return X[0]}addFonts(J){for(let Y of J){let{name:K,data:Z,lang:X}=Y;if(X&&!OV(X))throw Error(`Invalid value for props \`lang\`: "${X}". The value must be one of the following: ${$4.join(", ")}.`);let Q=X??bY,W=y8.parse("buffer"in Z?Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength):Z,{lowMemory:!0}),z=W.charToGlyphIndex;W.charToGlyphIndex=(w)=>{let U=z.call(W,w);return U===0&&W._trackBrokenChars&&W._trackBrokenChars.push(w),U},this.defaultFont||(this.defaultFont=W);let $=`${K.toLowerCase()}_${Q}`;this.fonts.has($)||this.fonts.set($,[]),this.fonts.get($).push([W,Y.weight,Y.style])}}getEngine(J=16,Y="normal",{fontFamily:K="sans-serif",fontWeight:Z=400,fontStyle:X="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");K=(Array.isArray(K)?K:[K]).map((j)=>j.toLowerCase());let W=[];K.forEach((j)=>{let N=this.get({name:j,weight:Z,style:X});if(N){W.push(N);return}let E=this.get({name:j+"_unknown",weight:Z,style:X});if(E){W.push(E);return}});let z=Array.from(this.fonts.keys()),$=[],w=[],U=[];for(let j of z)if(!K.includes(j))if(Q){let N=qV(j);N?N===Q?$.push(this.get({name:j,weight:Z,style:X})):w.push(this.get({name:j,weight:Z,style:X})):U.push(this.get({name:j,weight:Z,style:X}))}else U.push(this.get({name:j,weight:Z,style:X}));let H=new Map,V=(j,N=!0)=>{let E=[...W,...U,...$,...N?w:[]];if(typeof j>"u")return N?E[E.length-1]:void 0;let I=j.charCodeAt(0);if(H.has(I))return H.get(I);let F=E.find((q,T)=>!!q.charToGlyphIndex(j)||N&&T===E.length-1);return F&&H.set(I,F),F},A=(j,N=!1)=>{var E,I;return((N?(I=(E=j.tables)==null?void 0:E.os2)==null?void 0:I.sTypoAscender:0)||j.ascender)/j.unitsPerEm*J},O=(j,N=!1)=>{var E,I;return((N?(I=(E=j.tables)==null?void 0:E.os2)==null?void 0:I.sTypoDescender:0)||j.descender)/j.unitsPerEm*J},B=(j,N=!1)=>{var E,I;if(typeof Y=="string"&&Y==="normal"){let F=(N?(I=(E=j.tables)==null?void 0:E.os2)==null?void 0:I.sTypoLineGap:0)||0;return A(j,N)-O(j,N)+F/j.unitsPerEm*J}else if(typeof Y=="number")return J*Y},M=(j)=>V(j,!1);return{has:(j)=>{if(j===`
|
|
66
|
+
`)return!0;let N=M(j);return N?(N._trackBrokenChars=[],N.stringToGlyphs(j),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(j,N=typeof j>"u"?W[0]:V(j))=>{let E=A(N),I=O(N),F=E-I;return E+(B(N)-F)/2},height:(j,N=typeof j>"u"?W[0]:V(j))=>B(N),measure:(j,N)=>this.measure(V,j,N),getSVG:(j,N)=>this.getSVG(V,j,N)}}patchFontFallbackResolver(J,Y){let K=[];J._trackBrokenChars=K;let Z=J.stringToGlyphs;return J.stringToGlyphs=(X,...Q)=>{let W=Z.call(J,X,...Q);for(let z=0;z<W.length;z++)if(W[z].unicode===void 0){let $=K.shift(),w=Y($);if(w!==J){let U=w.charToGlyph($),H=J.unitsPerEm/w.unitsPerEm,V=new y8.Path;V.unitsPerEm=J.unitsPerEm,V.commands=U.path.commands.map((O)=>{let B={...O};for(let M in B)typeof B[M]=="number"&&(B[M]*=H);return B});let A=new y8.Glyph({...U,advanceWidth:U.advanceWidth*H,xMin:U.xMin*H,xMax:U.xMax*H,yMin:U.yMin*H,yMax:U.yMax*H,path:V});W[z]=A}}return W},()=>{J.stringToGlyphs=Z,J._trackBrokenChars=void 0}}measure(J,Y,{fontSize:K,letterSpacing:Z=0}){let X=J(Y),Q=this.patchFontFallbackResolver(X,J);try{return X.getAdvanceWidth(Y,K,{letterSpacing:Z/K})}finally{Q()}}getSVG(J,Y,{fontSize:K,top:Z,left:X,letterSpacing:Q=0}){let W=J(Y),z=this.patchFontFallbackResolver(W,J);try{return K===0?"":W.getPath(Y.replace(/\n/g,""),X,Z,K,{letterSpacing:Q/K}).toPathData(1)}finally{z()}}};function qV(J){let Y=J.split("_"),K=Y[Y.length-1];return K===bY?void 0:K}function EV({width:J,height:Y,content:K}){return t("svg",{width:J,height:Y,viewBox:`0 0 ${J} ${Y}`,xmlns:"http://www.w3.org/2000/svg"},K)}var FV=JU(hU()),_V=["ios","android","windows","macos","web"];function IV(J){return _V.includes(J)}var DV=["portrait","landscape"];function RV(J){return DV.includes(J)}var gJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(gJ||(gJ={}));var j0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(j0||(j0={}));function yJ(J){return typeof J=="string"}function hJ(J){return typeof J=="object"}var x9;function x(J){return{kind:"complete",style:J}}function X1(J,Y={}){let{fractions:K}=Y;if(K&&J.includes("/")){let[Q="",W=""]=J.split("/",2),z=X1(Q),$=X1(W);return!z||!$?null:[z[0]/$[0],$[1]]}let Z=parseFloat(J);if(Number.isNaN(Z))return null;let X=J.match(/(([a-z]{2,}|%))$/);if(!X)return[Z,j0.none];switch(X==null?void 0:X[1]){case"rem":return[Z,j0.rem];case"px":return[Z,j0.px];case"em":return[Z,j0.em];case"%":return[Z,j0.percent];case"vw":return[Z,j0.vw];case"vh":return[Z,j0.vh];default:return null}}function Q8(J,Y,K={}){let Z=W5(Y,K);return Z===null?null:x({[J]:Z})}function b9(J,Y,K){let Z=W5(Y);return Z!==null&&(K[J]=Z),K}function CV(J,Y){let K=W5(Y);return K===null?null:{[J]:K}}function W5(J,Y={}){if(J===void 0)return null;let K=X1(String(J),Y);return K?W8(...K,Y):null}function W8(J,Y,K={}){let{isNegative:Z,device:X}=K;switch(Y){case j0.rem:return J*16*(Z?-1:1);case j0.px:return J*(Z?-1:1);case j0.percent:return`${Z?"-":""}${J}%`;case j0.none:return J*(Z?-1:1);case j0.vw:return X!=null&&X.windowDimensions?X.windowDimensions.width*(J/100):(k1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case j0.vh:return X!=null&&X.windowDimensions?X.windowDimensions.height*(J/100):(k1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function xJ(J){let Y=X1(J);if(!Y)return null;let[K,Z]=Y;switch(Z){case j0.rem:return K*16;case j0.px:return K;default:return null}}var TV={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function fY(J){return TV[J??""]||"All"}function mY(J){let Y="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(K,Z)=>(Y=fY(Z),"")),Y]}function z6(J,Y={}){if(J.includes("/")){let K=bJ(J,{...Y,fractions:!0});if(K)return K}return J[0]==="["&&(J=J.slice(1,-1)),bJ(J,Y)}function $5(J,Y,K={}){let Z=z6(Y,K);return Z===null?null:x({[J]:Z})}function bJ(J,Y={}){if(J==="px")return 1;let K=X1(J,Y);if(!K)return null;let[Z,X]=K;return Y.fractions&&(X=j0.percent,Z*=100),X===j0.none&&(Z=Z/4,X=j0.rem),W8(Z,X,Y)}function PV(...J){console.warn(...J)}function SV(...J){}var k1=typeof process>"u"||((x9=process==null?void 0:process.env)===null||x9===void 0?void 0:x9.JEST_WORKER_ID)===void 0?PV:SV,vV=[["aspect-square",x({aspectRatio:1})],["aspect-video",x({aspectRatio:1.7777777777777777})],["items-center",x({alignItems:"center"})],["items-start",x({alignItems:"flex-start"})],["items-end",x({alignItems:"flex-end"})],["items-baseline",x({alignItems:"baseline"})],["items-stretch",x({alignItems:"stretch"})],["justify-start",x({justifyContent:"flex-start"})],["justify-end",x({justifyContent:"flex-end"})],["justify-center",x({justifyContent:"center"})],["justify-between",x({justifyContent:"space-between"})],["justify-around",x({justifyContent:"space-around"})],["justify-evenly",x({justifyContent:"space-evenly"})],["content-start",x({alignContent:"flex-start"})],["content-end",x({alignContent:"flex-end"})],["content-between",x({alignContent:"space-between"})],["content-around",x({alignContent:"space-around"})],["content-stretch",x({alignContent:"stretch"})],["content-center",x({alignContent:"center"})],["self-auto",x({alignSelf:"auto"})],["self-start",x({alignSelf:"flex-start"})],["self-end",x({alignSelf:"flex-end"})],["self-center",x({alignSelf:"center"})],["self-stretch",x({alignSelf:"stretch"})],["self-baseline",x({alignSelf:"baseline"})],["direction-inherit",x({direction:"inherit"})],["direction-ltr",x({direction:"ltr"})],["direction-rtl",x({direction:"rtl"})],["hidden",x({display:"none"})],["flex",x({display:"flex"})],["flex-row",x({flexDirection:"row"})],["flex-row-reverse",x({flexDirection:"row-reverse"})],["flex-col",x({flexDirection:"column"})],["flex-col-reverse",x({flexDirection:"column-reverse"})],["flex-wrap",x({flexWrap:"wrap"})],["flex-wrap-reverse",x({flexWrap:"wrap-reverse"})],["flex-nowrap",x({flexWrap:"nowrap"})],["flex-auto",x({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",x({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",x({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",x({overflow:"hidden"})],["overflow-visible",x({overflow:"visible"})],["overflow-scroll",x({overflow:"scroll"})],["absolute",x({position:"absolute"})],["relative",x({position:"relative"})],["italic",x({fontStyle:"italic"})],["not-italic",x({fontStyle:"normal"})],["oldstyle-nums",e5("oldstyle-nums")],["small-caps",e5("small-caps")],["lining-nums",e5("lining-nums")],["tabular-nums",e5("tabular-nums")],["proportional-nums",e5("proportional-nums")],["font-thin",x({fontWeight:"100"})],["font-100",x({fontWeight:"100"})],["font-extralight",x({fontWeight:"200"})],["font-200",x({fontWeight:"200"})],["font-light",x({fontWeight:"300"})],["font-300",x({fontWeight:"300"})],["font-normal",x({fontWeight:"normal"})],["font-400",x({fontWeight:"400"})],["font-medium",x({fontWeight:"500"})],["font-500",x({fontWeight:"500"})],["font-semibold",x({fontWeight:"600"})],["font-600",x({fontWeight:"600"})],["font-bold",x({fontWeight:"bold"})],["font-700",x({fontWeight:"700"})],["font-extrabold",x({fontWeight:"800"})],["font-800",x({fontWeight:"800"})],["font-black",x({fontWeight:"900"})],["font-900",x({fontWeight:"900"})],["include-font-padding",x({includeFontPadding:!0})],["remove-font-padding",x({includeFontPadding:!1})],["max-w-none",x({maxWidth:"99999%"})],["text-left",x({textAlign:"left"})],["text-center",x({textAlign:"center"})],["text-right",x({textAlign:"right"})],["text-justify",x({textAlign:"justify"})],["text-auto",x({textAlign:"auto"})],["underline",x({textDecorationLine:"underline"})],["line-through",x({textDecorationLine:"line-through"})],["no-underline",x({textDecorationLine:"none"})],["uppercase",x({textTransform:"uppercase"})],["lowercase",x({textTransform:"lowercase"})],["capitalize",x({textTransform:"capitalize"})],["normal-case",x({textTransform:"none"})],["w-auto",x({width:"auto"})],["h-auto",x({height:"auto"})],["shadow-sm",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",x({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],fJ=vV;function e5(J){return{kind:"dependent",complete(Y){(!Y.fontVariant||!Array.isArray(Y.fontVariant))&&(Y.fontVariant=[]),Y.fontVariant.push(J)}}}var kV=class{constructor(J){this.ir=new Map(fJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...fJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,Y){this.styles.set(J,Y)}getIr(J){return this.ir.get(J)}setIr(J,Y){this.ir.set(J,Y)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,Y){this.prefixes.set(J,Y)}};function gV(J,Y,K={}){let Z=Y==null?void 0:Y[J];if(!Z)return $5("fontSize",J,K);if(typeof Z=="string")return Q8("fontSize",Z);let X={},[Q,W]=Z,z=CV("fontSize",Q);if(z&&(X=z),typeof W=="string")return x(b9("lineHeight",mJ(W,X),X));let{lineHeight:$,letterSpacing:w}=W;return $&&b9("lineHeight",mJ($,X),X),w&&b9("letterSpacing",w,X),x(X)}function mJ(J,Y){let K=X1(J);if(K){let[Z,X]=K;if((X===j0.none||X===j0.em)&&typeof Y.fontSize=="number")return Y.fontSize*Z}return J}function yV(J,Y){var K;let Z=(K=Y==null?void 0:Y[J])!==null&&K!==void 0?K:J.startsWith("[")?J.slice(1,-1):J,X=X1(Z);if(!X)return null;let[Q,W]=X;if(W===j0.none)return{kind:"dependent",complete($){if(typeof $.fontSize!="number")return"relative line-height utilities require that font-size be set";$.lineHeight=$.fontSize*Q}};let z=W8(Q,W);return z!==null?x({lineHeight:z}):null}function hV(J,Y,K,Z,X){let Q="";if(Z[0]==="[")Q=Z.slice(1,-1);else{let w=X==null?void 0:X[Z];if(w)Q=w;else{let U=z6(Z);return U&&typeof U=="number"?dJ(U,j0.px,Y,J):null}}if(Q==="auto")return dY(Y,J,"auto");let W=X1(Q);if(!W)return null;let[z,$]=W;return K&&(z=-z),dJ(z,$,Y,J)}function dJ(J,Y,K,Z){let X=W8(J,Y);return X===null?null:dY(K,Z,X)}function dY(J,Y,K){switch(J){case"All":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Right`]:K,[`${Y}Bottom`]:K,[`${Y}Left`]:K}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${Y}${J}`]:K}};case"Vertical":return{kind:"complete",style:{[`${Y}Top`]:K,[`${Y}Bottom`]:K}};case"Horizontal":return{kind:"complete",style:{[`${Y}Left`]:K,[`${Y}Right`]:K}};default:return null}}function xV(J){if(!J)return{};let Y=Object.entries(J).reduce((X,[Q,W])=>{let z=[0,1/0,0],$=typeof W=="string"?{min:W}:W,w=$.min?xJ($.min):0;w===null?k1(`invalid screen config value: ${Q}->min: ${$.min}`):z[0]=w;let U=$.max?xJ($.max):1/0;return U===null?k1(`invalid screen config value: ${Q}->max: ${$.max}`):z[1]=U,X[Q]=z,X},{}),K=Object.values(Y);K.sort((X,Q)=>{let[W,z]=X,[$,w]=Q;return z===1/0||w===1/0?W-$:z-w});let Z=0;return K.forEach((X)=>X[2]=Z++),Y}function bV(J,Y){let K=Y==null?void 0:Y[J];if(!K)return null;if(typeof K=="string")return x({fontFamily:K});let Z=K[0];return Z?x({fontFamily:Z}):null}function Y8(J,Y,K){if(!K)return null;let Z;Y.includes("/")&&([Y="",Z]=Y.split("/",2));let X="";if(Y.startsWith("[#")||Y.startsWith("[rgb")?X=Y.slice(1,-1):X=uY(Y,K),!X)return null;if(Z){let Q=Number(Z);if(!Number.isNaN(Q))return X=uJ(X,Q/100),x({[a8[J].color]:X})}return{kind:"dependent",complete(Q){let W=a8[J].opacity,z=Q[W];typeof z=="number"&&(X=uJ(X,z)),Q[a8[J].color]=X}}}function c8(J,Y){let K=parseInt(Y,10);if(Number.isNaN(K))return null;let Z=K/100;return{kind:"complete",style:{[a8[J].opacity]:Z}}}function uJ(J,Y){return J.startsWith("#")?J=mV(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${Y})`)}function fV(J){for(let Y in J)Y.startsWith("__opacity_")&&delete J[Y]}var a8={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 mV(J){let Y=J;J=J.replace(dV,(W,z,$,w)=>z+z+$+$+w+w);let K=uV.exec(J);if(!K)return k1(`invalid config hex color value: ${Y}`),"rgba(0, 0, 0, 1)";let Z=parseInt(K[1],16),X=parseInt(K[2],16),Q=parseInt(K[3],16);return`rgba(${Z}, ${X}, ${Q}, 1)`}function uY(J,Y){let K=Y[J];if(yJ(K))return K;if(hJ(K)&&yJ(K.DEFAULT))return K.DEFAULT;let[Z="",...X]=J.split("-");for(;Z!==J;){let Q=Y[Z];if(hJ(Q))return uY(X.join("-"),Q);if(X.length===0)return"";Z=`${Z}-${X.shift()}`}return""}var dV=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,uV=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function cV(J,Y){let[K,Z]=mY(J);if(K.match(/^(-?(\d)+)?$/))return lV(K,Z,Y==null?void 0:Y.borderWidth);if(K=K.replace(/^-/,""),["dashed","solid","dotted"].includes(K))return x({borderStyle:K});let X="border";switch(Z){case"Bottom":X="borderBottom";break;case"Top":X="borderTop";break;case"Left":X="borderLeft";break;case"Right":X="borderRight";break}let Q=Y8(X,K,Y==null?void 0:Y.borderColor);if(Q)return Q;let W=`border${Z==="All"?"":Z}Width`;K=K.replace(/^-/,"");let z=K.slice(1,-1),$=$5(W,z);return typeof($==null?void 0:$.style[W])!="number"?null:$}function lV(J,Y,K){if(!K)return null;J=J.replace(/^-/,"");let Z=K[J===""?"DEFAULT":J];if(Z===void 0)return null;let X=`border${Y==="All"?"":Y}Width`;return Q8(X,Z)}function pV(J,Y){if(!Y)return null;let[K,Z]=mY(J);K=K.replace(/^-/,""),K===""&&(K="DEFAULT");let X=`border${Z==="All"?"":Z}Radius`,Q=Y[K];if(Q)return cJ(Q8(X,Q));let W=$5(X,K);return typeof(W==null?void 0:W.style[X])!="number"?null:cJ(W)}function cJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let Y=J.style.borderTopRadius;Y!==void 0&&(J.style.borderTopLeftRadius=Y,J.style.borderTopRightRadius=Y,delete J.style.borderTopRadius);let K=J.style.borderBottomRadius;K!==void 0&&(J.style.borderBottomLeftRadius=K,J.style.borderBottomRightRadius=K,delete J.style.borderBottomRadius);let Z=J.style.borderLeftRadius;Z!==void 0&&(J.style.borderBottomLeftRadius=Z,J.style.borderTopLeftRadius=Z,delete J.style.borderLeftRadius);let X=J.style.borderRightRadius;return X!==void 0&&(J.style.borderBottomRightRadius=X,J.style.borderTopRightRadius=X,delete J.style.borderRightRadius),J}function J8(J,Y,K,Z){let X=null;J==="inset"&&(Y=Y.replace(/^(x|y)-/,(z,$)=>(X=$==="x"?"x":"y","")));let Q=Z==null?void 0:Z[Y];if(Q){let z=W5(Q,{isNegative:K});if(z!==null)return lJ(J,X,z)}let W=z6(Y,{isNegative:K});return W!==null?lJ(J,X,W):null}function lJ(J,Y,K){if(J!=="inset")return x({[J]:K});switch(Y){case null:return x({top:K,left:K,right:K,bottom:K});case"y":return x({top:K,bottom:K});case"x":return x({left:K,right:K})}}function l8(J,Y,K){var Z;Y=Y.replace(/^-/,"");let X=Y===""?"DEFAULT":Y,Q=Number((Z=K==null?void 0:K[X])!==null&&Z!==void 0?Z:Y);return Number.isNaN(Q)?null:x({[`flex${J}`]:Q})}function iV(J,Y){var K,Z;if(J=(Y==null?void 0:Y[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return x({flexGrow:Number(J),flexBasis:"0%"});let X=J.match(/^(\d+)\s+(\d+)$/);if(X)return x({flexGrow:Number(X[1]),flexShrink:Number(X[2])});if(X=J.match(/^(\d+)\s+([^ ]+)$/),X){let Q=W5((K=X[2])!==null&&K!==void 0?K:"");return Q?x({flexGrow:Number(X[1]),flexBasis:Q}):null}if(X=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),X){let Q=W5((Z=X[3])!==null&&Z!==void 0?Z:"");return Q?x({flexGrow:Number(X[1]),flexShrink:Number(X[2]),flexBasis:Q}):null}return null}function pJ(J,Y,K={},Z){let X=Z==null?void 0:Z[Y];return X!==void 0?Q8(J,X,K):$5(J,Y,K)}function p8(J,Y,K={},Z){let X=W5(Z==null?void 0:Z[Y],K);return X?x({[J]:X}):(Y==="screen"&&(Y=J.includes("Width")?"100vw":"100vh"),$5(J,Y,K))}function nV(J,Y,K){let Z=K==null?void 0:K[J];if(Z){let X=X1(Z,{isNegative:Y});if(!X)return null;let[Q,W]=X;if(W===j0.em)return oV(Q);if(W===j0.percent)return k1("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 z=W8(Q,W,{isNegative:Y});return z!==null?x({letterSpacing:z}):null}return $5("letterSpacing",J,{isNegative:Y})}function oV(J){return{kind:"dependent",complete(Y){let K=Y.fontSize;if(typeof K!="number"||Number.isNaN(K))return"tracking-X relative letter spacing classes require font-size to be set";Y.letterSpacing=Math.round((J*K+Number.EPSILON)*100)/100}}}function rV(J,Y){let K=Y==null?void 0:Y[J];if(K){let X=X1(String(K));if(X)return x({opacity:X[0]})}let Z=X1(J);return Z?x({opacity:Z[0]/100}):null}function sV(J){let Y=parseInt(J,10);return Number.isNaN(Y)?null:{kind:"complete",style:{shadowOpacity:Y/100}}}function aV(J){if(J.includes("/")){let[K="",Z=""]=J.split("/",2),X=f9(K),Q=f9(Z);return X===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:X,height:Q}}}}let Y=f9(J);return Y===null?null:{kind:"complete",style:{shadowOffset:{width:Y,height:Y}}}}function f9(J){let Y=z6(J);return typeof Y=="number"?Y:null}var iJ=class{constructor(J,Y={},K,Z,X){var Q,W,z,$,w,U;this.config=Y,this.cache=K,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=Z;let H=J.trim().split(":"),V=[];H.length===1?this.string=J:(this.string=(Q=H.pop())!==null&&Q!==void 0?Q:"",V=H),this.char=this.string[0];let A=xV((W=this.config.theme)===null||W===void 0?void 0:W.screens);for(let O of V)if(A[O]){let B=(z=A[O])===null||z===void 0?void 0:z[2];B!==void 0&&(this.order=(($=this.order)!==null&&$!==void 0?$:0)+B);let M=(w=Z.windowDimensions)===null||w===void 0?void 0:w.width;if(M){let[j,N]=(U=A[O])!==null&&U!==void 0?U:[0,0];(M<=j||M>N)&&(this.isNull=!0)}else this.isNull=!0}else IV(O)?this.isNull=O!==X:RV(O)?Z.windowDimensions?(Z.windowDimensions.width>Z.windowDimensions.height?"landscape":"portrait")!==O?this.isNull=!0:this.incrementOrder():this.isNull=!0:O==="retina"?Z.pixelDensity===2?this.incrementOrder():this.isNull=!0:O==="dark"?Z.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(O)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let Y=this.parseUtility();return Y?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:Y}:Y:{kind:"null"}}parseUtility(){var J,Y,K,Z,X;let Q=this.config.theme,W=null;switch(this.char){case"m":case"p":{let z=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(z){let $=this.char==="m"?"margin":"padding";this.advance(((Y=(J=z[0])===null||J===void 0?void 0:J.length)!==null&&Y!==void 0?Y:0)+1);let w=fY(z[1]),U=hV($,w,this.isNegative,this.rest,(K=this.config.theme)===null||K===void 0?void 0:K[$]);if(U)return U}}}if(this.consumePeeked("h-")&&(W=pJ("height",this.rest,this.context,Q==null?void 0:Q.height),W)||this.consumePeeked("w-")&&(W=pJ("width",this.rest,this.context,Q==null?void 0:Q.width),W)||this.consumePeeked("min-w-")&&(W=p8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),W)||this.consumePeeked("min-h-")&&(W=p8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),W)||this.consumePeeked("max-w-")&&(W=p8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),W)||this.consumePeeked("max-h-")&&(W=p8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),W)||this.consumePeeked("leading-")&&(W=yV(this.rest,Q==null?void 0:Q.lineHeight),W)||this.consumePeeked("text-")&&(W=gV(this.rest,Q==null?void 0:Q.fontSize,this.context),W||(W=Y8("text",this.rest,Q==null?void 0:Q.textColor),W)||this.consumePeeked("opacity-")&&(W=c8("text",this.rest),W))||this.consumePeeked("font-")&&(W=bV(this.rest,Q==null?void 0:Q.fontFamily),W)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&k1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),W=Q8("aspectRatio",this.rest,{fractions:!0}),W)||this.consumePeeked("tint-")&&(W=Y8("tint",this.rest,Q==null?void 0:Q.colors),W)||this.consumePeeked("bg-")&&(W=Y8("bg",this.rest,Q==null?void 0:Q.backgroundColor),W||this.consumePeeked("opacity-")&&(W=c8("bg",this.rest),W))||this.consumePeeked("border")&&(W=cV(this.rest,Q),W||this.consumePeeked("-opacity-")&&(W=c8("border",this.rest),W))||this.consumePeeked("rounded")&&(W=pV(this.rest,Q==null?void 0:Q.borderRadius),W)||this.consumePeeked("bottom-")&&(W=J8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("top-")&&(W=J8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("left-")&&(W=J8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("right-")&&(W=J8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("inset-")&&(W=J8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),W)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):W=iV(this.rest,Q==null?void 0:Q.flex),W)||this.consumePeeked("grow")&&(W=l8("Grow",this.rest,Q==null?void 0:Q.flexGrow),W)||this.consumePeeked("shrink")&&(W=l8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),W)||this.consumePeeked("shadow-color-opacity-")&&(W=c8("shadow",this.rest),W)||this.consumePeeked("shadow-opacity-")&&(W=sV(this.rest),W)||this.consumePeeked("shadow-offset-")&&(W=aV(this.rest),W)||this.consumePeeked("shadow-radius-")&&(W=$5("shadowRadius",this.rest),W)||this.consumePeeked("shadow-")&&(W=Y8("shadow",this.rest,Q==null?void 0:Q.colors),W))return W;if(this.consumePeeked("elevation-")){let z=parseInt(this.rest,10);if(!Number.isNaN(z))return x({elevation:z})}if(this.consumePeeked("opacity-")&&(W=rV(this.rest,Q==null?void 0:Q.opacity),W)||this.consumePeeked("tracking-")&&(W=nV(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),W))return W;if(this.consumePeeked("z-")){let z=Number((X=(Z=Q==null?void 0:Q.zIndex)===null||Z===void 0?void 0:Z[this.rest])!==null&&X!==void 0?X:this.rest);if(!Number.isNaN(z))return x({zIndex:z})}return k1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var Y;if(J[0]!=="m")return!1;let K=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!K)return!1;if(!(!((Y=this.context.device)===null||Y===void 0)&&Y.windowDimensions))return this.isNull=!0,!0;let Z=this.context.device.windowDimensions,[,X="",Q="",W=""]=K,z=Q==="w"?Z.width:Z.height,$=X1(W,this.context);if($===null)return this.isNull=!0,!0;let[w,U]=$;return U!=="px"&&(this.isNull=!0),(X==="min"?z>=w:z<=w)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,Y){return this.string.slice(this.position+J,this.position+Y)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function tV(J){let Y=[],K=null;return J.forEach((Z)=>{if(typeof Z=="string")Y=[...Y,...m9(Z)];else if(Array.isArray(Z))Y=[...Y,...Z.flatMap(m9)];else if(typeof Z=="object"&&Z!==null)for(let[X,Q]of Object.entries(Z))typeof Q=="boolean"?Y=[...Y,...Q?m9(X):[]]:K?K[X]=Q:K={[X]:Q}}),[Y.filter(Boolean).filter(eV),K]}function m9(J){return J.trim().split(/\s+/)}function eV(J,Y,K){return K.indexOf(J)===Y}function J3(J){var Y;return(Y=J==null?void 0:J.reduce((K,Z)=>({...K,...Y3(Z.handler)}),{}))!==null&&Y!==void 0?Y:{}}function Y3(J){let Y={};return J({addUtilities:(K)=>{Y=K},...K3}),Y}function D1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var K3={addComponents:D1,addBase:D1,addVariant:D1,e:D1,prefix:D1,theme:D1,variants:D1,config:D1,corePlugins:D1,matchUtilities:D1,postcss:null};function Z3(J,Y){let K=(0,FV.default)(X3(J)),Z={},X=J3(K.plugins),Q={},W=Object.entries(X).map(([O,B])=>typeof B=="string"?(Q[O]=B,[O,{kind:"null"}]):[O,x(B)]).filter(([,O])=>O.kind!=="null");function z(){return[Z.windowDimensions?`w${Z.windowDimensions.width}`:!1,Z.windowDimensions?`h${Z.windowDimensions.height}`:!1,Z.fontScale?`fs${Z.fontScale}`:!1,Z.colorScheme==="dark"?"dark":!1,Z.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let $=z(),w={};function U(){let O=w[$];if(O)return O;let B=new kV(W);return w[$]=B,B}function H(...O){let B=U(),M={},j=[],N=[],[E,I]=tV(O),F=E.join(" "),q=B.getStyle(F);if(q)return{...q,...I||{}};for(let T of E){let D=B.getIr(T);if(!D&&T in Q){let R=H(Q[T]);B.setIr(T,x(R)),M={...M,...R};continue}switch(D=new iJ(T,K,B,Z,Y).parse(),D.kind){case"complete":M={...M,...D.style},B.setIr(T,D);break;case"dependent":j.push(D);break;case"ordered":N.push(D);break;case"null":B.setIr(T,D);break}}if(N.length>0){N.sort((T,D)=>T.order-D.order);for(let T of N)switch(T.styleIr.kind){case"complete":M={...M,...T.styleIr.style};break;case"dependent":j.push(T.styleIr);break}}if(j.length>0){for(let T of j){let D=T.complete(M);D&&k1(D)}fV(M)}return F!==""&&B.setStyle(F,M),I&&(M={...M,...I}),M}function V(O){let B=H(O.split(/\s+/g).map((M)=>M.replace(/^(bg|text|border)-/,"")).map((M)=>`bg-${M}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let A=(O,...B)=>{let M="";return O.forEach((j,N)=>{var E;M+=j+((E=B[N])!==null&&E!==void 0?E:"")}),H(M)};return A.style=H,A.color=V,A.prefixMatch=(...O)=>{let B=O.sort().join(":"),M=U(),j=M.getPrefixMatch(B);if(j!==void 0)return j;let N=new iJ(`${B}:flex`,K,M,Z,Y).parse().kind!=="null";return M.setPrefixMatch(B,N),N},A.setWindowDimensions=(O)=>{Z.windowDimensions=O,$=z()},A.setFontScale=(O)=>{Z.fontScale=O,$=z()},A.setPixelDensity=(O)=>{Z.pixelDensity=O,$=z()},A.setColorScheme=(O)=>{Z.colorScheme=O,$=z()},A}function X3(J){return{...J,content:["_no_warnings_please"]}}var Q3={handler:({addUtilities:J})=>{J({"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 W3(J){return Z3({...J,plugins:[...(J==null?void 0:J.plugins)??[],Q3]},"web")}var i8;function $3({width:J,height:Y,config:K}){return i8||(i8=W3(K)),i8.setWindowDimensions({width:+J,height:+Y}),i8}var d9=new WeakMap;async function cY(J,Y){let K=await Z6();if(!K||!K.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+K);Y.fonts=Y.fonts||[];let Z;d9.has(Y.fonts)?Z=d9.get(Y.fonts):d9.set(Y.fonts,Z=new NV(Y.fonts));let X="width"in Y?Y.width:void 0,Q="height"in Y?Y.height:void 0,W=K.Node.create();X&&W.setWidth(X),Q&&W.setHeight(Q),W.setFlexDirection(K.FLEX_DIRECTION_ROW),W.setFlexWrap(K.WRAP_WRAP),W.setAlignContent(K.ALIGN_AUTO),W.setAlignItems(K.ALIGN_FLEX_START),W.setJustifyContent(K.JUSTIFY_FLEX_START),W.setOverflow(K.OVERFLOW_HIDDEN);let z={...Y.graphemeImages},$=new Set;o1.clear(),r8.clear(),await VH(J);let w=o9(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:X,_viewportHeight:Q},parent:W,font:Z,embedFont:Y.embedFont,debug:Y.debug,graphemeImages:z,canLoadAdditionalAssets:!!Y.loadAdditionalAsset,onNodeDetected:Y.onNodeDetected,getTwStyles:(O,B)=>{let M={...$3({width:X,height:Q,config:Y.tailwindConfig})([O])};return typeof M.lineHeight=="number"&&(M.lineHeight=M.lineHeight/(+M.fontSize||B.fontSize||16)),M.shadowColor&&M.boxShadow&&(M.boxShadow=M.boxShadow.replace(/rgba?\([^)]+\)/,M.shadowColor)),M}}),U=(await w.next()).value;if(Y.loadAdditionalAsset&&U.length){let O=z3(U),B=[],M={};await Promise.all(Object.entries(O).flatMap(([j,N])=>N.map((E)=>{let I=`${j}_${E}`;return $.has(I)?null:($.add(I),Y.loadAdditionalAsset(j,E).then((F)=>{typeof F=="string"?M[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),Z.addFonts(B),Object.assign(z,M)}await w.next(),W.calculateLayout(X,Q,K.DIRECTION_LTR);let H=(await w.next([0,0])).value,V=W.getComputedWidth(),A=W.getComputedHeight();return W.freeRecursive(),EV({width:V,height:A,content:H})}function z3(J){let Y={},K={};for(let{word:Z,locale:X}of J){let Q=MV(Z,X).join("|");K[Q]=K[Q]||"",K[Q]+=Z}return Object.keys(K).forEach((Z)=>{Y[Z]=Y[Z]||[],Z==="emoji"?Y[Z].push(...nJ(M1(K[Z],"grapheme"))):(Y[Z][0]=Y[Z][0]||"",Y[Z][0]+=nJ(M1(K[Z],"grapheme",Z==="unknown"?void 0:Z)).join(""))}),Y}function nJ(J){return Array.from(new Set(J))}import P3 from"sharp";function w6(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function z4(J,Y){if(J==="/")return Y;if(Y==="/")return J;return`${J}${Y}`}function w4(J){let Y=w6(J);return Y.length>1?Y.replace(/\/$/,""):Y}function lY(J,Y){return Y.map((K)=>({...K,path:w4(z4(J,K.path))}))}function U6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z;if("children"in X){let Q=new X.children,W=U6(Q.routes);for(let[z,{exec:$,middleware:w,segments:U}]of Object.entries(W)){let H=z4(K,z),V=(A)=>X.run.call(X,A,K);Y[w6(H)]={exec:[V,...$],middleware:[...X.middlewares,...w],viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath,...X.alwaysRuns?{alwaysRun:!0}:{}},...lY(K,U)]}}}else{let Q=(W)=>X.run.call(X,W,K);Y[w6(K)]={exec:[Q],middleware:X.middlewares,viewPath:X.viewPath,segments:[{path:w4(K),viewPath:X.viewPath}]}}}else{let X=new Z,Q=U6(X.routes);for(let[W,{exec:z,middleware:$,viewPath:w,segments:U}]of Object.entries(Q)){let H=z4(K,W);Y[w6(H)]={exec:z,middleware:[...X.middlewares,...$],viewPath:w,segments:lY(K,U)}}}return Object.fromEntries(Object.entries(Y).sort(([K],[Z])=>{let X=K.split("/").length+K.split(":").length,Q=Z.split("/").length+Z.split(":").length;return X-Q}))}var w3=Object.defineProperty,Y0=(J,Y)=>w3(J,"name",{value:Y,configurable:!0}),D5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,Y,K,Z,X,Q){this.type=J,this.name=Y,this.prefix=K,this.value=Z,this.suffix=X,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};Y0(D5,"Part");var U3=/[$_\p{ID_Start}]/u,H3=/[$_\u200C\u200D\p{ID_Continue}]/u,H4=".*";function pY(J,Y){return(Y?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}Y0(pY,"isASCII");function B4(J,Y=!1){let K=[],Z=0;for(;Z<J.length;){let X=J[Z],Q=Y0(function(W){if(!Y)throw TypeError(W);K.push({type:"INVALID_CHAR",index:Z,value:J[Z++]})},"ErrorOrInvalid");if(X==="*"){K.push({type:"ASTERISK",index:Z,value:J[Z++]});continue}if(X==="+"||X==="?"){K.push({type:"OTHER_MODIFIER",index:Z,value:J[Z++]});continue}if(X==="\\"){K.push({type:"ESCAPED_CHAR",index:Z++,value:J[Z++]});continue}if(X==="{"){K.push({type:"OPEN",index:Z,value:J[Z++]});continue}if(X==="}"){K.push({type:"CLOSE",index:Z,value:J[Z++]});continue}if(X===":"){let W="",z=Z+1;for(;z<J.length;){let $=J.substr(z,1);if(z===Z+1&&U3.test($)||z!==Z+1&&H3.test($)){W+=J[z++];continue}break}if(!W){Q(`Missing parameter name at ${Z}`);continue}K.push({type:"NAME",index:Z,value:W}),Z=z;continue}if(X==="("){let W=1,z="",$=Z+1,w=!1;if(J[$]==="?"){Q(`Pattern cannot start with "?" at ${$}`);continue}for(;$<J.length;){if(!pY(J[$],!1)){Q(`Invalid character '${J[$]}' at ${$}.`),w=!0;break}if(J[$]==="\\"){z+=J[$++]+J[$++];continue}if(J[$]===")"){if(W--,W===0){$++;break}}else if(J[$]==="("&&(W++,J[$+1]!=="?")){Q(`Capturing groups are not allowed at ${$}`),w=!0;break}z+=J[$++]}if(w)continue;if(W){Q(`Unbalanced pattern at ${Z}`);continue}if(!z){Q(`Missing pattern at ${Z}`);continue}K.push({type:"REGEX",index:Z,value:z}),Z=$;continue}K.push({type:"CHAR",index:Z,value:J[Z++]})}return K.push({type:"END",index:Z,value:""}),K}Y0(B4,"lexer");function G4(J,Y={}){let K=B4(J);Y.delimiter??="/#?",Y.prefixes??="./";let Z=`[^${t0(Y.delimiter)}]+?`,X=[],Q=0,W=0,z="",$=new Set,w=Y0((E)=>{if(W<K.length&&K[W].type===E)return K[W++].value},"tryConsume"),U=Y0(()=>w("OTHER_MODIFIER")??w("ASTERISK"),"tryConsumeModifier"),H=Y0((E)=>{let I=w(E);if(I!==void 0)return I;let{type:F,index:q}=K[W];throw TypeError(`Unexpected ${F} at ${q}, expected ${E}`)},"mustConsume"),V=Y0(()=>{let E="",I;for(;I=w("CHAR")??w("ESCAPED_CHAR");)E+=I;return E},"consumeText"),A=Y0((E)=>E,"DefaultEncodePart"),O=Y.encodePart||A,B="",M=Y0((E)=>{B+=E},"appendToPendingFixedValue"),j=Y0(()=>{B.length&&(X.push(new D5(3,"","",O(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=Y0((E,I,F,q,T)=>{let D=3;switch(T){case"?":D=1;break;case"*":D=0;break;case"+":D=2;break}if(!I&&!F&&D===3){M(E);return}if(j(),!I&&!F){if(!E)return;X.push(new D5(3,"","",O(E),"",D));return}let R;F?F==="*"?R=H4:R=F:R=Z;let y=2;R===Z?(y=1,R=""):R===H4&&(y=0,R="");let u;if(I?u=I:F&&(u=Q++),$.has(u))throw TypeError(`Duplicate name '${u}'.`);$.add(u),X.push(new D5(y,u,O(E),R,O(q),D))},"addPart");for(;W<K.length;){let E=w("CHAR"),I=w("NAME"),F=w("REGEX");if(!I&&!F&&(F=w("ASTERISK")),I||F){let T=E??"";Y.prefixes.indexOf(T)===-1&&(M(T),T=""),j();let D=U();N(T,I,F,"",D);continue}let q=E??w("ESCAPED_CHAR");if(q){M(q);continue}if(w("OPEN")){let T=V(),D=w("NAME"),R=w("REGEX");!D&&!R&&(R=w("ASTERISK"));let y=V();H("CLOSE");let u=U();N(T,D,R,y,u);continue}j(),H("END")}return X}Y0(G4,"parse");function t0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}Y0(t0,"escapeString");function V4(J){return J&&J.ignoreCase?"ui":"u"}Y0(V4,"flags");function iY(J,Y,K){return O4(G4(J,K),Y,K)}Y0(iY,"stringToRegexp");function z5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}Y0(z5,"modifierToString");function O4(J,Y,K={}){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Z=K.start?"^":"";for(let z of J){if(z.type===3){z.modifier===3?Z+=t0(z.value):Z+=`(?:${t0(z.value)})${z5(z.modifier)}`;continue}Y&&Y.push(z.name);let $=`[^${t0(K.delimiter)}]+?`,w=z.value;if(z.type===1?w=$:z.type===0&&(w=H4),!z.prefix.length&&!z.suffix.length){z.modifier===3||z.modifier===1?Z+=`(${w})${z5(z.modifier)}`:Z+=`((?:${w})${z5(z.modifier)})`;continue}if(z.modifier===3||z.modifier===1){Z+=`(?:${t0(z.prefix)}(${w})${t0(z.suffix)})`,Z+=z5(z.modifier);continue}Z+=`(?:${t0(z.prefix)}`,Z+=`((?:${w})(?:`,Z+=t0(z.suffix),Z+=t0(z.prefix),Z+=`(?:${w}))*)${t0(z.suffix)})`,z.modifier===0&&(Z+="?")}let X=`[${t0(K.endsWith)}]|$`,Q=`[${t0(K.delimiter)}]`;if(K.end)return K.strict||(Z+=`${Q}?`),K.endsWith.length?Z+=`(?=${X})`:Z+="$",new RegExp(Z,V4(K));K.strict||(Z+=`(?:${Q}(?=${X}))?`);let W=!1;if(J.length){let z=J[J.length-1];z.type===3&&z.modifier===3&&(W=K.delimiter.indexOf(z)>-1)}return W||(Z+=`(?=${Q}|${X})`),new RegExp(Z,V4(K))}Y0(O4,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},V3={delimiter:".",prefixes:"",sensitive:!0,strict:!0},A3={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function nY(J,Y){return J.length?J[0]==="/"?!0:!Y||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}Y0(nY,"isAbsolutePathname");function M4(J,Y){return J.startsWith(Y)?J.substring(Y.length,J.length):J}Y0(M4,"maybeStripPrefix");function oY(J,Y){return J.endsWith(Y)?J.substr(0,J.length-Y.length):J}Y0(oY,"maybeStripSuffix");function L4(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}Y0(L4,"treatAsIPv6Hostname");var rY=["ftp","file","http","https","ws","wss"];function j4(J){if(!J)return!0;for(let Y of rY)if(J.test(Y))return!0;return!1}Y0(j4,"isSpecialScheme");function sY(J,Y){if(J=M4(J,"#"),Y||J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash?K.hash.substring(1,K.hash.length):""}Y0(sY,"canonicalizeHash");function aY(J,Y){if(J=M4(J,"?"),Y||J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search?K.search.substring(1,K.search.length):""}Y0(aY,"canonicalizeSearch");function tY(J,Y){return Y||J===""?J:L4(J)?E4(J):q4(J)}Y0(tY,"canonicalizeHostname");function eY(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}Y0(eY,"canonicalizePassword");function JK(J,Y){if(Y||J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}Y0(JK,"canonicalizeUsername");function YK(J,Y,K){if(K||J==="")return J;if(Y&&!rY.includes(Y))return new URL(`${Y}:${J}`).pathname;let Z=J[0]=="/";return J=new URL(Z?J:"/-"+J,"https://example.com").pathname,Z||(J=J.substring(2,J.length)),J}Y0(YK,"canonicalizePathname");function KK(J,Y,K){return N4(Y)===J&&(J=""),K||J===""?J:F4(J)}Y0(KK,"canonicalizePort");function ZK(J,Y){return J=oY(J,":"),Y||J===""?J:H6(J)}Y0(ZK,"canonicalizeProtocol");function N4(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}Y0(N4,"defaultPortForProtocol");function H6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}Y0(H6,"protocolEncodeCallback");function XK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}Y0(XK,"usernameEncodeCallback");function QK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}Y0(QK,"passwordEncodeCallback");function q4(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let Y=new URL("https://example.com");return Y.hostname=J,Y.hostname}Y0(q4,"hostnameEncodeCallback");function E4(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}Y0(E4,"ipv6HostnameEncodeCallback");function F4(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}Y0(F4,"portEncodeCallback");function WK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?Y.pathname.substring(2,Y.pathname.length):Y.pathname}Y0(WK,"standardURLPathnameEncodeCallback");function $K(J){return J===""?J:new URL(`data:${J}`).pathname}Y0($K,"pathURLPathnameEncodeCallback");function zK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search.substring(1,Y.search.length)}Y0(zK,"searchEncodeCallback");function wK(J){if(J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash.substring(1,Y.hash.length)}Y0(wK,"hashEncodeCallback");var UK=class{#Q;#Z=[];#Y={};#J=0;#X=1;#w=0;#$=0;#A=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#Y}parse(){for(this.#Z=B4(this.#Q,!0);this.#J<this.#Z.length;this.#J+=this.#X){if(this.#X=1,this.#Z[this.#J].type==="END"){if(this.#$===0){this.#j(),this.#U()?this.#K(9,1):this.#H()?this.#K(8,1):this.#K(7,0);continue}else if(this.#$===2){this.#V(5);continue}this.#K(10,0);break}if(this.#A>0)if(this.#D())this.#A-=1;else continue;if(this.#I()){this.#A+=1;continue}switch(this.#$){case 0:this.#N()&&this.#V(1);break;case 1:if(this.#N()){this.#T();let J=7,Y=1;this.#E()?(J=2,Y=3):this.#G&&(J=2),this.#K(J,Y)}break;case 2:this.#M()?this.#V(3):(this.#L()||this.#H()||this.#U())&&this.#V(5);break;case 3:this.#F()?this.#K(4,1):this.#M()&&this.#K(5,1);break;case 4:this.#M()&&this.#K(5,1);break;case 5:this.#R()?this.#B+=1:this.#C()&&(this.#B-=1),this.#_()&&!this.#B?this.#K(6,1):this.#L()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 6:this.#L()?this.#K(7,0):this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 7:this.#H()?this.#K(8,1):this.#U()&&this.#K(9,1);break;case 8:this.#U()&&this.#K(9,1);break;case 9:break;case 10:break}}this.#Y.hostname!==void 0&&this.#Y.port===void 0&&(this.#Y.port="")}#K(J,Y){switch(this.#$){case 0:break;case 1:this.#Y.protocol=this.#z();break;case 2:break;case 3:this.#Y.username=this.#z();break;case 4:this.#Y.password=this.#z();break;case 5:this.#Y.hostname=this.#z();break;case 6:this.#Y.port=this.#z();break;case 7:this.#Y.pathname=this.#z();break;case 8:this.#Y.search=this.#z();break;case 9:this.#Y.hash=this.#z();break;case 10:break}this.#$!==0&&J!==10&&([1,2,3,4].includes(this.#$)&&[6,7,8,9].includes(J)&&(this.#Y.hostname??=""),[1,2,3,4,5,6].includes(this.#$)&&[8,9].includes(J)&&(this.#Y.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#$)&&J===9&&(this.#Y.search??="")),this.#q(J,Y)}#q(J,Y){this.#$=J,this.#w=this.#J+Y,this.#J+=Y,this.#X=0}#j(){this.#J=this.#w,this.#X=0}#V(J){this.#j(),this.#$=J}#O(J){return J<0&&(J=this.#Z.length-J),J<this.#Z.length?this.#Z[J]:this.#Z[this.#Z.length-1]}#W(J,Y){let K=this.#O(J);return K.value===Y&&(K.type==="CHAR"||K.type==="ESCAPED_CHAR"||K.type==="INVALID_CHAR")}#N(){return this.#W(this.#J,":")}#E(){return this.#W(this.#J+1,"/")&&this.#W(this.#J+2,"/")}#M(){return this.#W(this.#J,"@")}#F(){return this.#W(this.#J,":")}#_(){return this.#W(this.#J,":")}#L(){return this.#W(this.#J,"/")}#H(){if(this.#W(this.#J,"?"))return!0;if(this.#Z[this.#J].value!=="?")return!1;let J=this.#O(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#U(){return this.#W(this.#J,"#")}#I(){return this.#Z[this.#J].type=="OPEN"}#D(){return this.#Z[this.#J].type=="CLOSE"}#R(){return this.#W(this.#J,"[")}#C(){return this.#W(this.#J,"]")}#z(){let J=this.#Z[this.#J],Y=this.#O(this.#w).index;return this.#Q.substring(Y,J.index)}#T(){let J={};Object.assign(J,a1),J.encodePart=H6;let Y=iY(this.#z(),void 0,J);this.#G=j4(Y)}};Y0(UK,"Parser");var U4=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function A4(J,Y){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let K=new URL(J,Y);return{protocol:K.protocol.substring(0,K.protocol.length-1),username:K.username,password:K.password,hostname:K.hostname,port:K.port,pathname:K.pathname,search:K.search!==""?K.search.substring(1,K.search.length):void 0,hash:K.hash!==""?K.hash.substring(1,K.hash.length):void 0}}Y0(A4,"extractValues");function R1(J,Y){return Y?I5(J):J}Y0(R1,"processBaseURLString");function _5(J,Y,K){let Z;if(typeof Y.baseURL=="string")try{Z=new URL(Y.baseURL),Y.protocol===void 0&&(J.protocol=R1(Z.protocol.substring(0,Z.protocol.length-1),K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&(J.username=R1(Z.username,K)),!K&&Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.username===void 0&&Y.password===void 0&&(J.password=R1(Z.password,K)),Y.protocol===void 0&&Y.hostname===void 0&&(J.hostname=R1(Z.hostname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&(J.port=R1(Z.port,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&(J.pathname=R1(Z.pathname,K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&(J.search=R1(Z.search.substring(1,Z.search.length),K)),Y.protocol===void 0&&Y.hostname===void 0&&Y.port===void 0&&Y.pathname===void 0&&Y.search===void 0&&Y.hash===void 0&&(J.hash=R1(Z.hash.substring(1,Z.hash.length),K))}catch{throw TypeError(`invalid baseURL '${Y.baseURL}'.`)}if(typeof Y.protocol=="string"&&(J.protocol=ZK(Y.protocol,K)),typeof Y.username=="string"&&(J.username=JK(Y.username,K)),typeof Y.password=="string"&&(J.password=eY(Y.password,K)),typeof Y.hostname=="string"&&(J.hostname=tY(Y.hostname,K)),typeof Y.port=="string"&&(J.port=KK(Y.port,J.protocol,K)),typeof Y.pathname=="string"){if(J.pathname=Y.pathname,Z&&!nY(J.pathname,K)){let X=Z.pathname.lastIndexOf("/");X>=0&&(J.pathname=R1(Z.pathname.substring(0,X+1),K)+J.pathname)}J.pathname=YK(J.pathname,J.protocol,K)}return typeof Y.search=="string"&&(J.search=aY(Y.search,K)),typeof Y.hash=="string"&&(J.hash=sY(Y.hash,K)),J}Y0(_5,"applyInit");function I5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}Y0(I5,"escapePatternString");function HK(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}Y0(HK,"escapeRegexpString");function VK(J,Y){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let K=".*",Z=`[^${HK(Y.delimiter)}]+?`,X=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let W=0;W<J.length;++W){let z=J[W];if(z.type===3){if(z.modifier===3){Q+=I5(z.value);continue}Q+=`{${I5(z.value)}}${z5(z.modifier)}`;continue}let $=z.hasCustomName(),w=!!z.suffix.length||!!z.prefix.length&&(z.prefix.length!==1||!Y.prefixes.includes(z.prefix)),U=W>0?J[W-1]:null,H=W<J.length-1?J[W+1]:null;if(!w&&$&&z.type===1&&z.modifier===3&&H&&!H.prefix.length&&!H.suffix.length)if(H.type===3){let V=H.value.length>0?H.value[0]:"";w=X.test(V)}else w=!H.hasCustomName();if(!w&&!z.prefix.length&&U&&U.type===3){let V=U.value[U.value.length-1];w=Y.prefixes.includes(V)}w&&(Q+="{"),Q+=I5(z.prefix),$&&(Q+=`:${z.name}`),z.type===2?Q+=`(${z.value})`:z.type===1?$||(Q+=`(${Z})`):z.type===0&&(!$&&(!U||U.type===3||U.modifier!==3||w||z.prefix!=="")?Q+="*":Q+=`(${K})`),z.type===1&&$&&z.suffix.length&&X.test(z.suffix[0])&&(Q+="\\"),Q+=I5(z.suffix),w&&(Q+="}"),z.modifier!==3&&(Q+=z5(z.modifier))}return Q}Y0(VK,"partsToPattern");var _4=class{#Q;#Z={};#Y={};#J={};#X={};#w=!1;constructor(J={},Y,K){try{let Z;if(typeof Y=="string"?Z=Y:K=Y,typeof J=="string"){let z=new UK(J);if(z.parse(),J=z.result,Z===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=Z}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(Z)throw TypeError("parameter 1 is not of type 'string'.")}typeof K>"u"&&(K={ignoreCase:!1});let X={ignoreCase:K.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=_5(Q,J,!0),N4(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let W;for(W of U4){if(!(W in this.#Q))continue;let z={},$=this.#Q[W];switch(this.#Y[W]=[],W){case"protocol":Object.assign(z,a1),z.encodePart=H6;break;case"username":Object.assign(z,a1),z.encodePart=XK;break;case"password":Object.assign(z,a1),z.encodePart=QK;break;case"hostname":Object.assign(z,V3),L4($)?z.encodePart=E4:z.encodePart=q4;break;case"port":Object.assign(z,a1),z.encodePart=F4;break;case"pathname":j4(this.#Z.protocol)?(Object.assign(z,A3,X),z.encodePart=WK):(Object.assign(z,a1,X),z.encodePart=$K);break;case"search":Object.assign(z,a1,X),z.encodePart=zK;break;case"hash":Object.assign(z,a1,X),z.encodePart=wK;break}try{this.#X[W]=G4($,z),this.#Z[W]=O4(this.#X[W],this.#Y[W],z),this.#J[W]=VK(this.#X[W],z),this.#w=this.#w||this.#X[W].some((w)=>w.type===2)}catch{throw TypeError(`invalid ${W} pattern '${this.#Q[W]}'.`)}}}catch(Z){throw TypeError(`Failed to construct 'URLPattern': ${Z.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,A4(J,Y),!1)}catch{return!1}let Z;for(Z of U4)if(!this.#Z[Z].exec(K[Z]))return!1;return!0}exec(J={},Y){let K={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&Y)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?K=_5(K,J,!1):K=_5(K,A4(J,Y),!1)}catch{return null}let Z={};Y?Z.inputs=[J,Y]:Z.inputs=[J];let X;for(X of U4){let Q=this.#Z[X].exec(K[X]);if(!Q)return null;let W={};for(let[z,$]of this.#Y[X].entries())if(typeof $=="string"||typeof $=="number"){let w=Q[z+1];W[$]=w}Z[X]={input:K[X]??"",groups:W}}return Z}static compareComponent(J,Y,K){let Z=Y0((z,$)=>{for(let w of["type","modifier","prefix","value","suffix"]){if(z[w]<$[w])return-1;if(z[w]===$[w])continue;return 1}return 0},"comparePart"),X=new D5(3,"","","","",3),Q=new D5(0,"","","","",3),W=Y0((z,$)=>{let w=0;for(;w<Math.min(z.length,$.length);++w){let U=Z(z[w],$[w]);if(U)return U}return z.length===$.length?0:Z(z[w]??X,$[w]??X)},"comparePartList");return!Y.#J[J]&&!K.#J[J]?0:Y.#J[J]&&!K.#J[J]?W(Y.#X[J],[Q]):!Y.#J[J]&&K.#J[J]?W([Q],K.#X[J]):W(Y.#X[J],K.#X[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#w}};Y0(_4,"URLPattern");function V6(J,Y){for(let[K,Z]of Object.entries(J)){let X=new _4({pathname:K});if(X.test({pathname:Y}))return{routePath:K,params:X.exec({pathname:Y})?.pathname.groups??{},route:Z}}return null}var w5={startIndex:0,carriedViews:[]};function AK(J,Y){let K=i0(J.path,Y);return K.includes("*")?null:K}function B3(J,Y){if(!J)return w5;if(J.search!==Y.search)return w5;let K=Math.min(J.segments.length,Y.segments.length-1),Z=0;while(Z<K){let X=J.segments[Z],Q=Y.segments[Z];if(Q.alwaysRun)break;if(X.viewPath!==Q.viewPath)break;let W=AK(X,J.params),z=AK(Q,Y.params);if(W===null||z===null||W!==z)break;Z++}if(Z===0)return w5;return{startIndex:Z,carriedViews:Y.segments.slice(0,Z).map(({viewPath:X})=>X)}}function G3(J,Y){let[,K,...Z]=J.split("/");if(!Y.includes(K))return J;let X=`/${Z.join("/")}`;return X==="/"?"/":X.replace(/\/$/,"")}function BK(J){let{flatViewRoutes:Y,supportedLocales:K,from:Z,origin:X,to:Q}=J;if(!Z)return w5;let W;try{W=new URL(Z,X)}catch{return w5}if(W.origin!==X)return w5;let z=V6(Y,G3(W.pathname,K));if(!z)return w5;return B3({segments:z.route.segments,params:z.params,search:W.search},Q)}var I4="x-gemi-from";import{createElement as C5,Fragment as S3}from"react";function O3(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function A6(J){let Y={};for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if("children"in Z){Y[K]=[X];let Q=new Z.children,W=A6(Q.routes);for(let[z,$]of Object.entries(W)){let w=K==="/"?z:`${K}${z}`,U=z==="/"&&K!=="/"?K:w;Y[U]=[X,...$]}if(Y[K].length===1)delete Y[K]}else Y[K]=[X]}else{let X=new Z,Q=A6(X.routes);for(let[W,z]of Object.entries(Q)){let $=K==="/"?W:`${K}${W}`,w=W==="/"&&K!=="/"?K:$;Y[w]=z}}return Object.fromEntries(Object.entries(Y).map(([K,Z])=>[O3(K),Z]))}function B6(J){let Y=[];for(let[K,Z]of Object.entries(J))if("run"in Z){let X=Z.viewPath;if(X==="__")continue;if(X==="REDIRECT")continue;if(X==="FILE")continue;if("children"in Z){let Q=new Z.children,W=B6(Q.routes);Y.push([X,W])}else Y.push([X,[]])}else{let X=new Z,Q=B6(X.routes);Y.push(...Q)}return Y}function D4(J){let Y=[];for(let[K,Z]of J)Y.push(K,...D4(Z).flat());return Array.from(new Set(Y))}class R5 extends k0{static getFacadeAccessor(){return g5}static debug(J,Y){this.getFacadeRoot().log("debug",J,Y)}static info(J,Y){this.getFacadeRoot().log("info",J,Y)}static notice(J,Y){this.getFacadeRoot().log("notice",J,Y)}static warning(J,Y){this.getFacadeRoot().log("warning",J,Y)}static error(J,Y){this.getFacadeRoot().log("error",J,Y)}static critical(J,Y){this.getFacadeRoot().log("critical",J,Y)}static alert(J,Y){this.getFacadeRoot().log("alert",J,Y)}static emergency(J,Y){this.getFacadeRoot().log("emergency",J,Y)}}class R4{id;static token="kernel.id";constructor(J=crypto.randomUUID()){this.id=J}}var M3=new Set(["script","style","textarea","title","xmp","iframe","noembed","noframes","noscript"]),L3=new Set(["svg","math"]);function GK(J){return J===32||J===9||J===10||J===12||J===13}function OK(J){return J>=65&&J<=90||J>=97&&J<=122}function G6(J){return J>=65&&J<=90?J+32:J}function MK(){let J="data",Y="",K=!1,Z="",X=0,Q=0,W=!1,z=0,$=0,w=()=>J==="data"&&z===0&&$===0,U=()=>{if(!K&&M3.has(Y)){J="rawText",Z=`</${Y}`,X=0,Y="";return}if(J="data",Y==="template")if(K)z=Math.max(0,z-1);else z+=1;else if(L3.has(Y)){if(K)$=Math.max(0,$-1);else if(!W)$+=1}Y=""},H=(V)=>{switch(J){case"data":if(V===60)J="tagOpen";return;case"tagOpen":if(V===33)J="bang",Q=0;else if(V===47)J="endTagOpen";else if(OK(V))J="tagName",K=!1,W=!1,Y=String.fromCharCode(G6(V));else if(V===63)J="bogus";else if(V===60)J="tagOpen";else J="data";return;case"endTagOpen":if(OK(V))J="tagName",K=!0,W=!1,Y=String.fromCharCode(G6(V));else if(V===62)J="data";else J="bogus";return;case"tagName":if(GK(V)||V===47)J="inTag",W=V===47;else if(V===62)U();else Y+=String.fromCharCode(G6(V));return;case"inTag":if(V===62){U();return}if(W=V===47,V===34)J="attrDouble";else if(V===39)J="attrSingle";return;case"attrDouble":if(V===34)J="inTag";W=!1;return;case"attrSingle":if(V===39)J="inTag";W=!1;return;case"bang":if(V===45){if(Q+=1,Q===2)J="comment",Q=0}else if(V===62)J="data";else J="bogus";return;case"bogus":if(V===62)J="data";return;case"comment":if(V===45)Q=Q<2?Q+1:2;else if(V===62&&Q>=2)J="data",Q=0;else Q=0;return;case"rawText":{if(X<Z.length){if(G6(V)===Z.charCodeAt(X))X+=1;else X=V===60?1:0;return}if(V===62)J="data",Y="";else if(GK(V)||V===47)J="inTag",Y="";else X=V===60?1:0;return}}};return{scanToInsertionPoint(V){for(let A=0;A<V.length;A++){if(w())return A;H(V[A])}return V.length},write(V){for(let A=0;A<V.length;A++)H(V[A])},isSafe:w}}function LK(J){return JSON.stringify(J).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function j3(J){return`<script>(self.__GEMI_STREAM__=self.__GEMI_STREAM__||[]).push(${LK([J.path,J.variantKey,J.data])})</script>`}function N3(J){return`<script>(self.__GEMI_DICT__=self.__GEMI_DICT__||[]).push(${LK([J.id,J.locale,J.strings])})</script>`}function C4(J,Y,K={},Z){let X=new TextEncoder,Q=[],W=!1,z=!1,$=()=>{if(z)return;z=!0,K.onClose?.()};Y.onSettle((O)=>{if(O.status!=="resolved")return;Q.push(j3(O))}),Z?.onUse((O)=>{Q.push(N3(O))});let w=J.getReader(),U=MK(),H=(O,B)=>{O.enqueue(B),K.onChunk?.(B)},V=(O)=>{while(Q.length>0){let B=X.encode(Q.shift());U.write(B),H(O,B)}},A=(O,B)=>{if(Q.length===0){U.write(B),H(O,B);return}let M=U.scanToInsertionPoint(B);if(M>0)H(O,B.subarray(0,M));if(U.isSafe())V(O);let j=B.subarray(M);if(j.length>0)U.write(j),H(O,j)};return new ReadableStream({async pull(O){let B;try{B=await w.read()}catch(N){throw $(),N}let{done:M,value:j}=B;if(M){V(O),O.close(),$();return}if(!W){if(W=!0,U.write(j),H(O,j),K.onShell?.(),U.isSafe())V(O);return}A(O,j)},cancel(O){return $(),w.cancel(O)}})}var q3=/bot|crawler|spider|crawling|slurp|bingpreview|mediapartners|headless|lighthouse|prerender|facebookexternalhit|whatsapp|telegram|discord|twitterbot|linkedinbot/i;function jK(J){if(!J)return!1;return q3.test(J)}var E3=new Set(["script","style","template","title"]),F3=/\shidden([\s=/]|$)/i,_3=/"[^"]*"|'[^']*'/g;function I3(J){let Y=0,K=0,Z=0,X=0;while(X<J.length){let Q=J.indexOf("<",X),W=Q===-1?J.length:Q;if(W>X){let H=J.slice(X,W).replace(/\s+/g,"").length;if(Z>0)K+=H;else Y+=H}if(Q===-1)break;if(J.startsWith("<!--",Q)){let H=J.indexOf("-->",Q+4);X=H===-1?J.length:H+3;continue}let z=J.indexOf(">",Q);if(z===-1)break;let $=J.slice(Q+1,z);X=z+1;let w=/^\/?([a-zA-Z][a-zA-Z0-9-]*)/.exec($)?.[1]?.toLowerCase();if(!w)continue;let U=$.startsWith("/");if(!U&&E3.has(w)&&!$.endsWith("/")){let H=J.indexOf(`</${w}`,X);X=H===-1?J.length:H;continue}if(w!=="div")continue;if(U){if(Z>0)Z-=1}else if(Z>0)Z+=1;else if(F3.test($.replace(_3,'""')))Z=1}return{shellChars:Y,deferredChars:K}}var D3=1000,R3=64;function C3(J){return J>=1000?`${(J/1000).toFixed(1)} kB`:`${J} chars`}function T3(J,Y){if(Y.deferredChars<D3)return null;if(Y.shellChars>=R3)return null;return`[gemi] GET ${J} streams ${C3(Y.deferredChars)} of its `+`content behind reveal scripts \u2014 a no-JS visitor sees ~${Y.shellChars} chars. If this is a public/content route, add "no-stream" to its middleware.`}function NK(J=console.warn){let Y=new Set;return{shouldObserve(K){return!Y.has(K)},report(K,Z){if(Y.has(K))return;let X=T3(K,Z);if(!X)return;Y.add(K),J(X)}}}function qK(){let J=new TextDecoder,Y="";return{onChunk(K){Y+=J.decode(K,{stream:!0})},measure(){return Y+=J.decode(),I3(Y)}}}function EK(J,Y,K=1e4,Z){let X=new TextEncoder,Q=()=>{};return new ReadableStream({start(W){let z=!1,$=(U)=>{if(z)return;z=!0,clearTimeout(w);try{W.close()}catch{}Z?.({aborted:U})};Q=$,W.enqueue(X.encode(`${JSON.stringify(J)}
|
|
67
67
|
`)),Y.onSettle((U)=>{if(z||U.status!=="resolved")return;W.enqueue(X.encode(`${JSON.stringify([U.path,U.variantKey,U.data])}
|
|
68
|
-
`))});let w=setTimeout(()=>$(!0),K);Y.allSettled().then(()=>$(!1),()=>$(!1))},cancel(){Q(!1)}})}var
|
|
68
|
+
`))});let w=setTimeout(()=>$(!0),K);Y.allSettled().then(()=>$(!1),()=>$(!1))},cancel(){Q(!1)}})}var T4,P4=async(...J)=>{return T4??=import("react-dom/server.browser").catch((Y)=>{throw T4=void 0,Y}),(await T4).renderToReadableStream(...J)},v3=1e4,k3=`
|
|
69
69
|
!function(){try{var d=document.documentElement,c=d.classList;
|
|
70
70
|
c.remove('light','dark');
|
|
71
71
|
var e=localStorage.getItem('theme');
|
|
@@ -76,6 +76,6 @@ if('system'===e||(!e&&'system'===defaultTheme)){
|
|
|
76
76
|
}else if(e){
|
|
77
77
|
c.add(e||'')
|
|
78
78
|
}}catch(e){}}()
|
|
79
|
-
`;async function CA(J,Y,K){let Z=`${K==="italic"?"italic,":""}wght@${K==="italic"?"1,":""}${Y}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${Z}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((z)=>z.arrayBuffer())}var P4="/assets";function TA(J){let Y=J.filter((K)=>K===P4||K.startsWith(`${P4}/`));if(Y.length>0){let K=Y.length>1;throw Error(`View route path${K?"s":""} ${Y.map((Z)=>`"${Z}"`).join(", ")} use${K?"":"s"} the reserved "${P4}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class S4{static token="router.view";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;shellReporter=OK();preloadCache=new WeakMap;hooks;partialRendering;constructor(J){let Y=e4();this.partialRendering=J.partialRendering??Y.partialRendering,this.hooks={onRequestStart:J.onRequestStart??Y.onRequestStart,onRequestEnd:J.onRequestEnd??Y.onRequestEnd,onRequestFail:J.onRequestFail??Y.onRequestFail,onStreamComplete:J.onStreamComplete??Y.onStreamComplete};let K={"/":J.rootRouter,"/auth":_6};this.flatViewRoutes=U6(K),TA(Object.keys(this.flatViewRoutes)),this.routeManifest=A6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Z])=>Z.at(-1)!=="FILE")),this.componentTree=B6(K),this.flatComponentTree=I4(this.componentTree),this.root=J.root}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.hooks.onRequestEnd(J)}completeStream(J,Y){let K=(Z)=>{R5.error(Z?.message??'Error in "onStreamComplete" event handler',{err:JSON.stringify(Z)})};try{Promise.resolve(this.hooks.onStreamComplete(J,Y)).catch(K)}catch(Z){K(Z)}}modulePreloadLinks(J){let{clientEntry:Y,modulePreloadManifest:K,views:Z,routeKey:X}=J,Q=()=>{let $=new Set(Y?.preload??[]);for(let w of Z)for(let U of K?.[w]??[])$.add(U);return[...$].map((w)=>C5("link",{key:`modulepreload:${w}`,rel:"modulepreload",href:w}))};if(!K)return Q();let W=this.preloadCache.get(K);if(!W||W.clientEntry!==Y)W={clientEntry:Y,byRoute:new Map},this.preloadCache.set(K,W);let z=W.byRoute.get(X);if(!z)z=Q(),W.byRoute.set(X,z);return z}async render(J){let{req:Y,runInRequestScope:K,csrfTokenHMAC:Z,currentPathName:X,headers:Q,i18n:W,params:z,pathname:$,serverQueries:w,userAgent:U,noStream:H,url:V,user:A,viewData:M,breadcrumbs:B,urlLocaleSegment:O,meta:N,isOgRequest:j,appId:E}=J,I=$.replace(`/${O}`,""),F={kind:"view",data:{meta:N,pageData:{[I]:M},__csrf:Z.toString("base64"),prefetchedData:{},i18n:W,auth:{user:A},routeManifest:this.clientRouteManifest,breadcrumbs:B,router:{urlLocaleSegment:O,pathname:X,params:z,currentPath:$,searchParams:V.search,is404:!X?!0:!1},appId:E,componentTree:[["404",[]],...this.componentTree]},head:{}},q=this.root,T=this.routeManifest[X];return async(D)=>{let{bootstrapModules:R=[],loaders:g,getStyles:c,viewImportMap:i,cssManifest:p,ogMap:S,viewModules:v,clientEntry:C,modulePreloadManifest:m}=D,u=C?[]:R,a=(s)=>[s,`window.loaders=${g}`,...C?[`import(${JSON.stringify(C.module)}).catch(function(e){setTimeout(function(){throw e})})`]:[]].join(";");if(j){let s=null,Z0=null;for(let J0 of T??[])if(typeof S[J0]==="function")Z0=J0,s=S[J0];if(!s)return new Response("Not found",{status:404});let Q0=Object.values(F.data.pageData)[0];try{await T4(C5(s,Q0[Z0]),{onError:()=>{}})}catch(J0){let{fonts:A0,...E0}=J0.satoriOptions,K0=await Promise.all(A0.map((I0)=>{return CA(I0.name,I0.weight,I0.style).then((D0)=>({...I0,data:D0}))})),B0=new Headers(Q);B0.set("Content-Type","image/png");let C0=await cY(J0.jsx,{...E0,fonts:K0}),c0=await _A(Buffer.from(C0)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(c0),{headers:B0})}return new Response("data")}F.data.cssManifest=p,F.data.modulePreloadManifest=m??{};let n=this.modulePreloadLinks({clientEntry:C,modulePreloadManifest:m,views:T??["404"],routeKey:X??"404"}),f=await c(T);F.data.prefetchedData=w.snapshotResolved(),w.markRenderStart();let d=new AbortController,P=setTimeout(()=>d.abort(),DA),k=GK(U)||H,l=Bun.env.NODE_ENV!=="production"&&!k&&X&&this.shellReporter.shouldObserve(X)?MK():null,h=qK();try{let s=await T4(C5(IA,{children:[...n,...f,C5("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:RA}}),C5(q,{data:F.data,viewImportMap:i,viewModules:v,serverQueries:w,dictionarySink:h,key:"root"})]}),{bootstrapScriptContent:a(`window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:u,signal:d.signal,...k?{progressiveChunkSize:Number.MAX_SAFE_INTEGER}:{},onError(Z0){if(Bun.env.NODE_ENV!=="production")console.error(Z0)}});if(s.allReady.catch(()=>{}).finally(()=>clearTimeout(P)),k)await s.allReady.catch(()=>{});return new Response(R4(s,w,{onShell:k?void 0:()=>w.markShell(),onChunk:l?.onChunk,onClose:()=>K(()=>{if(this.completeStream(Y,w.summarize(d.signal.aborted)),l)this.shellReporter.report(X,l.measure())})},h),{status:!X?404:200,headers:Q})}catch(s){clearTimeout(P);let Z0=await T4(C5("div"),{bootstrapScriptContent:a(`window.error= ${JSON.stringify(s.message)}; window.stack_trace=${JSON.stringify(s.stack)};window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...u]:u});return new Response(R4(Z0,w,{onClose:()=>K(()=>this.completeStream(Y,w.summarize(d.signal.aborted)))}),{status:!X?404:200,headers:Q})}}}async handleViewRequest(J){let Y=new URL(J.url),K=Y.pathname.endsWith(".json"),Z=Y.pathname.endsWith(".og"),X=Y.pathname.replace(".json","").replace(".og",""),[,Q,...W]=X.split("/"),z=`/${W.join("/")}`,$=null,w=null,U=X0(p0);if(!U.supportedLocales.includes(Q))z=X;else $=Q,w=Q;if(U.isLocaleAware&&!Z){let E=X0(p0).detectLocale(new G0(J,{},"view",z));if(w===null&&E!==U.defaultLocale){let I=Y.pathname==="/"?"":Y.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${E}${I}${Y.search}`}})}}z=z.replace("//","/");let V=[],A=[],M=null,B={},O=null,N=!1;try{let E=V6(this.flatViewRoutes,z);if(E){if(M=E.routePath,B=E.params,V=E.route.exec,A=E.route.middleware,N=A.includes("no-stream"),K&&this.partialRendering){let I=J.headers.get(_4),F=AK({flatViewRoutes:this.flatViewRoutes,supportedLocales:X0(p0).supportedLocales,from:I,origin:Y.origin,to:{segments:E.route.segments,params:B,search:Y.search}});if(F.startIndex>0)V=V.slice(F.startIndex),O={from:I,carriedViews:F.carriedViews}}}}catch(E){throw E}let j=new G0(J,B,"view",M);return this.hooks.onRequestStart(j),await U0.run(j,async()=>{let E=null,I=U0.getStore(),F=T5.getStore(),q=(R)=>T5.run(F,()=>U0.runWith(I,R));I.serverQueries=new O5(z8(J));let T=new Set;if(I.serverQueries.onQueryFail((R)=>{T.add(R.error);try{q(()=>Promise.resolve(this.hooks.onRequestFail(D,R.error)).catch(()=>{}))}catch{}}),w){let R=w.replaceAll("/","");B5.setLocale(R)}else B5.setLocale();let D=I.req;try{await X0(g5).runMiddleware(A);let R=X0(p0),g=R.isEnabled,c=R.isLocaleAware,i={};if(c){let P=null;if(w)P=w.replaceAll("/",""),I.setLocale(P);else P=R.detectLocale(new G0(J,D.params)),I.setLocale(P);let k=g?R.getPageTranslations(P,D.routePath):{};i={supportedLocales:R.supportedLocales,currentLocale:P,dictionary:{[P]:k},defaultLocale:R.defaultLocale}}await jK(i.currentLocale??"");let p=await Promise.all(V.map((P)=>P(D))),S=I.cookies,v=I.headers;E={data:p,cookies:S,headers:v,user:I.user,prefetchedData:I.serverQueries.snapshotResolved(),currentPathName:D.routePath,params:D.params,urlLocaleSegment:$,meta:I.renderMeta(),appId:X0(D4).id};let{params:C,currentPathName:m,user:u}=E,a={},n={};for(let P of p??[]){let[k,l]=Object.entries(P)?.[0]??[];if(!k||!l)continue;n[`${k}:${m}`]=l.breadcrumb,a[k]=l}let f=a.FILE;if(f){for(let P of S)v.append("Set-Cookie",P.toString());try{await this.onRequestEnd(D)}catch(P){R5.error(P?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(P)})}return await NK(f,v)}if(K){v.set("Content-Type","application/x-ndjson; charset=utf-8"),v.append("Vary",_4),S.forEach((k)=>v.append("Set-Cookie",k.toString())),await this.hooks.onRequestEnd(D);let P={meta:O&&!I.metadata.touched?null:E.meta,data:{[z]:a},breadcrumbs:n,prefetchedData:I.serverQueries.snapshotResolved(),i18n:i,is404:!m,appId:E.appId,partial:O};return new Response(LK(P,I.serverQueries,void 0,({aborted:k})=>q(()=>this.completeStream(D,I.serverQueries.summarize(k)))),{headers:v})}if(v.set("Content-Type","text/html; charset=utf-8"),!N)v.append("Vary","User-Agent");for(let P of S)v.append("Set-Cookie",P.toString());let d=Bun.CSRF.generate(process.env.SECRET);v.append("Set-Cookie",`csrf_token=${d}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(D)}catch(P){R5.error(P?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(P)})}return await this.render({req:D,runInRequestScope:q,csrfTokenHMAC:Buffer.from(""),currentPathName:m,headers:v,i18n:i,params:C,pathname:Y.pathname,serverQueries:I.serverQueries,userAgent:J.headers.get("user-agent"),noStream:N,url:Y,user:u,viewData:a,breadcrumbs:n,urlLocaleSegment:$,meta:E.meta,appId:E.appId,isOgRequest:Z})}catch(R){if(R.kind===$8)if(K){let{status:g=400,data:c,directive:i,headers:p}=R.payload.api;return new Response(JSON.stringify({data:c,directive:i}),{headers:p,status:g})}else{let{status:g=400,error:c}=R.payload.view;return new Response(c?.message,{...R.payload.view,status:g})}if(!T.has(R))this.hooks.onRequestFail(D,R);throw R}})}}class EK extends N1{routes={"/api-routes":this.get(()=>{let J=X0(G6).flatRoutes,Y=[];for(let[K,Z]of Object.entries(J))for(let[X,Q]of Object.entries(Z)){let{exec:W,middleware:z}=Q;Y.push({path:K,method:X,middleware:z})}return Y}),"/view-routes":this.get(()=>{let J=X0(S4).flatViewRoutes,Y=[];for(let[K,{middleware:Z,viewPath:X}]of Object.entries(J))Y.push({path:K,method:"GET",viewPath:X,middleware:Z});return Y})}}class G6{static token="router.api";flatRoutes={};onRequestStart;onRequestEnd;onRequestFail;constructor(J){let Y=t4();this.onRequestStart=J.onRequestStart??Y.onRequestStart,this.onRequestEnd=J.onRequestEnd??Y.onRequestEnd,this.onRequestFail=J.onRequestFail??Y.onRequestFail,this.flatRoutes=k6({"/":J.rootRouter,"/auth":I6,"/__gemi__/services/i18n":D6,"/__gemi__/services/logs":v6,"/__gemi__/services/image":T6,"/__gemi__/debug":EK})}getRouteHandlerAndParams(J){let K=new URL(J.url).pathname.replace("/api",""),Z={},X;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:K})){X=Q,Z=W.exec({pathname:K})?.pathname.groups;break}}catch(W){console.error(W)}return{params:Z,path:X}}async runRouteMiddleware(J,Y){let Z=this.flatRoutes[J][Y.rawRequest.method].middleware;try{await X0(g5).runMiddleware(Z)}catch(X){if(X.kind===$8){if(Y.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:z}=X.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...z}})}}else throw this.onRequestFail(Y,X),console.error(X),X}}async getRouteData(J){let Y=this.flatRoutes[J],K=U0.getStore(),Z=Y[K.req.rawRequest.method].exec??(()=>Promise.resolve({})),X={};try{X=await Z()}catch(Q){if(Q.kind===$8){let{status:W=400,data:z,headers:$}=Q.payload.api;return new Response(JSON.stringify(z),{status:W,headers:{"Content-Type":"application/json",...$}})}throw this.onRequestFail(K.req,Q),console.error(Q),Q}return X}mergeContextIntoResponse(J,Y,K){let Z=[];Y?.forEach((W,z)=>Z.push([z,W]));let X=[...typeof Y?.getSetCookie==="function"?Y.getSetCookie():[],...Array.from(K??[])];if(Z.length===0&&X.length===0)return J;let Q=(W)=>{for(let[z,$]of Z){if(z.toLowerCase()==="set-cookie")continue;if(!W.has(z))W.set(z,$)}for(let z of X)W.append("Set-Cookie",z)};try{return Q(J.headers),J}catch{let W=new Headers(J.headers);return Q(W),new Response(J.body,{status:J.status,statusText:J.statusText,headers:W})}}async handleApiRequest(J){let{params:Y,path:K}=this.getRouteHandlerAndParams(J),Z=this.flatRoutes[K];if(!Z||!Z[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let X=new G0(J,Y,"api",K);if(!J.url.includes("/__gemi__"))this.onRequestStart(X);return await U0.run(X,async()=>{let Q=U0.getStore(),W=X0(p0);if(W.isEnabled){let H=W.detectLocale(X);Q.setLocale(H)}Q.setRequest(X);let z=await this.runRouteMiddleware(K,X);if(z instanceof Response)return z;let $=await this.getRouteData(K),w=Q.headers,U=Q.cookies;if($ instanceof Response){let H=this.mergeContextIntoResponse($,w,U);if(!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),H}if(w.set("Content-Type","application/json"),U.forEach((H)=>w.append("Set-Cookie",H.toString())),!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),new Response(JSON.stringify($),{headers:w})})}}function z8(J){let Y=T5.getStore();return(K,Z,X)=>{let Q=new URL(J.url).origin,W=[i0(K,Z),X.toString()].filter((w)=>w.length>0).join("?"),z=new Request(`${Q}/${W}`,{headers:J.headers}),$=new G0(z,Z);return T5.run(Y,()=>U0.run($,async()=>{try{let w=await X0(G6).getRouteData(K);if(w instanceof Response){let U=await w.json().catch(()=>null);if(!w.ok)throw new v5(i0(K,Z),X.toString(),w.status,U);return U}return w}catch(w){if(w instanceof v5)throw w;let U=new v5(i0(K,Z),X.toString(),500,{message:w instanceof Error?w.message:String(w)});throw U.cause=w,U}}))}}class O6{static ensure(J,Y={}){let K=U0.getStore();if(K.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");return K.serverQueries??=new O5(z8(K.req.rawRequest)),K.serverQueries.ensure(J,Y,"prefetch")}static async instant(J,...Y){let K=O6.ensure(J,Y[0]);if(await K.promise,K.status==="rejected")throw K.error;return K.data}static prefetch(J,...Y){O6.ensure(J,Y[0])}static noPrefetch(){let J=U0.getStore();if(J.req.kind==="api")throw Error("Query.noPrefetch() cannot be called from an API request");J.serverQueries??=new O5(z8(J.req.rawRequest)),J.serverQueries.muteDiscoveryHints()}}class FK{static absolute(J,...Y){return`${process.env.HOST_NAME}${i0(String(J),Y[0]??{})}`}static relative(J,...Y){return i0(String(J),Y[0]??{})}}class _K{name="Meta";static description(J){U0.getStore().metadata.description(J)}static title(J){U0.getStore().metadata.title(J)}static openGraph(J){U0.getStore().metadata.openGraph(J)}}var PA={set(J,Y,K){U0.getStore().setCookie(J,Y,K)},setIfAbsent(J,Y,K){if(U0.getStore().req.cookies.has(J))return!1;return U0.getStore().setCookie(J,Y,K),!0},delete(J){U0.getStore().deleteCookie(J)}};var{RedisClient:SA}=globalThis.Bun;class v4{config;static token="redis";client;constructor(J={}){this.config=J;this.client=new SA(J.url,J.options)}}class y1 extends k0{static getFacadeAccessor(){return v4}static get client(){return this.getFacadeRoot().client}static get(J){return y1.client.get(J)}static set(J,Y){return y1.client.set(J,Y)}static del(...J){return y1.client.del(...J)}static exists(J){return y1.client.exists(J)}static incr(J){return y1.client.incr(J)}static expire(J,Y){return y1.client.expire(J,Y)}static ttl(J){return y1.client.ttl(J)}}class DK extends k0{static getFacadeAccessor(){return IK}static consume(J,Y={}){return this.getFacadeRoot().consume(J,Y)}}class M6{bound;constructor(J){this.bound=J}get name(){return this.bound??k4()}get sql(){return this.connection().sql}get dialect(){return this.connection().dialect}async query(J){return await this.run(J,"query")}async execute(J){let Y=await this.run(J,"execute");return Number(Y?.count??0)}async transaction(J){let Y=this.name,K=this.connection(Y);return PK(K.sql,(Z)=>CK(Y,()=>J(Z)),{slowTransactionThreshold:K.config.slowTransactionThreshold,connection:Y})}run(J,Y){let K=this.connection(),{text:Z,values:X}=vK(J,SK(K.dialect),Y);return(this.handle()??K.sql).unsafe(Z,X)}handle(){let J=RK();if(J===void 0)return;return k4()===this.name?J:void 0}connection(J=this.name){return TK(J),X0(y4).connection(J)}}var w8=new M6;class kK extends k0{static getFacadeAccessor(){return y4}static connection(J){return new M6(J)}static get sql(){return w8.sql}static get dialect(){return w8.dialect}static query(J){return w8.query(J)}static execute(J){return w8.execute(J)}static transaction(J){return w8.transaction(J)}static close(){return this.getFacadeRoot().close()}}export{k0 as Mb,L6 as Nb,A8 as Ob,f1 as Pb,B5 as Qb,N6 as Rb,j6 as Sb,X3 as Tb,d4 as Ub,q6 as Vb,c4 as Wb,R6 as Xb,C6 as Yb,c3 as Zb,r4 as _b,s4 as $b,y5 as ac,g5 as bc,QB as cc,t4 as dc,e4 as ec,F4 as fc,R5 as gc,D4 as hc,P4 as ic,S4 as jc,G6 as kc,O6 as lc,FK as mc,_K as nc,PA as oc,v4 as pc,y1 as qc,DK as rc,M6 as sc,kK as tc};
|
|
79
|
+
`;async function g3(J,Y,K){let Z=`${K==="italic"?"italic,":""}wght@${K==="italic"?"1,":""}${Y}`,W=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${Z}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(W).then((z)=>z.arrayBuffer())}var S4="/assets";function y3(J){let Y=J.filter((K)=>K===S4||K.startsWith(`${S4}/`));if(Y.length>0){let K=Y.length>1;throw Error(`View route path${K?"s":""} ${Y.map((Z)=>`"${Z}"`).join(", ")} use${K?"":"s"} the reserved "${S4}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class v4{static token="router.view";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;shellReporter=NK();preloadCache=new WeakMap;hooks;partialRendering;constructor(J){let Y=J7();this.partialRendering=J.partialRendering??Y.partialRendering,this.hooks={onRequestStart:J.onRequestStart??Y.onRequestStart,onRequestEnd:J.onRequestEnd??Y.onRequestEnd,onRequestFail:J.onRequestFail??Y.onRequestFail,onStreamComplete:J.onStreamComplete??Y.onStreamComplete};let K={"/":J.rootRouter,"/auth":I6};this.flatViewRoutes=U6(K),y3(Object.keys(this.flatViewRoutes)),this.routeManifest=A6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,Z])=>Z.at(-1)!=="FILE")),this.componentTree=B6(K),this.flatComponentTree=D4(this.componentTree),this.root=J.root}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.hooks.onRequestEnd(J)}completeStream(J,Y){let K=(Z)=>{R5.error(Z?.message??'Error in "onStreamComplete" event handler',{err:JSON.stringify(Z)})};try{Promise.resolve(this.hooks.onStreamComplete(J,Y)).catch(K)}catch(Z){K(Z)}}modulePreloadLinks(J){let{clientEntry:Y,modulePreloadManifest:K,views:Z,routeKey:X}=J,Q=()=>{let $=new Set(Y?.preload??[]);for(let w of Z)for(let U of K?.[w]??[])$.add(U);return[...$].map((w)=>C5("link",{key:`modulepreload:${w}`,rel:"modulepreload",href:w}))};if(!K)return Q();let W=this.preloadCache.get(K);if(!W||W.clientEntry!==Y)W={clientEntry:Y,byRoute:new Map},this.preloadCache.set(K,W);let z=W.byRoute.get(X);if(!z)z=Q(),W.byRoute.set(X,z);return z}async render(J){let{req:Y,runInRequestScope:K,csrfTokenHMAC:Z,currentPathName:X,headers:Q,i18n:W,params:z,pathname:$,serverQueries:w,userAgent:U,noStream:H,url:V,user:A,viewData:O,breadcrumbs:B,urlLocaleSegment:M,meta:j,isOgRequest:N,appId:E}=J,I=$.replace(`/${M}`,""),F={kind:"view",data:{meta:j,pageData:{[I]:O},__csrf:Z.toString("base64"),prefetchedData:{},i18n:W,auth:{user:A},routeManifest:this.clientRouteManifest,breadcrumbs:B,router:{urlLocaleSegment:M,pathname:X,params:z,currentPath:$,searchParams:V.search,is404:!X?!0:!1},appId:E,componentTree:[["404",[]],...this.componentTree]},head:{}},q=this.root,T=this.routeManifest[X];return async(D)=>{let{bootstrapModules:R=[],loaders:y,getStyles:u,viewImportMap:i,cssManifest:p,ogMap:S,viewModules:v,clientEntry:C,modulePreloadManifest:m}=D,c=C?[]:R,a=(s)=>[s,`window.loaders=${y}`,...C?[`import(${JSON.stringify(C.module)}).catch(function(e){setTimeout(function(){throw e})})`]:[]].join(";");if(N){let s=null,Z0=null;for(let J0 of T??[])if(typeof S[J0]==="function")Z0=J0,s=S[J0];if(!s)return new Response("Not found",{status:404});let Q0=Object.values(F.data.pageData)[0];try{await P4(C5(s,Q0[Z0]),{onError:()=>{}})}catch(J0){let{fonts:A0,...E0}=J0.satoriOptions,K0=await Promise.all(A0.map((I0)=>{return g3(I0.name,I0.weight,I0.style).then((D0)=>({...I0,data:D0}))})),B0=new Headers(Q);B0.set("Content-Type","image/png");let C0=await cY(J0.jsx,{...E0,fonts:K0}),u0=await P3(Buffer.from(C0)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(u0),{headers:B0})}return new Response("data")}F.data.cssManifest=p,F.data.modulePreloadManifest=m??{};let n=this.modulePreloadLinks({clientEntry:C,modulePreloadManifest:m,views:T??["404"],routeKey:X??"404"}),f=await u(T);F.data.prefetchedData=w.snapshotResolved(),w.markRenderStart();let d=new AbortController,P=setTimeout(()=>d.abort(),v3),k=jK(U)||H,l=Bun.env.NODE_ENV!=="production"&&!k&&X&&this.shellReporter.shouldObserve(X)?qK():null,h=IK();try{let s=await P4(C5(S3,{children:[...n,...f,C5("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:k3}}),C5(q,{data:F.data,viewImportMap:i,viewModules:v,serverQueries:w,dictionarySink:h,key:"root"})]}),{bootstrapScriptContent:a(`window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:c,signal:d.signal,...k?{progressiveChunkSize:Number.MAX_SAFE_INTEGER}:{},onError(Z0){if(Bun.env.NODE_ENV!=="production")console.error(Z0)}});if(s.allReady.catch(()=>{}).finally(()=>clearTimeout(P)),k)await s.allReady.catch(()=>{});return new Response(C4(s,w,{onShell:k?void 0:()=>w.markShell(),onChunk:l?.onChunk,onClose:()=>K(()=>{if(this.completeStream(Y,w.summarize(d.signal.aborted)),l)this.shellReporter.report(X,l.measure())})},h),{status:!X?404:200,headers:Q})}catch(s){clearTimeout(P);let Z0=await P4(C5("div"),{bootstrapScriptContent:a(`window.error= ${JSON.stringify(s.message)}; window.stack_trace=${JSON.stringify(s.stack)};window.__GEMI_DATA__ = ${JSON.stringify(F.data)}`),bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...c]:c});return new Response(C4(Z0,w,{onClose:()=>K(()=>this.completeStream(Y,w.summarize(d.signal.aborted)))}),{status:!X?404:200,headers:Q})}}}async handleViewRequest(J){let Y=new URL(J.url),K=Y.pathname.endsWith(".json"),Z=Y.pathname.endsWith(".og"),X=Y.pathname.replace(".json","").replace(".og",""),[,Q,...W]=X.split("/"),z=`/${W.join("/")}`,$=null,w=null,U=X0(p0);if(!U.supportedLocales.includes(Q))z=X;else $=Q,w=Q;if(U.isLocaleAware&&!Z){let E=X0(p0).detectLocale(new G0(J,{},"view",z));if(w===null&&E!==U.defaultLocale){let I=Y.pathname==="/"?"":Y.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${E}${I}${Y.search}`}})}}z=z.replace("//","/");let V=[],A=[],O=null,B={},M=null,j=!1;try{let E=V6(this.flatViewRoutes,z);if(E){if(O=E.routePath,B=E.params,V=E.route.exec,A=E.route.middleware,j=A.includes("no-stream"),K&&this.partialRendering){let I=J.headers.get(I4),F=BK({flatViewRoutes:this.flatViewRoutes,supportedLocales:X0(p0).supportedLocales,from:I,origin:Y.origin,to:{segments:E.route.segments,params:B,search:Y.search}});if(F.startIndex>0)V=V.slice(F.startIndex),M={from:I,carriedViews:F.carriedViews}}}}catch(E){throw E}let N=new G0(J,B,"view",O);return this.hooks.onRequestStart(N),await U0.run(N,async()=>{let E=null,I=U0.getStore(),F=T5.getStore(),q=(R)=>T5.run(F,()=>U0.runWith(I,R));I.serverQueries=new O5(z8(J));let T=new Set;if(I.serverQueries.onQueryFail((R)=>{T.add(R.error);try{q(()=>Promise.resolve(this.hooks.onRequestFail(D,R.error)).catch(()=>{}))}catch{}}),w){let R=w.replaceAll("/","");B5.setLocale(R)}else B5.setLocale();let D=I.req;try{await X0(y5).runMiddleware(A);let R=X0(p0),y=R.isEnabled,u=R.isLocaleAware,i={};if(u){let P=null;if(w)P=w.replaceAll("/",""),I.setLocale(P);else P=R.detectLocale(new G0(J,D.params)),I.setLocale(P);let k=y?R.getPageTranslations(P,D.routePath):{};i={supportedLocales:R.supportedLocales,currentLocale:P,dictionary:{[P]:k},defaultLocale:R.defaultLocale}}await _K(i.currentLocale??"");let p=await Promise.all(V.map((P)=>P(D))),S=I.cookies,v=I.headers;E={data:p,cookies:S,headers:v,user:I.user,prefetchedData:I.serverQueries.snapshotResolved(),currentPathName:D.routePath,params:D.params,urlLocaleSegment:$,meta:I.renderMeta(),appId:X0(R4).id};let{params:C,currentPathName:m,user:c}=E,a={},n={};for(let P of p??[]){let[k,l]=Object.entries(P)?.[0]??[];if(!k||!l)continue;n[`${k}:${m}`]=l.breadcrumb,a[k]=l}let f=a.FILE;if(f){for(let P of S)v.append("Set-Cookie",P.toString());try{await this.onRequestEnd(D)}catch(P){R5.error(P?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(P)})}return await FK(f,v)}if(K){v.set("Content-Type","application/x-ndjson; charset=utf-8"),v.append("Vary",I4),S.forEach((k)=>v.append("Set-Cookie",k.toString())),await this.hooks.onRequestEnd(D);let P={meta:M&&!I.metadata.touched?null:E.meta,data:{[z]:a},breadcrumbs:n,prefetchedData:I.serverQueries.snapshotResolved(),i18n:i,is404:!m,appId:E.appId,partial:M};return new Response(EK(P,I.serverQueries,void 0,({aborted:k})=>q(()=>this.completeStream(D,I.serverQueries.summarize(k)))),{headers:v})}if(v.set("Content-Type","text/html; charset=utf-8"),!j)v.append("Vary","User-Agent");for(let P of S)v.append("Set-Cookie",P.toString());let d=Bun.CSRF.generate(process.env.SECRET);v.append("Set-Cookie",`csrf_token=${d}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(D)}catch(P){R5.error(P?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(P)})}return await this.render({req:D,runInRequestScope:q,csrfTokenHMAC:Buffer.from(""),currentPathName:m,headers:v,i18n:i,params:C,pathname:Y.pathname,serverQueries:I.serverQueries,userAgent:J.headers.get("user-agent"),noStream:j,url:Y,user:c,viewData:a,breadcrumbs:n,urlLocaleSegment:$,meta:E.meta,appId:E.appId,isOgRequest:Z})}catch(R){if(R.kind===$8)if(K){let{status:y=400,data:u,directive:i,headers:p}=R.payload.api;return new Response(JSON.stringify({data:u,directive:i}),{headers:p,status:y})}else{let{status:y=400,error:u}=R.payload.view;return new Response(u?.message,{...R.payload.view,status:y})}if(!T.has(R))this.hooks.onRequestFail(D,R);throw R}})}}class DK extends j1{routes={"/api-routes":this.get(()=>{let J=X0(O6).flatRoutes,Y=[];for(let[K,Z]of Object.entries(J))for(let[X,Q]of Object.entries(Z)){let{exec:W,middleware:z}=Q;Y.push({path:K,method:X,middleware:z})}return Y}),"/view-routes":this.get(()=>{let J=X0(v4).flatViewRoutes,Y=[];for(let[K,{middleware:Z,viewPath:X}]of Object.entries(J))Y.push({path:K,method:"GET",viewPath:X,middleware:Z});return Y})}}class O6{static token="router.api";flatRoutes={};onRequestStart;onRequestEnd;onRequestFail;constructor(J){let Y=e4();this.onRequestStart=J.onRequestStart??Y.onRequestStart,this.onRequestEnd=J.onRequestEnd??Y.onRequestEnd,this.onRequestFail=J.onRequestFail??Y.onRequestFail,this.flatRoutes=g6({"/":J.rootRouter,"/auth":D6,"/__gemi__/services/i18n":R6,"/__gemi__/services/logs":k6,"/__gemi__/services/image":P6,"/__gemi__/debug":DK})}getRouteHandlerAndParams(J){let K=new URL(J.url).pathname.replace("/api",""),Z={},X;for(let[Q]of Object.entries(this.flatRoutes))try{let W=new URLPattern({pathname:Q});if(W.test({pathname:K})){X=Q,Z=W.exec({pathname:K})?.pathname.groups;break}}catch(W){console.error(W)}return{params:Z,path:X}}async runRouteMiddleware(J,Y){let Z=this.flatRoutes[J][Y.rawRequest.method].middleware;try{await X0(y5).runMiddleware(Z)}catch(X){if(X.kind===$8){if(Y.rawRequest.url.includes("/api")){let{status:Q=400,data:W,headers:z}=X.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...z}})}}else throw this.onRequestFail(Y,X),console.error(X),X}}async getRouteData(J){let Y=this.flatRoutes[J],K=U0.getStore(),Z=Y[K.req.rawRequest.method].exec??(()=>Promise.resolve({})),X={};try{X=await Z()}catch(Q){if(Q.kind===$8){let{status:W=400,data:z,headers:$}=Q.payload.api;return new Response(JSON.stringify(z),{status:W,headers:{"Content-Type":"application/json",...$}})}throw this.onRequestFail(K.req,Q),console.error(Q),Q}return X}mergeContextIntoResponse(J,Y,K){let Z=[];Y?.forEach((W,z)=>Z.push([z,W]));let X=[...typeof Y?.getSetCookie==="function"?Y.getSetCookie():[],...Array.from(K??[])];if(Z.length===0&&X.length===0)return J;let Q=(W)=>{for(let[z,$]of Z){if(z.toLowerCase()==="set-cookie")continue;if(!W.has(z))W.set(z,$)}for(let z of X)W.append("Set-Cookie",z)};try{return Q(J.headers),J}catch{let W=new Headers(J.headers);return Q(W),new Response(J.body,{status:J.status,statusText:J.statusText,headers:W})}}async handleApiRequest(J){let{params:Y,path:K}=this.getRouteHandlerAndParams(J),Z=this.flatRoutes[K];if(!Z||!Z[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let X=new G0(J,Y,"api",K);if(!J.url.includes("/__gemi__"))this.onRequestStart(X);return await U0.run(X,async()=>{let Q=U0.getStore(),W=X0(p0);if(W.isEnabled){let H=W.detectLocale(X);Q.setLocale(H)}Q.setRequest(X);let z=await this.runRouteMiddleware(K,X);if(z instanceof Response)return z;let $=await this.getRouteData(K),w=Q.headers,U=Q.cookies;if($ instanceof Response){let H=this.mergeContextIntoResponse($,w,U);if(!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),H}if(w.set("Content-Type","application/json"),U.forEach((H)=>w.append("Set-Cookie",H.toString())),!J.url.includes("/__gemi__"))this.onRequestEnd(X);return Q.destroy(),new Response(JSON.stringify($),{headers:w})})}}function z8(J){let Y=T5.getStore();return(K,Z,X)=>{let Q=new URL(J.url).origin,W=[i0(K,Z),X.toString()].filter((w)=>w.length>0).join("?"),z=new Request(`${Q}/${W}`,{headers:J.headers}),$=new G0(z,Z);return T5.run(Y,()=>U0.run($,async()=>{try{let w=await X0(O6).getRouteData(K);if(w instanceof Response){let U=await w.json().catch(()=>null);if(!w.ok)throw new v5(i0(K,Z),X.toString(),w.status,U);return U}return w}catch(w){if(w instanceof v5)throw w;let U=new v5(i0(K,Z),X.toString(),500,{message:w instanceof Error?w.message:String(w)});throw U.cause=w,U}}))}}class M6{static ensure(J,Y={}){let K=U0.getStore();if(K.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");return K.serverQueries??=new O5(z8(K.req.rawRequest)),K.serverQueries.ensure(J,Y,"prefetch")}static async instant(J,...Y){let K=M6.ensure(J,Y[0]);if(await K.promise,K.status==="rejected")throw K.error;return K.data}static prefetch(J,...Y){M6.ensure(J,Y[0])}static noPrefetch(){let J=U0.getStore();if(J.req.kind==="api")throw Error("Query.noPrefetch() cannot be called from an API request");J.serverQueries??=new O5(z8(J.req.rawRequest)),J.serverQueries.muteDiscoveryHints()}}class RK{static absolute(J,...Y){return`${process.env.HOST_NAME}${i0(String(J),Y[0]??{})}`}static relative(J,...Y){return i0(String(J),Y[0]??{})}}class CK{name="Meta";static description(J){U0.getStore().metadata.description(J)}static title(J){U0.getStore().metadata.title(J)}static openGraph(J){U0.getStore().metadata.openGraph(J)}}var h3={set(J,Y,K){U0.getStore().setCookie(J,Y,K)},setIfAbsent(J,Y,K){if(U0.getStore().req.cookies.has(J))return!1;return U0.getStore().setCookie(J,Y,K),!0},delete(J){U0.getStore().deleteCookie(J)}};var{RedisClient:x3}=globalThis.Bun;class k4{config;static token="redis";client;constructor(J={}){this.config=J;this.client=new x3(J.url,J.options)}}class g1 extends k0{static getFacadeAccessor(){return k4}static get client(){return this.getFacadeRoot().client}static get(J){return g1.client.get(J)}static set(J,Y){return g1.client.set(J,Y)}static del(...J){return g1.client.del(...J)}static exists(J){return g1.client.exists(J)}static incr(J){return g1.client.incr(J)}static expire(J,Y){return g1.client.expire(J,Y)}static ttl(J){return g1.client.ttl(J)}}class PK extends k0{static getFacadeAccessor(){return TK}static consume(J,Y={}){return this.getFacadeRoot().consume(J,Y)}}class L6{bound;constructor(J){this.bound=J}get name(){return this.bound??g4()}get sql(){return this.connection().sql}get dialect(){return this.connection().dialect}async query(J){return await this.run(J,"query")}async execute(J){let Y=await this.run(J,"execute");return Number(Y?.count??0)}async transaction(J){let Y=this.name,K=this.connection(Y);return gK(K.sql,(Z)=>vK(Y,()=>J(Z)),{slowTransactionThreshold:K.config.slowTransactionThreshold,connection:Y})}run(J,Y){let K=this.connection(),{text:Z,values:X}=hK(J,yK(K.dialect),Y);return(this.handle()??K.sql).unsafe(Z,X)}handle(){let J=SK();if(J===void 0)return;return g4()===this.name?J:void 0}connection(J=this.name){return kK(J),X0(y4).connection(J)}}var w8=new L6;class xK extends k0{static getFacadeAccessor(){return y4}static connection(J){return new L6(J)}static get sql(){return w8.sql}static get dialect(){return w8.dialect}static query(J){return w8.query(J)}static execute(J){return w8.execute(J)}static transaction(J){return w8.transaction(J)}static close(){return this.getFacadeRoot().close()}}export{k0 as Mb,j6 as Nb,A8 as Ob,f1 as Pb,B5 as Qb,N6 as Rb,q6 as Sb,UA as Tb,u4 as Ub,E6 as Vb,c4 as Wb,C6 as Xb,T6 as Yb,oA as Zb,s4 as _b,a4 as $b,g5 as ac,y5 as bc,HB as cc,e4 as dc,J7 as ec,_4 as fc,R5 as gc,R4 as hc,S4 as ic,v4 as jc,O6 as kc,M6 as lc,RK as mc,CK as nc,h3 as oc,k4 as pc,g1 as qc,PK as rc,L6 as sc,xK as tc};
|
|
80
80
|
|
|
81
|
-
//# debugId=
|
|
81
|
+
//# debugId=EF1F9716CCA3E9F364756E2164756E21
|