gemi 0.42.2 → 0.44.0

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.
Files changed (150) hide show
  1. package/dist/app/index.js +1 -1
  2. package/dist/bin/gemi.js +392 -70
  3. package/dist/bin/gemi.js.map +15 -12
  4. package/dist/broadcasting/index.js +1 -1
  5. package/dist/bun/plugin.js +1 -1
  6. package/dist/bun/preload.js +1 -1
  7. package/dist/{chunk-522q81af.js → chunk-20376aj6.js} +3 -3
  8. package/dist/{chunk-522q81af.js.map → chunk-20376aj6.js.map} +1 -1
  9. package/dist/{chunk-wa84ybnt.js → chunk-25d4feyv.js} +22 -22
  10. package/dist/{chunk-wa84ybnt.js.map → chunk-25d4feyv.js.map} +8 -6
  11. package/dist/{chunk-qyn10pv7.js → chunk-32ct42e2.js} +1 -1
  12. package/dist/{chunk-cx38xsyf.js → chunk-3xqyzegw.js} +2 -2
  13. package/dist/{chunk-cx38xsyf.js.map → chunk-3xqyzegw.js.map} +1 -1
  14. package/dist/{chunk-358x9aca.js → chunk-5kx4hw7c.js} +2 -2
  15. package/dist/{chunk-358x9aca.js.map → chunk-5kx4hw7c.js.map} +1 -1
  16. package/dist/{chunk-cwq1vdcb.js → chunk-6gtmkbh0.js} +2 -2
  17. package/dist/{chunk-cwq1vdcb.js.map → chunk-6gtmkbh0.js.map} +1 -1
  18. package/dist/chunk-7yrykpak.js +6 -0
  19. package/dist/{chunk-m1t1f3s5.js.map → chunk-7yrykpak.js.map} +2 -2
  20. package/dist/{chunk-z9vdcpqr.js → chunk-87keq057.js} +2 -2
  21. package/dist/{chunk-z9vdcpqr.js.map → chunk-87keq057.js.map} +1 -1
  22. package/dist/{chunk-ayjtdck4.js → chunk-8b461343.js} +2 -2
  23. package/dist/{chunk-ayjtdck4.js.map → chunk-8b461343.js.map} +1 -1
  24. package/dist/{chunk-0pjn1a5d.js → chunk-9cw39se2.js} +2 -2
  25. package/dist/{chunk-0pjn1a5d.js.map → chunk-9cw39se2.js.map} +1 -1
  26. package/dist/{chunk-b3qebxqh.js → chunk-9r2k5ykk.js} +2 -2
  27. package/dist/{chunk-b3qebxqh.js.map → chunk-9r2k5ykk.js.map} +1 -1
  28. package/dist/{chunk-8cqkdzyh.js → chunk-9s3te5pa.js} +3 -3
  29. package/dist/{chunk-8cqkdzyh.js.map → chunk-9s3te5pa.js.map} +1 -1
  30. package/dist/{chunk-9byxbqnn.js → chunk-bsfbba90.js} +2 -2
  31. package/dist/{chunk-9byxbqnn.js.map → chunk-bsfbba90.js.map} +1 -1
  32. package/dist/{chunk-8mgsjrcc.js → chunk-cbvq4keh.js} +2 -2
  33. package/dist/{chunk-8mgsjrcc.js.map → chunk-cbvq4keh.js.map} +1 -1
  34. package/dist/{chunk-xpk460d1.js → chunk-drbqadx7.js} +1 -1
  35. package/dist/{chunk-akbepc3f.js → chunk-errq965d.js} +3 -3
  36. package/dist/{chunk-akbepc3f.js.map → chunk-errq965d.js.map} +1 -1
  37. package/dist/chunk-fk9xtngd.js +4 -0
  38. package/dist/chunk-fk9xtngd.js.map +33 -0
  39. package/dist/{chunk-ratbccpg.js → chunk-fvtfwssb.js} +2 -2
  40. package/dist/{chunk-ratbccpg.js.map → chunk-fvtfwssb.js.map} +1 -1
  41. package/dist/{chunk-shpca068.js → chunk-gv4v6qsg.js} +2 -2
  42. package/dist/{chunk-shpca068.js.map → chunk-gv4v6qsg.js.map} +1 -1
  43. package/dist/{chunk-pygcsw1f.js → chunk-h509r9s3.js} +2 -2
  44. package/dist/{chunk-pygcsw1f.js.map → chunk-h509r9s3.js.map} +1 -1
  45. package/dist/{chunk-pfaq2mer.js → chunk-jvcbdxtq.js} +2 -2
  46. package/dist/{chunk-pfaq2mer.js.map → chunk-jvcbdxtq.js.map} +1 -1
  47. package/dist/{chunk-1kmbs8cd.js → chunk-kkdtznm5.js} +2 -2
  48. package/dist/{chunk-1kmbs8cd.js.map → chunk-kkdtznm5.js.map} +1 -1
  49. package/dist/{chunk-qeq8hv3t.js → chunk-knrx23te.js} +2 -2
  50. package/dist/{chunk-qeq8hv3t.js.map → chunk-knrx23te.js.map} +1 -1
  51. package/dist/{chunk-gsvzrj5r.js → chunk-m359awjw.js} +2 -2
  52. package/dist/{chunk-gsvzrj5r.js.map → chunk-m359awjw.js.map} +1 -1
  53. package/dist/{chunk-rrwtgt86.js → chunk-mfwbdztp.js} +2 -2
  54. package/dist/{chunk-rrwtgt86.js.map → chunk-mfwbdztp.js.map} +1 -1
  55. package/dist/{chunk-54wqarj8.js → chunk-nfsdbjr5.js} +1 -1
  56. package/dist/{chunk-syaxsp9y.js → chunk-ngnrytfh.js} +2 -2
  57. package/dist/{chunk-syaxsp9y.js.map → chunk-ngnrytfh.js.map} +1 -1
  58. package/dist/{chunk-pr3pvtmh.js → chunk-nhyc69tx.js} +2 -2
  59. package/dist/{chunk-pr3pvtmh.js.map → chunk-nhyc69tx.js.map} +1 -1
  60. package/dist/{chunk-pxcv9ccp.js → chunk-nx8t65g3.js} +2 -2
  61. package/dist/{chunk-pxcv9ccp.js.map → chunk-nx8t65g3.js.map} +1 -1
  62. package/dist/chunk-q8haepmm.js +79 -0
  63. package/dist/{chunk-pjgfvdr6.js.map → chunk-q8haepmm.js.map} +5 -5
  64. package/dist/{chunk-v3agzap3.js → chunk-q9z58372.js} +1 -1
  65. package/dist/{chunk-hzw2y2rz.js → chunk-qy3aczt9.js} +2 -2
  66. package/dist/{chunk-hzw2y2rz.js.map → chunk-qy3aczt9.js.map} +1 -1
  67. package/dist/{chunk-zaa3yt2w.js → chunk-s49529x2.js} +2 -2
  68. package/dist/{chunk-zaa3yt2w.js.map → chunk-s49529x2.js.map} +1 -1
  69. package/dist/{chunk-qzemjynx.js → chunk-sdj112nj.js} +2 -2
  70. package/dist/{chunk-qzemjynx.js.map → chunk-sdj112nj.js.map} +1 -1
  71. package/dist/{chunk-bfnh3gwv.js → chunk-sdx8r2qb.js} +2 -2
  72. package/dist/{chunk-bfnh3gwv.js.map → chunk-sdx8r2qb.js.map} +1 -1
  73. package/dist/chunk-tatd75jn.js +5 -0
  74. package/dist/{chunk-tb8yy4rf.js.map → chunk-tatd75jn.js.map} +1 -1
  75. package/dist/{chunk-sbmg0hfr.js → chunk-ty3q916e.js} +3 -3
  76. package/dist/{chunk-sbmg0hfr.js.map → chunk-ty3q916e.js.map} +1 -1
  77. package/dist/{chunk-22pr1w8v.js → chunk-w7czqgx2.js} +2 -2
  78. package/dist/{chunk-22pr1w8v.js.map → chunk-w7czqgx2.js.map} +1 -1
  79. package/dist/chunk-whj1a3vr.js +5 -0
  80. package/dist/chunk-whj1a3vr.js.map +15 -0
  81. package/dist/{chunk-n78kxce1.js → chunk-wrp2v923.js} +2 -2
  82. package/dist/{chunk-n78kxce1.js.map → chunk-wrp2v923.js.map} +1 -1
  83. package/dist/{chunk-x3vy6dbw.js → chunk-x2cq1qp8.js} +2 -2
  84. package/dist/{chunk-x3vy6dbw.js.map → chunk-x2cq1qp8.js.map} +1 -1
  85. package/dist/{chunk-q0y425d3.js → chunk-ytr22fm4.js} +2 -2
  86. package/dist/{chunk-q0y425d3.js.map → chunk-ytr22fm4.js.map} +1 -1
  87. package/dist/{chunk-81yxskss.js → chunk-ywhazhqt.js} +2 -2
  88. package/dist/{chunk-81yxskss.js.map → chunk-ywhazhqt.js.map} +1 -1
  89. package/dist/config/index.js +1 -1
  90. package/dist/email/index.js +2 -2
  91. package/dist/email/index.js.map +1 -1
  92. package/dist/facades/FileStorage.d.ts +14 -1
  93. package/dist/facades/FileStorage.d.ts.map +1 -1
  94. package/dist/facades/index.js +2 -2
  95. package/dist/facades/index.js.map +1 -1
  96. package/dist/http/ApiRouter.d.ts +52 -1
  97. package/dist/http/ApiRouter.d.ts.map +1 -1
  98. package/dist/http/ApiRouter.test-d.d.ts +2 -0
  99. package/dist/http/ApiRouter.test-d.d.ts.map +1 -0
  100. package/dist/http/HttpRequest.d.ts +7 -0
  101. package/dist/http/HttpRequest.d.ts.map +1 -1
  102. package/dist/http/ViewRouter.d.ts.map +1 -1
  103. package/dist/http/contentDisposition.d.ts +9 -0
  104. package/dist/http/contentDisposition.d.ts.map +1 -0
  105. package/dist/http/createStreamResponse.d.ts +38 -0
  106. package/dist/http/createStreamResponse.d.ts.map +1 -0
  107. package/dist/http/errors.d.ts +16 -0
  108. package/dist/http/errors.d.ts.map +1 -1
  109. package/dist/http/index.d.ts +3 -1
  110. package/dist/http/index.d.ts.map +1 -1
  111. package/dist/http/index.js +2 -2
  112. package/dist/http/index.js.map +1 -1
  113. package/dist/http/range.d.ts +63 -0
  114. package/dist/http/range.d.ts.map +1 -0
  115. package/dist/http/requestContext.d.ts +11 -0
  116. package/dist/http/requestContext.d.ts.map +1 -1
  117. package/dist/i18n/index.js +1 -1
  118. package/dist/kernel/index.js +2 -2
  119. package/dist/kernel/index.js.map +1 -1
  120. package/dist/server/index.js +2 -2
  121. package/dist/server/index.js.map +1 -1
  122. package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts +78 -0
  123. package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts.map +1 -0
  124. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts +17 -1
  125. package/dist/services/file-storage/drivers/FileStorageDriver.d.ts.map +1 -1
  126. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts +3 -1
  127. package/dist/services/file-storage/drivers/FileSystemDriver.d.ts.map +1 -1
  128. package/dist/services/file-storage/drivers/S3Driver.d.ts +3 -1
  129. package/dist/services/file-storage/drivers/S3Driver.d.ts.map +1 -1
  130. package/dist/services/file-storage/drivers/types.d.ts +45 -0
  131. package/dist/services/file-storage/drivers/types.d.ts.map +1 -1
  132. package/dist/services/index.d.ts +4 -1
  133. package/dist/services/index.d.ts.map +1 -1
  134. package/dist/services/index.js +2 -2
  135. package/dist/services/index.js.map +1 -1
  136. package/dist/services/router/ApiRouterServiceContainer.d.ts +5 -0
  137. package/dist/services/router/ApiRouterServiceContainer.d.ts.map +1 -1
  138. package/dist/services/router/createFlatApiRoutes.d.ts.map +1 -1
  139. package/package.json +7 -1
  140. package/dist/chunk-m1t1f3s5.js +0 -6
  141. package/dist/chunk-n1xpxhm0.js +0 -5
  142. package/dist/chunk-n1xpxhm0.js.map +0 -13
  143. package/dist/chunk-pjgfvdr6.js +0 -79
  144. package/dist/chunk-tb8yy4rf.js +0 -5
  145. package/dist/chunk-yeqwzeq7.js +0 -4
  146. package/dist/chunk-yeqwzeq7.js.map +0 -32
  147. /package/dist/{chunk-qyn10pv7.js.map → chunk-32ct42e2.js.map} +0 -0
  148. /package/dist/{chunk-xpk460d1.js.map → chunk-drbqadx7.js.map} +0 -0
  149. /package/dist/{chunk-54wqarj8.js.map → chunk-nfsdbjr5.js.map} +0 -0
  150. /package/dist/{chunk-v3agzap3.js.map → chunk-q9z58372.js.map} +0 -0
@@ -1,79 +0,0 @@
1
- // @bun
2
- import{$ as W8,O as j9,Q as C9,R as O0,S as e0,T as $0,U as L1,V as mw,W as U6,_ as F9,aa as L9,ba as C5,ca as j0}from"./chunk-yeqwzeq7.js";import{la as P0}from"./chunk-sbmg0hfr.js";import{Lb as X8,Nb as a1,Pb as E9}from"./chunk-n1xpxhm0.js";import{Rb as y0}from"./chunk-bfnh3gwv.js";import{Sb as W1,Tb as k0,Vb as eW}from"./chunk-cwq1vdcb.js";var m9=k0((DV,f9)=>{var E6=0,y9=-3;function S5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function YY(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new S5,this.dtree=new S5}var h9=new S5,k9=new S5,F6=new Uint8Array(30),R6=new Uint16Array(30),g9=new Uint8Array(30),x9=new Uint16Array(30),XY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),P9=new S5,q1=new Uint8Array(320);function b9(J,K,w,Y){var X,Z;for(X=0;X<w;++X)J[X]=0;for(X=0;X<30-w;++X)J[X+w]=X/w|0;for(Z=Y,X=0;X<30;++X)K[X]=Z,Z+=1<<J[X]}function ZY(J,K){var w;for(w=0;w<7;++w)J.table[w]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(w=0;w<24;++w)J.trans[w]=256+w;for(w=0;w<144;++w)J.trans[24+w]=w;for(w=0;w<8;++w)J.trans[168+w]=280+w;for(w=0;w<112;++w)J.trans[176+w]=144+w;for(w=0;w<5;++w)K.table[w]=0;K.table[5]=32;for(w=0;w<32;++w)K.trans[w]=w}var S9=new Uint16Array(16);function N6(J,K,w,Y){var X,Z;for(X=0;X<16;++X)J.table[X]=0;for(X=0;X<Y;++X)J.table[K[w+X]]++;J.table[0]=0;for(Z=0,X=0;X<16;++X)S9[X]=Z,Z+=J.table[X];for(X=0;X<Y;++X)if(K[w+X])J.trans[S9[K[w+X]]++]=X}function QY(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function N1(J,K,w){if(!K)return w;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,Y+w}function j6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var w=0,Y=0,X=0,Z=J.tag;do Y=2*Y+(Z&1),Z>>>=1,++X,w+=K.table[X],Y-=K.table[X];while(Y>=0);return J.tag=Z,J.bitcount-=X,K.trans[w+Y]}function HY(J,K,w){var Y,X,Z,Q,W,H;Y=N1(J,5,257),X=N1(J,5,1),Z=N1(J,4,4);for(Q=0;Q<19;++Q)q1[Q]=0;for(Q=0;Q<Z;++Q){var $=N1(J,3,0);q1[XY[Q]]=$}N6(P9,q1,0,19);for(W=0;W<Y+X;){var z=j6(J,P9);switch(z){case 16:var U=q1[W-1];for(H=N1(J,2,3);H;--H)q1[W++]=U;break;case 17:for(H=N1(J,3,3);H;--H)q1[W++]=0;break;case 18:for(H=N1(J,7,11);H;--H)q1[W++]=0;break;default:q1[W++]=z;break}}N6(K,q1,0,Y),N6(w,q1,Y,X)}function v9(J,K,w){while(!0){var Y=j6(J,K);if(Y===256)return E6;if(Y<256)J.dest[J.destLen++]=Y;else{var X,Z,Q,W;Y-=257,X=N1(J,F6[Y],R6[Y]),Z=j6(J,w),Q=J.destLen-N1(J,g9[Z],x9[Z]);for(W=Q;W<Q+X;++W)J.dest[J.destLen++]=J.dest[W]}}}function WY(J){var K,w,Y;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],w=J.source[J.sourceIndex+3],w=256*w+J.source[J.sourceIndex+2],K!==(~w&65535))return y9;J.sourceIndex+=4;for(Y=K;Y;--Y)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,E6}function $Y(J,K){var w=new YY(J,K),Y,X,Z;do{switch(Y=QY(w),X=N1(w,2,0),X){case 0:Z=WY(w);break;case 1:Z=v9(w,h9,k9);break;case 2:HY(w,w.ltree,w.dtree),Z=v9(w,w.ltree,w.dtree);break;default:Z=y9}if(Z!==E6)throw Error("Data error")}while(!Y);if(w.destLen<w.dest.length)if(typeof w.dest.slice==="function")return w.dest.slice(0,w.destLen);else return w.dest.subarray(0,w.destLen);return w.dest}ZY(h9,k9);b9(F6,R6,4,3);b9(g9,x9,2,1);F6[28]=0;R6[28]=258;f9.exports=$Y});var c9=k0((IV,l9)=>{var zY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,d9=(J,K,w)=>{let Y=J[K];J[K]=J[w],J[w]=Y},UY=(J)=>{let K=J.length;for(let w=0;w<K;w+=4)d9(J,w,w+3),d9(J,w+1,w+2)},AY=(J)=>{if(zY)UY(J)};l9.exports={swap32LE:AY}});var r9=k0((TV,i9)=>{var u9=m9(),{swap32LE:VY}=c9();class p9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let w;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),w=J.readUInt32LE(8),J=J.slice(12);else{let Y=new DataView(J.buffer);this.highStart=Y.getUint32(0,!0),this.errorValue=Y.getUint32(4,!0),w=Y.getUint32(8,!0),J=J.subarray(12)}J=u9(J,new Uint8Array(w)),J=u9(J,new Uint8Array(w)),VY(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}i9.exports=p9});var n9=k0(($8)=>{var BY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,w=43,Y=47,X=48,Z=97,Q=65,W=45,H=95;function $(A){var V=A.charCodeAt(0);if(V===w||V===W)return 62;if(V===Y||V===H)return 63;if(V<X)return-1;if(V<X+10)return V-X+26+26;if(V<Q+26)return V-Q;if(V<Z+26)return V-Z+26}function z(A){var V,O,B,M,q,N;if(A.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=A.length;q=A.charAt(E-2)==="="?2:A.charAt(E-1)==="="?1:0,N=new K(A.length*3/4-q),B=q>0?A.length-4:A.length;var _=0;function F(j){N[_++]=j}for(V=0,O=0;V<B;V+=4,O+=3)M=$(A.charAt(V))<<18|$(A.charAt(V+1))<<12|$(A.charAt(V+2))<<6|$(A.charAt(V+3)),F((M&16711680)>>16),F((M&65280)>>8),F(M&255);if(q===2)M=$(A.charAt(V))<<2|$(A.charAt(V+1))>>4,F(M&255);else if(q===1)M=$(A.charAt(V))<<10|$(A.charAt(V+1))<<4|$(A.charAt(V+2))>>2,F(M>>8&255),F(M&255);return N}function U(A){var V,O=A.length%3,B="",M,q;function N(_){return BY.charAt(_)}function E(_){return N(_>>18&63)+N(_>>12&63)+N(_>>6&63)+N(_&63)}for(V=0,q=A.length-O;V<q;V+=3)M=(A[V]<<16)+(A[V+1]<<8)+A[V+2],B+=E(M);switch(O){case 1:M=A[A.length-1],B+=N(M>>2),B+=N(M<<4&63),B+="==";break;case 2:M=(A[A.length-2]<<8)+A[A.length-1],B+=N(M>>10),B+=N(M>>4&63),B+=N(M<<2&63),B+="=";break}return B}J.toByteArray=z,J.fromByteArray=U})(typeof $8>"u"?$8.base64js={}:$8)});var Q7=k0((SV,Z7)=>{var T6=40,C6=41,A8=39,P6=34,S6=92,M5=47,v6=44,y6=58,V8=42,TY=117,CY=85,PY=43,SY=/^[a-f0-9?-]+$/i;Z7.exports=function(J){var K=[],w=J,Y,X,Z,Q,W,H,$,z,U=0,A=w.charCodeAt(U),V=w.length,O=[{nodes:K}],B=0,M,q="",N="",E="";while(U<V)if(A<=32){Y=U;do Y+=1,A=w.charCodeAt(Y);while(A<=32);if(Q=w.slice(U,Y),Z=K[K.length-1],A===C6&&B)E=Q;else if(Z&&Z.type==="div")Z.after=Q,Z.sourceEndIndex+=Q.length;else if(A===v6||A===y6||A===M5&&w.charCodeAt(Y+1)!==V8&&(!M||M&&M.type==="function"&&M.value!=="calc"))N=Q;else K.push({type:"space",sourceIndex:U,sourceEndIndex:Y,value:Q});U=Y}else if(A===A8||A===P6){Y=U,X=A===A8?"'":'"',Q={type:"string",sourceIndex:U,quote:X};do if(W=!1,Y=w.indexOf(X,Y+1),~Y){H=Y;while(w.charCodeAt(H-1)===S6)H-=1,W=!W}else w+=X,Y=w.length-1,Q.unclosed=!0;while(W);Q.value=w.slice(U+1,Y),Q.sourceEndIndex=Q.unclosed?Y:Y+1,K.push(Q),U=Y+1,A=w.charCodeAt(U)}else if(A===M5&&w.charCodeAt(U+1)===V8){if(Y=w.indexOf("*/",U),Q={type:"comment",sourceIndex:U,sourceEndIndex:Y+2},Y===-1)Q.unclosed=!0,Y=w.length,Q.sourceEndIndex=Y;Q.value=w.slice(U+2,Y),K.push(Q),U=Y+2,A=w.charCodeAt(U)}else if((A===M5||A===V8)&&M&&M.type==="function"&&M.value==="calc")Q=w[U],K.push({type:"word",sourceIndex:U-N.length,sourceEndIndex:U+Q.length,value:Q}),U+=1,A=w.charCodeAt(U);else if(A===M5||A===v6||A===y6)Q=w[U],K.push({type:"div",sourceIndex:U-N.length,sourceEndIndex:U+Q.length,value:Q,before:N,after:""}),N="",U+=1,A=w.charCodeAt(U);else if(T6===A){Y=U;do Y+=1,A=w.charCodeAt(Y);while(A<=32);if(z=U,Q={type:"function",sourceIndex:U-q.length,value:q,before:w.slice(z+1,Y)},U=Y,q==="url"&&A!==A8&&A!==P6){Y-=1;do if(W=!1,Y=w.indexOf(")",Y+1),~Y){H=Y;while(w.charCodeAt(H-1)===S6)H-=1,W=!W}else w+=")",Y=w.length-1,Q.unclosed=!0;while(W);$=Y;do $-=1,A=w.charCodeAt($);while(A<=32);if(z<$){if(U!==$+1)Q.nodes=[{type:"word",sourceIndex:U,sourceEndIndex:$+1,value:w.slice(U,$+1)}];else Q.nodes=[];if(Q.unclosed&&$+1!==Y)Q.after="",Q.nodes.push({type:"space",sourceIndex:$+1,sourceEndIndex:Y,value:w.slice($+1,Y)});else Q.after=w.slice($+1,Y),Q.sourceEndIndex=Y}else Q.after="",Q.nodes=[];U=Y+1,Q.sourceEndIndex=Q.unclosed?Y:U,A=w.charCodeAt(U),K.push(Q)}else B+=1,Q.after="",Q.sourceEndIndex=U+1,K.push(Q),O.push(Q),K=Q.nodes=[],M=Q;q=""}else if(C6===A&&B)U+=1,A=w.charCodeAt(U),M.after=E,M.sourceEndIndex+=E.length,E="",B-=1,O[O.length-1].sourceEndIndex=U,O.pop(),M=O[B],K=M.nodes;else{Y=U;do{if(A===S6)Y+=1;Y+=1,A=w.charCodeAt(Y)}while(Y<V&&!(A<=32||A===A8||A===P6||A===v6||A===y6||A===M5||A===T6||A===V8&&M&&M.type==="function"&&M.value==="calc"||A===M5&&M.type==="function"&&M.value==="calc"||A===C6&&B));if(Q=w.slice(U,Y),T6===A)q=Q;else if((TY===Q.charCodeAt(0)||CY===Q.charCodeAt(0))&&PY===Q.charCodeAt(1)&&SY.test(Q.slice(2)))K.push({type:"unicode-range",sourceIndex:U,sourceEndIndex:Y,value:Q});else K.push({type:"word",sourceIndex:U,sourceEndIndex:Y,value:Q});U=Y}for(U=O.length-1;U;U-=1)O[U].unclosed=!0,O[U].sourceEndIndex=w.length;return O[0].nodes}});var W7=k0((vV,H7)=>{H7.exports=function J(K,w,Y){var X,Z,Q,W;for(X=0,Z=K.length;X<Z;X+=1){if(Q=K[X],!Y)W=w(Q,X,K);if(W!==!1&&Q.type==="function"&&Array.isArray(Q.nodes))J(Q.nodes,w,Y);if(Y)w(Q,X,K)}}});var A7=k0((yV,U7)=>{function $7(J,K){var{type:w,value:Y}=J,X,Z;if(K&&(Z=K(J))!==void 0)return Z;else if(w==="word"||w==="space")return Y;else if(w==="string")return X=J.quote||"",X+Y+(J.unclosed?"":X);else if(w==="comment")return"/*"+Y+(J.unclosed?"":"*/");else if(w==="div")return(J.before||"")+Y+(J.after||"");else if(Array.isArray(J.nodes)){if(X=z7(J.nodes,K),w!=="function")return X;return Y+"("+(J.before||"")+X+(J.after||"")+(J.unclosed?"":")")}return Y}function z7(J,K){var w,Y;if(Array.isArray(J)){w="";for(Y=J.length-1;~Y;Y-=1)w=$7(J[Y],K)+w;return w}return $7(J,K)}U7.exports=z7});var B7=k0((hV,V7)=>{var B8=45,G8=43,h6=46,vY=101,yY=69;function hY(J){var K=J.charCodeAt(0),w;if(K===G8||K===B8){if(w=J.charCodeAt(1),w>=48&&w<=57)return!0;var Y=J.charCodeAt(2);if(w===h6&&Y>=48&&Y<=57)return!0;return!1}if(K===h6){if(w=J.charCodeAt(1),w>=48&&w<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}V7.exports=function(J){var K=0,w=J.length,Y,X,Z;if(w===0||!hY(J))return!1;if(Y=J.charCodeAt(K),Y===G8||Y===B8)K++;while(K<w){if(Y=J.charCodeAt(K),Y<48||Y>57)break;K+=1}if(Y=J.charCodeAt(K),X=J.charCodeAt(K+1),Y===h6&&X>=48&&X<=57){K+=2;while(K<w){if(Y=J.charCodeAt(K),Y<48||Y>57)break;K+=1}}if(Y=J.charCodeAt(K),X=J.charCodeAt(K+1),Z=J.charCodeAt(K+2),(Y===vY||Y===yY)&&(X>=48&&X<=57||(X===G8||X===B8)&&Z>=48&&Z<=57)){K+=X===G8||X===B8?3:2;while(K<w){if(Y=J.charCodeAt(K),Y<48||Y>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var k6=k0((kV,O7)=>{var kY=Q7(),G7=W7(),M7=A7();function f1(J){if(this instanceof f1)return this.nodes=kY(J),this;return new f1(J)}f1.prototype.toString=function(){return Array.isArray(this.nodes)?M7(this.nodes):""};f1.prototype.walk=function(J,K){return G7(this.nodes,J,K),this};f1.unit=B7();f1.walk=G7;f1.stringify=M7;O7.exports=f1});var N7=k0((gV,q7)=>{q7.exports=function(J){if(typeof J==="string")return L7(J);return g6(J)};function g6(J){if(!J||typeof J!=="object")return J;if(xY(J)||bY(J))return J;if(gY(J))return dY(J,g6);return lY(mY(J),function(K,w){var Y=L7(w);return K[Y]=g6(J[w]),K},{})}function L7(J){return J.replace(/[_.-](\w|$)/g,function(K,w){return w.toUpperCase()})}var gY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},xY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},bY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},fY=Object.prototype.hasOwnProperty,mY=Object.keys||function(J){var K=[];for(var w in J)if(fY.call(J,w))K.push(w);return K};function dY(J,K){if(J.map)return J.map(K);var w=[];for(var Y=0;Y<J.length;Y++)w.push(K(J[Y],Y));return w}function lY(J,K,w){if(J.reduce)return J.reduce(K,w);for(var Y=0;Y<J.length;Y++)w=K(w,J[Y],Y);return w}});var j7=k0((xV,cY)=>{cY.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 O8=k0((h7)=>{Object.defineProperty(h7,"__esModule",{value:!0});function l6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var R7=k6(),uY=l6(R7),pY=l6(N7()),iY=l6(j7()),rY=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(w,Y){return String.fromCharCode(parseInt(Y,16))}).replace(/\\/g,"")},nY=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,oY=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,sY=function(K){if(K.type==="word"&&(nY.test(K.value)||(K.value in iY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&oY.test(K.value))return R7.stringify(K);return null},aY=/^(none)$/i,tY=/^(auto)$/i,eY=/(^-?[_a-z][_a-z0-9-]*$)/i,J2=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,K2=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,w2=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,Y2=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,X2=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,c6=function(K){return function(w){return K(w)?"<token>":null}},Z2=function(K){return function(w){return w.type===K?w.value:null}},S0=function(K,w){if(w===void 0)w=String;return function(Y){if(Y.type!=="word")return null;var X=Y.value.match(K);if(X===null)return null;var Z=w(X[1]);return Z}},h0=c6(function(J){return J.type==="space"}),_7=c6(function(J){return J.type==="div"&&J.value==="/"}),Q2=c6(function(J){return J.type==="div"&&J.value===","}),H2=Z2("word"),u6=S0(aY),f6=S0(tY),L5=S0(J2,Number),r0=S0(K2,Number),T1=S0(w2),D7=S0(Y2,function(J){return J.toLowerCase()}),p6=S0(X2),M8=S0(eY),W2=rY,y5=sY,m6=S0(/^(none|underline|line-through)$/i),$2=function(K){var w=K.expect(L5);if(K.hasTokens())K.expect(_7),w/=K.expect(L5);return{aspectRatio:w}},z2=S0(/^(solid|dashed|dotted)$/),U2=1,A2="black",V2="solid",B2=function(K){var w,Y,X;if(K.matches(u6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Z=0;while(Z<3&&K.hasTokens()){if(Z!==0)K.expect(h0);if(w===void 0&&K.matches(r0,T1))w=K.lastValue;else if(Y===void 0&&K.matches(y5))Y=K.lastValue;else if(X===void 0&&K.matches(z2))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),w===void 0)w=U2;if(Y===void 0)Y=A2;if(X===void 0)X=V2;return{borderWidth:w,borderColor:Y,borderStyle:X}},h5=function(K){var w=K.types,Y=w===void 0?[r0,T1,p6]:w,X=K.directions,Z=X===void 0?["Top","Right","Bottom","Left"]:X,Q=K.prefix,W=Q===void 0?"":Q,H=K.suffix,$=H===void 0?"":H;return function(z){var U,A=[];A.push(z.expect.apply(z,Y));while(A.length<4&&z.hasTokens())z.expect(h0),A.push(z.expect.apply(z,Y));z.expectEmpty();var V=A[0],O=A[1],B=O===void 0?V:O,M=A[2],q=M===void 0?V:M,N=A[3],E=N===void 0?B:N,_=function(j){return""+W+Z[j]+$};return U={},U[_(0)]=V,U[_(1)]=B,U[_(2)]=q,U[_(3)]=E,U}},I7=function(K){var w=K.expect(r0),Y=K.matches(h0)?K.expect(r0):w;return K.expectEmpty(),{width:w,height:Y}},T7=function(K){var w,Y,X,Z;if(K.matches(u6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var Q=!1;while(K.hasTokens()){if(Q)K.expect(h0);if(w===void 0&&K.matches(r0,T1))if(w=K.lastValue,K.expect(h0),Y=K.expect(r0,T1),K.saveRewindPoint(),K.matches(h0)&&K.matches(r0,T1))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(y5))Z=K.lastValue;else K.throw();Q=!0}if(w===void 0)K.throw();return{offset:{width:w,height:Y},radius:X!==void 0?X:0,color:Z!==void 0?Z:"black"}},G2=function(K){var w=T7(K),Y=w.offset,X=w.radius,Z=w.color;return{shadowOffset:Y,shadowRadius:X,shadowColor:Z,shadowOpacity:1}},M2=1,O2=1,L2=0,q2=function(K){var w,Y,X;if(K.matches(u6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(f6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(h0);if(w===void 0&&K.matches(L5))if(w=K.lastValue,K.saveRewindPoint(),K.matches(h0)&&K.matches(L5))Y=K.lastValue;else K.rewind();else if(X===void 0&&K.matches(r0,T1,p6))X=K.lastValue;else if(X===void 0&&K.matches(f6))X="auto";else K.throw();Z+=1}if(K.expectEmpty(),w===void 0)w=M2;if(Y===void 0)Y=O2;if(X===void 0)X=L2;return{flexGrow:w,flexShrink:Y,flexBasis:X}},N2=S0(/(nowrap|wrap|wrap-reverse)/),j2=S0(/(row|row-reverse|column|column-reverse)/),E2="nowrap",F2="row",R2=function(K){var w,Y,X=0;while(X<2&&K.hasTokens()){if(X!==0)K.expect(h0);if(w===void 0&&K.matches(N2))w=K.lastValue;else if(Y===void 0&&K.matches(j2))Y=K.lastValue;else K.throw();X+=1}if(K.expectEmpty(),w===void 0)w=E2;if(Y===void 0)Y=F2;return{flexWrap:w,flexDirection:Y}},C7=function(K){var w;if(K.matches(W2))w=K.lastValue;else{w=K.expect(M8);while(K.hasTokens()){K.expect(h0);var Y=K.expect(M8);w+=" "+Y}}return K.expectEmpty(),{fontFamily:w}},_2=S0(/^(normal)$/),D2=S0(/^(italic)$/),I2=S0(/^([1-9]00|bold)$/),T2=S0(/^(small-caps)$/),C2="normal",P2="normal",S2=[],v2=function(K){var w,Y,X,Z,Q=0;while(Q<3&&K.hasTokens()){if(K.matches(_2));else if(w===void 0&&K.matches(D2))w=K.lastValue;else if(Y===void 0&&K.matches(I2))Y=K.lastValue;else if(X===void 0&&K.matches(T2))X=[K.lastValue];else break;K.expect(h0),Q+=1}var W=K.expect(r0,T1);if(K.matches(_7))Z=K.expect(r0,T1);K.expect(h0);var H=C7(K),$=H.fontFamily;if(w===void 0)w=C2;if(Y===void 0)Y=P2;if(X===void 0)X=S2;var z={fontStyle:w,fontWeight:Y,fontVariant:X,fontSize:W,fontFamily:$};if(Z!==void 0)z.lineHeight=Z;return z},y2=function(K){var w=[K.expect(M8)];while(K.hasTokens())K.expect(h0),w.push(K.expect(M8));return{fontVariant:w}},h2=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),k2=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),g2=function(K){var w=K.expect(h2),Y;if(K.hasTokens())K.expect(h0),Y=K.expect(k2);else Y="stretch";return K.expectEmpty(),{alignContent:w,justifyContent:Y}},x2=S0(/^(solid|double|dotted|dashed)$/),b2="none",f2="solid",m2="black",d2=function(K){var w,Y,X,Z=!1;while(K.hasTokens()){if(Z)K.expect(h0);if(w===void 0&&K.matches(m6)){var Q=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),Q[0]!=="none"&&K.matches(h0)&&K.matches(m6))Q.push(K.lastValue.toLowerCase()),Q.sort().reverse();else K.rewind();w=Q.join(" ")}else if(Y===void 0&&K.matches(x2))Y=K.lastValue;else if(X===void 0&&K.matches(y5))X=K.lastValue;else K.throw();Z=!0}return{textDecorationLine:w!==void 0?w:b2,textDecorationColor:X!==void 0?X:m2,textDecorationStyle:Y!==void 0?Y:f2}},l2=function(K){var w=[],Y=!1;while(K.hasTokens()){if(Y)K.expect(h0);w.push(K.expect(m6).toLowerCase()),Y=!0}return w.sort().reverse(),{textDecorationLine:w.join(" ")}},c2=function(K){var w=T7(K),Y=w.offset,X=w.radius,Z=w.color;return{textShadowOffset:Y,textShadowRadius:X,textShadowColor:Z}},i6=function(K){return function(w){var Y=w.expect(K);return w.expectEmpty(),Y}},x6=i6(L5),E7=i6(r0),O5=i6(D7),r6=function(K){return function(w,Y){return function(X){var Z,Q,W=X.expect(K),H;if(X.hasTokens())X.expect(Q2),H=X.expect(K);else if(Y!==void 0)H=Y;else return W;return X.expectEmpty(),[(Z={},Z[w+"Y"]=H,Z),(Q={},Q[w+"X"]=W,Q)]}}},u2=r6(L5),p2=r6(r0),i2=r6(D7),r2={perspective:x6,scale:u2("scale"),scaleX:x6,scaleY:x6,translate:p2("translate",0),translateX:E7,translateY:E7,rotate:O5,rotateX:O5,rotateY:O5,rotateZ:O5,skewX:O5,skewY:O5,skew:i2("skew","0deg")},n2=function(K){var w=[],Y=!1;while(K.hasTokens()){if(Y)K.expect(h0);var X=K.expectFunction(),Z=X.functionName,Q=r2[Z](X);if(!Array.isArray(Q)){var W;Q=[(W={},W[Z]=Q,W)]}w=Q.concat(w),Y=!0}return{transform:w}},o2=function(K){return{backgroundColor:K.expect(y5)}},s2=h5({types:[y5],prefix:"border",suffix:"Color"}),a2=h5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),t2=h5({prefix:"border",suffix:"Width"}),e2=h5({types:[r0,T1,p6,f6],prefix:"margin"}),JX=h5({prefix:"padding"}),KX=function(K){return{fontWeight:K.expect(H2)}},wX=function(K){return{shadowOffset:I7(K)}},YX=function(K){return{textShadowOffset:I7(K)}},P7={aspectRatio:$2,background:o2,border:B2,borderColor:s2,borderRadius:a2,borderWidth:t2,boxShadow:G2,flex:q2,flexFlow:R2,font:v2,fontFamily:C7,fontVariant:y2,fontWeight:KX,margin:e2,padding:JX,placeContent:g2,shadowOffset:wX,textShadow:c2,textShadowOffset:YX,textDecoration:d2,textDecorationLine:l2,transform:n2},d6;if(Bun.env.NODE_ENV!=="production")d6=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var XX=d6!=null?new RegExp(d6.join("|")):null,b6="SYMBOL_MATCH",ZX=function(){function J(w,Y){this.index=0,this.nodes=w,this.functionName=Y!=null?Y.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[b6]=function(){if(!this.hasTokens())return null;var w=this.nodes[this.index];for(var Y=0;Y<arguments.length;Y+=1){var X=Y<0||arguments.length<=Y?void 0:arguments[Y],Z=X(w);if(Z!==null)return this.index+=1,this.lastValue=Z,Z}return null},K.matches=function(){return this[b6].apply(this,arguments)!==null},K.expect=function(){var Y=this[b6].apply(this,arguments);return Y!==null?Y:this.throw()},K.matchesFunction=function(){var Y=this.nodes[this.index];if(Y.type!=="function")return null;var X=new J(Y.nodes,Y);return this.index+=1,this.lastValue=null,X},K.expectFunction=function(){var Y=this.matchesFunction();return Y!==null?Y:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),QX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,HX=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,WX=/^true|false$/i,$X=/^null$/i,zX=/^undefined$/i,S7=function(K,w){if(Bun.env.NODE_ENV!=="production"){var Y=!XX.test(K),X=HX.test(w);if(Y&&X)console.warn('Expected style "'+K+": "+w+'" to contain units');if(!Y&&w!=="0"&&!X)console.warn('Expected style "'+K+": "+w+'" to be unitless')}var Z=w.match(QX);if(Z!==null)return Number(Z[1]);var Q=w.match(WX);if(Q!==null)return Q[0].toLowerCase()==="true";var W=w.match($X);if(W!==null)return null;var H=w.match(zX);if(H!==null)return;return w},F7=function(K,w){var Y=uY(w),X=new ZX(Y.nodes);return P7[K](X)},UX=Bun.env.NODE_ENV==="production"?F7:function(J,K){try{return F7(J,K)}catch(w){throw Error('Failed to parse declaration "'+J+": "+K+'"')}},v7=function(K,w,Y){var X,Z=Y===!1||!(K in P7),Q=w.trim(),W=Z?(X={},X[K]=S7(K,Q),X):UX(K,Q);return W},y7=function(K){var w=/^--\w+/.test(K);if(w)return K;return pY(K)},AX=function(K,w){if(w===void 0)w=[];return K.reduce(function(Y,X){var Z=y7(X[0]),Q=X[1],W=w.indexOf(Z)===-1;return Object.assign(Y,v7(Z,Q,W))},{})};h7.default=AX;h7.getPropertyName=y7;h7.getStylesForProperty=v7;h7.transformRawValue=S7});var g7=k0((k7,L8)=>{/*!
3
- * https://github.com/gilmoreorless/css-background-parser
4
- * Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
5
- */(function(J){function K(Q){if(!(this instanceof K))return new K;this.backgrounds=Q||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function w(Q){if(!(this instanceof w))return new w(Q);Q=Q||{};var W=this;function H($,z){W[$]=$ in Q?Q[$]:z}H("color",""),H("image","none"),H("attachment","scroll"),H("clip","border-box"),H("origin","padding-box"),H("position","0% 0%"),H("repeat","repeat"),H("size","auto")}w.prototype.toString=function(){var Q=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)Q.unshift(this.color);return Q.join(" ")},J.BackgroundList=K,J.Background=w;function Y(Q){var W=[],H=/[,\(\)]/,$=0,z="";if(Q==null)return W;while(Q.length){var U=H.exec(Q);if(!U)break;var A=U[0],V=!1;switch(A){case",":if(!$)W.push(z.trim()),z="",V=!0;break;case"(":$++;break;case")":$--;break}var O=U.index+1;z+=Q.slice(0,V?O-1:O),Q=Q.slice(O)}if(z.length||Q.length)W.push((z+Q).trim());return W}function X(Q){return Q.trim()}function Z(Q){return(Q||"").split(",").map(X)}J.parseElementStyle=function(Q){var W=new K;if(Q==null)return W;var H=Y(Q.backgroundImage),$=Q.backgroundColor,z=Z(Q.backgroundAttachment),U=Z(Q.backgroundClip),A=Z(Q.backgroundOrigin),V=Z(Q.backgroundPosition),O=Z(Q.backgroundRepeat),B=Z(Q.backgroundSize),M;for(var q=0,N=H.length;q<N;q++){if(M=new w({image:H[q],attachment:z[q%z.length],clip:U[q%U.length],origin:A[q%A.length],position:V[q%V.length],repeat:O[q%O.length],size:B[q%B.length]}),q===N-1)M.color=$;W.backgrounds.push(M)}return W}})(function(J){if(typeof L8<"u"&&k7!==void 0)return k7;return J.cssBgParser={}}(k7))});var b7=k0((fV,x7)=>{var OX=/,(?![^\(]*\))/,LX=/\s(?![^(]*\))/,qX=/^[0-9]+[a-zA-Z%]+?$/,NX=(J)=>{let K=J.split(LX),w=K.includes("inset"),Y=K.slice(-1)[0],X=!EX(Y)?Y:void 0,Z=K.filter((z)=>z!=="inset").filter((z)=>z!==X).map(FX),[Q,W,H,$]=Z;return{inset:w,offsetX:Q,offsetY:W,blurRadius:H,spreadRadius:$,color:X}},jX=(J)=>{let{inset:K,offsetX:w=0,offsetY:Y=0,blurRadius:X=0,spreadRadius:Z,color:Q}=J||{};return[K?"inset":null,w,Y,X,Z,Q].filter((W)=>W!==null&&W!==void 0).map(RX).map((W)=>(""+W).trim()).join(" ")},EX=(J)=>J==="0"||qX.test(J),FX=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},RX=(J)=>typeof J==="number"&&J!==0?J+"px":J,_X=(J)=>J.split(OX).map((K)=>K.trim()).map(NX),DX=(J)=>J.map(jX).join(", ");x7.exports={parse:_X,stringify:DX}});var m7=k0((mV,f7)=>{f7.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 l7=k0((dV,d7)=>{var IX=new RegExp("[^#a-f\\d]","gi"),TX=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");d7.exports=(J,K={})=>{if(typeof J!=="string"||IX.test(J)||!TX.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let w=1;if(J.length===8)w=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)w=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 Y=Number.parseInt(J,16),X=Y>>16,Z=Y>>8&255,Q=Y&255,W=typeof K.alpha==="number"?K.alpha:w;if(K.format==="array")return[X,Z,Q,W];if(K.format==="css"){let H=W===1?"":` / ${Number((W*100).toFixed(2))}%`;return`rgb(${X} ${Z} ${Q}${H})`}return{red:X,green:Z,blue:Q,alpha:W}}});var n7=k0((cV,r7)=>{/*!
6
- * escape-html
7
- * Copyright(c) 2012-2013 TJ Holowaychuk
8
- * Copyright(c) 2015 Andreas Lubbe
9
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
10
- * MIT Licensed
11
- */var oX=/["'&<>]/;r7.exports=sX;function sX(J){var K=""+J,w=oX.exec(K);if(!w)return K;var Y,X="",Z=0,Q=0;for(Z=w.index;Z<K.length;Z++){switch(K.charCodeAt(Z)){case 34:Y="&quot;";break;case 38:Y="&amp;";break;case 39:Y="&#39;";break;case 60:Y="&lt;";break;case 62:Y="&gt;";break;default:continue}if(Q!==Z)X+=K.substring(Q,Z);Q=Z+1,X+=Y}return Q!==Z?X+K.substring(Q,Z):X}});import{AsyncLocalStorage as pw}from"async_hooks";class B5 extends y0{service;static _name="BroadcastingServiceContainer";publishCb;context=new pw;constructor(J){super();this.service=J}onPublish(J){this.publishCb=J}publish(...J){let[K,w,Y]=J;this.publishCb(K,w,Y)}async handleMessage(J,K){let w=JSON.parse(K);if(w.type==="subscribe"){let Y=Object.entries(this.service.channels).sort(([X],[Z])=>X.length-Z.length);for(let[X,Z]of Y){let Q=new URLPattern({pathname:X});if(Q.test({pathname:w.topic})){let W=Q.exec({pathname:w.topic})?.pathname.groups,H=new Z;if(await H.subscribe.call(H,W))J.subscribe(w.topic);break}}}if(w.type==="broadcast")J.publish(w.topic,JSON.stringify({topic:w.topic,data:w.payload}));if(w.type==="unsubscribe")J.unsubscribe(w.topic)}run(J,K){let w=J.get("Cookie"),Y=new Map;if(w){let X=w.split(";");for(let Z of X){let[Q,W]=Z.split("=");Y.set(Q.trim(),W.trim())}}this.context.run({headers:J,cookies:Y},K)}}class b1{static async user(){let J=O0.getStore(),K=B5.use().context.getStore(),w="",Y="";if(J?.req)w=J.req.cookies.get("access_token"),Y=J.req.headers.get("User-Agent");if(K?.cookies)Y=K.headers.get("User-Agent"),w=K.cookies.get("access_token");let X=J?.user;if(!X)X=(await j0.use().getSession(w,Y))?.user,J?.setUser(X);if(X)return X;throw new L9}static async guard(J){let K=await b1.user();if(!K)throw new W8;try{if(!await J(K))throw new W8}catch(w){throw new W8}}static async guardSafe(J){let K=await b1.user();if(!K)return!1;try{return await J(K)}catch(w){return!1}}static async authenticate(J){return await j0.use().authenticate(J)}static async createMagicLink(J){return await j0.use().createMagicLinkToken(J)}}class G5{static getSupportedLocales(){return P0.use().service.supportedLocales}static getDefaultLocale(){return P0.use().service.defaultLocale}static locale(){let J=P0.use(),K=O0.getStore();if(K)return J.detectLocale(K.req);return J.service.defaultLocale}static setLocale(J=G5.locale()){let K=P0.use(),w=J;if(!K.service.supportedLocales.includes(J))w=K.service.defaultLocale;return O0.getStore().setCookie("i18n-locale",w,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),w}}import iw from"sharp";import{Buffer as rw}from"buffer";class T5 extends y0{service;static _name="FileStorageServiceContainer";constructor(J){super();this.service=J}}class q9{static async put(J){return T5.use().service.driver.put(J)}static async metadata(J){let K=rw.from(await J.arrayBuffer());try{return await iw(K).metadata()}catch{return{}}}static async fetch(J){return T5.use().service.driver.fetch(J)}static list(J){return T5.use().service.driver.list(J)}static delete(){}}function N9(J){return Object.fromEntries(Object.entries(J).filter(([,K])=>{return K!==null&&K!==void 0}))}class K5 extends Error{constructor(){super("Adapter not found");this.name="AdapterNotFound"}}class $6{createSession(){throw new K5}deleteSession(){throw new K5}findSession(){throw new K5}findUserByEmailAddress(){throw new K5}updateSession(){throw new K5}createUser(){throw new K5}}class z6 extends $0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class R9 extends $0{schema={name:{string:"Invalid name",required:"Name is required","min:2":"Name must be at least 3 characters"},email:{string:"Invalid email",required:"Email is required",email:"Invalid email"},password:{"min:8":"Password must be at least 9 characters"}}}class _9 extends $0{schema={email:{required:"Email is required",email:"Invalid email"}}}class D9 extends $0{schema={password:{required:"Password is required",password:"Invalid password"}}}class b0 extends j9{provider=j0.use()?.provider;async me(){let J=await b1.user();if(!J)throw new F9;return J}async verifyEmail(J=new $0){let K=await J.input(),w=j0.use()?.provider,Y=await w.adapter.findUserByVerificationToken(K.get("token"));if(!Y)return{email:null};if(await w.adapter.verifyUser(Y.email),Y)return{email:Y.email};return{email:null}}async signInWithMagicLink(J=new $0){let K=j0.use(),w=K.provider,Y=J.search.get("token"),X=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Z=null;try{Z=await w.adapter.findUserMagicLinkToken({email:X,token:Y})}catch(H){return console.log(H),{error:JSON.stringify(H)}}if(!Z)return{error:"Invalid token"};await w.adapter.verifyUser(X),await w.adapter.deleteMagicLinkToken(X);let Q=await K.createOrUpdateSession({email:X}),W=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",Q.token,{expires:Q.expiresAt,secure:!W.origin.includes("localhost"),httpOnly:!0}),await w.onSignIn(Q,J.search.toJSON()),{session:Q}}async signInWithPinV2(J=new $0){let K=j0.use(),w=K.provider,Y=await J.input(),{email:X,pin:Z}=Y.toJSON(),Q=X.toLowerCase().trim();if(!await w.adapter.findUserMagicLinkToken({email:Q,pin:Z}))throw new e0({pin:["Invalid pin"]});await w.adapter.deleteMagicLinkToken(Q),await w.adapter.verifyUser(Q);let H=await K.createOrUpdateSessionV2({email:Q}),$=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await w.onSignIn(H,J.search.toJSON()),H}async signInWithPin(J=new $0){let K=j0.use(),w=K.provider,Y=await J.input(),{email:X,pin:Z}=Y.toJSON(),Q=X.toLowerCase().trim();if(!await w.adapter.findUserMagicLinkToken({email:Q,pin:Z}))throw new e0({pin:["Invalid pin"]});await w.adapter.deleteMagicLinkToken(Q),await w.adapter.verifyUser(Q);let H=await K.createOrUpdateSession({email:Q}),$=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await w.onSignIn(H,J.search.toJSON()),{session:H}}async signInV2(J=new z6){let K=new URL(J.rawRequest.url),w=await J.input(),{email:Y,password:X}=w.toJSON(),Z=Y.toLowerCase().trim(),Q=j0.use().provider,W=await Q.adapter.findUserByEmailAddress(Z,Q.verifyEmail);if(!W)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await Q.verifyPassword(X,W.password))throw new e0({invalid_credentials:["Invalid credentials"]});let $=await j0.use().createOrUpdateSessionV2({email:W.email,id:W.id});J.ctx().setCookie("access_token",$.token,{expires:$.expiresAt,secure:!K.origin.includes("localhost"),httpOnly:!0}),await Q.onSignIn(W,J.search.toJSON());let{password:z,...U}=W;return U}async signIn(J=new z6){let K=await J.input(),{email:w,password:Y}=K.toJSON(),X=w.toLowerCase().trim(),Z=j0.use().provider,Q=await Z.adapter.findUserByEmailAddress(X,Z.verifyEmail);if(!Q)throw new e0({invalid_credentials:["Invalid credentials"]});if(!await Z.verifyPassword(Y,Q.password))throw new e0({invalid_credentials:["Invalid credentials"]});let H=await j0.use().createOrUpdateSession({email:Q.email,id:Q.id}),$=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",H.token,{expires:H.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await Z.onSignIn(Q,J.search.toJSON());let{password:z,...U}=Q;return U}async signUp(){let J=j0.use().provider,K=new J.signUpRequest,w=await K.input(),{email:Y,password:X,name:Z,invitationId:Q}=w.toJSON(),W=Y.toLowerCase().trim();if(await J.adapter.findUserByEmailAddress(W,!1))throw new e0({email:["Email address already exists"]});let $=await J.hashPassword(X),z=P0.use().detectLocale(K),U;if(Q){if(U=await J.adapter.findInvitation(Q,W),U)await J.adapter.deleteInvitationById(Q)}let A,V;if(U)A=await J.adapter.createUser({email:W,name:Z,password:$,emailVerifiedAt:new Date,locale:z}),await J.adapter.createAccount({organizationId:U.organizationId,userId:A.id,organizationRole:U.role});else V=await J.generateEmailVerificationToken(W),A=await J.adapter.createUser({email:W,name:Z,password:$,verificationToken:V,locale:z});return await J.onSignUp(A,V,K.search.toJSON()),A}async signOut(J=new $0){let K=J.cookies.get("access_token"),w=await b1.user(),Y=j0.use().provider;await Y.adapter.deleteSession({token:K});let X=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!X.origin.includes("localhost"),httpOnly:!0}),await Y.onSignOut(w),{}}async forgotPassword(J=new _9){let w=(await J.input()).get("email").toLowerCase().trim(),Y=j0.use().provider,X=await Y.adapter.findUserByEmailAddress(w,Y.verifyEmail);if(!X)return{};let Z=await Y.generateForgotPasswordToken(X);return await Y.adapter.createPasswordResetToken({user:X,token:Z}),await Y.onForgotPassword(X,Z),{}}async resetPassword(J=new D9){let K=j0.use().provider,w=await J.input(),{password:Y,token:X}=w.toJSON(),Z=await K.adapter.findPasswordResetToken({token:X});if(!Z)throw new e0({token:["Invalid token"]});if(C5.Instant.from(Z.createdAt.toISOString()).add({hours:24}).until(C5.Now.instant()).sign>=0)throw new e0({token:["Token expired"]});await K.adapter.deletePasswordResetToken({token:X});let W=await K.adapter.findUserByEmailAddress(Z.user.email,K.verifyEmail);if(!W)throw new e0({email:["User not found"]});let H=await K.hashPassword(Y);return await K.adapter.updateUserPassword({id:W.id,password:H}),await K.adapter.deleteAllUserSessions(W.id),await K.onResetPassword(W),{}}async changePassword(J=new $0){let K=j0.use().provider,w=await b1.user(),Y=await J.input(),{oldPassword:X,newPassword:Z}=Y.toJSON(),{password:Q}=await K.adapter.findUserByEmailAddress(w.email,K.verifyEmail);if(!await K.verifyPassword(X,Q))throw new e0({oldPassword:["Incorrect password"]});let H=await K.hashPassword(Z);return await K.adapter.updateUserPassword({id:w.id,password:H}),await K.adapter.deleteAllUserSessions(w.id),{}}async oauthRedirect(J=new $0){let{provider:K}=J.params,w=j0.use().provider.oauthProviders[K];if(!w)throw Error(`Invalid provider: ${K}`);return{destination:await w.getRedirectUrl(J)}}async oauthCallback(J=new $0){let{provider:K}=J.params,w=j0.use(),Y=w.provider,X=Y.oauthProviders[K],{email:Z,name:Q}=await X.onCallback(J);if(!Z)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let W=await Y.adapter.findUserByEmailAddress(Z,!1),H=P0.use().detectLocale(J),$="signin";if(!W)$="signup",W=await Y.adapter.createUser({email:Z,name:Q,locale:H,emailVerifiedAt:new Date}),await Y.adapter.createSocialAccount({provider:K,userId:W.id,email:Z,username:Q,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""});let z=await w.createOrUpdateSessionV2({email:W.email,id:W.id}),U=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",z.token,{secure:!U.origin.includes("localhost"),httpOnly:!0,expires:z.expiresAt}),$==="signup"){let A=await Y.generateMagicLinkToken(Z);await Y.onSignUp(W,A,J.search.toJSON())}else await Y.onSignIn(W,J.search.toJSON());return{session:z}}async createMagicLinkToken(J=new $0){let w=(await J.input()).get("email").toLowerCase().trim(),Y=j0.use(),X=Y.provider,{user:Z,pin:Q,token:W}=await Y.createMagicLinkToken(w);if(Z)return await X.onMagicLinkCreated(Z,{email:w,pin:Q,token:W}),{email:w};return{email:null}}}class I9 extends U6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[b0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[b0,"oauthCallback"])}}class A6 extends U6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[b0,"signInWithMagicLink"]),"/oauth":I9}}class V6 extends L1{middlewares=["cache:private"];routes={"/sign-in":this.post(b0,"signIn"),"/sign-in-v2":this.post(b0,"signInV2"),"/sign-up":this.post(b0,"signUp"),"/sign-out":this.post(b0,"signOut"),"/forgot-password":this.post(b0,"forgotPassword"),"/reset-password":this.post(b0,"resetPassword"),"/change-password":this.post(b0,"changePassword"),"/verify-email":this.post(b0,"verifyEmail"),"/me":this.get(b0,"me").middleware(["auth"]),"/magic-link":this.post(b0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(b0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(b0,"signInWithPinV2")}}class nw extends E9{basePath="/auth";verifyEmail=!0;redirectPath="/dashboard";sessionExpiresInHours=24;sessionAbsoluteExpiresInHours=672;signUpRequest=R9;adapter=new $6;oauthProviders={};boot(){}async verifyPassword(J,K){return await Bun.password.verify(J,K)}async hashPassword(J){return await Bun.password.hash(J)}async generateForgotPasswordToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J.email}${Date.now()}`),K.digest("hex")}generateEmailVerificationToken(J){if(!this.verifyEmail)return"";let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}generateMagicLinkToken(J){let K=new Bun.CryptoHasher("sha256");return K.update(`${J}${Date.now()}`),K.digest("hex")}extendSession(J){return{}}onSignUp(J,K,w){}onSignIn(J,K){}onSignOut(J){}onForgotPassword(J,K){}onResetPassword(J){}onMagicLinkCreated(J,K){return}}class B6 extends L1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new $0,K=J.params.locale;return console.log(`Setting locale to ${K}`),J.ctx().setCookie("i18n-locale",K),await P0.use().service.onLocaleChange(K),{locale:K}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new $0,K=`/${J.params.scope??""}`,Y=J.params.locale??P0.use().detectLocale(J),X=P0.use().getPageTranslations(Y,K);return J.ctx().setCookie("i18n-locale",Y,{expires:new Date(Date.now()+31536000000)}),{[Y]:X}})}}class G6 extends L1{routes={"/resize":this.file(async()=>{let J=new $0,K=new URL(J.rawRequest.url),w=K.searchParams.get("url"),Y=Number(K.searchParams.get("w")),X=Number(K.searchParams.get("h")),Z=K.searchParams.get("fit")??"cover",Q=Number(K.searchParams.get("q"));if(!w)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let H=`${w.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${w}`,$=await fetch(H);if(!$.ok)return new Response(JSON.stringify({error:"Image not found",info:H}),{headers:{"Content-Type":"application/json"},status:404});let z=Buffer.from(await $.arrayBuffer()),U=await T9.use().service.driver.resize(z,{height:X,width:Y,fit:Z,quality:Q});$.headers.delete("Content-Type"),$.headers.delete("Content-Length");let A=new Headers($.headers);return A.set("Content-Type","image/webp"),A.set("Content-Length",`${U.byteLength}`),new Response(new Uint8Array(U),{headers:A})})}}class T9 extends y0{service;static _name="ImageOptimizationServiceContainer";constructor(J){super();this.service=J}}import{mkdir as M6,readdir as ow,access as sw}from"fs/promises";async function O6(J){try{return await sw(J),!0}catch{return!1}}class J1 extends y0{service;static _name="LoggingServiceContainer";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;currentLogFilePath;constructor(J){super();this.service=J;this.boot().then(()=>{this.isReady=!0})}async boot(){if(!process.env.ROOT_DIR)return;if(!await O6(`${process.env.ROOT_DIR}/storage`))await M6(`${process.env.ROOT_DIR}/storage`);if(!await O6(this.logsDirPath))await M6(this.logsDirPath);this.newLogFile()}async newLogFile(){if(!await O6(this.logsDirPath))await M6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let w=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.service.onLogFileClosed(w),this.fileSize=0,this.writerSize=0}let K=(await ow(this.logsDirPath)).sort().reverse()[0];if(K){let w=Bun.file(`${this.logsDirPath}/${K}`);if(w.size<this.service.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${K}`,this.writer=w.writer(),this.writer.write(await w.text()),this.writer.write(`
12
- `),this.writer.flush(),this.fileSize=w.size}if(!this.writer){let w=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${w}`;let Y=Bun.file(`${this.logsDirPath}/${w}`);this.writer=Y.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,K,w={}){if(!this.isReady)await new Promise((W)=>{let H=setInterval(()=>{if(this.isReady)W({}),clearInterval(H)},100)});let Y=O0.getStore(),X={};if(Y)X={url:Y.req.rawRequest.url,method:Y.req.rawRequest.method,headers:Y.req.rawRequest.headers,body:Y.req.rawRequest.body};let Z={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:K,metadata:{...X,...w}},Q="";try{Q=JSON.stringify(Z)}catch(W){console.log("Error parsing log object",W)}this.writerSize+=Q.length,this.fileSize+=Q.length;try{this.writer.write(Q),this.writer.write(`
13
- `),this.service.onLogCreated(Z),this.tryFlush()}catch(W){console.error("Error writing log",W)}}async tryFlush(){if(this.fileSize>this.service.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.service.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 L6 extends L1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(J1.use().currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function aw(J){let K=new Map;for(let w of J)if(typeof w==="string"){let[Y,X=""]=w.split(":");if(Y.startsWith("-")){if(K.has(Y.replace("-","")))K.delete(Y.replace("-",""))}else K.set(Y,X.split(",").filter(Boolean))}else K.set(w,[]);return K}class P5 extends y0{service;static _name="MiddlewareServiceContainer";constructor(J){super();this.service=J}runMiddleware(J){let K=new $0;return Array.from(aw(J).entries()).map(([w,Y])=>{if(typeof w==="string"){let X=this.service.aliases[w];if(X){let Z=new X(K);return()=>Z.run.call(Z,...Y)}}else{if(C9(w)){let X=new w(K);return X.run.bind(X)}return w}}).filter(Boolean).reduce((w,Y)=>{return async()=>{return{...await w(),...await Y()}}},()=>Promise.resolve({}))()}}function tw(J){return"run"in J}function ew(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function JY(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function KY(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function wY(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function q6(J,K="",w=[]){let Y={};function X(Z,Q,W,H){let $=Z==="/"?"":Z,z=K==="/"?"":K,U=(`${z}${$}`===""?"/":`${z}${$}`).replaceAll("//","/");if(!Y[U])Y[U]={};Y[U][Q.toUpperCase()]={exec:W,middleware:[...w,...H]},Y[U].OPTIONS={exec:()=>{let V=new $0().ctx().headers;return new Response(null,{headers:V,status:204})},middleware:[]}}for(let[Z,Q]of Object.entries(J)){if(wY(Q)){let W=Q;for(let H of["GET","POST","PUT","DELETE"])X(Z,H,W.run.bind(W),[]);continue}if(tw(Q)){let W=Q,H=W.method,$=W.middlewares,z=W.run.bind(W);X(Z,H,z,$)}if(ew(Q))for(let[W,H]of Object.entries(Q)){let $=H.middlewares,z=H.run.bind(H);X(Z,W,z,$)}if(KY(Q)){let W=new Q,H=q6(W.routes,`${K}${Z}`,W.middlewares);for(let[$,z]of Object.entries(H))Y[$.replaceAll("//","/")]=z}if(JY(Q)){let{first:W,second:H}=Q;for(let[$,z]of Object.entries(W)){let U=z.middlewares,A=z.run.bind(z),[V,...O]=Z.split("/").reverse();if(!V.startsWith(":"))throw Error("Resource route must end with a dynamic segment");X(O.reverse().join("/"),$,A,U)}for(let[$,z]of Object.entries(H)){let U=z.middlewares,A=z.run.bind(z);X(Z,$,A,U)}}}return Object.fromEntries(Object.entries(Y).sort(([Z],[Q])=>{let W=Z.split("/").length+Z.split(":").length,H=Q.split("/").length+Q.split(":").length;return W-H}))}var J7=W1(r9(),1),K7=W1(n9(),1),I6={};var GY=5;var o9=12,MY=13;var OY=16,LY=17;var qY=22;var s9=28;var a9=31;var NY=33,z8=34,jY=35,_6=36,D6=37,w7=38,EY=39,FY=40,v5=41,RY=42,G=0,L=1,H0=2,Y7=3,R=4,_Y=[[R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,Y7,R,R,R,R,R,R,R,R,R,R,R],[G,R,R,L,L,R,R,R,R,L,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,R,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[R,R,R,L,L,L,R,R,R,L,L,L,L,L,L,L,L,L,L,L,R,H0,R,L,L,L,L,L,L,L,L,L,L],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,L,L,L,L,L,L,R,H0,R,L,L,L,L,L,L,L,L,L,L],[G,R,R,L,L,L,R,R,R,G,G,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,G,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,G,L,G,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,G,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,G,G,L,L,L,L,L,L,L,G,G,R,H0,R,L,L,L,L,L,G,L,L,L,G],[L,R,R,L,L,L,R,R,R,G,G,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,G,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,G,L,R,R,R,G,G,L,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,G,L,R,R,R,G,G,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,L,L,L,L,L,L,R,H0,R,L,L,L,L,L,L,L,L,L,G],[G,R,R,L,L,L,R,R,R,G,G,G,G,G,G,L,L,L,G,R,R,H0,R,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,R,G,G,G,G,G,G,G,G,G,G,G,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,L,L,L,L,L,L,R,H0,R,L,L,L,L,L,L,L,L,L,L],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,L,L,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,L,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,L,L,L,L,G,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,L,L,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,L,G,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,G,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,L,G,G,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,L,L,G],[G,R,R,L,L,L,R,R,R,G,L,G,G,G,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[L,R,R,L,L,L,R,R,R,L,L,L,L,L,G,L,L,L,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G],[G,R,R,L,L,G,R,R,R,G,G,G,G,G,G,G,G,G,G,G,R,H0,R,G,G,G,G,G,G,G,G,L,G]],DY=K7.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/"),IY=new J7.default(DY),t9=function(J){switch(J){case NY:return o9;case EY:case FY:case RY:return o9;case jY:return GY;default:return J}},e9=function(J){switch(J){case D6:case w7:return z8;case v5:return qY;default:return J}};class U8{constructor(J,K=!1){this.position=J,this.required=K}}class X7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),K=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=K&&K<=57343)return this.pos++,(J-55296)*1024+(K-56320)+65536;return J}nextCharClass(){return t9(IY.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case v5:return!1;case z8:case D6:case w7:return this.curClass=z8,!1;case _6:return this.curClass=_6,!1}return null}getPairTableBreak(J){let K=!1;switch(_Y[this.curClass][this.nextClass]){case G:K=!0;break;case L:K=J===v5;break;case H0:if(K=J===v5,!K)return K=!1,K;break;case Y7:if(J!==v5)return K;break;case R:break}if(this.LB8a)K=!1;if(this.LB21a&&(this.curClass===OY||this.curClass===LY))K=!1,this.LB21a=!1;else this.LB21a=this.curClass===MY;if(this.curClass===s9){if(this.LB30a++,this.LB30a==2&&this.nextClass===s9)K=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,K}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=e9(J),this.nextClass=J,this.LB8a=J===a9,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===z8||this.curClass===_6&&this.nextClass!==D6)return this.curClass=e9(t9(this.nextClass)),new U8(this.lastPos,!0);let K=this.getSimpleBreak();if(K===null)K=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===a9,K)return new U8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new U8(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}}I6=X7;var G1=W1(O8(),1),ww=W1(g7(),1),Yw=W1(b7(),1);var u7=W1(m7(),1),p7=W1(l7(),1),CX=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,PX=new RegExp(CX,"i"),n6="-?\\d*(?:\\.\\d+)",q5=`(${n6}?)`,j1=`(${n6}?%)`,N5=`(${n6}?%?)`,SX=`^
14
- hsla?\\(
15
- \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
16
- \\s*${j1}\\s*,
17
- \\s*${j1}\\s*
18
- (?:,\\s*${N5}\\s*)?
19
- \\)
20
- $
21
- `.replace(/\n|\s/g,""),vX=new RegExp(SX),yX=`^
22
- hsla?\\(
23
- \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
24
- \\s+${j1}
25
- \\s+${j1}
26
- \\s*(?:\\s*\\/\\s*${N5}\\s*)?
27
- \\)
28
- $
29
- `.replace(/\n|\s/g,""),hX=new RegExp(yX),kX=`^
30
- rgba?\\(
31
- \\s*${q5}\\s*,
32
- \\s*${q5}\\s*,
33
- \\s*${q5}\\s*
34
- (?:,\\s*${N5}\\s*)?
35
- \\)
36
- $
37
- `.replace(/\n|\s/g,""),gX=new RegExp(kX),xX=`^
38
- rgba?\\(
39
- \\s*${j1}\\s*,
40
- \\s*${j1}\\s*,
41
- \\s*${j1}\\s*
42
- (?:,\\s*${N5}\\s*)?
43
- \\)
44
- $
45
- `.replace(/\n|\s/g,""),bX=new RegExp(xX),fX=`^
46
- rgba?\\(
47
- \\s*${q5}
48
- \\s+${q5}
49
- \\s+${q5}
50
- \\s*(?:\\s*\\/\\s*${N5}\\s*)?
51
- \\)
52
- $
53
- `.replace(/\n|\s/g,""),mX=new RegExp(fX),dX=`^
54
- rgba?\\(
55
- \\s*${j1}
56
- \\s+${j1}
57
- \\s+${j1}
58
- \\s*(?:\\s*\\/\\s*${N5}\\s*)?
59
- \\)
60
- $
61
- `.replace(/\n|\s/g,""),lX=new RegExp(dX),cX=/^transparent$/,uX=new RegExp(cX,"i"),o6=(J,K,w)=>Math.min(Math.max(K,J),w),pX=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return o6(Math.round(K),0,255)},c7=(J)=>o6(parseFloat(J),0,100);function i7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return o6(K,0,1)}function iX(J){let[K,w,Y,X]=p7.default(J,{format:"array"});return q8([null,K,w,Y,X])}function rX([,J,K,w,Y=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,c7(K),c7(w)],alpha:i7(Y===null?1:Y)}}function q8([,J,K,w,Y=1]){return{type:"rgb",values:[J,K,w].map(pX),alpha:i7(Y===null?1:Y)}}var nX=(J)=>{if(typeof J!=="string")return null;let K=PX.exec(J);if(K)return iX(K[0]);let w=hX.exec(J)||vX.exec(J);if(w)return rX(w);let Y=mX.exec(J)||lX.exec(J)||gX.exec(J)||bX.exec(J);if(Y)return q8(Y);if(uX.exec(J))return q8([null,0,0,0,0]);let X=u7.default[J.toLowerCase()];if(X)return q8([null,X[0],X[1],X[2],1]);return null},N8=nX;var Xw=W1(k6(),1),Zw=W1(O8(),1),C4=W1(n7(),1);function a6(J,K=","){let w=[],Y=0,X=0;K=new RegExp(K);for(let Z=0;Z<J.length;Z++)J[Z]==="("?X++:J[Z]===")"&&X--,X===0&&K.test(J[Z])&&(w.push(J.slice(Y,Z).trim()),Y=Z+1);return w.push(J.slice(Y).trim()),w}function s6(J){let K=[];for(let w=0,Y=J.length;w<Y;){let[X,Z]=a6(J[w],/\s+/);aX(J[w+1])?(K.push({color:X,offset:w5(Z),hint:w5(J[w+1])}),w+=2):(K.push({color:X,offset:w5(Z)}),w++)}return K}var a7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function aX(J){return a7.test(J)}function w5(J){if(!J)return;let[,K,w]=J.trim().match(a7)||[];return{value:K,unit:w}}function t7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,w]=J.match(/(repeating-)?linear-gradient\((.+)\)/),Y={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},X=a6(w),Z=tX(X[0]);return Z&&(Y.orientation=Z,X.shift()),{...Y,stops:s6(X)}}function tX(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:w5(J)}:null}var eX=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),JZ=new Set(["center","left","top","right","bottom"]);function o7(J){return eX.has(J)}function s7(J){return JZ.has(J)}function KZ(J){let K=Array(2).fill("");for(let w=0;w<2;w++)J[w]?K[w]=J[w]:K[w]="center";return K}function e7(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,w]=J.match(/(repeating-)?radial-gradient\((.+)\)/),Y={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},X=a6(w);if(wZ(X[0]))return{...Y,stops:s6(X)};let Z=X[0].split("at").map(($)=>$.trim()),Q=((Z[0]||"").match(/(circle|ellipse)/)||[])[1],W=(Z[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],H=KZ((Z[1]||"").split(" "));return Q?Y.shape=Q:W.length===1&&!o7(W[0])?Y.shape="circle":Y.shape="ellipse",W.length===0&&W.push("farthest-corner"),Y.size=W.map(($)=>o7($)?{type:"keyword",value:$}:{type:"length",value:w5($)}),Y.position.x=s7(H[0])?{type:"keyword",value:H[0]}:{type:"length",value:w5(H[0])},Y.position.y=s7(H[1])?{type:"keyword",value:H[1]}:{type:"length",value:w5(H[1])},(Q||W.length>0||Z[1])&&X.shift(),{...Y,stops:s6(X)}}function wZ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var P4=W1(O8(),1);var K1=Uint8Array,X5=Uint16Array,IJ=Uint32Array,TJ=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]),CJ=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]),YZ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),PJ=function(J,K){var w=new X5(31);for(var Y=0;Y<31;++Y)w[Y]=K+=1<<J[Y-1];var X=new IJ(w[30]);for(var Y=1;Y<30;++Y)for(var Z=w[Y];Z<w[Y+1];++Z)X[Z]=Z-w[Y]<<5|Y;return[w,X]},SJ=PJ(TJ,2),vJ=SJ[0],XZ=SJ[1];vJ[28]=258,XZ[258]=28;var ZZ=PJ(CJ,0),QZ=ZZ[0],H4=new X5(32768);for(Z0=0;Z0<32768;++Z0)E1=(Z0&43690)>>>1|(Z0&21845)<<1,E1=(E1&52428)>>>2|(E1&13107)<<2,E1=(E1&61680)>>>4|(E1&3855)<<4,H4[Z0]=((E1&65280)>>>8|(E1&255)<<8)>>>1;var E1,Z0,g5=function(J,K,w){var Y=J.length,X=0,Z=new X5(K);for(;X<Y;++X)if(J[X])++Z[J[X]-1];var Q=new X5(K);for(X=0;X<K;++X)Q[X]=Q[X-1]+Z[X-1]<<1;var W;if(w){W=new X5(1<<K);var H=15-K;for(X=0;X<Y;++X)if(J[X]){var $=X<<4|J[X],z=K-J[X],U=Q[J[X]-1]++<<z;for(var A=U|(1<<z)-1;U<=A;++U)W[H4[U]>>>H]=$}}else{W=new X5(Y);for(X=0;X<Y;++X)if(J[X])W[X]=H4[Q[J[X]-1]++]>>>15-J[X]}return W},f5=new K1(288);for(Z0=0;Z0<144;++Z0)f5[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)f5[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)f5[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)f5[Z0]=8;var Z0,yJ=new K1(32);for(Z0=0;Z0<32;++Z0)yJ[Z0]=5;var Z0,HZ=g5(f5,9,1),WZ=g5(yJ,5,1),t6=function(J){var K=J[0];for(var w=1;w<J.length;++w)if(J[w]>K)K=J[w];return K},$1=function(J,K,w){var Y=K/8|0;return(J[Y]|J[Y+1]<<8)>>(K&7)&w},e6=function(J,K){var w=K/8|0;return(J[w]|J[w+1]<<8|J[w+2]<<16)>>(K&7)},$Z=function(J){return(J+7)/8|0},zZ=function(J,K,w){if(K==null||K<0)K=0;if(w==null||w>J.length)w=J.length;var Y=new(J.BYTES_PER_ELEMENT==2?X5:J.BYTES_PER_ELEMENT==4?IJ:K1)(w-K);return Y.set(J.subarray(K,w)),Y},UZ=["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"],l1=function(J,K,w){var Y=Error(K||UZ[J]);if(Y.code=J,Error.captureStackTrace)Error.captureStackTrace(Y,l1);if(!w)throw Y;return Y},AZ=function(J,K,w){var Y=J.length;if(!Y||w&&w.f&&!w.l)return K||new K1(0);var X=!K||w,Z=!w||w.i;if(!w)w={};if(!K)K=new K1(Y*3);var Q=function(g){var J0=K.length;if(g>J0){var Y0=new K1(Math.max(J0*2,g));Y0.set(K),K=Y0}},W=w.f||0,H=w.p||0,$=w.b||0,z=w.l,U=w.d,A=w.m,V=w.n,O=Y*8;do{if(!z){W=$1(J,H,1);var B=$1(J,H+1,3);if(H+=3,!B){var M=$Z(H)+4,q=J[M-4]|J[M-3]<<8,N=M+q;if(N>Y){if(Z)l1(0);break}if(X)Q($+q);K.set(J.subarray(M,N),$),w.b=$+=q,w.p=H=N*8,w.f=W;continue}else if(B==1)z=HZ,U=WZ,A=9,V=5;else if(B==2){var E=$1(J,H,31)+257,_=$1(J,H+10,15)+4,F=E+$1(J,H+5,31)+1;H+=14;var j=new K1(F),T=new K1(19);for(var D=0;D<_;++D)T[YZ[D]]=$1(J,H+D*3,7);H+=_*3;var C=t6(T),k=(1<<C)-1,c=g5(T,C,1);for(var D=0;D<F;){var u=c[$1(J,H,k)];H+=u&15;var M=u>>>4;if(M<16)j[D++]=M;else{var p=0,P=0;if(M==16)P=3+$1(J,H,3),H+=2,p=j[D-1];else if(M==17)P=3+$1(J,H,7),H+=3;else if(M==18)P=11+$1(J,H,127),H+=7;while(P--)j[D++]=p}}var S=j.subarray(0,E),I=j.subarray(E);A=t6(S),V=t6(I),z=g5(S,A,1),U=g5(I,V,1)}else l1(1);if(H>O){if(Z)l1(0);break}}if(X)Q($+131072);var l=(1<<A)-1,f=(1<<V)-1,o=H;for(;;o=H){var p=z[e6(J,H)&l],i=p>>>4;if(H+=p&15,H>O){if(Z)l1(0);break}if(!p)l1(2);if(i<256)K[$++]=i;else if(i==256){o=H,z=null;break}else{var m=i-254;if(i>264){var D=i-257,d=TJ[D];m=$1(J,H,(1<<d)-1)+vJ[D],H+=d}var y=U[e6(J,H)&f],h=y>>>4;if(!y)l1(3);H+=y&15;var I=QZ[h];if(h>3){var d=CJ[h];I+=e6(J,H)&(1<<d)-1,H+=d}if(H>O){if(Z)l1(0);break}if(X)Q($+131072);var s=$+m;for(;$<s;$+=4)K[$]=K[$-I],K[$+1]=K[$+1-I],K[$+2]=K[$+2-I],K[$+3]=K[$+3-I];$=s}}if(w.l=z,w.p=o,w.b=$,w.f=W,z)W=1,w.m=A,w.d=U,w.n=V}while(!W);return $==K.length?K:zZ(K,0,$)},VZ=new K1(0);function BZ(J,K){return AZ(J,K)}var GZ=typeof TextDecoder<"u"&&new TextDecoder,MZ=0;try{GZ.decode(VZ,{stream:!0}),MZ=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};f0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,K,w,Y,X,Z){this.commands.push({type:"C",x1:J,y1:K,x2:w,y2:Y,x:X,y:Z})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,K,w,Y){this.commands.push({type:"Q",x1:J,y1:K,x:w,y:Y})};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 K(Q){if(Math.round(Q)===Q)return""+Math.round(Q);else return Q.toFixed(J)}function w(){var Q=arguments,W="";for(var H=0;H<arguments.length;H+=1){var $=Q[H];if($>=0&&H>0)W+=" ";W+=K($)}return W}var Y="";for(var X=0;X<this.commands.length;X+=1){var Z=this.commands[X];if(Z.type==="M")Y+="M"+w(Z.x,Z.y);else if(Z.type==="L")Y+="L"+w(Z.x,Z.y);else if(Z.type==="C")Y+="C"+w(Z.x1,Z.y1,Z.x2,Z.y2,Z.x,Z.y);else if(Z.type==="Q")Y+="Q"+w(Z.x1,Z.y1,Z.x,Z.y);else if(Z.type==="Z")Y+="Z"}return Y};var OZ=[".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"],LZ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],qZ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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 hJ(J){this.font=J}hJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),w=this.font.glyphs;if(w)for(var Y=0;Y<w.length;Y+=1){var X=w.get(Y);for(var Z=0;Z<X.unicodes.length;Z+=1)if(X.unicodes[Z]===K)return Y}return null};function kJ(J){this.cmap=J}kJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function R8(J,K){this.encoding=J,this.charset=K}R8.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),w=this.encoding[K];return this.charset.indexOf(w)};function NZ(J){var K,w=J.tables.cmap.glyphIndexMap,Y=Object.keys(w);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=w[Z];K=J.glyphs.get(Q),K.addUnicode(parseInt(Z))}}function jZ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,w=Object.keys(K);for(var Y=0;Y<w.length;Y+=1){var X=w[Y],Z=K[X];if(J._IndexToUnicodeMap[Z]===void 0)J._IndexToUnicodeMap[Z]={unicodes:[parseInt(X)]};else J._IndexToUnicodeMap[Z].unicodes.push(parseInt(X))}}function EZ(J,K){if(K.lowMemory)jZ(J);else NZ(J)}function gJ(J){throw Error(J)}function JJ(J,K){if(!J)gJ(K)}var z0={fail:gJ,argument:JJ,assert:JJ};function FZ(J,K){var w=K||new f0;return{configurable:!0,get:function(){if(typeof w==="function")w=w();return w},set:function(Y){w=Y}}}function S1(J){this.bindConstructorValues(J)}S1.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",FZ(this,J.path))};S1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};S1.prototype.getPath=function(J,K,w,Y,X){J=J!==void 0?J:0,K=K!==void 0?K:0,w=w!==void 0?w:72;var Z,Q;if(!Y)Y={};var{xScale:W,yScale:H}=Y;if(Y.hinting&&X&&X.hinting)Q=this.path&&X.hinting.exec(this,w);if(Q)Z=X.hinting.getCommands(Q),J=Math.round(J),K=Math.round(K),W=H=1;else{Z=this.path.commands;var $=1/(this.path.unitsPerEm||1000)*w;if(W===void 0)W=$;if(H===void 0)H=$}var z=new f0;for(var U=0;U<Z.length;U+=1){var A=Z[U];if(A.type==="M")z.moveTo(J+A.x*W,K+-A.y*H);else if(A.type==="L")z.lineTo(J+A.x*W,K+-A.y*H);else if(A.type==="Q")z.quadraticCurveTo(J+A.x1*W,K+-A.y1*H,J+A.x*W,K+-A.y*H);else if(A.type==="C")z.curveTo(J+A.x1*W,K+-A.y1*H,J+A.x2*W,K+-A.y2*H,J+A.x*W,K+-A.y*H);else if(A.type==="Z")z.closePath()}return z};S1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var w=0;w<this.points.length;w+=1){var Y=this.points[w];if(K.push(Y),Y.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};S1.prototype.getMetrics=function(){var J=this.path.commands,K=[],w=[];for(var Y=0;Y<J.length;Y+=1){var X=J[Y];if(X.type!=="Z")K.push(X.x),w.push(X.y);if(X.type==="Q"||X.type==="C")K.push(X.x1),w.push(X.y1);if(X.type==="C")K.push(X.x2),w.push(X.y2)}var Z={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,w),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,w),leftSideBearing:this.leftSideBearing};if(!isFinite(Z.xMin))Z.xMin=0;if(!isFinite(Z.xMax))Z.xMax=this.advanceWidth;if(!isFinite(Z.yMin))Z.yMin=0;if(!isFinite(Z.yMax))Z.yMax=0;return Z.rightSideBearing=this.advanceWidth-Z.leftSideBearing-(Z.xMax-Z.xMin),Z};function j8(J,K,w){Object.defineProperty(J,K,{get:function(){return J.path,J[w]},set:function(Y){J[w]=Y},enumerable:!0,configurable:!0})}function z4(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var w=0;w<K.length;w++){var Y=K[w];Y.path.unitsPerEm=J.unitsPerEm,this.glyphs[w]=Y}this.length=K&&K.length||0}z4.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 K=this.glyphs[J],w=this.font._IndexToUnicodeMap[J];if(w)for(var Y=0;Y<w.unicodes.length;Y++)K.addUnicode(w.unicodes[Y]);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]};z4.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function RZ(J,K){return new S1({index:K,font:J})}function _Z(J,K,w,Y,X,Z){return function(){var Q=new S1({index:K,font:J});return Q.path=function(){w(Q,Y,X);var W=Z(J.glyphs,Q);return W.unitsPerEm=J.unitsPerEm,W},j8(Q,"xMin","_xMin"),j8(Q,"xMax","_xMax"),j8(Q,"yMin","_yMin"),j8(Q,"yMax","_yMax"),Q}}function DZ(J,K,w,Y){return function(){var X=new S1({index:K,font:J});return X.path=function(){var Z=w(J,X,Y);return Z.unitsPerEm=J.unitsPerEm,Z},X}}var R1={GlyphSet:z4,glyphLoader:RZ,ttfGlyphLoader:_Z,cffGlyphLoader:DZ};function J4(J,K){var w=0,Y=J.length-1;while(w<=Y){var X=w+Y>>>1,Z=J[X].tag;if(Z===K)return X;else if(Z<K)w=X+1;else Y=X-1}return-w-1}function KJ(J,K){var w=0,Y=J.length-1;while(w<=Y){var X=w+Y>>>1,Z=J[X];if(Z===K)return X;else if(Z<K)w=X+1;else Y=X-1}return-w-1}function wJ(J,K){var w,Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1;w=J[Z];var Q=w.start;if(Q===K)return w;else if(Q<K)Y=Z+1;else X=Z-1}if(Y>0){if(w=J[Y-1],K>w.end)return 0;return w}}function m5(J,K){this.font=J,this.tableName=K}m5.prototype={searchTag:J4,binSearch:KJ,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var w=0;w<J.scripts.length;w++){var Y=J.scripts[w].tag;if(Y==="DFLT")return Y;if(Y==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var w=this.getTable(K);if(w){J=J||"DFLT";var Y=w.scripts,X=J4(w.scripts,J);if(X>=0)return Y[X].script;else if(K){var Z={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return Y.splice(-1-X,0,Z),Z.script}}},getLangSysTable:function(J,K,w){var Y=this.getScriptTable(J,w);if(Y){if(!K||K==="dflt"||K==="DFLT")return Y.defaultLangSys;var X=J4(Y.langSysRecords,K);if(X>=0)return Y.langSysRecords[X].langSys;else if(w){var Z={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return Y.langSysRecords.splice(-1-X,0,Z),Z.langSys}}},getFeatureTable:function(J,K,w,Y){var X=this.getLangSysTable(J,K,Y);if(X){var Z,Q=X.featureIndexes,W=this.font.tables[this.tableName].features;for(var H=0;H<Q.length;H++)if(Z=W[Q[H]],Z.tag===w)return Z.feature;if(Y){var $=W.length;return z0.assert($===0||w>=W[$-1].tag,"Features must be added in alphabetical order."),Z={tag:w,feature:{params:0,lookupListIndexes:[]}},W.push(Z),Q.push($),Z.feature}}},getLookupTables:function(J,K,w,Y,X){var Z=this.getFeatureTable(J,K,w,X),Q=[];if(Z){var W,H=Z.lookupListIndexes,$=this.font.tables[this.tableName].lookups;for(var z=0;z<H.length;z++)if(W=$[H[z]],W.lookupType===Y)Q.push(W);if(Q.length===0&&X){W={lookupType:Y,lookupFlag:0,subtables:[],markFilteringSet:void 0};var U=$.length;return $.push(W),H.push(U),[W]}}return Q},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var w=wJ(J.ranges,K);return w?w.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var w=KJ(J.glyphs,K);return w>=0?w:-1;case 2:var Y=wJ(J.ranges,K);return Y?Y.index+K-Y.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],w=J.ranges;for(var Y=0;Y<w.length;Y++){var X=w[Y],Z=X.start,Q=X.end;for(var W=Z;W<=Q;W++)K.push(W)}return K}}};function d5(J){m5.call(this,J,"gpos")}d5.prototype=m5.prototype;d5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};d5.prototype.getKerningValue=function(J,K,w){for(var Y=0;Y<J.length;Y++){var X=J[Y].subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z],W=this.getCoverageIndex(Q.coverage,K);if(W<0)continue;switch(Q.posFormat){case 1:var H=Q.pairSets[W];for(var $=0;$<H.length;$++){var z=H[$];if(z.secondGlyph===w)return z.value1&&z.value1.xAdvance||0}break;case 2:var U=this.getGlyphClass(Q.classDef1,K),A=this.getGlyphClass(Q.classDef2,w),V=Q.classRecords[U][A];return V.value1&&V.value1.xAdvance||0}}}return 0};d5.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function n0(J){m5.call(this,J,"gsub")}function IZ(J,K){var w=J.length;if(w!==K.length)return!1;for(var Y=0;Y<w;Y++)if(J[Y]!==K[Y])return!1;return!0}function U4(J,K,w){var Y=J.subtables;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.substFormat===K)return Z}if(w)return Y.push(w),w;return}n0.prototype=m5.prototype;n0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};n0.prototype.getSingle=function(J,K,w){var Y=[],X=this.getLookupTables(K,w,J,1);for(var Z=0;Z<X.length;Z++){var Q=X[Z].subtables;for(var W=0;W<Q.length;W++){var H=Q[W],$=this.expandCoverage(H.coverage),z=void 0;if(H.substFormat===1){var U=H.deltaGlyphId;for(z=0;z<$.length;z++){var A=$[z];Y.push({sub:A,by:A+U})}}else{var V=H.substitute;for(z=0;z<$.length;z++)Y.push({sub:$[z],by:V[z]})}}}return Y};n0.prototype.getMultiple=function(J,K,w){var Y=[],X=this.getLookupTables(K,w,J,2);for(var Z=0;Z<X.length;Z++){var Q=X[Z].subtables;for(var W=0;W<Q.length;W++){var H=Q[W],$=this.expandCoverage(H.coverage),z=void 0;for(z=0;z<$.length;z++){var U=$[z],A=H.sequences[z];Y.push({sub:U,by:A})}}}return Y};n0.prototype.getAlternates=function(J,K,w){var Y=[],X=this.getLookupTables(K,w,J,3);for(var Z=0;Z<X.length;Z++){var Q=X[Z].subtables;for(var W=0;W<Q.length;W++){var H=Q[W],$=this.expandCoverage(H.coverage),z=H.alternateSets;for(var U=0;U<$.length;U++)Y.push({sub:$[U],by:z[U]})}}return Y};n0.prototype.getLigatures=function(J,K,w){var Y=[],X=this.getLookupTables(K,w,J,4);for(var Z=0;Z<X.length;Z++){var Q=X[Z].subtables;for(var W=0;W<Q.length;W++){var H=Q[W],$=this.expandCoverage(H.coverage),z=H.ligatureSets;for(var U=0;U<$.length;U++){var A=$[U],V=z[U];for(var O=0;O<V.length;O++){var B=V[O];Y.push({sub:[A].concat(B.components),by:B.ligGlyph})}}}}return Y};n0.prototype.addSingle=function(J,K,w,Y){var X=this.getLookupTables(w,Y,J,1,!0)[0],Z=U4(X,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Z.coverage.format===1,"Single: unable to modify coverage table format "+Z.coverage.format);var Q=K.sub,W=this.binSearch(Z.coverage.glyphs,Q);if(W<0)W=-1-W,Z.coverage.glyphs.splice(W,0,Q),Z.substitute.splice(W,0,0);Z.substitute[W]=K.by};n0.prototype.addMultiple=function(J,K,w,Y){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var X=this.getLookupTables(w,Y,J,2,!0)[0],Z=U4(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Z.coverage.format===1,"Multiple: unable to modify coverage table format "+Z.coverage.format);var Q=K.sub,W=this.binSearch(Z.coverage.glyphs,Q);if(W<0)W=-1-W,Z.coverage.glyphs.splice(W,0,Q),Z.sequences.splice(W,0,0);Z.sequences[W]=K.by};n0.prototype.addAlternate=function(J,K,w,Y){var X=this.getLookupTables(w,Y,J,3,!0)[0],Z=U4(X,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Z.coverage.format===1,"Alternate: unable to modify coverage table format "+Z.coverage.format);var Q=K.sub,W=this.binSearch(Z.coverage.glyphs,Q);if(W<0)W=-1-W,Z.coverage.glyphs.splice(W,0,Q),Z.alternateSets.splice(W,0,0);Z.alternateSets[W]=K.by};n0.prototype.addLigature=function(J,K,w,Y){var X=this.getLookupTables(w,Y,J,4,!0)[0],Z=X.subtables[0];if(!Z)Z={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},X.subtables[0]=Z;z0.assert(Z.coverage.format===1,"Ligature: unable to modify coverage table format "+Z.coverage.format);var Q=K.sub[0],W=K.sub.slice(1),H={ligGlyph:K.by,components:W},$=this.binSearch(Z.coverage.glyphs,Q);if($>=0){var z=Z.ligatureSets[$];for(var U=0;U<z.length;U++)if(IZ(z[U].components,W))return;z.push(H)}else $=-1-$,Z.coverage.glyphs.splice($,0,Q),Z.ligatureSets.splice($,0,[H])};n0.prototype.getFeature=function(J,K,w){if(/ss\d\d/.test(J))return this.getSingle(J,K,w);switch(J){case"aalt":case"salt":return this.getSingle(J,K,w).concat(this.getAlternates(J,K,w));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,w);case"ccmp":return this.getMultiple(J,K,w).concat(this.getLigatures(J,K,w));case"stch":return this.getMultiple(J,K,w)}return};n0.prototype.add=function(J,K,w,Y){if(/ss\d\d/.test(J))return this.addSingle(J,K,w,Y);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,w,Y);return this.addAlternate(J,K,w,Y);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,w,Y);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,w,Y);return this.addLigature(J,K,w,Y)}return};function k5(J,K){if(!J)throw K}function YJ(J,K){return J.getUint8(K)}function _8(J,K){return J.getUint16(K,!1)}function TZ(J,K){return J.getInt16(K,!1)}function A4(J,K){return J.getUint32(K,!1)}function xJ(J,K){var w=J.getInt16(K,!1),Y=J.getUint16(K+2,!1);return w+Y/65535}function CZ(J,K){var w="";for(var Y=K;Y<K+4;Y+=1)w+=String.fromCharCode(J.getInt8(Y));return w}function PZ(J,K,w){var Y=0;for(var X=0;X<w;X+=1)Y<<=8,Y+=J.getUint8(K+X);return Y}function SZ(J,K,w){var Y=[];for(var X=K;X<w;X+=1)Y.push(J.getUint8(X));return Y}function vZ(J){var K="";for(var w=0;w<J.length;w+=1)K+=String.fromCharCode(J[w]);return K}var yZ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=A4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=xJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,w=this.offset+this.relativeOffset,Y="";this.relativeOffset+=J;for(var X=0;X<J;X++)Y+=String.fromCharCode(K.getUint8(w+X));return Y};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=A4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=_8(this.data,this.offset+this.relativeOffset),w=_8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+w/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=yZ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),w=this.data,Y=this.offset+this.relativeOffset;for(var X=0;X<J;X++)K[X]=w.getUint32(Y),Y+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),w=this.data,Y=this.offset+this.relativeOffset;for(var X=0;X<J;X++)K[X]=w.getUint16(Y),Y+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),w=this.data,Y=this.offset+this.relativeOffset;for(var X=0;X<J;X++)K[X]=w.getInt16(Y),Y+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),w=this.data,Y=this.offset+this.relativeOffset;for(var X=0;X<J;X++)K[X]=w.getUint8(Y++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var w=Array(J);for(var Y=0;Y<J;Y++)w[Y]=K.call(this);return w};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var w=Array(J);for(var Y=0;Y<J;Y++)w[Y]=K.call(this);return w};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var w=Array(J),Y=Object.keys(K);for(var X=0;X<J;X++){var Z={};for(var Q=0;Q<Y.length;Q++){var W=Y[Q],H=K[W];Z[W]=H.call(this)}w[X]=Z}return w};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var w=Array(J),Y=Object.keys(K);for(var X=0;X<J;X++){var Z={};for(var Q=0;Q<Y.length;Q++){var W=Y[Q],H=K[W];Z[W]=H.call(this)}w[X]=Z}return w};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),w={};for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=J[X];w[X]=Z.call(this)}return w}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),w=Array(K);for(var Y=0;Y<K;Y++)w[Y]=this.parseValueRecord(J);return w};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),w=K.length,Y=this.relativeOffset,X=Array(w);for(var Z=0;Z<w;Z++){var Q=K[Z];if(Q===0){X[Z]=void 0;continue}if(this.relativeOffset=Q,J){var W=this.parseOffset16List(),H=Array(W.length);for(var $=0;$<W.length;$++)this.relativeOffset=Q+W[$],H[$]=J.call(this);X[Z]=H}else X[Z]=this.parseUShortList()}return this.relativeOffset=Y,X};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),w=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(w)};else if(K===2){var Y=Array(w);for(var X=0;X<w;X++)Y[X]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:Y}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var XJ={reserved:v.uShort,reqFeatureIndex:v.uShort,featureIndexes:v.uShortList};v.prototype.parseScriptList=function(){return this.parsePointer(v.recordList({tag:v.tag,script:v.pointer({defaultLangSys:v.pointer(XJ),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(XJ)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var w=this.parseUShort(),Y=w&16;return{lookupType:K,lookupFlag:w,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:Y?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();z0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var w=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return w})||[]};var n={getByte:YJ,getCard8:YJ,getUShort:_8,getCard16:_8,getShort:TZ,getULong:A4,getFixed:xJ,getTag:CZ,getOffset:PZ,getBytes:SZ,bytesToString:vZ,Parser:v};function ZJ(J,K,w,Y,X){var Z;if((K&Y)>0){if(Z=J.parseByte(),(K&X)===0)Z=-Z;Z=w+Z}else if((K&X)>0)Z=w;else Z=w+J.parseShort();return Z}function bJ(J,K,w){var Y=new n.Parser(K,w);J.numberOfContours=Y.parseShort(),J._xMin=Y.parseShort(),J._yMin=Y.parseShort(),J._xMax=Y.parseShort(),J._yMax=Y.parseShort();var X,Z;if(J.numberOfContours>0){var Q=J.endPointIndices=[];for(var W=0;W<J.numberOfContours;W+=1)Q.push(Y.parseUShort());J.instructionLength=Y.parseUShort(),J.instructions=[];for(var H=0;H<J.instructionLength;H+=1)J.instructions.push(Y.parseByte());var $=Q[Q.length-1]+1;X=[];for(var z=0;z<$;z+=1)if(Z=Y.parseByte(),X.push(Z),(Z&8)>0){var U=Y.parseByte();for(var A=0;A<U;A+=1)X.push(Z),z+=1}if(z0.argument(X.length===$,"Bad flags."),Q.length>0){var V=[],O;if($>0){for(var B=0;B<$;B+=1)Z=X[B],O={},O.onCurve=!!(Z&1),O.lastPointOfContour=Q.indexOf(B)>=0,V.push(O);var M=0;for(var q=0;q<$;q+=1)Z=X[q],O=V[q],O.x=ZJ(Y,Z,M,2,16),M=O.x;var N=0;for(var E=0;E<$;E+=1)Z=X[E],O=V[E],O.y=ZJ(Y,Z,N,4,32),N=O.y}J.points=V}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var _=!0;while(_){X=Y.parseUShort();var F={glyphIndex:Y.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((X&1)>0)if((X&2)>0)F.dx=Y.parseShort(),F.dy=Y.parseShort();else F.matchedPoints=[Y.parseUShort(),Y.parseUShort()];else if((X&2)>0)F.dx=Y.parseChar(),F.dy=Y.parseChar();else F.matchedPoints=[Y.parseByte(),Y.parseByte()];if((X&8)>0)F.xScale=F.yScale=Y.parseF2Dot14();else if((X&64)>0)F.xScale=Y.parseF2Dot14(),F.yScale=Y.parseF2Dot14();else if((X&128)>0)F.xScale=Y.parseF2Dot14(),F.scale01=Y.parseF2Dot14(),F.scale10=Y.parseF2Dot14(),F.yScale=Y.parseF2Dot14();J.components.push(F),_=!!(X&32)}if(X&256){J.instructionLength=Y.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(Y.parseByte())}}}function K4(J,K){var w=[];for(var Y=0;Y<J.length;Y+=1){var X=J[Y],Z={x:K.xScale*X.x+K.scale01*X.y+K.dx,y:K.scale10*X.x+K.yScale*X.y+K.dy,onCurve:X.onCurve,lastPointOfContour:X.lastPointOfContour};w.push(Z)}return w}function hZ(J){var K=[],w=[];for(var Y=0;Y<J.length;Y+=1){var X=J[Y];if(w.push(X),X.lastPointOfContour)K.push(w),w=[]}return z0.argument(w.length===0,"There are still points left in the current contour."),K}function fJ(J){var K=new f0;if(!J)return K;var w=hZ(J);for(var Y=0;Y<w.length;++Y){var X=w[Y],Z=null,Q=X[X.length-1],W=X[0];if(Q.onCurve)K.moveTo(Q.x,Q.y);else if(W.onCurve)K.moveTo(W.x,W.y);else{var H={x:(Q.x+W.x)*0.5,y:(Q.y+W.y)*0.5};K.moveTo(H.x,H.y)}for(var $=0;$<X.length;++$)if(Z=Q,Q=W,W=X[($+1)%X.length],Q.onCurve)K.lineTo(Q.x,Q.y);else{var z=Z,U=W;if(!Z.onCurve)z={x:(Q.x+Z.x)*0.5,y:(Q.y+Z.y)*0.5};if(!W.onCurve)U={x:(Q.x+W.x)*0.5,y:(Q.y+W.y)*0.5};K.quadraticCurveTo(Q.x,Q.y,U.x,U.y)}K.closePath()}return K}function mJ(J,K){if(K.isComposite)for(var w=0;w<K.components.length;w+=1){var Y=K.components[w],X=J.get(Y.glyphIndex);if(X.getPath(),X.points){var Z=void 0;if(Y.matchedPoints===void 0)Z=K4(X.points,Y);else{if(Y.matchedPoints[0]>K.points.length-1||Y.matchedPoints[1]>X.points.length-1)throw Error("Matched points out of range in "+K.name);var Q=K.points[Y.matchedPoints[0]],W=X.points[Y.matchedPoints[1]],H={xScale:Y.xScale,scale01:Y.scale01,scale10:Y.scale10,yScale:Y.yScale,dx:0,dy:0};W=K4([W],H)[0],H.dx=Q.x-W.x,H.dy=Q.y-W.y,Z=K4(X.points,H)}K.points=K.points.concat(Z)}}return fJ(K.points)}function kZ(J,K,w,Y){var X=new R1.GlyphSet(Y);for(var Z=0;Z<w.length-1;Z+=1){var Q=w[Z],W=w[Z+1];if(Q!==W)X.push(Z,R1.ttfGlyphLoader(Y,Z,bJ,J,K+Q,mJ));else X.push(Z,R1.glyphLoader(Y,Z))}return X}function gZ(J,K,w,Y){var X=new R1.GlyphSet(Y);return Y._push=function(Z){var Q=w[Z],W=w[Z+1];if(Q!==W)X.push(Z,R1.ttfGlyphLoader(Y,Z,bJ,J,K+Q,mJ));else X.push(Z,R1.glyphLoader(Y,Z))},X}function xZ(J,K,w,Y,X){if(X.lowMemory)return gZ(J,K,w,Y);else return kZ(J,K,w,Y)}var dJ={getPath:fJ,parse:xZ},lJ,Z5,cJ,W4;function uJ(J){this.font=J,this.getCommands=function(K){return dJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function bZ(J){return J}function pJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function fZ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function mZ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function dZ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function lZ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var iJ=function(J){var K=this.srPeriod,w=this.srPhase,Y=this.srThreshold,X=1;if(J<0)J=-J,X=-1;if(J+=Y-w,J=Math.trunc(J/K)*K,J+=w,J<0)return w*X;return J*X},F1={x:1,y:0,axis:"x",distance:function(J,K,w,Y){return(w?J.xo:J.x)-(Y?K.xo:K.x)},interpolate:function(J,K,w,Y){var X,Z,Q,W,H,$,z;if(!Y||Y===this){if(X=J.xo-K.xo,Z=J.xo-w.xo,H=K.x-K.xo,$=w.x-w.xo,Q=Math.abs(X),W=Math.abs(Z),z=Q+W,z===0){J.x=J.xo+(H+$)/2;return}J.x=J.xo+(H*W+$*Q)/z;return}if(X=Y.distance(J,K,!0,!0),Z=Y.distance(J,w,!0,!0),H=Y.distance(K,K,!1,!0),$=Y.distance(w,w,!1,!0),Q=Math.abs(X),W=Math.abs(Z),z=Q+W,z===0){F1.setRelative(J,J,(H+$)/2,Y,!0);return}F1.setRelative(J,J,(H*W+$*Q)/z,Y,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,w,Y,X){if(!Y||Y===this){J.x=(X?K.xo:K.x)+w;return}var Z=X?K.xo:K.x,Q=X?K.yo:K.y,W=Z+w*Y.x,H=Q+w*Y.y;J.x=W+(J.y-H)/Y.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},C1={x:0,y:1,axis:"y",distance:function(J,K,w,Y){return(w?J.yo:J.y)-(Y?K.yo:K.y)},interpolate:function(J,K,w,Y){var X,Z,Q,W,H,$,z;if(!Y||Y===this){if(X=J.yo-K.yo,Z=J.yo-w.yo,H=K.y-K.yo,$=w.y-w.yo,Q=Math.abs(X),W=Math.abs(Z),z=Q+W,z===0){J.y=J.yo+(H+$)/2;return}J.y=J.yo+(H*W+$*Q)/z;return}if(X=Y.distance(J,K,!0,!0),Z=Y.distance(J,w,!0,!0),H=Y.distance(K,K,!1,!0),$=Y.distance(w,w,!1,!0),Q=Math.abs(X),W=Math.abs(Z),z=Q+W,z===0){C1.setRelative(J,J,(H+$)/2,Y,!0);return}C1.setRelative(J,J,(H*W+$*Q)/z,Y,!0)},normalSlope:0,setRelative:function(J,K,w,Y,X){if(!Y||Y===this){J.y=(X?K.yo:K.y)+w;return}var Z=X?K.xo:K.x,Q=X?K.yo:K.y,W=Z+w*Y.x,H=Q+w*Y.y;J.y=H+Y.normalSlope*(J.x-W)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(F1);Object.freeze(C1);function l5(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}l5.prototype.distance=function(J,K,w,Y){return this.x*F1.distance(J,K,w,Y)+this.y*C1.distance(J,K,w,Y)};l5.prototype.interpolate=function(J,K,w,Y){var X,Z,Q,W,H,$,z;if(Q=Y.distance(J,K,!0,!0),W=Y.distance(J,w,!0,!0),X=Y.distance(K,K,!1,!0),Z=Y.distance(w,w,!1,!0),H=Math.abs(Q),$=Math.abs(W),z=H+$,z===0){this.setRelative(J,J,(X+Z)/2,Y,!0);return}this.setRelative(J,J,(X*$+Z*H)/z,Y,!0)};l5.prototype.setRelative=function(J,K,w,Y,X){Y=Y||this;var Z=X?K.xo:K.x,Q=X?K.yo:K.y,W=Z+w*Y.x,H=Q+w*Y.y,$=Y.normalSlope,z=this.slope,U=J.x,A=J.y;J.x=(z*U-$*W+H-A)/(z-$),J.y=z*(J.x-U)+A};l5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function c5(J,K){var w=Math.sqrt(J*J+K*K);if(J/=w,K/=w,J===1&&K===0)return F1;else if(J===0&&K===1)return C1;else return new l5(J,K)}function P1(J,K,w,Y){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=w,this.onCurve=Y,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}P1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};P1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var b5=Object.freeze(new P1(0,0)),cZ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function u1(J,K){switch(this.env=J,this.stack=[],this.prog=K,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=F1,this.round=pJ}}uJ.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var w=this.font,Y=this._prepState;if(!Y||Y.ppem!==K){var X=this._fpgmState;if(!X){if(u1.prototype=cZ,X=this._fpgmState=new u1("fpgm",w.tables.fpgm),X.funcs=[],X.font=w,pV.DEBUG)console.log("---EXEC FPGM---"),X.step=-1;try{Z5(X)}catch($){console.log("Hinting error in FPGM:"+$),this._errorState=3;return}}u1.prototype=X,Y=this._prepState=new u1("prep",w.tables.prep),Y.ppem=K;var Z=w.tables.cvt;if(Z){var Q=Y.cvt=Array(Z.length),W=K/w.unitsPerEm;for(var H=0;H<Z.length;H++)Q[H]=Z[H]*W}else Y.cvt=[];if(pV.DEBUG)console.log("---EXEC PREP---"),Y.step=-1;try{Z5(Y)}catch($){if(this._errorState<2)console.log("Hinting error in PREP:"+$);this._errorState=2}}if(this._errorState>1)return;try{return cJ(J,Y)}catch($){if(this._errorState<1)console.log("Hinting error:"+$),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};cJ=function(J,K){var w=K.ppem/K.font.unitsPerEm,Y=w,X=J.components,Z,Q,W;if(u1.prototype=K,!X){if(W=new u1("glyf",J.instructions),pV.DEBUG)console.log("---EXEC GLYPH---"),W.step=-1;W4(J,W,w,Y),Q=W.gZone}else{var H=K.font;Q=[],Z=[];for(var $=0;$<X.length;$++){var z=X[$],U=H.glyphs.get(z.glyphIndex);if(W=new u1("glyf",U.instructions),pV.DEBUG)console.log("---EXEC COMP "+$+"---"),W.step=-1;W4(U,W,w,Y);var A=Math.round(z.dx*w),V=Math.round(z.dy*Y),O=W.gZone,B=W.contours;for(var M=0;M<O.length;M++){var q=O[M];q.xTouched=q.yTouched=!1,q.xo=q.x=q.x+A,q.yo=q.y=q.y+V}var N=Q.length;Q.push.apply(Q,O);for(var E=0;E<B.length;E++)Z.push(B[E]+N)}if(J.instructions&&!W.inhibitGridFit){if(W=new u1("glyf",J.instructions),W.gZone=W.z0=W.z1=W.z2=Q,W.contours=Z,Q.push(new P1(0,0),new P1(Math.round(J.advanceWidth*w),0)),pV.DEBUG)console.log("---EXEC COMPOSITE---"),W.step=-1;Z5(W),Q.length-=2}}return Q};W4=function(J,K,w,Y){var X=J.points||[],Z=X.length,Q=K.gZone=K.z0=K.z1=K.z2=[],W=K.contours=[],H;for(var $=0;$<Z;$++)H=X[$],Q[$]=new P1(H.x*w,H.y*Y,H.lastPointOfContour,H.onCurve);var z,U;for(var A=0;A<Z;A++){if(H=Q[A],!z)z=H,W.push(A);if(H.lastPointOfContour)H.nextPointOnContour=z,z.prevPointOnContour=H,z=void 0;else U=Q[A+1],H.nextPointOnContour=U,U.prevPointOnContour=H}if(K.inhibitGridFit)return;if(pV.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var V=0;V<Z;V++)console.log(V,Q[V].x,Q[V].y)}if(Q.push(new P1(0,0),new P1(Math.round(J.advanceWidth*w),0)),Z5(K),Q.length-=2,pV.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var O=0;O<Z;O++)console.log(O,Q[O].x,Q[O].y)}};Z5=function(J){var K=J.prog;if(!K)return;var w=K.length,Y;for(J.ip=0;J.ip<w;J.ip++){if(pV.DEBUG)J.step++;if(Y=lJ[K[J.ip]],!Y)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));Y(J)}};function D8(J){var K=J.tZone=Array(J.gZone.length);for(var w=0;w<K.length;w++)K[w]=new P1(0,0)}function rJ(J,K){var{prog:w,ip:Y}=J,X=1,Z;do if(Z=w[++Y],Z===88)X++;else if(Z===89)X--;else if(Z===64)Y+=w[Y+1]+1;else if(Z===65)Y+=2*w[Y+1]+1;else if(Z>=176&&Z<=183)Y+=Z-176+1;else if(Z>=184&&Z<=191)Y+=(Z-184+1)*2;else if(K&&X===1&&Z===27)break;while(X>0);J.ip=Y}function QJ(J,K){if(pV.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function HJ(J,K){if(pV.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function WJ(J,K){if(pV.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function $J(J,K){var w=K.stack,Y=w.pop(),X=w.pop(),Z=K.z2[Y],Q=K.z1[X];if(pV.DEBUG)console.log("SPVTL["+J+"]",Y,X);var W,H;if(!J)W=Q.x-Z.x,H=Q.y-Z.y;else W=Z.y-Q.y,H=Q.x-Z.x;K.pv=K.dpv=c5(W,H)}function zJ(J,K){var w=K.stack,Y=w.pop(),X=w.pop(),Z=K.z2[Y],Q=K.z1[X];if(pV.DEBUG)console.log("SFVTL["+J+"]",Y,X);var W,H;if(!J)W=Q.x-Z.x,H=Q.y-Z.y;else W=Z.y-Q.y,H=Q.x-Z.x;K.fv=c5(W,H)}function uZ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"SPVFS[]",w,Y);J.pv=J.dpv=c5(Y,w)}function pZ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"SPVFS[]",w,Y);J.fv=c5(Y,w)}function iZ(J){var{stack:K,pv:w}=J;if(pV.DEBUG)console.log(J.step,"GPV[]");K.push(w.x*16384),K.push(w.y*16384)}function rZ(J){var{stack:K,fv:w}=J;if(pV.DEBUG)console.log(J.step,"GFV[]");K.push(w.x*16384),K.push(w.y*16384)}function nZ(J){if(J.fv=J.pv,pV.DEBUG)console.log(J.step,"SFVTPV[]")}function oZ(J){var K=J.stack,w=K.pop(),Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),W=J.z0,H=J.z1,$=W[w],z=W[Y],U=H[X],A=H[Z],V=J.z2[Q];if(pV.DEBUG)console.log("ISECT[], ",w,Y,X,Z,Q);var{x:O,y:B}=$,M=z.x,q=z.y,N=U.x,E=U.y,_=A.x,F=A.y,j=(O-M)*(E-F)-(B-q)*(N-_),T=O*q-B*M,D=N*F-E*_;V.x=(T*(N-_)-D*(O-M))/j,V.y=(T*(E-F)-D*(B-q))/j}function sZ(J){if(J.rp0=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function aZ(J){if(J.rp1=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function tZ(J){if(J.rp2=J.stack.pop(),pV.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function eZ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)D8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function JQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)D8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function KQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)D8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function wQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)D8(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 YQ(J){if(J.loop=J.stack.pop(),pV.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function XQ(J){if(pV.DEBUG)console.log(J.step,"RTG[]");J.round=pJ}function ZQ(J){if(pV.DEBUG)console.log(J.step,"RTHG[]");J.round=mZ}function QQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function HQ(J){if(pV.DEBUG)console.log(J.step,"ELSE[]");rJ(J,!1)}function WQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function $Q(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function zQ(J){var K=J.stack;if(pV.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function w4(J){if(pV.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function UQ(J){if(pV.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function AQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"SWAP[]");K.push(w),K.push(Y)}function VQ(J){var K=J.stack;if(pV.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function BQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"LOOPCALL[]",w,Y);var{ip:X,prog:Z}=J;J.prog=J.funcs[w];for(var Q=0;Q<Y;Q++)if(Z5(J),pV.DEBUG)console.log(++J.step,Q+1<Y?"next loopcall":"done loopcall",Q);J.ip=X,J.prog=Z}function GQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"CALL[]",K);var{ip:w,prog:Y}=J;if(J.prog=J.funcs[K],Z5(J),J.ip=w,J.prog=Y,pV.DEBUG)console.log(++J.step,"returning from",K)}function MQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"CINDEX[]",w);K.push(K[K.length-w])}function OQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"MINDEX[]",w);K.push(K.splice(K.length-w,1)[0])}function LQ(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:w,ip:Y}=J,X=K.pop(),Z=Y;if(pV.DEBUG)console.log(J.step,"FDEF[]",X);while(w[++Y]!==45);J.ip=Y,J.funcs[X]=w.slice(Z+1,Y)}function UJ(J,K){var w=K.stack.pop(),Y=K.z0[w],X=K.fv,Z=K.pv;if(pV.DEBUG)console.log(K.step,"MDAP["+J+"]",w);var Q=Z.distance(Y,b5);if(J)Q=K.round(Q);X.setRelative(Y,b5,Q,Z),X.touch(Y),K.rp0=K.rp1=w}function AJ(J,K){var w=K.z2,Y=w.length-2,X,Z,Q;if(pV.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var W=0;W<Y;W++){if(X=w[W],J.touched(X))continue;if(Z=X.prevTouched(J),Z===X)continue;if(Q=X.nextTouched(J),Z===Q)J.setRelative(X,X,J.distance(Z,Z,!1,!0),J,!0);J.interpolate(X,Z,Q,J)}}function VJ(J,K){var w=K.stack,Y=J?K.rp1:K.rp2,X=(J?K.z0:K.z1)[Y],Z=K.fv,Q=K.pv,W=K.loop,H=K.z2;while(W--){var $=w.pop(),z=H[$],U=Q.distance(X,X,!1,!0);if(Z.setRelative(z,z,U,Q),Z.touch(z),pV.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-W)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",$)}K.loop=1}function BJ(J,K){var w=K.stack,Y=J?K.rp1:K.rp2,X=(J?K.z0:K.z1)[Y],Z=K.fv,Q=K.pv,W=w.pop(),H=K.z2[K.contours[W]],$=H;if(pV.DEBUG)console.log(K.step,"SHC["+J+"]",W);var z=Q.distance(X,X,!1,!0);do{if($!==X)Z.setRelative($,$,z,Q);$=$.nextPointOnContour}while($!==H)}function GJ(J,K){var w=K.stack,Y=J?K.rp1:K.rp2,X=(J?K.z0:K.z1)[Y],Z=K.fv,Q=K.pv,W=w.pop();if(pV.DEBUG)console.log(K.step,"SHZ["+J+"]",W);var H;switch(W){case 0:H=K.tZone;break;case 1:H=K.gZone;break;default:throw Error("Invalid zone")}var $,z=Q.distance(X,X,!1,!0),U=H.length-2;for(var A=0;A<U;A++)$=H[A],Z.setRelative($,$,z,Q)}function qQ(J){var{stack:K,loop:w,fv:Y}=J,X=K.pop()/64,Z=J.z2;while(w--){var Q=K.pop(),W=Z[Q];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-w)+": ":"")+"SHPIX[]",Q,X);Y.setRelative(W,W,X),Y.touch(W)}J.loop=1}function NQ(J){var{stack:K,rp1:w,rp2:Y,loop:X}=J,Z=J.z0[w],Q=J.z1[Y],W=J.fv,H=J.dpv,$=J.z2;while(X--){var z=K.pop(),U=$[z];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"IP[]",z,w,"<->",Y);W.interpolate(U,Z,Q,H),W.touch(U)}J.loop=1}function MJ(J,K){var w=K.stack,Y=w.pop()/64,X=w.pop(),Z=K.z1[X],Q=K.z0[K.rp0],W=K.fv,H=K.pv;if(W.setRelative(Z,Q,Y,H),W.touch(Z),pV.DEBUG)console.log(K.step,"MSIRP["+J+"]",Y,X);if(K.rp1=K.rp0,K.rp2=X,J)K.rp0=X}function jQ(J){var{stack:K,rp0:w}=J,Y=J.z0[w],X=J.loop,Z=J.fv,Q=J.pv,W=J.z1;while(X--){var H=K.pop(),$=W[H];if(pV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-X)+": ":"")+"ALIGNRP[]",H);Z.setRelative($,Y,0,Q),Z.touch($)}J.loop=1}function EQ(J){if(pV.DEBUG)console.log(J.step,"RTDG[]");J.round=fZ}function OJ(J,K){var w=K.stack,Y=w.pop(),X=w.pop(),Z=K.z0[X],Q=K.fv,W=K.pv,H=K.cvt[Y];if(pV.DEBUG)console.log(K.step,"MIAP["+J+"]",Y,"(",H,")",X);var $=W.distance(Z,b5);if(J){if(Math.abs($-H)<K.cvCutIn)$=H;$=K.round($)}if(Q.setRelative(Z,b5,$,W),K.zp0===0)Z.xo=Z.x,Z.yo=Z.y;Q.touch(Z),K.rp0=K.rp1=X}function FQ(J){var{prog:K,ip:w,stack:Y}=J,X=K[++w];if(pV.DEBUG)console.log(J.step,"NPUSHB[]",X);for(var Z=0;Z<X;Z++)Y.push(K[++w]);J.ip=w}function RQ(J){var{ip:K,prog:w,stack:Y}=J,X=w[++K];if(pV.DEBUG)console.log(J.step,"NPUSHW[]",X);for(var Z=0;Z<X;Z++){var Q=w[++K]<<8|w[++K];if(Q&32768)Q=-((Q^65535)+1);Y.push(Q)}J.ip=K}function _Q(J){var{stack:K,store:w}=J;if(!w)w=J.store=[];var Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"WS",Y,X);w[X]=Y}function DQ(J){var{stack:K,store:w}=J,Y=K.pop();if(pV.DEBUG)console.log(J.step,"RS",Y);var X=w&&w[Y]||0;K.push(X)}function IQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"WCVTP",w,Y);J.cvt[Y]=w/64}function TQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"RCVT",w);K.push(J.cvt[w]*64)}function LJ(J,K){var w=K.stack,Y=w.pop(),X=K.z2[Y];if(pV.DEBUG)console.log(K.step,"GC["+J+"]",Y);w.push(K.dpv.distance(X,b5,J,!1)*64)}function qJ(J,K){var w=K.stack,Y=w.pop(),X=w.pop(),Z=K.z1[Y],Q=K.z0[X],W=K.dpv.distance(Q,Z,J,J);if(pV.DEBUG)console.log(K.step,"MD["+J+"]",Y,X,"->",W);K.stack.push(Math.round(W*64))}function CQ(J){if(pV.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function PQ(J){if(pV.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function SQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"LT[]",w,Y);K.push(Y<w?1:0)}function vQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"LTEQ[]",w,Y);K.push(Y<=w?1:0)}function yQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"GT[]",w,Y);K.push(Y>w?1:0)}function hQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"GTEQ[]",w,Y);K.push(Y>=w?1:0)}function kQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"EQ[]",w,Y);K.push(w===Y?1:0)}function gQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"NEQ[]",w,Y);K.push(w!==Y?1:0)}function xQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"ODD[]",w);K.push(Math.trunc(w)%2?1:0)}function bQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"EVEN[]",w);K.push(Math.trunc(w)%2?0:1)}function fQ(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(rJ(J,!0),pV.DEBUG)console.log(J.step,"EIF[]")}}function mQ(J){if(pV.DEBUG)console.log(J.step,"EIF[]")}function dQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"AND[]",w,Y);K.push(w&&Y?1:0)}function lQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"OR[]",w,Y);K.push(w||Y?1:0)}function cQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"NOT[]",w);K.push(w?0:1)}function Y4(J,K){var w=K.stack,Y=w.pop(),X=K.fv,Z=K.pv,Q=K.ppem,W=K.deltaBase+(J-1)*16,H=K.deltaShift,$=K.z0;if(pV.DEBUG)console.log(K.step,"DELTAP["+J+"]",Y,w);for(var z=0;z<Y;z++){var U=w.pop(),A=w.pop(),V=W+((A&240)>>4);if(V!==Q)continue;var O=(A&15)-8;if(O>=0)O++;if(pV.DEBUG)console.log(K.step,"DELTAPFIX",U,"by",O*H);var B=$[U];X.setRelative(B,B,O*H,Z)}}function uQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"SDB[]",w);J.deltaBase=w}function pQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"SDS[]",w);J.deltaShift=Math.pow(0.5,w)}function iQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"ADD[]",w,Y);K.push(Y+w)}function rQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"SUB[]",w,Y);K.push(Y-w)}function nQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"DIV[]",w,Y);K.push(Y*64/w)}function oQ(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"MUL[]",w,Y);K.push(Y*w/64)}function sQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"ABS[]",w);K.push(Math.abs(w))}function aQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"NEG[]",w);K.push(-w)}function tQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"FLOOR[]",w);K.push(Math.floor(w/64)*64)}function eQ(J){var K=J.stack,w=K.pop();if(pV.DEBUG)console.log(J.step,"CEILING[]",w);K.push(Math.ceil(w/64)*64)}function E8(J,K){var w=K.stack,Y=w.pop();if(pV.DEBUG)console.log(K.step,"ROUND[]");w.push(K.round(Y/64)*64)}function JH(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"WCVTF[]",w,Y);J.cvt[Y]=w*J.ppem/J.font.unitsPerEm}function X4(J,K){var w=K.stack,Y=w.pop(),X=K.ppem,Z=K.deltaBase+(J-1)*16,Q=K.deltaShift;if(pV.DEBUG)console.log(K.step,"DELTAC["+J+"]",Y,w);for(var W=0;W<Y;W++){var H=w.pop(),$=w.pop(),z=Z+(($&240)>>4);if(z!==X)continue;var U=($&15)-8;if(U>=0)U++;var A=U*Q;if(pV.DEBUG)console.log(K.step,"DELTACFIX",H,"by",A);K.cvt[H]+=A}}function KH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SROUND[]",K);J.round=iJ;var w;switch(K&192){case 0:w=0.5;break;case 64:w=1;break;case 128:w=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=w,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*w;break;case 32:J.srPhase=0.5*w;break;case 48:J.srPhase=0.75*w;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*w}function wH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=iJ;var w;switch(K&192){case 0:w=Math.sqrt(2)/2;break;case 64:w=Math.sqrt(2);break;case 128:w=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=w,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*w;break;case 32:J.srPhase=0.5*w;break;case 48:J.srPhase=0.75*w;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*w}function YH(J){if(pV.DEBUG)console.log(J.step,"ROFF[]");J.round=bZ}function XH(J){if(pV.DEBUG)console.log(J.step,"RUTG[]");J.round=dZ}function ZH(J){if(pV.DEBUG)console.log(J.step,"RDTG[]");J.round=lZ}function QH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function NJ(J,K){var w=K.stack,Y=w.pop(),X=w.pop(),Z=K.z2[Y],Q=K.z1[X];if(pV.DEBUG)console.log(K.step,"SDPVTL["+J+"]",Y,X);var W,H;if(!J)W=Q.x-Z.x,H=Q.y-Z.y;else W=Z.y-Q.y,H=Q.x-Z.x;K.dpv=c5(W,H)}function HH(J){var K=J.stack,w=K.pop(),Y=0;if(pV.DEBUG)console.log(J.step,"GETINFO[]",w);if(w&1)Y=35;if(w&32)Y|=4096;K.push(Y)}function WH(J){var K=J.stack,w=K.pop(),Y=K.pop(),X=K.pop();if(pV.DEBUG)console.log(J.step,"ROLL[]");K.push(Y),K.push(w),K.push(X)}function $H(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"MAX[]",w,Y);K.push(Math.max(Y,w))}function zH(J){var K=J.stack,w=K.pop(),Y=K.pop();if(pV.DEBUG)console.log(J.step,"MIN[]",w,Y);K.push(Math.min(Y,w))}function UH(J){var K=J.stack.pop();if(pV.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function AH(J){var K=J.stack.pop(),w=J.stack.pop();if(pV.DEBUG)console.log(J.step,"INSTCTRL[]",K,w);switch(K){case 1:J.inhibitGridFit=!!w;return;case 2:J.ignoreCvt=!!w;return;default:throw Error("invalid INSTCTRL[] selector")}}function m1(J,K){var{stack:w,prog:Y,ip:X}=K;if(pV.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Z=0;Z<J;Z++)w.push(Y[++X]);K.ip=X}function d1(J,K){var{ip:w,prog:Y,stack:X}=K;if(pV.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Z=0;Z<J;Z++){var Q=Y[++w]<<8|Y[++w];if(Q&32768)Q=-((Q^65535)+1);X.push(Q)}K.ip=w}function r(J,K,w,Y,X,Z){var Q=Z.stack,W=J&&Q.pop(),H=Q.pop(),$=Z.rp0,z=Z.z0[$],U=Z.z1[H],A=Z.minDis,V=Z.fv,O=Z.dpv,B,M,q,N;if(M=B=O.distance(U,z,!0,!0),q=M>=0?1:-1,M=Math.abs(M),J){if(N=Z.cvt[W],Y&&Math.abs(M-N)<Z.cvCutIn)M=N}if(w&&M<A)M=A;if(Y)M=Z.round(M);if(V.setRelative(U,z,q*M,O),V.touch(U),pV.DEBUG)console.log(Z.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(w?">":"_")+(Y?"R":"_")+(X===0?"Gr":X===1?"Bl":X===2?"Wh":"")+"]",J?W+"("+Z.cvt[W]+","+N+")":"",H,"(d =",B,"->",q*M,")");if(Z.rp1=Z.rp0,Z.rp2=H,K)Z.rp0=H}lJ=[QJ.bind(void 0,C1),QJ.bind(void 0,F1),HJ.bind(void 0,C1),HJ.bind(void 0,F1),WJ.bind(void 0,C1),WJ.bind(void 0,F1),$J.bind(void 0,0),$J.bind(void 0,1),zJ.bind(void 0,0),zJ.bind(void 0,1),uZ,pZ,iZ,rZ,nZ,oZ,sZ,aZ,tZ,eZ,JQ,KQ,wQ,YQ,XQ,ZQ,QQ,HQ,WQ,$Q,void 0,void 0,zQ,w4,UQ,AQ,VQ,MQ,OQ,void 0,void 0,void 0,BQ,GQ,LQ,void 0,UJ.bind(void 0,0),UJ.bind(void 0,1),AJ.bind(void 0,C1),AJ.bind(void 0,F1),VJ.bind(void 0,0),VJ.bind(void 0,1),BJ.bind(void 0,0),BJ.bind(void 0,1),GJ.bind(void 0,0),GJ.bind(void 0,1),qQ,NQ,MJ.bind(void 0,0),MJ.bind(void 0,1),jQ,EQ,OJ.bind(void 0,0),OJ.bind(void 0,1),FQ,RQ,_Q,DQ,IQ,TQ,LJ.bind(void 0,0),LJ.bind(void 0,1),void 0,qJ.bind(void 0,0),qJ.bind(void 0,1),CQ,void 0,PQ,void 0,void 0,SQ,vQ,yQ,hQ,kQ,gQ,xQ,bQ,fQ,mQ,dQ,lQ,cQ,Y4.bind(void 0,1),uQ,pQ,iQ,rQ,nQ,oQ,sQ,aQ,tQ,eQ,E8.bind(void 0,0),E8.bind(void 0,1),E8.bind(void 0,2),E8.bind(void 0,3),void 0,void 0,void 0,void 0,JH,Y4.bind(void 0,2),Y4.bind(void 0,3),X4.bind(void 0,1),X4.bind(void 0,2),X4.bind(void 0,3),KH,wH,void 0,void 0,YH,void 0,XH,ZH,w4,w4,void 0,void 0,void 0,void 0,void 0,QH,NJ.bind(void 0,0),NJ.bind(void 0,1),HH,void 0,WH,$H,zH,UH,AH,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,m1.bind(void 0,1),m1.bind(void 0,2),m1.bind(void 0,3),m1.bind(void 0,4),m1.bind(void 0,5),m1.bind(void 0,6),m1.bind(void 0,7),m1.bind(void 0,8),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),r.bind(void 0,0,0,0,0,0),r.bind(void 0,0,0,0,0,1),r.bind(void 0,0,0,0,0,2),r.bind(void 0,0,0,0,0,3),r.bind(void 0,0,0,0,1,0),r.bind(void 0,0,0,0,1,1),r.bind(void 0,0,0,0,1,2),r.bind(void 0,0,0,0,1,3),r.bind(void 0,0,0,1,0,0),r.bind(void 0,0,0,1,0,1),r.bind(void 0,0,0,1,0,2),r.bind(void 0,0,0,1,0,3),r.bind(void 0,0,0,1,1,0),r.bind(void 0,0,0,1,1,1),r.bind(void 0,0,0,1,1,2),r.bind(void 0,0,0,1,1,3),r.bind(void 0,0,1,0,0,0),r.bind(void 0,0,1,0,0,1),r.bind(void 0,0,1,0,0,2),r.bind(void 0,0,1,0,0,3),r.bind(void 0,0,1,0,1,0),r.bind(void 0,0,1,0,1,1),r.bind(void 0,0,1,0,1,2),r.bind(void 0,0,1,0,1,3),r.bind(void 0,0,1,1,0,0),r.bind(void 0,0,1,1,0,1),r.bind(void 0,0,1,1,0,2),r.bind(void 0,0,1,1,0,3),r.bind(void 0,0,1,1,1,0),r.bind(void 0,0,1,1,1,1),r.bind(void 0,0,1,1,1,2),r.bind(void 0,0,1,1,1,3),r.bind(void 0,1,0,0,0,0),r.bind(void 0,1,0,0,0,1),r.bind(void 0,1,0,0,0,2),r.bind(void 0,1,0,0,0,3),r.bind(void 0,1,0,0,1,0),r.bind(void 0,1,0,0,1,1),r.bind(void 0,1,0,0,1,2),r.bind(void 0,1,0,0,1,3),r.bind(void 0,1,0,1,0,0),r.bind(void 0,1,0,1,0,1),r.bind(void 0,1,0,1,0,2),r.bind(void 0,1,0,1,0,3),r.bind(void 0,1,0,1,1,0),r.bind(void 0,1,0,1,1,1),r.bind(void 0,1,0,1,1,2),r.bind(void 0,1,0,1,1,3),r.bind(void 0,1,1,0,0,0),r.bind(void 0,1,1,0,0,1),r.bind(void 0,1,1,0,0,2),r.bind(void 0,1,1,0,0,3),r.bind(void 0,1,1,0,1,0),r.bind(void 0,1,1,0,1,1),r.bind(void 0,1,1,0,1,2),r.bind(void 0,1,1,0,1,3),r.bind(void 0,1,1,1,0,0),r.bind(void 0,1,1,1,0,1),r.bind(void 0,1,1,1,0,2),r.bind(void 0,1,1,1,0,3),r.bind(void 0,1,1,1,1,0),r.bind(void 0,1,1,1,1,1),r.bind(void 0,1,1,1,1,2),r.bind(void 0,1,1,1,1,3)];function E5(J){this.char=J,this.state={},this.activeState=null}function V4(J,K,w){this.contextName=w,this.startIndex=J,this.endOffset=K}function VH(J,K,w){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=w}function z1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function I8(J){this.eventId=J,this.subscribers=[]}function BH(J){var K=this,w=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(w.forEach(function(X){Object.defineProperty(K.events,X,{value:new I8(X)})}),J)w.forEach(function(X){var Z=J[X];if(typeof Z==="function")K.events[X].subscribe(Z)});var Y=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];Y.forEach(function(X){K.events[X].subscribe(K.updateContextsRanges)})}function F0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],BH.call(this,J)}E5.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};E5.prototype.getState=function(J){return this.state[J]||null};F0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};F0.prototype.composeRUD=function(J){var K=this,w=!0,Y=J.map(function(Z){return K[Z[0]].apply(K,Z.slice(1).concat(w))}),X=function(Z){return typeof Z==="object"&&Z.hasOwnProperty("FAIL")};if(Y.every(X))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:Y.filter(X)};this.dispatch("composeRUD",[Y.filter(function(Z){return!X(Z)})])};F0.prototype.replaceRange=function(J,K,w,Y){K=K!==null?K:this.tokens.length;var X=w.every(function(Q){return Q instanceof E5});if(!isNaN(J)&&this.inboundIndex(J)&&X){var Z=this.tokens.splice.apply(this.tokens,[J,K].concat(w));if(!Y)this.dispatch("replaceToken",[J,K,w]);return[Z,w]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};F0.prototype.replaceToken=function(J,K,w){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof E5){var Y=this.tokens.splice(J,1,K);if(!w)this.dispatch("replaceToken",[J,K]);return[Y[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};F0.prototype.removeRange=function(J,K,w){K=!isNaN(K)?K:this.tokens.length;var Y=this.tokens.splice(J,K);if(!w)this.dispatch("removeRange",[Y,J,K]);return Y};F0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var w=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[w,J]);return w}else return{FAIL:"removeToken: invalid token index."}};F0.prototype.insertToken=function(J,K,w){var Y=J.every(function(X){return X instanceof E5});if(Y){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!w)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};F0.prototype.registerModifier=function(J,K,w){this.events.newToken.subscribe(function(Y,X){var Z=[Y,X],Q=K===null||K.apply(this,Z)===!0,W=[Y,X];if(Q){var H=w.apply(this,W);Y.setState(J,H)}}),this.registeredModifiers.push(J)};I8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};I8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};z1.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)};z1.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}};F0.prototype.rangeToText=function(J){if(J instanceof V4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};F0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};F0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};F0.prototype.on=function(J,K){var w=this.events[J];if(w)return w.subscribe(K);else return null};F0.prototype.dispatch=function(J,K){var w=this,Y=this.events[J];if(Y instanceof I8)Y.subscribers.forEach(function(X){X.apply(w,K||[])})};F0.prototype.registerContextChecker=function(J,K,w){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof w!=="function")return{FAIL:"missing context end check."};var Y=new VH(J,K,w);return this.registeredContexts[J]=Y,this.contextCheckers.push(Y),Y};F0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};F0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};F0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var w=J[K];w.ranges=[]}};F0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(Y){return Y.char});for(var K=0;K<J.length;K++){var w=new z1(J,K);this.runContextCheck(w)}this.dispatch("updateContextsRanges",[this.registeredContexts])};F0.prototype.setEndOffset=function(J,K){var w=this.getContext(K).openRange.startIndex,Y=new V4(w,J,K),X=this.getContext(K).ranges;return Y.rangeId=K+"."+X.length,X.push(Y),this.getContext(K).openRange=null,Y};F0.prototype.runContextCheck=function(J){var K=this,w=J.index;this.contextCheckers.forEach(function(Y){var X=Y.contextName,Z=K.getContext(X).openRange;if(!Z&&Y.checkStart(J))Z=new V4(w,null,X),K.getContext(X).openRange=Z,K.dispatch("contextStart",[X,w]);if(!!Z&&Y.checkEnd(J)){var Q=w-Z.startIndex+1,W=K.setEndOffset(Q,X);K.dispatch("contextEnd",[X,W])}})};F0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var w=0;w<K.length;w++){var Y=K[w],X=new z1(K,w);this.dispatch("next",[X]),this.runContextCheck(X);var Z=new E5(Y);this.tokens.push(Z),this.dispatch("newToken",[Z,X])}return this.dispatch("end",[this.tokens]),this.tokens};function p1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function nJ(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 i1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function F8(J){return/[A-z]/.test(J)}function GH(J){return/\s/.test(J)}function o0(J){this.font=J,this.features={}}function Y5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function u5(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var w=K.ranges;for(var Y=0;Y<w.length;Y++){var X=w[Y];if(J>=X.start&&J<=X.end){var Z=J-X.start;return X.index+Z}}break;default:return-1}return-1}function MH(J,K){var w=u5(J,K.coverage);if(w===-1)return null;return J+K.deltaGlyphId}function OH(J,K){var w=u5(J,K.coverage);if(w===-1)return null;return K.substitute[w]}function Z4(J,K){var w=[];for(var Y=0;Y<J.length;Y++){var X=J[Y],Z=K.current;Z=Array.isArray(Z)?Z[0]:Z;var Q=u5(Z,X);if(Q!==-1)w.push(Q)}if(w.length!==J.length)return-1;return w}function LH(J,K){var w=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<w)return[];var Y=Z4(K.inputCoverage,J);if(Y===-1)return[];var X=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Z=J.lookahead.slice(X);while(Z.length&&i1(Z[0].char))Z.shift();var Q=new z1(Z,0),W=Z4(K.lookaheadCoverage,Q),H=[].concat(J.backtrack);H.reverse();while(H.length&&i1(H[0].char))H.shift();if(H.length<K.backtrackCoverage.length)return[];var $=new z1(H,0),z=Z4(K.backtrackCoverage,$),U=Y.length===K.inputCoverage.length&&W.length===K.lookaheadCoverage.length&&z.length===K.backtrackCoverage.length,A=[];if(U)for(var V=0;V<K.lookupRecords.length;V++){var O=K.lookupRecords[V],B=O.lookupListIndex,M=this.getLookupByIndex(B);for(var q=0;q<M.subtables.length;q++){var N=M.subtables[q],E=this.getLookupMethod(M,N),_=this.getSubstitutionType(M,N);if(_==="12")for(var F=0;F<Y.length;F++){var j=J.get(F),T=E(j);if(T)A.push(T)}}}return A}function qH(J,K){var w=J.current,Y=u5(w,K.coverage);if(Y===-1)return null;var X,Z=K.ligatureSets[Y];for(var Q=0;Q<Z.length;Q++){X=Z[Q];for(var W=0;W<X.components.length;W++){var H=J.lookahead[W],$=X.components[W];if(H!==$)break;if(W===X.components.length-1)return X}}return null}function NH(J,K){var w=u5(J,K.coverage);if(w===-1)return null;return K.sequences[w]}o0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var w=J[K];if(w.tag==="DFLT")return w.script.defaultLangSys.featureIndexes}return[]};o0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var w=this.font.tables.gsub.scripts;for(var Y=0;Y<w.length;Y++){var X=w[Y];if(X.tag===J&&X.script.defaultLangSys)return X.script.defaultLangSys.featureIndexes;else{var Z=X.langSysRecords;if(Z)for(var Q=0;Q<Z.length;Q++){var W=Z[Q];if(W.tag===J){var H=W.langSys;return H.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};o0.prototype.mapTagsToFeatures=function(J,K){var w={};for(var Y=0;Y<J.length;Y++){var X=J[Y].tag,Z=J[Y].feature;w[X]=Z}this.features[K].tags=w};o0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var w=this.getScriptFeaturesIndexes(J);if(!w)return null;var Y=this.font.tables.gsub;return K=w.map(function(X){return Y.features[X]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};o0.prototype.getSubstitutionType=function(J,K){var w=J.lookupType.toString(),Y=K.substFormat.toString();return w+Y};o0.prototype.getLookupMethod=function(J,K){var w=this,Y=this.getSubstitutionType(J,K);switch(Y){case"11":return function(X){return MH.apply(w,[X,K])};case"12":return function(X){return OH.apply(w,[X,K])};case"63":return function(X){return LH.apply(w,[X,K])};case"41":return function(X){return qH.apply(w,[X,K])};case"21":return function(X){return NH.apply(w,[X,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};o0.prototype.lookupFeature=function(J){var K=J.contextParams,w=K.index,Y=this.getFeature({tag:J.tag,script:J.script});if(!Y)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var X=this.getFeatureLookups(Y),Z=[].concat(K.context);for(var Q=0;Q<X.length;Q++){var W=X[Q],H=this.getLookupSubtables(W);for(var $=0;$<H.length;$++){var z=H[$],U=this.getSubstitutionType(W,z),A=this.getLookupMethod(W,z),V=void 0;switch(U){case"11":if(V=A(K.current),V)Z.splice(w,1,new Y5({id:11,tag:J.tag,substitution:V}));break;case"12":if(V=A(K.current),V)Z.splice(w,1,new Y5({id:12,tag:J.tag,substitution:V}));break;case"63":if(V=A(K),Array.isArray(V)&&V.length)Z.splice(w,1,new Y5({id:63,tag:J.tag,substitution:V}));break;case"41":if(V=A(K),V)Z.splice(w,1,new Y5({id:41,tag:J.tag,substitution:V}));break;case"21":if(V=A(K.current),V)Z.splice(w,1,new Y5({id:21,tag:J.tag,substitution:V}));break}if(K=new z1(Z,w),Array.isArray(V)&&!V.length)continue;V=null}}return Z.length?Z:null};o0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var w=this.features[J.script].some(function(Y){return Y.tag===J.tag});return K&&w};o0.prototype.getLookupSubtables=function(J){return J.subtables||null};o0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};o0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};o0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var w=this.features[K.script];if(!w)return{FAIL:"No feature for script "+K.script};if(!w.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function jH(J){var K=J.current,w=J.get(-1);return w===null&&p1(K)||!p1(w)&&p1(K)}function EH(J){var K=J.get(1);return K===null||!p1(K)}var FH={startCheck:jH,endCheck:EH};function RH(J){var K=J.current,w=J.get(-1);return(p1(K)||i1(K))&&!p1(w)}function _H(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!p1(K)&&!i1(K)):var w=GH(K);if(!w)return!0;if(w){var Y=!1;if(Y=J.lookahead.some(function(X){return p1(X)||i1(X)}),!Y)return!0}break;default:return!1}}var DH={startCheck:RH,endCheck:_H};function IH(J,K,w){K[w].setState(J.tag,J.substitution)}function TH(J,K,w){K[w].setState(J.tag,J.substitution)}function CH(J,K,w){J.substitution.forEach(function(Y,X){var Z=K[w+X];Z.setState(J.tag,Y)})}function PH(J,K,w){var Y=K[w];Y.setState(J.tag,J.substitution.ligGlyph);var X=J.substitution.components.length;for(var Z=0;Z<X;Z++)Y=K[w+Z+1],Y.setState("deleted",!0)}var jJ={11:IH,12:TH,63:CH,41:PH};function B4(J,K,w){if(J instanceof Y5&&jJ[J.id])jJ[J.id](J,K,w)}function SH(J){var K=[].concat(J.backtrack);for(var w=K.length-1;w>=0;w--){var Y=K[w],X=nJ(Y),Z=i1(Y);if(!X&&!Z)return!0;if(X)return!1}return!1}function vH(J){if(nJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var w=J.lookahead[K],Y=i1(w);if(!Y)return!0}return!1}function yH(J){var K=this,w="arab",Y=this.featuresTags[w],X=this.tokenizer.getRangeTokens(J);if(X.length===1)return;var Z=new z1(X.map(function(W){return W.getState("glyphIndex")}),0),Q=new z1(X.map(function(W){return W.char}),0);X.forEach(function(W,H){if(i1(W.char))return;Z.setCurrentIndex(H),Q.setCurrentIndex(H);var $=0;if(SH(Q))$|=1;if(vH(Q))$|=2;var z;switch($){case 1:z="fina";break;case 2:z="init";break;case 3:z="medi";break}if(Y.indexOf(z)===-1)return;var U=K.query.lookupFeature({tag:z,script:w,contextParams:Z});if(U instanceof Error)return console.info(U.message);U.forEach(function(A,V){if(A instanceof Y5)B4(A,X,V),Z.context[V]=A.substitution})})}function EJ(J,K){var w=J.map(function(Y){return Y.activeState.value});return new z1(w,K||0)}function hH(J){var K=this,w="arab",Y=this.tokenizer.getRangeTokens(J),X=EJ(Y);X.context.forEach(function(Z,Q){X.setCurrentIndex(Q);var W=K.query.lookupFeature({tag:"rlig",script:w,contextParams:X});if(W.length)W.forEach(function(H){return B4(H,Y,Q)}),X=EJ(Y)})}function kH(J){var K=J.current,w=J.get(-1);return w===null&&F8(K)||!F8(w)&&F8(K)}function gH(J){var K=J.get(1);return K===null||!F8(K)}var xH={startCheck:kH,endCheck:gH};function FJ(J,K){var w=J.map(function(Y){return Y.activeState.value});return new z1(w,K||0)}function bH(J){var K=this,w="latn",Y=this.tokenizer.getRangeTokens(J),X=FJ(Y);X.context.forEach(function(Z,Q){X.setCurrentIndex(Q);var W=K.query.lookupFeature({tag:"liga",script:w,contextParams:X});if(W.length)W.forEach(function(H){return B4(H,Y,Q)}),X=FJ(Y)})}function V1(J){this.baseDir=J||"ltr",this.tokenizer=new F0,this.featuresTags={}}V1.prototype.setText=function(J){this.text=J};V1.prototype.contextChecks={latinWordCheck:xH,arabicWordCheck:FH,arabicSentenceCheck:DH};function Q4(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function fH(){return Q4.call(this,"latinWord"),Q4.call(this,"arabicWord"),Q4.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function mH(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(w){var Y=J.tokenizer.getRangeTokens(w);J.tokenizer.replaceRange(w.startIndex,w.endOffset,Y.reverse())})}V1.prototype.registerFeatures=function(J,K){var w=this,Y=K.filter(function(X){return w.query.supports({script:J,tag:X})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=Y;else this.featuresTags[J]=this.featuresTags[J].concat(Y)};V1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new o0(J);for(var w=0;w<K.length;w++){var Y=K[w];if(!this.query.supports({script:Y.script}))continue;this.registerFeatures(Y.script,Y.tags)}};V1.prototype.registerModifier=function(J,K,w){this.tokenizer.registerModifier(J,K,w)};function G4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function dH(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;G4.call(this);var w=this.tokenizer.getContextRanges("arabicWord");w.forEach(function(Y){yH.call(J,Y)})}function lH(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var w=this.featuresTags[K];if(w.indexOf("rlig")===-1)return;G4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){hH.call(J,X)})}function cH(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var w=this.featuresTags[K];if(w.indexOf("liga")===-1)return;G4.call(this);var Y=this.tokenizer.getContextRanges("latinWord");Y.forEach(function(X){bH.call(J,X)})}V1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};V1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))dH.call(this),lH.call(this);if(this.checkContextReady("latinWord"))cH.call(this);if(this.checkContextReady("arabicSentence"))mH.call(this)};V1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),fH.call(this),this.applyFeaturesToContexts()};V1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};V1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var w=0;w<this.tokenizer.tokens.length;w++){var Y=this.tokenizer.tokens[w];if(Y.state.deleted)continue;var X=Y.activeState.value;K.push(Array.isArray(X)?X[0]:X)}return K};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)k5(J.familyName,"When creating a new Font object, familyName is required."),k5(J.styleName,"When creating a new Font object, styleName is required."),k5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),k5(J.ascender,"When creating a new Font object, ascender is required."),k5(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 R1.GlyphSet(this,J.glyphs||[]),this.encoding=new hJ(this),this.position=new d5(this),this.substitution=new n0(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 uJ(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 K=this.charToGlyphIndex(J),w=this.glyphs.get(K);if(!w)w=this.glyphs.get(0);return w};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(w){return J[w]})};else return K})};m0.prototype.stringToGlyphs=function(J,K){var w=this,Y=new V1,X=function(U){return w.charToGlyphIndex(U.char)};Y.registerModifier("glyphIndex",null,X);var Z=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;Y.applyFeatures(this,Z);var Q=Y.getTextGlyphs(J),W=Q.length,H=Array(W),$=this.glyphs.get(0);for(var z=0;z<W;z+=1)H[z]=this.glyphs.get(Q[z])||$;return H};m0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var w=this.position.defaultKerningTables;if(w)return this.position.getKerningValue(w,J,K);return this.kerningPairs[J+","+K]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,K,w,Y,X,Z){K=K!==void 0?K:0,w=w!==void 0?w:0,Y=Y!==void 0?Y:72,X=Object.assign({},this.defaultRenderOptions,X);var Q=1/this.unitsPerEm*Y,W=this.stringToGlyphs(J,X),H;if(X.kerning){var $=X.script||this.position.getDefaultScriptName();H=this.position.getKerningTables($,X.language)}for(var z=0;z<W.length;z+=1){var U=W[z];if(Z.call(this,U,K,w,Y,X),U.advanceWidth)K+=U.advanceWidth*Q;if(X.kerning&&z<W.length-1){var A=H?this.position.getKerningValue(H,U.index,W[z+1].index):this.getKerningValue(U,W[z+1]);K+=A*Q}if(X.letterSpacing)K+=X.letterSpacing*Y;else if(X.tracking)K+=X.tracking/1000*Y}return K};m0.prototype.getPath=function(J,K,w,Y,X){var Z=new f0;return this.forEachGlyph(J,K,w,Y,X,function(Q,W,H,$){var z=Q.getPath(W,H,$,X,this);Z.extend(z)}),Z};m0.prototype.getPaths=function(J,K,w,Y,X){var Z=[];return this.forEachGlyph(J,K,w,Y,X,function(Q,W,H,$){var z=Q.getPath(W,H,$,X,this);Z.push(z)}),Z};m0.prototype.getAdvanceWidth=function(J,K,w){return this.forEachGlyph(J,0,0,K,w,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 uH(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var w;J.groupCount=w=K.parseULong(),J.glyphIndexMap={};for(var Y=0;Y<w;Y+=1){var X=K.parseULong(),Z=K.parseULong(),Q=K.parseULong();for(var W=X;W<=Z;W+=1)J.glyphIndexMap[W]=Q,Q++}}function pH(J,K,w,Y,X){J.length=K.parseUShort(),J.language=K.parseUShort();var Z;J.segCount=Z=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var Q=new n.Parser(w,Y+X+14),W=new n.Parser(w,Y+X+16+Z*2),H=new n.Parser(w,Y+X+16+Z*4),$=new n.Parser(w,Y+X+16+Z*6),z=Y+X+16+Z*8;for(var U=0;U<Z-1;U+=1){var A=void 0,V=Q.parseUShort(),O=W.parseUShort(),B=H.parseShort(),M=$.parseUShort();for(var q=O;q<=V;q+=1){if(M!==0){if(z=$.offset+$.relativeOffset-2,z+=M,z+=(q-O)*2,A=n.getUShort(w,z),A!==0)A=A+B&65535}else A=q+B&65535;J.glyphIndexMap[q]=A}}}function iH(J,K){var w={};w.version=n.getUShort(J,K),z0.argument(w.version===0,"cmap table version should be 0."),w.numTables=n.getUShort(J,K+2);var Y=-1;for(var X=w.numTables-1;X>=0;X-=1){var Z=n.getUShort(J,K+4+X*8),Q=n.getUShort(J,K+4+X*8+2);if(Z===3&&(Q===0||Q===1||Q===10)||Z===0&&(Q===0||Q===1||Q===2||Q===3||Q===4)){Y=n.getULong(J,K+4+X*8+4);break}}if(Y===-1)throw Error("No valid cmap sub-tables found.");var W=new n.Parser(J,K+Y);if(w.format=W.parseUShort(),w.format===12)uH(w,W);else if(w.format===4)pH(w,W,J,K,Y);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+w.format+").");return w}var rH={parse:iH};function $4(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function c1(J,K,w){var Y=[],X=[],Z=n.getCard16(J,K),Q,W;if(Z!==0){var H=n.getByte(J,K+2);Q=K+(Z+1)*H+2;var $=K+3;for(var z=0;z<Z+1;z+=1)Y.push(n.getOffset(J,$,H)),$+=H;W=Q+Y[Z]}else W=K+2;for(var U=0;U<Y.length-1;U+=1){var A=n.getBytes(J,Q+Y[U],Q+Y[U+1]);if(w)A=w(A);X.push(A)}return{objects:X,startOffset:K,endOffset:W}}function nH(J,K){var w=[],Y=n.getCard16(J,K),X,Z;if(Y!==0){var Q=n.getByte(J,K+2);X=K+(Y+1)*Q+2;var W=K+3;for(var H=0;H<Y+1;H+=1)w.push(n.getOffset(J,W,Q)),W+=Q;Z=X+w[Y]}else Z=K+2;return{offsets:w,startOffset:K,endOffset:Z}}function oH(J,K,w,Y,X){var Z=n.getCard16(w,Y),Q=0;if(Z!==0){var W=n.getByte(w,Y+2);Q=Y+(Z+1)*W+2}var H=n.getBytes(w,Q+K[J],Q+K[J+1]);if(X)H=X(H);return H}function sH(J){var K="",w=15,Y=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var X=J.parseByte(),Z=X>>4,Q=X&15;if(Z===w)break;if(K+=Y[Z],Q===w)break;K+=Y[Q]}return parseFloat(K)}function aH(J,K){var w,Y,X,Z;if(K===28)return w=J.parseByte(),Y=J.parseByte(),w<<8|Y;if(K===29)return w=J.parseByte(),Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),w<<24|Y<<16|X<<8|Z;if(K===30)return sH(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return w=J.parseByte(),(K-247)*256+w+108;if(K>=251&&K<=254)return w=J.parseByte(),-(K-251)*256-w-108;throw Error("Invalid b0 "+K)}function tH(J){var K={};for(var w=0;w<J.length;w+=1){var Y=J[w][0],X=J[w][1],Z=void 0;if(X.length===1)Z=X[0];else Z=X;if(K.hasOwnProperty(Y)&&!isNaN(K[Y]))throw Error("Object "+K+" already has key "+Y);K[Y]=Z}return K}function oJ(J,K,w){K=K!==void 0?K:0;var Y=new n.Parser(J,K),X=[],Z=[];w=w!==void 0?w:J.length;while(Y.relativeOffset<w){var Q=Y.parseByte();if(Q<=21){if(Q===12)Q=1200+Y.parseByte();X.push([Q,Z]),Z=[]}else Z.push(aH(Y,Q))}return tH(X)}function x5(J,K){if(K<=390)K=OZ[K];else K=J[K-391];return K}function sJ(J,K,w){var Y={},X;for(var Z=0;Z<K.length;Z+=1){var Q=K[Z];if(Array.isArray(Q.type)){var W=[];W.length=Q.type.length;for(var H=0;H<Q.type.length;H++){if(X=J[Q.op]!==void 0?J[Q.op][H]:void 0,X===void 0)X=Q.value!==void 0&&Q.value[H]!==void 0?Q.value[H]:null;if(Q.type[H]==="SID")X=x5(w,X);W[H]=X}Y[Q.name]=W}else{if(X=J[Q.op],X===void 0)X=Q.value!==void 0?Q.value:null;if(Q.type==="SID")X=x5(w,X);Y[Q.name]=X}}return Y}function eH(J,K){var w={};return w.formatMajor=n.getCard8(J,K),w.formatMinor=n.getCard8(J,K+1),w.size=n.getCard8(J,K+2),w.offsetSize=n.getCard8(J,K+3),w.startOffset=K,w.endOffset=K+4,w}var JW=[{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"}],KW=[{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 wW(J,K){var w=oJ(J,0,J.byteLength);return sJ(w,JW,K)}function aJ(J,K,w,Y){var X=oJ(J,K,w);return sJ(X,KW,Y)}function RJ(J,K,w,Y){var X=[];for(var Z=0;Z<w.length;Z+=1){var Q=new DataView(new Uint8Array(w[Z]).buffer),W=wW(Q,Y);W._subrs=[],W._subrsBias=0,W._defaultWidthX=0,W._nominalWidthX=0;var H=W.private[0],$=W.private[1];if(H!==0&&$!==0){var z=aJ(J,$+K,H,Y);if(W._defaultWidthX=z.defaultWidthX,W._nominalWidthX=z.nominalWidthX,z.subrs!==0){var U=$+z.subrs,A=c1(J,U+K);W._subrs=A.objects,W._subrsBias=$4(W._subrs)}W._privateDict=z}X.push(W)}return X}function YW(J,K,w,Y){var X,Z,Q=new n.Parser(J,K);w-=1;var W=[".notdef"],H=Q.parseCard8();if(H===0)for(var $=0;$<w;$+=1)X=Q.parseSID(),W.push(x5(Y,X));else if(H===1)while(W.length<=w){X=Q.parseSID(),Z=Q.parseCard8();for(var z=0;z<=Z;z+=1)W.push(x5(Y,X)),X+=1}else if(H===2)while(W.length<=w){X=Q.parseSID(),Z=Q.parseCard16();for(var U=0;U<=Z;U+=1)W.push(x5(Y,X)),X+=1}else throw Error("Unknown charset format "+H);return W}function XW(J,K,w){var Y,X={},Z=new n.Parser(J,K),Q=Z.parseCard8();if(Q===0){var W=Z.parseCard8();for(var H=0;H<W;H+=1)Y=Z.parseCard8(),X[Y]=H}else if(Q===1){var $=Z.parseCard8();Y=1;for(var z=0;z<$;z+=1){var U=Z.parseCard8(),A=Z.parseCard8();for(var V=U;V<=U+A;V+=1)X[V]=Y,Y+=1}}else throw Error("Unknown encoding format "+Q);return new R8(X,w)}function _J(J,K,w){var Y,X,Z,Q,W=new f0,H=[],$=0,z=!1,U=!1,A=0,V=0,O,B,M,q;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[N];O=E._subrs,B=E._subrsBias,M=E._defaultWidthX,q=E._nominalWidthX}else O=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,M=J.tables.cff.topDict._defaultWidthX,q=J.tables.cff.topDict._nominalWidthX;var _=M;function F(D,C){if(U)W.closePath();W.moveTo(D,C),U=!0}function j(){var D=H.length%2!==0;if(D&&!z)_=H.shift()+q;$+=H.length>>1,H.length=0,z=!0}function T(D){var C,k,c,u,p,P,S,I,l,f,o,i,m=0;while(m<D.length){var d=D[m];switch(m+=1,d){case 1:j();break;case 3:j();break;case 4:if(H.length>1&&!z)_=H.shift()+q,z=!0;V+=H.pop(),F(A,V);break;case 5:while(H.length>0)A+=H.shift(),V+=H.shift(),W.lineTo(A,V);break;case 6:while(H.length>0){if(A+=H.shift(),W.lineTo(A,V),H.length===0)break;V+=H.shift(),W.lineTo(A,V)}break;case 7:while(H.length>0){if(V+=H.shift(),W.lineTo(A,V),H.length===0)break;A+=H.shift(),W.lineTo(A,V)}break;case 8:while(H.length>0)Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q+H.shift(),W.curveTo(Y,X,Z,Q,A,V);break;case 10:if(p=H.pop()+B,P=O[p],P)T(P);break;case 11:return;case 12:switch(d=D[m],m+=1,d){case 35:Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),S=Z+H.shift(),I=Q+H.shift(),l=S+H.shift(),f=I+H.shift(),o=l+H.shift(),i=f+H.shift(),A=o+H.shift(),V=i+H.shift(),H.shift(),W.curveTo(Y,X,Z,Q,S,I),W.curveTo(l,f,o,i,A,V);break;case 34:Y=A+H.shift(),X=V,Z=Y+H.shift(),Q=X+H.shift(),S=Z+H.shift(),I=Q,l=S+H.shift(),f=Q,o=l+H.shift(),i=V,A=o+H.shift(),W.curveTo(Y,X,Z,Q,S,I),W.curveTo(l,f,o,i,A,V);break;case 36:Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),S=Z+H.shift(),I=Q,l=S+H.shift(),f=Q,o=l+H.shift(),i=f+H.shift(),A=o+H.shift(),W.curveTo(Y,X,Z,Q,S,I),W.curveTo(l,f,o,i,A,V);break;case 37:if(Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),S=Z+H.shift(),I=Q+H.shift(),l=S+H.shift(),f=I+H.shift(),o=l+H.shift(),i=f+H.shift(),Math.abs(o-A)>Math.abs(i-V))A=o+H.shift();else V=i+H.shift();W.curveTo(Y,X,Z,Q,S,I),W.curveTo(l,f,o,i,A,V);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+d),H.length=0}break;case 14:if(H.length>0&&!z)_=H.shift()+q,z=!0;if(U)W.closePath(),U=!1;break;case 18:j();break;case 19:case 20:j(),m+=$+7>>3;break;case 21:if(H.length>2&&!z)_=H.shift()+q,z=!0;V+=H.pop(),A+=H.pop(),F(A,V);break;case 22:if(H.length>1&&!z)_=H.shift()+q,z=!0;A+=H.pop(),F(A,V);break;case 23:j();break;case 24:while(H.length>2)Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q+H.shift(),W.curveTo(Y,X,Z,Q,A,V);A+=H.shift(),V+=H.shift(),W.lineTo(A,V);break;case 25:while(H.length>6)A+=H.shift(),V+=H.shift(),W.lineTo(A,V);Y=A+H.shift(),X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q+H.shift(),W.curveTo(Y,X,Z,Q,A,V);break;case 26:if(H.length%2)A+=H.shift();while(H.length>0)Y=A,X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z,V=Q+H.shift(),W.curveTo(Y,X,Z,Q,A,V);break;case 27:if(H.length%2)V+=H.shift();while(H.length>0)Y=A+H.shift(),X=V,Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q,W.curveTo(Y,X,Z,Q,A,V);break;case 28:C=D[m],k=D[m+1],H.push((C<<24|k<<16)>>16),m+=2;break;case 29:if(p=H.pop()+J.gsubrsBias,P=J.gsubrs[p],P)T(P);break;case 30:while(H.length>0){if(Y=A,X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q+(H.length===1?H.shift():0),W.curveTo(Y,X,Z,Q,A,V),H.length===0)break;Y=A+H.shift(),X=V,Z=Y+H.shift(),Q=X+H.shift(),V=Q+H.shift(),A=Z+(H.length===1?H.shift():0),W.curveTo(Y,X,Z,Q,A,V)}break;case 31:while(H.length>0){if(Y=A+H.shift(),X=V,Z=Y+H.shift(),Q=X+H.shift(),V=Q+H.shift(),A=Z+(H.length===1?H.shift():0),W.curveTo(Y,X,Z,Q,A,V),H.length===0)break;Y=A,X=V+H.shift(),Z=Y+H.shift(),Q=X+H.shift(),A=Z+H.shift(),V=Q+(H.length===1?H.shift():0),W.curveTo(Y,X,Z,Q,A,V)}break;default:if(d<32)console.log("Glyph "+K.index+": unknown operator "+d);else if(d<247)H.push(d-139);else if(d<251)C=D[m],m+=1,H.push((d-247)*256+C+108);else if(d<255)C=D[m],m+=1,H.push(-(d-251)*256-C-108);else C=D[m],k=D[m+1],c=D[m+2],u=D[m+3],m+=4,H.push((C<<24|k<<16|c<<8|u)/65536)}}}return T(w),K.advanceWidth=_,W}function ZW(J,K,w,Y){var X=[],Z,Q=new n.Parser(J,K),W=Q.parseCard8();if(W===0)for(var H=0;H<w;H++){if(Z=Q.parseCard8(),Z>=Y)throw Error("CFF table CID Font FDSelect has bad FD index value "+Z+" (FD count "+Y+")");X.push(Z)}else if(W===3){var $=Q.parseCard16(),z=Q.parseCard16();if(z!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+z);var U;for(var A=0;A<$;A++){if(Z=Q.parseCard8(),U=Q.parseCard16(),Z>=Y)throw Error("CFF table CID Font FDSelect has bad FD index value "+Z+" (FD count "+Y+")");if(U>w)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+U);for(;z<U;z++)X.push(Z);z=U}if(U!==w)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+U)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+W);return X}function QW(J,K,w,Y){w.tables.cff={};var X=eH(J,K),Z=c1(J,X.endOffset,n.bytesToString),Q=c1(J,Z.endOffset),W=c1(J,Q.endOffset,n.bytesToString),H=c1(J,W.endOffset);w.gsubrs=H.objects,w.gsubrsBias=$4(w.gsubrs);var $=RJ(J,K,Q.objects,W.objects);if($.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+$.length);var z=$[0];if(w.tables.cff.topDict=z,z._privateDict)w.defaultWidthX=z._privateDict.defaultWidthX,w.nominalWidthX=z._privateDict.nominalWidthX;if(z.ros[0]!==void 0&&z.ros[1]!==void 0)w.isCIDFont=!0;if(w.isCIDFont){var{fdArray:U,fdSelect:A}=z;if(U===0||A===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");U+=K;var V=c1(J,U),O=RJ(J,K,V.objects,W.objects);z._fdArray=O,A+=K,z._fdSelect=ZW(J,A,w.numGlyphs,O.length)}var B=K+z.private[1],M=aJ(J,B,z.private[0],W.objects);if(w.defaultWidthX=M.defaultWidthX,w.nominalWidthX=M.nominalWidthX,M.subrs!==0){var q=B+M.subrs,N=c1(J,q);w.subrs=N.objects,w.subrsBias=$4(w.subrs)}else w.subrs=[],w.subrsBias=0;var E;if(Y.lowMemory)E=nH(J,K+z.charStrings),w.nGlyphs=E.offsets.length;else E=c1(J,K+z.charStrings),w.nGlyphs=E.objects.length;var _=YW(J,K+z.charset,w.nGlyphs,W.objects);if(z.encoding===0)w.cffEncoding=new R8(LZ,_);else if(z.encoding===1)w.cffEncoding=new R8(qZ,_);else w.cffEncoding=XW(J,K+z.encoding,_);if(w.encoding=w.encoding||w.cffEncoding,w.glyphs=new R1.GlyphSet(w),Y.lowMemory)w._push=function(T){var D=oH(T,E.offsets,J,K+z.charStrings);w.glyphs.push(T,R1.cffGlyphLoader(w,T,_J,D))};else for(var F=0;F<w.nGlyphs;F+=1){var j=E.objects[F];w.glyphs.push(F,R1.cffGlyphLoader(w,F,_J,j))}}var HW={parse:QW};function WW(J,K,w){var Y={},X=new n.Parser(J,K);return Y.tag=X.parseTag(),Y.minValue=X.parseFixed(),Y.defaultValue=X.parseFixed(),Y.maxValue=X.parseFixed(),X.skip("uShort",1),Y.name=w[X.parseUShort()]||{},Y}function $W(J,K,w,Y){var X={},Z=new n.Parser(J,K);X.name=Y[Z.parseUShort()]||{},Z.skip("uShort",1),X.coordinates={};for(var Q=0;Q<w.length;++Q)X.coordinates[w[Q].tag]=Z.parseFixed();return X}function zW(J,K,w){var Y=new n.Parser(J,K),X=Y.parseULong();z0.argument(X===65536,"Unsupported fvar table version.");var Z=Y.parseOffset16();Y.skip("uShort",1);var Q=Y.parseUShort(),W=Y.parseUShort(),H=Y.parseUShort(),$=Y.parseUShort(),z=[];for(var U=0;U<Q;U++)z.push(WW(J,K+Z+U*W,w));var A=[],V=K+Z+Q*W;for(var O=0;O<H;O++)A.push($W(J,V+O*$,z,w));return{axes:z,instances:A}}var UW={parse:zW},AW=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},VW=function(){var J=this.parseUShort();if(z0.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()}},BW=function(){return this.parseList(v.pointer(VW))},GW=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(BW))}},MW=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function OW(J,K){K=K||0;var w=new v(J,K),Y=w.parseVersion(1);z0.argument(Y===1||Y===1.2||Y===1.3,"Unsupported GDEF table version.");var X={version:Y,classDef:w.parsePointer(v.classDef),attachList:w.parsePointer(AW),ligCaretList:w.parsePointer(GW),markAttachClassDef:w.parsePointer(v.classDef)};if(Y>=1.2)X.markGlyphSets=w.parsePointer(MW);return X}var LW={parse:OW},U1=[,,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,w=this.parseUShort();if(w===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(w===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.offset+this.relativeOffset,w=this.parseUShort();z0.assert(w===1||w===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var Y=this.parsePointer(v.coverage),X=this.parseUShort(),Z=this.parseUShort();if(w===1)return{posFormat:w,coverage:Y,valueFormat1:X,valueFormat2:Z,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(X),value2:this.parseValueRecord(Z)}})))};else if(w===2){var Q=this.parsePointer(v.classDef),W=this.parsePointer(v.classDef),H=this.parseUShort(),$=this.parseUShort();return{posFormat:w,coverage:Y,valueFormat1:X,valueFormat2:Z,classDef1:Q,classDef2:W,class1Count:H,class2Count:$,classRecords:this.parseList(H,v.list($,function(){return{value1:this.parseValueRecord(X),value2:this.parseValueRecord(Z)}}))}}};U1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};U1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};U1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};U1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};U1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};U1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};U1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function qW(J,K){K=K||0;var w=new v(J,K),Y=w.parseVersion(1);if(z0.argument(Y===1||Y===1.1,"Unsupported GPOS table version "+Y),Y===1)return{version:Y,scripts:w.parseScriptList(),features:w.parseFeatureList(),lookups:w.parseLookupList(U1)};else return{version:Y,scripts:w.parseScriptList(),features:w.parseFeatureList(),lookups:w.parseLookupList(U1),variations:w.parseFeatureVariationsList()}}var NW={parse:qW},A1=[,,,,,,,,,];A1[1]=function(){var K=this.offset+this.relativeOffset,w=this.parseUShort();if(w===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(w===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};A1[2]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};A1[3]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};A1[4]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var j5={sequenceIndex:v.uShort,lookupListIndex:v.uShort};A1[5]=function(){var K=this.offset+this.relativeOffset,w=this.parseUShort();if(w===1)return{substFormat:w,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Z=this.parseUShort(),Q=this.parseUShort();return{input:this.parseUShortList(Z-1),lookupRecords:this.parseRecordList(Q,j5)}})};else if(w===2)return{substFormat:w,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Z=this.parseUShort(),Q=this.parseUShort();return{classes:this.parseUShortList(Z-1),lookupRecords:this.parseRecordList(Q,j5)}})};else if(w===3){var Y=this.parseUShort(),X=this.parseUShort();return{substFormat:w,coverages:this.parseList(Y,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(X,j5)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};A1[6]=function(){var K=this.offset+this.relativeOffset,w=this.parseUShort();if(w===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(j5)}})};else if(w===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(j5)}})};else if(w===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(j5)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};A1[7]=function(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var w=this.parseUShort(),Y=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:w,extension:A1[w].call(Y)}};A1[8]=function(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function jW(J,K){K=K||0;var w=new v(J,K),Y=w.parseVersion(1);if(z0.argument(Y===1||Y===1.1,"Unsupported GSUB table version."),Y===1)return{version:Y,scripts:w.parseScriptList(),features:w.parseFeatureList(),lookups:w.parseLookupList(A1)};else return{version:Y,scripts:w.parseScriptList(),features:w.parseFeatureList(),lookups:w.parseLookupList(A1),variations:w.parseFeatureVariationsList()}}var EW={parse:jW};function FW(J,K){var w={},Y=new n.Parser(J,K);return w.version=Y.parseVersion(),w.fontRevision=Math.round(Y.parseFixed()*1000)/1000,w.checkSumAdjustment=Y.parseULong(),w.magicNumber=Y.parseULong(),z0.argument(w.magicNumber===1594834165,"Font header has wrong magic number."),w.flags=Y.parseUShort(),w.unitsPerEm=Y.parseUShort(),w.created=Y.parseLongDateTime(),w.modified=Y.parseLongDateTime(),w.xMin=Y.parseShort(),w.yMin=Y.parseShort(),w.xMax=Y.parseShort(),w.yMax=Y.parseShort(),w.macStyle=Y.parseUShort(),w.lowestRecPPEM=Y.parseUShort(),w.fontDirectionHint=Y.parseShort(),w.indexToLocFormat=Y.parseShort(),w.glyphDataFormat=Y.parseShort(),w}var RW={parse:FW};function _W(J,K){var w={},Y=new n.Parser(J,K);return w.version=Y.parseVersion(),w.ascender=Y.parseShort(),w.descender=Y.parseShort(),w.lineGap=Y.parseShort(),w.advanceWidthMax=Y.parseUShort(),w.minLeftSideBearing=Y.parseShort(),w.minRightSideBearing=Y.parseShort(),w.xMaxExtent=Y.parseShort(),w.caretSlopeRise=Y.parseShort(),w.caretSlopeRun=Y.parseShort(),w.caretOffset=Y.parseShort(),Y.relativeOffset+=8,w.metricDataFormat=Y.parseShort(),w.numberOfHMetrics=Y.parseUShort(),w}var DW={parse:_W};function IW(J,K,w,Y,X){var Z,Q,W=new n.Parser(J,K);for(var H=0;H<Y;H+=1){if(H<w)Z=W.parseUShort(),Q=W.parseShort();var $=X.get(H);$.advanceWidth=Z,$.leftSideBearing=Q}}function TW(J,K,w,Y,X){J._hmtxTableData={};var Z,Q,W=new n.Parser(K,w);for(var H=0;H<X;H+=1){if(H<Y)Z=W.parseUShort(),Q=W.parseShort();J._hmtxTableData[H]={advanceWidth:Z,leftSideBearing:Q}}}function CW(J,K,w,Y,X,Z,Q){if(Q.lowMemory)TW(J,K,w,Y,X);else IW(K,w,Y,X,Z)}var PW={parse:CW};function SW(J){var K={};J.skip("uShort");var w=J.parseUShort();z0.argument(w===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var Y=J.parseUShort();J.skip("uShort",3);for(var X=0;X<Y;X+=1){var Z=J.parseUShort(),Q=J.parseUShort(),W=J.parseShort();K[Z+","+Q]=W}return K}function vW(J){var K={};J.skip("uShort");var w=J.parseULong();if(w>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var Y=J.parseUShort(),X=Y&255;if(J.skip("uShort"),X===0){var Z=J.parseUShort();J.skip("uShort",3);for(var Q=0;Q<Z;Q+=1){var W=J.parseUShort(),H=J.parseUShort(),$=J.parseShort();K[W+","+H]=$}}return K}function yW(J,K){var w=new n.Parser(J,K),Y=w.parseUShort();if(Y===0)return SW(w);else if(Y===1)return vW(w);else throw Error("Unsupported kern table version ("+Y+").")}var hW={parse:yW};function kW(J,K){var w=new n.Parser(J,K),Y=w.parseULong();z0.argument(Y===1,"Unsupported ltag table version."),w.skip("uLong",1);var X=w.parseULong(),Z=[];for(var Q=0;Q<X;Q++){var W="",H=K+w.parseUShort(),$=w.parseUShort();for(var z=H;z<H+$;++z)W+=String.fromCharCode(J.getInt8(z));Z.push(W)}return Z}var gW={parse:kW};function xW(J,K,w,Y){var X=new n.Parser(J,K),Z=Y?X.parseUShort:X.parseULong,Q=[];for(var W=0;W<w+1;W+=1){var H=Z.call(X);if(Y)H*=2;Q.push(H)}return Q}var bW={parse:xW};function fW(J,K){var w={},Y=new n.Parser(J,K);if(w.version=Y.parseVersion(),w.numGlyphs=Y.parseUShort(),w.version===1)w.maxPoints=Y.parseUShort(),w.maxContours=Y.parseUShort(),w.maxCompositePoints=Y.parseUShort(),w.maxCompositeContours=Y.parseUShort(),w.maxZones=Y.parseUShort(),w.maxTwilightPoints=Y.parseUShort(),w.maxStorage=Y.parseUShort(),w.maxFunctionDefs=Y.parseUShort(),w.maxInstructionDefs=Y.parseUShort(),w.maxStackElements=Y.parseUShort(),w.maxSizeOfInstructions=Y.parseUShort(),w.maxComponentElements=Y.parseUShort(),w.maxComponentDepth=Y.parseUShort();return w}var mW={parse:fW};function dW(J,K){var w={},Y=new n.Parser(J,K);w.version=Y.parseUShort(),w.xAvgCharWidth=Y.parseShort(),w.usWeightClass=Y.parseUShort(),w.usWidthClass=Y.parseUShort(),w.fsType=Y.parseUShort(),w.ySubscriptXSize=Y.parseShort(),w.ySubscriptYSize=Y.parseShort(),w.ySubscriptXOffset=Y.parseShort(),w.ySubscriptYOffset=Y.parseShort(),w.ySuperscriptXSize=Y.parseShort(),w.ySuperscriptYSize=Y.parseShort(),w.ySuperscriptXOffset=Y.parseShort(),w.ySuperscriptYOffset=Y.parseShort(),w.yStrikeoutSize=Y.parseShort(),w.yStrikeoutPosition=Y.parseShort(),w.sFamilyClass=Y.parseShort(),w.panose=[];for(var X=0;X<10;X++)w.panose[X]=Y.parseByte();if(w.ulUnicodeRange1=Y.parseULong(),w.ulUnicodeRange2=Y.parseULong(),w.ulUnicodeRange3=Y.parseULong(),w.ulUnicodeRange4=Y.parseULong(),w.achVendID=String.fromCharCode(Y.parseByte(),Y.parseByte(),Y.parseByte(),Y.parseByte()),w.fsSelection=Y.parseUShort(),w.usFirstCharIndex=Y.parseUShort(),w.usLastCharIndex=Y.parseUShort(),w.sTypoAscender=Y.parseShort(),w.sTypoDescender=Y.parseShort(),w.sTypoLineGap=Y.parseShort(),w.usWinAscent=Y.parseUShort(),w.usWinDescent=Y.parseUShort(),w.version>=1)w.ulCodePageRange1=Y.parseULong(),w.ulCodePageRange2=Y.parseULong();if(w.version>=2)w.sxHeight=Y.parseShort(),w.sCapHeight=Y.parseShort(),w.usDefaultChar=Y.parseUShort(),w.usBreakChar=Y.parseUShort(),w.usMaxContent=Y.parseUShort();return w}var lW={parse:dW};function cW(J,K){var w={},Y=new n.Parser(J,K);switch(w.version=Y.parseVersion(),w.italicAngle=Y.parseFixed(),w.underlinePosition=Y.parseShort(),w.underlineThickness=Y.parseShort(),w.isFixedPitch=Y.parseULong(),w.minMemType42=Y.parseULong(),w.maxMemType42=Y.parseULong(),w.minMemType1=Y.parseULong(),w.maxMemType1=Y.parseULong(),w.names=[],w.version){case 1:break;case 2:w.numberOfGlyphs=Y.parseUShort(),w.glyphNameIndex=Array(w.numberOfGlyphs);for(var X=0;X<w.numberOfGlyphs;X++)w.glyphNameIndex[X]=Y.parseUShort();break;case 2.5:w.numberOfGlyphs=Y.parseUShort(),w.offset=Array(w.numberOfGlyphs);for(var Z=0;Z<w.numberOfGlyphs;Z++)w.offset[Z]=Y.parseChar();break}return w}var uW={parse:cW},T8={};T8.UTF8=function(J,K,w){var Y=[],X=w;for(var Z=0;Z<X;Z++,K+=1)Y[Z]=J.getUint8(K);return String.fromCharCode.apply(null,Y)};T8.UTF16=function(J,K,w){var Y=[],X=w/2;for(var Z=0;Z<X;Z++,K+=2)Y[Z]=J.getUint16(K);return String.fromCharCode.apply(null,Y)};var pW={"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"};T8.MACSTRING=function(J,K,w,Y){var X=pW[Y];if(X===void 0)return;var Z="";for(var Q=0;Q<w;Q++){var W=J.getUint8(K+Q);if(W<=127)Z+=String.fromCharCode(W);else Z+=X[W&127]}return Z};function iW(J,K){var w=new n.Parser(J,K),Y=w.parseULong();z0.argument(Y===1,"Unsupported META table version."),w.parseULong(),w.parseULong();var X=w.parseULong(),Z={};for(var Q=0;Q<X;Q++){var W=w.parseTag(),H=w.parseULong(),$=w.parseULong(),z=T8.UTF8(J,K+H,$);Z[W]=z}return Z}var rW={parse:iW};function DJ(J,K){var w=[],Y=12;for(var X=0;X<K;X+=1){var Z=n.getTag(J,Y),Q=n.getULong(J,Y+4),W=n.getULong(J,Y+8),H=n.getULong(J,Y+12);w.push({tag:Z,checksum:Q,offset:W,length:H,compression:!1}),Y+=16}return w}function nW(J,K){var w=[],Y=44;for(var X=0;X<K;X+=1){var Z=n.getTag(J,Y),Q=n.getULong(J,Y+4),W=n.getULong(J,Y+8),H=n.getULong(J,Y+12),$=void 0;if(W<H)$="WOFF";else $=!1;w.push({tag:Z,offset:Q,compression:$,compressedLength:W,length:H}),Y+=20}return w}function I0(J,K){if(K.compression==="WOFF"){var w=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),Y=new Uint8Array(K.length);if(BZ(w,Y),Y.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var X=new DataView(Y.buffer,0);return{data:X,offset:0}}else return{data:J,offset:K.offset}}function oW(J,K){K=K===void 0||K===null?{}:K;var w,Y=new m0({empty:!0}),X=new DataView(J,0),Z,Q=[],W=n.getTag(X,0);if(W===String.fromCharCode(0,1,0,0)||W==="true"||W==="typ1")Y.outlinesFormat="truetype",Z=n.getUShort(X,4),Q=DJ(X,Z);else if(W==="OTTO")Y.outlinesFormat="cff",Z=n.getUShort(X,4),Q=DJ(X,Z);else if(W==="wOFF"){var H=n.getTag(X,4);if(H===String.fromCharCode(0,1,0,0))Y.outlinesFormat="truetype";else if(H==="OTTO")Y.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+W);Z=n.getUShort(X,12),Q=nW(X,Z)}else throw Error("Unsupported OpenType signature "+W);var $,z,U,A,V,O,B,M,q,N,E;for(var _=0;_<Z;_+=1){var F=Q[_],j=void 0;switch(F.tag){case"cmap":j=I0(X,F),Y.tables.cmap=rH.parse(j.data,j.offset),Y.encoding=new kJ(Y.tables.cmap);break;case"cvt ":j=I0(X,F),E=new n.Parser(j.data,j.offset),Y.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":z=F;break;case"fpgm":j=I0(X,F),E=new n.Parser(j.data,j.offset),Y.tables.fpgm=E.parseByteList(F.length);break;case"head":j=I0(X,F),Y.tables.head=RW.parse(j.data,j.offset),Y.unitsPerEm=Y.tables.head.unitsPerEm,w=Y.tables.head.indexToLocFormat;break;case"hhea":j=I0(X,F),Y.tables.hhea=DW.parse(j.data,j.offset),Y.ascender=Y.tables.hhea.ascender,Y.descender=Y.tables.hhea.descender,Y.numberOfHMetrics=Y.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":j=I0(X,F),ltagTable=gW.parse(j.data,j.offset);break;case"maxp":j=I0(X,F),Y.tables.maxp=mW.parse(j.data,j.offset),Y.numGlyphs=Y.tables.maxp.numGlyphs;break;case"OS/2":j=I0(X,F),Y.tables.os2=lW.parse(j.data,j.offset);break;case"post":j=I0(X,F),Y.tables.post=uW.parse(j.data,j.offset);break;case"prep":j=I0(X,F),E=new n.Parser(j.data,j.offset),Y.tables.prep=E.parseByteList(F.length);break;case"glyf":U=F;break;case"loca":q=F;break;case"CFF ":$=F;break;case"kern":M=F;break;case"GDEF":A=F;break;case"GPOS":V=F;break;case"GSUB":O=F;break;case"meta":N=F;break}}if(U&&q){var T=w===0,D=I0(X,q),C=bW.parse(D.data,D.offset,Y.numGlyphs,T),k=I0(X,U);Y.glyphs=dJ.parse(k.data,k.offset,C,Y,K)}else if($){var c=I0(X,$);HW.parse(c.data,c.offset,Y,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var u=I0(X,B);if(PW.parse(Y,u.data,u.offset,Y.numberOfHMetrics,Y.numGlyphs,Y.glyphs,K),EZ(Y,K),M){var p=I0(X,M);Y.kerningPairs=hW.parse(p.data,p.offset)}else Y.kerningPairs={};if(A){var P=I0(X,A);Y.tables.gdef=LW.parse(P.data,P.offset)}if(V){var S=I0(X,V);Y.tables.gpos=NW.parse(S.data,S.offset),Y.position.init()}if(O){var I=I0(X,O);Y.tables.gsub=EW.parse(I.data,I.offset)}if(z){var l=I0(X,z);Y.tables.fvar=UW.parse(l.data,l.offset,Y.names)}if(N){var f=I0(X,N);Y.tables.meta=rW.parse(f.data,f.offset),Y.metas=Y.tables.meta}return Y}function sW(){}function aW(){}var tW=Object.freeze({__proto__:null,Font:m0,Glyph:S1,Path:f0,_parse:n,parse:oW,load:sW,loadSync:aW}),C8=tW;var{create:J$,defineProperty:n8,getOwnPropertyDescriptor:K$,getOwnPropertyNames:w$,getPrototypeOf:Y$}=Object,X$=Object.prototype.hasOwnProperty,h4=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),k4=(J,K)=>{for(var w in K)n8(J,w,{get:K[w],enumerable:!0})},FK=(J,K,w,Y)=>{if(K&&typeof K=="object"||typeof K=="function")for(let X of w$(K))!X$.call(J,X)&&X!==w&&n8(J,X,{get:()=>K[X],enumerable:!(Y=K$(K,X))||Y.enumerable});return J},Z$=(J,K,w)=>(w=J!=null?J$(Y$(J)):{},FK(K||!J||!J.__esModule?n8(w,"default",{value:J,enumerable:!0}):w,J)),i8=(J)=>FK(n8({},"__esModule",{value:!0}),J),RK={};k4(RK,{getYogaModule:()=>Q$});async function Q$(){let{default:J}=await import("./chunk-qyn10pv7.js");return J()}var H$=h4(()=>{}),_K=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(w){if(w=`${w}`,w==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(w))return w.replace(/^[+-]?/,(Y)=>Y==="-"?"":"-");if(w.includes("var(")||w.includes("calc("))return`calc(${w} * -1)`}}),W$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["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"]}),$$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(w,Y){return w===void 0?Y:Array.isArray(w)?w:[...new Set(Y.filter((X)=>w!==!1&&w[X]!==!1).concat(Object.keys(w).filter((X)=>w[X]!==!1)))]}}),DK=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:w})=>({inherit:w.inherit,current:w.current,transparent:w.transparent,black:w.black,white:w.white,slate:w.slate,gray:w.gray,zinc:w.zinc,neutral:w.neutral,stone:w.stone,red:w.red,orange:w.orange,amber:w.amber,yellow:w.yellow,lime:w.lime,green:w.green,emerald:w.emerald,teal:w.teal,cyan:w.cyan,sky:w.sky,blue:w.blue,indigo:w.indigo,violet:w.violet,purple:w.purple,fuchsia:w.fuchsia,pink:w.pink,rose:w.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:w})=>w("blur"),backdropBrightness:({theme:w})=>w("brightness"),backdropContrast:({theme:w})=>w("contrast"),backdropGrayscale:({theme:w})=>w("grayscale"),backdropHueRotate:({theme:w})=>w("hueRotate"),backdropInvert:({theme:w})=>w("invert"),backdropOpacity:({theme:w})=>w("opacity"),backdropSaturate:({theme:w})=>w("saturate"),backdropSepia:({theme:w})=>w("sepia"),backgroundColor:({theme:w})=>w("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:w})=>w("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:w})=>({...w("colors"),DEFAULT:w("colors.gray.200","currentColor")}),borderOpacity:({theme:w})=>w("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:w})=>({...w("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:w})=>w("colors"),caretColor:({theme:w})=>w("colors"),accentColor:({theme:w})=>({...w("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:w})=>w("borderColor"),divideOpacity:({theme:w})=>w("borderOpacity"),divideWidth:({theme:w})=>w("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:w})=>w("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:w})=>({auto:"auto",...w("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:w})=>w("spacing"),gradientColorStops:({theme:w})=>w("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:w})=>({auto:"auto",...w("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:w})=>({auto:"auto",...w("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:w})=>({auto:"auto",...w("spacing")}),maxHeight:({theme:w})=>({...w("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:w,breakpoints:Y})=>({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",...Y(w("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:w})=>w("spacing"),placeholderColor:({theme:w})=>w("colors"),placeholderOpacity:({theme:w})=>w("opacity"),outlineColor:({theme:w})=>w("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:w})=>({DEFAULT:w("colors.blue.500","#3b82f6"),...w("colors")}),ringOffsetColor:({theme:w})=>w("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:w})=>({DEFAULT:"0.5",...w("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:w})=>({...w("spacing")}),scrollPadding:({theme:w})=>w("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:w})=>({...w("spacing")}),stroke:({theme:w})=>w("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:w})=>w("colors"),textDecorationColor:({theme:w})=>w("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:w})=>({...w("spacing")}),textOpacity:({theme:w})=>w("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:w})=>({...w("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:w})=>({auto:"auto",...w("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:[]}}),o8={};k4(o8,{default:()=>IK});var IK,g4=h4(()=>{IK={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),z$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var K=w((g4(),i8(o8)));function w(Z){return Z&&Z.__esModule?Z:{default:Z}}function Y({version:Z,from:Q,to:W}){K.default.warn(`${Q}-color-renamed`,[`As of Tailwind CSS ${Z}, \`${Q}\` has been renamed to \`${W}\`.`,"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 Y({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return Y({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return Y({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return Y({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return Y({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),U$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(w,...Y){for(let Q of Y){for(let W in Q){var X;!(w==null||(X=w.hasOwnProperty)===null||X===void 0)&&X.call(w,W)||(w[W]=Q[W])}for(let W of Object.getOwnPropertySymbols(Q)){var Z;!(w==null||(Z=w.hasOwnProperty)===null||Z===void 0)&&Z.call(w,W)||(w[W]=Q[W])}}return w}}),A$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(w){if(Array.isArray(w))return w;let Y=w.split("[").length-1,X=w.split("]").length-1;if(Y!==X)throw Error(`Path is invalid. Has unbalanced brackets: ${w}`);return w.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),V$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>X});var K=Y((g4(),i8(o8)));function w(Z){if(typeof WeakMap!="function")return null;var Q=new WeakMap,W=new WeakMap;return(w=function(H){return H?W:Q})(Z)}function Y(Z,Q){if(!Q&&Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var W=w(Q);if(W&&W.has(Z))return W.get(Z);var H={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Z)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Z,z)){var U=$?Object.getOwnPropertyDescriptor(Z,z):null;U&&(U.get||U.set)?Object.defineProperty(H,z,U):H[z]=Z[z]}return H.default=Z,W&&W.set(Z,H),H}function X(Z){if((()=>{if(Z.purge||!Z.content||!Array.isArray(Z.content)&&!(typeof Z.content=="object"&&Z.content!==null))return!1;if(Array.isArray(Z.content))return Z.content.every((W)=>typeof W=="string"?!0:!(typeof(W==null?void 0:W.raw)!="string"||W!=null&&W.extension&&typeof(W==null?void 0:W.extension)!="string"));if(typeof Z.content=="object"&&Z.content!==null){if(Object.keys(Z.content).some((W)=>!["files","extract","transform"].includes(W)))return!1;if(Array.isArray(Z.content.files)){if(!Z.content.files.every((W)=>typeof W=="string"?!0:!(typeof(W==null?void 0:W.raw)!="string"||W!=null&&W.extension&&typeof(W==null?void 0:W.extension)!="string")))return!1;if(typeof Z.content.extract=="object"){for(let W of Object.values(Z.content.extract))if(typeof W!="function")return!1}else if(!(Z.content.extract===void 0||typeof Z.content.extract=="function"))return!1;if(typeof Z.content.transform=="object"){for(let W of Object.values(Z.content.transform))if(typeof W!="function")return!1}else if(!(Z.content.transform===void 0||typeof Z.content.transform=="function"))return!1}return!0}return!1})()||K.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"]),Z.safelist=(()=>{var W;let{content:H,purge:$,safelist:z}=Z;return Array.isArray(z)?z:Array.isArray(H==null?void 0:H.safelist)?H.safelist:Array.isArray($==null?void 0:$.safelist)?$.safelist:Array.isArray($==null||(W=$.options)===null||W===void 0?void 0:W.safelist)?$.options.safelist:[]})(),typeof Z.prefix=="function")K.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"]),Z.prefix="";else{var Q;Z.prefix=(Q=Z.prefix)!==null&&Q!==void 0?Q:""}Z.content={files:(()=>{let{content:W,purge:H}=Z;return Array.isArray(H)?H:Array.isArray(H==null?void 0:H.content)?H.content:Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray(W==null?void 0:W.files)?W.files:[]})(),extract:(()=>{let W=(()=>{var z,U,A,V,O,B,M,q,N,E;return!((z=Z.purge)===null||z===void 0)&&z.extract?Z.purge.extract:!((U=Z.content)===null||U===void 0)&&U.extract?Z.content.extract:!((A=Z.purge)===null||A===void 0||(V=A.extract)===null||V===void 0)&&V.DEFAULT?Z.purge.extract.DEFAULT:!((O=Z.content)===null||O===void 0||(B=O.extract)===null||B===void 0)&&B.DEFAULT?Z.content.extract.DEFAULT:!((M=Z.purge)===null||M===void 0||(q=M.options)===null||q===void 0)&&q.extractors?Z.purge.options.extractors:!((N=Z.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Z.content.options.extractors:{}})(),H={},$=(()=>{var z,U,A,V;if(!((z=Z.purge)===null||z===void 0||(U=z.options)===null||U===void 0)&&U.defaultExtractor)return Z.purge.options.defaultExtractor;if(!((A=Z.content)===null||A===void 0||(V=A.options)===null||V===void 0)&&V.defaultExtractor)return Z.content.options.defaultExtractor})();if($!==void 0&&(H.DEFAULT=$),typeof W=="function")H.DEFAULT=W;else if(Array.isArray(W))for(let{extensions:z,extractor:U}of W??[])for(let A of z)H[A]=U;else typeof W=="object"&&W!==null&&Object.assign(H,W);return H})(),transform:(()=>{let W=(()=>{var $,z,U,A,V,O;return!(($=Z.purge)===null||$===void 0)&&$.transform?Z.purge.transform:!((z=Z.content)===null||z===void 0)&&z.transform?Z.content.transform:!((U=Z.purge)===null||U===void 0||(A=U.transform)===null||A===void 0)&&A.DEFAULT?Z.purge.transform.DEFAULT:!((V=Z.content)===null||V===void 0||(O=V.transform)===null||O===void 0)&&O.DEFAULT?Z.content.transform.DEFAULT:{}})(),H={};return typeof W=="function"&&(H.DEFAULT=W),typeof W=="object"&&W!==null&&Object.assign(H,W),H})()};for(let W of Z.content.files)if(typeof W=="string"&&/{([^,]*?)}/g.test(W)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)(W)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)(W.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Z}}),B$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(w){if(Object.prototype.toString.call(w)!=="[object Object]")return!1;let Y=Object.getPrototypeOf(w);return Y===null||Y===Object.prototype}}),G$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(w){return Array.isArray(w)?w.map((Y)=>K(Y)):typeof w=="object"&&w!==null?Object.fromEntries(Object.entries(w).map(([Y,X])=>[Y,K(X)])):w}}),TK=t((J,K)=>{J.__esModule=!0,J.default=X;function w(Z){for(var Q=Z.toLowerCase(),W="",H=!1,$=0;$<6&&Q[$]!==void 0;$++){var z=Q.charCodeAt($),U=z>=97&&z<=102||z>=48&&z<=57;if(H=z===32,!U)break;W+=Q[$]}if(W.length!==0){var A=parseInt(W,16),V=A>=55296&&A<=57343;return V||A===0||A>1114111?["\uFFFD",W.length+(H?1:0)]:[String.fromCodePoint(A),W.length+(H?1:0)]}}var Y=/\\/;function X(Z){var Q=Y.test(Z);if(!Q)return Z;for(var W="",H=0;H<Z.length;H++){if(Z[H]==="\\"){var $=w(Z.slice(H+1,H+7));if($!==void 0){W+=$[0],H+=$[1];continue}if(Z[H+1]==="\\"){W+="\\",H++;continue}Z.length===H+1&&(W+=Z[H]);continue}W+=Z[H]}return W}K.exports=J.default}),M$=t((J,K)=>{J.__esModule=!0,J.default=w;function w(Y){for(var X=arguments.length,Z=Array(X>1?X-1:0),Q=1;Q<X;Q++)Z[Q-1]=arguments[Q];for(;Z.length>0;){var W=Z.shift();if(!Y[W])return;Y=Y[W]}return Y}K.exports=J.default}),O$=t((J,K)=>{J.__esModule=!0,J.default=w;function w(Y){for(var X=arguments.length,Z=Array(X>1?X-1:0),Q=1;Q<X;Q++)Z[Q-1]=arguments[Q];for(;Z.length>0;){var W=Z.shift();Y[W]||(Y[W]={}),Y=Y[W]}}K.exports=J.default}),L$=t((J,K)=>{J.__esModule=!0,J.default=w;function w(Y){for(var X="",Z=Y.indexOf("/*"),Q=0;Z>=0;){X=X+Y.slice(Q,Z);var W=Y.indexOf("*/",Z+2);if(W<0)return X;Q=W+2,Z=Y.indexOf("/*",Q)}return X=X+Y.slice(Q),X}K.exports=J.default}),s8=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Z(TK());J.unesc=K.default;var w=Z(M$());J.getProp=w.default;var Y=Z(O$());J.ensureObject=Y.default;var X=Z(L$());J.stripComments=X.default;function Z(Q){return Q&&Q.__esModule?Q:{default:Q}}}),n1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=s8();function Y(W,H){for(var $=0;$<H.length;$++){var z=H[$];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(W,z.key,z)}}function X(W,H,$){return H&&Y(W.prototype,H),$&&Y(W,$),W}var Z=function W(H,$){if(typeof H!="object"||H===null)return H;var z=new H.constructor;for(var U in H)if(H.hasOwnProperty(U)){var A=H[U],V=typeof A;U==="parent"&&V==="object"?$&&(z[U]=$):A instanceof Array?z[U]=A.map(function(O){return W(O,z)}):z[U]=W(A,z)}return z},Q=function(){function W($){$===void 0&&($={}),Object.assign(this,$),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var H=W.prototype;return H.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},H.replaceWith=function(){if(this.parent){for(var $ in arguments)this.parent.insertBefore(this,arguments[$]);this.remove()}return this},H.next=function(){return this.parent.at(this.parent.index(this)+1)},H.prev=function(){return this.parent.at(this.parent.index(this)-1)},H.clone=function($){$===void 0&&($={});var z=Z(this);for(var U in $)z[U]=$[U];return z},H.appendToPropertyAndEscape=function($,z,U){this.raws||(this.raws={});var A=this[$],V=this.raws[$];this[$]=A+z,V||U!==z?this.raws[$]=(V||A)+U:delete this.raws[$]},H.setPropertyAndEscape=function($,z,U){this.raws||(this.raws={}),this[$]=z,this.raws[$]=U},H.setPropertyWithoutEscape=function($,z){this[$]=z,this.raws&&delete this.raws[$]},H.isAtPosition=function($,z){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>$||this.source.end.line<$||this.source.start.line===$&&this.source.start.column>z||this.source.end.line===$&&this.source.end.column<z)},H.stringifyProperty=function($){return this.raws&&this.raws[$]||this[$]},H.valueToString=function(){return String(this.stringifyProperty("value"))},H.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},X(W,[{key:"rawSpaceBefore",get:function(){var $=this.raws&&this.raws.spaces&&this.raws.spaces.before;return $===void 0&&($=this.spaces&&this.spaces.before),$||""},set:function($){(0,w.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=$}},{key:"rawSpaceAfter",get:function(){var $=this.raws&&this.raws.spaces&&this.raws.spaces.after;return $===void 0&&($=this.spaces.after),$||""},set:function($){(0,w.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=$}}]),W}();J.default=Q,K.exports=J.default}),d0=t((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 K="tag";J.TAG=K;var w="string";J.STRING=w;var Y="selector";J.SELECTOR=Y;var X="root";J.ROOT=X;var Z="pseudo";J.PSEUDO=Z;var Q="nesting";J.NESTING=Q;var W="id";J.ID=W;var H="comment";J.COMMENT=H;var $="combinator";J.COMBINATOR=$;var z="class";J.CLASS=z;var U="attribute";J.ATTRIBUTE=U;var A="universal";J.UNIVERSAL=A}),x4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=Q(n1()),Y=Z(d0());function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Z(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 q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var _=N?Object.getOwnPropertyDescriptor(B,E):null;_&&(_.get||_.set)?Object.defineProperty(q,E,_):q[E]=B[E]}return q.default=B,M&&M.set(B,q),q}function Q(B){return B&&B.__esModule?B:{default:B}}function W(B,M){var q;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(q=H(B))||M&&B&&typeof B.length=="number"){q&&(B=q);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 q=B[Symbol.iterator](),q.next.bind(q)}function H(B,M){if(B){if(typeof B=="string")return $(B,M);var q=Object.prototype.toString.call(B).slice(8,-1);if(q==="Object"&&B.constructor&&(q=B.constructor.name),q==="Map"||q==="Set")return Array.from(B);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return $(B,M)}}function $(B,M){(M==null||M>B.length)&&(M=B.length);for(var q=0,N=Array(M);q<M;q++)N[q]=B[q];return N}function z(B,M){for(var q=0;q<M.length;q++){var N=M[q];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function U(B,M,q){return M&&z(B.prototype,M),q&&z(B,q),B}function A(B,M){B.prototype=Object.create(M.prototype),B.prototype.constructor=B,V(B,M)}function V(B,M){return V=Object.setPrototypeOf||function(q,N){return q.__proto__=N,q},V(B,M)}var O=function(B){A(M,B);function M(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var q=M.prototype;return q.append=function(N){return N.parent=this,this.nodes.push(N),this},q.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},q.at=function(N){return this.nodes[N]},q.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},q.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var _ in this.indexes)E=this.indexes[_],E>=N&&(this.indexes[_]=E-1);return this},q.removeAll=function(){for(var N=W(this.nodes),E;!(E=N()).done;){var _=E.value;_.parent=void 0}return this.nodes=[],this},q.empty=function(){return this.removeAll()},q.insertAfter=function(N,E){E.parent=this;var _=this.index(N);this.nodes.splice(_+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],_<=F&&(this.indexes[j]=F+1);return this},q.insertBefore=function(N,E){E.parent=this;var _=this.index(N);this.nodes.splice(_,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=_&&(this.indexes[j]=F+1);return this},q._findChildAtPosition=function(N,E){var _=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return _=j,!1}else if(F.isAtPosition(N,E))return _=F,!1}),_},q.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},q._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))},q.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 _,F;this.indexes[E]<this.length&&(_=this.indexes[E],F=N(this.at(_),_),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},q.walk=function(N){return this.each(function(E,_){var F=N(E,_);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},q.walkAttributes=function(N){var E=this;return this.walk(function(_){if(_.type===Y.ATTRIBUTE)return N.call(E,_)})},q.walkClasses=function(N){var E=this;return this.walk(function(_){if(_.type===Y.CLASS)return N.call(E,_)})},q.walkCombinators=function(N){var E=this;return this.walk(function(_){if(_.type===Y.COMBINATOR)return N.call(E,_)})},q.walkComments=function(N){var E=this;return this.walk(function(_){if(_.type===Y.COMMENT)return N.call(E,_)})},q.walkIds=function(N){var E=this;return this.walk(function(_){if(_.type===Y.ID)return N.call(E,_)})},q.walkNesting=function(N){var E=this;return this.walk(function(_){if(_.type===Y.NESTING)return N.call(E,_)})},q.walkPseudos=function(N){var E=this;return this.walk(function(_){if(_.type===Y.PSEUDO)return N.call(E,_)})},q.walkTags=function(N){var E=this;return this.walk(function(_){if(_.type===Y.TAG)return N.call(E,_)})},q.walkUniversals=function(N){var E=this;return this.walk(function(_){if(_.type===Y.UNIVERSAL)return N.call(E,_)})},q.split=function(N){var E=this,_=[];return this.reduce(function(F,j,T){var D=N.call(E,j);return _.push(j),D?(F.push(_),_=[]):T===E.length-1&&F.push(_),F},[])},q.map=function(N){return this.nodes.map(N)},q.reduce=function(N,E){return this.nodes.reduce(N,E)},q.every=function(N){return this.nodes.every(N)},q.some=function(N){return this.nodes.some(N)},q.filter=function(N){return this.nodes.filter(N)},q.sort=function(N){return this.nodes.sort(N)},q.toString=function(){return this.map(String).join("")},U(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}(w.default);J.default=O,K.exports=J.default}),CK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(x4()),Y=d0();function X(z){return z&&z.__esModule?z:{default:z}}function Z(z,U){for(var A=0;A<U.length;A++){var V=U[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(z,V.key,V)}}function Q(z,U,A){return U&&Z(z.prototype,U),A&&Z(z,A),z}function W(z,U){z.prototype=Object.create(U.prototype),z.prototype.constructor=z,H(z,U)}function H(z,U){return H=Object.setPrototypeOf||function(A,V){return A.__proto__=V,A},H(z,U)}var $=function(z){W(U,z);function U(V){var O;return O=z.call(this,V)||this,O.type=Y.ROOT,O}var A=U.prototype;return A.toString=function(){var V=this.reduce(function(O,B){return O.push(String(B)),O},[]).join(",");return this.trailingComma?V+",":V},A.error=function(V,O){return this._error?this._error(V,O):Error(V)},Q(U,[{key:"errorGenerator",set:function(V){this._error=V}}]),U}(w.default);J.default=$,K.exports=J.default}),PK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(x4()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.SELECTOR,U}return $}(w.default);J.default=W,K.exports=J.default}),b4=t((J,K)=>{var w={},Y=w.hasOwnProperty,X=function($,z){if(!$)return z;var U={};for(var A in z)U[A]=Y.call($,A)?$[A]:z[A];return U},Z=/[ -,\.\/:-@\[-\^`\{-~]/,Q=/[ -,\.\/:-@\[\]\^`\{-~]/,W=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,H=function $(z,U){U=X(U,$.options),U.quotes!="single"&&U.quotes!="double"&&(U.quotes="single");for(var A=U.quotes=="double"?'"':"'",V=U.isIdentifier,O=z.charAt(0),B="",M=0,q=z.length;M<q;){var N=z.charAt(M++),E=N.charCodeAt(),_=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&M<q){var F=z.charCodeAt(M++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:M--}_="\\"+E.toString(16).toUpperCase()+" "}else U.escapeEverything?Z.test(N)?_="\\"+N:_="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?_="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!V&&(N=='"'&&A==N||N=="'"&&A==N)||V&&Q.test(N)?_="\\"+N:_=N;B+=_}return V&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(O)&&(B="\\3"+O+" "+B.slice(1))),B=B.replace(W,function(j,T,D){return T&&T.length%2?j:(T||"")+D}),!V&&U.wrap?A+B+A:B};H.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},H.version="3.0.0",K.exports=H}),SK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=Q(b4()),Y=s8(),X=Q(n1()),Z=d0();function Q(A){return A&&A.__esModule?A:{default:A}}function W(A,V){for(var O=0;O<V.length;O++){var B=V[O];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function H(A,V,O){return V&&W(A.prototype,V),O&&W(A,O),A}function $(A,V){A.prototype=Object.create(V.prototype),A.prototype.constructor=A,z(A,V)}function z(A,V){return z=Object.setPrototypeOf||function(O,B){return O.__proto__=B,O},z(A,V)}var U=function(A){$(V,A);function V(B){var M;return M=A.call(this,B)||this,M.type=Z.CLASS,M._constructed=!0,M}var O=V.prototype;return O.valueToString=function(){return"."+A.prototype.valueToString.call(this)},H(V,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var M=(0,w.default)(B,{isIdentifier:!0});M!==B?((0,Y.ensureObject)(this,"raws"),this.raws.value=M):this.raws&&delete this.raws.value}this._value=B}}]),V}(X.default);J.default=U,K.exports=J.default}),vK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(n1()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.COMMENT,U}return $}(w.default);J.default=W,K.exports=J.default}),yK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(n1()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(U){var A;return A=H.call(this,U)||this,A.type=Y.ID,A}var z=$.prototype;return z.valueToString=function(){return"#"+H.prototype.valueToString.call(this)},$}(w.default);J.default=W,K.exports=J.default}),f4=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=Z(b4()),Y=s8(),X=Z(n1());function Z(U){return U&&U.__esModule?U:{default:U}}function Q(U,A){for(var V=0;V<A.length;V++){var O=A[V];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(U,O.key,O)}}function W(U,A,V){return A&&Q(U.prototype,A),V&&Q(U,V),U}function H(U,A){U.prototype=Object.create(A.prototype),U.prototype.constructor=U,$(U,A)}function $(U,A){return $=Object.setPrototypeOf||function(V,O){return V.__proto__=O,V},$(U,A)}var z=function(U){H(A,U);function A(){return U.apply(this,arguments)||this}var V=A.prototype;return V.qualifiedName=function(O){return this.namespace?this.namespaceString+"|"+O:O},V.valueToString=function(){return this.qualifiedName(U.prototype.valueToString.call(this))},W(A,[{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,w.default)(O,{isIdentifier:!0});this._namespace=O,B!==O?((0,Y.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""}}]),A}(X.default);J.default=z,K.exports=J.default}),hK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(f4()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.TAG,U}return $}(w.default);J.default=W,K.exports=J.default}),kK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(n1()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.STRING,U}return $}(w.default);J.default=W,K.exports=J.default}),gK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(x4()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(U){var A;return A=H.call(this,U)||this,A.type=Y.PSEUDO,A}var z=$.prototype;return z.toString=function(){var U=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),U,this.rawSpaceAfter].join("")},$}(w.default);J.default=W,K.exports=J.default}),q$=t((J,K)=>{K.exports=function(w,Y){return function(...X){return console.warn(Y),w(...X)}}}),xK=t((J)=>{J.__esModule=!0,J.unescapeValue=M,J.default=void 0;var K=Q(b4()),w=Q(TK()),Y=Q(f4()),X=d0(),Z;function Q(F){return F&&F.__esModule?F:{default:F}}function W(F,j){for(var T=0;T<j.length;T++){var D=j[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}function H(F,j,T){return j&&W(F.prototype,j),T&&W(F,T),F}function $(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,z(F,j)}function z(F,j){return z=Object.setPrototypeOf||function(T,D){return T.__proto__=D,T},z(F,j)}var U=q$(),A=/^('|")([^]*)\1$/,V=U(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),O=U(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=U(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function M(F){var j=!1,T=null,D=F,C=D.match(A);return C&&(T=C[1],D=C[2]),D=(0,w.default)(D),D!==F&&(j=!0),{deprecatedUsage:j,unescaped:D,quoteMark:T}}function q(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var j=M(F.value),T=j.quoteMark,D=j.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){$(j,F);function j(D){var C;return D===void 0&&(D={}),C=F.call(this,q(D))||this,C.type=X.ATTRIBUTE,C.raws=C.raws||{},Object.defineProperty(C.raws,"unquoted",{get:U(function(){return C.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:U(function(){return C.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),C._constructed=!0,C}var T=j.prototype;return T.getQuotedValue=function(D){D===void 0&&(D={});var C=this._determineQuoteMark(D),k=E[C],c=(0,K.default)(this._value,k);return c},T._determineQuoteMark=function(D){return D.smart?this.smartQuoteMark(D):this.preferredQuoteMark(D)},T.setValue=function(D,C){C===void 0&&(C={}),this._value=D,this._quoteMark=this._determineQuoteMark(C),this._syncRawValue()},T.smartQuoteMark=function(D){var C=this.value,k=C.replace(/[^']/g,"").length,c=C.replace(/[^"]/g,"").length;if(k+c===0){var u=(0,K.default)(C,{isIdentifier:!0});if(u===C)return j.NO_QUOTE;var p=this.preferredQuoteMark(D);if(p===j.NO_QUOTE){var P=this.quoteMark||D.quoteMark||j.DOUBLE_QUOTE,S=E[P],I=(0,K.default)(C,S);if(I.length<u.length)return P}return p}else return c===k?this.preferredQuoteMark(D):c<k?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},T.preferredQuoteMark=function(D){var C=D.preferCurrentQuoteMark?this.quoteMark:D.quoteMark;return C===void 0&&(C=D.preferCurrentQuoteMark?D.quoteMark:this.quoteMark),C===void 0&&(C=j.DOUBLE_QUOTE),C},T._syncRawValue=function(){var D=(0,K.default)(this._value,E[this.quoteMark]);D===this._value?this.raws&&delete this.raws.value:this.raws.value=D},T._handleEscapes=function(D,C){if(this._constructed){var k=(0,K.default)(C,{isIdentifier:!0});k!==C?this.raws[D]=k:delete this.raws[D]}},T._spacesFor=function(D){var C={before:"",after:""},k=this.spaces[D]||{},c=this.raws.spaces&&this.raws.spaces[D]||{};return Object.assign(C,k,c)},T._stringFor=function(D,C,k){C===void 0&&(C=D),k===void 0&&(k=_);var c=this._spacesFor(C);return k(this.stringifyProperty(D),c)},T.offsetOf=function(D){var C=1,k=this._spacesFor("attribute");if(C+=k.before.length,D==="namespace"||D==="ns")return this.namespace?C:-1;if(D==="attributeNS"||(C+=this.namespaceString.length,this.namespace&&(C+=1),D==="attribute"))return C;C+=this.stringifyProperty("attribute").length,C+=k.after.length;var c=this._spacesFor("operator");C+=c.before.length;var u=this.stringifyProperty("operator");if(D==="operator")return u?C:-1;C+=u.length,C+=c.after.length;var p=this._spacesFor("value");C+=p.before.length;var P=this.stringifyProperty("value");if(D==="value")return P?C:-1;C+=P.length,C+=p.after.length;var S=this._spacesFor("insensitive");return C+=S.before.length,D==="insensitive"&&this.insensitive?C:-1},T.toString=function(){var D=this,C=[this.rawSpaceBefore,"["];return C.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(C.push(this._stringFor("operator")),C.push(this._stringFor("value")),C.push(this._stringFor("insensitiveFlag","insensitive",function(k,c){return k.length>0&&!D.quoted&&c.before.length===0&&!(D.spaces.value&&D.spaces.value.after)&&(c.before=" "),_(k,c)}))),C.push("]"),C.push(this.rawSpaceAfter),C.join("")},H(j,[{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 C=M(D),k=C.deprecatedUsage,c=C.unescaped,u=C.quoteMark;if(k&&V(),c===this._value&&u===this._quoteMark)return;this._value=c,this._quoteMark=u,this._syncRawValue()}else this._value=D}},{key:"attribute",get:function(){return this._attribute},set:function(D){this._handleEscapes("attribute",D),this._attribute=D}}]),j}(Y.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Z={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Z[null]={isIdentifier:!0},Z);function _(F,j){return""+j.before+F+j.after}}),bK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(f4()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.UNIVERSAL,U.value="*",U}return $}(w.default);J.default=W,K.exports=J.default}),fK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(n1()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.COMBINATOR,U}return $}(w.default);J.default=W,K.exports=J.default}),mK=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=X(n1()),Y=d0();function X(H){return H&&H.__esModule?H:{default:H}}function Z(H,$){H.prototype=Object.create($.prototype),H.prototype.constructor=H,Q(H,$)}function Q(H,$){return Q=Object.setPrototypeOf||function(z,U){return z.__proto__=U,z},Q(H,$)}var W=function(H){Z($,H);function $(z){var U;return U=H.call(this,z)||this,U.type=Y.NESTING,U.value="&",U}return $}(w.default);J.default=W,K.exports=J.default}),N$=t((J,K)=>{J.__esModule=!0,J.default=w;function w(Y){return Y.sort(function(X,Z){return X-Z})}K.exports=J.default}),dK=t((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 K=38;J.ampersand=K;var w=42;J.asterisk=w;var Y=64;J.at=Y;var X=44;J.comma=X;var Z=58;J.colon=Z;var Q=59;J.semicolon=Q;var W=40;J.openParenthesis=W;var H=41;J.closeParenthesis=H;var $=91;J.openSquare=$;var z=93;J.closeSquare=z;var U=36;J.dollar=U;var A=126;J.tilde=A;var V=94;J.caret=V;var O=43;J.plus=O;var B=61;J.equals=B;var M=124;J.pipe=M;var q=62;J.greaterThan=q;var N=32;J.space=N;var E=39;J.singleQuote=E;var _=34;J.doubleQuote=_;var F=47;J.slash=F;var j=33;J.bang=j;var T=92;J.backslash=T;var D=13;J.cr=D;var C=12;J.feed=C;var k=10;J.newline=k;var c=9;J.tab=c;var u=E;J.str=u;var p=-1;J.comment=p;var P=-2;J.word=P;var S=-3;J.combinator=S}),j$=t((J)=>{J.__esModule=!0,J.default=O,J.FIELDS=void 0;var K=Z(dK()),w,Y;function X(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return X=function(){return B},B}function Z(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 q={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var _=N?Object.getOwnPropertyDescriptor(B,E):null;_&&(_.get||_.set)?Object.defineProperty(q,E,_):q[E]=B[E]}return q.default=B,M&&M.set(B,q),q}var Q=(w={},w[K.tab]=!0,w[K.newline]=!0,w[K.cr]=!0,w[K.feed]=!0,w),W=(Y={},Y[K.space]=!0,Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y[K.ampersand]=!0,Y[K.asterisk]=!0,Y[K.bang]=!0,Y[K.comma]=!0,Y[K.colon]=!0,Y[K.semicolon]=!0,Y[K.openParenthesis]=!0,Y[K.closeParenthesis]=!0,Y[K.openSquare]=!0,Y[K.closeSquare]=!0,Y[K.singleQuote]=!0,Y[K.doubleQuote]=!0,Y[K.plus]=!0,Y[K.pipe]=!0,Y[K.tilde]=!0,Y[K.greaterThan]=!0,Y[K.equals]=!0,Y[K.dollar]=!0,Y[K.caret]=!0,Y[K.slash]=!0,Y),H={},$="0123456789abcdefABCDEF";for(z=0;z<$.length;z++)H[$.charCodeAt(z)]=!0;var z;function U(B,M){var q=M,N;do{if(N=B.charCodeAt(q),W[N])return q-1;N===K.backslash?q=A(B,q)+1:q++}while(q<B.length);return q-1}function A(B,M){var q=M,N=B.charCodeAt(q+1);if(!Q[N])if(H[N]){var E=0;do q++,E++,N=B.charCodeAt(q+1);while(H[N]&&E<6);E<6&&N===K.space&&q++}else q++;return q}var V={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=V;function O(B){var M=[],q=B.css.valueOf(),N=q,E=N.length,_=-1,F=1,j=0,T=0,D,C,k,c,u,p,P,S,I,l,f,o,i;function m(d,y){if(B.safe)q+=y,I=q.length-1;else throw B.error("Unclosed "+d,F,j-_,j)}for(;j<E;){switch(D=q.charCodeAt(j),D===K.newline&&(_=j,F+=1),D){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:I=j;do I+=1,D=q.charCodeAt(I),D===K.newline&&(_=I,F+=1);while(D===K.space||D===K.newline||D===K.tab||D===K.cr||D===K.feed);i=K.space,c=F,k=I-_-1,T=I;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:I=j;do I+=1,D=q.charCodeAt(I);while(D===K.plus||D===K.greaterThan||D===K.tilde||D===K.pipe);i=K.combinator,c=F,k=j-_,T=I;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:I=j,i=D,c=F,k=j-_,T=I+1;break;case K.singleQuote:case K.doubleQuote:o=D===K.singleQuote?"'":'"',I=j;do for(u=!1,I=q.indexOf(o,I+1),I===-1&&m("quote",o),p=I;q.charCodeAt(p-1)===K.backslash;)p-=1,u=!u;while(u);i=K.str,c=F,k=j-_,T=I+1;break;default:D===K.slash&&q.charCodeAt(j+1)===K.asterisk?(I=q.indexOf("*/",j+2)+1,I===0&&m("comment","*/"),C=q.slice(j,I+1),S=C.split(`
63
- `),P=S.length-1,P>0?(l=F+P,f=I-S[P].length):(l=F,f=_),i=K.comment,F=l,c=l,k=I-f):D===K.slash?(I=j,i=D,c=F,k=j-_,T=I+1):(I=U(q,j),i=K.word,c=F,k=I-_),T=I+1;break}M.push([i,F,j-_,c,k,j,T]),f&&(_=f,f=null),j=T}return M}}),E$=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=T(CK()),Y=T(PK()),X=T(SK()),Z=T(vK()),Q=T(yK()),W=T(hK()),H=T(kK()),$=T(gK()),z=j(xK()),U=T(bK()),A=T(fK()),V=T(mK()),O=T(N$()),B=j(j$()),M=j(dK()),q=j(d0()),N=s8(),E,_;function F(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return F=function(){return m},m}function j(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var d=F();if(d&&d.has(m))return d.get(m);var y={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in m)if(Object.prototype.hasOwnProperty.call(m,s)){var g=h?Object.getOwnPropertyDescriptor(m,s):null;g&&(g.get||g.set)?Object.defineProperty(y,s,g):y[s]=m[s]}return y.default=m,d&&d.set(m,y),y}function T(m){return m&&m.__esModule?m:{default:m}}function D(m,d){for(var y=0;y<d.length;y++){var h=d[y];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,h.key,h)}}function C(m,d,y){return d&&D(m.prototype,d),y&&D(m,y),m}var k=(E={},E[M.space]=!0,E[M.cr]=!0,E[M.feed]=!0,E[M.newline]=!0,E[M.tab]=!0,E),c=Object.assign({},k,(_={},_[M.comment]=!0,_));function u(m){return{line:m[B.FIELDS.START_LINE],column:m[B.FIELDS.START_COL]}}function p(m){return{line:m[B.FIELDS.END_LINE],column:m[B.FIELDS.END_COL]}}function P(m,d,y,h){return{start:{line:m,column:d},end:{line:y,column:h}}}function S(m){return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],m[B.FIELDS.END_LINE],m[B.FIELDS.END_COL])}function I(m,d){if(m)return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],d[B.FIELDS.END_LINE],d[B.FIELDS.END_COL])}function l(m,d){var y=m[d];if(typeof y=="string")return y.indexOf("\\")!==-1&&((0,N.ensureObject)(m,"raws"),m[d]=(0,N.unesc)(y),m.raws[d]===void 0&&(m.raws[d]=y)),m}function f(m,d){for(var y=-1,h=[];(y=m.indexOf(d,y+1))!==-1;)h.push(y);return h}function o(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(d,y){return y===m.indexOf(d)})}var i=function(){function m(y,h){h===void 0&&(h={}),this.rule=y,this.options=Object.assign({lossy:!1,safe:!1},h),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 s=I(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new w.default({source:s}),this.root.errorGenerator=this._errorGenerator();var g=new Y.default({source:{start:{line:1,column:1}}});this.root.append(g),this.current=g,this.loop()}var d=m.prototype;return d._errorGenerator=function(){var y=this;return function(h,s){return typeof y.rule=="string"?Error(h):y.rule.error(h,s)}},d.attribute=function(){var y=[],h=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==M.closeSquare;)y.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 s=y.length,g={source:P(h[1],h[2],this.currToken[3],this.currToken[4]),sourceIndex:h[B.FIELDS.START_POS]};if(s===1&&!~[M.word].indexOf(y[0][B.FIELDS.TYPE]))return this.expected("attribute",y[0][B.FIELDS.START_POS]);for(var J0=0,Y0="",X0="",K0=null,V0=!1;J0<s;){var _0=y[J0],w0=this.content(_0),G0=y[J0+1];switch(_0[B.FIELDS.TYPE]){case M.space:if(V0=!0,this.options.lossy)break;if(K0){(0,N.ensureObject)(g,"spaces",K0);var v0=g.spaces[K0].after||"";g.spaces[K0].after=v0+w0;var u0=(0,N.getProp)(g,"raws","spaces",K0,"after")||null;u0&&(g.raws.spaces[K0].after=u0+w0)}else Y0=Y0+w0,X0=X0+w0;break;case M.asterisk:if(G0[B.FIELDS.TYPE]===M.equals)g.operator=w0,K0="operator";else if((!g.namespace||K0==="namespace"&&!V0)&&G0){Y0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Y0,X0=""),g.namespace=(g.namespace||"")+w0;var g0=(0,N.getProp)(g,"raws","namespace")||null;g0&&(g.raws.namespace+=w0),K0="namespace"}V0=!1;break;case M.dollar:if(K0==="value"){var T0=(0,N.getProp)(g,"raws","value");g.value+="$",T0&&(g.raws.value=T0+"$");break}case M.caret:G0[B.FIELDS.TYPE]===M.equals&&(g.operator=w0,K0="operator"),V0=!1;break;case M.combinator:if(w0==="~"&&G0[B.FIELDS.TYPE]===M.equals&&(g.operator=w0,K0="operator"),w0!=="|"){V0=!1;break}G0[B.FIELDS.TYPE]===M.equals?(g.operator=w0,K0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),V0=!1;break;case M.word:if(G0&&this.content(G0)==="|"&&y[J0+2]&&y[J0+2][B.FIELDS.TYPE]!==M.equals&&!g.operator&&!g.namespace)g.namespace=w0,K0="namespace";else if(!g.attribute||K0==="attribute"&&!V0){Y0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,X0=""),g.attribute=(g.attribute||"")+w0;var l0=(0,N.getProp)(g,"raws","attribute")||null;l0&&(g.raws.attribute+=w0),K0="attribute"}else if(!g.value&&g.value!==""||K0==="value"&&!V0){var p0=(0,N.unesc)(w0),i0=(0,N.getProp)(g,"raws","value")||"",X1=g.value||"";g.value=X1+p0,g.quoteMark=null,(p0!==w0||i0)&&((0,N.ensureObject)(g,"raws"),g.raws.value=(i0||X1)+w0),K0="value"}else{var Z1=w0==="i"||w0==="I";(g.value||g.value==="")&&(g.quoteMark||V0)?(g.insensitive=Z1,(!Z1||w0==="I")&&((0,N.ensureObject)(g,"raws"),g.raws.insensitiveFlag=w0),K0="insensitive",Y0&&((0,N.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=Y0,Y0=""),X0&&((0,N.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=X0,X0="")):(g.value||g.value==="")&&(K0="value",g.value+=w0,g.raws.value&&(g.raws.value+=w0))}V0=!1;break;case M.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_0[B.FIELDS.START_POS]});var a0=(0,z.unescapeValue)(w0),z5=a0.unescaped,h1=a0.quoteMark;g.value=z5,g.quoteMark=h1,K0="value",(0,N.ensureObject)(g,"raws"),g.raws.value=w0,V0=!1;break;case M.equals:if(!g.attribute)return this.expected("attribute",_0[B.FIELDS.START_POS],w0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_0[B.FIELDS.START_POS]});g.operator=g.operator?g.operator+w0:w0,K0="operator",V0=!1;break;case M.comment:if(K0)if(V0||G0&&G0[B.FIELDS.TYPE]===M.space||K0==="insensitive"){var t1=(0,N.getProp)(g,"spaces",K0,"after")||"",U5=(0,N.getProp)(g,"raws","spaces",K0,"after")||t1;(0,N.ensureObject)(g,"raws","spaces",K0),g.raws.spaces[K0].after=U5+w0}else{var Z8=g[K0]||"",A5=(0,N.getProp)(g,"raws",K0)||Z8;(0,N.ensureObject)(g,"raws"),g.raws[K0]=A5+w0}else X0=X0+w0;break;default:return this.error('Unexpected "'+w0+'" found.',{index:_0[B.FIELDS.START_POS]})}J0++}l(g,"attribute"),l(g,"namespace"),this.newNode(new z.default(g)),this.position++},d.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var h=this.position,s=[],g="",J0=void 0;do if(k[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[B.FIELDS.TYPE]===M.comment){var Y0={};g&&(Y0.before=g,g=""),J0=new Z.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:Y0}),s.push(J0)}while(++this.position<y);if(g){if(J0)J0.spaces.after=g;else if(!this.options.lossy){var X0=this.tokens[h],K0=this.tokens[this.position-1];s.push(new H.default({value:"",source:P(X0[B.FIELDS.START_LINE],X0[B.FIELDS.START_COL],K0[B.FIELDS.END_LINE],K0[B.FIELDS.END_COL]),sourceIndex:X0[B.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return s},d.convertWhitespaceNodesToSpace=function(y,h){var s=this;h===void 0&&(h=!1);var g="",J0="";y.forEach(function(X0){var K0=s.lossySpace(X0.spaces.before,h),V0=s.lossySpace(X0.rawSpaceBefore,h);g+=K0+s.lossySpace(X0.spaces.after,h&&K0.length===0),J0+=K0+X0.value+s.lossySpace(X0.rawSpaceAfter,h&&V0.length===0)}),J0===g&&(J0=void 0);var Y0={space:g,rawSpace:J0};return Y0},d.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][B.FIELDS.TYPE]===M.slash&&this.tokens[y+1]&&this.tokens[y+1][B.FIELDS.TYPE]===M.word&&this.tokens[y+2]&&this.tokens[y+2][B.FIELDS.TYPE]===M.slash},d.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),h=(0,N.unesc)(y).toLowerCase(),s={};h!==y&&(s.value="/"+y+"/");var g=new A.default({value:"/"+h+"/",source:P(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:s});return this.position=this.position+3,g}else this.unexpected()},d.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var h=this.locateNextMeaningfulToken(this.position);if(h<0||this.tokens[h][B.FIELDS.TYPE]===M.comma){var s=this.parseWhitespaceEquivalentTokens(h);if(s.length>0){var g=this.current.last;if(g){var J0=this.convertWhitespaceNodesToSpace(s),Y0=J0.space,X0=J0.rawSpace;X0!==void 0&&(g.rawSpaceAfter+=X0),g.spaces.after+=Y0}else s.forEach(function(i0){return y.newNode(i0)})}return}var K0=this.currToken,V0=void 0;h>this.position&&(V0=this.parseWhitespaceEquivalentTokens(h));var _0;if(this.isNamedCombinator()?_0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===M.combinator?(_0=new A.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):k[this.currToken[B.FIELDS.TYPE]]||V0||this.unexpected(),_0){if(V0){var w0=this.convertWhitespaceNodesToSpace(V0),G0=w0.space,v0=w0.rawSpace;_0.spaces.before=G0,_0.rawSpaceBefore=v0}}else{var u0=this.convertWhitespaceNodesToSpace(V0,!0),g0=u0.space,T0=u0.rawSpace;T0||(T0=g0);var l0={},p0={spaces:{}};g0.endsWith(" ")&&T0.endsWith(" ")?(l0.before=g0.slice(0,g0.length-1),p0.spaces.before=T0.slice(0,T0.length-1)):g0.startsWith(" ")&&T0.startsWith(" ")?(l0.after=g0.slice(1),p0.spaces.after=T0.slice(1)):p0.value=T0,_0=new A.default({value:" ",source:I(K0,this.tokens[this.position-1]),sourceIndex:K0[B.FIELDS.START_POS],spaces:l0,raws:p0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===M.space&&(_0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(_0)},d.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var y=new Y.default({source:{start:u(this.tokens[this.position+1])}});this.current.parent.append(y),this.current=y,this.position++},d.comment=function(){var y=this.currToken;this.newNode(new Z.default({value:this.content(),source:S(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},d.error=function(y,h){throw this.root.error(y,h)},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 y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===M.word)return this.position++,this.word(y);if(this.nextToken[B.FIELDS.TYPE]===M.asterisk)return this.position++,this.universal(y)},d.nesting=function(){if(this.nextToken){var y=this.content(this.nextToken);if(y==="|"){this.position++;return}}var h=this.currToken;this.newNode(new V.default({value:this.content(),source:S(h),sourceIndex:h[B.FIELDS.START_POS]})),this.position++},d.parentheses=function(){var y=this.current.last,h=1;if(this.position++,y&&y.type===q.PSEUDO){var s=new Y.default({source:{start:u(this.tokens[this.position-1])}}),g=this.current;for(y.append(s),this.current=s;this.position<this.tokens.length&&h;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&h++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&h--,h?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=g}else{for(var J0=this.currToken,Y0="(",X0;this.position<this.tokens.length&&h;)this.currToken[B.FIELDS.TYPE]===M.openParenthesis&&h++,this.currToken[B.FIELDS.TYPE]===M.closeParenthesis&&h--,X0=this.currToken,Y0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",Y0,Y0):this.newNode(new H.default({value:Y0,source:P(J0[B.FIELDS.START_LINE],J0[B.FIELDS.START_COL],X0[B.FIELDS.END_LINE],X0[B.FIELDS.END_COL]),sourceIndex:J0[B.FIELDS.START_POS]}))}if(h)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},d.pseudo=function(){for(var y=this,h="",s=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===M.colon;)h+=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(g,J0){h+=g,y.newNode(new $.default({value:h,source:I(s,y.currToken),sourceIndex:s[B.FIELDS.START_POS]})),J0>1&&y.nextToken&&y.nextToken[B.FIELDS.TYPE]===M.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},d.space=function(){var y=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===M.comma||this.prevToken[B.FIELDS.TYPE]===M.openParenthesis||this.current.nodes.every(function(h){return h.type==="comment"})?(this.spaces=this.optionalSpace(y),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(y),this.position++):this.combinator()},d.string=function(){var y=this.currToken;this.newNode(new H.default({value:this.content(),source:S(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},d.universal=function(y){var h=this.nextToken;if(h&&this.content(h)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new U.default({value:this.content(),source:S(s),sourceIndex:s[B.FIELDS.START_POS]}),y),this.position++},d.splitWord=function(y,h){for(var s=this,g=this.nextToken,J0=this.content();g&&~[M.dollar,M.caret,M.equals,M.word].indexOf(g[B.FIELDS.TYPE]);){this.position++;var Y0=this.content();if(J0+=Y0,Y0.lastIndexOf("\\")===Y0.length-1){var X0=this.nextToken;X0&&X0[B.FIELDS.TYPE]===M.space&&(J0+=this.requiredSpace(this.content(X0)),this.position++)}g=this.nextToken}var K0=f(J0,".").filter(function(G0){var v0=J0[G0-1]==="\\",u0=/^\d+\.\d+%$/.test(J0);return!v0&&!u0}),V0=f(J0,"#").filter(function(G0){return J0[G0-1]!=="\\"}),_0=f(J0,"#{");_0.length&&(V0=V0.filter(function(G0){return!~_0.indexOf(G0)}));var w0=(0,O.default)(o([0].concat(K0,V0)));w0.forEach(function(G0,v0){var u0=w0[v0+1]||J0.length,g0=J0.slice(G0,u0);if(v0===0&&h)return h.call(s,g0,w0.length);var T0,l0=s.currToken,p0=l0[B.FIELDS.START_POS]+w0[v0],i0=P(l0[1],l0[2]+G0,l0[3],l0[2]+(u0-1));if(~K0.indexOf(G0)){var X1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new X.default(l(X1,"value"))}else if(~V0.indexOf(G0)){var Z1={value:g0.slice(1),source:i0,sourceIndex:p0};T0=new Q.default(l(Z1,"value"))}else{var a0={value:g0,source:i0,sourceIndex:p0};l(a0,"value"),T0=new W.default(a0)}s.newNode(T0,y),y=null}),this.position++},d.word=function(y){var h=this.nextToken;return h&&this.content(h)==="|"?(this.position++,this.namespace()):this.splitWord(y)},d.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},d.parse=function(y){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:y&&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(y,h,s){if(Array.isArray(y)){var g=y.pop();y=y.join(", ")+" or "+g}var J0=/^[aeiou]/.test(y[0])?"an":"a";return s?this.error("Expected "+J0+" "+y+', found "'+s+'" instead.',{index:h}):this.error("Expected "+J0+" "+y+".",{index:h})},d.requiredSpace=function(y){return this.options.lossy?" ":y},d.optionalSpace=function(y){return this.options.lossy?"":y},d.lossySpace=function(y,h){return this.options.lossy?h?" ":"":y},d.parseParenthesisToken=function(y){var h=this.content(y);return y[B.FIELDS.TYPE]===M.space?this.requiredSpace(h):h},d.newNode=function(y,h){return h&&(/^ +$/.test(h)&&(this.options.lossy||(this.spaces=(this.spaces||"")+h),h=!0),y.namespace=h,l(y,"namespace")),this.spaces&&(y.spaces.before=this.spaces,this.spaces=""),this.current.append(y)},d.content=function(y){return y===void 0&&(y=this.currToken),this.css.slice(y[B.FIELDS.START_POS],y[B.FIELDS.END_POS])},d.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var h=y;h<this.tokens.length;)if(c[this.tokens[h][B.FIELDS.TYPE]]){h++;continue}else return h;return-1},C(m,[{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]}}]),m}();J.default=i,K.exports=J.default}),F$=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=Y(E$());function Y(Z){return Z&&Z.__esModule?Z:{default:Z}}var X=function(){function Z(W,H){this.func=W||function(){},this.funcRes=null,this.options=H}var Q=Z.prototype;return Q._shouldUpdateSelector=function(W,H){H===void 0&&(H={});var $=Object.assign({},this.options,H);return $.updateSelector===!1?!1:typeof W!="string"},Q._isLossy=function(W){W===void 0&&(W={});var H=Object.assign({},this.options,W);return H.lossless===!1},Q._root=function(W,H){H===void 0&&(H={});var $=new w.default(W,this._parseOptions(H));return $.root},Q._parseOptions=function(W){return{lossy:this._isLossy(W)}},Q._run=function(W,H){var $=this;return H===void 0&&(H={}),new Promise(function(z,U){try{var A=$._root(W,H);Promise.resolve($.func(A)).then(function(V){var O=void 0;return $._shouldUpdateSelector(W,H)&&(O=A.toString(),W.selector=O),{transform:V,root:A,string:O}}).then(z,U)}catch(V){U(V);return}})},Q._runSync=function(W,H){H===void 0&&(H={});var $=this._root(W,H),z=this.func($);if(z&&typeof z.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var U=void 0;return H.updateSelector&&typeof W!="string"&&(U=$.toString(),W.selector=U),{transform:z,root:$,string:U}},Q.ast=function(W,H){return this._run(W,H).then(function($){return $.root})},Q.astSync=function(W,H){return this._runSync(W,H).root},Q.transform=function(W,H){return this._run(W,H).then(function($){return $.transform})},Q.transformSync=function(W,H){return this._runSync(W,H).transform},Q.process=function(W,H){return this._run(W,H).then(function($){return $.string||$.root.toString()})},Q.processSync=function(W,H){var $=this._runSync(W,H);return $.string||$.root.toString()},Z}();J.default=X,K.exports=J.default}),R$=t((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 K=V(xK()),w=V(SK()),Y=V(fK()),X=V(vK()),Z=V(yK()),Q=V(mK()),W=V(gK()),H=V(CK()),$=V(PK()),z=V(kK()),U=V(hK()),A=V(bK());function V(k){return k&&k.__esModule?k:{default:k}}var O=function(k){return new K.default(k)};J.attribute=O;var B=function(k){return new w.default(k)};J.className=B;var M=function(k){return new Y.default(k)};J.combinator=M;var q=function(k){return new X.default(k)};J.comment=q;var N=function(k){return new Z.default(k)};J.id=N;var E=function(k){return new Q.default(k)};J.nesting=E;var _=function(k){return new W.default(k)};J.pseudo=_;var F=function(k){return new H.default(k)};J.root=F;var j=function(k){return new $.default(k)};J.selector=j;var T=function(k){return new z.default(k)};J.string=T;var D=function(k){return new U.default(k)};J.tag=D;var C=function(k){return new A.default(k)};J.universal=C}),_$=t((J)=>{J.__esModule=!0,J.isNode=X,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=_,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 K=d0(),w,Y=(w={},w[K.ATTRIBUTE]=!0,w[K.CLASS]=!0,w[K.COMBINATOR]=!0,w[K.COMMENT]=!0,w[K.ID]=!0,w[K.NESTING]=!0,w[K.PSEUDO]=!0,w[K.ROOT]=!0,w[K.SELECTOR]=!0,w[K.STRING]=!0,w[K.TAG]=!0,w[K.UNIVERSAL]=!0,w);function X(j){return typeof j=="object"&&Y[j.type]}function Z(j,T){return X(T)&&T.type===j}var Q=Z.bind(null,K.ATTRIBUTE);J.isAttribute=Q;var W=Z.bind(null,K.CLASS);J.isClassName=W;var H=Z.bind(null,K.COMBINATOR);J.isCombinator=H;var $=Z.bind(null,K.COMMENT);J.isComment=$;var z=Z.bind(null,K.ID);J.isIdentifier=z;var U=Z.bind(null,K.NESTING);J.isNesting=U;var A=Z.bind(null,K.PSEUDO);J.isPseudo=A;var V=Z.bind(null,K.ROOT);J.isRoot=V;var O=Z.bind(null,K.SELECTOR);J.isSelector=O;var B=Z.bind(null,K.STRING);J.isString=B;var M=Z.bind(null,K.TAG);J.isTag=M;var q=Z.bind(null,K.UNIVERSAL);J.isUniversal=q;function N(j){return A(j)&&j.value&&(j.value.startsWith("::")||j.value.toLowerCase()===":before"||j.value.toLowerCase()===":after"||j.value.toLowerCase()===":first-letter"||j.value.toLowerCase()===":first-line")}function E(j){return A(j)&&!N(j)}function _(j){return!!(X(j)&&j.walk)}function F(j){return Q(j)||M(j)}}),D$=t((J)=>{J.__esModule=!0;var K=d0();Object.keys(K).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===K[X]||(J[X]=K[X])});var w=R$();Object.keys(w).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===w[X]||(J[X]=w[X])});var Y=_$();Object.keys(Y).forEach(function(X){X==="default"||X==="__esModule"||X in J&&J[X]===Y[X]||(J[X]=Y[X])})}),I$=t((J,K)=>{J.__esModule=!0,J.default=void 0;var w=Q(F$()),Y=Z(D$());function X(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return X=function(){return $},$}function Z($){if($&&$.__esModule)return $;if($===null||typeof $!="object"&&typeof $!="function")return{default:$};var z=X();if(z&&z.has($))return z.get($);var U={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in $)if(Object.prototype.hasOwnProperty.call($,V)){var O=A?Object.getOwnPropertyDescriptor($,V):null;O&&(O.get||O.set)?Object.defineProperty(U,V,O):U[V]=$[V]}return U.default=$,z&&z.set($,U),U}function Q($){return $&&$.__esModule?$:{default:$}}var W=function($){return new w.default($)};Object.assign(W,Y),delete W.__esModule;var H=W;J.default=H,K.exports=J.default}),T$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(w){return w.replace(/\\,/g,"\\2c ")}}),C$=t((J,K)=>{K.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]}}),lK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(O,B){for(var M in B)Object.defineProperty(O,M,{enumerable:!0,get:B[M]})}K(J,{parseColor:()=>A,formatColor:()=>V});var w=Y(C$());function Y(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,Z=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Q=/(?:\d+|\d*\.\d+)%?/,W=/(?:\s*,\s*|\s+)/,H=/\s*[,/]\s*/,$=/var\(--(?:[^ )]*?)\)/,z=new RegExp(`^(rgb)a?\\(\\s*(${Q.source}|${$.source})(?:${W.source}(${Q.source}|${$.source}))?(?:${W.source}(${Q.source}|${$.source}))?(?:${H.source}(${Q.source}|${$.source}))?\\s*\\)$`),U=new RegExp(`^(hsl)a?\\(\\s*((?:${Q.source})(?:deg|rad|grad|turn)?|${$.source})(?:${W.source}(${Q.source}|${$.source}))?(?:${W.source}(${Q.source}|${$.source}))?(?:${H.source}(${Q.source}|${$.source}))?\\s*\\)$`);function A(O,{loose:B=!1}={}){var M,q;if(typeof O!="string")return null;if(O=O.trim(),O==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(O in w.default)return{mode:"rgb",color:w.default[O].map((j)=>j.toString())};let N=O.replace(Z,(j,T,D,C,k)=>["#",T,T,D,D,C,C,k?k+k:""].join("")).match(X);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((j)=>j.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let _=(E=O.match(z))!==null&&E!==void 0?E:O.match(U);if(_===null)return null;let F=[_[2],_[3],_[4]].filter(Boolean).map((j)=>j.toString());return!B&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:_[1],color:F,alpha:(M=_[5])===null||M===void 0||(q=M.toString)===null||q===void 0?void 0:q.call(M)}}function V({mode:O,color:B,alpha:M}){let q=M!==void 0;return`${O}(${B.join(" ")}${q?` / ${M}`:""})`}}),cK=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Z,Q){for(var W in Q)Object.defineProperty(Z,W,{enumerable:!0,get:Q[W]})}K(J,{withAlphaValue:()=>Y,default:()=>X});var w=lK();function Y(Z,Q,W){if(typeof Z=="function")return Z({opacityValue:Q});let H=(0,w.parseColor)(Z,{loose:!0});return H===null?W:(0,w.formatColor)({...H,alpha:Q})}function X({color:Z,property:Q,variable:W}){let H=[].concat(Q);if(typeof Z=="function")return{[W]:"1",...Object.fromEntries(H.map((z)=>[z,Z({opacityVariable:W,opacityValue:`var(${W})`})]))};let $=(0,w.parseColor)(Z);return $===null?Object.fromEntries(H.map((z)=>[z,Z])):$.alpha!==void 0?Object.fromEntries(H.map((z)=>[z,Z])):{[W]:"1",...Object.fromEntries(H.map((z)=>[z,(0,w.formatColor)({...$,alpha:`var(${W})`})]))}}}),P$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(A,V){for(var O in V)Object.defineProperty(A,O,{enumerable:!0,get:V[O]})}K(J,{pattern:()=>Z,withoutCapturing:()=>Q,any:()=>W,optional:()=>H,zeroOrMore:()=>$,nestedBrackets:()=>z,escape:()=>U});var w=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(w.source);function X(A){return A=Array.isArray(A)?A:[A],A=A.map((V)=>V instanceof RegExp?V.source:V),A.join("")}function Z(A){return new RegExp(X(A),"g")}function Q(A){return new RegExp(`(?:${X(A)})`,"g")}function W(A){return`(?:${A.map(X).join("|")})`}function H(A){return`(?:${X(A)})?`}function $(A){return`(?:${X(A)})*`}function z(A,V,O=1){return Q([U(A),/[^\s]*/,O===1?`[^${U(A)}${U(V)}s]*`:W([`[^${U(A)}${U(V)}s]*`,z(A,V,O-1)]),/[^\s]*/,U(V)])}function U(A){return A&&Y.test(A)?A.replace(w,"\\$&"):A||""}}),S$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>X});var K=Y(P$());function w(Z){if(typeof WeakMap!="function")return null;var Q=new WeakMap,W=new WeakMap;return(w=function(H){return H?W:Q})(Z)}function Y(Z,Q){if(!Q&&Z&&Z.__esModule)return Z;if(Z===null||typeof Z!="object"&&typeof Z!="function")return{default:Z};var W=w(Q);if(W&&W.has(Z))return W.get(Z);var H={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Z)if(z!=="default"&&Object.prototype.hasOwnProperty.call(Z,z)){var U=$?Object.getOwnPropertyDescriptor(Z,z):null;U&&(U.get||U.set)?Object.defineProperty(H,z,U):H[z]=Z[z]}return H.default=Z,W&&W.set(Z,H),H}function*X(Z,Q){let W=new RegExp(`[(){}\\[\\]${K.escape(Q)}]`,"g"),H=0,$=0,z=!1,U=0,A=0,V=Q.length;for(let O of Z.matchAll(W)){let B=O[0]===Q[U],M=U===V-1,q=B&&M;O[0]==="("&&H++,O[0]===")"&&H--,O[0]==="["&&H++,O[0]==="]"&&H--,O[0]==="{"&&H++,O[0]==="}"&&H--,B&&H===0&&(A===0&&(A=O.index),U++),q&&H===0&&(z=!0,yield Z.substring($,A),$=A+V),U===V&&(U=0,A=0)}z?yield Z.substring($):yield Z}}),v$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(H,$){for(var z in $)Object.defineProperty(H,z,{enumerable:!0,get:$[z]})}K(J,{parseBoxShadowValue:()=>Q,formatBoxShadowValue:()=>W});var w=S$(),Y=new Set(["inset","inherit","initial","revert","unset"]),X=/\ +(?![^(]*\))/g,Z=/^-?(\d+|\.\d+)(.*?)$/g;function Q(H){return Array.from((0,w.splitAtTopLevelOnly)(H,",")).map(($)=>{let z=$.trim(),U={raw:z},A=z.split(X),V=new Set;for(let O of A)Z.lastIndex=0,!V.has("KEYWORD")&&Y.has(O)?(U.keyword=O,V.add("KEYWORD")):Z.test(O)?V.has("X")?V.has("Y")?V.has("BLUR")?V.has("SPREAD")||(U.spread=O,V.add("SPREAD")):(U.blur=O,V.add("BLUR")):(U.y=O,V.add("Y")):(U.x=O,V.add("X")):U.color?(U.unknown||(U.unknown=[]),U.unknown.push(O)):U.color=O;return U.valid=U.x!==void 0&&U.y!==void 0,U})}function W(H){return H.map(($)=>$.valid?[$.keyword,$.x,$.y,$.blur,$.spread,$.color].filter(Boolean).join(" "):$.raw).join(", ")}}),y$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(P,S){for(var I in S)Object.defineProperty(P,I,{enumerable:!0,get:S[I]})}K(J,{normalize:()=>W,url:()=>H,number:()=>$,percentage:()=>z,length:()=>V,lineWidth:()=>B,shadow:()=>M,color:()=>q,image:()=>N,gradient:()=>_,position:()=>j,familyName:()=>T,genericName:()=>C,absoluteSize:()=>c,relativeSize:()=>p});var w=lK(),Y=v$(),X=["min","max","clamp","calc"],Z=/,(?![^(]*\))/g,Q=/_(?![^(]*\))/g;function W(P,S=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((I)=>/^url\(.*?\)$/.test(I)?I:W(I,!1)).join(""):(P=P.replace(/([^\\])_+/g,(I,l)=>l+" ".repeat(I.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(P=P.trim()),P=P.replace(/(calc|min|max|clamp)\(.+\)/g,(I)=>I.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),P)}function H(P){return P.startsWith("url(")}function $(P){return!isNaN(Number(P))||X.some((S)=>new RegExp(`^${S}\\(.+?`).test(P))}function z(P){return P.split(Q).every((S)=>/%$/g.test(S)||X.some((I)=>new RegExp(`^${I}\\(.+?%`).test(S)))}var U=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],A=`(?:${U.join("|")})`;function V(P){return P.split(Q).every((S)=>S==="0"||new RegExp(`${A}$`).test(S)||X.some((I)=>new RegExp(`^${I}\\(.+?${A}`).test(S)))}var O=new Set(["thin","medium","thick"]);function B(P){return O.has(P)}function M(P){let S=(0,Y.parseBoxShadowValue)(W(P));for(let I of S)if(!I.valid)return!1;return!0}function q(P){let S=0;return P.split(Q).every((I)=>(I=W(I),I.startsWith("var(")?!0:(0,w.parseColor)(I,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function N(P){let S=0;return P.split(Z).every((I)=>(I=W(I),I.startsWith("var(")?!0:H(I)||_(I)||["element(","image(","cross-fade(","image-set("].some((l)=>I.startsWith(l))?(S++,!0):!1))?S>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function _(P){P=W(P);for(let S of E)if(P.startsWith(`${S}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let S=0;return P.split(Q).every((I)=>(I=W(I),I.startsWith("var(")?!0:F.has(I)||V(I)||z(I)?(S++,!0):!1))?S>0:!1}function T(P){let S=0;return P.split(Z).every((I)=>(I=W(I),I.startsWith("var(")?!0:I.includes(" ")&&!/(['"])([^"']+)\1/g.test(I)||/^\d/g.test(I)?!1:(S++,!0)))?S>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 C(P){return D.has(P)}var k=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function c(P){return k.has(P)}var u=new Set(["larger","smaller"]);function p(P){return u.has(P)}}),h$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(j,T){for(var D in T)Object.defineProperty(j,D,{enumerable:!0,get:T[D]})}K(J,{updateAllClasses:()=>H,asValue:()=>U,parseColorFormat:()=>O,asColor:()=>B,asLookupValue:()=>M,coerceValue:()=>F});var w=W(I$()),Y=W(T$()),X=cK(),Z=y$(),Q=W(_K());function W(j){return j&&j.__esModule?j:{default:j}}function H(j,T){return(0,w.default)((D)=>{D.walkClasses((C)=>{let k=T(C.value);C.value=k,C.raws&&C.raws.value&&(C.raws.value=(0,Y.default)(C.raws.value))})}).processSync(j)}function $(j,T){if(!A(j))return;let D=j.slice(1,-1);if(T(D))return(0,Z.normalize)(D)}function z(j,T={},D){let C=T[j];if(C!==void 0)return(0,Q.default)(C);if(A(j)){let k=$(j,D);return k===void 0?void 0:(0,Q.default)(k)}}function U(j,T={},{validate:D=()=>!0}={}){var C;let k=(C=T.values)===null||C===void 0?void 0:C[j];return k!==void 0?k:T.supportsNegativeValues&&j.startsWith("-")?z(j.slice(1),T.values,D):$(j,D)}function A(j){return j.startsWith("[")&&j.endsWith("]")}function V(j){let T=j.lastIndexOf("/");return T===-1||T===j.length-1?[j]:[j.slice(0,T),j.slice(T+1)]}function O(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let T=j;return({opacityValue:D=1})=>T.replace("<alpha-value>",D)}return j}function B(j,T={},{tailwindConfig:D={}}={}){var C;if(((C=T.values)===null||C===void 0?void 0:C[j])!==void 0){var k;return O((k=T.values)===null||k===void 0?void 0:k[j])}let[c,u]=V(j);if(u!==void 0){var p,P,S,I;let l=(I=(p=T.values)===null||p===void 0?void 0:p[c])!==null&&I!==void 0?I:A(c)?c.slice(1,-1):void 0;return l===void 0?void 0:(l=O(l),A(u)?(0,X.withAlphaValue)(l,u.slice(1,-1)):((P=D.theme)===null||P===void 0||(S=P.opacity)===null||S===void 0?void 0:S[u])===void 0?void 0:(0,X.withAlphaValue)(l,D.theme.opacity[u]))}return U(j,T,{validate:Z.color})}function M(j,T={}){var D;return(D=T.values)===null||D===void 0?void 0:D[j]}function q(j){return(T,D)=>U(T,D,{validate:j})}var N={any:U,color:B,url:q(Z.url),image:q(Z.image),length:q(Z.length),percentage:q(Z.percentage),position:q(Z.position),lookup:M,"generic-name":q(Z.genericName),"family-name":q(Z.familyName),number:q(Z.number),"line-width":q(Z.lineWidth),"absolute-size":q(Z.absoluteSize),"relative-size":q(Z.relativeSize),shadow:q(Z.shadow)},E=Object.keys(N);function _(j,T){let D=j.indexOf(T);return D===-1?[void 0,j]:[j.slice(0,D),j.slice(D+1)]}function F(j,T,D,C){if(A(T)){let k=T.slice(1,-1),[c,u]=_(k,":");if(!/^[\w-_]+$/g.test(c))u=k;else if(c!==void 0&&!E.includes(c))return[];if(u.length>0&&E.includes(c))return[U(`[${u}]`,D),c]}for(let k of[].concat(j)){let c=N[k](T,D,{tailwindConfig:C});if(c!==void 0)return[c,k]}return[]}}),k$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(w){return typeof w=="function"?w({}):w}}),g$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var K=O(_K()),w=O(W$()),Y=O($$()),X=O(DK()),Z=O(z$()),Q=U$(),W=A$(),H=V$(),$=O(B$()),z=G$(),U=h$(),A=cK(),V=O(k$());function O(P){return P&&P.__esModule?P:{default:P}}function B(P){return typeof P=="function"}function M(P){return typeof P=="object"&&P!==null}function q(P,...S){let I=S.pop();for(let l of S)for(let f in l){let o=I(P[f],l[f]);o===void 0?M(P[f])&&M(l[f])?P[f]=q(P[f],l[f],I):P[f]=l[f]:P[f]=o}return P}var N={colors:Z.default,negative(P){return Object.keys(P).filter((S)=>P[S]!=="0").reduce((S,I)=>{let l=(0,K.default)(P[I]);return l!==void 0&&(S[`-${I}`]=l),S},{})},breakpoints(P){return Object.keys(P).filter((S)=>typeof P[S]=="string").reduce((S,I)=>({...S,[`screen-${I}`]:P[I]}),{})}};function E(P,...S){return B(P)?P(...S):P}function _(P){return P.reduce((S,{extend:I})=>q(S,I,(l,f)=>l===void 0?[f]:Array.isArray(l)?[f,...l]:[f,l]),{})}function F(P){return{...P.reduce((S,I)=>(0,Q.defaults)(S,I),{}),extend:_(P)}}function j(P,S){if(Array.isArray(P)&&M(P[0]))return P.concat(S);if(Array.isArray(S)&&M(S[0])&&M(P))return[P,...S];if(Array.isArray(S))return S}function T({extend:P,...S}){return q(S,P,(I,l)=>!B(I)&&!l.some(B)?q({},I,...l,j):(f,o)=>q({},...[I,...l].map((i)=>E(i,f,o)),j))}function*D(P){let S=(0,W.toPath)(P);if(S.length===0||(yield S,Array.isArray(P)))return;let I=/^(.*?)\s*\/\s*([^/]+)$/,l=P.match(I);if(l!==null){let[,f,o]=l,i=(0,W.toPath)(f);i.alpha=o,yield i}}function C(P){let S=(I,l)=>{for(let f of D(I)){let o=0,i=P;for(;i!=null&&o<f.length;)i=i[f[o++]],i=B(i)&&(f.alpha===void 0||o<=f.length-1)?i(S,N):i;if(i!==void 0){if(f.alpha!==void 0){let m=(0,U.parseColorFormat)(i);return(0,A.withAlphaValue)(m,f.alpha,(0,V.default)(m))}return(0,$.default)(i)?(0,z.cloneDeep)(i):i}}return l};return Object.assign(S,{theme:S,...N}),Object.keys(P).reduce((I,l)=>(I[l]=B(P[l])?P[l](S,N):P[l],I),{})}function k(P){let S=[];return P.forEach((I)=>{S=[...S,I];var l;let f=(l=I==null?void 0:I.plugins)!==null&&l!==void 0?l:[];f.length!==0&&f.forEach((o)=>{o.__isOptionsFunction&&(o=o());var i;S=[...S,...k([(i=o==null?void 0:o.config)!==null&&i!==void 0?i:{}])]})}),S}function c(P){return[...P].reduceRight((S,I)=>B(I)?I({corePlugins:S}):(0,Y.default)(I,S),w.default)}function u(P){return[...P].reduceRight((S,I)=>[...S,...I],[])}function p(P){let S=[...k(P),{prefix:"",important:!1,separator:":",variantOrder:X.default.variantOrder}];var I,l;return(0,H.normalizeConfig)((0,Q.defaults)({theme:C(T(F(S.map((f)=>(I=f==null?void 0:f.theme)!==null&&I!==void 0?I:{})))),corePlugins:c(S.map((f)=>f.corePlugins)),plugins:u(P.map((f)=>(l=f==null?void 0:f.plugins)!==null&&l!==void 0?l:[]))},...S))}}),uK={};k4(uK,{default:()=>pK});var pK,x$=h4(()=>{pK={yellow:(J)=>J}}),b$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(U,A){for(var V in A)Object.defineProperty(U,V,{enumerable:!0,get:A[V]})}K(J,{flagEnabled:()=>W,issueFlagNotices:()=>$,default:()=>z});var w=X((x$(),i8(uK))),Y=X((g4(),i8(o8)));function X(U){return U&&U.__esModule?U:{default:U}}var Z={optimizeUniversalDefaults:!1},Q={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function W(U,A){if(Q.future.includes(A)){var V,O,B;return U.future==="all"||((B=(O=U==null||(V=U.future)===null||V===void 0?void 0:V[A])!==null&&O!==void 0?O:Z[A])!==null&&B!==void 0?B:!1)}if(Q.experimental.includes(A)){var M,q,N;return U.experimental==="all"||((N=(q=U==null||(M=U.experimental)===null||M===void 0?void 0:M[A])!==null&&q!==void 0?q:Z[A])!==null&&N!==void 0?N:!1)}return!1}function H(U){if(U.experimental==="all")return Q.experimental;var A;return Object.keys((A=U==null?void 0:U.experimental)!==null&&A!==void 0?A:{}).filter((V)=>Q.experimental.includes(V)&&U.experimental[V])}function $(U){if(process.env.JEST_WORKER_ID===void 0&&H(U).length>0){let A=H(U).map((V)=>w.default.yellow(V)).join(", ");Y.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${A}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var z=Q}),f$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var K=Y(DK()),w=b$();function Y(Z){return Z&&Z.__esModule?Z:{default:Z}}function X(Z){var Q;let W=((Q=Z==null?void 0:Z.presets)!==null&&Q!==void 0?Q:[K.default]).slice().reverse().flatMap((z)=>X(typeof z=="function"?z():z)),H={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},$=Object.keys(H).filter((z)=>(0,w.flagEnabled)(Z,z)).map((z)=>H[z]);return[Z,...$,...W]}}),m$=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>X});var K=Y(g$()),w=Y(f$());function Y(Z){return Z&&Z.__esModule?Z:{default:Z}}function X(...Z){let[,...Q]=(0,w.default)(Z[0]);return(0,K.default)([...Z,...Q])}}),d$=t((J,K)=>{var w=m$();K.exports=(w.__esModule?w:{default:w}).default}),P8;var p5=null;async function a8(){return P8||(p5?(await p5,P8):(p5=Promise.resolve().then(()=>(H$(),RK)).then((J)=>J.getYogaModule()).then((J)=>P8=J),await p5,p5=null,P8))}var t5=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),l$=t5((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),c$=t5((J,K)=>{K.exports=["deg","grad","rad","turn"]}),u$=t5((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),p$=t5((J,K)=>{K.exports=["Hz","kHz"]}),i$=t5((J,K)=>{K.exports=["s","ms"]}),r$=l$(),iK=c$(),rK=u$(),nK=p$(),oK=i$();function m4(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(n$(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=M4(J),this.unit="%";return}var K=s$(J);if(!K){this.type="number",this.value=M4(J);return}this.type=t$(K),this.value=M4(J.substr(0,J.length-K.length)),this.unit=K}m4.prototype.valueOf=function(){return this.value};m4.prototype.toString=function(){return this.value+(this.unit||"")};function e5(J){return new m4(J)}function n$(J){var K=J.match(/\./g);return K?K.length:0}function M4(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var o$=[].concat(iK,nK,r$,rK,oK);function s$(J){var K=J.match(/\D+$/),w=K&&K[0];if(w&&o$.indexOf(w)===-1)throw Error("Invalid unit: "+w);return w}var a$=Object.assign(S8(iK,"angle"),S8(nK,"frequency"),S8(rK,"resolution"),S8(oK,"time"));function S8(J,K){return Object.fromEntries(J.map((w)=>[w,K]))}function t$(J){return a$[J]||"length"}function d8(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function e$(J){return/^class\s/.test(J.toString())}function Jz(J){return"dangerouslySetInnerHTML"in J}function Kz(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),w=[];for(let Y=0;Y<K.length;Y++){let X=K[Y];typeof X>"u"||typeof X=="boolean"||X===null||(typeof X=="number"&&(X=String(X)),typeof X=="string"&&w.length&&typeof w[w.length-1]=="string"?w[w.length-1]+=X:w.push(X))}return w}function U0(J,K,w,Y,X=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Z=new e5(J);if(Z.type==="length")switch(Z.unit){case"em":return Z.value*K;case"rem":return Z.value*16;case"vw":return~~(Z.value*Y._viewportWidth/100);case"vh":return~~(Z.value*Y._viewportHeight/100);default:return Z.value}else{if(Z.type==="angle")return sK(J);if(Z.type==="percentage"&&X)return Z.value/100*w}}catch{}}function sK(J){let K=new e5(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function l8(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function B1(J,K,w,Y){let X=K[J];if(typeof X>"u"){if(Y&&typeof J<"u")throw Error(`Invalid value for CSS property "${Y}". Allowed values: ${Object.keys(K).map((Z)=>`"${Z}"`).join(" | ")}. Received: "${J}".`);X=w}return X}var O4,L4,wz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function M1(J,K,w){if(!O4||!L4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");O4=new Intl.Segmenter(w,{granularity:"word"}),L4=new Intl.Segmenter(w,{granularity:"grapheme"})}if(K==="grapheme")return[...L4.segment(J)].map((Y)=>Y.segment);{let Y=[...O4.segment(J)].map((Q)=>Q.segment),X=[],Z=0;for(;Z<Y.length;){let Q=Y[Z];if(Q=="\xA0"){let W=Z===0?"":X.pop(),H=Z===Y.length-1?"":Y[Z+1];X.push(W+"\xA0"+H),Z+=2}else X.push(Q),Z++}return X}}function a(J,K,w){let Y="";for(let[X,Z]of Object.entries(K))typeof Z<"u"&&(Y+=` ${X}="${Z}"`);return w?`<${J}${Y}>${w}</${J}>`:`<${J}${Y}/>`}function Yz(J=20){let K=new Map;function w(Z,Q){if(K.size>=J){let W=K.keys().next().value;K.delete(W)}K.set(Z,Q)}function Y(Z){if(!K.has(Z))return;let Q=K.get(Z);return K.delete(Z),K.set(Z,Q),Q}function X(){K.clear()}return{set:w,get:Y,clear:X}}function d4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Xz(J){return Object.prototype.toString.call(J)}function aK(J){return typeof J=="string"}function Zz(J){return typeof J=="number"}function Qz(J){return Xz(J)==="[object Undefined]"}function Hz(J,K){if(K==="break-all")return{words:M1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:M1(J,"word"),requiredBreaks:[]};let w=new I6(J),Y=0,X=w.nextBreak(),Z=[],Q=[!1];for(;X;){let W=J.slice(Y,X.position);Z.push(W),X.required?Q.push(!0):Q.push(!1),Y=X.position,X=w.nextBreak()}return{words:Z,requiredBreaks:Q}}var Wz=(J)=>J.replaceAll(/([A-Z])/g,(K,w)=>`-${w.toLowerCase()}`);function tK(J,K=","){let w=[],Y=0,X=0;K=new RegExp(K);for(let Z=0;Z<J.length;Z++)J[Z]==="("?X++:J[Z]===")"&&X--,X===0&&K.test(J[Z])&&(w.push(J.slice(Y,Z).trim()),Y=Z+1);return w.push(J.slice(Y).trim()),w}var $z="image/avif",zz="image/webp",t8="image/apng",e8="image/png",J6="image/jpeg",K6="image/gif",l4="image/svg+xml";function eK(J){let K=new DataView(J),w=4,Y=K.byteLength;for(;w<Y;){let X=K.getUint16(w,!1);if(X>Y)throw TypeError("Invalid JPEG");let Z=K.getUint8(X+1+w);if(Z===192||Z===193||Z===194)return[K.getUint16(X+7+w,!1),K.getUint16(X+5+w,!1)];w+=X+2}throw TypeError("Invalid JPEG")}function Jw(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function Kw(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var r1=Yz(100),c8=new Map,Uz=[e8,t8,J6,K6,l4];function Az(J){let K="",w=new Uint8Array(J);for(let Y=0;Y<w.byteLength;Y++)K+=String.fromCharCode(w[Y]);return btoa(K)}function Vz(J){let K=atob(J),w=K.length,Y=new Uint8Array(w);for(let X=0;X<w;X++)Y[X]=K.charCodeAt(X);return Y.buffer}function tJ(J,K){let w=K.match(/<svg[^>]*>/)[0],Y=w.match(/viewBox=['"](.+)['"]/),X=Y?d4(Y[1]):null,Z=w.match(/width=['"](\d*\.\d+|\d+)['"]/),Q=w.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!X&&(!Z||!Q))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let W=X?[X[2],X[3]]:[+Z[1],+Q[1]],H=W[0]/W[1];return Z&&Q?[+Z[1],+Q[1]]:Z?[+Z[1],+Z[1]/H]:Q?[+Q[1]*H,+Q[1]]:[W[0],W[1]]}function eJ(J){let K,w=Bz(new Uint8Array(J));switch(w){case e8:case t8:K=Kw(J);break;case K6:K=Jw(J);break;case J6:K=eK(J);break}if(!Uz.includes(w))throw Error(`Unsupported image type: ${w||"unknown"}`);return[`data:${w};base64,${Az(J)}`,K]}async function c4(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[X,Z]=eJ(J);return[X,...Z]}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:Z,encodingType:Q,dataString:W}=X;if(Z===l4){let H=Q==="base64"?atob(W):decodeURIComponent(W.replace(/ /g,"%20")),$=Q==="base64"?J:`data:image/svg+xml;base64,${btoa(H)}`,z=tJ(J,H);return r1.set(J,[$,...z]),[$,...z]}else if(Q==="base64"){let H,$=Vz(W);switch(Z){case e8:case t8:H=Kw($);break;case K6:H=Jw($);break;case J6:H=eK($);break}return r1.set(J,[J,...H]),[J,...H]}else return console.warn("Image data URI resolved without size:"+J),r1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(c8.has(J))return c8.get(J);let K=r1.get(J);if(K)return K;let w=J,Y=fetch(w).then((X)=>{let Z=X.headers.get("content-type");return Z==="image/svg+xml"||Z==="application/svg+xml"?X.text():X.arrayBuffer()}).then((X)=>{if(typeof X=="string")try{let W=`data:image/svg+xml;base64,${btoa(X)}`,H=tJ(w,X);return[W,...H]}catch(W){throw Error(`Failed to parse SVG image: ${W.message}`)}let[Z,Q]=eJ(X);return[Z,...Q]}).then((X)=>(r1.set(w,X),X)).catch((X)=>(console.error(`Can't load image ${w}: `+X.message),r1.set(w,[]),[]));return c8.set(w,Y),Y}function Bz(J){return[255,216,255].every((K,w)=>J[w]===K)?J6:[137,80,78,71,13,10,26,10].every((K,w)=>J[w]===K)?Gz(J)?t8:e8:[71,73,70,56].every((K,w)=>J[w]===K)?K6:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,w)=>!K||J[w]===K)?zz:[60,63,120,109,108].every((K,w)=>J[w]===K)?l4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,w)=>!K||J[w]===K)?$z:null}function Gz(J){let K=new DataView(J.buffer),w,Y,X=8,Z=!1;for(;!Z&&w!=="IEND"&&X<J.length;){Y=K.getUint32(X);let Q=J.subarray(X+4,X+8);w=String.fromCharCode(...Q),Z=w==="acTL",X+=12+Y}return Z}var I4={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"},Mz=/[\r\n%#()<>?[\\\]^`{|}"']/g;function T4(J,K){if(!J)return"";if(Array.isArray(J))return J.map(($)=>T4($,K)).join("");if(typeof J!="object")return String(J);let w=J.type;if(w==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:Y,style:X,...Z}=J.props||{},Q=(X==null?void 0:X.color)||K,W=`${Object.entries(Z).map(([$,z])=>(typeof z=="string"&&z.toLowerCase()==="currentcolor"&&(z=Q),$==="href"&&w==="image"?` ${I4[$]||$}="${r1.get(z)[0]}"`:` ${I4[$]||$}="${z}"`)).join("")}`,H=X?` style="${Object.entries(X).map(([$,z])=>`${Wz($)}:${z}`).join(";")}"`:"";return`<${w}${W}${H}>${T4(Y,Q)}</${w}>`}async function Oz(J){let K=new Set,w=(Y)=>{if(Y&&d8(Y)){if(Array.isArray(Y)){Y.forEach((X)=>w(X));return}else typeof Y=="object"&&(Y.type==="image"?K.has(Y.props.href)||K.add(Y.props.href):Y.type==="img"&&(K.has(Y.props.src)||K.add(Y.props.src)));Array.isArray(Y.props.children)?Y.props.children.map((X)=>w(X)):w(Y.props.children)}};return w(J),Promise.all(Array.from(K).map((Y)=>c4(Y)))}async function Lz(J,K){let{viewBox:w,viewbox:Y,width:X,height:Z,className:Q,style:W,children:H,...$}=J.props||{};w||=Y,$.xmlns="http://www.w3.org/2000/svg";let z=(W==null?void 0:W.color)||K,U=d4(w),A=U?U[3]/U[2]:null;return X=X||A&&Z?Z/A:null,Z=Z||A&&X?X*A:null,$.width=X,$.height=Z,w&&($.viewBox=w),`data:image/svg+xml;utf8,${`<svg ${Object.entries($).map(([V,O])=>(typeof O=="string"&&O.toLowerCase()==="currentcolor"&&(O=z),` ${I4[V]||V}="${O}"`)).join("")}>${T4(H,z)}</svg>`.replace(Mz,encodeURIComponent)}`}var w1="flex",qz={p:{display:w1,marginTop:"1em",marginBottom:"1em"},div:{display:w1},blockquote:{display:w1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:w1,textAlign:"center"},hr:{display:w1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:w1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:w1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:w1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:w1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:w1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:w1,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:w1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Nz=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 jz(J){let K={};for(let w in J)Nz.has(w)&&(K[w]=J[w]);return K}function Ez(J,K){try{let w=new e5(J);switch(w.unit){case"px":return{absolute:w.value};case"em":return{absolute:w.value*K};case"rem":return{absolute:w.value*16};case"%":return{relative:w.value};default:return{}}}catch{return{}}}function q4(J,K,w){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 Y=Ez(J,K);return Y.absolute?{[w?"xAbsolute":"yAbsolute"]:Y.absolute}:Y.relative?{[w?"xRelative":"yRelative"]:Y.relative}:{}}}}function Fz(J,K){if(typeof J=="number")return{xAbsolute:J};let w;try{w=Xw.default(J).nodes.filter((Y)=>Y.type==="word").map((Y)=>Y.value)}catch{return{}}return w.length===1?q4(w[0],K,!0):w.length===2?((w[0]==="top"||w[0]==="bottom"||w[1]==="left"||w[1]==="right")&&w.reverse(),{...q4(w[0],K,!0),...q4(w[1],K,!1)}):{}}function i5(J,K){let w=Zw.getPropertyName(`mask-${K}`);return J[w]||J[`WebkitM${w.substring(1)}`]}function Rz(J){let K=J.maskImage||J.WebkitMaskImage,w={position:i5(J,"position")||"0% 0%",size:i5(J,"size")||"100% 100%",repeat:i5(J,"repeat")||"repeat",origin:i5(J,"origin")||"border-box",clip:i5(J,"origin")||"border-box"};return tK(K).filter((Y)=>Y&&Y!=="none").reverse().map((Y)=>({image:Y,...w}))}var _z=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),Dz=new Set(["lineHeight"]);function Iz(J,K,w,Y){return J==="textDecoration"&&!w.includes(K.textDecorationColor)&&(K.textDecorationColor=Y),K}function Q5(J,K){let w=Number(K);return isNaN(w)?K:_z.has(J)?Dz.has(J)?w:String(K):w+"px"}function Tz(J,K,w){if(J==="lineHeight")return{lineHeight:Q5(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((Y)=>Y.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[Y,X]=K.split("/"),Z=G1.getStylesForProperty(J,Y,!0),Q=G1.getStylesForProperty(J,X,!0);for(let W in Z)Q[W]=Q5(J,Z[W])+" "+Q5(J,Q[W]);return Q}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let Y=G1.getStylesForProperty("border",K,!0);Y.borderWidth===1&&!String(K).includes("1px")&&(Y.borderWidth=3),Y.borderColor==="black"&&!String(K).includes("black")&&(Y.borderColor=w);let X={Width:Q5(J+"Width",Y.borderWidth),Style:B1(Y.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:Y.borderColor},Z={};for(let Q of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let W in X)Z["border"+Q+W]=X[W];return Z}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?Yw.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let Y={},X=K.replace(/(-?[\d.]+%)/g,(Q,W)=>{let H=~~(Math.random()*1e9);return Y[H]=W,H+"px"}),Z=G1.getStylesForProperty("transform",X,!0);for(let Q of Z.transform)for(let W in Q)Y[Q[W]]&&(Q[W]=Y[Q[W]]);return Z}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?G1.getStylesForProperty("backgroundImage",K,!0):G1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let Y={},X=tK(K);for(let Z of X){let Q=G1.getStylesForProperty("textShadow",Z,!0);for(let W in Q)Y[W]?Y[W].push(Q[W]):Y[W]=[Q[W]]}return Y}if(J==="WebkitTextStroke"){K=K.toString().trim();let Y=K.split(" ");if(Y.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,Y[0]),WebkitTextStrokeColor:Q5(J,Y[1])}}}function JK(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var KK=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function Qw(J){if(typeof J=="string"&&KK.test(J.trim()))return J.trim().replace(KK,(K,w,Y,X,Z)=>`rgba(${w}, ${Y}, ${X}, ${Z})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=Qw(J[K]);return J}return J}function wK(J,K){let w={};if(J){let X=Pz(J.color,K.color);w.color=X;for(let Z in J){if(Z.startsWith("_")){w[Z]=J[Z];continue}if(Z==="color")continue;let Q=G1.getPropertyName(Z),W=vz(J[Z],X);try{let H=Tz(Q,W,X)||Iz(Q,G1.getStylesForProperty(Q,Q5(Q,W),!0),W,X);Object.assign(w,H)}catch(H){throw Error(H.message+(H.message.includes(W)?`
64
- `+JK(Q):`
65
- in CSS rule \`${Q}: ${W}\`.${JK(Q)}`))}}}if(w.backgroundImage){let{backgrounds:X}=ww.parseElementStyle(w);w.backgroundImage=X}(w.maskImage||w.WebkitMaskImage)&&(w.maskImage=Rz(w));let Y=Cz(w.fontSize,K.fontSize);typeof w.fontSize<"u"&&(w.fontSize=Y),w.transformOrigin&&(w.transformOrigin=Fz(w.transformOrigin,Y));for(let X in w){let Z=w[X];if(X==="lineHeight")typeof Z=="string"&&Z!=="normal"&&(Z=w[X]=U0(Z,Y,Y,K,!0)/Y);else{if(typeof Z=="string"){let Q=U0(Z,Y,Y,K);typeof Q<"u"&&(w[X]=Q),Z=w[X]}if(typeof Z=="string"||typeof Z=="object"){let Q=Qw(Z);Q&&(w[X]=Q),Z=w[X]}}if(X==="opacity"&&typeof Z=="number"&&(w.opacity=Z*K.opacity),X==="transform"){let Q=Z;for(let W of Q){let H=Object.keys(W)[0],$=W[H],z=typeof $=="string"?U0($,Y,Y,K)??$:$;W[H]=z}}if(X==="textShadowRadius"){let Q=Z;w.textShadowRadius=Q.map((W)=>U0(W,Y,0,K,!1))}if(X==="textShadowOffset"){let Q=Z;w.textShadowOffset=Q.map(({height:W,width:H})=>({height:U0(W,Y,0,K,!1),width:U0(H,Y,0,K,!1)}))}}return w}function Cz(J,K){if(typeof J=="number")return J;try{let w=new e5(J);switch(w.unit){case"em":return w.value*K;case"rem":return w.value*16}}catch{return K}}function YK(J){if(J.startsWith("hsl")){let K=N8(J),[w,Y,X]=K.values;return`hsl(${[w,`${Y}%`,`${X}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function Pz(J,K){return J&&J.toLowerCase()!=="currentcolor"?YK(J):YK(K)}function Sz(J,K){return J.replace(/currentcolor/gi,K)}function vz(J,K){return aK(J)&&(J=Sz(J,K)),J}async function yz(J,K,w,Y,X){let Z=await a8(),Q={...w,...wK(qz[K],w),...wK(Y,w)};if(K==="img"){let[W,H,$]=await c4(X.src);if(H===void 0&&$===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.");H=parseInt(X.width),$=parseInt(X.height)}let z=$/H,U=(Q.borderLeftWidth||0)+(Q.borderRightWidth||0)+(Q.paddingLeft||0)+(Q.paddingRight||0),A=(Q.borderTopWidth||0)+(Q.borderBottomWidth||0)+(Q.paddingTop||0)+(Q.paddingBottom||0),V=Q.width||X.width,O=Q.height||X.height,B=typeof V=="number"&&typeof O=="number";B&&(V-=U,O-=A),V===void 0&&O===void 0?(V="100%",J.setAspectRatio(1/z)):V===void 0?typeof O=="number"?V=O/z:J.setAspectRatio(1/z):O===void 0&&(typeof V=="number"?O=V*z:J.setAspectRatio(1/z)),Q.width=B?V+U:V,Q.height=B?O+A:O,Q.__src=W}if(K==="svg"){let W=X.viewBox||X.viewbox,H=d4(W),$=H?H[3]/H[2]:null,{width:z,height:U}=X;typeof z>"u"&&U?$==null?z=0:typeof U=="string"&&U.endsWith("%")?z=parseInt(U)/$+"%":(U=U0(U,w.fontSize,1,w),z=U/$):typeof U>"u"&&z?$==null?z=0:typeof z=="string"&&z.endsWith("%")?U=parseInt(z)*$+"%":(z=U0(z,w.fontSize,1,w),U=z*$):(typeof z<"u"&&(z=U0(z,w.fontSize,1,w)||z),typeof U<"u"&&(U=U0(U,w.fontSize,1,w)||U),z||=H==null?void 0:H[2],U||=H==null?void 0:H[3]),!Q.width&&z&&(Q.width=z),!Q.height&&U&&(Q.height=U)}return J.setDisplay(B1(Q.display,{flex:Z.DISPLAY_FLEX,block:Z.DISPLAY_FLEX,none:Z.DISPLAY_NONE,"-webkit-box":Z.DISPLAY_FLEX},Z.DISPLAY_FLEX,"display")),J.setAlignContent(B1(Q.alignContent,{stretch:Z.ALIGN_STRETCH,center:Z.ALIGN_CENTER,"flex-start":Z.ALIGN_FLEX_START,"flex-end":Z.ALIGN_FLEX_END,"space-between":Z.ALIGN_SPACE_BETWEEN,"space-around":Z.ALIGN_SPACE_AROUND,baseline:Z.ALIGN_BASELINE,normal:Z.ALIGN_AUTO},Z.ALIGN_AUTO,"alignContent")),J.setAlignItems(B1(Q.alignItems,{stretch:Z.ALIGN_STRETCH,center:Z.ALIGN_CENTER,"flex-start":Z.ALIGN_FLEX_START,"flex-end":Z.ALIGN_FLEX_END,baseline:Z.ALIGN_BASELINE,normal:Z.ALIGN_AUTO},Z.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(B1(Q.alignSelf,{stretch:Z.ALIGN_STRETCH,center:Z.ALIGN_CENTER,"flex-start":Z.ALIGN_FLEX_START,"flex-end":Z.ALIGN_FLEX_END,baseline:Z.ALIGN_BASELINE,normal:Z.ALIGN_AUTO},Z.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(B1(Q.justifyContent,{center:Z.JUSTIFY_CENTER,"flex-start":Z.JUSTIFY_FLEX_START,"flex-end":Z.JUSTIFY_FLEX_END,"space-between":Z.JUSTIFY_SPACE_BETWEEN,"space-around":Z.JUSTIFY_SPACE_AROUND},Z.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(B1(Q.flexDirection,{row:Z.FLEX_DIRECTION_ROW,column:Z.FLEX_DIRECTION_COLUMN,"row-reverse":Z.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Z.FLEX_DIRECTION_COLUMN_REVERSE},Z.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(B1(Q.flexWrap,{wrap:Z.WRAP_WRAP,nowrap:Z.WRAP_NO_WRAP,"wrap-reverse":Z.WRAP_WRAP_REVERSE},Z.WRAP_NO_WRAP,"flexWrap")),typeof Q.gap<"u"&&J.setGap(Z.GUTTER_ALL,Q.gap),typeof Q.rowGap<"u"&&J.setGap(Z.GUTTER_ROW,Q.rowGap),typeof Q.columnGap<"u"&&J.setGap(Z.GUTTER_COLUMN,Q.columnGap),typeof Q.flexBasis<"u"&&J.setFlexBasis(Q.flexBasis),J.setFlexGrow(typeof Q.flexGrow>"u"?0:Q.flexGrow),J.setFlexShrink(typeof Q.flexShrink>"u"?0:Q.flexShrink),typeof Q.maxHeight<"u"&&J.setMaxHeight(Q.maxHeight),typeof Q.maxWidth<"u"&&J.setMaxWidth(Q.maxWidth),typeof Q.minHeight<"u"&&J.setMinHeight(Q.minHeight),typeof Q.minWidth<"u"&&J.setMinWidth(Q.minWidth),J.setOverflow(B1(Q.overflow,{visible:Z.OVERFLOW_VISIBLE,hidden:Z.OVERFLOW_HIDDEN},Z.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Z.EDGE_TOP,Q.marginTop||0),J.setMargin(Z.EDGE_BOTTOM,Q.marginBottom||0),J.setMargin(Z.EDGE_LEFT,Q.marginLeft||0),J.setMargin(Z.EDGE_RIGHT,Q.marginRight||0),J.setBorder(Z.EDGE_TOP,Q.borderTopWidth||0),J.setBorder(Z.EDGE_BOTTOM,Q.borderBottomWidth||0),J.setBorder(Z.EDGE_LEFT,Q.borderLeftWidth||0),J.setBorder(Z.EDGE_RIGHT,Q.borderRightWidth||0),J.setPadding(Z.EDGE_TOP,Q.paddingTop||0),J.setPadding(Z.EDGE_BOTTOM,Q.paddingBottom||0),J.setPadding(Z.EDGE_LEFT,Q.paddingLeft||0),J.setPadding(Z.EDGE_RIGHT,Q.paddingRight||0),J.setPositionType(B1(Q.position,{absolute:Z.POSITION_TYPE_ABSOLUTE,relative:Z.POSITION_TYPE_RELATIVE},Z.POSITION_TYPE_RELATIVE,"position")),typeof Q.top<"u"&&J.setPosition(Z.EDGE_TOP,Q.top),typeof Q.bottom<"u"&&J.setPosition(Z.EDGE_BOTTOM,Q.bottom),typeof Q.left<"u"&&J.setPosition(Z.EDGE_LEFT,Q.left),typeof Q.right<"u"&&J.setPosition(Z.EDGE_RIGHT,Q.right),typeof Q.height<"u"?J.setHeight(Q.height):J.setHeightAuto(),typeof Q.width<"u"?J.setWidth(Q.width):J.setWidthAuto(),[Q,jz(Q)]}var XK=[1,0,0,1,0,0];function hz(J,K,w){let Y=[...XK];for(let X of J){let Z=Object.keys(X)[0],Q=X[Z];if(typeof Q=="string")if(Z==="translateX")Q=parseFloat(Q)/100*K,X[Z]=Q;else if(Z==="translateY")Q=parseFloat(Q)/100*w,X[Z]=Q;else throw Error(`Invalid transform: "${Z}: ${Q}".`);let W=Q,H=[...XK];switch(Z){case"translateX":H[4]=W;break;case"translateY":H[5]=W;break;case"scale":H[0]=W,H[3]=W;break;case"scaleX":H[0]=W;break;case"scaleY":H[3]=W;break;case"rotate":{let $=W*Math.PI/180,z=Math.cos($),U=Math.sin($);H[0]=z,H[1]=U,H[2]=-U,H[3]=z;break}case"skewX":H[2]=Math.tan(W*Math.PI/180);break;case"skewY":H[1]=Math.tan(W*Math.PI/180);break}Y=l8(H,Y)}J.splice(0,J.length),J.push(...Y),J.__resolved=!0}function Hw({left:J,top:K,width:w,height:Y},X,Z,Q){let W;X.__resolved||hz(X,w,Y);let H=X;if(Z)W=H;else{let $=(Q==null?void 0:Q.xAbsolute)??((Q==null?void 0:Q.xRelative)??50)*w/100,z=(Q==null?void 0:Q.yAbsolute)??((Q==null?void 0:Q.yRelative)??50)*Y/100,U=J+$,A=K+z;W=l8([1,0,0,1,U,A],l8(H,[1,0,0,1,-U,-A])),H.__parent&&(W=l8(H.__parent,W)),H.splice(0,6,...W)}return`matrix(${W.map(($)=>$.toFixed(2)).join(",")})`}function kz({left:J,top:K,width:w,height:Y,isInheritingTransform:X},Z){let Q="",W=1;return Z.transform&&(Q=Hw({left:J,top:K,width:w,height:Y},Z.transform,X,Z.transformOrigin)),Z.opacity!==void 0&&(W=+Z.opacity),{matrix:Q,opacity:W}}function gz({id:J,content:K,filter:w,left:Y,top:X,width:Z,height:Q,matrix:W,opacity:H,image:$,clipPathId:z,debug:U,shape:A,decorationShape:V},O){let B="";if(U&&(B=a("rect",{x:Y,y:X-Q,width:Z,height:Q,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:W||void 0,"clip-path":z?`url(#${z})`:void 0})),$){let q={href:$,x:Y,y:X,width:Z,height:Q,transform:W||void 0,"clip-path":z?`url(#${z})`:void 0,style:O.filter?`filter:${O.filter}`:void 0};return[(w?`${w}<g filter="url(#satori_s-${J})">`:"")+a("image",{...q,opacity:H!==1?H:void 0})+(V||"")+(w?"</g>":"")+B,""]}let M={x:Y,y:X,width:Z,height:Q,"font-weight":O.fontWeight,"font-style":O.fontStyle,"font-size":O.fontSize,"font-family":O.fontFamily,"letter-spacing":O.letterSpacing||void 0,transform:W||void 0,"clip-path":z?`url(#${z})`: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[(w?`${w}<g filter="url(#satori_s-${J})">`:"")+a("text",{...M,fill:O.color,opacity:H!==1?H:void 0},C4.default(K))+(V||"")+(w?"</g>":"")+B,A?a("text",M,C4.default(K)):""]}function xz(J,K,w){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(Y,X,Z,Q){return X+(parseFloat(Z)+K)+","+(parseFloat(Q)+w)})}var v8=1.1;function bz({id:J,width:K,height:w},Y){if(!Y.shadowColor||!Y.shadowOffset||typeof Y.shadowRadius>"u")return"";let X=Y.shadowColor.length,Z="",Q="",W=0,H=K,$=0,z=w;for(let U=0;U<X;U++){let A=Y.shadowRadius[U]*Y.shadowRadius[U]/4;W=Math.min(Y.shadowOffset[U].width-A,W),H=Math.max(Y.shadowOffset[U].width+A+K,H),$=Math.min(Y.shadowOffset[U].height-A,$),z=Math.max(Y.shadowOffset[U].height+A+w,z),Z+=a("feDropShadow",{dx:Y.shadowOffset[U].width,dy:Y.shadowOffset[U].height,stdDeviation:Y.shadowRadius[U]/2,"flood-color":Y.shadowColor[U],"flood-opacity":1,...X>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${U}`}:{}}),X>1&&(Q=a("feMergeNode",{in:`satori_s-${J}-result-${U}`})+Q)}return a("filter",{id:`satori_s-${J}`,x:(W/K*100*v8).toFixed(2)+"%",y:($/w*100*v8).toFixed(2)+"%",width:((H-W)/K*100*v8).toFixed(2)+"%",height:((z-$)/w*100*v8).toFixed(2)+"%"},Z+(Q?a("feMerge",{},Q):""))}function fz({width:J,height:K,shape:w,opacity:Y,id:X},Z){if(!Z.boxShadow)return null;let Q="",W="";for(let H=Z.boxShadow.length-1;H>=0;H--){let $="",z=Z.boxShadow[H];z.spreadRadius&&z.inset&&(z.spreadRadius=-z.spreadRadius);let U=z.blurRadius*z.blurRadius/4+(z.spreadRadius||0),A=Math.min(-U-(z.inset?z.offsetX:0),0),V=Math.max(U+J-(z.inset?z.offsetX:0),J),O=Math.min(-U-(z.inset?z.offsetY:0),0),B=Math.max(U+K-(z.inset?z.offsetY:0),K),M=`satori_s-${X}-${H}`,q=`satori_ms-${X}-${H}`,N=z.spreadRadius?w.replace('stroke-width="0"',`stroke-width="${z.spreadRadius*2}"`):w;$+=a("mask",{id:q,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Z._viewportWidth||"100%",height:Z._viewportHeight||"100%",fill:z.inset?"#000":"#fff"})+N.replace('fill="#fff"',z.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(_,F)=>'d="'+xz(F,z.offsetX,z.offsetY)+'"').replace(/x="([^"]+)"/,(_,F)=>'x="'+(parseFloat(F)+z.offsetX)+'"').replace(/y="([^"]+)"/,(_,F)=>'y="'+(parseFloat(F)+z.offsetY)+'"');z.spreadRadius&&z.spreadRadius<0&&($+=a("mask",{id:q+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-z.spreadRadius*2}"`))),z.spreadRadius&&z.spreadRadius<0&&(E=a("g",{mask:`url(#${q}-neg)`},E)),$+=a("defs",{},a("filter",{id:M,x:`${A/J*100}%`,y:`${O/K*100}%`,width:`${(V-A)/J*100}%`,height:`${(B-O)/K*100}%`},a("feGaussianBlur",{stdDeviation:z.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":z.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:z.inset?"out":"in"})))+a("g",{mask:`url(#${q})`,filter:`url(#${M})`,opacity:Y},E),z.inset?W+=$:Q+=$}return[Q,W]}function mz({width:J,left:K,top:w,ascender:Y,clipPathId:X,matrix:Z},Q){let{textDecorationColor:W,textDecorationStyle:H,textDecorationLine:$,fontSize:z,color:U}=Q;if(!$||$==="none")return"";let A=Math.max(1,z*0.1),V=$==="line-through"?w+Y*0.7:$==="underline"?w+Y*1.1:w,O=H==="dashed"?`${A*1.2} ${A*2}`:H==="dotted"?`0 ${A*2}`:void 0;return(X?`<g clip-path="url(#${X})">`:"")+a("line",{x1:K,y1:V,x2:K+J,y2:V,stroke:W||U,"stroke-width":A,"stroke-dasharray":O,"stroke-linecap":H==="dotted"?"round":"square",transform:Z})+(X?"</g>":"")}function u4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var a5=u4("U+0020"),Ww=u4("U+0009"),u8=u4("U+2026");function dz(J,K,w){let{fontSize:Y,letterSpacing:X}=w,Z=new Map;function Q($){if(Z.has($))return Z.get($);let z=J.measure($,{fontSize:Y,letterSpacing:X});return Z.set($,z),z}function W($){let z=0;for(let U of $)K(U)?z+=Y:z+=Q(U);return z}function H($){return W(M1($,"grapheme"))}return{measureGrapheme:Q,measureGraphemeArray:W,measureText:H}}function lz(J,K,w){let{textTransform:Y,whiteSpace:X,wordBreak:Z}=K;J=cz(J,Y,w);let{content:Q,shouldCollapseTabsAndSpaces:W,allowSoftWrap:H}=iz(J,X),{words:$,requiredBreaks:z,allowBreakWord:U}=pz(Q,Z),[A,V]=uz(K,H);return{words:$,requiredBreaks:z,allowSoftWrap:H,allowBreakWord:U,processedContent:Q,shouldCollapseTabsAndSpaces:W,lineLimit:A,blockEllipsis:V}}function cz(J,K,w){return K==="uppercase"?J=J.toLocaleUpperCase(w):K==="lowercase"?J=J.toLocaleLowerCase(w):K==="capitalize"&&(J=M1(J,"word",w).map((Y)=>M1(Y,"grapheme",w).map((X,Z)=>Z===0?X.toLocaleUpperCase(w):X).join("")).join("")),J}function uz(J,K){let{textOverflow:w,lineClamp:Y,WebkitLineClamp:X,WebkitBoxOrient:Z,overflow:Q,display:W}=J;if(W==="block"&&Y){let[H,$=u8]=rz(Y);if(H)return[H,$]}return w==="ellipsis"&&W==="-webkit-box"&&Z==="vertical"&&Zz(X)&&X>0?[X,u8]:w==="ellipsis"&&Q==="hidden"&&!K?[1,u8]:[1/0]}function pz(J,K){let w=["break-all","break-word"].includes(K),{words:Y,requiredBreaks:X}=Hz(J,K);return{words:Y,requiredBreaks:X,allowBreakWord:w}}function iz(J,K){let w=["pre","pre-wrap","pre-line"].includes(K),Y=["normal","nowrap","pre-line"].includes(K),X=!["pre","nowrap"].includes(K);return w||(J=J.replace(/\n/g,a5)),Y&&(J=J.replace(/([ ]|\t)+/g,a5).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:Y,allowSoftWrap:X}}function rz(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,w=/^(\d+)\s*'(.*)'$/,Y=K.exec(J),X=w.exec(J);if(Y){let Z=+Y[1],Q=Y[2];return[Z,Q]}else if(X){let Z=+X[1],Q=X[2];return[Z,Q]}return[]}var nz=new Set([Ww]);function oz(J){return nz.has(J)}async function*sz(J,K){let w=await a8(),{parentStyle:Y,inheritedStyle:X,parent:Z,font:Q,id:W,isInheritingTransform:H,debug:$,embedFont:z,graphemeImages:U,locale:A,canLoadAdditionalAssets:V}=K,{textAlign:O,lineHeight:B,textWrap:M,fontSize:q,filter:N,tabSize:E=8,letterSpacing:_,_inheritedBackgroundClipTextPath:F,flexShrink:j}=Y,{words:T,requiredBreaks:D,allowSoftWrap:C,allowBreakWord:k,processedContent:c,shouldCollapseTabsAndSpaces:u,lineLimit:p,blockEllipsis:P}=lz(J,Y,A),S=az(w,O);Z.insertChild(S,Z.getChildCount()),Qz(j)&&Z.setFlexShrink(1);let I=Q.getEngine(q,B,Y,A),l=V?M1(c,"grapheme").filter((Q0)=>!oz(Q0)&&!I.has(Q0)):[];yield l.map((Q0)=>({word:Q0,locale:A})),l.length&&(I=Q.getEngine(q,B,Y,A));function f(Q0){return!!(U&&U[Q0])}let{measureGrapheme:o,measureGraphemeArray:i,measureText:m}=dz(I,f,{fontSize:q,letterSpacing:_}),d=aK(E)?U0(E,q,1,Y):o(a5)*E,y=(Q0,q0)=>{if(Q0.length===0)return{originWidth:0,endingSpacesWidth:0,text:Q0};let{index:E0,tabCount:A0}=tz(Q0),D0=0;if(A0>0){let C0=Q0.slice(0,E0),R0=Q0.slice(E0+A0),M0=m(C0),O1=M0+q0;D0=(d===0?M0:(Math.floor(O1/d)+A0)*d)+m(R0)}else D0=m(Q0);let B0=Q0.trimEnd()===Q0?D0:m(Q0.trimEnd());return{originWidth:D0,endingSpacesWidth:D0-B0,text:Q0}},h=[],s=[],g=[],J0=[],Y0=[];function X0(Q0){let q0=0,E0=0,A0=-1,D0=0,B0=0,C0=0,R0=0;h=[],g=[0],J0=[],Y0=[];let M0=0,O1=0;for(;M0<T.length&&q0<p;){let W0=T[M0],e1=D[M0],t0=0,{originWidth:g1,endingSpacesWidth:Q8,text:x1}=y(W0,B0);W0=x1,t0=g1;let N0=Q8;e1&&C0===0&&(C0=I.height(W0));let x0=",.!?:-@)>]}%#".indexOf(W0[0])<0,Q1=!B0,H8=M0&&x0&&B0+t0>Q0+N0&&C;if(k&&t0>Q0&&(!B0||H8||e1)){let c0=M1(W0,"grapheme");T.splice(M0,1,...c0),B0>0&&(h.push(B0-O1),s.push(R0),q0++,D0+=C0,B0=0,C0=0,R0=0,g.push(1),A0=-1),O1=N0;continue}if(e1||H8)u&&W0===a5&&(t0=0),h.push(B0-O1),s.push(R0),q0++,D0+=C0,B0=t0,C0=t0?I.height(W0):0,R0=t0?I.baseline(W0):0,g.push(1),A0=-1,e1||(E0=Math.max(E0,Q0));else{B0+=t0;let c0=I.height(W0);c0>C0&&(C0=c0,R0=I.baseline(W0)),Q1&&g[g.length-1]++}Q1&&A0++,E0=Math.max(E0,B0);let D5=B0-t0;if(t0===0)Y0.push({y:D0,x:D5,width:0,line:q0,lineIndex:A0,isImage:!1});else{let c0=M1(W0,"word");for(let H1=0;H1<c0.length;H1++){let J5=c0[H1],I1=0,I5=!1;f(J5)?(I1=q,I5=!0):I1=o(J5),J0.push(J5),Y0.push({y:D0,x:D5,width:I1,line:q0,lineIndex:A0,isImage:I5}),D5+=I1}}M0++,O1=N0}return B0&&(q0<p&&(D0+=C0),q0++,h.push(B0),s.push(R0)),{width:E0,height:D0}}let K0={width:0,height:0};S.setMeasureFunc((Q0)=>{let{width:q0,height:E0}=X0(Q0);if(M==="balance"){let D0=q0/2,B0=q0,C0=q0;for(;D0+1<B0;){C0=(D0+B0)/2;let{height:M0}=X0(C0);M0>E0?D0=C0:B0=C0}X0(B0);let R0=Math.ceil(B0);return K0={width:R0,height:E0},{width:R0,height:E0}}let A0=Math.ceil(q0);return K0={width:A0,height:E0},{width:A0,height:E0}});let[V0,_0]=yield,w0="",G0="",v0=X._inheritedClipPathId,u0=X._inheritedMaskId,{left:g0,top:T0,width:l0,height:p0}=S.getComputedLayout(),i0=Z.getComputedWidth()-Z.getComputedPadding(w.EDGE_LEFT)-Z.getComputedPadding(w.EDGE_RIGHT)-Z.getComputedBorder(w.EDGE_LEFT)-Z.getComputedBorder(w.EDGE_RIGHT),X1=V0+g0,Z1=_0+T0,{matrix:a0,opacity:z5}=kz({left:g0,top:T0,width:l0,height:p0,isInheritingTransform:H},Y),h1="";if(Y.textShadowOffset){let{textShadowColor:Q0,textShadowOffset:q0,textShadowRadius:E0}=Y;h1=bz({width:K0.width,height:K0.height,id:W},{shadowColor:Q0,shadowOffset:q0,shadowRadius:E0}),h1=a("defs",{},h1)}let t1="",U5="",Z8="",A5=-1,V5={},k1=null,G9=0;for(let Q0=0;Q0<J0.length;Q0++){let q0=Y0[Q0],E0=Y0[Q0+1];if(!q0)continue;let A0=J0[Q0],D0=null,B0=!1,C0=U?U[A0]:null,R0=q0.y,M0=q0.x,O1=q0.width,W0=q0.line;if(W0===A5)continue;let e1=!1;if(h.length>1){let N0=l0-h[W0];if(O==="right"||O==="end")M0+=N0;else if(O==="center")M0+=N0/2;else if(O==="justify"&&W0<h.length-1){let x0=g[W0],Q1=x0>1?N0/(x0-1):0;M0+=Q1*q0.lineIndex,e1=!0}}let t0=s[W0],g1=I.baseline(A0),Q8=I.height(A0),x1=t0-g1;if(V5[W0]||(V5[W0]=[M0,Z1+R0+x1,g1,e1?l0:h[W0]]),p!==1/0){let N0=function(c0,H1){let J5=M1(H1,"grapheme",A),I1="",I5=0;for(let M9 of J5){let O9=c0+i([I1+M9]);if(I1&&O9+Q1>i0)break;I1+=M9,I5=O9}return{subset:I1,resolvedWidth:I5}},x0=P,Q1=o(P);Q1>i0&&(x0=u8,Q1=o(x0));let H8=o(a5),D5=W0<h.length-1;if(W0+1===p&&(D5||h[W0]>i0)){if(M0+O1+Q1+H8>i0){let{subset:c0,resolvedWidth:H1}=N0(M0,A0);A0=c0+x0,A5=W0,V5[W0][2]=H1,B0=!0}else if(E0&&E0.line!==W0)if(O==="center"){let{subset:c0,resolvedWidth:H1}=N0(M0,A0);A0=c0+x0,A5=W0,V5[W0][2]=H1,B0=!0}else{let c0=J0[Q0+1],{subset:H1,resolvedWidth:J5}=N0(O1+M0,c0);A0=A0+H1+x0,A5=W0,V5[W0][2]=J5,B0=!0}}}if(C0)R0+=0;else if(z){if(!A0.includes(Ww)&&!wz.includes(A0)&&J0[Q0+1]&&E0&&!E0.isImage&&R0===E0.y&&!B0){k1===null&&(G9=M0),k1=k1===null?A0:k1+A0;continue}let N0=k1===null?A0:k1+A0,x0=k1===null?M0:G9,Q1=q0.width+M0-x0;D0=I.getSVG(N0.replace(/(\t)+/g,""),{fontSize:q,left:X1+x0,top:Z1+R0+g1+x1,letterSpacing:_}),k1=null,$&&(Z8+=a("rect",{x:X1+x0,y:Z1+R0+x1,width:Q1,height:Q8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0})+a("line",{x1:X1+M0,x2:X1+M0+q0.width,y1:Z1+R0+x1+g1,y2:Z1+R0+x1+g1,stroke:"#14c000","stroke-width":1,transform:a0||void 0,"clip-path":v0?`url(#${v0})`:void 0}))}else R0+=g1+x1;if(Y.textDecorationLine){let N0=V5[W0];N0&&!N0[4]&&(t1+=mz({left:X1+N0[0],top:N0[1],width:N0[3],ascender:N0[2],clipPathId:v0,matrix:a0},Y),N0[4]=1)}if(D0!==null)U5+=D0+" ";else{let[N0,x0]=gz({content:A0,filter:h1,id:W,left:X1+M0,top:Z1+R0,width:O1,height:Q8,matrix:a0,opacity:z5,image:C0,clipPathId:v0,debug:$,shape:!!F,decorationShape:t1},Y);w0+=N0,G0+=x0,t1=""}if(B0)break}if(U5){let Q0=Y.color!=="transparent"&&z5!==0?a("path",{fill:Y.color,d:U5,transform:a0||void 0,opacity:z5!==1?z5:void 0,"clip-path":v0?`url(#${v0})`: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&&(G0=a("path",{d:U5,transform:a0||void 0})),w0+=(h1?h1+a("g",{filter:`url(#satori_s-${W})`},Q0+t1):Q0+t1)+Z8}return G0&&(Y._inheritedBackgroundClipTextPath.value+=G0),w0}function az(J,K){let w=J.Node.create();return w.setAlignItems(J.ALIGN_BASELINE),w.setJustifyContent(B1(K,{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")),w}function tz(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function $w(J,K,w,Y,X){let Z=[];for(let $ of K){let{color:z}=$;if(!Z.length&&(Z.push({offset:0,color:z}),!$.offset||$.offset.value==="0"))continue;let U=typeof $.offset>"u"?void 0:$.offset.unit==="%"?+$.offset.value/100:Number(U0(`${$.offset.value}${$.offset.unit}`,w.fontSize,J,w,!0))/J;Z.push({offset:U,color:z})}Z.length||Z.push({offset:0,color:"transparent"});let Q=Z[Z.length-1];Q.offset!==1&&(typeof Q.offset>"u"?Q.offset=1:Y?Z[Z.length-1]={offset:1,color:Q.color}:Z.push({offset:1,color:Q.color}));let W=0,H=1;for(let $=0;$<Z.length;$++)if(typeof Z[$].offset>"u"){for(H<$&&(H=$);typeof Z[H].offset>"u";)H++;Z[$].offset=(Z[H].offset-Z[W].offset)/(H-W)*($-W)+Z[W].offset}else W=$;return X==="mask"?Z.map(($)=>{let z=N8($.color);return z?z.alpha===0?{...$,color:"rgba(0, 0, 0, 1)"}:{...$,color:`rgba(255, 255, 255, ${z.alpha})`}:$}):Z}function ez({id:J,width:K,height:w,repeatX:Y,repeatY:X},Z,Q,W,H,$){let z=t7(Z),[U,A]=Q,V=Z.startsWith("repeating"),O,B,M;if(z.orientation.type==="directional")O=KU(z.orientation.value),B=Math.sqrt(Math.pow((O.x2-O.x1)*U,2)+Math.pow((O.y2-O.y1)*A,2));else if(z.orientation.type==="angular"){let{length:F,...j}=wU(sK(`${z.orientation.value.value}${z.orientation.value.unit}`)/180*Math.PI,U,A);B=F,O=j}M=V?YU(z.stops,B,O,H):O;let q=$w(V?JU(z.stops,B):B,z.stops,H,V,$),N=`satori_bi${J}`,E=`satori_pattern_${J}`,_=a("pattern",{id:E,x:W[0]/K,y:W[1]/w,width:Y?U/K:"1",height:X?A/w:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:N,...M,spreadMethod:V?"repeat":"pad"},q.map((F)=>a("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+a("rect",{x:0,y:0,width:U,height:A,fill:`url(#${N})`}));return[E,_]}function JU(J,K){let w=J[J.length-1],{offset:Y}=w;return Y?Y.unit==="%"?Number(Y.value)/100*K:Number(Y.value):K}function KU(J){let K=0,w=0,Y=0,X=0;return J.includes("top")?w=1:J.includes("bottom")&&(X=1),J.includes("left")?K=1:J.includes("right")&&(Y=1),!K&&!Y&&!w&&!X&&(w=1),{x1:K,y1:w,x2:Y,y2:X}}function wU(J,K,w){let Y=Math.pow(w/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let X,Z,Q,W,H,$,z,U,A=(V)=>{if(V===0){X=0,Z=w,Q=0,W=0,H=w;return}else if(V===Math.PI/2){X=0,Z=0,Q=K,W=0,H=K;return}if(V>0&&V<Math.PI/2){X=(Y*K/2/Math.tan(V)-w/2)/(Math.tan(V)+Y/Math.tan(V)),Z=Math.tan(V)*X+w,Q=Math.abs(K/2-X)+K/2,W=w/2-Math.abs(Z-w/2),H=Math.sqrt(Math.pow(Q-X,2)+Math.pow(W-Z,2)),z=(K/2/Math.tan(V)-w/2)/(Math.tan(V)+1/Math.tan(V)),U=Math.tan(V)*z+w,H=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(w/2-U,2));return}else if(V>Math.PI/2&&V<Math.PI){X=(w/2+Y*K/2/Math.tan(V))/(Math.tan(V)+Y/Math.tan(V)),Z=Math.tan(V)*X,Q=Math.abs(K/2-X)+K/2,W=w/2+Math.abs(Z-w/2),z=(K/2/Math.tan(V)+w/2)/(Math.tan(V)+1/Math.tan(V)),U=Math.tan(V)*z,H=2*Math.sqrt(Math.pow(K/2-z,2)+Math.pow(w/2-U,2));return}else V>=Math.PI&&(A(V-Math.PI),$=X,X=Q,Q=$,$=Z,Z=W,W=$)};return A(J),{x1:X/K,y1:Z/w,x2:Q/K,y2:W/w,length:H}}function YU(J,K,w,Y){let{x1:X,x2:Z,y1:Q,y2:W}=w,H=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,Y.fontSize,K,Y,!0)/K:0,$=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,Y.fontSize,K,Y,!0)/K:1,z=(Z-X)*H+X,U=(W-Q)*H+Q,A=(Z-X)*$+X,V=(W-Q)*$+Q;return{x1:z,y1:U,x2:A,y2:V}}function XU({id:J,width:K,height:w,repeatX:Y,repeatY:X},Z,Q,W,H,$){var z;let{shape:U,stops:A,position:V,size:O}=e7(Z),[B,M]=Q,q=B/2,N=M/2,E=ZU(V.x,V.y,B,M,H.fontSize,H);q=E.x,N=E.y;let _=$w(K,A,H,!1,$),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,T=`satori_mask_${J}`,D=QU(U,O,H.fontSize,{x:q,y:N},[B,M],H),C=a("pattern",{id:j,x:W[0]/K,y:W[1]/w,width:Y?B/K:"1",height:X?M/w:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:F},_.map((k)=>a("stop",{offset:k.offset||0,"stop-color":k.color})).join(""))+a("mask",{id:T},a("rect",{x:0,y:0,width:B,height:M,fill:"#fff"}))+a("rect",{x:0,y:0,width:B,height:M,fill:((z=_.at(-1))==null?void 0:z.color)||"transparent"})+a(U,{cx:q,cy:N,width:B,height:M,...D,fill:`url(#${F})`,mask:`url(#${T})`}));return[j,C]}function ZU(J,K,w,Y,X,Z){let Q={x:w/2,y:Y/2};return J.type==="keyword"?Object.assign(Q,ZK(J.value,w,Y,"x")):Q.x=U0(`${J.value.value}${J.value.unit}`,X,w,Z,!0)||w/2,K.type==="keyword"?Object.assign(Q,ZK(K.value,w,Y,"y")):Q.y=U0(`${K.value.value}${K.value.unit}`,X,Y,Z,!0)||Y/2,Q}function ZK(J,K,w,Y){switch(J){case"center":return{[Y]:Y==="x"?K/2:w/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:w}}}function QU(J,K,w,Y,X,Z){let[Q,W]=X,{x:H,y:$}=Y,z={},U=0,A=0;if(HU(K)){if(K.some((V)=>V.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(U0(`${K[0].value.value}${K[0].value.unit}`,w,Q,Z,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,w,Q,Z,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,w,W,Z,!0))}}switch(K[0].value){case"farthest-corner":U=Math.max(Math.abs(Q-H),Math.abs(H)),A=Math.max(Math.abs(W-$),Math.abs($));break;case"closest-corner":U=Math.min(Math.abs(Q-H),Math.abs(H)),A=Math.min(Math.abs(W-$),Math.abs($));break;case"farthest-side":return J==="circle"?z.r=Math.max(Math.abs(Q-H),Math.abs(H),Math.abs(W-$),Math.abs($)):(z.rx=Math.max(Math.abs(Q-H),Math.abs(H)),z.ry=Math.max(Math.abs(W-$),Math.abs($))),z;case"closest-side":return J==="circle"?z.r=Math.min(Math.abs(Q-H),Math.abs(H),Math.abs(W-$),Math.abs($)):(z.rx=Math.min(Math.abs(Q-H),Math.abs(H)),z.ry=Math.min(Math.abs(W-$),Math.abs($))),z}if(J==="circle")z.r=Math.sqrt(U*U+A*A);else{let V=A!==0?U/A:1;U===0?(z.rx=0,z.ry=0):(z.ry=Math.sqrt(U*U+A*A*V*V)/V,z.rx=z.ry*V)}return z}function HU(J){return!J.some((K)=>K.type==="keyword")}function WU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function N4(J,{x:K,y:w,defaultX:Y,defaultY:X}){return(J?J.split(" ").map((Z)=>{try{let Q=new e5(Z);return Q.type==="length"||Q.type==="number"?Q.value:Q.value+Q.unit}catch{return null}}).filter((Z)=>Z!==null):[Y,X]).map((Z,Q)=>WU(Z,[K,w][Q]))}async function zw({id:J,width:K,height:w,left:Y,top:X},{image:Z,size:Q,position:W,repeat:H},$,z){H=H||"repeat",z=z||"background";let U=H==="repeat-x"||H==="repeat",A=H==="repeat-y"||H==="repeat",V=N4(Q,{x:K,y:w,defaultX:K,defaultY:w}),O=N4(W,{x:K,y:w,defaultX:0,defaultY:0});if(Z.startsWith("linear-gradient(")||Z.startsWith("repeating-linear-gradient("))return ez({id:J,width:K,height:w,repeatX:U,repeatY:A},Z,V,O,$,z);if(Z.startsWith("radial-gradient("))return XU({id:J,width:K,height:w,repeatX:U,repeatY:A},Z,V,O,$,z);if(Z.startsWith("url(")){let B=N4(Q,{x:K,y:w,defaultX:0,defaultY:0}),[M,q,N]=await c4(Z.slice(4,-1)),E=z==="mask"?q||B[0]:B[0]||q,_=z==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:O[0]+Y,y:O[1]+X,width:U?E:"100%",height:A?_:"100%"},a("image",{x:0,y:0,width:E,height:_,preserveAspectRatio:"none",href:M}))]}throw Error(`Invalid background image: "${Z}"`)}function $U([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function y8(J,K,w){return w<J+K&&(w/2<J&&w/2<K?J=K=w/2:w/2<J?J=w-K:w/2<K&&(K=w-J)),[J,K]}function h8(J){J[0]=J[1]=Math.min(J[0],J[1])}function k8(J,K,w,Y,X){if(typeof J=="string"){let Z=J.split(" ").map((W)=>W.trim()),Q=!Z[1]&&!Z[0].endsWith("%");return Z[1]=Z[1]||Z[0],[Q,[Math.min(U0(Z[0],Y,K,X,!0),K),Math.min(U0(Z[1],Y,w,X,!0),w)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,w)]]:[!0,void 0]}var g8=(J)=>J&&J[0]!==0&&J[1]!==0;function zU({id:J,borderRadiusPath:K,borderType:w,left:Y,top:X,width:Z,height:Q},W){let H=`satori_brc-${J}`;return[a("clipPath",{id:H},a(w,{x:Y,y:X,width:Z,height:Q,d:K||void 0})),H]}function r8({left:J,top:K,width:w,height:Y},X,Z){let{borderTopLeftRadius:Q,borderTopRightRadius:W,borderBottomLeftRadius:H,borderBottomRightRadius:$,fontSize:z}=X,U,A,V,O;if([U,Q]=k8(Q,w,Y,z,X),[A,W]=k8(W,w,Y,z,X),[V,H]=k8(H,w,Y,z,X),[O,$]=k8($,w,Y,z,X),!Z&&!g8(Q)&&!g8(W)&&!g8(H)&&!g8($))return"";Q||=[0,0],W||=[0,0],H||=[0,0],$||=[0,0],[Q[0],W[0]]=y8(Q[0],W[0],w),[H[0],$[0]]=y8(H[0],$[0],w),[Q[1],H[1]]=y8(Q[1],H[1],Y),[W[1],$[1]]=y8(W[1],$[1],Y),U&&h8(Q),A&&h8(W),V&&h8(H),O&&h8($);let B=[];B[0]=[W,W],B[1]=[$,[-$[0],$[1]]],B[2]=[H,[-H[0],-H[1]]],B[3]=[Q,[Q[0],-Q[1]]];let M=`h${w-Q[0]-W[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,q=`v${Y-W[1]-$[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${$[0]+H[0]-w} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${H[1]+Q[1]-Y} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Z){let _=function(u){let p=$U([Q,W,$,H][u]);return u===0?[[J+Q[0]-p,K+Q[1]-p],[J+Q[0],K]]:u===1?[[J+w-W[0]+p,K+W[1]-p],[J+w,K+W[1]]]:u===2?[[J+w-$[0]+p,K+Y-$[1]+p],[J+w-$[0],K+Y]]:[[J+H[0]-p,K+Y-H[1]+p],[J,K+Y-H[1]]]},F=Z.indexOf(!1);if(!Z.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Z[F];)F=(F+1)%4;let j="",T=_(F),D=`M${T[0]} A${B[(F+3)%4][0]} 0 0 1 ${T[1]}`,C=0;for(;C<4&&Z[(F+C)%4];C++)j+=D+" ",D=[M,q,N,E][(F+C)%4];let k=(F+C)%4;j+=D.split(" ")[0];let c=_(k);return j+=` A${B[(k+3)%4][0]} 0 0 1 ${c[0]}`,j}return`M${J+Q[0]},${K} ${M} ${q} ${N} ${E}`}function QK(J,K,w){return w[J+"Width"]===w[K+"Width"]&&w[J+"Style"]===w[K+"Style"]&&w[J+"Color"]===w[K+"Color"]}function UU({id:J,currentClipPathId:K,borderPath:w,borderType:Y,left:X,top:Z,width:Q,height:W},H){if(!(H.borderTopWidth||H.borderRightWidth||H.borderBottomWidth||H.borderLeftWidth))return null;let $=`satori_bc-${J}`;return[a("clipPath",{id:$,"clip-path":K?`url(#${K})`:void 0},a(Y,{x:X,y:Z,width:Q,height:W,d:w||void 0})),$]}function Uw({left:J,top:K,width:w,height:Y,props:X,asContentMask:Z,maskBorderOnly:Q},W){let H=["borderTop","borderRight","borderBottom","borderLeft"];if(!Z&&!H.some((V)=>W[V+"Width"]))return"";let $="",z=0;for(;z>0&&QK(H[z],H[(z+3)%4],W);)z=(z+3)%4;let U=[!1,!1,!1,!1],A=[];for(let V=0;V<4;V++){let O=(z+V)%4,B=(z+V+1)%4,M=H[O],q=H[B];if(U[O]=!0,A=[W[M+"Width"],W[M+"Style"],W[M+"Color"],M],!QK(M,q,W)){let N=(A[0]||0)+(Z&&!Q&&W[M.replace("border","padding")]||0);N&&($+=a("path",{width:w,height:Y,...X,fill:"none",stroke:Z?"#000":A[2],"stroke-width":N*2,"stroke-dasharray":!Z&&A[1]==="dashed"?N*2+" "+N:void 0,d:r8({left:J,top:K,width:w,height:Y},W,U)})),U=[!1,!1,!1,!1]}}if(U.some(Boolean)){let V=(A[0]||0)+(Z&&!Q&&W[A[3].replace("border","padding")]||0);V&&($+=a("path",{width:w,height:Y,...X,fill:"none",stroke:Z?"#000":A[2],"stroke-width":V*2,"stroke-dasharray":!Z&&A[1]==="dashed"?V*2+" "+V:void 0,d:r8({left:J,top:K,width:w,height:Y},W,U)}))}return $}function AU({id:J,left:K,top:w,width:Y,height:X,matrix:Z,borderOnly:Q},W){let H=(W.borderLeftWidth||0)+(Q?0:W.paddingLeft||0),$=(W.borderTopWidth||0)+(Q?0:W.paddingTop||0),z=(W.borderRightWidth||0)+(Q?0:W.paddingRight||0),U=(W.borderBottomWidth||0)+(Q?0:W.paddingBottom||0),A={x:K+H,y:w+$,width:Y-H-z,height:X-$-U};return a("mask",{id:J},a("rect",{...A,fill:"#fff",transform:W.overflow==="hidden"&&W.transform&&Z?Z:void 0,mask:W._inheritedMaskId?`url(#${W._inheritedMaskId})`:void 0})+Uw({left:K,top:w,width:Y,height:X,props:{transform:Z||void 0},asContentMask:!0,maskBorderOnly:Q},W))}var r5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function VU({width:J,height:K},w,Y){function X($){let z=$.match(r5.circle);if(!z)return null;let[,U]=z,[A,V=""]=U.split("at").map((M)=>M.trim()),{x:O,y:B}=WK(V,J,K);return{type:"circle",r:U0(A,Y.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),Y,!0),cx:U0(O,Y.fontSize,J,Y,!0),cy:U0(B,Y.fontSize,K,Y,!0)}}function Z($){let z=$.match(r5.ellipse);if(!z)return null;let[,U]=z,[A,V=""]=U.split("at").map((N)=>N.trim()),[O,B]=A.split(" "),{x:M,y:q}=WK(V,J,K);return{type:"ellipse",rx:U0(O||"50%",Y.fontSize,J,Y,!0),ry:U0(B||"50%",Y.fontSize,K,Y,!0),cx:U0(M,Y.fontSize,J,Y,!0),cy:U0(q,Y.fontSize,K,Y,!0)}}function Q($){let z=$.match(r5.path);if(!z)return null;let[U,A]=HK(z[1]);return{type:"path",d:A,"fill-rule":U}}function W($){let z=$.match(r5.polygon);if(!z)return null;let[U,A]=HK(z[1]);return{type:"polygon","fill-rule":U,points:A.split(",").map((V)=>V.split(" ").map((O,B)=>U0(O,Y.fontSize,B===0?J:K,Y,!0)).join(" ")).join(",")}}function H($){let z=$.match(r5.inset);if(!z)return null;let[U,A]=(z[1].includes("round")?z[1]:`${z[1].trim()} round 0`).split("round"),V=P4.getStylesForProperty("borderRadius",A,!0),O=Object.values(V).map((_)=>String(_)).map((_,F)=>U0(_,Y.fontSize,F===0||F===2?K:J,Y,!0)||0),B=Object.values(P4.getStylesForProperty("margin",U,!0)).map((_)=>String(_)).map((_,F)=>U0(_,Y.fontSize,F===0||F===2?K:J,Y,!0)||0),M=B[3],q=B[0],N=J-(B[1]+B[3]),E=K-(B[0]+B[2]);return O.some((_)=>_>0)?{type:"path",d:r8({left:M,top:q,width:N,height:E},{...w,...V})}:{type:"rect",x:M,y:q,width:N,height:E}}return{parseCircle:X,parseEllipse:Z,parsePath:Q,parsePolygon:W,parseInset:H}}function HK(J){let[,K="nonzero",w]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,w]}function WK(J,K,w){let Y=J.split(" "),X={x:Y[0]||"50%",y:Y[1]||"50%"};return Y.forEach((Z)=>{Z==="top"?X.y=0:Z==="bottom"?X.y=w:Z==="left"?X.x=0:Z==="right"?X.x=K:Z==="center"&&(X.x=K/2,X.y=w/2)}),X}function p4(J){return`satori_cp-${J}`}function BU(J){return`url(#${p4(J)})`}function GU(J,K,w){if(K.clipPath==="none")return"";let Y=VU(J,K,w),X=K.clipPath,Z={type:""};for(let Q of Object.keys(Y))if(Z=Y[Q](X),Z)break;if(Z){let{type:Q,...W}=Z;return a("clipPath",{id:p4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(Q,W))}return""}function MU({left:J,top:K,width:w,height:Y,path:X,matrix:Z,id:Q,currentClipPath:W,src:H},$,z){let U="",A=$.clipPath&&$.clipPath!=="none"?GU({left:J,top:K,width:w,height:Y,path:X,id:Q,matrix:Z,currentClipPath:W,src:H},$,z):"";if($.overflow!=="hidden"&&!H)U="";else{let O=A?`satori_ocp-${Q}`:p4(Q);U=a("clipPath",{id:O,"clip-path":W},a(X?"path":"rect",{x:J,y:K,width:w,height:Y,d:X||void 0,transform:$.overflow==="hidden"&&$.transform&&Z?Z:void 0}))}let V=AU({id:`satori_om-${Q}`,left:J,top:K,width:w,height:Y,matrix:Z,borderOnly:!H},$);return A+U+V}var OU=(J)=>`satori_mi-${J}`;async function LU(J,K,w){if(!K.maskImage)return["",""];let{left:Y,top:X,width:Z,height:Q,id:W}=J,H=K.maskImage,$=H.length;if(!$)return["",""];let z=OU(W),U="";for(let A=0;A<$;A++){let V=H[A],[O,B]=await zw({id:`${z}-${A}`,left:Y,top:X,width:Z,height:Q},V,w,"mask");U+=B+a("rect",{x:Y,y:X,width:Z,height:Q,fill:`url(#${O})`})}return U=a("mask",{id:z},U),[z,U]}async function j4({id:J,left:K,top:w,width:Y,height:X,isInheritingTransform:Z,src:Q,debug:W},H,$){if(H.display==="none")return"";let z=!!Q,U="rect",A="",V="",O=[],B=1,M="";H.backgroundColor&&O.push(H.backgroundColor),H.opacity!==void 0&&(B=+H.opacity),H.transform&&(A=Hw({left:K,top:w,width:Y,height:X},H.transform,Z,H.transformOrigin));let q="";if(H.backgroundImage){let S=[];for(let I=0;I<H.backgroundImage.length;I++){let l=H.backgroundImage[I],f=await zw({id:J+"_"+I,width:Y,height:X,left:K,top:w},l,$);f&&S.unshift(f)}for(let I of S)O.push(`url(#${I[0]})`),V+=I[1],I[2]&&(q+=I[2])}let[N,E]=await LU({id:J,left:K,top:w,width:Y,height:X},H,$);V+=E;let _=N?`url(#${N})`:H._inheritedMaskId?`url(#${H._inheritedMaskId})`:void 0,F=r8({left:K,top:w,width:Y,height:X},H);F&&(U="path");let j=H._inheritedClipPathId;W&&(M=a("rect",{x:K,y:w,width:Y,height:X,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:A||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:T,filter:D}=H,C=T==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:H.clipPath?BU(J):void 0,k=MU({left:K,top:w,width:Y,height:X,path:F,id:J,matrix:A,currentClipPath:C,src:Q},H,$),c=O.map((S)=>a(U,{x:K,y:w,width:Y,height:X,fill:S,d:F||void 0,transform:A||void 0,"clip-path":H.transform?void 0:C,style:D?`filter:${D}`:void 0,mask:H.transform?void 0:_})).join(""),u=UU({id:J,left:K,top:w,width:Y,height:X,currentClipPathId:j,borderPath:F,borderType:U},H),p;if(z){let S=(H.borderLeftWidth||0)+(H.paddingLeft||0),I=(H.borderTopWidth||0)+(H.paddingTop||0),l=(H.borderRightWidth||0)+(H.paddingRight||0),f=(H.borderBottomWidth||0)+(H.paddingBottom||0),o=H.objectFit==="contain"?"xMidYMid":H.objectFit==="cover"?"xMidYMid slice":"none";H.transform&&(p=zU({id:J,borderRadiusPath:F,borderType:U,left:K,top:w,width:Y,height:X},H)),c+=a("image",{x:K+S,y:w+I,width:Y-S-l,height:X-I-f,href:Q,preserveAspectRatio:o,transform:A||void 0,style:D?`filter:${D}`:void 0,"clip-path":H.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:H.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(u){V+=u[0];let S=u[1];c+=Uw({left:K,top:w,width:Y,height:X,props:{transform:A||void 0,"clip-path":`url(#${S})`}},H)}let P=fz({width:Y,height:X,id:J,opacity:B,shape:a(U,{x:K,y:w,width:Y,height:X,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:A||void 0,"clip-path":C,mask:_})},H);return(V?a("defs",{},V):"")+(P?P[0]:"")+(p?p[0]:"")+k+(B!==1?`<g opacity="${B}">`:"")+(H.transform&&(C||_)?`<g${C?` clip-path="${C}"`:""}${_?` mask="${_}"`:""}>`:"")+(q||c)+(H.transform&&(C||_)?"</g>":"")+(B!==1?"</g>":"")+(P?P[1]:"")+M}var qU=()=>/[#*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,NU=new RegExp(qU(),""),S4={emoji:NU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},v4={"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},i4=Object.keys({...v4,...S4});function jU(J){return i4.includes(J)}function EU(J,K){for(let Y of Object.keys(S4))if(S4[Y].test(J))return[Y];let w=Object.keys(v4).filter((Y)=>v4[Y].test(J));if(w.length===0)return["unknown"];if(K){let Y=w.findIndex((X)=>X===K);Y!==-1&&(w.splice(Y,1),w.unshift(K))}return w}function FU(J){if(J)return i4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*y4(J,K){var w;let Y=await a8(),{id:X,inheritedStyle:Z,parent:Q,font:W,debug:H,locale:$,embedFont:z=!0,graphemeImages:U,canLoadAdditionalAssets:A,getTwStyles:V}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!d8(J)||typeof J.type=="function"){let h;if(!d8(J))h=sz(String(J),K),yield(await h.next()).value;else{if(e$(J.type))throw Error("Class component is not supported.");h=y4(J.type(J.props),K),yield(await h.next()).value}await h.next();let s=yield;return(await h.next(s)).value}let{type:O,props:B}=J;if(B&&Jz(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:M,children:q,tw:N,lang:E=$}=B||{},_=FU(E);if(N){let h=V(N,M);M=Object.assign(h,M)}let F=Y.Node.create();Q.insertChild(F,Q.getChildCount());let[j,T]=await yz(F,O,Z,M,B),D=j.transform===Z.transform;if(D||(j.transform.__parent=Z.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${X}`,T._inheritedMaskId=`satori_om-${X}`),j.maskImage&&(T._inheritedMaskId=`satori_mi-${X}`),j.backgroundClip==="text"){let h={value:""};T._inheritedBackgroundClipTextPath=h,j._inheritedBackgroundClipTextPath=h}let C=Kz(q),k=[],c=0,u=[];for(let h of C){let s=y4(h,{id:X+"-"+c++,parentStyle:j,inheritedStyle:T,isInheritingTransform:!0,parent:F,font:W,embedFont:z,debug:H,graphemeImages:U,canLoadAdditionalAssets:A,locale:_,getTwStyles:V,onNodeDetected:K.onNodeDetected});A?u.push(...(await s.next()).value||[]):await s.next(),k.push(s)}yield u;for(let h of k)await h.next();let[p,P]=yield,{left:S,top:I,width:l,height:f}=F.getComputedLayout();S+=p,I+=P;let o="",i="",m="",{children:d,...y}=B;if((w=K.onNodeDetected)==null||w.call(K,{left:S,top:I,width:l,height:f,type:O,props:y,key:J.key,textContent:d8(d)?void 0:d}),O==="img"){let h=j.__src;i=await j4({id:X,left:S,top:I,width:l,height:f,src:h,isInheritingTransform:D,debug:H},j,T)}else if(O==="svg"){let h=j.color,s=await Lz(J,h);i=await j4({id:X,left:S,top:I,width:l,height:f,src:s,isInheritingTransform:D,debug:H},j,T)}else{let h=M==null?void 0:M.display;if(O==="div"&&q&&typeof q!="string"&&h!=="flex"&&h!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');i=await j4({id:X,left:S,top:I,width:l,height:f,isInheritingTransform:D,debug:H},j,T)}for(let h of k)o+=(await h.next([S,I])).value;return j._inheritedBackgroundClipTextPath&&(m+=a("clipPath",{id:`satori_bct-${X}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+i+o}var Aw="unknown";function RU(J,K,[w,Y],[X,Z]){if(w!==X)return w?!X||w===J?-1:X===J?1:J===400&&w===500||J===500&&w===400?-1:J===400&&X===500||J===500&&X===400?1:J<400?w<J&&X<J?X-w:w<J?-1:X<J?1:w-X:J<w&&J<X?w-X:J<w?-1:J<X?1:X-w:1;if(Y!==Z){if(Y===K)return-1;if(Z===K)return 1}return-1}var _U=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:w}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let Y=[...this.fonts.get(J)],X=Y[0];for(let Z=1;Z<Y.length;Z++){let[,Q,W]=X,[,H,$]=Y[Z];RU(K,w,[Q,W],[H,$])>0&&(X=Y[Z])}return X[0]}addFonts(J){for(let K of J){let{name:w,data:Y,lang:X}=K;if(X&&!jU(X))throw Error(`Invalid value for props \`lang\`: "${X}". The value must be one of the following: ${i4.join(", ")}.`);let Z=X??Aw,Q=C8.parse("buffer"in Y?Y.buffer.slice(Y.byteOffset,Y.byteOffset+Y.byteLength):Y,{lowMemory:!0}),W=Q.charToGlyphIndex;Q.charToGlyphIndex=($)=>{let z=W.call(Q,$);return z===0&&Q._trackBrokenChars&&Q._trackBrokenChars.push($),z},this.defaultFont||(this.defaultFont=Q);let H=`${w.toLowerCase()}_${Z}`;this.fonts.has(H)||this.fonts.set(H,[]),this.fonts.get(H).push([Q,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:w="sans-serif",fontWeight:Y=400,fontStyle:X="normal"},Z){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");w=(Array.isArray(w)?w:[w]).map((q)=>q.toLowerCase());let Q=[];w.forEach((q)=>{let N=this.get({name:q,weight:Y,style:X});if(N){Q.push(N);return}let E=this.get({name:q+"_unknown",weight:Y,style:X});if(E){Q.push(E);return}});let W=Array.from(this.fonts.keys()),H=[],$=[],z=[];for(let q of W)if(!w.includes(q))if(Z){let N=DU(q);N?N===Z?H.push(this.get({name:q,weight:Y,style:X})):$.push(this.get({name:q,weight:Y,style:X})):z.push(this.get({name:q,weight:Y,style:X}))}else z.push(this.get({name:q,weight:Y,style:X}));let U=new Map,A=(q,N=!0)=>{let E=[...Q,...z,...H,...N?$:[]];if(typeof q>"u")return N?E[E.length-1]:void 0;let _=q.charCodeAt(0);if(U.has(_))return U.get(_);let F=E.find((j,T)=>!!j.charToGlyphIndex(q)||N&&T===E.length-1);return F&&U.set(_,F),F},V=(q,N=!1)=>{var E,_;return((N?(_=(E=q.tables)==null?void 0:E.os2)==null?void 0:_.sTypoAscender:0)||q.ascender)/q.unitsPerEm*J},O=(q,N=!1)=>{var E,_;return((N?(_=(E=q.tables)==null?void 0:E.os2)==null?void 0:_.sTypoDescender:0)||q.descender)/q.unitsPerEm*J},B=(q,N=!1)=>{var E,_;if(typeof K=="string"&&K==="normal"){let F=(N?(_=(E=q.tables)==null?void 0:E.os2)==null?void 0:_.sTypoLineGap:0)||0;return V(q,N)-O(q,N)+F/q.unitsPerEm*J}else if(typeof K=="number")return J*K},M=(q)=>A(q,!1);return{has:(q)=>{if(q===`
66
- `)return!0;let N=M(q);return N?(N._trackBrokenChars=[],N.stringToGlyphs(q),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(q,N=typeof q>"u"?Q[0]:A(q))=>{let E=V(N),_=O(N),F=E-_;return E+(B(N)-F)/2},height:(q,N=typeof q>"u"?Q[0]:A(q))=>B(N),measure:(q,N)=>this.measure(A,q,N),getSVG:(q,N)=>this.getSVG(A,q,N)}}patchFontFallbackResolver(J,K){let w=[];J._trackBrokenChars=w;let Y=J.stringToGlyphs;return J.stringToGlyphs=(X,...Z)=>{let Q=Y.call(J,X,...Z);for(let W=0;W<Q.length;W++)if(Q[W].unicode===void 0){let H=w.shift(),$=K(H);if($!==J){let z=$.charToGlyph(H),U=J.unitsPerEm/$.unitsPerEm,A=new C8.Path;A.unitsPerEm=J.unitsPerEm,A.commands=z.path.commands.map((O)=>{let B={...O};for(let M in B)typeof B[M]=="number"&&(B[M]*=U);return B});let V=new C8.Glyph({...z,advanceWidth:z.advanceWidth*U,xMin:z.xMin*U,xMax:z.xMax*U,yMin:z.yMin*U,yMax:z.yMax*U,path:A});Q[W]=V}}return Q},()=>{J.stringToGlyphs=Y,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:w,letterSpacing:Y=0}){let X=J(K),Z=this.patchFontFallbackResolver(X,J);try{return X.getAdvanceWidth(K,w,{letterSpacing:Y/w})}finally{Z()}}getSVG(J,K,{fontSize:w,top:Y,left:X,letterSpacing:Z=0}){let Q=J(K),W=this.patchFontFallbackResolver(Q,J);try{return w===0?"":Q.getPath(K.replace(/\n/g,""),X,Y,w,{letterSpacing:Z/w}).toPathData(1)}finally{W()}}};function DU(J){let K=J.split("_"),w=K[K.length-1];return w===Aw?void 0:w}function IU({width:J,height:K,content:w}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},w)}var TU=Z$(d$()),CU=["ios","android","windows","macos","web"];function PU(J){return CU.includes(J)}var SU=["portrait","landscape"];function vU(J){return SU.includes(J)}var $K;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})($K||($K={}));var L0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(L0||(L0={}));function zK(J){return typeof J=="string"}function UK(J){return typeof J=="object"}var E4;function x(J){return{kind:"complete",style:J}}function Y1(J,K={}){let{fractions:w}=K;if(w&&J.includes("/")){let[Z="",Q=""]=J.split("/",2),W=Y1(Z),H=Y1(Q);return!W||!H?null:[W[0]/H[0],H[1]]}let Y=parseFloat(J);if(Number.isNaN(Y))return null;let X=J.match(/(([a-z]{2,}|%))$/);if(!X)return[Y,L0.none];switch(X==null?void 0:X[1]){case"rem":return[Y,L0.rem];case"px":return[Y,L0.px];case"em":return[Y,L0.em];case"%":return[Y,L0.percent];case"vw":return[Y,L0.vw];case"vh":return[Y,L0.vh];default:return null}}function J8(J,K,w={}){let Y=H5(K,w);return Y===null?null:x({[J]:Y})}function F4(J,K,w){let Y=H5(K);return Y!==null&&(w[J]=Y),w}function yU(J,K){let w=H5(K);return w===null?null:{[J]:w}}function H5(J,K={}){if(J===void 0)return null;let w=Y1(String(J),K);return w?K8(...w,K):null}function K8(J,K,w={}){let{isNegative:Y,device:X}=w;switch(K){case L0.rem:return J*16*(Y?-1:1);case L0.px:return J*(Y?-1:1);case L0.percent:return`${Y?"-":""}${J}%`;case L0.none:return J*(Y?-1:1);case L0.vw:return X!=null&&X.windowDimensions?X.windowDimensions.width*(J/100):(v1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case L0.vh:return X!=null&&X.windowDimensions?X.windowDimensions.height*(J/100):(v1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function AK(J){let K=Y1(J);if(!K)return null;let[w,Y]=K;switch(Y){case L0.rem:return w*16;case L0.px:return w;default:return null}}var hU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function Vw(J){return hU[J??""]||"All"}function Bw(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(w,Y)=>(K=Vw(Y),"")),K]}function w6(J,K={}){if(J.includes("/")){let w=VK(J,{...K,fractions:!0});if(w)return w}return J[0]==="["&&(J=J.slice(1,-1)),VK(J,K)}function W5(J,K,w={}){let Y=w6(K,w);return Y===null?null:x({[J]:Y})}function VK(J,K={}){if(J==="px")return 1;let w=Y1(J,K);if(!w)return null;let[Y,X]=w;return K.fractions&&(X=L0.percent,Y*=100),X===L0.none&&(Y=Y/4,X=L0.rem),K8(Y,X,K)}function kU(...J){console.warn(...J)}function gU(...J){}var v1=typeof process>"u"||((E4=process==null?void 0:process.env)===null||E4===void 0?void 0:E4.JEST_WORKER_ID)===void 0?kU:gU,xU=[["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",n5("oldstyle-nums")],["small-caps",n5("small-caps")],["lining-nums",n5("lining-nums")],["tabular-nums",n5("tabular-nums")],["proportional-nums",n5("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})]],BK=xU;function n5(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var bU=class{constructor(J){this.ir=new Map(BK),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...BK,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function fU(J,K,w={}){let Y=K==null?void 0:K[J];if(!Y)return W5("fontSize",J,w);if(typeof Y=="string")return J8("fontSize",Y);let X={},[Z,Q]=Y,W=yU("fontSize",Z);if(W&&(X=W),typeof Q=="string")return x(F4("lineHeight",GK(Q,X),X));let{lineHeight:H,letterSpacing:$}=Q;return H&&F4("lineHeight",GK(H,X),X),$&&F4("letterSpacing",$,X),x(X)}function GK(J,K){let w=Y1(J);if(w){let[Y,X]=w;if((X===L0.none||X===L0.em)&&typeof K.fontSize=="number")return K.fontSize*Y}return J}function mU(J,K){var w;let Y=(w=K==null?void 0:K[J])!==null&&w!==void 0?w:J.startsWith("[")?J.slice(1,-1):J,X=Y1(Y);if(!X)return null;let[Z,Q]=X;if(Q===L0.none)return{kind:"dependent",complete(H){if(typeof H.fontSize!="number")return"relative line-height utilities require that font-size be set";H.lineHeight=H.fontSize*Z}};let W=K8(Z,Q);return W!==null?x({lineHeight:W}):null}function dU(J,K,w,Y,X){let Z="";if(Y[0]==="[")Z=Y.slice(1,-1);else{let $=X==null?void 0:X[Y];if($)Z=$;else{let z=w6(Y);return z&&typeof z=="number"?MK(z,L0.px,K,J):null}}if(Z==="auto")return Gw(K,J,"auto");let Q=Y1(Z);if(!Q)return null;let[W,H]=Q;return w&&(W=-W),MK(W,H,K,J)}function MK(J,K,w,Y){let X=K8(J,K);return X===null?null:Gw(w,Y,X)}function Gw(J,K,w){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:w,[`${K}Right`]:w,[`${K}Bottom`]:w,[`${K}Left`]:w}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:w}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:w,[`${K}Bottom`]:w}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:w,[`${K}Right`]:w}};default:return null}}function lU(J){if(!J)return{};let K=Object.entries(J).reduce((X,[Z,Q])=>{let W=[0,1/0,0],H=typeof Q=="string"?{min:Q}:Q,$=H.min?AK(H.min):0;$===null?v1(`invalid screen config value: ${Z}->min: ${H.min}`):W[0]=$;let z=H.max?AK(H.max):1/0;return z===null?v1(`invalid screen config value: ${Z}->max: ${H.max}`):W[1]=z,X[Z]=W,X},{}),w=Object.values(K);w.sort((X,Z)=>{let[Q,W]=X,[H,$]=Z;return W===1/0||$===1/0?Q-H:W-$});let Y=0;return w.forEach((X)=>X[2]=Y++),K}function cU(J,K){let w=K==null?void 0:K[J];if(!w)return null;if(typeof w=="string")return x({fontFamily:w});let Y=w[0];return Y?x({fontFamily:Y}):null}function s5(J,K,w){if(!w)return null;let Y;K.includes("/")&&([K="",Y]=K.split("/",2));let X="";if(K.startsWith("[#")||K.startsWith("[rgb")?X=K.slice(1,-1):X=Mw(K,w),!X)return null;if(Y){let Z=Number(Y);if(!Number.isNaN(Z))return X=OK(X,Z/100),x({[p8[J].color]:X})}return{kind:"dependent",complete(Z){let Q=p8[J].opacity,W=Z[Q];typeof W=="number"&&(X=OK(X,W)),Z[p8[J].color]=X}}}function x8(J,K){let w=parseInt(K,10);if(Number.isNaN(w))return null;let Y=w/100;return{kind:"complete",style:{[p8[J].opacity]:Y}}}function OK(J,K){return J.startsWith("#")?J=pU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function uU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var p8={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 pU(J){let K=J;J=J.replace(iU,(Q,W,H,$)=>W+W+H+H+$+$);let w=rU.exec(J);if(!w)return v1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let Y=parseInt(w[1],16),X=parseInt(w[2],16),Z=parseInt(w[3],16);return`rgba(${Y}, ${X}, ${Z}, 1)`}function Mw(J,K){let w=K[J];if(zK(w))return w;if(UK(w)&&zK(w.DEFAULT))return w.DEFAULT;let[Y="",...X]=J.split("-");for(;Y!==J;){let Z=K[Y];if(UK(Z))return Mw(X.join("-"),Z);if(X.length===0)return"";Y=`${Y}-${X.shift()}`}return""}var iU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function nU(J,K){let[w,Y]=Bw(J);if(w.match(/^(-?(\d)+)?$/))return oU(w,Y,K==null?void 0:K.borderWidth);if(w=w.replace(/^-/,""),["dashed","solid","dotted"].includes(w))return x({borderStyle:w});let X="border";switch(Y){case"Bottom":X="borderBottom";break;case"Top":X="borderTop";break;case"Left":X="borderLeft";break;case"Right":X="borderRight";break}let Z=s5(X,w,K==null?void 0:K.borderColor);if(Z)return Z;let Q=`border${Y==="All"?"":Y}Width`;w=w.replace(/^-/,"");let W=w.slice(1,-1),H=W5(Q,W);return typeof(H==null?void 0:H.style[Q])!="number"?null:H}function oU(J,K,w){if(!w)return null;J=J.replace(/^-/,"");let Y=w[J===""?"DEFAULT":J];if(Y===void 0)return null;let X=`border${K==="All"?"":K}Width`;return J8(X,Y)}function sU(J,K){if(!K)return null;let[w,Y]=Bw(J);w=w.replace(/^-/,""),w===""&&(w="DEFAULT");let X=`border${Y==="All"?"":Y}Radius`,Z=K[w];if(Z)return LK(J8(X,Z));let Q=W5(X,w);return typeof(Q==null?void 0:Q.style[X])!="number"?null:LK(Q)}function LK(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let w=J.style.borderBottomRadius;w!==void 0&&(J.style.borderBottomLeftRadius=w,J.style.borderBottomRightRadius=w,delete J.style.borderBottomRadius);let Y=J.style.borderLeftRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderTopLeftRadius=Y,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 o5(J,K,w,Y){let X=null;J==="inset"&&(K=K.replace(/^(x|y)-/,(W,H)=>(X=H==="x"?"x":"y","")));let Z=Y==null?void 0:Y[K];if(Z){let W=H5(Z,{isNegative:w});if(W!==null)return qK(J,X,W)}let Q=w6(K,{isNegative:w});return Q!==null?qK(J,X,Q):null}function qK(J,K,w){if(J!=="inset")return x({[J]:w});switch(K){case null:return x({top:w,left:w,right:w,bottom:w});case"y":return x({top:w,bottom:w});case"x":return x({left:w,right:w})}}function b8(J,K,w){var Y;K=K.replace(/^-/,"");let X=K===""?"DEFAULT":K,Z=Number((Y=w==null?void 0:w[X])!==null&&Y!==void 0?Y:K);return Number.isNaN(Z)?null:x({[`flex${J}`]:Z})}function aU(J,K){var w,Y;if(J=(K==null?void 0:K[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 Z=H5((w=X[2])!==null&&w!==void 0?w:"");return Z?x({flexGrow:Number(X[1]),flexBasis:Z}):null}if(X=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),X){let Z=H5((Y=X[3])!==null&&Y!==void 0?Y:"");return Z?x({flexGrow:Number(X[1]),flexShrink:Number(X[2]),flexBasis:Z}):null}return null}function NK(J,K,w={},Y){let X=Y==null?void 0:Y[K];return X!==void 0?J8(J,X,w):W5(J,K,w)}function f8(J,K,w={},Y){let X=H5(Y==null?void 0:Y[K],w);return X?x({[J]:X}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),W5(J,K,w))}function tU(J,K,w){let Y=w==null?void 0:w[J];if(Y){let X=Y1(Y,{isNegative:K});if(!X)return null;let[Z,Q]=X;if(Q===L0.em)return eU(Z);if(Q===L0.percent)return v1("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 W=K8(Z,Q,{isNegative:K});return W!==null?x({letterSpacing:W}):null}return W5("letterSpacing",J,{isNegative:K})}function eU(J){return{kind:"dependent",complete(K){let w=K.fontSize;if(typeof w!="number"||Number.isNaN(w))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*w+Number.EPSILON)*100)/100}}}function JA(J,K){let w=K==null?void 0:K[J];if(w){let X=Y1(String(w));if(X)return x({opacity:X[0]})}let Y=Y1(J);return Y?x({opacity:Y[0]/100}):null}function KA(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function wA(J){if(J.includes("/")){let[w="",Y=""]=J.split("/",2),X=R4(w),Z=R4(Y);return X===null||Z===null?null:{kind:"complete",style:{shadowOffset:{width:X,height:Z}}}}let K=R4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function R4(J){let K=w6(J);return typeof K=="number"?K:null}var jK=class{constructor(J,K={},w,Y,X){var Z,Q,W,H,$,z;this.config=K,this.cache=w,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=Y;let U=J.trim().split(":"),A=[];U.length===1?this.string=J:(this.string=(Z=U.pop())!==null&&Z!==void 0?Z:"",A=U),this.char=this.string[0];let V=lU((Q=this.config.theme)===null||Q===void 0?void 0:Q.screens);for(let O of A)if(V[O]){let B=(W=V[O])===null||W===void 0?void 0:W[2];B!==void 0&&(this.order=((H=this.order)!==null&&H!==void 0?H:0)+B);let M=($=Y.windowDimensions)===null||$===void 0?void 0:$.width;if(M){let[q,N]=(z=V[O])!==null&&z!==void 0?z:[0,0];(M<=q||M>N)&&(this.isNull=!0)}else this.isNull=!0}else PU(O)?this.isNull=O!==X:vU(O)?Y.windowDimensions?(Y.windowDimensions.width>Y.windowDimensions.height?"landscape":"portrait")!==O?this.isNull=!0:this.incrementOrder():this.isNull=!0:O==="retina"?Y.pixelDensity===2?this.incrementOrder():this.isNull=!0:O==="dark"?Y.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 K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,w,Y,X;let Z=this.config.theme,Q=null;switch(this.char){case"m":case"p":{let W=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(W){let H=this.char==="m"?"margin":"padding";this.advance(((K=(J=W[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let $=Vw(W[1]),z=dU(H,$,this.isNegative,this.rest,(w=this.config.theme)===null||w===void 0?void 0:w[H]);if(z)return z}}}if(this.consumePeeked("h-")&&(Q=NK("height",this.rest,this.context,Z==null?void 0:Z.height),Q)||this.consumePeeked("w-")&&(Q=NK("width",this.rest,this.context,Z==null?void 0:Z.width),Q)||this.consumePeeked("min-w-")&&(Q=f8("minWidth",this.rest,this.context,Z==null?void 0:Z.minWidth),Q)||this.consumePeeked("min-h-")&&(Q=f8("minHeight",this.rest,this.context,Z==null?void 0:Z.minHeight),Q)||this.consumePeeked("max-w-")&&(Q=f8("maxWidth",this.rest,this.context,Z==null?void 0:Z.maxWidth),Q)||this.consumePeeked("max-h-")&&(Q=f8("maxHeight",this.rest,this.context,Z==null?void 0:Z.maxHeight),Q)||this.consumePeeked("leading-")&&(Q=mU(this.rest,Z==null?void 0:Z.lineHeight),Q)||this.consumePeeked("text-")&&(Q=fU(this.rest,Z==null?void 0:Z.fontSize,this.context),Q||(Q=s5("text",this.rest,Z==null?void 0:Z.textColor),Q)||this.consumePeeked("opacity-")&&(Q=x8("text",this.rest),Q))||this.consumePeeked("font-")&&(Q=cU(this.rest,Z==null?void 0:Z.fontFamily),Q)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&v1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),Q=J8("aspectRatio",this.rest,{fractions:!0}),Q)||this.consumePeeked("tint-")&&(Q=s5("tint",this.rest,Z==null?void 0:Z.colors),Q)||this.consumePeeked("bg-")&&(Q=s5("bg",this.rest,Z==null?void 0:Z.backgroundColor),Q||this.consumePeeked("opacity-")&&(Q=x8("bg",this.rest),Q))||this.consumePeeked("border")&&(Q=nU(this.rest,Z),Q||this.consumePeeked("-opacity-")&&(Q=x8("border",this.rest),Q))||this.consumePeeked("rounded")&&(Q=sU(this.rest,Z==null?void 0:Z.borderRadius),Q)||this.consumePeeked("bottom-")&&(Q=o5("bottom",this.rest,this.isNegative,Z==null?void 0:Z.inset),Q)||this.consumePeeked("top-")&&(Q=o5("top",this.rest,this.isNegative,Z==null?void 0:Z.inset),Q)||this.consumePeeked("left-")&&(Q=o5("left",this.rest,this.isNegative,Z==null?void 0:Z.inset),Q)||this.consumePeeked("right-")&&(Q=o5("right",this.rest,this.isNegative,Z==null?void 0:Z.inset),Q)||this.consumePeeked("inset-")&&(Q=o5("inset",this.rest,this.isNegative,Z==null?void 0:Z.inset),Q)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?Q=b8("Grow",this.rest,Z==null?void 0:Z.flexGrow):this.consumePeeked("shrink")?Q=b8("Shrink",this.rest,Z==null?void 0:Z.flexShrink):Q=aU(this.rest,Z==null?void 0:Z.flex),Q)||this.consumePeeked("grow")&&(Q=b8("Grow",this.rest,Z==null?void 0:Z.flexGrow),Q)||this.consumePeeked("shrink")&&(Q=b8("Shrink",this.rest,Z==null?void 0:Z.flexShrink),Q)||this.consumePeeked("shadow-color-opacity-")&&(Q=x8("shadow",this.rest),Q)||this.consumePeeked("shadow-opacity-")&&(Q=KA(this.rest),Q)||this.consumePeeked("shadow-offset-")&&(Q=wA(this.rest),Q)||this.consumePeeked("shadow-radius-")&&(Q=W5("shadowRadius",this.rest),Q)||this.consumePeeked("shadow-")&&(Q=s5("shadow",this.rest,Z==null?void 0:Z.colors),Q))return Q;if(this.consumePeeked("elevation-")){let W=parseInt(this.rest,10);if(!Number.isNaN(W))return x({elevation:W})}if(this.consumePeeked("opacity-")&&(Q=JA(this.rest,Z==null?void 0:Z.opacity),Q)||this.consumePeeked("tracking-")&&(Q=tU(this.rest,this.isNegative,Z==null?void 0:Z.letterSpacing),Q))return Q;if(this.consumePeeked("z-")){let W=Number((X=(Y=Z==null?void 0:Z.zIndex)===null||Y===void 0?void 0:Y[this.rest])!==null&&X!==void 0?X:this.rest);if(!Number.isNaN(W))return x({zIndex:W})}return v1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let w=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!w)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let Y=this.context.device.windowDimensions,[,X="",Z="",Q=""]=w,W=Z==="w"?Y.width:Y.height,H=Y1(Q,this.context);if(H===null)return this.isNull=!0,!0;let[$,z]=H;return z!=="px"&&(this.isNull=!0),(X==="min"?W>=$: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,K){return this.string.slice(this.position+J,this.position+K)}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 YA(J){let K=[],w=null;return J.forEach((Y)=>{if(typeof Y=="string")K=[...K,..._4(Y)];else if(Array.isArray(Y))K=[...K,...Y.flatMap(_4)];else if(typeof Y=="object"&&Y!==null)for(let[X,Z]of Object.entries(Y))typeof Z=="boolean"?K=[...K,...Z?_4(X):[]]:w?w[X]=Z:w={[X]:Z}}),[K.filter(Boolean).filter(XA),w]}function _4(J){return J.trim().split(/\s+/)}function XA(J,K,w){return w.indexOf(J)===K}function ZA(J){var K;return(K=J==null?void 0:J.reduce((w,Y)=>({...w,...QA(Y.handler)}),{}))!==null&&K!==void 0?K:{}}function QA(J){let K={};return J({addUtilities:(w)=>{K=w},...HA}),K}function _1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var HA={addComponents:_1,addBase:_1,addVariant:_1,e:_1,prefix:_1,theme:_1,variants:_1,config:_1,corePlugins:_1,matchUtilities:_1,postcss:null};function WA(J,K){let w=(0,TU.default)($A(J)),Y={},X=ZA(w.plugins),Z={},Q=Object.entries(X).map(([O,B])=>typeof B=="string"?(Z[O]=B,[O,{kind:"null"}]):[O,x(B)]).filter(([,O])=>O.kind!=="null");function W(){return[Y.windowDimensions?`w${Y.windowDimensions.width}`:!1,Y.windowDimensions?`h${Y.windowDimensions.height}`:!1,Y.fontScale?`fs${Y.fontScale}`:!1,Y.colorScheme==="dark"?"dark":!1,Y.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let H=W(),$={};function z(){let O=$[H];if(O)return O;let B=new bU(Q);return $[H]=B,B}function U(...O){let B=z(),M={},q=[],N=[],[E,_]=YA(O),F=E.join(" "),j=B.getStyle(F);if(j)return{...j,..._||{}};for(let T of E){let D=B.getIr(T);if(!D&&T in Z){let C=U(Z[T]);B.setIr(T,x(C)),M={...M,...C};continue}switch(D=new jK(T,w,B,Y,K).parse(),D.kind){case"complete":M={...M,...D.style},B.setIr(T,D);break;case"dependent":q.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":q.push(T.styleIr);break}}if(q.length>0){for(let T of q){let D=T.complete(M);D&&v1(D)}uU(M)}return F!==""&&B.setStyle(F,M),_&&(M={...M,..._}),M}function A(O){let B=U(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 V=(O,...B)=>{let M="";return O.forEach((q,N)=>{var E;M+=q+((E=B[N])!==null&&E!==void 0?E:"")}),U(M)};return V.style=U,V.color=A,V.prefixMatch=(...O)=>{let B=O.sort().join(":"),M=z(),q=M.getPrefixMatch(B);if(q!==void 0)return q;let N=new jK(`${B}:flex`,w,M,Y,K).parse().kind!=="null";return M.setPrefixMatch(B,N),N},V.setWindowDimensions=(O)=>{Y.windowDimensions=O,H=W()},V.setFontScale=(O)=>{Y.fontScale=O,H=W()},V.setPixelDensity=(O)=>{Y.pixelDensity=O,H=W()},V.setColorScheme=(O)=>{Y.colorScheme=O,H=W()},V}function $A(J){return{...J,content:["_no_warnings_please"]}}var zA={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 UA(J){return WA({...J,plugins:[...(J==null?void 0:J.plugins)??[],zA]},"web")}var m8;function AA({width:J,height:K,config:w}){return m8||(m8=UA(w)),m8.setWindowDimensions({width:+J,height:+K}),m8}var D4=new WeakMap;async function Ow(J,K){let w=await a8();if(!w||!w.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+w);K.fonts=K.fonts||[];let Y;D4.has(K.fonts)?Y=D4.get(K.fonts):D4.set(K.fonts,Y=new _U(K.fonts));let X="width"in K?K.width:void 0,Z="height"in K?K.height:void 0,Q=w.Node.create();X&&Q.setWidth(X),Z&&Q.setHeight(Z),Q.setFlexDirection(w.FLEX_DIRECTION_ROW),Q.setFlexWrap(w.WRAP_WRAP),Q.setAlignContent(w.ALIGN_AUTO),Q.setAlignItems(w.ALIGN_FLEX_START),Q.setJustifyContent(w.JUSTIFY_FLEX_START),Q.setOverflow(w.OVERFLOW_HIDDEN);let W={...K.graphemeImages},H=new Set;r1.clear(),c8.clear(),await Oz(J);let $=y4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:X,_viewportHeight:Z},parent:Q,font:Y,embedFont:K.embedFont,debug:K.debug,graphemeImages:W,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(O,B)=>{let M={...AA({width:X,height:Z,config:K.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}}),z=(await $.next()).value;if(K.loadAdditionalAsset&&z.length){let O=VA(z),B=[],M={};await Promise.all(Object.entries(O).flatMap(([q,N])=>N.map((E)=>{let _=`${q}_${E}`;return H.has(_)?null:(H.add(_),K.loadAdditionalAsset(q,E).then((F)=>{typeof F=="string"?M[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),Y.addFonts(B),Object.assign(W,M)}await $.next(),Q.calculateLayout(X,Z,w.DIRECTION_LTR);let U=(await $.next([0,0])).value,A=Q.getComputedWidth(),V=Q.getComputedHeight();return Q.freeRecursive(),IU({width:A,height:V,content:U})}function VA(J){let K={},w={};for(let{word:Y,locale:X}of J){let Z=EU(Y,X).join("|");w[Z]=w[Z]||"",w[Z]+=Y}return Object.keys(w).forEach((Y)=>{K[Y]=K[Y]||[],Y==="emoji"?K[Y].push(...EK(M1(w[Y],"grapheme"))):(K[Y][0]=K[Y][0]||"",K[Y][0]+=EK(M1(w[Y],"grapheme",Y==="unknown"?void 0:Y)).join(""))}),K}function EK(J){return Array.from(new Set(J))}import NA from"sharp";function r4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function Y6(J){let K={};for(let[w,Y]of Object.entries(J))if("run"in Y){let X=Y;if("children"in X){let Z=new X.children,Q=Y6(Z.routes);for(let[W,{exec:H,middleware:$}]of Object.entries(Q)){let z=w==="/"?W:`${w}${W}`,U=W==="/"&&w!=="/"?w:z,A=(V)=>X.run.call(X,V,w);K[r4(U)]={exec:[A,...H],middleware:[...X.middlewares,...$],viewPath:X.viewPath}}}else{let Z=(Q)=>X.run.call(X,Q,w);K[r4(w)]={exec:[Z],middleware:X.middlewares,viewPath:X.viewPath}}}else{let X=new Y,Z=Y6(X.routes);for(let[Q,{exec:W,middleware:H,viewPath:$}]of Object.entries(Z)){let z=w==="/"?Q:`${w}${Q}`,U=Q==="/"&&w!=="/"?w:z;K[r4(U)]={exec:W,middleware:[...X.middlewares,...H],viewPath:$}}}return Object.fromEntries(Object.entries(K).sort(([w],[Y])=>{let X=w.split("/").length+w.split(":").length,Z=Y.split("/").length+Y.split(":").length;return X-Z}))}import{renderToReadableStream as U9}from"react-dom/server.browser";import{createElement as Y8,Fragment as jA}from"react";var BA=Object.defineProperty,e=(J,K)=>BA(J,"name",{value:K,configurable:!0}),_5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,K,w,Y,X,Z){this.type=J,this.name=K,this.prefix=w,this.value=Y,this.suffix=X,this.modifier=Z}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};e(_5,"Part");var GA=/[$_\p{ID_Start}]/u,MA=/[$_\u200C\u200D\p{ID_Continue}]/u,o4=".*";function Lw(J,K){return(K?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}e(Lw,"isASCII");function t4(J,K=!1){let w=[],Y=0;for(;Y<J.length;){let X=J[Y],Z=e(function(Q){if(!K)throw TypeError(Q);w.push({type:"INVALID_CHAR",index:Y,value:J[Y++]})},"ErrorOrInvalid");if(X==="*"){w.push({type:"ASTERISK",index:Y,value:J[Y++]});continue}if(X==="+"||X==="?"){w.push({type:"OTHER_MODIFIER",index:Y,value:J[Y++]});continue}if(X==="\\"){w.push({type:"ESCAPED_CHAR",index:Y++,value:J[Y++]});continue}if(X==="{"){w.push({type:"OPEN",index:Y,value:J[Y++]});continue}if(X==="}"){w.push({type:"CLOSE",index:Y,value:J[Y++]});continue}if(X===":"){let Q="",W=Y+1;for(;W<J.length;){let H=J.substr(W,1);if(W===Y+1&&GA.test(H)||W!==Y+1&&MA.test(H)){Q+=J[W++];continue}break}if(!Q){Z(`Missing parameter name at ${Y}`);continue}w.push({type:"NAME",index:Y,value:Q}),Y=W;continue}if(X==="("){let Q=1,W="",H=Y+1,$=!1;if(J[H]==="?"){Z(`Pattern cannot start with "?" at ${H}`);continue}for(;H<J.length;){if(!Lw(J[H],!1)){Z(`Invalid character '${J[H]}' at ${H}.`),$=!0;break}if(J[H]==="\\"){W+=J[H++]+J[H++];continue}if(J[H]===")"){if(Q--,Q===0){H++;break}}else if(J[H]==="("&&(Q++,J[H+1]!=="?")){Z(`Capturing groups are not allowed at ${H}`),$=!0;break}W+=J[H++]}if($)continue;if(Q){Z(`Unbalanced pattern at ${Y}`);continue}if(!W){Z(`Missing pattern at ${Y}`);continue}w.push({type:"REGEX",index:Y,value:W}),Y=H;continue}w.push({type:"CHAR",index:Y,value:J[Y++]})}return w.push({type:"END",index:Y,value:""}),w}e(t4,"lexer");function e4(J,K={}){let w=t4(J);K.delimiter??="/#?",K.prefixes??="./";let Y=`[^${s0(K.delimiter)}]+?`,X=[],Z=0,Q=0,W="",H=new Set,$=e((E)=>{if(Q<w.length&&w[Q].type===E)return w[Q++].value},"tryConsume"),z=e(()=>$("OTHER_MODIFIER")??$("ASTERISK"),"tryConsumeModifier"),U=e((E)=>{let _=$(E);if(_!==void 0)return _;let{type:F,index:j}=w[Q];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),A=e(()=>{let E="",_;for(;_=$("CHAR")??$("ESCAPED_CHAR");)E+=_;return E},"consumeText"),V=e((E)=>E,"DefaultEncodePart"),O=K.encodePart||V,B="",M=e((E)=>{B+=E},"appendToPendingFixedValue"),q=e(()=>{B.length&&(X.push(new _5(3,"","",O(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=e((E,_,F,j,T)=>{let D=3;switch(T){case"?":D=1;break;case"*":D=0;break;case"+":D=2;break}if(!_&&!F&&D===3){M(E);return}if(q(),!_&&!F){if(!E)return;X.push(new _5(3,"","",O(E),"",D));return}let C;F?F==="*"?C=o4:C=F:C=Y;let k=2;C===Y?(k=1,C=""):C===o4&&(k=0,C="");let c;if(_?c=_:F&&(c=Z++),H.has(c))throw TypeError(`Duplicate name '${c}'.`);H.add(c),X.push(new _5(k,c,O(E),C,O(j),D))},"addPart");for(;Q<w.length;){let E=$("CHAR"),_=$("NAME"),F=$("REGEX");if(!_&&!F&&(F=$("ASTERISK")),_||F){let T=E??"";K.prefixes.indexOf(T)===-1&&(M(T),T=""),q();let D=z();N(T,_,F,"",D);continue}let j=E??$("ESCAPED_CHAR");if(j){M(j);continue}if($("OPEN")){let T=A(),D=$("NAME"),C=$("REGEX");!D&&!C&&(C=$("ASTERISK"));let k=A();U("CLOSE");let c=z();N(T,D,C,k,c);continue}q(),U("END")}return X}e(e4,"parse");function s0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(s0,"escapeString");function s4(J){return J&&J.ignoreCase?"ui":"u"}e(s4,"flags");function qw(J,K,w){return J9(e4(J,w),K,w)}e(qw,"stringToRegexp");function $5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}e($5,"modifierToString");function J9(J,K,w={}){w.delimiter??="/#?",w.prefixes??="./",w.sensitive??=!1,w.strict??=!1,w.end??=!0,w.start??=!0,w.endsWith="";let Y=w.start?"^":"";for(let W of J){if(W.type===3){W.modifier===3?Y+=s0(W.value):Y+=`(?:${s0(W.value)})${$5(W.modifier)}`;continue}K&&K.push(W.name);let H=`[^${s0(w.delimiter)}]+?`,$=W.value;if(W.type===1?$=H:W.type===0&&($=o4),!W.prefix.length&&!W.suffix.length){W.modifier===3||W.modifier===1?Y+=`(${$})${$5(W.modifier)}`:Y+=`((?:${$})${$5(W.modifier)})`;continue}if(W.modifier===3||W.modifier===1){Y+=`(?:${s0(W.prefix)}(${$})${s0(W.suffix)})`,Y+=$5(W.modifier);continue}Y+=`(?:${s0(W.prefix)}`,Y+=`((?:${$})(?:`,Y+=s0(W.suffix),Y+=s0(W.prefix),Y+=`(?:${$}))*)${s0(W.suffix)})`,W.modifier===0&&(Y+="?")}let X=`[${s0(w.endsWith)}]|$`,Z=`[${s0(w.delimiter)}]`;if(w.end)return w.strict||(Y+=`${Z}?`),w.endsWith.length?Y+=`(?=${X})`:Y+="$",new RegExp(Y,s4(w));w.strict||(Y+=`(?:${Z}(?=${X}))?`);let Q=!1;if(J.length){let W=J[J.length-1];W.type===3&&W.modifier===3&&(Q=w.delimiter.indexOf(W)>-1)}return Q||(Y+=`(?=${Z}|${X})`),new RegExp(Y,s4(w))}e(J9,"partsToRegexp");var s1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},OA={delimiter:".",prefixes:"",sensitive:!0,strict:!0},LA={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Nw(J,K){return J.length?J[0]==="/"?!0:!K||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}e(Nw,"isAbsolutePathname");function K9(J,K){return J.startsWith(K)?J.substring(K.length,J.length):J}e(K9,"maybeStripPrefix");function jw(J,K){return J.endsWith(K)?J.substr(0,J.length-K.length):J}e(jw,"maybeStripSuffix");function w9(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}e(w9,"treatAsIPv6Hostname");var Ew=["ftp","file","http","https","ws","wss"];function Y9(J){if(!J)return!0;for(let K of Ew)if(J.test(K))return!0;return!1}e(Y9,"isSpecialScheme");function Fw(J,K){if(J=K9(J,"#"),K||J==="")return J;let w=new URL("https://example.com");return w.hash=J,w.hash?w.hash.substring(1,w.hash.length):""}e(Fw,"canonicalizeHash");function Rw(J,K){if(J=K9(J,"?"),K||J==="")return J;let w=new URL("https://example.com");return w.search=J,w.search?w.search.substring(1,w.search.length):""}e(Rw,"canonicalizeSearch");function _w(J,K){return K||J===""?J:w9(J)?Q9(J):Z9(J)}e(_w,"canonicalizeHostname");function Dw(J,K){if(K||J==="")return J;let w=new URL("https://example.com");return w.password=J,w.password}e(Dw,"canonicalizePassword");function Iw(J,K){if(K||J==="")return J;let w=new URL("https://example.com");return w.username=J,w.username}e(Iw,"canonicalizeUsername");function Tw(J,K,w){if(w||J==="")return J;if(K&&!Ew.includes(K))return new URL(`${K}:${J}`).pathname;let Y=J[0]=="/";return J=new URL(Y?J:"/-"+J,"https://example.com").pathname,Y||(J=J.substring(2,J.length)),J}e(Tw,"canonicalizePathname");function Cw(J,K,w){return X9(K)===J&&(J=""),w||J===""?J:H9(J)}e(Cw,"canonicalizePort");function Pw(J,K){return J=jw(J,":"),K||J===""?J:X6(J)}e(Pw,"canonicalizeProtocol");function X9(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}e(X9,"defaultPortForProtocol");function X6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}e(X6,"protocolEncodeCallback");function Sw(J){if(J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}e(Sw,"usernameEncodeCallback");function vw(J){if(J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}e(vw,"passwordEncodeCallback");function Z9(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let K=new URL("https://example.com");return K.hostname=J,K.hostname}e(Z9,"hostnameEncodeCallback");function Q9(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}e(Q9,"ipv6HostnameEncodeCallback");function H9(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}e(H9,"portEncodeCallback");function yw(J){if(J==="")return J;let K=new URL("https://example.com");return K.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?K.pathname.substring(2,K.pathname.length):K.pathname}e(yw,"standardURLPathnameEncodeCallback");function hw(J){return J===""?J:new URL(`data:${J}`).pathname}e(hw,"pathURLPathnameEncodeCallback");function kw(J){if(J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search.substring(1,K.search.length)}e(kw,"searchEncodeCallback");function gw(J){if(J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash.substring(1,K.hash.length)}e(gw,"hashEncodeCallback");var xw=class{#Z;#Y=[];#K={};#J=0;#X=1;#$=0;#H=0;#V=0;#B=0;#G=!1;constructor(J){this.#Z=J}get result(){return this.#K}parse(){for(this.#Y=t4(this.#Z,!0);this.#J<this.#Y.length;this.#J+=this.#X){if(this.#X=1,this.#Y[this.#J].type==="END"){if(this.#H===0){this.#q(),this.#z()?this.#w(9,1):this.#U()?this.#w(8,1):this.#w(7,0);continue}else if(this.#H===2){this.#A(5);continue}this.#w(10,0);break}if(this.#V>0)if(this.#D())this.#V-=1;else continue;if(this.#_()){this.#V+=1;continue}switch(this.#H){case 0:this.#N()&&this.#A(1);break;case 1:if(this.#N()){this.#C();let J=7,K=1;this.#E()?(J=2,K=3):this.#G&&(J=2),this.#w(J,K)}break;case 2:this.#O()?this.#A(3):(this.#L()||this.#U()||this.#z())&&this.#A(5);break;case 3:this.#F()?this.#w(4,1):this.#O()&&this.#w(5,1);break;case 4:this.#O()&&this.#w(5,1);break;case 5:this.#I()?this.#B+=1:this.#T()&&(this.#B-=1),this.#R()&&!this.#B?this.#w(6,1):this.#L()?this.#w(7,0):this.#U()?this.#w(8,1):this.#z()&&this.#w(9,1);break;case 6:this.#L()?this.#w(7,0):this.#U()?this.#w(8,1):this.#z()&&this.#w(9,1);break;case 7:this.#U()?this.#w(8,1):this.#z()&&this.#w(9,1);break;case 8:this.#z()&&this.#w(9,1);break;case 9:break;case 10:break}}this.#K.hostname!==void 0&&this.#K.port===void 0&&(this.#K.port="")}#w(J,K){switch(this.#H){case 0:break;case 1:this.#K.protocol=this.#W();break;case 2:break;case 3:this.#K.username=this.#W();break;case 4:this.#K.password=this.#W();break;case 5:this.#K.hostname=this.#W();break;case 6:this.#K.port=this.#W();break;case 7:this.#K.pathname=this.#W();break;case 8:this.#K.search=this.#W();break;case 9:this.#K.hash=this.#W();break;case 10:break}this.#H!==0&&J!==10&&([1,2,3,4].includes(this.#H)&&[6,7,8,9].includes(J)&&(this.#K.hostname??=""),[1,2,3,4,5,6].includes(this.#H)&&[8,9].includes(J)&&(this.#K.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#H)&&J===9&&(this.#K.search??="")),this.#j(J,K)}#j(J,K){this.#H=J,this.#$=this.#J+K,this.#J+=K,this.#X=0}#q(){this.#J=this.#$,this.#X=0}#A(J){this.#q(),this.#H=J}#M(J){return J<0&&(J=this.#Y.length-J),J<this.#Y.length?this.#Y[J]:this.#Y[this.#Y.length-1]}#Q(J,K){let w=this.#M(J);return w.value===K&&(w.type==="CHAR"||w.type==="ESCAPED_CHAR"||w.type==="INVALID_CHAR")}#N(){return this.#Q(this.#J,":")}#E(){return this.#Q(this.#J+1,"/")&&this.#Q(this.#J+2,"/")}#O(){return this.#Q(this.#J,"@")}#F(){return this.#Q(this.#J,":")}#R(){return this.#Q(this.#J,":")}#L(){return this.#Q(this.#J,"/")}#U(){if(this.#Q(this.#J,"?"))return!0;if(this.#Y[this.#J].value!=="?")return!1;let J=this.#M(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#z(){return this.#Q(this.#J,"#")}#_(){return this.#Y[this.#J].type=="OPEN"}#D(){return this.#Y[this.#J].type=="CLOSE"}#I(){return this.#Q(this.#J,"[")}#T(){return this.#Q(this.#J,"]")}#W(){let J=this.#Y[this.#J],K=this.#M(this.#$).index;return this.#Z.substring(K,J.index)}#C(){let J={};Object.assign(J,s1),J.encodePart=X6;let K=qw(this.#W(),void 0,J);this.#G=Y9(K)}};e(xw,"Parser");var n4=["protocol","username","password","hostname","port","pathname","search","hash"],o1="*";function a4(J,K){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let w=new URL(J,K);return{protocol:w.protocol.substring(0,w.protocol.length-1),username:w.username,password:w.password,hostname:w.hostname,port:w.port,pathname:w.pathname,search:w.search!==""?w.search.substring(1,w.search.length):void 0,hash:w.hash!==""?w.hash.substring(1,w.hash.length):void 0}}e(a4,"extractValues");function D1(J,K){return K?R5(J):J}e(D1,"processBaseURLString");function F5(J,K,w){let Y;if(typeof K.baseURL=="string")try{Y=new URL(K.baseURL),K.protocol===void 0&&(J.protocol=D1(Y.protocol.substring(0,Y.protocol.length-1),w)),!w&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&(J.username=D1(Y.username,w)),!w&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&K.password===void 0&&(J.password=D1(Y.password,w)),K.protocol===void 0&&K.hostname===void 0&&(J.hostname=D1(Y.hostname,w)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&(J.port=D1(Y.port,w)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&(J.pathname=D1(Y.pathname,w)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&(J.search=D1(Y.search.substring(1,Y.search.length),w)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&K.hash===void 0&&(J.hash=D1(Y.hash.substring(1,Y.hash.length),w))}catch{throw TypeError(`invalid baseURL '${K.baseURL}'.`)}if(typeof K.protocol=="string"&&(J.protocol=Pw(K.protocol,w)),typeof K.username=="string"&&(J.username=Iw(K.username,w)),typeof K.password=="string"&&(J.password=Dw(K.password,w)),typeof K.hostname=="string"&&(J.hostname=_w(K.hostname,w)),typeof K.port=="string"&&(J.port=Cw(K.port,J.protocol,w)),typeof K.pathname=="string"){if(J.pathname=K.pathname,Y&&!Nw(J.pathname,w)){let X=Y.pathname.lastIndexOf("/");X>=0&&(J.pathname=D1(Y.pathname.substring(0,X+1),w)+J.pathname)}J.pathname=Tw(J.pathname,J.protocol,w)}return typeof K.search=="string"&&(J.search=Rw(K.search,w)),typeof K.hash=="string"&&(J.hash=Fw(K.hash,w)),J}e(F5,"applyInit");function R5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}e(R5,"escapePatternString");function bw(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(bw,"escapeRegexpString");function fw(J,K){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let w=".*",Y=`[^${bw(K.delimiter)}]+?`,X=/[$_\u200C\u200D\p{ID_Continue}]/u,Z="";for(let Q=0;Q<J.length;++Q){let W=J[Q];if(W.type===3){if(W.modifier===3){Z+=R5(W.value);continue}Z+=`{${R5(W.value)}}${$5(W.modifier)}`;continue}let H=W.hasCustomName(),$=!!W.suffix.length||!!W.prefix.length&&(W.prefix.length!==1||!K.prefixes.includes(W.prefix)),z=Q>0?J[Q-1]:null,U=Q<J.length-1?J[Q+1]:null;if(!$&&H&&W.type===1&&W.modifier===3&&U&&!U.prefix.length&&!U.suffix.length)if(U.type===3){let A=U.value.length>0?U.value[0]:"";$=X.test(A)}else $=!U.hasCustomName();if(!$&&!W.prefix.length&&z&&z.type===3){let A=z.value[z.value.length-1];$=K.prefixes.includes(A)}$&&(Z+="{"),Z+=R5(W.prefix),H&&(Z+=`:${W.name}`),W.type===2?Z+=`(${W.value})`:W.type===1?H||(Z+=`(${Y})`):W.type===0&&(!H&&(!z||z.type===3||z.modifier!==3||$||W.prefix!=="")?Z+="*":Z+=`(${w})`),W.type===1&&H&&W.suffix.length&&X.test(W.suffix[0])&&(Z+="\\"),Z+=R5(W.suffix),$&&(Z+="}"),W.modifier!==3&&(Z+=$5(W.modifier))}return Z}e(fw,"partsToPattern");var W9=class{#Z;#Y={};#K={};#J={};#X={};#$=!1;constructor(J={},K,w){try{let Y;if(typeof K=="string"?Y=K:w=K,typeof J=="string"){let W=new xw(J);if(W.parse(),J=W.result,Y===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=Y}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(Y)throw TypeError("parameter 1 is not of type 'string'.")}typeof w>"u"&&(w={ignoreCase:!1});let X={ignoreCase:w.ignoreCase===!0},Z={pathname:o1,protocol:o1,username:o1,password:o1,hostname:o1,port:o1,search:o1,hash:o1};this.#Z=F5(Z,J,!0),X9(this.#Z.protocol)===this.#Z.port&&(this.#Z.port="");let Q;for(Q of n4){if(!(Q in this.#Z))continue;let W={},H=this.#Z[Q];switch(this.#K[Q]=[],Q){case"protocol":Object.assign(W,s1),W.encodePart=X6;break;case"username":Object.assign(W,s1),W.encodePart=Sw;break;case"password":Object.assign(W,s1),W.encodePart=vw;break;case"hostname":Object.assign(W,OA),w9(H)?W.encodePart=Q9:W.encodePart=Z9;break;case"port":Object.assign(W,s1),W.encodePart=H9;break;case"pathname":Y9(this.#Y.protocol)?(Object.assign(W,LA,X),W.encodePart=yw):(Object.assign(W,s1,X),W.encodePart=hw);break;case"search":Object.assign(W,s1,X),W.encodePart=kw;break;case"hash":Object.assign(W,s1,X),W.encodePart=gw;break}try{this.#X[Q]=e4(H,W),this.#Y[Q]=J9(this.#X[Q],this.#K[Q],W),this.#J[Q]=fw(this.#X[Q],W),this.#$=this.#$||this.#X[Q].some(($)=>$.type===2)}catch{throw TypeError(`invalid ${Q} pattern '${this.#Z[Q]}'.`)}}}catch(Y){throw TypeError(`Failed to construct 'URLPattern': ${Y.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},K){let w={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?w=F5(w,J,!1):w=F5(w,a4(J,K),!1)}catch{return!1}let Y;for(Y of n4)if(!this.#Y[Y].exec(w[Y]))return!1;return!0}exec(J={},K){let w={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?w=F5(w,J,!1):w=F5(w,a4(J,K),!1)}catch{return null}let Y={};K?Y.inputs=[J,K]:Y.inputs=[J];let X;for(X of n4){let Z=this.#Y[X].exec(w[X]);if(!Z)return null;let Q={};for(let[W,H]of this.#K[X].entries())if(typeof H=="string"||typeof H=="number"){let $=Z[W+1];Q[H]=$}Y[X]={input:w[X]??"",groups:Q}}return Y}static compareComponent(J,K,w){let Y=e((W,H)=>{for(let $ of["type","modifier","prefix","value","suffix"]){if(W[$]<H[$])return-1;if(W[$]===H[$])continue;return 1}return 0},"comparePart"),X=new _5(3,"","","","",3),Z=new _5(0,"","","","",3),Q=e((W,H)=>{let $=0;for(;$<Math.min(W.length,H.length);++$){let z=Y(W[$],H[$]);if(z)return z}return W.length===H.length?0:Y(W[$]??X,H[$]??X)},"comparePartList");return!K.#J[J]&&!w.#J[J]?0:K.#J[J]&&!w.#J[J]?Q(K.#X[J],[Z]):!K.#J[J]&&w.#J[J]?Q([Z],w.#X[J]):Q(K.#X[J],w.#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.#$}};e(W9,"URLPattern");function qA(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function Z6(J){let K={};for(let[w,Y]of Object.entries(J))if("run"in Y){let X=Y.viewPath;if("children"in Y){K[w]=[X];let Z=new Y.children,Q=Z6(Z.routes);for(let[W,H]of Object.entries(Q)){let $=w==="/"?W:`${w}${W}`,z=W==="/"&&w!=="/"?w:$;K[z]=[X,...H]}if(K[w].length===1)delete K[w]}else K[w]=[X]}else{let X=new Y,Z=Z6(X.routes);for(let[Q,W]of Object.entries(Z)){let H=w==="/"?Q:`${w}${Q}`,$=Q==="/"&&w!=="/"?w:H;K[$]=W}}return Object.fromEntries(Object.entries(K).map(([w,Y])=>[qA(w),Y]))}function Q6(J){let K=[];for(let[w,Y]of Object.entries(J))if("run"in Y){let X=Y.viewPath;if(X==="__")continue;if(X==="REDIRECT")continue;if(X==="FILE")continue;if("children"in Y){let Z=new Y.children,Q=Q6(Z.routes);K.push([X,Q])}else K.push([X,[]])}else{let X=new Y,Z=Q6(X.routes);K.push(...Z)}return K}function $9(J){let K=[];for(let[w,Y]of J)K.push(w,...$9(Y).flat());return Array.from(new Set(K))}class w8{static debug(J,K){J1.use().log("debug",J,K)}static info(J,K){J1.use().log("info",J,K)}static notice(J,K){J1.use().log("notice",J,K)}static warning(J,K){J1.use().log("warning",J,K)}static error(J,K){J1.use().log("error",J,K)}static critical(J,K){J1.use().log("critical",J,K)}static alert(J,K){J1.use().log("alert",J,K)}static emergency(J,K){J1.use().log("emergency",J,K)}}class z9 extends y0{service;static _name="KernelIdServiceContainer";constructor(J){super();this.service=J}}var EA=`
67
- !function(){try{var d=document.documentElement,c=d.classList;
68
- c.remove('light','dark');
69
- var e=localStorage.getItem('theme');
70
- if('system'===e||(!e&&'system'===defaultTheme)){
71
- var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);
72
- if(m.media!==t||m.matches){d.style.colorScheme='dark';c.add('dark')}
73
- else{d.style.colorScheme='light';c.add('light')}
74
- }else if(e){
75
- c.add(e||'')
76
- }}catch(e){}}()
77
- `;async function FA(J,K,w){let Y=`${w==="italic"?"italic,":""}wght@${w==="italic"?"1,":""}${K}`,Q=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${Y}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(Q).then((W)=>W.arrayBuffer())}var A9="/assets";function RA(J){let K=J.filter((w)=>w===A9||w.startsWith(`${A9}/`));if(K.length>0){let w=K.length>1;throw Error(`View route path${w?"s":""} ${K.map((Y)=>`"${Y}"`).join(", ")} use${w?"":"s"} the reserved "${A9}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class V9 extends y0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":A6};this.flatViewRoutes=Y6(K),RA(Object.keys(this.flatViewRoutes)),this.routeManifest=Z6(K),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,w])=>w.at(-1)!=="FILE")),this.componentTree=Q6(K),this.flatComponentTree=$9(this.componentTree),this.root=J.root}boot(){}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.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:w,headers:Y,i18n:X,params:Z,pathname:Q,prefetchedData:W,url:H,user:$,viewData:z,breadcrumbs:U,urlLocaleSegment:A,meta:V,isOgRequest:O,appId:B}=J,M=Q.replace(`/${A}`,""),q={kind:"view",data:{meta:V,pageData:{[M]:z},__csrf:K.toString("base64"),prefetchedData:W,i18n:X,auth:{user:$},routeManifest:this.clientRouteManifest,breadcrumbs:U,router:{urlLocaleSegment:A,pathname:w,params:Z,currentPath:Q,searchParams:H.search,is404:!w?!0:!1},appId:B,componentTree:[["404",[]],...this.componentTree]},head:{}},N=this.root,E=this.routeManifest[w];return async(_)=>{let{bootstrapModules:F,loaders:j,getStyles:T,viewImportMap:D,cssManifest:C,ogMap:k}=_;if(O){let u=null,p=null;for(let S of E)if(typeof k[S]==="function")p=S,u=k[S];if(!u)return new Response("Not found",{status:404});let P=Object.values(q.data.pageData)[0];try{await U9(Y8(u,P[p]),{onError:()=>{}})}catch(S){let{fonts:I,...l}=S.satoriOptions,f=await Promise.all(I.map((d)=>{return FA(d.name,d.weight,d.style).then((y)=>({...d,data:y}))})),o=new Headers(Y);o.set("Content-Type","image/png");let i=await Ow(S.jsx,{...l,fonts:f}),m=await NA(Buffer.from(i)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(m),{headers:o})}return new Response("data")}q.data.cssManifest=C;let c=await T(E);try{let u=await U9(Y8(jA,{children:[...c,Y8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:EA}}),Y8(N,{data:q.data,viewImportMap:D,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${j}`,bootstrapModules:F});return new Response(u,{status:!w?404:200,headers:Y})}catch(u){let p=await U9(Y8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(u.message)}; window.stack_trace=${JSON.stringify(u.stack)};window.__GEMI_DATA__ = ${JSON.stringify(q.data)}; window.loaders=${j}`,bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...F]:F});return new Response(p,{status:!w?404:200,headers:Y})}}}async handleViewRequest(J){let K=new URL(J.url),w=K.pathname.endsWith(".json"),Y=K.pathname.endsWith(".og"),X=K.pathname.replace(".json","").replace(".og",""),[,Z,...Q]=X.split("/"),W=`/${Q.join("/")}`,H=null,$=null,z=P0.use();if(!z.service.supportedLocales.includes(Z))W=X;else H=Z,$=Z;if(z.isEnabled&&!Y){let q=P0.use().detectLocale(new $0(J,{},"view",W));if($===null&&q!==z.service.defaultLocale){let N=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${q}${N}${K.search}`}})}}W=W.replace("//","/");let A=[],V=[],O=null,B={};try{for(let[q,N]of Object.entries(this.flatViewRoutes)){let E=new W9({pathname:q});if(E.test({pathname:W})){O=q,B=E.exec({pathname:W})?.pathname.groups,A=N.exec,V=N.middleware;break}}}catch(q){throw q}let M=new $0(J,B,"view",O);return await O0.run(M,async()=>{let q=null,N=O0.getStore();if($){let _=$.replaceAll("/","");G5.setLocale(_)}else G5.setLocale();let E=N.req;try{await P5.use().runMiddleware(V);let _=P0.use(),F=_.isEnabled,j={};if(F){let f=null;if($)f=$.replaceAll("/",""),N.setLocale(f);else f=_.detectLocale(new $0(J,E.params)),N.setLocale(f);let o=_.getPageTranslations(f,E.routePath);j={supportedLocales:_.service.supportedLocales,currentLocale:f,dictionary:{[f]:o},defaultLocale:_.service.defaultLocale}}let T=await Promise.all([...A.map((f)=>f(E)),...Array.from(N.prefetchPromiseQueue).map((f)=>f())]),D=N.cookies,C=N.headers,k=N.prefetchedResources;q={data:T,cookies:D,headers:C,user:N.user,prefetchedData:Object.fromEntries(k.entries()),currentPathName:E.routePath,params:E.params,urlLocaleSegment:H,meta:N.renderMeta(),appId:z9.use().service.id};let{params:c,currentPathName:u,user:p}=q,P={},S={};for(let f of T??[]){let[o,i]=Object.entries(f)?.[0]??[];if(!o||!i)continue;S[`${o}:${u}`]=i.breadcrumb,P[o]=i}let I=P.FILE;if(I){for(let f of D)C.append("Set-Cookie",f.toString());try{await this.onRequestEnd(E)}catch(f){w8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await mw(I,C)}if(w)return C.set("Content-Type","application/json; charset=utf-8"),D.forEach((f)=>C.append("Set-Cookie",f.toString())),await this.service.onRequestEnd(E),new Response(JSON.stringify({meta:q.meta,data:{[W]:P},breadcrumbs:S,prefetchedData:q.prefetchedData,i18n:j,is404:!u,appId:q.appId}),{headers:C});C.set("Content-Type","text/html; charset=utf-8");for(let f of D)C.append("Set-Cookie",f.toString());let l=Bun.CSRF.generate(process.env.SECRET);C.append("Set-Cookie",`csrf_token=${l}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(E)}catch(f){w8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:u,headers:C,i18n:j,params:c,pathname:K.pathname,prefetchedData:q.prefetchedData,url:K,user:p,viewData:P,breadcrumbs:S,urlLocaleSegment:H,meta:q.meta,appId:q.appId,isOgRequest:Y})}catch(_){if(_.kind===X8)if(w){let{status:F=400,data:j,directive:T,headers:D}=_.payload.api;return new Response(JSON.stringify({data:j,directive:T}),{headers:D,status:F})}else{let{status:F=400,error:j}=_.payload.view;return new Response(j?.message,{..._.payload.view,status:F})}throw this.service.onRequestFail(E,_),_}})}}class dw extends L1{routes={"/api-routes":this.get(()=>{let J=H6.use().flatRoutes,K=[];for(let[w,Y]of Object.entries(J))for(let[X,Z]of Object.entries(Y)){let{exec:Q,middleware:W}=Z;K.push({path:w,method:X,middleware:W})}return K}),"/view-routes":this.get(()=>{let J=V9.use().flatViewRoutes,K=[];for(let[w,{middleware:Y,viewPath:X}]of Object.entries(J))K.push({path:w,method:"GET",viewPath:X,middleware:Y});return K})}}class H6 extends y0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=q6({"/":this.service.rootRouter.bind(this.service),"/auth":V6,"/__gemi__/services/i18n":B6,"/__gemi__/services/logs":L6,"/__gemi__/services/image":G6,"/__gemi__/debug":dw})}getRouteHandlerAndParams(J){let w=new URL(J.url).pathname.replace("/api",""),Y={},X;for(let[Z]of Object.entries(this.flatRoutes))try{let Q=new URLPattern({pathname:Z});if(Q.test({pathname:w})){X=Z,Y=Q.exec({pathname:w})?.pathname.groups;break}}catch(Q){console.error(Q)}return{params:Y,path:X}}async runRouteMiddleware(J,K){let Y=this.flatRoutes[J][K.rawRequest.method].middleware;try{await P5.use().runMiddleware(Y)}catch(X){if(X.kind===X8){if(K.rawRequest.url.includes("/api")){let{status:Z=400,data:Q,headers:W}=X.payload.api;return new Response(JSON.stringify(Q),{status:Z,headers:{"Content-Type":"application/json",...W}})}}else throw this.service.onRequestFail(K,X),console.error(X),X}}async getRouteData(J){let K=this.flatRoutes[J],w=O0.getStore(),Y=K[w.req.rawRequest.method].exec??(()=>Promise.resolve({})),X={};try{X=await Y()}catch(Z){if(Z.kind===X8){let{status:Q=400,data:W,headers:H}=Z.payload.api;return new Response(JSON.stringify(W),{status:Q,headers:{"Content-Type":"application/json",...H}})}throw this.service.onRequestFail(w.req,Z),console.error(Z),Z}return X}async handleApiRequest(J){let{params:K,path:w}=this.getRouteHandlerAndParams(J),Y=this.flatRoutes[w];if(!Y||!Y[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let X=new $0(J,K,"api",w);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(X);return await O0.run(X,async()=>{let Z=O0.getStore(),Q=P0.use();if(Q.isEnabled){let z=Q.detectLocale(X);Z.setLocale(z)}Z.setRequest(X);let W=await this.runRouteMiddleware(w,X);if(W instanceof Response)return W;let H=await this.getRouteData(w);if(H instanceof Response)return H;let $=Z.headers;if($.append("Content-Type","application/json"),Z.cookies.forEach((z)=>$.append("Set-Cookie",z.toString())),Z.destroy(),!J.url.includes("/__gemi__"))this.service.onRequestEnd(X);return new Response(JSON.stringify(H),{headers:$})})}}class W6{static prepare(J,...K){let w={params:{},search:{}},[Y={}]=K,{search:X,params:Z}={...w,...Y},Q=O0.getStore();if(Q.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let W=Q.req.rawRequest,H=new URL(W.url),$=new URLSearchParams(N9(X));$.delete("json"),$.sort();let z=[`${a1(J,Z)}`,$.toString()].filter((M)=>M.length>0).join("?"),U=`${H.origin}/${z}`,A=new Request(U,{headers:W.headers}),V=new $0(A,Z),O=(M)=>{Q.prefetchedResources.set(a1(J,Z),{[$.toString()]:M})},B=()=>{return O0.run(V,async()=>{let M=await H6.use().getRouteData(J);return O(M),M})};return{instant:B,prefetch:()=>{Q.prefetchPromiseQueue.add(B)}}}static instant(J,...K){return W6.prepare(J,...K).instant()}static prefetch(J,...K){return W6.prepare(J,...K).prefetch()}}class lw{static channel(J,K){let w=B5.use().service.channels[J];if(!w)return console.error(`Channel ${J} not found`),{publish:()=>{}};let Y=new w;return{publish:(X,Z=!1)=>{let Q=a1(J,K);B5.use().publish(Q,JSON.stringify({topic:Q,data:Y.publish(X)}),Z)}}}}class cw{static absolute(J,...K){return`${process.env.HOST_NAME}${a1(String(J),K[0]??{})}`}static relative(J,...K){return a1(String(J),K[0]??{})}}class uw{name="Meta";static description(J){O0.getStore().metadata.description(J)}static title(J){O0.getStore().metadata.title(J)}static openGraph(J){O0.getStore().metadata.openGraph(J)}}var _A={set(J,K,w){O0.getStore().setCookie(J,K,w)},setIfAbsent(J,K,w){if(O0.getStore().req.cookies.has(J))return!1;return O0.getStore().setCookie(J,K,w),!0},delete(J){O0.getStore().deleteCookie(J)}};var{RedisClient:DA}=globalThis.Bun;class B9 extends y0{service;static _name="RedisServiceContainer";client;constructor(J){super();this.service=J;this.client=new DA(J.url,J.options)}}class y1{static get client(){return B9.use().client}static get(J){return y1.client.get(J)}static set(J,K){return y1.client.set(J,K)}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,K){return y1.client.expire(J,K)}static ttl(J){return y1.client.ttl(J)}}export{B5 as s,b1 as t,G5 as u,T5 as v,q9 as w,W6 as x,lw as y,cw as z,J1 as A,w8 as B,uw as C,_A as D,B9 as E,y1 as F,nw as G,T9 as H,P5 as I,W9 as J,z9 as K,A9 as L,V9 as M,H6 as N};
78
-
79
- //# debugId=5E99115F1E89E7A864756E2164756E21