gemi 0.16.3 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/broadcasting/index.js +1 -1
  4. package/dist/{chunk-3zsh0nvc.js → chunk-0zbw2v8k.js} +3 -3
  5. package/dist/{chunk-3zsh0nvc.js.map → chunk-0zbw2v8k.js.map} +1 -1
  6. package/dist/{chunk-ptar9njs.js → chunk-2wsmhvhf.js} +2 -2
  7. package/dist/{chunk-ptar9njs.js.map → chunk-2wsmhvhf.js.map} +1 -1
  8. package/dist/chunk-3exng5ce.js +27 -0
  9. package/dist/{chunk-kf91mqnv.js.map → chunk-3exng5ce.js.map} +4 -3
  10. package/dist/{chunk-cbrvmz3y.js → chunk-3tn8zz3h.js} +2 -2
  11. package/dist/{chunk-cbrvmz3y.js.map → chunk-3tn8zz3h.js.map} +1 -1
  12. package/dist/{chunk-rmns1r5r.js → chunk-47xbr7nj.js} +3 -3
  13. package/dist/{chunk-rmns1r5r.js.map → chunk-47xbr7nj.js.map} +1 -1
  14. package/dist/chunk-4dws72jb.js +4 -0
  15. package/dist/{chunk-6d8cntk1.js.map → chunk-4dws72jb.js.map} +5 -5
  16. package/dist/chunk-4hrrf55a.js +4 -0
  17. package/dist/{chunk-cqn8e9s6.js.map → chunk-4hrrf55a.js.map} +2 -2
  18. package/dist/chunk-4p9rzgdq.js +5 -0
  19. package/dist/{chunk-azv9jndn.js.map → chunk-4p9rzgdq.js.map} +6 -6
  20. package/dist/chunk-5pmgwned.js +4 -0
  21. package/dist/{chunk-0ps9hn9y.js.map → chunk-5pmgwned.js.map} +2 -2
  22. package/dist/{chunk-727d0twk.js → chunk-77hyr51s.js} +3 -3
  23. package/dist/{chunk-727d0twk.js.map → chunk-77hyr51s.js.map} +4 -4
  24. package/dist/{chunk-mdh39zmy.js → chunk-8ctxajfc.js} +2 -2
  25. package/dist/{chunk-mdh39zmy.js.map → chunk-8ctxajfc.js.map} +1 -1
  26. package/dist/chunk-9czphfs1.js +4 -0
  27. package/dist/{chunk-qagjgdjv.js.map → chunk-9czphfs1.js.map} +2 -2
  28. package/dist/{chunk-hgzy4xxp.js → chunk-c3s0zqhy.js} +2 -2
  29. package/dist/{chunk-hgzy4xxp.js.map → chunk-c3s0zqhy.js.map} +1 -1
  30. package/dist/chunk-catb1gz8.js +4 -0
  31. package/dist/{chunk-sj4p2cqp.js.map → chunk-catb1gz8.js.map} +1 -1
  32. package/dist/{chunk-n7sc21pz.js → chunk-catqfhfe.js} +2 -2
  33. package/dist/{chunk-n7sc21pz.js.map → chunk-catqfhfe.js.map} +1 -1
  34. package/dist/{chunk-4eby3py1.js → chunk-e638b1fh.js} +4 -4
  35. package/dist/{chunk-4eby3py1.js.map → chunk-e638b1fh.js.map} +4 -3
  36. package/dist/{chunk-e9dcgqt7.js → chunk-ebcx322z.js} +2 -2
  37. package/dist/{chunk-e9dcgqt7.js.map → chunk-ebcx322z.js.map} +1 -1
  38. package/dist/{chunk-jkvr5kec.js → chunk-egd5q5dg.js} +3 -3
  39. package/dist/{chunk-jkvr5kec.js.map → chunk-egd5q5dg.js.map} +1 -1
  40. package/dist/{chunk-8xvadh2t.js → chunk-fbr0hg21.js} +2 -2
  41. package/dist/{chunk-8xvadh2t.js.map → chunk-fbr0hg21.js.map} +1 -1
  42. package/dist/{chunk-1g5hx2rt.js → chunk-g1pmzbbw.js} +1 -1
  43. package/dist/{chunk-dnycjhab.js → chunk-hj1wc760.js} +3 -3
  44. package/dist/{chunk-dnycjhab.js.map → chunk-hj1wc760.js.map} +1 -1
  45. package/dist/chunk-jk9pvh2e.js +5 -0
  46. package/dist/{chunk-q462zzyt.js.map → chunk-jk9pvh2e.js.map} +2 -2
  47. package/dist/{chunk-4mfwb998.js → chunk-kbm8egme.js} +3 -3
  48. package/dist/{chunk-4mfwb998.js.map → chunk-kbm8egme.js.map} +1 -1
  49. package/dist/{chunk-y0z99vzf.js → chunk-kbmhhmg4.js} +2 -2
  50. package/dist/{chunk-y0z99vzf.js.map → chunk-kbmhhmg4.js.map} +1 -1
  51. package/dist/chunk-m7nrq5eq.js +4 -0
  52. package/dist/{chunk-p86br05j.js.map → chunk-m7nrq5eq.js.map} +2 -2
  53. package/dist/{chunk-qs44ke4h.js → chunk-mzcp229c.js} +2 -2
  54. package/dist/{chunk-qs44ke4h.js.map → chunk-mzcp229c.js.map} +1 -1
  55. package/dist/chunk-qh3wkfks.js +5 -0
  56. package/dist/{chunk-h0j7tp3c.js.map → chunk-qh3wkfks.js.map} +5 -5
  57. package/dist/chunk-recx8xrk.js +8 -0
  58. package/dist/{chunk-rsgc07e5.js.map → chunk-recx8xrk.js.map} +2 -2
  59. package/dist/chunk-rfewd8qe.js +4 -0
  60. package/dist/{chunk-4qwf2gg1.js.map → chunk-rfewd8qe.js.map} +2 -2
  61. package/dist/chunk-tbtr71sn.js +4 -0
  62. package/dist/{chunk-6j1vmddb.js.map → chunk-tbtr71sn.js.map} +1 -1
  63. package/dist/chunk-w6rk9cf3.js +4 -0
  64. package/dist/{chunk-ay6w965p.js.map → chunk-w6rk9cf3.js.map} +4 -4
  65. package/dist/{chunk-0way950q.js → chunk-wnq14j8v.js} +2 -2
  66. package/dist/{chunk-0way950q.js.map → chunk-wnq14j8v.js.map} +1 -1
  67. package/dist/chunk-xn8m1vjf.js +3 -0
  68. package/dist/chunk-xn8m1vjf.js.map +15 -0
  69. package/dist/client/Mutation.d.ts +1 -1
  70. package/dist/client/Mutation.d.ts.map +1 -1
  71. package/dist/client/index.d.ts +1 -1
  72. package/dist/client/index.d.ts.map +1 -1
  73. package/dist/client/index.js +7 -0
  74. package/dist/client/index.js.map +1 -1
  75. package/dist/email/index.js +1 -1
  76. package/dist/facades/index.js +3 -3
  77. package/dist/facades/index.js.map +1 -1
  78. package/dist/http/index.js +2 -2
  79. package/dist/http/index.js.map +1 -1
  80. package/dist/i18n/index.js +1 -1
  81. package/dist/kernel/index.js +2 -2
  82. package/dist/kernel/index.js.map +1 -1
  83. package/dist/server/index.js +2 -2
  84. package/dist/server/index.js.map +1 -1
  85. package/dist/services/index.js +31 -31
  86. package/dist/services/index.js.map +4 -4
  87. package/package.json +1 -1
  88. package/dist/chunk-0ps9hn9y.js +0 -4
  89. package/dist/chunk-4qwf2gg1.js +0 -4
  90. package/dist/chunk-6d8cntk1.js +0 -4
  91. package/dist/chunk-6j1vmddb.js +0 -4
  92. package/dist/chunk-ay6w965p.js +0 -4
  93. package/dist/chunk-azv9jndn.js +0 -5
  94. package/dist/chunk-cqn8e9s6.js +0 -4
  95. package/dist/chunk-h0j7tp3c.js +0 -5
  96. package/dist/chunk-kf91mqnv.js +0 -27
  97. package/dist/chunk-p86br05j.js +0 -4
  98. package/dist/chunk-q462zzyt.js +0 -5
  99. package/dist/chunk-qagjgdjv.js +0 -4
  100. package/dist/chunk-qeznpdx3.js +0 -4
  101. package/dist/chunk-qeznpdx3.js.map +0 -10
  102. package/dist/chunk-rsgc07e5.js +0 -8
  103. package/dist/chunk-sj4p2cqp.js +0 -4
  104. /package/dist/{chunk-1g5hx2rt.js.map → chunk-g1pmzbbw.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{G as u4,H as t4,I as G1,J as J6,K as a0,L as E0,M as w0,O as i4,P as s8,Q as N8,R as N0}from"../http/index.js";import{U as C0}from"../chunk-y0z99vzf.js";import{V as lK}from"../chunk-mtbjk5px.js";import{nc as i8,pc as g1,qc as G$}from"../chunk-ptar9njs.js";import{rc as p4}from"../chunk-sj4p2cqp.js";import{tc as l0}from"../chunk-0way950q.js";import{vc as e0,wc as y0,xc as aW}from"../chunk-e9dcgqt7.js";var z9=y0((LV,H9)=>{var $6=0,Y9=-3;function j8(){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 j8,this.dtree=new j8}var X9=new j8,Z9=new j8,V6=new Uint8Array(30),B6=new Uint16Array(30),Q9=new Uint8Array(30),w9=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]),e4=new j8,M1=new Uint8Array(320);function W9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function ZY(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var J9=new Uint16Array(16);function z6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)J9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[J9[K[Y+Z]]++]=Z}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 O1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function U6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function wY(J,K,Y){var X,Z,Q,w,H,W;X=O1(J,5,257),Z=O1(J,5,1),Q=O1(J,4,4);for(w=0;w<19;++w)M1[w]=0;for(w=0;w<Q;++w){var z=O1(J,3,0);M1[XY[w]]=z}z6(e4,M1,0,19);for(H=0;H<X+Z;){var U=U6(J,e4);switch(U){case 16:var $=M1[H-1];for(W=O1(J,2,3);W;--W)M1[H++]=$;break;case 17:for(W=O1(J,3,3);W;--W)M1[H++]=0;break;case 18:for(W=O1(J,7,11);W;--W)M1[H++]=0;break;default:M1[H++]=U;break}}z6(K,M1,0,X),z6(Y,M1,X,Z)}function K9(J,K,Y){while(!0){var X=U6(J,K);if(X===256)return $6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,w,H;X-=257,Z=O1(J,V6[X],B6[X]),Q=U6(J,Y),w=J.destLen-O1(J,Q9[Q],w9[Q]);for(H=w;H<w+Z;++H)J.dest[J.destLen++]=J.dest[H]}}}function WY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return Y9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,$6}function HY(J,K){var Y=new YY(J,K),X,Z,Q;do{switch(X=QY(Y),Z=O1(Y,2,0),Z){case 0:Q=WY(Y);break;case 1:Q=K9(Y,X9,Z9);break;case 2:wY(Y,Y.ltree,Y.dtree),Q=K9(Y,Y.ltree,Y.dtree);break;default:Q=Y9}if(Q!==$6)throw new Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}ZY(X9,Z9);W9(V6,B6,4,3);W9(Q9,w9,2,1);V6[28]=0;B6[28]=258;H9.exports=HY});var V9=y0((jV,$9)=>{var zY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,U9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},UY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)U9(J,Y,Y+3),U9(J,Y+1,Y+2)},$Y=(J)=>{if(zY)UY(J)};$9.exports={swap32LE:$Y}});var G9=y0((FV,A9)=>{var B9=z9(),{swap32LE:VY}=V9();class q9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=B9(J,new Uint8Array(Y)),J=B9(J,new Uint8Array(Y)),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]}}A9.exports=q9});var M9=y0((t8)=>{var BY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array!=="undefined"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,w=65,H=45,W=95;function z(V){var B=V.charCodeAt(0);if(B===Y||B===H)return 62;if(B===X||B===W)return 63;if(B<Z)return-1;if(B<Z+10)return B-Z+26+26;if(B<w+26)return B-w;if(B<Q+26)return B-Q+26}function U(V){var B,M,A,G,N,L;if(V.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=V.length;N=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,L=new K(V.length*3/4-N),A=N>0?V.length-4:V.length;var D=0;function _(j){L[D++]=j}for(B=0,M=0;B<A;B+=4,M+=3)G=z(V.charAt(B))<<18|z(V.charAt(B+1))<<12|z(V.charAt(B+2))<<6|z(V.charAt(B+3)),_((G&16711680)>>16),_((G&65280)>>8),_(G&255);if(N===2)G=z(V.charAt(B))<<2|z(V.charAt(B+1))>>4,_(G&255);else if(N===1)G=z(V.charAt(B))<<10|z(V.charAt(B+1))<<4|z(V.charAt(B+2))>>2,_(G>>8&255),_(G&255);return L}function $(V){var B,M=V.length%3,A="",G,N;function L(D){return BY.charAt(D)}function E(D){return L(D>>18&63)+L(D>>12&63)+L(D>>6&63)+L(D&63)}for(B=0,N=V.length-M;B<N;B+=3)G=(V[B]<<16)+(V[B+1]<<8)+V[B+2],A+=E(G);switch(M){case 1:G=V[V.length-1],A+=L(G>>2),A+=L(G<<4&63),A+="==";break;case 2:G=(V[V.length-2]<<8)+V[V.length-1],A+=L(G>>10),A+=L(G>>4&63),A+=L(G<<2&63),A+="=";break}return A}J.toByteArray=U,J.fromByteArray=$})(typeof t8==="undefined"?t8.base64js={}:t8)});var C9=y0((RV,T9)=>{var M6=40,O6=41,K5=39,N6=34,L6=92,z8=47,j6=44,F6=58,Y5=42,IY=117,TY=85,CY=43,PY=/^[a-f0-9?-]+$/i;T9.exports=function(J){var K=[],Y=J,X,Z,Q,w,H,W,z,U,$=0,V=Y.charCodeAt($),B=Y.length,M=[{nodes:K}],A=0,G,N="",L="",E="";while($<B)if(V<=32){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(w=Y.slice($,X),Q=K[K.length-1],V===O6&&A)E=w;else if(Q&&Q.type==="div")Q.after=w,Q.sourceEndIndex+=w.length;else if(V===j6||V===F6||V===z8&&Y.charCodeAt(X+1)!==Y5&&(!G||G&&G.type==="function"&&G.value!=="calc"))L=w;else K.push({type:"space",sourceIndex:$,sourceEndIndex:X,value:w});$=X}else if(V===K5||V===N6){X=$,Z=V===K5?"'":'"',w={type:"string",sourceIndex:$,quote:Z};do if(H=!1,X=Y.indexOf(Z,X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,H=!H}else Y+=Z,X=Y.length-1,w.unclosed=!0;while(H);w.value=Y.slice($+1,X),w.sourceEndIndex=w.unclosed?X:X+1,K.push(w),$=X+1,V=Y.charCodeAt($)}else if(V===z8&&Y.charCodeAt($+1)===Y5){if(X=Y.indexOf("*/",$),w={type:"comment",sourceIndex:$,sourceEndIndex:X+2},X===-1)w.unclosed=!0,X=Y.length,w.sourceEndIndex=X;w.value=Y.slice($+2,X),K.push(w),$=X+2,V=Y.charCodeAt($)}else if((V===z8||V===Y5)&&G&&G.type==="function"&&G.value==="calc")w=Y[$],K.push({type:"word",sourceIndex:$-L.length,sourceEndIndex:$+w.length,value:w}),$+=1,V=Y.charCodeAt($);else if(V===z8||V===j6||V===F6)w=Y[$],K.push({type:"div",sourceIndex:$-L.length,sourceEndIndex:$+w.length,value:w,before:L,after:""}),L="",$+=1,V=Y.charCodeAt($);else if(M6===V){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(U=$,w={type:"function",sourceIndex:$-N.length,value:N,before:Y.slice(U+1,X)},$=X,N==="url"&&V!==K5&&V!==N6){X-=1;do if(H=!1,X=Y.indexOf(")",X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,H=!H}else Y+=")",X=Y.length-1,w.unclosed=!0;while(H);z=X;do z-=1,V=Y.charCodeAt(z);while(V<=32);if(U<z){if($!==z+1)w.nodes=[{type:"word",sourceIndex:$,sourceEndIndex:z+1,value:Y.slice($,z+1)}];else w.nodes=[];if(w.unclosed&&z+1!==X)w.after="",w.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else w.after=Y.slice(z+1,X),w.sourceEndIndex=X}else w.after="",w.nodes=[];$=X+1,w.sourceEndIndex=w.unclosed?X:$,V=Y.charCodeAt($),K.push(w)}else A+=1,w.after="",w.sourceEndIndex=$+1,K.push(w),M.push(w),K=w.nodes=[],G=w;N=""}else if(O6===V&&A)$+=1,V=Y.charCodeAt($),G.after=E,G.sourceEndIndex+=E.length,E="",A-=1,M[M.length-1].sourceEndIndex=$,M.pop(),G=M[A],K=G.nodes;else{X=$;do{if(V===L6)X+=1;X+=1,V=Y.charCodeAt(X)}while(X<B&&!(V<=32||V===K5||V===N6||V===j6||V===F6||V===z8||V===M6||V===Y5&&G&&G.type==="function"&&G.value==="calc"||V===z8&&G.type==="function"&&G.value==="calc"||V===O6&&A));if(w=Y.slice($,X),M6===V)N=w;else if((IY===w.charCodeAt(0)||TY===w.charCodeAt(0))&&CY===w.charCodeAt(1)&&PY.test(w.slice(2)))K.push({type:"unicode-range",sourceIndex:$,sourceEndIndex:X,value:w});else K.push({type:"word",sourceIndex:$,sourceEndIndex:X,value:w});$=X}for($=M.length-1;$;$-=1)M[$].unclosed=!0,M[$].sourceEndIndex=Y.length;return M[0].nodes}});var S9=y0((DV,P9)=>{P9.exports=function J(K,Y,X){var Z,Q,w,H;for(Z=0,Q=K.length;Z<Q;Z+=1){if(w=K[Z],!X)H=Y(w,Z,K);if(H!==!1&&w.type==="function"&&Array.isArray(w.nodes))J(w.nodes,Y,X);if(X)Y(w,Z,K)}}});var g9=y0((IV,k9)=>{function v9(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=y9(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function y9(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=v9(J[X],K)+Y;return Y}return v9(J,K)}k9.exports=y9});var x9=y0((TV,h9)=>{var X5=45,Z5=43,E6=46,SY=101,vY=69;function yY(J){var K=J.charCodeAt(0),Y;if(K===Z5||K===X5){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===E6&&X>=48&&X<=57)return!0;return!1}if(K===E6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}h9.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!yY(J))return!1;if(X=J.charCodeAt(K),X===Z5||X===X5)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===E6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===SY||X===vY)&&(Z>=48&&Z<=57||(Z===Z5||Z===X5)&&Q>=48&&Q<=57)){K+=Z===Z5||Z===X5?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var _6=y0((CV,f9)=>{var kY=C9(),b9=S9(),m9=g9();function h1(J){if(this instanceof h1)return this.nodes=kY(J),this;return new h1(J)}h1.prototype.toString=function(){return Array.isArray(this.nodes)?m9(this.nodes):""};h1.prototype.walk=function(J,K){return b9(this.nodes,J,K),this};h1.unit=x9();h1.walk=b9;h1.stringify=m9;f9.exports=h1});var c9=y0((PV,l9)=>{l9.exports=function(J){if(typeof J==="string")return d9(J);return R6(J)};function R6(J){if(!J||typeof J!=="object")return J;if(hY(J)||xY(J))return J;if(gY(J))return fY(J,R6);return dY(mY(J),function(K,Y){var X=d9(Y);return K[X]=R6(J[Y]),K},{})}function d9(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var gY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},hY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},xY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},bY=Object.prototype.hasOwnProperty,mY=Object.keys||function(J){var K=[];for(var Y in J)if(bY.call(J,Y))K.push(Y);return K};function fY(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function dY(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var u9=y0((SV,lY)=>{lY.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 w5=y0((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});function P6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var r9=_6(),cY=P6(r9),uY=P6(c9()),pY=P6(u9()),iY=function J(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},rY=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,oY=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,nY=function J(K){if(K.type==="word"&&(rY.test(K.value)||(K.value in pY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&oY.test(K.value))return r9.stringify(K);return null},sY=/^(none)$/i,aY=/^(auto)$/i,tY=/(^-?[_a-z][_a-z0-9-]*$)/i,eY=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,JX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,KX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,YX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,XX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,S6=function J(K){return function(Y){return K(Y)?"<token>":null}},ZX=function J(K){return function(Y){return Y.type===K?Y.value:null}},P0=function J(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},v0=S6(function(J){return J.type==="space"}),o9=S6(function(J){return J.type==="div"&&J.value==="/"}),QX=S6(function(J){return J.type==="div"&&J.value===","}),wX=ZX("word"),v6=P0(sY),T6=P0(aY),$8=P0(eY,Number),i0=P0(JX,Number),R1=P0(KX),n9=P0(YX,function(J){return J.toLowerCase()}),y6=P0(XX),Q5=P0(tY),WX=iY,E8=nY,C6=P0(/^(none|underline|line-through)$/i),HX=function J(K){var Y=K.expect($8);if(K.hasTokens())K.expect(o9),Y/=K.expect($8);return{aspectRatio:Y}},zX=P0(/^(solid|dashed|dotted)$/),UX=1,$X="black",VX="solid",BX=function J(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))Y=K.lastValue;else if(X===void 0&&K.matches(E8))X=K.lastValue;else if(Z===void 0&&K.matches(zX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=UX;if(X===void 0)X=$X;if(Z===void 0)Z=VX;return{borderWidth:Y,borderColor:X,borderStyle:Z}},_8=function J(K){var Y=K.types,X=Y===void 0?[i0,R1,y6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,w=K.prefix,H=w===void 0?"":w,W=K.suffix,z=W===void 0?"":W;return function(U){var $,V=[];V.push(U.expect.apply(U,X));while(V.length<4&&U.hasTokens())U.expect(v0),V.push(U.expect.apply(U,X));U.expectEmpty();var B=V[0],M=V[1],A=M===void 0?B:M,G=V[2],N=G===void 0?B:G,L=V[3],E=L===void 0?A:L,D=function _(j){return""+H+Q[j]+z};return $={},$[D(0)]=B,$[D(1)]=A,$[D(2)]=N,$[D(3)]=E,$}},s9=function J(K){var Y=K.expect(i0),X=K.matches(v0)?K.expect(i0):Y;return K.expectEmpty(),{width:Y,height:X}},a9=function J(K){var Y,X,Z,Q;if(K.matches(v6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var w=!1;while(K.hasTokens()){if(w)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))if(Y=K.lastValue,K.expect(v0),X=K.expect(i0,R1),K.saveRewindPoint(),K.matches(v0)&&K.matches(i0,R1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(E8))Q=K.lastValue;else K.throw();w=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},qX=function J(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},AX=1,GX=1,MX=0,OX=function J(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(T6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches($8))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(v0)&&K.matches($8))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(i0,R1,y6))Z=K.lastValue;else if(Z===void 0&&K.matches(T6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=AX;if(X===void 0)X=GX;if(Z===void 0)Z=MX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},NX=P0(/(nowrap|wrap|wrap-reverse)/),LX=P0(/(row|row-reverse|column|column-reverse)/),jX="nowrap",FX="row",EX=function J(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(v0);if(Y===void 0&&K.matches(NX))Y=K.lastValue;else if(X===void 0&&K.matches(LX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=jX;if(X===void 0)X=FX;return{flexWrap:Y,flexDirection:X}},t9=function J(K){var Y;if(K.matches(WX))Y=K.lastValue;else{Y=K.expect(Q5);while(K.hasTokens()){K.expect(v0);var X=K.expect(Q5);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},_X=P0(/^(normal)$/),RX=P0(/^(italic)$/),DX=P0(/^([1-9]00|bold)$/),IX=P0(/^(small-caps)$/),TX="normal",CX="normal",PX=[],SX=function J(K){var Y,X,Z,Q,w=0;while(w<3&&K.hasTokens()){if(K.matches(_X));else if(Y===void 0&&K.matches(RX))Y=K.lastValue;else if(X===void 0&&K.matches(DX))X=K.lastValue;else if(Z===void 0&&K.matches(IX))Z=[K.lastValue];else break;K.expect(v0),w+=1}var H=K.expect(i0,R1);if(K.matches(o9))Q=K.expect(i0,R1);K.expect(v0);var W=t9(K),z=W.fontFamily;if(Y===void 0)Y=TX;if(X===void 0)X=CX;if(Z===void 0)Z=PX;var U={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:H,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},vX=function J(K){var Y=[K.expect(Q5)];while(K.hasTokens())K.expect(v0),Y.push(K.expect(Q5));return{fontVariant:Y}},yX=P0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),kX=P0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),gX=function J(K){var Y=K.expect(yX),X;if(K.hasTokens())K.expect(v0),X=K.expect(kX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},hX=P0(/^(solid|double|dotted|dashed)$/),xX="none",bX="solid",mX="black",fX=function J(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(v0);if(Y===void 0&&K.matches(C6)){var w=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),w[0]!=="none"&&K.matches(v0)&&K.matches(C6))w.push(K.lastValue.toLowerCase()),w.sort().reverse();else K.rewind();Y=w.join(" ")}else if(X===void 0&&K.matches(hX))X=K.lastValue;else if(Z===void 0&&K.matches(E8))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:xX,textDecorationColor:Z!==void 0?Z:mX,textDecorationStyle:X!==void 0?X:bX}},dX=function J(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);Y.push(K.expect(C6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},lX=function J(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},k6=function J(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},D6=k6($8),p9=k6(i0),U8=k6(n9),g6=function J(K){return function(Y,X){return function(Z){var Q,w,H=Z.expect(K),W;if(Z.hasTokens())Z.expect(QX),W=Z.expect(K);else if(X!==void 0)W=X;else return H;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=W,Q),(w={},w[Y+"X"]=H,w)]}}},cX=g6($8),uX=g6(i0),pX=g6(n9),iX={perspective:D6,scale:cX("scale"),scaleX:D6,scaleY:D6,translate:uX("translate",0),translateX:p9,translateY:p9,rotate:U8,rotateX:U8,rotateY:U8,rotateZ:U8,skewX:U8,skewY:U8,skew:pX("skew","0deg")},rX=function J(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);var Z=K.expectFunction(),Q=Z.functionName,w=iX[Q](Z);if(!Array.isArray(w)){var H;w=[(H={},H[Q]=w,H)]}Y=w.concat(Y),X=!0}return{transform:Y}},oX=function J(K){return{backgroundColor:K.expect(E8)}},nX=_8({types:[E8],prefix:"border",suffix:"Color"}),sX=_8({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),aX=_8({prefix:"border",suffix:"Width"}),tX=_8({types:[i0,R1,y6,T6],prefix:"margin"}),eX=_8({prefix:"padding"}),JZ=function J(K){return{fontWeight:K.expect(wX)}},KZ=function J(K){return{shadowOffset:s9(K)}},YZ=function J(K){return{textShadowOffset:s9(K)}},e9={aspectRatio:HX,background:oX,border:BX,borderColor:nX,borderRadius:sX,borderWidth:aX,boxShadow:qX,flex:OX,flexFlow:EX,font:SX,fontFamily:t9,fontVariant:vX,fontWeight:JZ,margin:tX,padding:eX,placeContent:gX,shadowOffset:KZ,textShadow:lX,textShadowOffset:YZ,textDecoration:fX,textDecorationLine:dX,transform:rX},i9,vV=i9!=null?new RegExp(i9.join("|")):null,I6="SYMBOL_MATCH",XZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function Y(){return this.index<=this.nodes.length-1},K[I6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function Y(){return this[I6].apply(this,arguments)!==null},K.expect=function Y(){var X=this[I6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function Y(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function Y(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function Y(){if(this.hasTokens())this.throw()},K.throw=function Y(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function Y(){this.rewindIndex=this.index},K.rewind=function Y(){if(this.rewindIndex===-1)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),ZZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,QZ=/^true|false$/i,wZ=/^null$/i,WZ=/^undefined$/i,J7=function J(K,Y){if(!1)var X,Z;var Q=Y.match(ZZ);if(Q!==null)return Number(Q[1]);var w=Y.match(QZ);if(w!==null)return w[0].toLowerCase()==="true";var H=Y.match(wZ);if(H!==null)return null;var W=Y.match(WZ);if(W!==null)return;return Y},HZ=function J(K,Y){var X=cY(Y),Z=new XZ(X.nodes);return e9[K](Z)},zZ=HZ,K7=function J(K,Y,X){var Z,Q=X===!1||!(K in e9),w=Y.trim(),H=Q?(Z={},Z[K]=J7(K,w),Z):zZ(K,w);return H},Y7=function J(K){var Y=/^--\w+/.test(K);if(Y)return K;return uY(K)},UZ=function J(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=Y7(Z[0]),w=Z[1],H=Y.indexOf(Q)===-1;return Object.assign(X,K7(Q,w,H))},{})};X7.default=UZ;X7.getPropertyName=Y7;X7.getStylesForProperty=K7;X7.transformRawValue=J7});var Q7=y0((Z7,W5)=>{/*!
2
+ import{G as u4,H as t4,I as G1,J as J6,K as a0,L as E0,M as w0,O as i4,P as s8,Q as N8,R as N0}from"../http/index.js";import{U as C0}from"../chunk-kbmhhmg4.js";import{V as lK}from"../chunk-mtbjk5px.js";import{tc as i8,vc as g1,wc as G$}from"../chunk-2wsmhvhf.js";import{xc as p4}from"../chunk-catb1gz8.js";import{zc as l0}from"../chunk-wnq14j8v.js";import{Bc as e0,Cc as y0,Dc as aW}from"../chunk-ebcx322z.js";var z9=y0((LV,H9)=>{var $6=0,Y9=-3;function j8(){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 j8,this.dtree=new j8}var X9=new j8,Z9=new j8,V6=new Uint8Array(30),B6=new Uint16Array(30),Q9=new Uint8Array(30),w9=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]),e4=new j8,M1=new Uint8Array(320);function W9(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function ZY(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var J9=new Uint16Array(16);function z6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)J9[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[J9[K[Y+Z]]++]=Z}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 O1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function U6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function wY(J,K,Y){var X,Z,Q,w,H,W;X=O1(J,5,257),Z=O1(J,5,1),Q=O1(J,4,4);for(w=0;w<19;++w)M1[w]=0;for(w=0;w<Q;++w){var z=O1(J,3,0);M1[XY[w]]=z}z6(e4,M1,0,19);for(H=0;H<X+Z;){var U=U6(J,e4);switch(U){case 16:var $=M1[H-1];for(W=O1(J,2,3);W;--W)M1[H++]=$;break;case 17:for(W=O1(J,3,3);W;--W)M1[H++]=0;break;case 18:for(W=O1(J,7,11);W;--W)M1[H++]=0;break;default:M1[H++]=U;break}}z6(K,M1,0,X),z6(Y,M1,X,Z)}function K9(J,K,Y){while(!0){var X=U6(J,K);if(X===256)return $6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,w,H;X-=257,Z=O1(J,V6[X],B6[X]),Q=U6(J,Y),w=J.destLen-O1(J,Q9[Q],w9[Q]);for(H=w;H<w+Z;++H)J.dest[J.destLen++]=J.dest[H]}}}function WY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return Y9;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,$6}function HY(J,K){var Y=new YY(J,K),X,Z,Q;do{switch(X=QY(Y),Z=O1(Y,2,0),Z){case 0:Q=WY(Y);break;case 1:Q=K9(Y,X9,Z9);break;case 2:wY(Y,Y.ltree,Y.dtree),Q=K9(Y,Y.ltree,Y.dtree);break;default:Q=Y9}if(Q!==$6)throw new Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}ZY(X9,Z9);W9(V6,B6,4,3);W9(Q9,w9,2,1);V6[28]=0;B6[28]=258;H9.exports=HY});var V9=y0((jV,$9)=>{var zY=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,U9=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},UY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)U9(J,Y,Y+3),U9(J,Y+1,Y+2)},$Y=(J)=>{if(zY)UY(J)};$9.exports={swap32LE:$Y}});var G9=y0((FV,A9)=>{var B9=z9(),{swap32LE:VY}=V9();class q9{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=B9(J,new Uint8Array(Y)),J=B9(J,new Uint8Array(Y)),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]}}A9.exports=q9});var M9=y0((t8)=>{var BY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array!=="undefined"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,w=65,H=45,W=95;function z(V){var B=V.charCodeAt(0);if(B===Y||B===H)return 62;if(B===X||B===W)return 63;if(B<Z)return-1;if(B<Z+10)return B-Z+26+26;if(B<w+26)return B-w;if(B<Q+26)return B-Q+26}function U(V){var B,M,A,G,N,L;if(V.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=V.length;N=V.charAt(E-2)==="="?2:V.charAt(E-1)==="="?1:0,L=new K(V.length*3/4-N),A=N>0?V.length-4:V.length;var D=0;function _(j){L[D++]=j}for(B=0,M=0;B<A;B+=4,M+=3)G=z(V.charAt(B))<<18|z(V.charAt(B+1))<<12|z(V.charAt(B+2))<<6|z(V.charAt(B+3)),_((G&16711680)>>16),_((G&65280)>>8),_(G&255);if(N===2)G=z(V.charAt(B))<<2|z(V.charAt(B+1))>>4,_(G&255);else if(N===1)G=z(V.charAt(B))<<10|z(V.charAt(B+1))<<4|z(V.charAt(B+2))>>2,_(G>>8&255),_(G&255);return L}function $(V){var B,M=V.length%3,A="",G,N;function L(D){return BY.charAt(D)}function E(D){return L(D>>18&63)+L(D>>12&63)+L(D>>6&63)+L(D&63)}for(B=0,N=V.length-M;B<N;B+=3)G=(V[B]<<16)+(V[B+1]<<8)+V[B+2],A+=E(G);switch(M){case 1:G=V[V.length-1],A+=L(G>>2),A+=L(G<<4&63),A+="==";break;case 2:G=(V[V.length-2]<<8)+V[V.length-1],A+=L(G>>10),A+=L(G>>4&63),A+=L(G<<2&63),A+="=";break}return A}J.toByteArray=U,J.fromByteArray=$})(typeof t8==="undefined"?t8.base64js={}:t8)});var C9=y0((RV,T9)=>{var M6=40,O6=41,K5=39,N6=34,L6=92,z8=47,j6=44,F6=58,Y5=42,IY=117,TY=85,CY=43,PY=/^[a-f0-9?-]+$/i;T9.exports=function(J){var K=[],Y=J,X,Z,Q,w,H,W,z,U,$=0,V=Y.charCodeAt($),B=Y.length,M=[{nodes:K}],A=0,G,N="",L="",E="";while($<B)if(V<=32){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(w=Y.slice($,X),Q=K[K.length-1],V===O6&&A)E=w;else if(Q&&Q.type==="div")Q.after=w,Q.sourceEndIndex+=w.length;else if(V===j6||V===F6||V===z8&&Y.charCodeAt(X+1)!==Y5&&(!G||G&&G.type==="function"&&G.value!=="calc"))L=w;else K.push({type:"space",sourceIndex:$,sourceEndIndex:X,value:w});$=X}else if(V===K5||V===N6){X=$,Z=V===K5?"'":'"',w={type:"string",sourceIndex:$,quote:Z};do if(H=!1,X=Y.indexOf(Z,X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,H=!H}else Y+=Z,X=Y.length-1,w.unclosed=!0;while(H);w.value=Y.slice($+1,X),w.sourceEndIndex=w.unclosed?X:X+1,K.push(w),$=X+1,V=Y.charCodeAt($)}else if(V===z8&&Y.charCodeAt($+1)===Y5){if(X=Y.indexOf("*/",$),w={type:"comment",sourceIndex:$,sourceEndIndex:X+2},X===-1)w.unclosed=!0,X=Y.length,w.sourceEndIndex=X;w.value=Y.slice($+2,X),K.push(w),$=X+2,V=Y.charCodeAt($)}else if((V===z8||V===Y5)&&G&&G.type==="function"&&G.value==="calc")w=Y[$],K.push({type:"word",sourceIndex:$-L.length,sourceEndIndex:$+w.length,value:w}),$+=1,V=Y.charCodeAt($);else if(V===z8||V===j6||V===F6)w=Y[$],K.push({type:"div",sourceIndex:$-L.length,sourceEndIndex:$+w.length,value:w,before:L,after:""}),L="",$+=1,V=Y.charCodeAt($);else if(M6===V){X=$;do X+=1,V=Y.charCodeAt(X);while(V<=32);if(U=$,w={type:"function",sourceIndex:$-N.length,value:N,before:Y.slice(U+1,X)},$=X,N==="url"&&V!==K5&&V!==N6){X-=1;do if(H=!1,X=Y.indexOf(")",X+1),~X){W=X;while(Y.charCodeAt(W-1)===L6)W-=1,H=!H}else Y+=")",X=Y.length-1,w.unclosed=!0;while(H);z=X;do z-=1,V=Y.charCodeAt(z);while(V<=32);if(U<z){if($!==z+1)w.nodes=[{type:"word",sourceIndex:$,sourceEndIndex:z+1,value:Y.slice($,z+1)}];else w.nodes=[];if(w.unclosed&&z+1!==X)w.after="",w.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else w.after=Y.slice(z+1,X),w.sourceEndIndex=X}else w.after="",w.nodes=[];$=X+1,w.sourceEndIndex=w.unclosed?X:$,V=Y.charCodeAt($),K.push(w)}else A+=1,w.after="",w.sourceEndIndex=$+1,K.push(w),M.push(w),K=w.nodes=[],G=w;N=""}else if(O6===V&&A)$+=1,V=Y.charCodeAt($),G.after=E,G.sourceEndIndex+=E.length,E="",A-=1,M[M.length-1].sourceEndIndex=$,M.pop(),G=M[A],K=G.nodes;else{X=$;do{if(V===L6)X+=1;X+=1,V=Y.charCodeAt(X)}while(X<B&&!(V<=32||V===K5||V===N6||V===j6||V===F6||V===z8||V===M6||V===Y5&&G&&G.type==="function"&&G.value==="calc"||V===z8&&G.type==="function"&&G.value==="calc"||V===O6&&A));if(w=Y.slice($,X),M6===V)N=w;else if((IY===w.charCodeAt(0)||TY===w.charCodeAt(0))&&CY===w.charCodeAt(1)&&PY.test(w.slice(2)))K.push({type:"unicode-range",sourceIndex:$,sourceEndIndex:X,value:w});else K.push({type:"word",sourceIndex:$,sourceEndIndex:X,value:w});$=X}for($=M.length-1;$;$-=1)M[$].unclosed=!0,M[$].sourceEndIndex=Y.length;return M[0].nodes}});var S9=y0((DV,P9)=>{P9.exports=function J(K,Y,X){var Z,Q,w,H;for(Z=0,Q=K.length;Z<Q;Z+=1){if(w=K[Z],!X)H=Y(w,Z,K);if(H!==!1&&w.type==="function"&&Array.isArray(w.nodes))J(w.nodes,Y,X);if(X)Y(w,Z,K)}}});var g9=y0((IV,k9)=>{function v9(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=y9(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function y9(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=v9(J[X],K)+Y;return Y}return v9(J,K)}k9.exports=y9});var x9=y0((TV,h9)=>{var X5=45,Z5=43,E6=46,SY=101,vY=69;function yY(J){var K=J.charCodeAt(0),Y;if(K===Z5||K===X5){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===E6&&X>=48&&X<=57)return!0;return!1}if(K===E6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}h9.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!yY(J))return!1;if(X=J.charCodeAt(K),X===Z5||X===X5)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===E6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===SY||X===vY)&&(Z>=48&&Z<=57||(Z===Z5||Z===X5)&&Q>=48&&Q<=57)){K+=Z===Z5||Z===X5?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var _6=y0((CV,f9)=>{var kY=C9(),b9=S9(),m9=g9();function h1(J){if(this instanceof h1)return this.nodes=kY(J),this;return new h1(J)}h1.prototype.toString=function(){return Array.isArray(this.nodes)?m9(this.nodes):""};h1.prototype.walk=function(J,K){return b9(this.nodes,J,K),this};h1.unit=x9();h1.walk=b9;h1.stringify=m9;f9.exports=h1});var c9=y0((PV,l9)=>{l9.exports=function(J){if(typeof J==="string")return d9(J);return R6(J)};function R6(J){if(!J||typeof J!=="object")return J;if(hY(J)||xY(J))return J;if(gY(J))return fY(J,R6);return dY(mY(J),function(K,Y){var X=d9(Y);return K[X]=R6(J[Y]),K},{})}function d9(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var gY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},hY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},xY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},bY=Object.prototype.hasOwnProperty,mY=Object.keys||function(J){var K=[];for(var Y in J)if(bY.call(J,Y))K.push(Y);return K};function fY(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function dY(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var u9=y0((SV,lY)=>{lY.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 w5=y0((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});function P6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var r9=_6(),cY=P6(r9),uY=P6(c9()),pY=P6(u9()),iY=function J(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},rY=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,oY=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,nY=function J(K){if(K.type==="word"&&(rY.test(K.value)||(K.value in pY)||K.value==="transparent"))return K.value;else if(K.type==="function"&&oY.test(K.value))return r9.stringify(K);return null},sY=/^(none)$/i,aY=/^(auto)$/i,tY=/(^-?[_a-z][_a-z0-9-]*$)/i,eY=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,JX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,KX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,YX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,XX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,S6=function J(K){return function(Y){return K(Y)?"<token>":null}},ZX=function J(K){return function(Y){return Y.type===K?Y.value:null}},P0=function J(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},v0=S6(function(J){return J.type==="space"}),o9=S6(function(J){return J.type==="div"&&J.value==="/"}),QX=S6(function(J){return J.type==="div"&&J.value===","}),wX=ZX("word"),v6=P0(sY),T6=P0(aY),$8=P0(eY,Number),i0=P0(JX,Number),R1=P0(KX),n9=P0(YX,function(J){return J.toLowerCase()}),y6=P0(XX),Q5=P0(tY),WX=iY,E8=nY,C6=P0(/^(none|underline|line-through)$/i),HX=function J(K){var Y=K.expect($8);if(K.hasTokens())K.expect(o9),Y/=K.expect($8);return{aspectRatio:Y}},zX=P0(/^(solid|dashed|dotted)$/),UX=1,$X="black",VX="solid",BX=function J(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))Y=K.lastValue;else if(X===void 0&&K.matches(E8))X=K.lastValue;else if(Z===void 0&&K.matches(zX))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=UX;if(X===void 0)X=$X;if(Z===void 0)Z=VX;return{borderWidth:Y,borderColor:X,borderStyle:Z}},_8=function J(K){var Y=K.types,X=Y===void 0?[i0,R1,y6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,w=K.prefix,H=w===void 0?"":w,W=K.suffix,z=W===void 0?"":W;return function(U){var $,V=[];V.push(U.expect.apply(U,X));while(V.length<4&&U.hasTokens())U.expect(v0),V.push(U.expect.apply(U,X));U.expectEmpty();var B=V[0],M=V[1],A=M===void 0?B:M,G=V[2],N=G===void 0?B:G,L=V[3],E=L===void 0?A:L,D=function _(j){return""+H+Q[j]+z};return $={},$[D(0)]=B,$[D(1)]=A,$[D(2)]=N,$[D(3)]=E,$}},s9=function J(K){var Y=K.expect(i0),X=K.matches(v0)?K.expect(i0):Y;return K.expectEmpty(),{width:Y,height:X}},a9=function J(K){var Y,X,Z,Q;if(K.matches(v6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var w=!1;while(K.hasTokens()){if(w)K.expect(v0);if(Y===void 0&&K.matches(i0,R1))if(Y=K.lastValue,K.expect(v0),X=K.expect(i0,R1),K.saveRewindPoint(),K.matches(v0)&&K.matches(i0,R1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(E8))Q=K.lastValue;else K.throw();w=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},qX=function J(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},AX=1,GX=1,MX=0,OX=function J(K){var Y,X,Z;if(K.matches(v6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(T6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(v0);if(Y===void 0&&K.matches($8))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(v0)&&K.matches($8))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(i0,R1,y6))Z=K.lastValue;else if(Z===void 0&&K.matches(T6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=AX;if(X===void 0)X=GX;if(Z===void 0)Z=MX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},NX=P0(/(nowrap|wrap|wrap-reverse)/),LX=P0(/(row|row-reverse|column|column-reverse)/),jX="nowrap",FX="row",EX=function J(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(v0);if(Y===void 0&&K.matches(NX))Y=K.lastValue;else if(X===void 0&&K.matches(LX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=jX;if(X===void 0)X=FX;return{flexWrap:Y,flexDirection:X}},t9=function J(K){var Y;if(K.matches(WX))Y=K.lastValue;else{Y=K.expect(Q5);while(K.hasTokens()){K.expect(v0);var X=K.expect(Q5);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},_X=P0(/^(normal)$/),RX=P0(/^(italic)$/),DX=P0(/^([1-9]00|bold)$/),IX=P0(/^(small-caps)$/),TX="normal",CX="normal",PX=[],SX=function J(K){var Y,X,Z,Q,w=0;while(w<3&&K.hasTokens()){if(K.matches(_X));else if(Y===void 0&&K.matches(RX))Y=K.lastValue;else if(X===void 0&&K.matches(DX))X=K.lastValue;else if(Z===void 0&&K.matches(IX))Z=[K.lastValue];else break;K.expect(v0),w+=1}var H=K.expect(i0,R1);if(K.matches(o9))Q=K.expect(i0,R1);K.expect(v0);var W=t9(K),z=W.fontFamily;if(Y===void 0)Y=TX;if(X===void 0)X=CX;if(Z===void 0)Z=PX;var U={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:H,fontFamily:z};if(Q!==void 0)U.lineHeight=Q;return U},vX=function J(K){var Y=[K.expect(Q5)];while(K.hasTokens())K.expect(v0),Y.push(K.expect(Q5));return{fontVariant:Y}},yX=P0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),kX=P0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),gX=function J(K){var Y=K.expect(yX),X;if(K.hasTokens())K.expect(v0),X=K.expect(kX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},hX=P0(/^(solid|double|dotted|dashed)$/),xX="none",bX="solid",mX="black",fX=function J(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(v0);if(Y===void 0&&K.matches(C6)){var w=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),w[0]!=="none"&&K.matches(v0)&&K.matches(C6))w.push(K.lastValue.toLowerCase()),w.sort().reverse();else K.rewind();Y=w.join(" ")}else if(X===void 0&&K.matches(hX))X=K.lastValue;else if(Z===void 0&&K.matches(E8))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:xX,textDecorationColor:Z!==void 0?Z:mX,textDecorationStyle:X!==void 0?X:bX}},dX=function J(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);Y.push(K.expect(C6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},lX=function J(K){var Y=a9(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},k6=function J(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},D6=k6($8),p9=k6(i0),U8=k6(n9),g6=function J(K){return function(Y,X){return function(Z){var Q,w,H=Z.expect(K),W;if(Z.hasTokens())Z.expect(QX),W=Z.expect(K);else if(X!==void 0)W=X;else return H;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=W,Q),(w={},w[Y+"X"]=H,w)]}}},cX=g6($8),uX=g6(i0),pX=g6(n9),iX={perspective:D6,scale:cX("scale"),scaleX:D6,scaleY:D6,translate:uX("translate",0),translateX:p9,translateY:p9,rotate:U8,rotateX:U8,rotateY:U8,rotateZ:U8,skewX:U8,skewY:U8,skew:pX("skew","0deg")},rX=function J(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(v0);var Z=K.expectFunction(),Q=Z.functionName,w=iX[Q](Z);if(!Array.isArray(w)){var H;w=[(H={},H[Q]=w,H)]}Y=w.concat(Y),X=!0}return{transform:Y}},oX=function J(K){return{backgroundColor:K.expect(E8)}},nX=_8({types:[E8],prefix:"border",suffix:"Color"}),sX=_8({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),aX=_8({prefix:"border",suffix:"Width"}),tX=_8({types:[i0,R1,y6,T6],prefix:"margin"}),eX=_8({prefix:"padding"}),JZ=function J(K){return{fontWeight:K.expect(wX)}},KZ=function J(K){return{shadowOffset:s9(K)}},YZ=function J(K){return{textShadowOffset:s9(K)}},e9={aspectRatio:HX,background:oX,border:BX,borderColor:nX,borderRadius:sX,borderWidth:aX,boxShadow:qX,flex:OX,flexFlow:EX,font:SX,fontFamily:t9,fontVariant:vX,fontWeight:JZ,margin:tX,padding:eX,placeContent:gX,shadowOffset:KZ,textShadow:lX,textShadowOffset:YZ,textDecoration:fX,textDecorationLine:dX,transform:rX},i9,vV=i9!=null?new RegExp(i9.join("|")):null,I6="SYMBOL_MATCH",XZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function Y(){return this.index<=this.nodes.length-1},K[I6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function Y(){return this[I6].apply(this,arguments)!==null},K.expect=function Y(){var X=this[I6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function Y(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function Y(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function Y(){if(this.hasTokens())this.throw()},K.throw=function Y(){throw new Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function Y(){this.rewindIndex=this.index},K.rewind=function Y(){if(this.rewindIndex===-1)throw new Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),ZZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,QZ=/^true|false$/i,wZ=/^null$/i,WZ=/^undefined$/i,J7=function J(K,Y){if(!1)var X,Z;var Q=Y.match(ZZ);if(Q!==null)return Number(Q[1]);var w=Y.match(QZ);if(w!==null)return w[0].toLowerCase()==="true";var H=Y.match(wZ);if(H!==null)return null;var W=Y.match(WZ);if(W!==null)return;return Y},HZ=function J(K,Y){var X=cY(Y),Z=new XZ(X.nodes);return e9[K](Z)},zZ=HZ,K7=function J(K,Y,X){var Z,Q=X===!1||!(K in e9),w=Y.trim(),H=Q?(Z={},Z[K]=J7(K,w),Z):zZ(K,w);return H},Y7=function J(K){var Y=/^--\w+/.test(K);if(Y)return K;return uY(K)},UZ=function J(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=Y7(Z[0]),w=Z[1],H=Y.indexOf(Q)===-1;return Object.assign(X,K7(Q,w,H))},{})};X7.default=UZ;X7.getPropertyName=Y7;X7.getStylesForProperty=K7;X7.transformRawValue=J7});var Q7=y0((Z7,W5)=>{/*!
3
3
  * https://github.com/gilmoreorless/css-background-parser
4
4
  * Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
5
5
  */(function(J){function K(w){if(!(this instanceof K))return new K;this.backgrounds=w||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(w){if(!(this instanceof Y))return new Y(w);w=w||{};var H=this;function W(z,U){H[z]=z in w?w[z]:U}W("color",""),W("image","none"),W("attachment","scroll"),W("clip","border-box"),W("origin","padding-box"),W("position","0% 0%"),W("repeat","repeat"),W("size","auto")}Y.prototype.toString=function(){var w=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)w.unshift(this.color);return w.join(" ")},J.BackgroundList=K,J.Background=Y;function X(w){var H=[],W=/[,\(\)]/,z=0,U="";if(w==null)return H;while(w.length){var $=W.exec(w);if(!$)break;var V=$[0],B=!1;switch(V){case",":if(!z)H.push(U.trim()),U="",B=!0;break;case"(":z++;break;case")":z--;break}var M=$.index+1;U+=w.slice(0,B?M-1:M),w=w.slice(M)}if(U.length||w.length)H.push((U+w).trim());return H}function Z(w){return w.trim()}function Q(w){return(w||"").split(",").map(Z)}J.parseElementStyle=function(w){var H=new K;if(w==null)return H;var W=X(w.backgroundImage),z=w.backgroundColor,U=Q(w.backgroundAttachment),$=Q(w.backgroundClip),V=Q(w.backgroundOrigin),B=Q(w.backgroundPosition),M=Q(w.backgroundRepeat),A=Q(w.backgroundSize),G;for(var N=0,L=W.length;N<L;N++){if(G=new Y({image:W[N],attachment:U[N%U.length],clip:$[N%$.length],origin:V[N%V.length],position:B[N%B.length],repeat:M[N%M.length],size:A[N%A.length]}),N===L-1)G.color=z;H.backgrounds.push(G)}return H}})(function(J){if(typeof W5!=="undefined"&&Z7!==void 0)return Z7;return J.cssBgParser={}}(Z7))});var W7=y0((kV,w7)=>{var AZ=/,(?![^\(]*\))/,GZ=/\s(?![^(]*\))/,MZ=/^[0-9]+[a-zA-Z%]+?$/,OZ=(J)=>{let K=J.split(GZ),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!LZ(X)?X:void 0,Q=K.filter((U)=>U!=="inset").filter((U)=>U!==Z).map(jZ),[w,H,W,z]=Q;return{inset:Y,offsetX:w,offsetY:H,blurRadius:W,spreadRadius:z,color:Z}},NZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:w}=J||{};return[K?"inset":null,Y,X,Z,Q,w].filter((H)=>H!==null&&H!==void 0).map(FZ).map((H)=>(""+H).trim()).join(" ")},LZ=(J)=>J==="0"||MZ.test(J),jZ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},FZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,EZ=(J)=>J.split(AZ).map((K)=>K.trim()).map(OZ),_Z=(J)=>J.map(NZ).join(", ");w7.exports={parse:EZ,stringify:_Z}});var z7=y0((gV,H7)=>{H7.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 $7=y0((hV,U7)=>{var RZ=new RegExp("[^#a-f\\d]","gi"),DZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");U7.exports=(J,K={})=>{if(typeof J!=="string"||RZ.test(J)||!DZ.test(J))throw new TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let Y=1;if(J.length===8)Y=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)Y=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 X=Number.parseInt(J,16),Z=X>>16,Q=X>>8&255,w=X&255,H=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,w,H];if(K.format==="css"){let W=H===1?"":` / ${Number((H*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${w}${W})`}return{red:Z,green:Q,blue:w,alpha:H}}});var M7=y0((bV,G7)=>{/*!
@@ -58,11 +58,11 @@ $
58
58
  \\s*(?:\\s*\\/\\s*${B8}\\s*)?
59
59
  \\)
60
60
  $
61
- `.replace(/\n|\s/g,""),fZ=new RegExp(mZ),dZ=/^transparent$/,lZ=new RegExp(dZ,"i"),x6=(J,K,Y)=>Math.min(Math.max(K,J),Y),cZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return x6(Math.round(K),0,255)},V7=(J)=>x6(parseFloat(J),0,100);function A7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return x6(K,0,1)}function uZ(J){let[K,Y,X,Z]=q7.default(J,{format:"array"});return H5([null,K,Y,X,Z])}function pZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,V7(K),V7(Y)],alpha:A7(X===null?1:X)}}function H5([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(cZ),alpha:A7(X===null?1:X)}}var iZ=(J)=>{if(typeof J!=="string")return null;let K=TZ.exec(J);if(K)return uZ(K[0]);let Y=vZ.exec(J)||PZ.exec(J);if(Y)return pZ(Y);let X=bZ.exec(J)||fZ.exec(J)||kZ.exec(J)||hZ.exec(J);if(X)return H5(X);if(lZ.exec(J))return H5([null,0,0,0,0]);let Z=B7.default[J.toLowerCase()];if(Z)return H5([null,Z[0],Z[1],Z[2],1]);return null},z5=iZ;var IK=e0(_6(),1),TK=e0(w5(),1),M4=e0(M7(),1);function m6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function b6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=m6(J[Y],/\s+/);nZ(J[Y+1])?(K.push({color:Z,offset:s1(Q),hint:s1(J[Y+1])}),Y+=2):(K.push({color:Z,offset:s1(Q)}),Y++)}return K}var L7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function nZ(J){return L7.test(J)}function s1(J){if(!J)return;let[,K,Y]=J.trim().match(L7)||[];return{value:K,unit:Y}}function j7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw new SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=m6(Y),Q=sZ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:b6(Z)}}function sZ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:s1(J)}:null}var aZ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),tZ=new Set(["center","left","top","right","bottom"]);function O7(J){return aZ.has(J)}function N7(J){return tZ.has(J)}function eZ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function F7(J){if(!/(repeating-)?radial-gradient/.test(J))throw new SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=m6(Y);if(JQ(Z[0]))return{...X,stops:b6(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),w=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],H=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],W=eZ((Q[1]||"").split(" "));return w?X.shape=w:H.length===1&&!O7(H[0])?X.shape="circle":X.shape="ellipse",H.length===0&&H.push("farthest-corner"),X.size=H.map((z)=>O7(z)?{type:"keyword",value:z}:{type:"length",value:s1(z)}),X.position.x=N7(W[0])?{type:"keyword",value:W[0]}:{type:"length",value:s1(W[0])},X.position.y=N7(W[1])?{type:"keyword",value:W[1]}:{type:"length",value:s1(W[1])},(w||H.length>0||Q[1])&&Z.shift(),{...X,stops:b6(Z)}}function JQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var O4=e0(w5(),1);var J1=Uint8Array,t1=Uint16Array,s7=Uint32Array,a7=new J1([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]),t7=new J1([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]),KQ=new J1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e7=function(J,K){var Y=new t1(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new s7(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},JJ=e7(a7,2),KJ=JJ[0],YQ=JJ[1];KJ[28]=258,YQ[258]=28;var XQ=e7(t7,0),ZQ=XQ[0],n6=new t1(32768);for(Z0=0;Z0<32768;++Z0)L1=(Z0&43690)>>>1|(Z0&21845)<<1,L1=(L1&52428)>>>2|(L1&13107)<<2,L1=(L1&61680)>>>4|(L1&3855)<<4,n6[Z0]=((L1&65280)>>>8|(L1&255)<<8)>>>1;var L1,Z0,D8=function(J,K,Y){var X=J.length,Z=0,Q=new t1(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var w=new t1(K);for(Z=0;Z<K;++Z)w[Z]=w[Z-1]+Q[Z-1]<<1;var H;if(Y){H=new t1(1<<K);var W=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],U=K-J[Z],$=w[J[Z]-1]++<<U;for(var V=$|(1<<U)-1;$<=V;++$)H[n6[$]>>>W]=z}}else{H=new t1(X);for(Z=0;Z<X;++Z)if(J[Z])H[Z]=n6[w[J[Z]-1]++]>>>15-J[Z]}return H},C8=new J1(288);for(Z0=0;Z0<144;++Z0)C8[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)C8[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)C8[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)C8[Z0]=8;var Z0,YJ=new J1(32);for(Z0=0;Z0<32;++Z0)YJ[Z0]=5;var Z0,QQ=D8(C8,9,1),wQ=D8(YJ,5,1),f6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},W1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},d6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},WQ=function(J){return(J+7)/8|0},HQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?t1:J.BYTES_PER_ELEMENT==4?s7:J1)(Y-K);return X.set(J.subarray(K,Y)),X},zQ=["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"],m1=function(J,K,Y){var X=new Error(K||zQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,m1);if(!Y)throw X;return X},UQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new J1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new J1(X*3);var w=function(g){var e=K.length;if(g>e){var Y0=new J1(Math.max(e*2,g));Y0.set(K),K=Y0}},H=Y.f||0,W=Y.p||0,z=Y.b||0,U=Y.l,$=Y.d,V=Y.m,B=Y.n,M=X*8;do{if(!U){H=W1(J,W,1);var A=W1(J,W+1,3);if(W+=3,!A){var G=WQ(W)+4,N=J[G-4]|J[G-3]<<8,L=G+N;if(L>X){if(Q)m1(0);break}if(Z)w(z+N);K.set(J.subarray(G,L),z),Y.b=z+=N,Y.p=W=L*8,Y.f=H;continue}else if(A==1)U=QQ,$=wQ,V=9,B=5;else if(A==2){var E=W1(J,W,31)+257,D=W1(J,W+10,15)+4,_=E+W1(J,W+5,31)+1;W+=14;var j=new J1(_),T=new J1(19);for(var R=0;R<D;++R)T[KQ[R]]=W1(J,W+R*3,7);W+=D*3;var P=f6(T),h=(1<<P)-1,c=D8(T,P,1);for(var R=0;R<_;){var r=c[W1(J,W,h)];W+=r&15;var G=r>>>4;if(G<16)j[R++]=G;else{var u=0,C=0;if(G==16)C=3+W1(J,W,3),W+=2,u=j[R-1];else if(G==17)C=3+W1(J,W,7),W+=3;else if(G==18)C=11+W1(J,W,127),W+=7;while(C--)j[R++]=u}}var v=j.subarray(0,E),I=j.subarray(E);V=f6(v),B=f6(I),U=D8(v,V,1),$=D8(I,B,1)}else m1(1);if(W>M){if(Q)m1(0);break}}if(Z)w(z+131072);var f=(1<<V)-1,l=(1<<B)-1,t=W;for(;;t=W){var u=U[d6(J,W)&f],o=u>>>4;if(W+=u&15,W>M){if(Q)m1(0);break}if(!u)m1(2);if(o<256)K[z++]=o;else if(o==256){t=W,U=null;break}else{var m=o-254;if(o>264){var R=o-257,d=a7[R];m=W1(J,W,(1<<d)-1)+KJ[R],W+=d}var y=$[d6(J,W)&l],k=y>>>4;if(!y)m1(3);W+=y&15;var I=ZQ[k];if(k>3){var d=t7[k];I+=d6(J,W)&(1<<d)-1,W+=d}if(W>M){if(Q)m1(0);break}if(Z)w(z+131072);var n=z+m;for(;z<n;z+=4)K[z]=K[z-I],K[z+1]=K[z+1-I],K[z+2]=K[z+2-I],K[z+3]=K[z+3-I];z=n}}if(Y.l=U,Y.p=t,Y.b=z,Y.f=H,U)H=1,Y.m=V,Y.d=$,Y.n=B}while(!H);return z==K.length?K:HQ(K,0,z)},$Q=new J1(0);function VQ(J,K){return UQ(J,K)}var BQ=typeof TextDecoder!="undefined"&&new TextDecoder,qQ=0;try{BQ.decode($Q,{stream:!0}),qQ=1}catch(J){}function x0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}x0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};x0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};x0.prototype.curveTo=x0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};x0.prototype.quadTo=x0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};x0.prototype.close=x0.prototype.closePath=function(){this.commands.push({type:"Z"})};x0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};x0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(w){if(Math.round(w)===w)return""+Math.round(w);else return w.toFixed(J)}function Y(){var w=arguments,H="";for(var W=0;W<arguments.length;W+=1){var z=w[W];if(z>=0&&W>0)H+=" ";H+=K(z)}return H}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var AQ=[".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"],GQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],MQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function XJ(J){this.font=J}XJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function ZJ(J){this.cmap=J}ZJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function B5(J,K){this.encoding=J,this.charset=K}B5.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function OQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],w=Y[Q];K=J.glyphs.get(w),K.addUnicode(parseInt(Q))}}function NQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function LQ(J,K){if(K.lowMemory)NQ(J);else OQ(J)}function QJ(J){throw new Error(J)}function E7(J,K){if(!J)QJ(K)}var z0={fail:QJ,argument:E7,assert:E7};function jQ(J,K){var Y=K||new x0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function T1(J){this.bindConstructorValues(J)}T1.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",jQ(this,J.path))};T1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};T1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,w;if(!X)X={};var{xScale:H,yScale:W}=X;if(X.hinting&&Z&&Z.hinting)w=this.path&&Z.hinting.exec(this,Y);if(w)Q=Z.hinting.getCommands(w),J=Math.round(J),K=Math.round(K),H=W=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if(H===void 0)H=z;if(W===void 0)W=z}var U=new x0;for(var $=0;$<Q.length;$+=1){var V=Q[$];if(V.type==="M")U.moveTo(J+V.x*H,K+-V.y*W);else if(V.type==="L")U.lineTo(J+V.x*H,K+-V.y*W);else if(V.type==="Q")U.quadraticCurveTo(J+V.x1*H,K+-V.y1*W,J+V.x*H,K+-V.y*W);else if(V.type==="C")U.curveTo(J+V.x1*H,K+-V.y1*W,J+V.x2*H,K+-V.y2*W,J+V.x*H,K+-V.y*W);else if(V.type==="Z")U.closePath()}return U};T1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};T1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function U5(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function t6(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}t6.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],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);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]};t6.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function FQ(J,K){return new T1({index:K,font:J})}function EQ(J,K,Y,X,Z,Q){return function(){var w=new T1({index:K,font:J});return w.path=function(){Y(w,X,Z);var H=Q(J.glyphs,w);return H.unitsPerEm=J.unitsPerEm,H},U5(w,"xMin","_xMin"),U5(w,"xMax","_xMax"),U5(w,"yMin","_yMin"),U5(w,"yMax","_yMax"),w}}function _Q(J,K,Y,X){return function(){var Z=new T1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var F1={GlyphSet:t6,glyphLoader:FQ,ttfGlyphLoader:EQ,cffGlyphLoader:_Q};function l6(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function _7(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function R7(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var w=Y.start;if(w===K)return Y;else if(w<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function P8(J,K){this.font=J,this.tableName=K}P8.prototype={searchTag:l6,binSearch:_7,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 Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=l6(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=l6(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,w=Z.featureIndexes,H=this.font.tables[this.tableName].features;for(var W=0;W<w.length;W++)if(Q=H[w[W]],Q.tag===Y)return Q.feature;if(X){var z=H.length;return z0.assert(z===0||Y>=H[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},H.push(Q),w.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),w=[];if(Q){var H,W=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<W.length;U++)if(H=z[W[U]],H.lookupType===X)w.push(H);if(w.length===0&&Z){H={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var $=z.length;return z.push(H),W.push($),[H]}}return w},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 Y=R7(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=_7(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=R7(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,w=Z.end;for(var H=Q;H<=w;H++)K.push(H)}return K}}};function S8(J){P8.call(this,J,"gpos")}S8.prototype=P8.prototype;S8.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};S8.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var w=Z[Q],H=this.getCoverageIndex(w.coverage,K);if(H<0)continue;switch(w.posFormat){case 1:var W=w.pairSets[H];for(var z=0;z<W.length;z++){var U=W[z];if(U.secondGlyph===Y)return U.value1&&U.value1.xAdvance||0}break;case 2:var $=this.getGlyphClass(w.classDef1,K),V=this.getGlyphClass(w.classDef2,Y),B=w.classRecords[$][V];return B.value1&&B.value1.xAdvance||0}}}return 0};S8.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function r0(J){P8.call(this,J,"gsub")}function RQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function e6(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}r0.prototype=P8.prototype;r0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};r0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=void 0;if(W.substFormat===1){var $=W.deltaGlyphId;for(U=0;U<z.length;U++){var V=z[U];X.push({sub:V,by:V+$})}}else{var B=W.substitute;for(U=0;U<z.length;U++)X.push({sub:z[U],by:B[U]})}}}return X};r0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=void 0;for(U=0;U<z.length;U++){var $=z[U],V=W.sequences[U];X.push({sub:$,by:V})}}}return X};r0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=W.alternateSets;for(var $=0;$<z.length;$++)X.push({sub:z[$],by:U[$]})}}return X};r0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=W.ligatureSets;for(var $=0;$<z.length;$++){var V=z[$],B=U[$];for(var M=0;M<B.length;M++){var A=B[M];X.push({sub:[V].concat(A.components),by:A.ligGlyph})}}}}return X};r0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=e6(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.substitute.splice(H,0,0);Q.substitute[H]=K.by};r0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.sequences.splice(H,0,0);Q.sequences[H]=K.by};r0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.alternateSets.splice(H,0,0);Q.alternateSets[H]=K.by};r0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var w=K.sub[0],H=K.sub.slice(1),W={ligGlyph:K.by,components:H},z=this.binSearch(Q.coverage.glyphs,w);if(z>=0){var U=Q.ligatureSets[z];for(var $=0;$<U.length;$++)if(RQ(U[$].components,H))return;U.push(W)}else z=-1-z,Q.coverage.glyphs.splice(z,0,w),Q.ligatureSets.splice(z,0,[W])};r0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};r0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function R8(J,K){if(!J)throw K}function D7(J,K){return J.getUint8(K)}function q5(J,K){return J.getUint16(K,!1)}function DQ(J,K){return J.getInt16(K,!1)}function J4(J,K){return J.getUint32(K,!1)}function wJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function IQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function TQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function CQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function PQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var SQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function S(J,K){this.data=J,this.offset=K,this.relativeOffset=0}S.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};S.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};S.prototype.parseCard8=S.prototype.parseByte;S.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};S.prototype.parseCard16=S.prototype.parseUShort;S.prototype.parseSID=S.prototype.parseUShort;S.prototype.parseOffset16=S.prototype.parseUShort;S.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};S.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};S.prototype.parseULong=function(){var J=J4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};S.prototype.parseOffset32=S.prototype.parseULong;S.prototype.parseFixed=function(){var J=wJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};S.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};S.prototype.parseTag=function(){return this.parseString(4)};S.prototype.parseLongDateTime=function(){var J=J4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};S.prototype.parseVersion=function(J){var K=q5(this.data,this.offset+this.relativeOffset),Y=q5(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};S.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=SQ[J]*K};S.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};S.prototype.parseOffset16List=S.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};S.prototype.parseShortList=function(J){var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};S.prototype.parseByteList=function(J){var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};S.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=new Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};S.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=new Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};S.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=new Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var H=X[w],W=K[H];Q[H]=W.call(this)}Y[Z]=Q}return Y};S.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=new Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var H=X[w],W=K[H];Q[H]=W.call(this)}Y[Z]=Q}return Y};S.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};S.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};S.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=new Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};S.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new S(this.data,this.offset+K).parseStruct(J);return};S.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new S(this.data,this.offset+K).parseStruct(J);return};S.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=new Array(Y);for(var Q=0;Q<Y;Q++){var w=K[Q];if(w===0){Z[Q]=void 0;continue}if(this.relativeOffset=w,J){var H=this.parseOffset16List(),W=new Array(H.length);for(var z=0;z<H.length;z++)this.relativeOffset=w+H[z],W[z]=J.call(this);Z[Q]=W}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};S.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=new Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw new Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};S.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:S.uShort,end:S.uShort,classId:S.uShort})};throw new Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};S.list=function(J,K){return function(){return this.parseList(J,K)}};S.list32=function(J,K){return function(){return this.parseList32(J,K)}};S.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};S.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};S.pointer=function(J){return function(){return this.parsePointer(J)}};S.pointer32=function(J){return function(){return this.parsePointer32(J)}};S.tag=S.prototype.parseTag;S.byte=S.prototype.parseByte;S.uShort=S.offset16=S.prototype.parseUShort;S.uShortList=S.prototype.parseUShortList;S.uLong=S.offset32=S.prototype.parseULong;S.uLongList=S.prototype.parseULongList;S.struct=S.prototype.parseStruct;S.coverage=S.prototype.parseCoverage;S.classDef=S.prototype.parseClassDef;var I7={reserved:S.uShort,reqFeatureIndex:S.uShort,featureIndexes:S.uShortList};S.prototype.parseScriptList=function(){return this.parsePointer(S.recordList({tag:S.tag,script:S.pointer({defaultLangSys:S.pointer(I7),langSysRecords:S.recordList({tag:S.tag,langSys:S.pointer(I7)})})}))||[]};S.prototype.parseFeatureList=function(){return this.parsePointer(S.recordList({tag:S.tag,feature:S.pointer({featureParams:S.offset16,lookupListIndexes:S.uShortList})}))||[]};S.prototype.parseLookupList=function(J){return this.parsePointer(S.list(S.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(S.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};S.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 Y=this.parseRecordList32({conditionSetOffset:S.offset32,featureTableSubstitutionOffset:S.offset32});return Y})||[]};var i={getByte:D7,getCard8:D7,getUShort:q5,getCard16:q5,getShort:DQ,getULong:J4,getFixed:wJ,getTag:IQ,getOffset:TQ,getBytes:CQ,bytesToString:PQ,Parser:S};function T7(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function WJ(J,K,Y){var X=new i.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var w=J.endPointIndices=[];for(var H=0;H<J.numberOfContours;H+=1)w.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var W=0;W<J.instructionLength;W+=1)J.instructions.push(X.parseByte());var z=w[w.length-1]+1;Z=[];for(var U=0;U<z;U+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var $=X.parseByte();for(var V=0;V<$;V+=1)Z.push(Q),U+=1}if(z0.argument(Z.length===z,"Bad flags."),w.length>0){var B=[],M;if(z>0){for(var A=0;A<z;A+=1)Q=Z[A],M={},M.onCurve=!!(Q&1),M.lastPointOfContour=w.indexOf(A)>=0,B.push(M);var G=0;for(var N=0;N<z;N+=1)Q=Z[N],M=B[N],M.x=T7(X,Q,G,2,16),G=M.x;var L=0;for(var E=0;E<z;E+=1)Q=Z[E],M=B[E],M.y=T7(X,Q,L,4,32),L=M.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var D=!0;while(D){Z=X.parseUShort();var _={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)_.dx=X.parseShort(),_.dy=X.parseShort();else _.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)_.dx=X.parseChar(),_.dy=X.parseChar();else _.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)_.xScale=_.yScale=X.parseF2Dot14();else if((Z&64)>0)_.xScale=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();else if((Z&128)>0)_.xScale=X.parseF2Dot14(),_.scale01=X.parseF2Dot14(),_.scale10=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();J.components.push(_),D=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(X.parseByte())}}}function c6(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function vQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function HJ(J){var K=new x0;if(!J)return K;var Y=vQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,w=Z[Z.length-1],H=Z[0];if(w.onCurve)K.moveTo(w.x,w.y);else if(H.onCurve)K.moveTo(H.x,H.y);else{var W={x:(w.x+H.x)*0.5,y:(w.y+H.y)*0.5};K.moveTo(W.x,W.y)}for(var z=0;z<Z.length;++z)if(Q=w,w=H,H=Z[(z+1)%Z.length],w.onCurve)K.lineTo(w.x,w.y);else{var U=Q,$=H;if(!Q.onCurve)U={x:(w.x+Q.x)*0.5,y:(w.y+Q.y)*0.5};if(!H.onCurve)$={x:(w.x+H.x)*0.5,y:(w.y+H.y)*0.5};K.quadraticCurveTo(w.x,w.y,$.x,$.y)}K.closePath()}return K}function zJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=c6(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var w=K.points[X.matchedPoints[0]],H=Z.points[X.matchedPoints[1]],W={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};H=c6([H],W)[0],W.dx=w.x-H.x,W.dy=w.y-H.y,Q=c6(Z.points,W)}K.points=K.points.concat(Q)}}return HJ(K.points)}function yQ(J,K,Y,X){var Z=new F1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var w=Y[Q],H=Y[Q+1];if(w!==H)Z.push(Q,F1.ttfGlyphLoader(X,Q,WJ,J,K+w,zJ));else Z.push(Q,F1.glyphLoader(X,Q))}return Z}function kQ(J,K,Y,X){var Z=new F1.GlyphSet(X);return X._push=function(Q){var w=Y[Q],H=Y[Q+1];if(w!==H)Z.push(Q,F1.ttfGlyphLoader(X,Q,WJ,J,K+w,zJ));else Z.push(Q,F1.glyphLoader(X,Q))},Z}function gQ(J,K,Y,X,Z){if(Z.lowMemory)return kQ(J,K,Y,X);else return yQ(J,K,Y,X)}var UJ={getPath:HJ,parse:gQ},$J,e1,VJ,s6;function BJ(J){this.font=J,this.getCommands=function(K){return UJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function hQ(J){return J}function qJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function xQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function bQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function mQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function fQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var AJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},j1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,W=K.x-K.xo,z=Y.x-Y.xo,w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){J.x=J.xo+(W+z)/2;return}J.x=J.xo+(W*H+z*w)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){j1.setRelative(J,J,(W+z)/2,X,!0);return}j1.setRelative(J,J,(W*H+z*w)/U,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y;J.x=H+(J.y-W)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},D1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,W=K.y-K.yo,z=Y.y-Y.yo,w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){J.y=J.yo+(W+z)/2;return}J.y=J.yo+(W*H+z*w)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){D1.setRelative(J,J,(W+z)/2,X,!0);return}D1.setRelative(J,J,(W*H+z*w)/U,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y;J.y=W+X.normalSlope*(J.x-H)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(j1);Object.freeze(D1);function v8(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}v8.prototype.distance=function(J,K,Y,X){return this.x*j1.distance(J,K,Y,X)+this.y*D1.distance(J,K,Y,X)};v8.prototype.interpolate=function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(w=X.distance(J,K,!0,!0),H=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),W=Math.abs(w),z=Math.abs(H),U=W+z,U===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*W)/U,X,!0)};v8.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y,z=X.normalSlope,U=this.slope,$=J.x,V=J.y;J.x=(U*$-z*H+W-V)/(U-z),J.y=U*(J.x-$)+V};v8.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function y8(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return j1;else if(J===0&&K===1)return D1;else return new v8(J,K)}function I1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}I1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};I1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var T8=Object.freeze(new I1(0,0)),dQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function d1(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=j1,this.round=qJ}}BJ.prototype.exec=function(J,K){if(typeof K!=="number")throw new Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(d1.prototype=dQ,Z=this._fpgmState=new d1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,fV.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{e1(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}d1.prototype=Z,X=this._prepState=new d1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var w=X.cvt=new Array(Q.length),H=K/Y.unitsPerEm;for(var W=0;W<Q.length;W++)w[W]=Q[W]*H}else X.cvt=[];if(fV.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{e1(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return VJ(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};VJ=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,w,H;if(d1.prototype=K,!Z){if(H=new d1("glyf",J.instructions),fV.DEBUG)console.log("---EXEC GLYPH---"),H.step=-1;s6(J,H,Y,X),w=H.gZone}else{var W=K.font;w=[],Q=[];for(var z=0;z<Z.length;z++){var U=Z[z],$=W.glyphs.get(U.glyphIndex);if(H=new d1("glyf",$.instructions),fV.DEBUG)console.log("---EXEC COMP "+z+"---"),H.step=-1;s6($,H,Y,X);var V=Math.round(U.dx*Y),B=Math.round(U.dy*X),M=H.gZone,A=H.contours;for(var G=0;G<M.length;G++){var N=M[G];N.xTouched=N.yTouched=!1,N.xo=N.x=N.x+V,N.yo=N.y=N.y+B}var L=w.length;w.push.apply(w,M);for(var E=0;E<A.length;E++)Q.push(A[E]+L)}if(J.instructions&&!H.inhibitGridFit){if(H=new d1("glyf",J.instructions),H.gZone=H.z0=H.z1=H.z2=w,H.contours=Q,w.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),fV.DEBUG)console.log("---EXEC COMPOSITE---"),H.step=-1;e1(H),w.length-=2}}return w};s6=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,w=K.gZone=K.z0=K.z1=K.z2=[],H=K.contours=[],W;for(var z=0;z<Q;z++)W=Z[z],w[z]=new I1(W.x*Y,W.y*X,W.lastPointOfContour,W.onCurve);var U,$;for(var V=0;V<Q;V++){if(W=w[V],!U)U=W,H.push(V);if(W.lastPointOfContour)W.nextPointOnContour=U,U.prevPointOnContour=W,U=void 0;else $=w[V+1],W.nextPointOnContour=$,$.prevPointOnContour=W}if(K.inhibitGridFit)return;if(fV.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,w[B].x,w[B].y)}if(w.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),e1(K),w.length-=2,fV.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var M=0;M<Q;M++)console.log(M,w[M].x,w[M].y)}};e1=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(fV.DEBUG)J.step++;if(X=$J[K[J.ip]],!X)throw new Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function A5(J){var K=J.tZone=new Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new I1(0,0)}function GJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function C7(J,K){if(fV.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function P7(J,K){if(fV.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function S7(J,K){if(fV.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function v7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log("SPVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.pv=K.dpv=y8(H,W)}function y7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log("SFVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.fv=y8(H,W)}function lQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=y8(X,Y)}function cQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=y8(X,Y)}function uQ(J){var{stack:K,pv:Y}=J;if(fV.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function pQ(J){var{stack:K,fv:Y}=J;if(fV.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function iQ(J){if(J.fv=J.pv,fV.DEBUG)console.log(J.step,"SFVTPV[]")}function rQ(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),w=K.pop(),H=J.z0,W=J.z1,z=H[Y],U=H[X],$=W[Z],V=W[Q],B=J.z2[w];if(fV.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,w);var{x:M,y:A}=z,G=U.x,N=U.y,L=$.x,E=$.y,D=V.x,_=V.y,j=(M-G)*(E-_)-(A-N)*(L-D),T=M*N-A*G,R=L*_-E*D;B.x=(T*(L-D)-R*(M-G))/j,B.y=(T*(E-_)-R*(A-N))/j}function oQ(J){if(J.rp0=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function nQ(J){if(J.rp1=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function sQ(J){if(J.rp2=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function aQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)A5(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function tQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)A5(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function eQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)A5(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function J2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)A5(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function K2(J){if(J.loop=J.stack.pop(),fV.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Y2(J){if(fV.DEBUG)console.log(J.step,"RTG[]");J.round=qJ}function X2(J){if(fV.DEBUG)console.log(J.step,"RTHG[]");J.round=bQ}function Z2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function Q2(J){if(fV.DEBUG)console.log(J.step,"ELSE[]");GJ(J,!1)}function w2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function W2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function H2(J){var K=J.stack;if(fV.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function u6(J){if(fV.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function z2(J){if(fV.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function U2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function $2(J){var K=J.stack;if(fV.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function V2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var w=0;w<X;w++)if(e1(J),fV.DEBUG)console.log(++J.step,w+1<X?"next loopcall":"done loopcall",w);J.ip=Z,J.prog=Q}function B2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],e1(J),J.ip=Y,J.prog=X,fV.DEBUG)console.log(++J.step,"returning from",K)}function q2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function A2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function G2(J){if(J.env!=="fpgm")throw new Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(fV.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function k7(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(fV.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var w=Q.distance(X,T8);if(J)w=K.round(w);Z.setRelative(X,T8,w,Q),Z.touch(X),K.rp0=K.rp1=Y}function g7(J,K){var Y=K.z2,X=Y.length-2,Z,Q,w;if(fV.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var H=0;H<X;H++){if(Z=Y[H],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(w=Z.nextTouched(J),Q===w)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,w,J)}}function h7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=K.loop,W=K.z2;while(H--){var z=Y.pop(),U=W[z],$=w.distance(Z,Z,!1,!0);if(Q.setRelative(U,U,$,w),Q.touch(U),fV.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-H)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function x7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=Y.pop(),W=K.z2[K.contours[H]],z=W;if(fV.DEBUG)console.log(K.step,"SHC["+J+"]",H);var U=w.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,U,w);z=z.nextPointOnContour}while(z!==W)}function b7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=Y.pop();if(fV.DEBUG)console.log(K.step,"SHZ["+J+"]",H);var W;switch(H){case 0:W=K.tZone;break;case 1:W=K.gZone;break;default:throw new Error("Invalid zone")}var z,U=w.distance(Z,Z,!1,!0),$=W.length-2;for(var V=0;V<$;V++)z=W[V],Q.setRelative(z,z,U,w)}function M2(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var w=K.pop(),H=Q[w];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",w,Z);X.setRelative(H,H,Z),X.touch(H)}J.loop=1}function O2(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],w=J.z1[X],H=J.fv,W=J.dpv,z=J.z2;while(Z--){var U=K.pop(),$=z[U];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",U,Y,"<->",X);H.interpolate($,Q,w,W),H.touch($)}J.loop=1}function m7(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],w=K.z0[K.rp0],H=K.fv,W=K.pv;if(H.setRelative(Q,w,X,W),H.touch(Q),fV.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function N2(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,w=J.pv,H=J.z1;while(Z--){var W=K.pop(),z=H[W];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",W);Q.setRelative(z,X,0,w),Q.touch(z)}J.loop=1}function L2(J){if(fV.DEBUG)console.log(J.step,"RTDG[]");J.round=xQ}function f7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],w=K.fv,H=K.pv,W=K.cvt[X];if(fV.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",W,")",Z);var z=H.distance(Q,T8);if(J){if(Math.abs(z-W)<K.cvCutIn)z=W;z=K.round(z)}if(w.setRelative(Q,T8,z,H),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;w.touch(Q),K.rp0=K.rp1=Z}function j2(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(fV.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function F2(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(fV.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var w=Y[++K]<<8|Y[++K];if(w&32768)w=-((w^65535)+1);X.push(w)}J.ip=K}function E2(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(fV.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function _2(J){var{stack:K,store:Y}=J,X=K.pop();if(fV.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function R2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function D2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function d7(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(fV.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,T8,J,!1)*64)}function l7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],w=K.z0[Z],H=K.dpv.distance(w,Q,J,J);if(fV.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",H);K.stack.push(Math.round(H*64))}function I2(J){if(fV.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function T2(J){if(fV.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function C2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function P2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function S2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function v2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function y2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function k2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function g2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function h2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function x2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(GJ(J,!0),fV.DEBUG)console.log(J.step,"EIF[]")}}function b2(J){if(fV.DEBUG)console.log(J.step,"EIF[]")}function m2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function f2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function d2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function p6(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,w=K.ppem,H=K.deltaBase+(J-1)*16,W=K.deltaShift,z=K.z0;if(fV.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var U=0;U<X;U++){var $=Y.pop(),V=Y.pop(),B=H+((V&240)>>4);if(B!==w)continue;var M=(V&15)-8;if(M>=0)M++;if(fV.DEBUG)console.log(K.step,"DELTAPFIX",$,"by",M*W);var A=z[$];Z.setRelative(A,A,M*W,Q)}}function l2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function c2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function u2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function p2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function i2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function r2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function o2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function n2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function s2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function a2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function $5(J,K){var Y=K.stack,X=Y.pop();if(fV.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function t2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function i6(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,w=K.deltaShift;if(fV.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var H=0;H<X;H++){var W=Y.pop(),z=Y.pop(),U=Q+((z&240)>>4);if(U!==Z)continue;var $=(z&15)-8;if($>=0)$++;var V=$*w;if(fV.DEBUG)console.log(K.step,"DELTACFIX",W,"by",V);K.cvt[W]+=V}}function e2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SROUND[]",K);J.round=AJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw new Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw new Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function Jw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=AJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw new Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function Kw(J){if(fV.DEBUG)console.log(J.step,"ROFF[]");J.round=hQ}function Yw(J){if(fV.DEBUG)console.log(J.step,"RUTG[]");J.round=mQ}function Xw(J){if(fV.DEBUG)console.log(J.step,"RDTG[]");J.round=fQ}function Zw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function c7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.dpv=y8(H,W)}function Qw(J){var K=J.stack,Y=K.pop(),X=0;if(fV.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function ww(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(fV.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function Ww(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function Hw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function zw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function Uw(J){var K=J.stack.pop(),Y=J.stack.pop();if(fV.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw new Error("invalid INSTCTRL[] selector")}}function x1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(fV.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function b1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(fV.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var w=X[++Y]<<8|X[++Y];if(w&32768)w=-((w^65535)+1);Z.push(w)}K.ip=Y}function p(J,K,Y,X,Z,Q){var w=Q.stack,H=J&&w.pop(),W=w.pop(),z=Q.rp0,U=Q.z0[z],$=Q.z1[W],V=Q.minDis,B=Q.fv,M=Q.dpv,A,G,N,L;if(G=A=M.distance($,U,!0,!0),N=G>=0?1:-1,G=Math.abs(G),J){if(L=Q.cvt[H],X&&Math.abs(G-L)<Q.cvCutIn)G=L}if(Y&&G<V)G=V;if(X)G=Q.round(G);if(B.setRelative($,U,N*G,M),B.touch($),fV.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?H+"("+Q.cvt[H]+","+L+")":"",W,"(d =",A,"->",N*G,")");if(Q.rp1=Q.rp0,Q.rp2=W,K)Q.rp0=W}$J=[C7.bind(void 0,D1),C7.bind(void 0,j1),P7.bind(void 0,D1),P7.bind(void 0,j1),S7.bind(void 0,D1),S7.bind(void 0,j1),v7.bind(void 0,0),v7.bind(void 0,1),y7.bind(void 0,0),y7.bind(void 0,1),lQ,cQ,uQ,pQ,iQ,rQ,oQ,nQ,sQ,aQ,tQ,eQ,J2,K2,Y2,X2,Z2,Q2,w2,W2,void 0,void 0,H2,u6,z2,U2,$2,q2,A2,void 0,void 0,void 0,V2,B2,G2,void 0,k7.bind(void 0,0),k7.bind(void 0,1),g7.bind(void 0,D1),g7.bind(void 0,j1),h7.bind(void 0,0),h7.bind(void 0,1),x7.bind(void 0,0),x7.bind(void 0,1),b7.bind(void 0,0),b7.bind(void 0,1),M2,O2,m7.bind(void 0,0),m7.bind(void 0,1),N2,L2,f7.bind(void 0,0),f7.bind(void 0,1),j2,F2,E2,_2,R2,D2,d7.bind(void 0,0),d7.bind(void 0,1),void 0,l7.bind(void 0,0),l7.bind(void 0,1),I2,void 0,T2,void 0,void 0,C2,P2,S2,v2,y2,k2,g2,h2,x2,b2,m2,f2,d2,p6.bind(void 0,1),l2,c2,u2,p2,i2,r2,o2,n2,s2,a2,$5.bind(void 0,0),$5.bind(void 0,1),$5.bind(void 0,2),$5.bind(void 0,3),void 0,void 0,void 0,void 0,t2,p6.bind(void 0,2),p6.bind(void 0,3),i6.bind(void 0,1),i6.bind(void 0,2),i6.bind(void 0,3),e2,Jw,void 0,void 0,Kw,void 0,Yw,Xw,u6,u6,void 0,void 0,void 0,void 0,void 0,Zw,c7.bind(void 0,0),c7.bind(void 0,1),Qw,void 0,ww,Ww,Hw,zw,Uw,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,x1.bind(void 0,1),x1.bind(void 0,2),x1.bind(void 0,3),x1.bind(void 0,4),x1.bind(void 0,5),x1.bind(void 0,6),x1.bind(void 0,7),x1.bind(void 0,8),b1.bind(void 0,1),b1.bind(void 0,2),b1.bind(void 0,3),b1.bind(void 0,4),b1.bind(void 0,5),b1.bind(void 0,6),b1.bind(void 0,7),b1.bind(void 0,8),p.bind(void 0,0,0,0,0,0),p.bind(void 0,0,0,0,0,1),p.bind(void 0,0,0,0,0,2),p.bind(void 0,0,0,0,0,3),p.bind(void 0,0,0,0,1,0),p.bind(void 0,0,0,0,1,1),p.bind(void 0,0,0,0,1,2),p.bind(void 0,0,0,0,1,3),p.bind(void 0,0,0,1,0,0),p.bind(void 0,0,0,1,0,1),p.bind(void 0,0,0,1,0,2),p.bind(void 0,0,0,1,0,3),p.bind(void 0,0,0,1,1,0),p.bind(void 0,0,0,1,1,1),p.bind(void 0,0,0,1,1,2),p.bind(void 0,0,0,1,1,3),p.bind(void 0,0,1,0,0,0),p.bind(void 0,0,1,0,0,1),p.bind(void 0,0,1,0,0,2),p.bind(void 0,0,1,0,0,3),p.bind(void 0,0,1,0,1,0),p.bind(void 0,0,1,0,1,1),p.bind(void 0,0,1,0,1,2),p.bind(void 0,0,1,0,1,3),p.bind(void 0,0,1,1,0,0),p.bind(void 0,0,1,1,0,1),p.bind(void 0,0,1,1,0,2),p.bind(void 0,0,1,1,0,3),p.bind(void 0,0,1,1,1,0),p.bind(void 0,0,1,1,1,1),p.bind(void 0,0,1,1,1,2),p.bind(void 0,0,1,1,1,3),p.bind(void 0,1,0,0,0,0),p.bind(void 0,1,0,0,0,1),p.bind(void 0,1,0,0,0,2),p.bind(void 0,1,0,0,0,3),p.bind(void 0,1,0,0,1,0),p.bind(void 0,1,0,0,1,1),p.bind(void 0,1,0,0,1,2),p.bind(void 0,1,0,0,1,3),p.bind(void 0,1,0,1,0,0),p.bind(void 0,1,0,1,0,1),p.bind(void 0,1,0,1,0,2),p.bind(void 0,1,0,1,0,3),p.bind(void 0,1,0,1,1,0),p.bind(void 0,1,0,1,1,1),p.bind(void 0,1,0,1,1,2),p.bind(void 0,1,0,1,1,3),p.bind(void 0,1,1,0,0,0),p.bind(void 0,1,1,0,0,1),p.bind(void 0,1,1,0,0,2),p.bind(void 0,1,1,0,0,3),p.bind(void 0,1,1,0,1,0),p.bind(void 0,1,1,0,1,1),p.bind(void 0,1,1,0,1,2),p.bind(void 0,1,1,0,1,3),p.bind(void 0,1,1,1,0,0),p.bind(void 0,1,1,1,0,1),p.bind(void 0,1,1,1,0,2),p.bind(void 0,1,1,1,0,3),p.bind(void 0,1,1,1,1,0),p.bind(void 0,1,1,1,1,1),p.bind(void 0,1,1,1,1,2),p.bind(void 0,1,1,1,1,3)];function A8(J){this.char=J,this.state={},this.activeState=null}function K4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function $w(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function H1(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 G5(J){this.eventId=J,this.subscribers=[]}function Vw(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new G5(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function j0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Vw.call(this,J)}A8.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};A8.prototype.getState=function(J){return this.state[J]||null};j0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};j0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};j0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(w){return w instanceof A8});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};j0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof A8){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};j0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};j0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};j0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof A8});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};j0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],w=K===null||K.apply(this,Q)===!0,H=[X,Z];if(w){var W=Y.apply(this,H);X.setState(J,W)}}),this.registeredModifiers.push(J)};G5.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};G5.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};H1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};j0.prototype.rangeToText=function(J){if(J instanceof K4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};j0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};j0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};j0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};j0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof G5)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};j0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new $w(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};j0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};j0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};j0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};j0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new H1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};j0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new K4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};j0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new K4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var w=Y-Q.startIndex+1,H=K.setEndOffset(w,Z);K.dispatch("contextEnd",[Z,H])}})};j0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new H1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new A8(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function l1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function MJ(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 c1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function V5(J){return/[A-z]/.test(J)}function Bw(J){return/\s/.test(J)}function o0(J){this.font=J,this.features={}}function a1(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function k8(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function qw(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function Aw(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function r6(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var w=k8(Q,Z);if(w!==-1)Y.push(w)}if(Y.length!==J.length)return-1;return Y}function Gw(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=r6(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&c1(Q[0].char))Q.shift();var w=new H1(Q,0),H=r6(K.lookaheadCoverage,w),W=[].concat(J.backtrack);W.reverse();while(W.length&&c1(W[0].char))W.shift();if(W.length<K.backtrackCoverage.length)return[];var z=new H1(W,0),U=r6(K.backtrackCoverage,z),$=X.length===K.inputCoverage.length&&H.length===K.lookaheadCoverage.length&&U.length===K.backtrackCoverage.length,V=[];if($)for(var B=0;B<K.lookupRecords.length;B++){var M=K.lookupRecords[B],A=M.lookupListIndex,G=this.getLookupByIndex(A);for(var N=0;N<G.subtables.length;N++){var L=G.subtables[N],E=this.getLookupMethod(G,L),D=this.getSubstitutionType(G,L);if(D==="12")for(var _=0;_<X.length;_++){var j=J.get(_),T=E(j);if(T)V.push(T)}}}return V}function Mw(J,K){var Y=J.current,X=k8(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var w=0;w<Q.length;w++){Z=Q[w];for(var H=0;H<Z.components.length;H++){var W=J.lookahead[H],z=Z.components[H];if(W!==z)break;if(H===Z.components.length-1)return Z}}return null}function Ow(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}o0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};o0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var w=0;w<Q.length;w++){var H=Q[w];if(H.tag===J){var W=H.langSys;return W.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};o0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};o0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};o0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};o0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return qw.apply(Y,[Z,K])};case"12":return function(Z){return Aw.apply(Y,[Z,K])};case"63":return function(Z){return Gw.apply(Y,[Z,K])};case"41":return function(Z){return Mw.apply(Y,[Z,K])};case"21":return function(Z){return Ow.apply(Y,[Z,K])};default:throw new Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};o0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var w=0;w<Z.length;w++){var H=Z[w],W=this.getLookupSubtables(H);for(var z=0;z<W.length;z++){var U=W[z],$=this.getSubstitutionType(H,U),V=this.getLookupMethod(H,U),B=void 0;switch($){case"11":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=V(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new a1({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=V(K),B)Q.splice(Y,1,new a1({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:21,tag:J.tag,substitution:B}));break}if(K=new H1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q: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 Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};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 J(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function Nw(J){var K=J.current,Y=J.get(-1);return Y===null&&l1(K)||!l1(Y)&&l1(K)}function Lw(J){var K=J.get(1);return K===null||!l1(K)}var jw={startCheck:Nw,endCheck:Lw};function Fw(J){var K=J.current,Y=J.get(-1);return(l1(K)||c1(K))&&!l1(Y)}function Ew(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!l1(K)&&!c1(K)):var Y=Bw(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return l1(Z)||c1(Z)}),!X)return!0}break;default:return!1}}var _w={startCheck:Fw,endCheck:Ew};function Rw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function Dw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function Iw(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function Tw(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var u7={11:Rw,12:Dw,63:Iw,41:Tw};function Y4(J,K,Y){if(J instanceof a1&&u7[J.id])u7[J.id](J,K,Y)}function Cw(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=MJ(X),Q=c1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function Pw(J){if(MJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=c1(Y);if(!X)return!0}return!1}function Sw(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new H1(Z.map(function(H){return H.getState("glyphIndex")}),0),w=new H1(Z.map(function(H){return H.char}),0);Z.forEach(function(H,W){if(c1(H.char))return;Q.setCurrentIndex(W),w.setCurrentIndex(W);var z=0;if(Cw(w))z|=1;if(Pw(w))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(X.indexOf(U)===-1)return;var $=K.query.lookupFeature({tag:U,script:Y,contextParams:Q});if($ instanceof Error)return console.info($.message);$.forEach(function(V,B){if(V instanceof a1)Y4(V,Z,B),Q.context[B]=V.substitution})})}function p7(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function vw(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=p7(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var H=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if(H.length)H.forEach(function(W){return Y4(W,X,w)}),Z=p7(X)})}function yw(J){var K=J.current,Y=J.get(-1);return Y===null&&V5(K)||!V5(Y)&&V5(K)}function kw(J){var K=J.get(1);return K===null||!V5(K)}var gw={startCheck:yw,endCheck:kw};function i7(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function hw(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=i7(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var H=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if(H.length)H.forEach(function(W){return Y4(W,X,w)}),Z=i7(X)})}function $1(J){this.baseDir=J||"ltr",this.tokenizer=new j0,this.featuresTags={}}$1.prototype.setText=function(J){this.text=J};$1.prototype.contextChecks={latinWordCheck:gw,arabicWordCheck:jw,arabicSentenceCheck:_w};function o6(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function xw(){return o6.call(this,"latinWord"),o6.call(this,"arabicWord"),o6.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function bw(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}$1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};$1.prototype.applyFeatures=function(J,K){if(!J)throw new Error("No valid font was provided to apply features");if(!this.query)this.query=new o0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};$1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function X4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function mw(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;X4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){Sw.call(J,X)})}function fw(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){vw.call(J,Z)})}function dw(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){hw.call(J,Z)})}$1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};$1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))mw.call(this),fw.call(this);if(this.checkContextReady("latinWord"))dw.call(this);if(this.checkContextReady("arabicSentence"))bw.call(this)};$1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),xw.call(this),this.applyFeaturesToContexts()};$1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};$1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function b0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)R8(J.familyName,"When creating a new Font object, familyName is required."),R8(J.styleName,"When creating a new Font object, styleName is required."),R8(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),R8(J.ascender,"When creating a new Font object, ascender is required."),R8(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 F1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new S8(this),this.substitution=new r0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new BJ(this)}})}b0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};b0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};b0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};b0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};b0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new $1,Z=function($){return Y.charToGlyphIndex($.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var w=X.getTextGlyphs(J),H=w.length,W=new Array(H),z=this.glyphs.get(0);for(var U=0;U<H;U+=1)W[U]=this.glyphs.get(w[U])||z;return W};b0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};b0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};b0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var w=1/this.unitsPerEm*X,H=this.stringToGlyphs(J,Z),W;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();W=this.position.getKerningTables(z,Z.language)}for(var U=0;U<H.length;U+=1){var $=H[U];if(Q.call(this,$,K,Y,X,Z),$.advanceWidth)K+=$.advanceWidth*w;if(Z.kerning&&U<H.length-1){var V=W?this.position.getKerningValue(W,$.index,H[U+1].index):this.getKerningValue($,H[U+1]);K+=V*w}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};b0.prototype.getPath=function(J,K,Y,X,Z){var Q=new x0;return this.forEachGlyph(J,K,Y,X,Z,function(w,H,W,z){var U=w.getPath(H,W,z,Z,this);Q.extend(U)}),Q};b0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(w,H,W,z){var U=w.getPath(H,W,z,Z,this);Q.push(U)}),Q};b0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};b0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};b0.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};b0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function lw(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),w=K.parseULong();for(var H=Z;H<=Q;H+=1)J.glyphIndexMap[H]=w,w++}}function cw(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var w=new i.Parser(Y,X+Z+14),H=new i.Parser(Y,X+Z+16+Q*2),W=new i.Parser(Y,X+Z+16+Q*4),z=new i.Parser(Y,X+Z+16+Q*6),U=X+Z+16+Q*8;for(var $=0;$<Q-1;$+=1){var V=void 0,B=w.parseUShort(),M=H.parseUShort(),A=W.parseShort(),G=z.parseUShort();for(var N=M;N<=B;N+=1){if(G!==0){if(U=z.offset+z.relativeOffset-2,U+=G,U+=(N-M)*2,V=i.getUShort(Y,U),V!==0)V=V+A&65535}else V=N+A&65535;J.glyphIndexMap[N]=V}}}function uw(J,K){var Y={};Y.version=i.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=i.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=i.getUShort(J,K+4+Z*8),w=i.getUShort(J,K+4+Z*8+2);if(Q===3&&(w===0||w===1||w===10)||Q===0&&(w===0||w===1||w===2||w===3||w===4)){X=i.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw new Error("No valid cmap sub-tables found.");var H=new i.Parser(J,K+X);if(Y.format=H.parseUShort(),Y.format===12)lw(Y,H);else if(Y.format===4)cw(Y,H,J,K,X);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var pw={parse:uw};function a6(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function f1(J,K,Y){var X=[],Z=[],Q=i.getCard16(J,K),w,H;if(Q!==0){var W=i.getByte(J,K+2);w=K+(Q+1)*W+2;var z=K+3;for(var U=0;U<Q+1;U+=1)X.push(i.getOffset(J,z,W)),z+=W;H=w+X[Q]}else H=K+2;for(var $=0;$<X.length-1;$+=1){var V=i.getBytes(J,w+X[$],w+X[$+1]);if(Y)V=Y(V);Z.push(V)}return{objects:Z,startOffset:K,endOffset:H}}function iw(J,K){var Y=[],X=i.getCard16(J,K),Z,Q;if(X!==0){var w=i.getByte(J,K+2);Z=K+(X+1)*w+2;var H=K+3;for(var W=0;W<X+1;W+=1)Y.push(i.getOffset(J,H,w)),H+=w;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function rw(J,K,Y,X,Z){var Q=i.getCard16(Y,X),w=0;if(Q!==0){var H=i.getByte(Y,X+2);w=X+(Q+1)*H+2}var W=i.getBytes(Y,w+K[J],w+K[J+1]);if(Z)W=Z(W);return W}function ow(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,w=Z&15;if(Q===Y)break;if(K+=X[Q],w===Y)break;K+=X[w]}return parseFloat(K)}function nw(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return ow(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw new Error("Invalid b0 "+K)}function sw(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw new Error("Object "+K+" already has key "+X);K[X]=Q}return K}function OJ(J,K,Y){K=K!==void 0?K:0;var X=new i.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var w=X.parseByte();if(w<=21){if(w===12)w=1200+X.parseByte();Z.push([w,Q]),Q=[]}else Q.push(nw(X,w))}return sw(Z)}function I8(J,K){if(K<=390)K=AQ[K];else K=J[K-391];return K}function NJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var w=K[Q];if(Array.isArray(w.type)){var H=[];H.length=w.type.length;for(var W=0;W<w.type.length;W++){if(Z=J[w.op]!==void 0?J[w.op][W]:void 0,Z===void 0)Z=w.value!==void 0&&w.value[W]!==void 0?w.value[W]:null;if(w.type[W]==="SID")Z=I8(Y,Z);H[W]=Z}X[w.name]=H}else{if(Z=J[w.op],Z===void 0)Z=w.value!==void 0?w.value:null;if(w.type==="SID")Z=I8(Y,Z);X[w.name]=Z}}return X}function aw(J,K){var Y={};return Y.formatMajor=i.getCard8(J,K),Y.formatMinor=i.getCard8(J,K+1),Y.size=i.getCard8(J,K+2),Y.offsetSize=i.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var tw=[{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"}],ew=[{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 JW(J,K){var Y=OJ(J,0,J.byteLength);return NJ(Y,tw,K)}function LJ(J,K,Y,X){var Z=OJ(J,K,Y);return NJ(Z,ew,X)}function r7(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var w=new DataView(new Uint8Array(Y[Q]).buffer),H=JW(w,X);H._subrs=[],H._subrsBias=0,H._defaultWidthX=0,H._nominalWidthX=0;var W=H.private[0],z=H.private[1];if(W!==0&&z!==0){var U=LJ(J,z+K,W,X);if(H._defaultWidthX=U.defaultWidthX,H._nominalWidthX=U.nominalWidthX,U.subrs!==0){var $=z+U.subrs,V=f1(J,$+K);H._subrs=V.objects,H._subrsBias=a6(H._subrs)}H._privateDict=U}Z.push(H)}return Z}function KW(J,K,Y,X){var Z,Q,w=new i.Parser(J,K);Y-=1;var H=[".notdef"],W=w.parseCard8();if(W===0)for(var z=0;z<Y;z+=1)Z=w.parseSID(),H.push(I8(X,Z));else if(W===1)while(H.length<=Y){Z=w.parseSID(),Q=w.parseCard8();for(var U=0;U<=Q;U+=1)H.push(I8(X,Z)),Z+=1}else if(W===2)while(H.length<=Y){Z=w.parseSID(),Q=w.parseCard16();for(var $=0;$<=Q;$+=1)H.push(I8(X,Z)),Z+=1}else throw new Error("Unknown charset format "+W);return H}function YW(J,K,Y){var X,Z={},Q=new i.Parser(J,K),w=Q.parseCard8();if(w===0){var H=Q.parseCard8();for(var W=0;W<H;W+=1)X=Q.parseCard8(),Z[X]=W}else if(w===1){var z=Q.parseCard8();X=1;for(var U=0;U<z;U+=1){var $=Q.parseCard8(),V=Q.parseCard8();for(var B=$;B<=$+V;B+=1)Z[B]=X,X+=1}}else throw new Error("Unknown encoding format "+w);return new B5(Z,Y)}function o7(J,K,Y){var X,Z,Q,w,H=new x0,W=[],z=0,U=!1,$=!1,V=0,B=0,M,A,G,N;if(J.isCIDFont){var L=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[L];M=E._subrs,A=E._subrsBias,G=E._defaultWidthX,N=E._nominalWidthX}else M=J.tables.cff.topDict._subrs,A=J.tables.cff.topDict._subrsBias,G=J.tables.cff.topDict._defaultWidthX,N=J.tables.cff.topDict._nominalWidthX;var D=G;function _(R,P){if($)H.closePath();H.moveTo(R,P),$=!0}function j(){var R=W.length%2!==0;if(R&&!U)D=W.shift()+N;z+=W.length>>1,W.length=0,U=!0}function T(R){var P,h,c,r,u,C,v,I,f,l,t,o,m=0;while(m<R.length){var d=R[m];switch(m+=1,d){case 1:j();break;case 3:j();break;case 4:if(W.length>1&&!U)D=W.shift()+N,U=!0;B+=W.pop(),_(V,B);break;case 5:while(W.length>0)V+=W.shift(),B+=W.shift(),H.lineTo(V,B);break;case 6:while(W.length>0){if(V+=W.shift(),H.lineTo(V,B),W.length===0)break;B+=W.shift(),H.lineTo(V,B)}break;case 7:while(W.length>0){if(B+=W.shift(),H.lineTo(V,B),W.length===0)break;V+=W.shift(),H.lineTo(V,B)}break;case 8:while(W.length>0)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 10:if(u=W.pop()+A,C=M[u],C)T(C);break;case 11:return;case 12:switch(d=R[m],m+=1,d){case 35:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w+W.shift(),f=v+W.shift(),l=I+W.shift(),t=f+W.shift(),o=l+W.shift(),V=t+W.shift(),B=o+W.shift(),W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 34:X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w,f=v+W.shift(),l=w,t=f+W.shift(),o=B,V=t+W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 36:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w,f=v+W.shift(),l=w,t=f+W.shift(),o=l+W.shift(),V=t+W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 37:if(X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w+W.shift(),f=v+W.shift(),l=I+W.shift(),t=f+W.shift(),o=l+W.shift(),Math.abs(t-V)>Math.abs(o-B))V=t+W.shift();else B=o+W.shift();H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+d),W.length=0}break;case 14:if(W.length>0&&!U)D=W.shift()+N,U=!0;if($)H.closePath(),$=!1;break;case 18:j();break;case 19:case 20:j(),m+=z+7>>3;break;case 21:if(W.length>2&&!U)D=W.shift()+N,U=!0;B+=W.pop(),V+=W.pop(),_(V,B);break;case 22:if(W.length>1&&!U)D=W.shift()+N,U=!0;V+=W.pop(),_(V,B);break;case 23:j();break;case 24:while(W.length>2)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);V+=W.shift(),B+=W.shift(),H.lineTo(V,B);break;case 25:while(W.length>6)V+=W.shift(),B+=W.shift(),H.lineTo(V,B);X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 26:if(W.length%2)V+=W.shift();while(W.length>0)X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q,B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 27:if(W.length%2)B+=W.shift();while(W.length>0)X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w,H.curveTo(X,Z,Q,w,V,B);break;case 28:P=R[m],h=R[m+1],W.push((P<<24|h<<16)>>16),m+=2;break;case 29:if(u=W.pop()+J.gsubrsBias,C=J.gsubrs[u],C)T(C);break;case 30:while(W.length>0){if(X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B),W.length===0)break;X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),B=w+W.shift(),V=Q+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B)}break;case 31:while(W.length>0){if(X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),B=w+W.shift(),V=Q+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B),W.length===0)break;X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B)}break;default:if(d<32)console.log("Glyph "+K.index+": unknown operator "+d);else if(d<247)W.push(d-139);else if(d<251)P=R[m],m+=1,W.push((d-247)*256+P+108);else if(d<255)P=R[m],m+=1,W.push(-(d-251)*256-P-108);else P=R[m],h=R[m+1],c=R[m+2],r=R[m+3],m+=4,W.push((P<<24|h<<16|c<<8|r)/65536)}}}return T(Y),K.advanceWidth=D,H}function XW(J,K,Y,X){var Z=[],Q,w=new i.Parser(J,K),H=w.parseCard8();if(H===0)for(var W=0;W<Y;W++){if(Q=w.parseCard8(),Q>=X)throw new Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if(H===3){var z=w.parseCard16(),U=w.parseCard16();if(U!==0)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var $;for(var V=0;V<z;V++){if(Q=w.parseCard8(),$=w.parseCard16(),Q>=X)throw new Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if($>Y)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+$);for(;U<$;U++)Z.push(Q);U=$}if($!==Y)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+$)}else throw new Error("CFF Table CID Font FDSelect table has unsupported format "+H);return Z}function ZW(J,K,Y,X){Y.tables.cff={};var Z=aw(J,K),Q=f1(J,Z.endOffset,i.bytesToString),w=f1(J,Q.endOffset),H=f1(J,w.endOffset,i.bytesToString),W=f1(J,H.endOffset);Y.gsubrs=W.objects,Y.gsubrsBias=a6(Y.gsubrs);var z=r7(J,K,w.objects,H.objects);if(z.length!==1)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var U=z[0];if(Y.tables.cff.topDict=U,U._privateDict)Y.defaultWidthX=U._privateDict.defaultWidthX,Y.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:$,fdSelect:V}=U;if($===0||V===0)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");$+=K;var B=f1(J,$),M=r7(J,K,B.objects,H.objects);U._fdArray=M,V+=K,U._fdSelect=XW(J,V,Y.numGlyphs,M.length)}var A=K+U.private[1],G=LJ(J,A,U.private[0],H.objects);if(Y.defaultWidthX=G.defaultWidthX,Y.nominalWidthX=G.nominalWidthX,G.subrs!==0){var N=A+G.subrs,L=f1(J,N);Y.subrs=L.objects,Y.subrsBias=a6(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=iw(J,K+U.charStrings),Y.nGlyphs=E.offsets.length;else E=f1(J,K+U.charStrings),Y.nGlyphs=E.objects.length;var D=KW(J,K+U.charset,Y.nGlyphs,H.objects);if(U.encoding===0)Y.cffEncoding=new B5(GQ,D);else if(U.encoding===1)Y.cffEncoding=new B5(MQ,D);else Y.cffEncoding=YW(J,K+U.encoding,D);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new F1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var R=rw(T,E.offsets,J,K+U.charStrings);Y.glyphs.push(T,F1.cffGlyphLoader(Y,T,o7,R))};else for(var _=0;_<Y.nGlyphs;_+=1){var j=E.objects[_];Y.glyphs.push(_,F1.cffGlyphLoader(Y,_,o7,j))}}var QW={parse:ZW};function wW(J,K,Y){var X={},Z=new i.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function WW(J,K,Y,X){var Z={},Q=new i.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var w=0;w<Y.length;++w)Z.coordinates[Y[w].tag]=Q.parseFixed();return Z}function HW(J,K,Y){var X=new i.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var w=X.parseUShort(),H=X.parseUShort(),W=X.parseUShort(),z=X.parseUShort(),U=[];for(var $=0;$<w;$++)U.push(wW(J,K+Q+$*H,Y));var V=[],B=K+Q+w*H;for(var M=0;M<W;M++)V.push(WW(J,B+M*z,U,Y));return{axes:U,instances:V}}var zW={parse:HW},UW=function(){return{coverage:this.parsePointer(S.coverage),attachPoints:this.parseList(S.pointer(S.uShortList))}},$W=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()}},VW=function(){return this.parseList(S.pointer($W))},BW=function(){return{coverage:this.parsePointer(S.coverage),ligGlyphs:this.parseList(S.pointer(VW))}},qW=function(){return this.parseUShort(),this.parseList(S.pointer(S.coverage))};function AW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(S.classDef),attachList:Y.parsePointer(UW),ligCaretList:Y.parsePointer(BW),markAttachClassDef:Y.parsePointer(S.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(qW);return Z}var GW={parse:AW},z1=new Array(10);z1[1]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(S.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(S.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};z1[2]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(S.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(S.pointer(S.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var w=this.parsePointer(S.classDef),H=this.parsePointer(S.classDef),W=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:w,classDef2:H,class1Count:W,class2Count:z,classRecords:this.parseList(W,S.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};z1[3]=function J(){return{error:"GPOS Lookup 3 not supported"}};z1[4]=function J(){return{error:"GPOS Lookup 4 not supported"}};z1[5]=function J(){return{error:"GPOS Lookup 5 not supported"}};z1[6]=function J(){return{error:"GPOS Lookup 6 not supported"}};z1[7]=function J(){return{error:"GPOS Lookup 7 not supported"}};z1[8]=function J(){return{error:"GPOS Lookup 8 not supported"}};z1[9]=function J(){return{error:"GPOS Lookup 9 not supported"}};function MW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1),variations:Y.parseFeatureVariationsList()}}var OW={parse:MW},U1=new Array(9);U1[1]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(S.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(S.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};U1[2]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),sequences:this.parseListOfLists()}};U1[3]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),alternateSets:this.parseListOfLists()}};U1[4]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var q8={sequenceIndex:S.uShort,lookupListIndex:S.uShort};U1[5]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(S.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,q8)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(S.coverage),classDef:this.parsePointer(S.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,q8)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,S.pointer(S.coverage)),lookupRecords:this.parseRecordList(Z,q8)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};U1[6]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(S.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(q8)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(S.coverage),backtrackClassDef:this.parsePointer(S.classDef),inputClassDef:this.parsePointer(S.classDef),lookaheadClassDef:this.parsePointer(S.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(q8)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(S.pointer(S.coverage)),inputCoverage:this.parseList(S.pointer(S.coverage)),lookaheadCoverage:this.parseList(S.pointer(S.coverage)),lookupRecords:this.parseRecordList(q8)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};U1[7]=function J(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new S(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:U1[Y].call(X)}};U1[8]=function J(){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(S.coverage),backtrackCoverage:this.parseList(S.pointer(S.coverage)),lookaheadCoverage:this.parseList(S.pointer(S.coverage)),substitutes:this.parseUShortList()}};function NW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var LW={parse:NW};function jW(J,K){var Y={},X=new i.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var FW={parse:jW};function EW(J,K){var Y={},X=new i.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var _W={parse:EW};function RW(J,K,Y,X,Z){var Q,w,H=new i.Parser(J,K);for(var W=0;W<X;W+=1){if(W<Y)Q=H.parseUShort(),w=H.parseShort();var z=Z.get(W);z.advanceWidth=Q,z.leftSideBearing=w}}function DW(J,K,Y,X,Z){J._hmtxTableData={};var Q,w,H=new i.Parser(K,Y);for(var W=0;W<Z;W+=1){if(W<X)Q=H.parseUShort(),w=H.parseShort();J._hmtxTableData[W]={advanceWidth:Q,leftSideBearing:w}}}function IW(J,K,Y,X,Z,Q,w){if(w.lowMemory)DW(J,K,Y,X,Z);else RW(K,Y,X,Z,Q)}var TW={parse:IW};function CW(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),w=J.parseUShort(),H=J.parseShort();K[Q+","+w]=H}return K}function PW(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var w=0;w<Q;w+=1){var H=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();K[H+","+W]=z}}return K}function SW(J,K){var Y=new i.Parser(J,K),X=Y.parseUShort();if(X===0)return CW(Y);else if(X===1)return PW(Y);else throw new Error("Unsupported kern table version ("+X+").")}var vW={parse:SW};function yW(J,K){var Y=new i.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var w=0;w<Z;w++){var H="",W=K+Y.parseUShort(),z=Y.parseUShort();for(var U=W;U<W+z;++U)H+=String.fromCharCode(J.getInt8(U));Q.push(H)}return Q}var kW={parse:yW};function gW(J,K,Y,X){var Z=new i.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,w=[];for(var H=0;H<Y+1;H+=1){var W=Q.call(Z);if(X)W*=2;w.push(W)}return w}var hW={parse:gW};function xW(J,K){var Y={},X=new i.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var bW={parse:xW};function mW(J,K){var Y={},X=new i.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var fW={parse:mW};function dW(J,K){var Y={},X=new i.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=new Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=new Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var lW={parse:dW},M5={};M5.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};M5.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var cW={"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"};M5.MACSTRING=function(J,K,Y,X){var Z=cW[X];if(Z===void 0)return;var Q="";for(var w=0;w<Y;w++){var H=J.getUint8(K+w);if(H<=127)Q+=String.fromCharCode(H);else Q+=Z[H&127]}return Q};function uW(J,K){var Y=new i.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var w=0;w<Z;w++){var H=Y.parseTag(),W=Y.parseULong(),z=Y.parseULong(),U=M5.UTF8(J,K+W,z);Q[H]=U}return Q}var pW={parse:uW};function n7(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=i.getTag(J,X),w=i.getULong(J,X+4),H=i.getULong(J,X+8),W=i.getULong(J,X+12);Y.push({tag:Q,checksum:w,offset:H,length:W,compression:!1}),X+=16}return Y}function iW(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=i.getTag(J,X),w=i.getULong(J,X+4),H=i.getULong(J,X+8),W=i.getULong(J,X+12),z=void 0;if(H<W)z="WOFF";else z=!1;Y.push({tag:Q,offset:w,compression:z,compressedLength:H,length:W}),X+=20}return Y}function D0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(VQ(Y,X),X.byteLength!==K.length)throw new Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function rW(J,K){K=K===void 0||K===null?{}:K;var Y,X=new b0({empty:!0}),Z=new DataView(J,0),Q,w=[],H=i.getTag(Z,0);if(H===String.fromCharCode(0,1,0,0)||H==="true"||H==="typ1")X.outlinesFormat="truetype",Q=i.getUShort(Z,4),w=n7(Z,Q);else if(H==="OTTO")X.outlinesFormat="cff",Q=i.getUShort(Z,4),w=n7(Z,Q);else if(H==="wOFF"){var W=i.getTag(Z,4);if(W===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(W==="OTTO")X.outlinesFormat="cff";else throw new Error("Unsupported OpenType flavor "+H);Q=i.getUShort(Z,12),w=iW(Z,Q)}else throw new Error("Unsupported OpenType signature "+H);var z,U,$,V,B,M,A,G,N,L,E;for(var D=0;D<Q;D+=1){var _=w[D],j=void 0;switch(_.tag){case"cmap":j=D0(Z,_),X.tables.cmap=pw.parse(j.data,j.offset),X.encoding=new ZJ(X.tables.cmap);break;case"cvt ":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.cvt=E.parseShortList(_.length/2);break;case"fvar":U=_;break;case"fpgm":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.fpgm=E.parseByteList(_.length);break;case"head":j=D0(Z,_),X.tables.head=FW.parse(j.data,j.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":j=D0(Z,_),X.tables.hhea=_W.parse(j.data,j.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":A=_;break;case"ltag":j=D0(Z,_),ltagTable=kW.parse(j.data,j.offset);break;case"maxp":j=D0(Z,_),X.tables.maxp=bW.parse(j.data,j.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":j=D0(Z,_),X.tables.os2=fW.parse(j.data,j.offset);break;case"post":j=D0(Z,_),X.tables.post=lW.parse(j.data,j.offset);break;case"prep":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.prep=E.parseByteList(_.length);break;case"glyf":$=_;break;case"loca":N=_;break;case"CFF ":z=_;break;case"kern":G=_;break;case"GDEF":V=_;break;case"GPOS":B=_;break;case"GSUB":M=_;break;case"meta":L=_;break}}if($&&N){var T=Y===0,R=D0(Z,N),P=hW.parse(R.data,R.offset,X.numGlyphs,T),h=D0(Z,$);X.glyphs=UJ.parse(h.data,h.offset,P,X,K)}else if(z){var c=D0(Z,z);QW.parse(c.data,c.offset,X,K)}else throw new Error("Font doesn't contain TrueType or CFF outlines.");var r=D0(Z,A);if(TW.parse(X,r.data,r.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),LQ(X,K),G){var u=D0(Z,G);X.kerningPairs=vW.parse(u.data,u.offset)}else X.kerningPairs={};if(V){var C=D0(Z,V);X.tables.gdef=GW.parse(C.data,C.offset)}if(B){var v=D0(Z,B);X.tables.gpos=OW.parse(v.data,v.offset),X.position.init()}if(M){var I=D0(Z,M);X.tables.gsub=LW.parse(I.data,I.offset)}if(U){var f=D0(Z,U);X.tables.fvar=zW.parse(f.data,f.offset,X.names)}if(L){var l=D0(Z,L);X.tables.meta=pW.parse(l.data,l.offset),X.metas=X.tables.meta}return X}function oW(){}function nW(){}var sW=Object.freeze({__proto__:null,Font:b0,Glyph:T1,Path:x0,_parse:i,parse:rW,load:oW,loadSync:nW}),O5=sW;var{create:tW,defineProperty:x5,getOwnPropertyDescriptor:eW,getOwnPropertyNames:JH,getPrototypeOf:KH}=Object,YH=Object.prototype.hasOwnProperty,F4=(J,K)=>()=>(J&&(K=J(J=0)),K),a=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),E4=(J,K)=>{for(var Y in K)x5(J,Y,{get:K[Y],enumerable:!0})},iJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of JH(K))!YH.call(J,Z)&&Z!==Y&&x5(J,Z,{get:()=>K[Z],enumerable:!(X=eW(K,Z))||X.enumerable});return J},XH=(J,K,Y)=>(Y=J!=null?tW(KH(J)):{},iJ(K||!J||!J.__esModule?x5(Y,"default",{value:J,enumerable:!0}):Y,J)),g5=(J)=>iJ(x5({},"__esModule",{value:!0}),J),rJ={};E4(rJ,{getYogaModule:()=>ZH});async function ZH(){let{default:J}=await import("../chunk-1g5hx2rt.js");return J()}var QH=F4(()=>{}),oJ=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),wH=a((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"]}),WH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),nJ=a((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.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:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("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:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({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",...X(Y("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:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("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:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("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:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("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:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>({auto:"auto",...Y("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:[]}}),b5={};E4(b5,{default:()=>sJ});var sJ,_4=F4(()=>{sJ={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])}}}),HH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((_4(),g5(b5)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:w,to:H}){K.default.warn(`${w}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${w}\` has been renamed to \`${H}\`.`,"Update your configuration file to silence this warning."])}var Z={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 X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),zH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let w of X){for(let H in w){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,H)||(Y[H]=w[H])}for(let H of Object.getOwnPropertySymbols(w)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,H)||(Y[H]=w[H])}}return Y}}),UH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw new Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),$H=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((_4(),g5(b5)));function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,H=new WeakMap;return(Y=function(W){return W?H:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var H=Y(w);if(H&&H.has(Q))return H.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var $=z?Object.getOwnPropertyDescriptor(Q,U):null;$&&($.get||$.set)?Object.defineProperty(W,U,$):W[U]=Q[U]}return W.default=Q,H&&H.set(Q,W),W}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((H)=>typeof H=="string"?!0:!(typeof(H==null?void 0:H.raw)!="string"||H!=null&&H.extension&&typeof(H==null?void 0:H.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((H)=>!["files","extract","transform"].includes(H)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((H)=>typeof H=="string"?!0:!(typeof(H==null?void 0:H.raw)!="string"||H!=null&&H.extension&&typeof(H==null?void 0:H.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let H of Object.values(Q.content.extract))if(typeof H!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let H of Object.values(Q.content.transform))if(typeof H!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.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"]),Q.safelist=(()=>{var H;let{content:W,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray(W==null?void 0:W.safelist)?W.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||(H=z.options)===null||H===void 0?void 0:H.safelist)?z.options.safelist:[]})(),typeof Q.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"]),Q.prefix="";else{var w;Q.prefix=(w=Q.prefix)!==null&&w!==void 0?w:""}Q.content={files:(()=>{let{content:H,purge:W}=Q;return Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray(H)?H:Array.isArray(H==null?void 0:H.content)?H.content:Array.isArray(H==null?void 0:H.files)?H.files:[]})(),extract:(()=>{let H=(()=>{var U,$,V,B,M,A,G,N,L,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!(($=Q.content)===null||$===void 0)&&$.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(B=V.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((M=Q.content)===null||M===void 0||(A=M.extract)===null||A===void 0)&&A.DEFAULT?Q.content.extract.DEFAULT:!((G=Q.purge)===null||G===void 0||(N=G.options)===null||N===void 0)&&N.extractors?Q.purge.options.extractors:!((L=Q.content)===null||L===void 0||(E=L.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),W={},z=(()=>{var U,$,V,B;if(!((U=Q.purge)===null||U===void 0||($=U.options)===null||$===void 0)&&$.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(B=V.options)===null||B===void 0)&&B.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(W.DEFAULT=z),typeof H=="function")W.DEFAULT=H;else if(Array.isArray(H))for(let{extensions:U,extractor:$}of H??[])for(let V of U)W[V]=$;else typeof H=="object"&&H!==null&&Object.assign(W,H);return W})(),transform:(()=>{let H=(()=>{var z,U,$,V,B,M;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!(($=Q.purge)===null||$===void 0||(V=$.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(M=B.transform)===null||M===void 0)&&M.DEFAULT?Q.content.transform.DEFAULT:{}})(),W={};return typeof H=="function"&&(W.DEFAULT=H),typeof H=="object"&&H!==null&&Object.assign(W,H),W})()};for(let H of Q.content.files)if(typeof H=="string"&&/{([^,]*?)}/g.test(H)){K.default.warn("invalid-glob-braces",[`The glob pattern ${K.dim(H)} in your Tailwind CSS configuration is invalid.`,`Update it to ${K.dim(H.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),VH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),BH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),aJ=a((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var w=Q.toLowerCase(),H="",W=!1,z=0;z<6&&w[z]!==void 0;z++){var U=w.charCodeAt(z),$=U>=97&&U<=102||U>=48&&U<=57;if(W=U===32,!$)break;H+=w[z]}if(H.length!==0){var V=parseInt(H,16),B=V>=55296&&V<=57343;return B||V===0||V>1114111?["\uFFFD",H.length+(W?1:0)]:[String.fromCodePoint(V),H.length+(W?1:0)]}}var X=/\\/;function Z(Q){var w=X.test(Q);if(!w)return Q;for(var H="",W=0;W<Q.length;W++){if(Q[W]==="\\"){var z=Y(Q.slice(W+1,W+7));if(z!==void 0){H+=z[0],W+=z[1];continue}if(Q[W+1]==="\\"){H+="\\",W++;continue}Q.length===W+1&&(H+=Q[W]);continue}H+=Q[W]}return H}K.exports=J.default}),qH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=new Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var H=Q.shift();if(!X[H])return;X=X[H]}return X}K.exports=J.default}),AH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=new Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var H=Q.shift();X[H]||(X[H]={}),X=X[H]}}K.exports=J.default}),GH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),w=0;Q>=0;){Z=Z+X.slice(w,Q);var H=X.indexOf("*/",Q+2);if(H<0)return Z;w=H+2,Q=X.indexOf("/*",w)}return Z=Z+X.slice(w),Z}K.exports=J.default}),m5=a((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(aJ());J.unesc=K.default;var Y=Q(qH());J.getProp=Y.default;var X=Q(AH());J.ensureObject=X.default;var Z=Q(GH());J.stripComments=Z.default;function Q(w){return w&&w.__esModule?w:{default:w}}}),p1=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=m5();function X(H,W){for(var z=0;z<W.length;z++){var U=W[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(H,U.key,U)}}function Z(H,W,z){return W&&X(H.prototype,W),z&&X(H,z),H}var Q=function H(W,z){if(typeof W!="object"||W===null)return W;var U=new W.constructor;for(var $ in W)if(W.hasOwnProperty($)){var V=W[$],B=typeof V;$==="parent"&&B==="object"?z&&(U[$]=z):V instanceof Array?U[$]=V.map(function(M){return H(M,U)}):U[$]=H(V,U)}return U},w=function(){function H(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var W=H.prototype;return W.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},W.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},W.next=function(){return this.parent.at(this.parent.index(this)+1)},W.prev=function(){return this.parent.at(this.parent.index(this)-1)},W.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var $ in z)U[$]=z[$];return U},W.appendToPropertyAndEscape=function(z,U,$){this.raws||(this.raws={});var V=this[z],B=this.raws[z];this[z]=V+U,B||$!==U?this.raws[z]=(B||V)+$:delete this.raws[z]},W.setPropertyAndEscape=function(z,U,$){this.raws||(this.raws={}),this[z]=U,this.raws[z]=$},W.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},W.isAtPosition=function(z,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>U||this.source.end.line===z&&this.source.end.column<U)},W.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},W.valueToString=function(){return String(this.stringifyProperty("value"))},W.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z(H,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){Y.ensureObject(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){Y.ensureObject(this,"raws","spaces"),this.raws.spaces.after=z}}]),H}();J.default=w,K.exports=J.default}),m0=a((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 Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var w="nesting";J.NESTING=w;var H="id";J.ID=H;var W="comment";J.COMMENT=W;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var $="attribute";J.ATTRIBUTE=$;var V="universal";J.UNIVERSAL=V}),R4=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(p1()),X=Q(m0());function Z(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Z=function(){return A},A}function Q(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var G=Z();if(G&&G.has(A))return G.get(A);var N={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var D=L?Object.getOwnPropertyDescriptor(A,E):null;D&&(D.get||D.set)?Object.defineProperty(N,E,D):N[E]=A[E]}return N.default=A,G&&G.set(A,N),N}function w(A){return A&&A.__esModule?A:{default:A}}function H(A,G){var N;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(N=W(A))||G&&A&&typeof A.length=="number"){N&&(A=N);var L=0;return function(){return L>=A.length?{done:!0}:{done:!1,value:A[L++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
61
+ `.replace(/\n|\s/g,""),fZ=new RegExp(mZ),dZ=/^transparent$/,lZ=new RegExp(dZ,"i"),x6=(J,K,Y)=>Math.min(Math.max(K,J),Y),cZ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return x6(Math.round(K),0,255)},V7=(J)=>x6(parseFloat(J),0,100);function A7(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return x6(K,0,1)}function uZ(J){let[K,Y,X,Z]=q7.default(J,{format:"array"});return H5([null,K,Y,X,Z])}function pZ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,V7(K),V7(Y)],alpha:A7(X===null?1:X)}}function H5([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(cZ),alpha:A7(X===null?1:X)}}var iZ=(J)=>{if(typeof J!=="string")return null;let K=TZ.exec(J);if(K)return uZ(K[0]);let Y=vZ.exec(J)||PZ.exec(J);if(Y)return pZ(Y);let X=bZ.exec(J)||fZ.exec(J)||kZ.exec(J)||hZ.exec(J);if(X)return H5(X);if(lZ.exec(J))return H5([null,0,0,0,0]);let Z=B7.default[J.toLowerCase()];if(Z)return H5([null,Z[0],Z[1],Z[2],1]);return null},z5=iZ;var IK=e0(_6(),1),TK=e0(w5(),1),M4=e0(M7(),1);function m6(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function b6(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=m6(J[Y],/\s+/);nZ(J[Y+1])?(K.push({color:Z,offset:s1(Q),hint:s1(J[Y+1])}),Y+=2):(K.push({color:Z,offset:s1(Q)}),Y++)}return K}var L7=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function nZ(J){return L7.test(J)}function s1(J){if(!J)return;let[,K,Y]=J.trim().match(L7)||[];return{value:K,unit:Y}}function j7(J){if(!/^(repeating-)?linear-gradient/.test(J))throw new SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=m6(Y),Q=sZ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:b6(Z)}}function sZ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:s1(J)}:null}var aZ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),tZ=new Set(["center","left","top","right","bottom"]);function O7(J){return aZ.has(J)}function N7(J){return tZ.has(J)}function eZ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function F7(J){if(!/(repeating-)?radial-gradient/.test(J))throw new SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=m6(Y);if(JQ(Z[0]))return{...X,stops:b6(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),w=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],H=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],W=eZ((Q[1]||"").split(" "));return w?X.shape=w:H.length===1&&!O7(H[0])?X.shape="circle":X.shape="ellipse",H.length===0&&H.push("farthest-corner"),X.size=H.map((z)=>O7(z)?{type:"keyword",value:z}:{type:"length",value:s1(z)}),X.position.x=N7(W[0])?{type:"keyword",value:W[0]}:{type:"length",value:s1(W[0])},X.position.y=N7(W[1])?{type:"keyword",value:W[1]}:{type:"length",value:s1(W[1])},(w||H.length>0||Q[1])&&Z.shift(),{...X,stops:b6(Z)}}function JQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var O4=e0(w5(),1);var J1=Uint8Array,t1=Uint16Array,s7=Uint32Array,a7=new J1([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]),t7=new J1([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]),KQ=new J1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e7=function(J,K){var Y=new t1(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new s7(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},JJ=e7(a7,2),KJ=JJ[0],YQ=JJ[1];KJ[28]=258,YQ[258]=28;var XQ=e7(t7,0),ZQ=XQ[0],n6=new t1(32768);for(Z0=0;Z0<32768;++Z0)L1=(Z0&43690)>>>1|(Z0&21845)<<1,L1=(L1&52428)>>>2|(L1&13107)<<2,L1=(L1&61680)>>>4|(L1&3855)<<4,n6[Z0]=((L1&65280)>>>8|(L1&255)<<8)>>>1;var L1,Z0,D8=function(J,K,Y){var X=J.length,Z=0,Q=new t1(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var w=new t1(K);for(Z=0;Z<K;++Z)w[Z]=w[Z-1]+Q[Z-1]<<1;var H;if(Y){H=new t1(1<<K);var W=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],U=K-J[Z],$=w[J[Z]-1]++<<U;for(var V=$|(1<<U)-1;$<=V;++$)H[n6[$]>>>W]=z}}else{H=new t1(X);for(Z=0;Z<X;++Z)if(J[Z])H[Z]=n6[w[J[Z]-1]++]>>>15-J[Z]}return H},C8=new J1(288);for(Z0=0;Z0<144;++Z0)C8[Z0]=8;var Z0;for(Z0=144;Z0<256;++Z0)C8[Z0]=9;var Z0;for(Z0=256;Z0<280;++Z0)C8[Z0]=7;var Z0;for(Z0=280;Z0<288;++Z0)C8[Z0]=8;var Z0,YJ=new J1(32);for(Z0=0;Z0<32;++Z0)YJ[Z0]=5;var Z0,QQ=D8(C8,9,1),wQ=D8(YJ,5,1),f6=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},W1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},d6=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},WQ=function(J){return(J+7)/8|0},HQ=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?t1:J.BYTES_PER_ELEMENT==4?s7:J1)(Y-K);return X.set(J.subarray(K,Y)),X},zQ=["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"],m1=function(J,K,Y){var X=new Error(K||zQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,m1);if(!Y)throw X;return X},UQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new J1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new J1(X*3);var w=function(g){var e=K.length;if(g>e){var Y0=new J1(Math.max(e*2,g));Y0.set(K),K=Y0}},H=Y.f||0,W=Y.p||0,z=Y.b||0,U=Y.l,$=Y.d,V=Y.m,B=Y.n,M=X*8;do{if(!U){H=W1(J,W,1);var A=W1(J,W+1,3);if(W+=3,!A){var G=WQ(W)+4,N=J[G-4]|J[G-3]<<8,L=G+N;if(L>X){if(Q)m1(0);break}if(Z)w(z+N);K.set(J.subarray(G,L),z),Y.b=z+=N,Y.p=W=L*8,Y.f=H;continue}else if(A==1)U=QQ,$=wQ,V=9,B=5;else if(A==2){var E=W1(J,W,31)+257,D=W1(J,W+10,15)+4,_=E+W1(J,W+5,31)+1;W+=14;var j=new J1(_),T=new J1(19);for(var R=0;R<D;++R)T[KQ[R]]=W1(J,W+R*3,7);W+=D*3;var P=f6(T),h=(1<<P)-1,c=D8(T,P,1);for(var R=0;R<_;){var r=c[W1(J,W,h)];W+=r&15;var G=r>>>4;if(G<16)j[R++]=G;else{var u=0,C=0;if(G==16)C=3+W1(J,W,3),W+=2,u=j[R-1];else if(G==17)C=3+W1(J,W,7),W+=3;else if(G==18)C=11+W1(J,W,127),W+=7;while(C--)j[R++]=u}}var v=j.subarray(0,E),I=j.subarray(E);V=f6(v),B=f6(I),U=D8(v,V,1),$=D8(I,B,1)}else m1(1);if(W>M){if(Q)m1(0);break}}if(Z)w(z+131072);var f=(1<<V)-1,l=(1<<B)-1,t=W;for(;;t=W){var u=U[d6(J,W)&f],o=u>>>4;if(W+=u&15,W>M){if(Q)m1(0);break}if(!u)m1(2);if(o<256)K[z++]=o;else if(o==256){t=W,U=null;break}else{var m=o-254;if(o>264){var R=o-257,d=a7[R];m=W1(J,W,(1<<d)-1)+KJ[R],W+=d}var y=$[d6(J,W)&l],k=y>>>4;if(!y)m1(3);W+=y&15;var I=ZQ[k];if(k>3){var d=t7[k];I+=d6(J,W)&(1<<d)-1,W+=d}if(W>M){if(Q)m1(0);break}if(Z)w(z+131072);var n=z+m;for(;z<n;z+=4)K[z]=K[z-I],K[z+1]=K[z+1-I],K[z+2]=K[z+2-I],K[z+3]=K[z+3-I];z=n}}if(Y.l=U,Y.p=t,Y.b=z,Y.f=H,U)H=1,Y.m=V,Y.d=$,Y.n=B}while(!H);return z==K.length?K:HQ(K,0,z)},$Q=new J1(0);function VQ(J,K){return UQ(J,K)}var BQ=typeof TextDecoder!="undefined"&&new TextDecoder,qQ=0;try{BQ.decode($Q,{stream:!0}),qQ=1}catch(J){}function x0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}x0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};x0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};x0.prototype.curveTo=x0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};x0.prototype.quadTo=x0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};x0.prototype.close=x0.prototype.closePath=function(){this.commands.push({type:"Z"})};x0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};x0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(w){if(Math.round(w)===w)return""+Math.round(w);else return w.toFixed(J)}function Y(){var w=arguments,H="";for(var W=0;W<arguments.length;W+=1){var z=w[W];if(z>=0&&W>0)H+=" ";H+=K(z)}return H}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var AQ=[".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"],GQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],MQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function XJ(J){this.font=J}XJ.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function ZJ(J){this.cmap=J}ZJ.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function B5(J,K){this.encoding=J,this.charset=K}B5.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function OQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],w=Y[Q];K=J.glyphs.get(w),K.addUnicode(parseInt(Q))}}function NQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function LQ(J,K){if(K.lowMemory)NQ(J);else OQ(J)}function QJ(J){throw new Error(J)}function E7(J,K){if(!J)QJ(K)}var z0={fail:QJ,argument:E7,assert:E7};function jQ(J,K){var Y=K||new x0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function T1(J){this.bindConstructorValues(J)}T1.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",jQ(this,J.path))};T1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};T1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,w;if(!X)X={};var{xScale:H,yScale:W}=X;if(X.hinting&&Z&&Z.hinting)w=this.path&&Z.hinting.exec(this,Y);if(w)Q=Z.hinting.getCommands(w),J=Math.round(J),K=Math.round(K),H=W=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if(H===void 0)H=z;if(W===void 0)W=z}var U=new x0;for(var $=0;$<Q.length;$+=1){var V=Q[$];if(V.type==="M")U.moveTo(J+V.x*H,K+-V.y*W);else if(V.type==="L")U.lineTo(J+V.x*H,K+-V.y*W);else if(V.type==="Q")U.quadraticCurveTo(J+V.x1*H,K+-V.y1*W,J+V.x*H,K+-V.y*W);else if(V.type==="C")U.curveTo(J+V.x1*H,K+-V.y1*W,J+V.x2*H,K+-V.y2*W,J+V.x*H,K+-V.y*W);else if(V.type==="Z")U.closePath()}return U};T1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return z0.argument(K.length===0,"There are still points left in the current contour."),J};T1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function U5(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function t6(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}t6.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],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);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]};t6.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function FQ(J,K){return new T1({index:K,font:J})}function EQ(J,K,Y,X,Z,Q){return function(){var w=new T1({index:K,font:J});return w.path=function(){Y(w,X,Z);var H=Q(J.glyphs,w);return H.unitsPerEm=J.unitsPerEm,H},U5(w,"xMin","_xMin"),U5(w,"xMax","_xMax"),U5(w,"yMin","_yMin"),U5(w,"yMax","_yMax"),w}}function _Q(J,K,Y,X){return function(){var Z=new T1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var F1={GlyphSet:t6,glyphLoader:FQ,ttfGlyphLoader:EQ,cffGlyphLoader:_Q};function l6(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function _7(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function R7(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var w=Y.start;if(w===K)return Y;else if(w<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function P8(J,K){this.font=J,this.tableName=K}P8.prototype={searchTag:l6,binSearch:_7,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 Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=l6(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=l6(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,w=Z.featureIndexes,H=this.font.tables[this.tableName].features;for(var W=0;W<w.length;W++)if(Q=H[w[W]],Q.tag===Y)return Q.feature;if(X){var z=H.length;return z0.assert(z===0||Y>=H[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},H.push(Q),w.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),w=[];if(Q){var H,W=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var U=0;U<W.length;U++)if(H=z[W[U]],H.lookupType===X)w.push(H);if(w.length===0&&Z){H={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var $=z.length;return z.push(H),W.push($),[H]}}return w},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 Y=R7(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=_7(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=R7(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,w=Z.end;for(var H=Q;H<=w;H++)K.push(H)}return K}}};function S8(J){P8.call(this,J,"gpos")}S8.prototype=P8.prototype;S8.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};S8.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var w=Z[Q],H=this.getCoverageIndex(w.coverage,K);if(H<0)continue;switch(w.posFormat){case 1:var W=w.pairSets[H];for(var z=0;z<W.length;z++){var U=W[z];if(U.secondGlyph===Y)return U.value1&&U.value1.xAdvance||0}break;case 2:var $=this.getGlyphClass(w.classDef1,K),V=this.getGlyphClass(w.classDef2,Y),B=w.classRecords[$][V];return B.value1&&B.value1.xAdvance||0}}}return 0};S8.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function r0(J){P8.call(this,J,"gsub")}function RQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function e6(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}r0.prototype=P8.prototype;r0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};r0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=void 0;if(W.substFormat===1){var $=W.deltaGlyphId;for(U=0;U<z.length;U++){var V=z[U];X.push({sub:V,by:V+$})}}else{var B=W.substitute;for(U=0;U<z.length;U++)X.push({sub:z[U],by:B[U]})}}}return X};r0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=void 0;for(U=0;U<z.length;U++){var $=z[U],V=W.sequences[U];X.push({sub:$,by:V})}}}return X};r0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=W.alternateSets;for(var $=0;$<z.length;$++)X.push({sub:z[$],by:U[$]})}}return X};r0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var H=0;H<w.length;H++){var W=w[H],z=this.expandCoverage(W.coverage),U=W.ligatureSets;for(var $=0;$<z.length;$++){var V=z[$],B=U[$];for(var M=0;M<B.length;M++){var A=B[M];X.push({sub:[V].concat(A.components),by:A.ligGlyph})}}}}return X};r0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=e6(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});z0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.substitute.splice(H,0,0);Q.substitute[H]=K.by};r0.prototype.addMultiple=function(J,K,Y,X){z0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});z0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.sequences.splice(H,0,0);Q.sequences[H]=K.by};r0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=e6(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});z0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,H=this.binSearch(Q.coverage.glyphs,w);if(H<0)H=-1-H,Q.coverage.glyphs.splice(H,0,w),Q.alternateSets.splice(H,0,0);Q.alternateSets[H]=K.by};r0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;z0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var w=K.sub[0],H=K.sub.slice(1),W={ligGlyph:K.by,components:H},z=this.binSearch(Q.coverage.glyphs,w);if(z>=0){var U=Q.ligatureSets[z];for(var $=0;$<U.length;$++)if(RQ(U[$].components,H))return;U.push(W)}else z=-1-z,Q.coverage.glyphs.splice(z,0,w),Q.ligatureSets.splice(z,0,[W])};r0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};r0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function R8(J,K){if(!J)throw K}function D7(J,K){return J.getUint8(K)}function q5(J,K){return J.getUint16(K,!1)}function DQ(J,K){return J.getInt16(K,!1)}function J4(J,K){return J.getUint32(K,!1)}function wJ(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function IQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function TQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function CQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function PQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var SQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function S(J,K){this.data=J,this.offset=K,this.relativeOffset=0}S.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};S.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};S.prototype.parseCard8=S.prototype.parseByte;S.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};S.prototype.parseCard16=S.prototype.parseUShort;S.prototype.parseSID=S.prototype.parseUShort;S.prototype.parseOffset16=S.prototype.parseUShort;S.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};S.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};S.prototype.parseULong=function(){var J=J4(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};S.prototype.parseOffset32=S.prototype.parseULong;S.prototype.parseFixed=function(){var J=wJ(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};S.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};S.prototype.parseTag=function(){return this.parseString(4)};S.prototype.parseLongDateTime=function(){var J=J4(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};S.prototype.parseVersion=function(J){var K=q5(this.data,this.offset+this.relativeOffset),Y=q5(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};S.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=SQ[J]*K};S.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};S.prototype.parseOffset16List=S.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};S.prototype.parseShortList=function(J){var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};S.prototype.parseByteList=function(J){var K=new Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};S.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=new Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};S.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=new Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};S.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=new Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var H=X[w],W=K[H];Q[H]=W.call(this)}Y[Z]=Q}return Y};S.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=new Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var H=X[w],W=K[H];Q[H]=W.call(this)}Y[Z]=Q}return Y};S.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};S.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};S.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=new Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};S.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new S(this.data,this.offset+K).parseStruct(J);return};S.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new S(this.data,this.offset+K).parseStruct(J);return};S.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=new Array(Y);for(var Q=0;Q<Y;Q++){var w=K[Q];if(w===0){Z[Q]=void 0;continue}if(this.relativeOffset=w,J){var H=this.parseOffset16List(),W=new Array(H.length);for(var z=0;z<H.length;z++)this.relativeOffset=w+H[z],W[z]=J.call(this);Z[Q]=W}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};S.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=new Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw new Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};S.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:S.uShort,end:S.uShort,classId:S.uShort})};throw new Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};S.list=function(J,K){return function(){return this.parseList(J,K)}};S.list32=function(J,K){return function(){return this.parseList32(J,K)}};S.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};S.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};S.pointer=function(J){return function(){return this.parsePointer(J)}};S.pointer32=function(J){return function(){return this.parsePointer32(J)}};S.tag=S.prototype.parseTag;S.byte=S.prototype.parseByte;S.uShort=S.offset16=S.prototype.parseUShort;S.uShortList=S.prototype.parseUShortList;S.uLong=S.offset32=S.prototype.parseULong;S.uLongList=S.prototype.parseULongList;S.struct=S.prototype.parseStruct;S.coverage=S.prototype.parseCoverage;S.classDef=S.prototype.parseClassDef;var I7={reserved:S.uShort,reqFeatureIndex:S.uShort,featureIndexes:S.uShortList};S.prototype.parseScriptList=function(){return this.parsePointer(S.recordList({tag:S.tag,script:S.pointer({defaultLangSys:S.pointer(I7),langSysRecords:S.recordList({tag:S.tag,langSys:S.pointer(I7)})})}))||[]};S.prototype.parseFeatureList=function(){return this.parsePointer(S.recordList({tag:S.tag,feature:S.pointer({featureParams:S.offset16,lookupListIndexes:S.uShortList})}))||[]};S.prototype.parseLookupList=function(J){return this.parsePointer(S.list(S.pointer(function(){var K=this.parseUShort();z0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(S.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};S.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 Y=this.parseRecordList32({conditionSetOffset:S.offset32,featureTableSubstitutionOffset:S.offset32});return Y})||[]};var i={getByte:D7,getCard8:D7,getUShort:q5,getCard16:q5,getShort:DQ,getULong:J4,getFixed:wJ,getTag:IQ,getOffset:TQ,getBytes:CQ,bytesToString:PQ,Parser:S};function T7(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function WJ(J,K,Y){var X=new i.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var w=J.endPointIndices=[];for(var H=0;H<J.numberOfContours;H+=1)w.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var W=0;W<J.instructionLength;W+=1)J.instructions.push(X.parseByte());var z=w[w.length-1]+1;Z=[];for(var U=0;U<z;U+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var $=X.parseByte();for(var V=0;V<$;V+=1)Z.push(Q),U+=1}if(z0.argument(Z.length===z,"Bad flags."),w.length>0){var B=[],M;if(z>0){for(var A=0;A<z;A+=1)Q=Z[A],M={},M.onCurve=!!(Q&1),M.lastPointOfContour=w.indexOf(A)>=0,B.push(M);var G=0;for(var N=0;N<z;N+=1)Q=Z[N],M=B[N],M.x=T7(X,Q,G,2,16),G=M.x;var L=0;for(var E=0;E<z;E+=1)Q=Z[E],M=B[E],M.y=T7(X,Q,L,4,32),L=M.y}J.points=B}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var D=!0;while(D){Z=X.parseUShort();var _={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)_.dx=X.parseShort(),_.dy=X.parseShort();else _.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)_.dx=X.parseChar(),_.dy=X.parseChar();else _.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)_.xScale=_.yScale=X.parseF2Dot14();else if((Z&64)>0)_.xScale=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();else if((Z&128)>0)_.xScale=X.parseF2Dot14(),_.scale01=X.parseF2Dot14(),_.scale10=X.parseF2Dot14(),_.yScale=X.parseF2Dot14();J.components.push(_),D=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(X.parseByte())}}}function c6(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function vQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return z0.argument(Y.length===0,"There are still points left in the current contour."),K}function HJ(J){var K=new x0;if(!J)return K;var Y=vQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,w=Z[Z.length-1],H=Z[0];if(w.onCurve)K.moveTo(w.x,w.y);else if(H.onCurve)K.moveTo(H.x,H.y);else{var W={x:(w.x+H.x)*0.5,y:(w.y+H.y)*0.5};K.moveTo(W.x,W.y)}for(var z=0;z<Z.length;++z)if(Q=w,w=H,H=Z[(z+1)%Z.length],w.onCurve)K.lineTo(w.x,w.y);else{var U=Q,$=H;if(!Q.onCurve)U={x:(w.x+Q.x)*0.5,y:(w.y+Q.y)*0.5};if(!H.onCurve)$={x:(w.x+H.x)*0.5,y:(w.y+H.y)*0.5};K.quadraticCurveTo(w.x,w.y,$.x,$.y)}K.closePath()}return K}function zJ(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=c6(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var w=K.points[X.matchedPoints[0]],H=Z.points[X.matchedPoints[1]],W={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};H=c6([H],W)[0],W.dx=w.x-H.x,W.dy=w.y-H.y,Q=c6(Z.points,W)}K.points=K.points.concat(Q)}}return HJ(K.points)}function yQ(J,K,Y,X){var Z=new F1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var w=Y[Q],H=Y[Q+1];if(w!==H)Z.push(Q,F1.ttfGlyphLoader(X,Q,WJ,J,K+w,zJ));else Z.push(Q,F1.glyphLoader(X,Q))}return Z}function kQ(J,K,Y,X){var Z=new F1.GlyphSet(X);return X._push=function(Q){var w=Y[Q],H=Y[Q+1];if(w!==H)Z.push(Q,F1.ttfGlyphLoader(X,Q,WJ,J,K+w,zJ));else Z.push(Q,F1.glyphLoader(X,Q))},Z}function gQ(J,K,Y,X,Z){if(Z.lowMemory)return kQ(J,K,Y,X);else return yQ(J,K,Y,X)}var UJ={getPath:HJ,parse:gQ},$J,e1,VJ,s6;function BJ(J){this.font=J,this.getCommands=function(K){return UJ.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function hQ(J){return J}function qJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function xQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function bQ(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function mQ(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function fQ(J){return Math.sign(J)*Math.floor(Math.abs(J))}var AJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},j1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,W=K.x-K.xo,z=Y.x-Y.xo,w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){J.x=J.xo+(W+z)/2;return}J.x=J.xo+(W*H+z*w)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){j1.setRelative(J,J,(W+z)/2,X,!0);return}j1.setRelative(J,J,(W*H+z*w)/U,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y;J.x=H+(J.y-W)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},D1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,W=K.y-K.yo,z=Y.y-Y.yo,w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){J.y=J.yo+(W+z)/2;return}J.y=J.yo+(W*H+z*w)/U;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),H=Math.abs(Q),U=w+H,U===0){D1.setRelative(J,J,(W+z)/2,X,!0);return}D1.setRelative(J,J,(W*H+z*w)/U,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y;J.y=W+X.normalSlope*(J.x-H)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(j1);Object.freeze(D1);function v8(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}v8.prototype.distance=function(J,K,Y,X){return this.x*j1.distance(J,K,Y,X)+this.y*D1.distance(J,K,Y,X)};v8.prototype.interpolate=function(J,K,Y,X){var Z,Q,w,H,W,z,U;if(w=X.distance(J,K,!0,!0),H=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),W=Math.abs(w),z=Math.abs(H),U=W+z,U===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*W)/U,X,!0)};v8.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,H=Q+Y*X.x,W=w+Y*X.y,z=X.normalSlope,U=this.slope,$=J.x,V=J.y;J.x=(U*$-z*H+W-V)/(U-z),J.y=U*(J.x-$)+V};v8.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function y8(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return j1;else if(J===0&&K===1)return D1;else return new v8(J,K)}function I1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}I1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};I1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var T8=Object.freeze(new I1(0,0)),dQ={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function d1(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=j1,this.round=qJ}}BJ.prototype.exec=function(J,K){if(typeof K!=="number")throw new Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(d1.prototype=dQ,Z=this._fpgmState=new d1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,fV.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{e1(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}d1.prototype=Z,X=this._prepState=new d1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var w=X.cvt=new Array(Q.length),H=K/Y.unitsPerEm;for(var W=0;W<Q.length;W++)w[W]=Q[W]*H}else X.cvt=[];if(fV.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{e1(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return VJ(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};VJ=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,w,H;if(d1.prototype=K,!Z){if(H=new d1("glyf",J.instructions),fV.DEBUG)console.log("---EXEC GLYPH---"),H.step=-1;s6(J,H,Y,X),w=H.gZone}else{var W=K.font;w=[],Q=[];for(var z=0;z<Z.length;z++){var U=Z[z],$=W.glyphs.get(U.glyphIndex);if(H=new d1("glyf",$.instructions),fV.DEBUG)console.log("---EXEC COMP "+z+"---"),H.step=-1;s6($,H,Y,X);var V=Math.round(U.dx*Y),B=Math.round(U.dy*X),M=H.gZone,A=H.contours;for(var G=0;G<M.length;G++){var N=M[G];N.xTouched=N.yTouched=!1,N.xo=N.x=N.x+V,N.yo=N.y=N.y+B}var L=w.length;w.push.apply(w,M);for(var E=0;E<A.length;E++)Q.push(A[E]+L)}if(J.instructions&&!H.inhibitGridFit){if(H=new d1("glyf",J.instructions),H.gZone=H.z0=H.z1=H.z2=w,H.contours=Q,w.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),fV.DEBUG)console.log("---EXEC COMPOSITE---"),H.step=-1;e1(H),w.length-=2}}return w};s6=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,w=K.gZone=K.z0=K.z1=K.z2=[],H=K.contours=[],W;for(var z=0;z<Q;z++)W=Z[z],w[z]=new I1(W.x*Y,W.y*X,W.lastPointOfContour,W.onCurve);var U,$;for(var V=0;V<Q;V++){if(W=w[V],!U)U=W,H.push(V);if(W.lastPointOfContour)W.nextPointOnContour=U,U.prevPointOnContour=W,U=void 0;else $=w[V+1],W.nextPointOnContour=$,$.prevPointOnContour=W}if(K.inhibitGridFit)return;if(fV.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var B=0;B<Q;B++)console.log(B,w[B].x,w[B].y)}if(w.push(new I1(0,0),new I1(Math.round(J.advanceWidth*Y),0)),e1(K),w.length-=2,fV.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var M=0;M<Q;M++)console.log(M,w[M].x,w[M].y)}};e1=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(fV.DEBUG)J.step++;if(X=$J[K[J.ip]],!X)throw new Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function A5(J){var K=J.tZone=new Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new I1(0,0)}function GJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function C7(J,K){if(fV.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function P7(J,K){if(fV.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function S7(J,K){if(fV.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function v7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log("SPVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.pv=K.dpv=y8(H,W)}function y7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log("SFVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.fv=y8(H,W)}function lQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=y8(X,Y)}function cQ(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=y8(X,Y)}function uQ(J){var{stack:K,pv:Y}=J;if(fV.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function pQ(J){var{stack:K,fv:Y}=J;if(fV.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function iQ(J){if(J.fv=J.pv,fV.DEBUG)console.log(J.step,"SFVTPV[]")}function rQ(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),w=K.pop(),H=J.z0,W=J.z1,z=H[Y],U=H[X],$=W[Z],V=W[Q],B=J.z2[w];if(fV.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,w);var{x:M,y:A}=z,G=U.x,N=U.y,L=$.x,E=$.y,D=V.x,_=V.y,j=(M-G)*(E-_)-(A-N)*(L-D),T=M*N-A*G,R=L*_-E*D;B.x=(T*(L-D)-R*(M-G))/j,B.y=(T*(E-_)-R*(A-N))/j}function oQ(J){if(J.rp0=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function nQ(J){if(J.rp1=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function sQ(J){if(J.rp2=J.stack.pop(),fV.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function aQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)A5(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function tQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)A5(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function eQ(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)A5(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function J2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)A5(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw new Error("Invalid zone pointer")}}function K2(J){if(J.loop=J.stack.pop(),fV.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Y2(J){if(fV.DEBUG)console.log(J.step,"RTG[]");J.round=qJ}function X2(J){if(fV.DEBUG)console.log(J.step,"RTHG[]");J.round=bQ}function Z2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function Q2(J){if(fV.DEBUG)console.log(J.step,"ELSE[]");GJ(J,!1)}function w2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function W2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function H2(J){var K=J.stack;if(fV.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function u6(J){if(fV.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function z2(J){if(fV.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function U2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function $2(J){var K=J.stack;if(fV.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function V2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var w=0;w<X;w++)if(e1(J),fV.DEBUG)console.log(++J.step,w+1<X?"next loopcall":"done loopcall",w);J.ip=Z,J.prog=Q}function B2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],e1(J),J.ip=Y,J.prog=X,fV.DEBUG)console.log(++J.step,"returning from",K)}function q2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function A2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function G2(J){if(J.env!=="fpgm")throw new Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(fV.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function k7(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(fV.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var w=Q.distance(X,T8);if(J)w=K.round(w);Z.setRelative(X,T8,w,Q),Z.touch(X),K.rp0=K.rp1=Y}function g7(J,K){var Y=K.z2,X=Y.length-2,Z,Q,w;if(fV.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var H=0;H<X;H++){if(Z=Y[H],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(w=Z.nextTouched(J),Q===w)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,w,J)}}function h7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=K.loop,W=K.z2;while(H--){var z=Y.pop(),U=W[z],$=w.distance(Z,Z,!1,!0);if(Q.setRelative(U,U,$,w),Q.touch(U),fV.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-H)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function x7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=Y.pop(),W=K.z2[K.contours[H]],z=W;if(fV.DEBUG)console.log(K.step,"SHC["+J+"]",H);var U=w.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,U,w);z=z.nextPointOnContour}while(z!==W)}function b7(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,H=Y.pop();if(fV.DEBUG)console.log(K.step,"SHZ["+J+"]",H);var W;switch(H){case 0:W=K.tZone;break;case 1:W=K.gZone;break;default:throw new Error("Invalid zone")}var z,U=w.distance(Z,Z,!1,!0),$=W.length-2;for(var V=0;V<$;V++)z=W[V],Q.setRelative(z,z,U,w)}function M2(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var w=K.pop(),H=Q[w];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",w,Z);X.setRelative(H,H,Z),X.touch(H)}J.loop=1}function O2(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],w=J.z1[X],H=J.fv,W=J.dpv,z=J.z2;while(Z--){var U=K.pop(),$=z[U];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",U,Y,"<->",X);H.interpolate($,Q,w,W),H.touch($)}J.loop=1}function m7(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],w=K.z0[K.rp0],H=K.fv,W=K.pv;if(H.setRelative(Q,w,X,W),H.touch(Q),fV.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function N2(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,w=J.pv,H=J.z1;while(Z--){var W=K.pop(),z=H[W];if(fV.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",W);Q.setRelative(z,X,0,w),Q.touch(z)}J.loop=1}function L2(J){if(fV.DEBUG)console.log(J.step,"RTDG[]");J.round=xQ}function f7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],w=K.fv,H=K.pv,W=K.cvt[X];if(fV.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",W,")",Z);var z=H.distance(Q,T8);if(J){if(Math.abs(z-W)<K.cvCutIn)z=W;z=K.round(z)}if(w.setRelative(Q,T8,z,H),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;w.touch(Q),K.rp0=K.rp1=Z}function j2(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(fV.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function F2(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(fV.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var w=Y[++K]<<8|Y[++K];if(w&32768)w=-((w^65535)+1);X.push(w)}J.ip=K}function E2(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(fV.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function _2(J){var{stack:K,store:Y}=J,X=K.pop();if(fV.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function R2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function D2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function d7(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(fV.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,T8,J,!1)*64)}function l7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],w=K.z0[Z],H=K.dpv.distance(w,Q,J,J);if(fV.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",H);K.stack.push(Math.round(H*64))}function I2(J){if(fV.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function T2(J){if(fV.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function C2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function P2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function S2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function v2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function y2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function k2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function g2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function h2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function x2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(GJ(J,!0),fV.DEBUG)console.log(J.step,"EIF[]")}}function b2(J){if(fV.DEBUG)console.log(J.step,"EIF[]")}function m2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function f2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function d2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function p6(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,w=K.ppem,H=K.deltaBase+(J-1)*16,W=K.deltaShift,z=K.z0;if(fV.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var U=0;U<X;U++){var $=Y.pop(),V=Y.pop(),B=H+((V&240)>>4);if(B!==w)continue;var M=(V&15)-8;if(M>=0)M++;if(fV.DEBUG)console.log(K.step,"DELTAPFIX",$,"by",M*W);var A=z[$];Z.setRelative(A,A,M*W,Q)}}function l2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function c2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function u2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function p2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function i2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function r2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function o2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function n2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function s2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function a2(J){var K=J.stack,Y=K.pop();if(fV.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function $5(J,K){var Y=K.stack,X=Y.pop();if(fV.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function t2(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function i6(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,w=K.deltaShift;if(fV.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var H=0;H<X;H++){var W=Y.pop(),z=Y.pop(),U=Q+((z&240)>>4);if(U!==Z)continue;var $=(z&15)-8;if($>=0)$++;var V=$*w;if(fV.DEBUG)console.log(K.step,"DELTACFIX",W,"by",V);K.cvt[W]+=V}}function e2(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SROUND[]",K);J.round=AJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw new Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw new Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function Jw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=AJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw new Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function Kw(J){if(fV.DEBUG)console.log(J.step,"ROFF[]");J.round=hQ}function Yw(J){if(fV.DEBUG)console.log(J.step,"RUTG[]");J.round=mQ}function Xw(J){if(fV.DEBUG)console.log(J.step,"RDTG[]");J.round=fQ}function Zw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function c7(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(fV.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var H,W;if(!J)H=w.x-Q.x,W=w.y-Q.y;else H=Q.y-w.y,W=w.x-Q.x;K.dpv=y8(H,W)}function Qw(J){var K=J.stack,Y=K.pop(),X=0;if(fV.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function ww(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(fV.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function Ww(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function Hw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(fV.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function zw(J){var K=J.stack.pop();if(fV.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function Uw(J){var K=J.stack.pop(),Y=J.stack.pop();if(fV.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw new Error("invalid INSTCTRL[] selector")}}function x1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(fV.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function b1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(fV.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var w=X[++Y]<<8|X[++Y];if(w&32768)w=-((w^65535)+1);Z.push(w)}K.ip=Y}function p(J,K,Y,X,Z,Q){var w=Q.stack,H=J&&w.pop(),W=w.pop(),z=Q.rp0,U=Q.z0[z],$=Q.z1[W],V=Q.minDis,B=Q.fv,M=Q.dpv,A,G,N,L;if(G=A=M.distance($,U,!0,!0),N=G>=0?1:-1,G=Math.abs(G),J){if(L=Q.cvt[H],X&&Math.abs(G-L)<Q.cvCutIn)G=L}if(Y&&G<V)G=V;if(X)G=Q.round(G);if(B.setRelative($,U,N*G,M),B.touch($),fV.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?H+"("+Q.cvt[H]+","+L+")":"",W,"(d =",A,"->",N*G,")");if(Q.rp1=Q.rp0,Q.rp2=W,K)Q.rp0=W}$J=[C7.bind(void 0,D1),C7.bind(void 0,j1),P7.bind(void 0,D1),P7.bind(void 0,j1),S7.bind(void 0,D1),S7.bind(void 0,j1),v7.bind(void 0,0),v7.bind(void 0,1),y7.bind(void 0,0),y7.bind(void 0,1),lQ,cQ,uQ,pQ,iQ,rQ,oQ,nQ,sQ,aQ,tQ,eQ,J2,K2,Y2,X2,Z2,Q2,w2,W2,void 0,void 0,H2,u6,z2,U2,$2,q2,A2,void 0,void 0,void 0,V2,B2,G2,void 0,k7.bind(void 0,0),k7.bind(void 0,1),g7.bind(void 0,D1),g7.bind(void 0,j1),h7.bind(void 0,0),h7.bind(void 0,1),x7.bind(void 0,0),x7.bind(void 0,1),b7.bind(void 0,0),b7.bind(void 0,1),M2,O2,m7.bind(void 0,0),m7.bind(void 0,1),N2,L2,f7.bind(void 0,0),f7.bind(void 0,1),j2,F2,E2,_2,R2,D2,d7.bind(void 0,0),d7.bind(void 0,1),void 0,l7.bind(void 0,0),l7.bind(void 0,1),I2,void 0,T2,void 0,void 0,C2,P2,S2,v2,y2,k2,g2,h2,x2,b2,m2,f2,d2,p6.bind(void 0,1),l2,c2,u2,p2,i2,r2,o2,n2,s2,a2,$5.bind(void 0,0),$5.bind(void 0,1),$5.bind(void 0,2),$5.bind(void 0,3),void 0,void 0,void 0,void 0,t2,p6.bind(void 0,2),p6.bind(void 0,3),i6.bind(void 0,1),i6.bind(void 0,2),i6.bind(void 0,3),e2,Jw,void 0,void 0,Kw,void 0,Yw,Xw,u6,u6,void 0,void 0,void 0,void 0,void 0,Zw,c7.bind(void 0,0),c7.bind(void 0,1),Qw,void 0,ww,Ww,Hw,zw,Uw,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,x1.bind(void 0,1),x1.bind(void 0,2),x1.bind(void 0,3),x1.bind(void 0,4),x1.bind(void 0,5),x1.bind(void 0,6),x1.bind(void 0,7),x1.bind(void 0,8),b1.bind(void 0,1),b1.bind(void 0,2),b1.bind(void 0,3),b1.bind(void 0,4),b1.bind(void 0,5),b1.bind(void 0,6),b1.bind(void 0,7),b1.bind(void 0,8),p.bind(void 0,0,0,0,0,0),p.bind(void 0,0,0,0,0,1),p.bind(void 0,0,0,0,0,2),p.bind(void 0,0,0,0,0,3),p.bind(void 0,0,0,0,1,0),p.bind(void 0,0,0,0,1,1),p.bind(void 0,0,0,0,1,2),p.bind(void 0,0,0,0,1,3),p.bind(void 0,0,0,1,0,0),p.bind(void 0,0,0,1,0,1),p.bind(void 0,0,0,1,0,2),p.bind(void 0,0,0,1,0,3),p.bind(void 0,0,0,1,1,0),p.bind(void 0,0,0,1,1,1),p.bind(void 0,0,0,1,1,2),p.bind(void 0,0,0,1,1,3),p.bind(void 0,0,1,0,0,0),p.bind(void 0,0,1,0,0,1),p.bind(void 0,0,1,0,0,2),p.bind(void 0,0,1,0,0,3),p.bind(void 0,0,1,0,1,0),p.bind(void 0,0,1,0,1,1),p.bind(void 0,0,1,0,1,2),p.bind(void 0,0,1,0,1,3),p.bind(void 0,0,1,1,0,0),p.bind(void 0,0,1,1,0,1),p.bind(void 0,0,1,1,0,2),p.bind(void 0,0,1,1,0,3),p.bind(void 0,0,1,1,1,0),p.bind(void 0,0,1,1,1,1),p.bind(void 0,0,1,1,1,2),p.bind(void 0,0,1,1,1,3),p.bind(void 0,1,0,0,0,0),p.bind(void 0,1,0,0,0,1),p.bind(void 0,1,0,0,0,2),p.bind(void 0,1,0,0,0,3),p.bind(void 0,1,0,0,1,0),p.bind(void 0,1,0,0,1,1),p.bind(void 0,1,0,0,1,2),p.bind(void 0,1,0,0,1,3),p.bind(void 0,1,0,1,0,0),p.bind(void 0,1,0,1,0,1),p.bind(void 0,1,0,1,0,2),p.bind(void 0,1,0,1,0,3),p.bind(void 0,1,0,1,1,0),p.bind(void 0,1,0,1,1,1),p.bind(void 0,1,0,1,1,2),p.bind(void 0,1,0,1,1,3),p.bind(void 0,1,1,0,0,0),p.bind(void 0,1,1,0,0,1),p.bind(void 0,1,1,0,0,2),p.bind(void 0,1,1,0,0,3),p.bind(void 0,1,1,0,1,0),p.bind(void 0,1,1,0,1,1),p.bind(void 0,1,1,0,1,2),p.bind(void 0,1,1,0,1,3),p.bind(void 0,1,1,1,0,0),p.bind(void 0,1,1,1,0,1),p.bind(void 0,1,1,1,0,2),p.bind(void 0,1,1,1,0,3),p.bind(void 0,1,1,1,1,0),p.bind(void 0,1,1,1,1,1),p.bind(void 0,1,1,1,1,2),p.bind(void 0,1,1,1,1,3)];function A8(J){this.char=J,this.state={},this.activeState=null}function K4(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function $w(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function H1(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 G5(J){this.eventId=J,this.subscribers=[]}function Vw(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new G5(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function j0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],Vw.call(this,J)}A8.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};A8.prototype.getState=function(J){return this.state[J]||null};j0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};j0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};j0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(w){return w instanceof A8});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};j0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof A8){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};j0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};j0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};j0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof A8});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};j0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],w=K===null||K.apply(this,Q)===!0,H=[X,Z];if(w){var W=Y.apply(this,H);X.setState(J,W)}}),this.registeredModifiers.push(J)};G5.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};G5.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};H1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};j0.prototype.rangeToText=function(J){if(J instanceof K4)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};j0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};j0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};j0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};j0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof G5)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};j0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new $w(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};j0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};j0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};j0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};j0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new H1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};j0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new K4(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};j0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new K4(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var w=Y-Q.startIndex+1,H=K.setEndOffset(w,Z);K.dispatch("contextEnd",[Z,H])}})};j0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new H1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new A8(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function l1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function MJ(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 c1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function V5(J){return/[A-z]/.test(J)}function Bw(J){return/\s/.test(J)}function o0(J){this.font=J,this.features={}}function a1(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function k8(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function qw(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function Aw(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function r6(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var w=k8(Q,Z);if(w!==-1)Y.push(w)}if(Y.length!==J.length)return-1;return Y}function Gw(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=r6(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&c1(Q[0].char))Q.shift();var w=new H1(Q,0),H=r6(K.lookaheadCoverage,w),W=[].concat(J.backtrack);W.reverse();while(W.length&&c1(W[0].char))W.shift();if(W.length<K.backtrackCoverage.length)return[];var z=new H1(W,0),U=r6(K.backtrackCoverage,z),$=X.length===K.inputCoverage.length&&H.length===K.lookaheadCoverage.length&&U.length===K.backtrackCoverage.length,V=[];if($)for(var B=0;B<K.lookupRecords.length;B++){var M=K.lookupRecords[B],A=M.lookupListIndex,G=this.getLookupByIndex(A);for(var N=0;N<G.subtables.length;N++){var L=G.subtables[N],E=this.getLookupMethod(G,L),D=this.getSubstitutionType(G,L);if(D==="12")for(var _=0;_<X.length;_++){var j=J.get(_),T=E(j);if(T)V.push(T)}}}return V}function Mw(J,K){var Y=J.current,X=k8(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var w=0;w<Q.length;w++){Z=Q[w];for(var H=0;H<Z.components.length;H++){var W=J.lookahead[H],z=Z.components[H];if(W!==z)break;if(H===Z.components.length-1)return Z}}return null}function Ow(J,K){var Y=k8(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}o0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};o0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var w=0;w<Q.length;w++){var H=Q[w];if(H.tag===J){var W=H.langSys;return W.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};o0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};o0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};o0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};o0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return qw.apply(Y,[Z,K])};case"12":return function(Z){return Aw.apply(Y,[Z,K])};case"63":return function(Z){return Gw.apply(Y,[Z,K])};case"41":return function(Z){return Mw.apply(Y,[Z,K])};case"21":return function(Z){return Ow.apply(Y,[Z,K])};default:throw new Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};o0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return new Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var w=0;w<Z.length;w++){var H=Z[w],W=this.getLookupSubtables(H);for(var z=0;z<W.length;z++){var U=W[z],$=this.getSubstitutionType(H,U),V=this.getLookupMethod(H,U),B=void 0;switch($){case"11":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:11,tag:J.tag,substitution:B}));break;case"12":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:12,tag:J.tag,substitution:B}));break;case"63":if(B=V(K),Array.isArray(B)&&B.length)Q.splice(Y,1,new a1({id:63,tag:J.tag,substitution:B}));break;case"41":if(B=V(K),B)Q.splice(Y,1,new a1({id:41,tag:J.tag,substitution:B}));break;case"21":if(B=V(K.current),B)Q.splice(Y,1,new a1({id:21,tag:J.tag,substitution:B}));break}if(K=new H1(Q,Y),Array.isArray(B)&&!B.length)continue;B=null}}return Q.length?Q: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 Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};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 J(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function Nw(J){var K=J.current,Y=J.get(-1);return Y===null&&l1(K)||!l1(Y)&&l1(K)}function Lw(J){var K=J.get(1);return K===null||!l1(K)}var jw={startCheck:Nw,endCheck:Lw};function Fw(J){var K=J.current,Y=J.get(-1);return(l1(K)||c1(K))&&!l1(Y)}function Ew(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!l1(K)&&!c1(K)):var Y=Bw(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return l1(Z)||c1(Z)}),!X)return!0}break;default:return!1}}var _w={startCheck:Fw,endCheck:Ew};function Rw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function Dw(J,K,Y){K[Y].setState(J.tag,J.substitution)}function Iw(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function Tw(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var u7={11:Rw,12:Dw,63:Iw,41:Tw};function Y4(J,K,Y){if(J instanceof a1&&u7[J.id])u7[J.id](J,K,Y)}function Cw(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=MJ(X),Q=c1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function Pw(J){if(MJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=c1(Y);if(!X)return!0}return!1}function Sw(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new H1(Z.map(function(H){return H.getState("glyphIndex")}),0),w=new H1(Z.map(function(H){return H.char}),0);Z.forEach(function(H,W){if(c1(H.char))return;Q.setCurrentIndex(W),w.setCurrentIndex(W);var z=0;if(Cw(w))z|=1;if(Pw(w))z|=2;var U;switch(z){case 1:U="fina";break;case 2:U="init";break;case 3:U="medi";break}if(X.indexOf(U)===-1)return;var $=K.query.lookupFeature({tag:U,script:Y,contextParams:Q});if($ instanceof Error)return console.info($.message);$.forEach(function(V,B){if(V instanceof a1)Y4(V,Z,B),Q.context[B]=V.substitution})})}function p7(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function vw(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=p7(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var H=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if(H.length)H.forEach(function(W){return Y4(W,X,w)}),Z=p7(X)})}function yw(J){var K=J.current,Y=J.get(-1);return Y===null&&V5(K)||!V5(Y)&&V5(K)}function kw(J){var K=J.get(1);return K===null||!V5(K)}var gw={startCheck:yw,endCheck:kw};function i7(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function hw(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=i7(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var H=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if(H.length)H.forEach(function(W){return Y4(W,X,w)}),Z=i7(X)})}function $1(J){this.baseDir=J||"ltr",this.tokenizer=new j0,this.featuresTags={}}$1.prototype.setText=function(J){this.text=J};$1.prototype.contextChecks={latinWordCheck:gw,arabicWordCheck:jw,arabicSentenceCheck:_w};function o6(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function xw(){return o6.call(this,"latinWord"),o6.call(this,"arabicWord"),o6.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function bw(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}$1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};$1.prototype.applyFeatures=function(J,K){if(!J)throw new Error("No valid font was provided to apply features");if(!this.query)this.query=new o0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};$1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function X4(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw new Error("glyphIndex modifier is required to apply arabic presentation features.")}function mw(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;X4.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){Sw.call(J,X)})}function fw(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){vw.call(J,Z)})}function dw(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;X4.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){hw.call(J,Z)})}$1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};$1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))mw.call(this),fw.call(this);if(this.checkContextReady("latinWord"))dw.call(this);if(this.checkContextReady("arabicSentence"))bw.call(this)};$1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),xw.call(this),this.applyFeaturesToContexts()};$1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};$1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function b0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)R8(J.familyName,"When creating a new Font object, familyName is required."),R8(J.styleName,"When creating a new Font object, styleName is required."),R8(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),R8(J.ascender,"When creating a new Font object, ascender is required."),R8(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 F1.GlyphSet(this,J.glyphs||[]),this.encoding=new XJ(this),this.position=new S8(this),this.substitution=new r0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new BJ(this)}})}b0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};b0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};b0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};b0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};b0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new $1,Z=function($){return Y.charToGlyphIndex($.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var w=X.getTextGlyphs(J),H=w.length,W=new Array(H),z=this.glyphs.get(0);for(var U=0;U<H;U+=1)W[U]=this.glyphs.get(w[U])||z;return W};b0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};b0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};b0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var w=1/this.unitsPerEm*X,H=this.stringToGlyphs(J,Z),W;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();W=this.position.getKerningTables(z,Z.language)}for(var U=0;U<H.length;U+=1){var $=H[U];if(Q.call(this,$,K,Y,X,Z),$.advanceWidth)K+=$.advanceWidth*w;if(Z.kerning&&U<H.length-1){var V=W?this.position.getKerningValue(W,$.index,H[U+1].index):this.getKerningValue($,H[U+1]);K+=V*w}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};b0.prototype.getPath=function(J,K,Y,X,Z){var Q=new x0;return this.forEachGlyph(J,K,Y,X,Z,function(w,H,W,z){var U=w.getPath(H,W,z,Z,this);Q.extend(U)}),Q};b0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(w,H,W,z){var U=w.getPath(H,W,z,Z,this);Q.push(U)}),Q};b0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};b0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};b0.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};b0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function lw(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),w=K.parseULong();for(var H=Z;H<=Q;H+=1)J.glyphIndexMap[H]=w,w++}}function cw(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var w=new i.Parser(Y,X+Z+14),H=new i.Parser(Y,X+Z+16+Q*2),W=new i.Parser(Y,X+Z+16+Q*4),z=new i.Parser(Y,X+Z+16+Q*6),U=X+Z+16+Q*8;for(var $=0;$<Q-1;$+=1){var V=void 0,B=w.parseUShort(),M=H.parseUShort(),A=W.parseShort(),G=z.parseUShort();for(var N=M;N<=B;N+=1){if(G!==0){if(U=z.offset+z.relativeOffset-2,U+=G,U+=(N-M)*2,V=i.getUShort(Y,U),V!==0)V=V+A&65535}else V=N+A&65535;J.glyphIndexMap[N]=V}}}function uw(J,K){var Y={};Y.version=i.getUShort(J,K),z0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=i.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=i.getUShort(J,K+4+Z*8),w=i.getUShort(J,K+4+Z*8+2);if(Q===3&&(w===0||w===1||w===10)||Q===0&&(w===0||w===1||w===2||w===3||w===4)){X=i.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw new Error("No valid cmap sub-tables found.");var H=new i.Parser(J,K+X);if(Y.format=H.parseUShort(),Y.format===12)lw(Y,H);else if(Y.format===4)cw(Y,H,J,K,X);else throw new Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var pw={parse:uw};function a6(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function f1(J,K,Y){var X=[],Z=[],Q=i.getCard16(J,K),w,H;if(Q!==0){var W=i.getByte(J,K+2);w=K+(Q+1)*W+2;var z=K+3;for(var U=0;U<Q+1;U+=1)X.push(i.getOffset(J,z,W)),z+=W;H=w+X[Q]}else H=K+2;for(var $=0;$<X.length-1;$+=1){var V=i.getBytes(J,w+X[$],w+X[$+1]);if(Y)V=Y(V);Z.push(V)}return{objects:Z,startOffset:K,endOffset:H}}function iw(J,K){var Y=[],X=i.getCard16(J,K),Z,Q;if(X!==0){var w=i.getByte(J,K+2);Z=K+(X+1)*w+2;var H=K+3;for(var W=0;W<X+1;W+=1)Y.push(i.getOffset(J,H,w)),H+=w;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function rw(J,K,Y,X,Z){var Q=i.getCard16(Y,X),w=0;if(Q!==0){var H=i.getByte(Y,X+2);w=X+(Q+1)*H+2}var W=i.getBytes(Y,w+K[J],w+K[J+1]);if(Z)W=Z(W);return W}function ow(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,w=Z&15;if(Q===Y)break;if(K+=X[Q],w===Y)break;K+=X[w]}return parseFloat(K)}function nw(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return ow(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw new Error("Invalid b0 "+K)}function sw(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw new Error("Object "+K+" already has key "+X);K[X]=Q}return K}function OJ(J,K,Y){K=K!==void 0?K:0;var X=new i.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var w=X.parseByte();if(w<=21){if(w===12)w=1200+X.parseByte();Z.push([w,Q]),Q=[]}else Q.push(nw(X,w))}return sw(Z)}function I8(J,K){if(K<=390)K=AQ[K];else K=J[K-391];return K}function NJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var w=K[Q];if(Array.isArray(w.type)){var H=[];H.length=w.type.length;for(var W=0;W<w.type.length;W++){if(Z=J[w.op]!==void 0?J[w.op][W]:void 0,Z===void 0)Z=w.value!==void 0&&w.value[W]!==void 0?w.value[W]:null;if(w.type[W]==="SID")Z=I8(Y,Z);H[W]=Z}X[w.name]=H}else{if(Z=J[w.op],Z===void 0)Z=w.value!==void 0?w.value:null;if(w.type==="SID")Z=I8(Y,Z);X[w.name]=Z}}return X}function aw(J,K){var Y={};return Y.formatMajor=i.getCard8(J,K),Y.formatMinor=i.getCard8(J,K+1),Y.size=i.getCard8(J,K+2),Y.offsetSize=i.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var tw=[{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"}],ew=[{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 JW(J,K){var Y=OJ(J,0,J.byteLength);return NJ(Y,tw,K)}function LJ(J,K,Y,X){var Z=OJ(J,K,Y);return NJ(Z,ew,X)}function r7(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var w=new DataView(new Uint8Array(Y[Q]).buffer),H=JW(w,X);H._subrs=[],H._subrsBias=0,H._defaultWidthX=0,H._nominalWidthX=0;var W=H.private[0],z=H.private[1];if(W!==0&&z!==0){var U=LJ(J,z+K,W,X);if(H._defaultWidthX=U.defaultWidthX,H._nominalWidthX=U.nominalWidthX,U.subrs!==0){var $=z+U.subrs,V=f1(J,$+K);H._subrs=V.objects,H._subrsBias=a6(H._subrs)}H._privateDict=U}Z.push(H)}return Z}function KW(J,K,Y,X){var Z,Q,w=new i.Parser(J,K);Y-=1;var H=[".notdef"],W=w.parseCard8();if(W===0)for(var z=0;z<Y;z+=1)Z=w.parseSID(),H.push(I8(X,Z));else if(W===1)while(H.length<=Y){Z=w.parseSID(),Q=w.parseCard8();for(var U=0;U<=Q;U+=1)H.push(I8(X,Z)),Z+=1}else if(W===2)while(H.length<=Y){Z=w.parseSID(),Q=w.parseCard16();for(var $=0;$<=Q;$+=1)H.push(I8(X,Z)),Z+=1}else throw new Error("Unknown charset format "+W);return H}function YW(J,K,Y){var X,Z={},Q=new i.Parser(J,K),w=Q.parseCard8();if(w===0){var H=Q.parseCard8();for(var W=0;W<H;W+=1)X=Q.parseCard8(),Z[X]=W}else if(w===1){var z=Q.parseCard8();X=1;for(var U=0;U<z;U+=1){var $=Q.parseCard8(),V=Q.parseCard8();for(var B=$;B<=$+V;B+=1)Z[B]=X,X+=1}}else throw new Error("Unknown encoding format "+w);return new B5(Z,Y)}function o7(J,K,Y){var X,Z,Q,w,H=new x0,W=[],z=0,U=!1,$=!1,V=0,B=0,M,A,G,N;if(J.isCIDFont){var L=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[L];M=E._subrs,A=E._subrsBias,G=E._defaultWidthX,N=E._nominalWidthX}else M=J.tables.cff.topDict._subrs,A=J.tables.cff.topDict._subrsBias,G=J.tables.cff.topDict._defaultWidthX,N=J.tables.cff.topDict._nominalWidthX;var D=G;function _(R,P){if($)H.closePath();H.moveTo(R,P),$=!0}function j(){var R=W.length%2!==0;if(R&&!U)D=W.shift()+N;z+=W.length>>1,W.length=0,U=!0}function T(R){var P,h,c,r,u,C,v,I,f,l,t,o,m=0;while(m<R.length){var d=R[m];switch(m+=1,d){case 1:j();break;case 3:j();break;case 4:if(W.length>1&&!U)D=W.shift()+N,U=!0;B+=W.pop(),_(V,B);break;case 5:while(W.length>0)V+=W.shift(),B+=W.shift(),H.lineTo(V,B);break;case 6:while(W.length>0){if(V+=W.shift(),H.lineTo(V,B),W.length===0)break;B+=W.shift(),H.lineTo(V,B)}break;case 7:while(W.length>0){if(B+=W.shift(),H.lineTo(V,B),W.length===0)break;V+=W.shift(),H.lineTo(V,B)}break;case 8:while(W.length>0)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 10:if(u=W.pop()+A,C=M[u],C)T(C);break;case 11:return;case 12:switch(d=R[m],m+=1,d){case 35:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w+W.shift(),f=v+W.shift(),l=I+W.shift(),t=f+W.shift(),o=l+W.shift(),V=t+W.shift(),B=o+W.shift(),W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 34:X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w,f=v+W.shift(),l=w,t=f+W.shift(),o=B,V=t+W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 36:X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w,f=v+W.shift(),l=w,t=f+W.shift(),o=l+W.shift(),V=t+W.shift(),H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;case 37:if(X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),v=Q+W.shift(),I=w+W.shift(),f=v+W.shift(),l=I+W.shift(),t=f+W.shift(),o=l+W.shift(),Math.abs(t-V)>Math.abs(o-B))V=t+W.shift();else B=o+W.shift();H.curveTo(X,Z,Q,w,v,I),H.curveTo(f,l,t,o,V,B);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+d),W.length=0}break;case 14:if(W.length>0&&!U)D=W.shift()+N,U=!0;if($)H.closePath(),$=!1;break;case 18:j();break;case 19:case 20:j(),m+=z+7>>3;break;case 21:if(W.length>2&&!U)D=W.shift()+N,U=!0;B+=W.pop(),V+=W.pop(),_(V,B);break;case 22:if(W.length>1&&!U)D=W.shift()+N,U=!0;V+=W.pop(),_(V,B);break;case 23:j();break;case 24:while(W.length>2)X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);V+=W.shift(),B+=W.shift(),H.lineTo(V,B);break;case 25:while(W.length>6)V+=W.shift(),B+=W.shift(),H.lineTo(V,B);X=V+W.shift(),Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 26:if(W.length%2)V+=W.shift();while(W.length>0)X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q,B=w+W.shift(),H.curveTo(X,Z,Q,w,V,B);break;case 27:if(W.length%2)B+=W.shift();while(W.length>0)X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w,H.curveTo(X,Z,Q,w,V,B);break;case 28:P=R[m],h=R[m+1],W.push((P<<24|h<<16)>>16),m+=2;break;case 29:if(u=W.pop()+J.gsubrsBias,C=J.gsubrs[u],C)T(C);break;case 30:while(W.length>0){if(X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B),W.length===0)break;X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),B=w+W.shift(),V=Q+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B)}break;case 31:while(W.length>0){if(X=V+W.shift(),Z=B,Q=X+W.shift(),w=Z+W.shift(),B=w+W.shift(),V=Q+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B),W.length===0)break;X=V,Z=B+W.shift(),Q=X+W.shift(),w=Z+W.shift(),V=Q+W.shift(),B=w+(W.length===1?W.shift():0),H.curveTo(X,Z,Q,w,V,B)}break;default:if(d<32)console.log("Glyph "+K.index+": unknown operator "+d);else if(d<247)W.push(d-139);else if(d<251)P=R[m],m+=1,W.push((d-247)*256+P+108);else if(d<255)P=R[m],m+=1,W.push(-(d-251)*256-P-108);else P=R[m],h=R[m+1],c=R[m+2],r=R[m+3],m+=4,W.push((P<<24|h<<16|c<<8|r)/65536)}}}return T(Y),K.advanceWidth=D,H}function XW(J,K,Y,X){var Z=[],Q,w=new i.Parser(J,K),H=w.parseCard8();if(H===0)for(var W=0;W<Y;W++){if(Q=w.parseCard8(),Q>=X)throw new Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if(H===3){var z=w.parseCard16(),U=w.parseCard16();if(U!==0)throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+U);var $;for(var V=0;V<z;V++){if(Q=w.parseCard8(),$=w.parseCard16(),Q>=X)throw new Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if($>Y)throw new Error("CFF Table CID Font FDSelect format 3 range has bad GID "+$);for(;U<$;U++)Z.push(Q);U=$}if($!==Y)throw new Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+$)}else throw new Error("CFF Table CID Font FDSelect table has unsupported format "+H);return Z}function ZW(J,K,Y,X){Y.tables.cff={};var Z=aw(J,K),Q=f1(J,Z.endOffset,i.bytesToString),w=f1(J,Q.endOffset),H=f1(J,w.endOffset,i.bytesToString),W=f1(J,H.endOffset);Y.gsubrs=W.objects,Y.gsubrsBias=a6(Y.gsubrs);var z=r7(J,K,w.objects,H.objects);if(z.length!==1)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var U=z[0];if(Y.tables.cff.topDict=U,U._privateDict)Y.defaultWidthX=U._privateDict.defaultWidthX,Y.nominalWidthX=U._privateDict.nominalWidthX;if(U.ros[0]!==void 0&&U.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:$,fdSelect:V}=U;if($===0||V===0)throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");$+=K;var B=f1(J,$),M=r7(J,K,B.objects,H.objects);U._fdArray=M,V+=K,U._fdSelect=XW(J,V,Y.numGlyphs,M.length)}var A=K+U.private[1],G=LJ(J,A,U.private[0],H.objects);if(Y.defaultWidthX=G.defaultWidthX,Y.nominalWidthX=G.nominalWidthX,G.subrs!==0){var N=A+G.subrs,L=f1(J,N);Y.subrs=L.objects,Y.subrsBias=a6(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=iw(J,K+U.charStrings),Y.nGlyphs=E.offsets.length;else E=f1(J,K+U.charStrings),Y.nGlyphs=E.objects.length;var D=KW(J,K+U.charset,Y.nGlyphs,H.objects);if(U.encoding===0)Y.cffEncoding=new B5(GQ,D);else if(U.encoding===1)Y.cffEncoding=new B5(MQ,D);else Y.cffEncoding=YW(J,K+U.encoding,D);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new F1.GlyphSet(Y),X.lowMemory)Y._push=function(T){var R=rw(T,E.offsets,J,K+U.charStrings);Y.glyphs.push(T,F1.cffGlyphLoader(Y,T,o7,R))};else for(var _=0;_<Y.nGlyphs;_+=1){var j=E.objects[_];Y.glyphs.push(_,F1.cffGlyphLoader(Y,_,o7,j))}}var QW={parse:ZW};function wW(J,K,Y){var X={},Z=new i.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function WW(J,K,Y,X){var Z={},Q=new i.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var w=0;w<Y.length;++w)Z.coordinates[Y[w].tag]=Q.parseFixed();return Z}function HW(J,K,Y){var X=new i.Parser(J,K),Z=X.parseULong();z0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var w=X.parseUShort(),H=X.parseUShort(),W=X.parseUShort(),z=X.parseUShort(),U=[];for(var $=0;$<w;$++)U.push(wW(J,K+Q+$*H,Y));var V=[],B=K+Q+w*H;for(var M=0;M<W;M++)V.push(WW(J,B+M*z,U,Y));return{axes:U,instances:V}}var zW={parse:HW},UW=function(){return{coverage:this.parsePointer(S.coverage),attachPoints:this.parseList(S.pointer(S.uShortList))}},$W=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()}},VW=function(){return this.parseList(S.pointer($W))},BW=function(){return{coverage:this.parsePointer(S.coverage),ligGlyphs:this.parseList(S.pointer(VW))}},qW=function(){return this.parseUShort(),this.parseList(S.pointer(S.coverage))};function AW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);z0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(S.classDef),attachList:Y.parsePointer(UW),ligCaretList:Y.parsePointer(BW),markAttachClassDef:Y.parsePointer(S.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(qW);return Z}var GW={parse:AW},z1=new Array(10);z1[1]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(S.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(S.coverage),values:this.parseValueRecordList()};z0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};z1[2]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();z0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(S.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(S.pointer(S.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var w=this.parsePointer(S.classDef),H=this.parsePointer(S.classDef),W=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:w,classDef2:H,class1Count:W,class2Count:z,classRecords:this.parseList(W,S.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};z1[3]=function J(){return{error:"GPOS Lookup 3 not supported"}};z1[4]=function J(){return{error:"GPOS Lookup 4 not supported"}};z1[5]=function J(){return{error:"GPOS Lookup 5 not supported"}};z1[6]=function J(){return{error:"GPOS Lookup 6 not supported"}};z1[7]=function J(){return{error:"GPOS Lookup 7 not supported"}};z1[8]=function J(){return{error:"GPOS Lookup 8 not supported"}};z1[9]=function J(){return{error:"GPOS Lookup 9 not supported"}};function MW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(z1),variations:Y.parseFeatureVariationsList()}}var OW={parse:MW},U1=new Array(9);U1[1]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(S.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(S.coverage),substitute:this.parseOffset16List()};z0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};U1[2]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),sequences:this.parseListOfLists()}};U1[3]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),alternateSets:this.parseListOfLists()}};U1[4]=function J(){var K=this.parseUShort();return z0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(S.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var q8={sequenceIndex:S.uShort,lookupListIndex:S.uShort};U1[5]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(S.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,q8)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(S.coverage),classDef:this.parsePointer(S.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,q8)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,S.pointer(S.coverage)),lookupRecords:this.parseRecordList(Z,q8)}}z0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};U1[6]=function J(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(S.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(q8)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(S.coverage),backtrackClassDef:this.parsePointer(S.classDef),inputClassDef:this.parsePointer(S.classDef),lookaheadClassDef:this.parsePointer(S.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(q8)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(S.pointer(S.coverage)),inputCoverage:this.parseList(S.pointer(S.coverage)),lookaheadCoverage:this.parseList(S.pointer(S.coverage)),lookupRecords:this.parseRecordList(q8)};z0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};U1[7]=function J(){var K=this.parseUShort();z0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new S(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:U1[Y].call(X)}};U1[8]=function J(){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(S.coverage),backtrackCoverage:this.parseList(S.pointer(S.coverage)),lookaheadCoverage:this.parseList(S.pointer(S.coverage)),substitutes:this.parseUShortList()}};function NW(J,K){K=K||0;var Y=new S(J,K),X=Y.parseVersion(1);if(z0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var LW={parse:NW};function jW(J,K){var Y={},X=new i.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),z0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var FW={parse:jW};function EW(J,K){var Y={},X=new i.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var _W={parse:EW};function RW(J,K,Y,X,Z){var Q,w,H=new i.Parser(J,K);for(var W=0;W<X;W+=1){if(W<Y)Q=H.parseUShort(),w=H.parseShort();var z=Z.get(W);z.advanceWidth=Q,z.leftSideBearing=w}}function DW(J,K,Y,X,Z){J._hmtxTableData={};var Q,w,H=new i.Parser(K,Y);for(var W=0;W<Z;W+=1){if(W<X)Q=H.parseUShort(),w=H.parseShort();J._hmtxTableData[W]={advanceWidth:Q,leftSideBearing:w}}}function IW(J,K,Y,X,Z,Q,w){if(w.lowMemory)DW(J,K,Y,X,Z);else RW(K,Y,X,Z,Q)}var TW={parse:IW};function CW(J){var K={};J.skip("uShort");var Y=J.parseUShort();z0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),w=J.parseUShort(),H=J.parseShort();K[Q+","+w]=H}return K}function PW(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var w=0;w<Q;w+=1){var H=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();K[H+","+W]=z}}return K}function SW(J,K){var Y=new i.Parser(J,K),X=Y.parseUShort();if(X===0)return CW(Y);else if(X===1)return PW(Y);else throw new Error("Unsupported kern table version ("+X+").")}var vW={parse:SW};function yW(J,K){var Y=new i.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var w=0;w<Z;w++){var H="",W=K+Y.parseUShort(),z=Y.parseUShort();for(var U=W;U<W+z;++U)H+=String.fromCharCode(J.getInt8(U));Q.push(H)}return Q}var kW={parse:yW};function gW(J,K,Y,X){var Z=new i.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,w=[];for(var H=0;H<Y+1;H+=1){var W=Q.call(Z);if(X)W*=2;w.push(W)}return w}var hW={parse:gW};function xW(J,K){var Y={},X=new i.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var bW={parse:xW};function mW(J,K){var Y={},X=new i.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var fW={parse:mW};function dW(J,K){var Y={},X=new i.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=new Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=new Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var lW={parse:dW},M5={};M5.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};M5.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var cW={"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"};M5.MACSTRING=function(J,K,Y,X){var Z=cW[X];if(Z===void 0)return;var Q="";for(var w=0;w<Y;w++){var H=J.getUint8(K+w);if(H<=127)Q+=String.fromCharCode(H);else Q+=Z[H&127]}return Q};function uW(J,K){var Y=new i.Parser(J,K),X=Y.parseULong();z0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var w=0;w<Z;w++){var H=Y.parseTag(),W=Y.parseULong(),z=Y.parseULong(),U=M5.UTF8(J,K+W,z);Q[H]=U}return Q}var pW={parse:uW};function n7(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=i.getTag(J,X),w=i.getULong(J,X+4),H=i.getULong(J,X+8),W=i.getULong(J,X+12);Y.push({tag:Q,checksum:w,offset:H,length:W,compression:!1}),X+=16}return Y}function iW(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=i.getTag(J,X),w=i.getULong(J,X+4),H=i.getULong(J,X+8),W=i.getULong(J,X+12),z=void 0;if(H<W)z="WOFF";else z=!1;Y.push({tag:Q,offset:w,compression:z,compressedLength:H,length:W}),X+=20}return Y}function D0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(VQ(Y,X),X.byteLength!==K.length)throw new Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function rW(J,K){K=K===void 0||K===null?{}:K;var Y,X=new b0({empty:!0}),Z=new DataView(J,0),Q,w=[],H=i.getTag(Z,0);if(H===String.fromCharCode(0,1,0,0)||H==="true"||H==="typ1")X.outlinesFormat="truetype",Q=i.getUShort(Z,4),w=n7(Z,Q);else if(H==="OTTO")X.outlinesFormat="cff",Q=i.getUShort(Z,4),w=n7(Z,Q);else if(H==="wOFF"){var W=i.getTag(Z,4);if(W===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(W==="OTTO")X.outlinesFormat="cff";else throw new Error("Unsupported OpenType flavor "+H);Q=i.getUShort(Z,12),w=iW(Z,Q)}else throw new Error("Unsupported OpenType signature "+H);var z,U,$,V,B,M,A,G,N,L,E;for(var D=0;D<Q;D+=1){var _=w[D],j=void 0;switch(_.tag){case"cmap":j=D0(Z,_),X.tables.cmap=pw.parse(j.data,j.offset),X.encoding=new ZJ(X.tables.cmap);break;case"cvt ":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.cvt=E.parseShortList(_.length/2);break;case"fvar":U=_;break;case"fpgm":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.fpgm=E.parseByteList(_.length);break;case"head":j=D0(Z,_),X.tables.head=FW.parse(j.data,j.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":j=D0(Z,_),X.tables.hhea=_W.parse(j.data,j.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":A=_;break;case"ltag":j=D0(Z,_),ltagTable=kW.parse(j.data,j.offset);break;case"maxp":j=D0(Z,_),X.tables.maxp=bW.parse(j.data,j.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":j=D0(Z,_),X.tables.os2=fW.parse(j.data,j.offset);break;case"post":j=D0(Z,_),X.tables.post=lW.parse(j.data,j.offset);break;case"prep":j=D0(Z,_),E=new i.Parser(j.data,j.offset),X.tables.prep=E.parseByteList(_.length);break;case"glyf":$=_;break;case"loca":N=_;break;case"CFF ":z=_;break;case"kern":G=_;break;case"GDEF":V=_;break;case"GPOS":B=_;break;case"GSUB":M=_;break;case"meta":L=_;break}}if($&&N){var T=Y===0,R=D0(Z,N),P=hW.parse(R.data,R.offset,X.numGlyphs,T),h=D0(Z,$);X.glyphs=UJ.parse(h.data,h.offset,P,X,K)}else if(z){var c=D0(Z,z);QW.parse(c.data,c.offset,X,K)}else throw new Error("Font doesn't contain TrueType or CFF outlines.");var r=D0(Z,A);if(TW.parse(X,r.data,r.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),LQ(X,K),G){var u=D0(Z,G);X.kerningPairs=vW.parse(u.data,u.offset)}else X.kerningPairs={};if(V){var C=D0(Z,V);X.tables.gdef=GW.parse(C.data,C.offset)}if(B){var v=D0(Z,B);X.tables.gpos=OW.parse(v.data,v.offset),X.position.init()}if(M){var I=D0(Z,M);X.tables.gsub=LW.parse(I.data,I.offset)}if(U){var f=D0(Z,U);X.tables.fvar=zW.parse(f.data,f.offset,X.names)}if(L){var l=D0(Z,L);X.tables.meta=pW.parse(l.data,l.offset),X.metas=X.tables.meta}return X}function oW(){}function nW(){}var sW=Object.freeze({__proto__:null,Font:b0,Glyph:T1,Path:x0,_parse:i,parse:rW,load:oW,loadSync:nW}),O5=sW;var{create:tW,defineProperty:x5,getOwnPropertyDescriptor:eW,getOwnPropertyNames:JH,getPrototypeOf:KH}=Object,YH=Object.prototype.hasOwnProperty,F4=(J,K)=>()=>(J&&(K=J(J=0)),K),a=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),E4=(J,K)=>{for(var Y in K)x5(J,Y,{get:K[Y],enumerable:!0})},iJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of JH(K))!YH.call(J,Z)&&Z!==Y&&x5(J,Z,{get:()=>K[Z],enumerable:!(X=eW(K,Z))||X.enumerable});return J},XH=(J,K,Y)=>(Y=J!=null?tW(KH(J)):{},iJ(K||!J||!J.__esModule?x5(Y,"default",{value:J,enumerable:!0}):Y,J)),g5=(J)=>iJ(x5({},"__esModule",{value:!0}),J),rJ={};E4(rJ,{getYogaModule:()=>ZH});async function ZH(){let{default:J}=await import("../chunk-g1pmzbbw.js");return J()}var QH=F4(()=>{}),oJ=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),wH=a((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"]}),WH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),nJ=a((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.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:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("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:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("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:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("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:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({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",...X(Y("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:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("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:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("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:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("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:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("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:Y})=>({...Y("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:Y})=>({auto:"auto",...Y("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:[]}}),b5={};E4(b5,{default:()=>sJ});var sJ,_4=F4(()=>{sJ={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])}}}),HH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((_4(),g5(b5)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:w,to:H}){K.default.warn(`${w}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${w}\` has been renamed to \`${H}\`.`,"Update your configuration file to silence this warning."])}var Z={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 X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),zH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let w of X){for(let H in w){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,H)||(Y[H]=w[H])}for(let H of Object.getOwnPropertySymbols(w)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,H)||(Y[H]=w[H])}}return Y}}),UH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw new Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),$H=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((_4(),g5(b5)));function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,H=new WeakMap;return(Y=function(W){return W?H:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var H=Y(w);if(H&&H.has(Q))return H.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var $=z?Object.getOwnPropertyDescriptor(Q,U):null;$&&($.get||$.set)?Object.defineProperty(W,U,$):W[U]=Q[U]}return W.default=Q,H&&H.set(Q,W),W}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every((H)=>typeof H=="string"?!0:!(typeof(H==null?void 0:H.raw)!="string"||H!=null&&H.extension&&typeof(H==null?void 0:H.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some((H)=>!["files","extract","transform"].includes(H)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every((H)=>typeof H=="string"?!0:!(typeof(H==null?void 0:H.raw)!="string"||H!=null&&H.extension&&typeof(H==null?void 0:H.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let H of Object.values(Q.content.extract))if(typeof H!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let H of Object.values(Q.content.transform))if(typeof H!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.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"]),Q.safelist=(()=>{var H;let{content:W,purge:z,safelist:U}=Q;return Array.isArray(U)?U:Array.isArray(W==null?void 0:W.safelist)?W.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||(H=z.options)===null||H===void 0?void 0:H.safelist)?z.options.safelist:[]})(),typeof Q.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"]),Q.prefix="";else{var w;Q.prefix=(w=Q.prefix)!==null&&w!==void 0?w:""}Q.content={files:(()=>{let{content:H,purge:W}=Q;return Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray(H)?H:Array.isArray(H==null?void 0:H.content)?H.content:Array.isArray(H==null?void 0:H.files)?H.files:[]})(),extract:(()=>{let H=(()=>{var U,$,V,B,M,A,G,N,L,E;return!((U=Q.purge)===null||U===void 0)&&U.extract?Q.purge.extract:!(($=Q.content)===null||$===void 0)&&$.extract?Q.content.extract:!((V=Q.purge)===null||V===void 0||(B=V.extract)===null||B===void 0)&&B.DEFAULT?Q.purge.extract.DEFAULT:!((M=Q.content)===null||M===void 0||(A=M.extract)===null||A===void 0)&&A.DEFAULT?Q.content.extract.DEFAULT:!((G=Q.purge)===null||G===void 0||(N=G.options)===null||N===void 0)&&N.extractors?Q.purge.options.extractors:!((L=Q.content)===null||L===void 0||(E=L.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),W={},z=(()=>{var U,$,V,B;if(!((U=Q.purge)===null||U===void 0||($=U.options)===null||$===void 0)&&$.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((V=Q.content)===null||V===void 0||(B=V.options)===null||B===void 0)&&B.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(W.DEFAULT=z),typeof H=="function")W.DEFAULT=H;else if(Array.isArray(H))for(let{extensions:U,extractor:$}of H??[])for(let V of U)W[V]=$;else typeof H=="object"&&H!==null&&Object.assign(W,H);return W})(),transform:(()=>{let H=(()=>{var z,U,$,V,B,M;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((U=Q.content)===null||U===void 0)&&U.transform?Q.content.transform:!(($=Q.purge)===null||$===void 0||(V=$.transform)===null||V===void 0)&&V.DEFAULT?Q.purge.transform.DEFAULT:!((B=Q.content)===null||B===void 0||(M=B.transform)===null||M===void 0)&&M.DEFAULT?Q.content.transform.DEFAULT:{}})(),W={};return typeof H=="function"&&(W.DEFAULT=H),typeof H=="object"&&H!==null&&Object.assign(W,H),W})()};for(let H of Q.content.files)if(typeof H=="string"&&/{([^,]*?)}/g.test(H)){K.default.warn("invalid-glob-braces",[`The glob pattern ${K.dim(H)} in your Tailwind CSS configuration is invalid.`,`Update it to ${K.dim(H.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),VH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),BH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),aJ=a((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var w=Q.toLowerCase(),H="",W=!1,z=0;z<6&&w[z]!==void 0;z++){var U=w.charCodeAt(z),$=U>=97&&U<=102||U>=48&&U<=57;if(W=U===32,!$)break;H+=w[z]}if(H.length!==0){var V=parseInt(H,16),B=V>=55296&&V<=57343;return B||V===0||V>1114111?["\uFFFD",H.length+(W?1:0)]:[String.fromCodePoint(V),H.length+(W?1:0)]}}var X=/\\/;function Z(Q){var w=X.test(Q);if(!w)return Q;for(var H="",W=0;W<Q.length;W++){if(Q[W]==="\\"){var z=Y(Q.slice(W+1,W+7));if(z!==void 0){H+=z[0],W+=z[1];continue}if(Q[W+1]==="\\"){H+="\\",W++;continue}Q.length===W+1&&(H+=Q[W]);continue}H+=Q[W]}return H}K.exports=J.default}),qH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=new Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var H=Q.shift();if(!X[H])return;X=X[H]}return X}K.exports=J.default}),AH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=new Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var H=Q.shift();X[H]||(X[H]={}),X=X[H]}}K.exports=J.default}),GH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),w=0;Q>=0;){Z=Z+X.slice(w,Q);var H=X.indexOf("*/",Q+2);if(H<0)return Z;w=H+2,Q=X.indexOf("/*",w)}return Z=Z+X.slice(w),Z}K.exports=J.default}),m5=a((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(aJ());J.unesc=K.default;var Y=Q(qH());J.getProp=Y.default;var X=Q(AH());J.ensureObject=X.default;var Z=Q(GH());J.stripComments=Z.default;function Q(w){return w&&w.__esModule?w:{default:w}}}),p1=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=m5();function X(H,W){for(var z=0;z<W.length;z++){var U=W[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(H,U.key,U)}}function Z(H,W,z){return W&&X(H.prototype,W),z&&X(H,z),H}var Q=function H(W,z){if(typeof W!="object"||W===null)return W;var U=new W.constructor;for(var $ in W)if(W.hasOwnProperty($)){var V=W[$],B=typeof V;$==="parent"&&B==="object"?z&&(U[$]=z):V instanceof Array?U[$]=V.map(function(M){return H(M,U)}):U[$]=H(V,U)}return U},w=function(){function H(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var W=H.prototype;return W.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},W.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},W.next=function(){return this.parent.at(this.parent.index(this)+1)},W.prev=function(){return this.parent.at(this.parent.index(this)-1)},W.clone=function(z){z===void 0&&(z={});var U=Q(this);for(var $ in z)U[$]=z[$];return U},W.appendToPropertyAndEscape=function(z,U,$){this.raws||(this.raws={});var V=this[z],B=this.raws[z];this[z]=V+U,B||$!==U?this.raws[z]=(B||V)+$:delete this.raws[z]},W.setPropertyAndEscape=function(z,U,$){this.raws||(this.raws={}),this[z]=U,this.raws[z]=$},W.setPropertyWithoutEscape=function(z,U){this[z]=U,this.raws&&delete this.raws[z]},W.isAtPosition=function(z,U){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>U||this.source.end.line===z&&this.source.end.column<U)},W.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},W.valueToString=function(){return String(this.stringifyProperty("value"))},W.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z(H,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){Y.ensureObject(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){Y.ensureObject(this,"raws","spaces"),this.raws.spaces.after=z}}]),H}();J.default=w,K.exports=J.default}),m0=a((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 Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var w="nesting";J.NESTING=w;var H="id";J.ID=H;var W="comment";J.COMMENT=W;var z="combinator";J.COMBINATOR=z;var U="class";J.CLASS=U;var $="attribute";J.ATTRIBUTE=$;var V="universal";J.UNIVERSAL=V}),R4=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(p1()),X=Q(m0());function Z(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Z=function(){return A},A}function Q(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var G=Z();if(G&&G.has(A))return G.get(A);var N={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var D=L?Object.getOwnPropertyDescriptor(A,E):null;D&&(D.get||D.set)?Object.defineProperty(N,E,D):N[E]=A[E]}return N.default=A,G&&G.set(A,N),N}function w(A){return A&&A.__esModule?A:{default:A}}function H(A,G){var N;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(N=W(A))||G&&A&&typeof A.length=="number"){N&&(A=N);var L=0;return function(){return L>=A.length?{done:!0}:{done:!1,value:A[L++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
62
62
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return N=A[Symbol.iterator](),N.next.bind(N)}function W(A,G){if(A){if(typeof A=="string")return z(A,G);var N=Object.prototype.toString.call(A).slice(8,-1);if(N==="Object"&&A.constructor&&(N=A.constructor.name),N==="Map"||N==="Set")return Array.from(A);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return z(A,G)}}function z(A,G){(G==null||G>A.length)&&(G=A.length);for(var N=0,L=new Array(G);N<G;N++)L[N]=A[N];return L}function U(A,G){for(var N=0;N<G.length;N++){var L=G[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(A,L.key,L)}}function $(A,G,N){return G&&U(A.prototype,G),N&&U(A,N),A}function V(A,G){A.prototype=Object.create(G.prototype),A.prototype.constructor=A,B(A,G)}function B(A,G){return B=Object.setPrototypeOf||function(N,L){return N.__proto__=L,N},B(A,G)}var M=function(A){V(G,A);function G(L){var E;return E=A.call(this,L)||this,E.nodes||(E.nodes=[]),E}var N=G.prototype;return N.append=function(L){return L.parent=this,this.nodes.push(L),this},N.prepend=function(L){return L.parent=this,this.nodes.unshift(L),this},N.at=function(L){return this.nodes[L]},N.index=function(L){return typeof L=="number"?L:this.nodes.indexOf(L)},N.removeChild=function(L){L=this.index(L),this.at(L).parent=void 0,this.nodes.splice(L,1);var E;for(var D in this.indexes)E=this.indexes[D],E>=L&&(this.indexes[D]=E-1);return this},N.removeAll=function(){for(var L=H(this.nodes),E;!(E=L()).done;){var D=E.value;D.parent=void 0}return this.nodes=[],this},N.empty=function(){return this.removeAll()},N.insertAfter=function(L,E){E.parent=this;var D=this.index(L);this.nodes.splice(D+1,0,E),E.parent=this;var _;for(var j in this.indexes)_=this.indexes[j],D<=_&&(this.indexes[j]=_+1);return this},N.insertBefore=function(L,E){E.parent=this;var D=this.index(L);this.nodes.splice(D,0,E),E.parent=this;var _;for(var j in this.indexes)_=this.indexes[j],_<=D&&(this.indexes[j]=_+1);return this},N._findChildAtPosition=function(L,E){var D=void 0;return this.each(function(_){if(_.atPosition){var j=_.atPosition(L,E);if(j)return D=j,!1}else if(_.isAtPosition(L,E))return D=_,!1}),D},N.atPosition=function(L,E){if(this.isAtPosition(L,E))return this._findChildAtPosition(L,E)||this},N._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},N.each=function(L){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var D,_;this.indexes[E]<this.length&&(D=this.indexes[E],_=L(this.at(D),D),_!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],_===!1)return!1}},N.walk=function(L){return this.each(function(E,D){var _=L(E,D);if(_!==!1&&E.length&&(_=E.walk(L)),_===!1)return!1})},N.walkAttributes=function(L){var E=this;return this.walk(function(D){if(D.type===X.ATTRIBUTE)return L.call(E,D)})},N.walkClasses=function(L){var E=this;return this.walk(function(D){if(D.type===X.CLASS)return L.call(E,D)})},N.walkCombinators=function(L){var E=this;return this.walk(function(D){if(D.type===X.COMBINATOR)return L.call(E,D)})},N.walkComments=function(L){var E=this;return this.walk(function(D){if(D.type===X.COMMENT)return L.call(E,D)})},N.walkIds=function(L){var E=this;return this.walk(function(D){if(D.type===X.ID)return L.call(E,D)})},N.walkNesting=function(L){var E=this;return this.walk(function(D){if(D.type===X.NESTING)return L.call(E,D)})},N.walkPseudos=function(L){var E=this;return this.walk(function(D){if(D.type===X.PSEUDO)return L.call(E,D)})},N.walkTags=function(L){var E=this;return this.walk(function(D){if(D.type===X.TAG)return L.call(E,D)})},N.walkUniversals=function(L){var E=this;return this.walk(function(D){if(D.type===X.UNIVERSAL)return L.call(E,D)})},N.split=function(L){var E=this,D=[];return this.reduce(function(_,j,T){var R=L.call(E,j);return D.push(j),R?(_.push(D),D=[]):T===E.length-1&&_.push(D),_},[])},N.map=function(L){return this.nodes.map(L)},N.reduce=function(L,E){return this.nodes.reduce(L,E)},N.every=function(L){return this.nodes.every(L)},N.some=function(L){return this.nodes.some(L)},N.filter=function(L){return this.nodes.filter(L)},N.sort=function(L){return this.nodes.sort(L)},N.toString=function(){return this.map(String).join("")},$(G,[{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}}]),G}(Y.default);J.default=M,K.exports=J.default}),tJ=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(U){return U&&U.__esModule?U:{default:U}}function Q(U,$){for(var V=0;V<$.length;V++){var B=$[V];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(U,B.key,B)}}function w(U,$,V){return $&&Q(U.prototype,$),V&&Q(U,V),U}function H(U,$){U.prototype=Object.create($.prototype),U.prototype.constructor=U,W(U,$)}function W(U,$){return W=Object.setPrototypeOf||function(V,B){return V.__proto__=B,V},W(U,$)}var z=function(U){H($,U);function $(B){var M;return M=U.call(this,B)||this,M.type=X.ROOT,M}var V=$.prototype;return V.toString=function(){var B=this.reduce(function(M,A){return M.push(String(A)),M},[]).join(",");return this.trailingComma?B+",":B},V.error=function(B,M){return this._error?this._error(B,M):new Error(B)},w($,[{key:"errorGenerator",set:function(B){this._error=B}}]),$}(Y.default);J.default=z,K.exports=J.default}),eJ=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.SELECTOR,$}return z}(Y.default);J.default=H,K.exports=J.default}),D4=a((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(z,U){if(!z)return U;var $={};for(var V in U)$[V]=X.call(z,V)?z[V]:U[V];return $},Q=/[ -,\.\/:-@\[-\^`\{-~]/,w=/[ -,\.\/:-@\[\]\^`\{-~]/,H=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,W=function z(U,$){$=Z($,z.options),$.quotes!="single"&&$.quotes!="double"&&($.quotes="single");for(var V=$.quotes=="double"?'"':"'",B=$.isIdentifier,M=U.charAt(0),A="",G=0,N=U.length;G<N;){var L=U.charAt(G++),E=L.charCodeAt(),D=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&G<N){var _=U.charCodeAt(G++);(_&64512)==56320?E=((E&1023)<<10)+(_&1023)+65536:G--}D="\\"+E.toString(16).toUpperCase()+" "}else $.escapeEverything?Q.test(L)?D="\\"+L:D="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(L)?D="\\"+E.toString(16).toUpperCase()+" ":L=="\\"||!B&&(L=='"'&&V==L||L=="'"&&V==L)||B&&w.test(L)?D="\\"+L:D=L;A+=D}return B&&(/^-[-\d]/.test(A)?A="\\-"+A.slice(1):/\d/.test(M)&&(A="\\3"+M+" "+A.slice(1))),A=A.replace(H,function(j,T,R){return T&&T.length%2?j:(T||"")+R}),!B&&$.wrap?V+A+V:A};W.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},W.version="3.0.0",K.exports=W}),JK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(D4()),X=m5(),Z=w(p1()),Q=m0();function w(V){return V&&V.__esModule?V:{default:V}}function H(V,B){for(var M=0;M<B.length;M++){var A=B[M];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(V,A.key,A)}}function W(V,B,M){return B&&H(V.prototype,B),M&&H(V,M),V}function z(V,B){V.prototype=Object.create(B.prototype),V.prototype.constructor=V,U(V,B)}function U(V,B){return U=Object.setPrototypeOf||function(M,A){return M.__proto__=A,M},U(V,B)}var $=function(V){z(B,V);function B(A){var G;return G=V.call(this,A)||this,G.type=Q.CLASS,G._constructed=!0,G}var M=B.prototype;return M.valueToString=function(){return"."+V.prototype.valueToString.call(this)},W(B,[{key:"value",get:function(){return this._value},set:function(A){if(this._constructed){var G=Y.default(A,{isIdentifier:!0});G!==A?(X.ensureObject(this,"raws"),this.raws.value=G):this.raws&&delete this.raws.value}this._value=A}}]),B}(Z.default);J.default=$,K.exports=J.default}),KK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.COMMENT,$}return z}(Y.default);J.default=H,K.exports=J.default}),YK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z($){var V;return V=W.call(this,$)||this,V.type=X.ID,V}var U=z.prototype;return U.valueToString=function(){return"#"+W.prototype.valueToString.call(this)},z}(Y.default);J.default=H,K.exports=J.default}),I4=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(D4()),X=m5(),Z=Q(p1());function Q($){return $&&$.__esModule?$:{default:$}}function w($,V){for(var B=0;B<V.length;B++){var M=V[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty($,M.key,M)}}function H($,V,B){return V&&w($.prototype,V),B&&w($,B),$}function W($,V){$.prototype=Object.create(V.prototype),$.prototype.constructor=$,z($,V)}function z($,V){return z=Object.setPrototypeOf||function(B,M){return B.__proto__=M,B},z($,V)}var U=function($){W(V,$);function V(){return $.apply(this,arguments)||this}var B=V.prototype;return B.qualifiedName=function(M){return this.namespace?this.namespaceString+"|"+M:M},B.valueToString=function(){return this.qualifiedName($.prototype.valueToString.call(this))},H(V,[{key:"namespace",get:function(){return this._namespace},set:function(M){if(M===!0||M==="*"||M==="&"){this._namespace=M,this.raws&&delete this.raws.namespace;return}var A=Y.default(M,{isIdentifier:!0});this._namespace=M,A!==M?(X.ensureObject(this,"raws"),this.raws.namespace=A):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(M){this.namespace=M}},{key:"namespaceString",get:function(){if(this.namespace){var M=this.stringifyProperty("namespace");return M===!0?"":M}else return""}}]),V}(Z.default);J.default=U,K.exports=J.default}),XK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.TAG,$}return z}(Y.default);J.default=H,K.exports=J.default}),ZK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.STRING,$}return z}(Y.default);J.default=H,K.exports=J.default}),QK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(R4()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z($){var V;return V=W.call(this,$)||this,V.type=X.PSEUDO,V}var U=z.prototype;return U.toString=function(){var $=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),$,this.rawSpaceAfter].join("")},z}(Y.default);J.default=H,K.exports=J.default}),MH=a((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),wK=a((J)=>{J.__esModule=!0,J.unescapeValue=G,J.default=void 0;var K=w(D4()),Y=w(aJ()),X=w(I4()),Z=m0(),Q;function w(_){return _&&_.__esModule?_:{default:_}}function H(_,j){for(var T=0;T<j.length;T++){var R=j[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(_,R.key,R)}}function W(_,j,T){return j&&H(_.prototype,j),T&&H(_,T),_}function z(_,j){_.prototype=Object.create(j.prototype),_.prototype.constructor=_,U(_,j)}function U(_,j){return U=Object.setPrototypeOf||function(T,R){return T.__proto__=R,T},U(_,j)}var $=MH(),V=/^('|")([^]*)\1$/,B=$(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),M=$(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),A=$(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function G(_){var j=!1,T=null,R=_,P=R.match(V);return P&&(T=P[1],R=P[2]),R=Y.default(R),R!==_&&(j=!0),{deprecatedUsage:j,unescaped:R,quoteMark:T}}function N(_){if(_.quoteMark!==void 0||_.value===void 0)return _;A();var j=G(_.value),T=j.quoteMark,R=j.unescaped;return _.raws||(_.raws={}),_.raws.value===void 0&&(_.raws.value=_.value),_.value=R,_.quoteMark=T,_}var L=function(_){z(j,_);function j(R){var P;return R===void 0&&(R={}),P=_.call(this,N(R))||this,P.type=Z.ATTRIBUTE,P.raws=P.raws||{},Object.defineProperty(P.raws,"unquoted",{get:$(function(){return P.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:$(function(){return P.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),P._constructed=!0,P}var T=j.prototype;return T.getQuotedValue=function(R){R===void 0&&(R={});var P=this._determineQuoteMark(R),h=E[P],c=K.default(this._value,h);return c},T._determineQuoteMark=function(R){return R.smart?this.smartQuoteMark(R):this.preferredQuoteMark(R)},T.setValue=function(R,P){P===void 0&&(P={}),this._value=R,this._quoteMark=this._determineQuoteMark(P),this._syncRawValue()},T.smartQuoteMark=function(R){var P=this.value,h=P.replace(/[^']/g,"").length,c=P.replace(/[^"]/g,"").length;if(h+c===0){var r=K.default(P,{isIdentifier:!0});if(r===P)return j.NO_QUOTE;var u=this.preferredQuoteMark(R);if(u===j.NO_QUOTE){var C=this.quoteMark||R.quoteMark||j.DOUBLE_QUOTE,v=E[C],I=K.default(P,v);if(I.length<r.length)return C}return u}else return c===h?this.preferredQuoteMark(R):c<h?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},T.preferredQuoteMark=function(R){var P=R.preferCurrentQuoteMark?this.quoteMark:R.quoteMark;return P===void 0&&(P=R.preferCurrentQuoteMark?R.quoteMark:this.quoteMark),P===void 0&&(P=j.DOUBLE_QUOTE),P},T._syncRawValue=function(){var R=K.default(this._value,E[this.quoteMark]);R===this._value?this.raws&&delete this.raws.value:this.raws.value=R},T._handleEscapes=function(R,P){if(this._constructed){var h=K.default(P,{isIdentifier:!0});h!==P?this.raws[R]=h:delete this.raws[R]}},T._spacesFor=function(R){var P={before:"",after:""},h=this.spaces[R]||{},c=this.raws.spaces&&this.raws.spaces[R]||{};return Object.assign(P,h,c)},T._stringFor=function(R,P,h){P===void 0&&(P=R),h===void 0&&(h=D);var c=this._spacesFor(P);return h(this.stringifyProperty(R),c)},T.offsetOf=function(R){var P=1,h=this._spacesFor("attribute");if(P+=h.before.length,R==="namespace"||R==="ns")return this.namespace?P:-1;if(R==="attributeNS"||(P+=this.namespaceString.length,this.namespace&&(P+=1),R==="attribute"))return P;P+=this.stringifyProperty("attribute").length,P+=h.after.length;var c=this._spacesFor("operator");P+=c.before.length;var r=this.stringifyProperty("operator");if(R==="operator")return r?P:-1;P+=r.length,P+=c.after.length;var u=this._spacesFor("value");P+=u.before.length;var C=this.stringifyProperty("value");if(R==="value")return C?P:-1;P+=C.length,P+=u.after.length;var v=this._spacesFor("insensitive");return P+=v.before.length,R==="insensitive"&&this.insensitive?P:-1},T.toString=function(){var R=this,P=[this.rawSpaceBefore,"["];return P.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(P.push(this._stringFor("operator")),P.push(this._stringFor("value")),P.push(this._stringFor("insensitiveFlag","insensitive",function(h,c){return h.length>0&&!R.quoted&&c.before.length===0&&!(R.spaces.value&&R.spaces.value.after)&&(c.before=" "),D(h,c)}))),P.push("]"),P.push(this.rawSpaceAfter),P.join("")},W(j,[{key:"quoted",get:function(){var R=this.quoteMark;return R==="'"||R==='"'},set:function(R){M()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(R){if(!this._constructed){this._quoteMark=R;return}this._quoteMark!==R&&(this._quoteMark=R,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(R){if(this._constructed){var P=G(R),h=P.deprecatedUsage,c=P.unescaped,r=P.quoteMark;if(h&&B(),c===this._value&&r===this._quoteMark)return;this._value=c,this._quoteMark=r,this._syncRawValue()}else this._value=R}},{key:"attribute",get:function(){return this._attribute},set:function(R){this._handleEscapes("attribute",R),this._attribute=R}}]),j}(X.default);J.default=L,L.NO_QUOTE=null,L.SINGLE_QUOTE="'",L.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function D(_,j){return""+j.before+_+j.after}}),WK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(I4()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.UNIVERSAL,$.value="*",$}return z}(Y.default);J.default=H,K.exports=J.default}),HK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.COMBINATOR,$}return z}(Y.default);J.default=H,K.exports=J.default}),zK=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(p1()),X=m0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U},w(W,z)}var H=function(W){Q(z,W);function z(U){var $;return $=W.call(this,U)||this,$.type=X.NESTING,$.value="&",$}return z}(Y.default);J.default=H,K.exports=J.default}),OH=a((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),UK=a((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 Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var w=59;J.semicolon=w;var H=40;J.openParenthesis=H;var W=41;J.closeParenthesis=W;var z=91;J.openSquare=z;var U=93;J.closeSquare=U;var $=36;J.dollar=$;var V=126;J.tilde=V;var B=94;J.caret=B;var M=43;J.plus=M;var A=61;J.equals=A;var G=124;J.pipe=G;var N=62;J.greaterThan=N;var L=32;J.space=L;var E=39;J.singleQuote=E;var D=34;J.doubleQuote=D;var _=47;J.slash=_;var j=33;J.bang=j;var T=92;J.backslash=T;var R=13;J.cr=R;var P=12;J.feed=P;var h=10;J.newline=h;var c=9;J.tab=c;var r=E;J.str=r;var u=-1;J.comment=u;var C=-2;J.word=C;var v=-3;J.combinator=v}),NH=a((J)=>{J.__esModule=!0,J.default=M,J.FIELDS=void 0;var K=Q(UK()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return Z=function(){return A},A}function Q(A){if(A&&A.__esModule)return A;if(A===null||typeof A!="object"&&typeof A!="function")return{default:A};var G=Z();if(G&&G.has(A))return G.get(A);var N={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in A)if(Object.prototype.hasOwnProperty.call(A,E)){var D=L?Object.getOwnPropertyDescriptor(A,E):null;D&&(D.get||D.set)?Object.defineProperty(N,E,D):N[E]=A[E]}return N.default=A,G&&G.set(A,N),N}var w=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),H=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),W={},z="0123456789abcdefABCDEF";for(U=0;U<z.length;U++)W[z.charCodeAt(U)]=!0;var U;function $(A,G){var N=G,L;do{if(L=A.charCodeAt(N),H[L])return N-1;L===K.backslash?N=V(A,N)+1:N++}while(N<A.length);return N-1}function V(A,G){var N=G,L=A.charCodeAt(N+1);if(!w[L])if(W[L]){var E=0;do N++,E++,L=A.charCodeAt(N+1);while(W[L]&&E<6);E<6&&L===K.space&&N++}else N++;return N}var B={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=B;function M(A){var G=[],N=A.css.valueOf(),L=N,E=L.length,D=-1,_=1,j=0,T=0,R,P,h,c,r,u,C,v,I,f,l,t,o;function m(d,y){if(A.safe)N+=y,I=N.length-1;else throw A.error("Unclosed "+d,_,j-D,j)}for(;j<E;){switch(R=N.charCodeAt(j),R===K.newline&&(D=j,_+=1),R){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:I=j;do I+=1,R=N.charCodeAt(I),R===K.newline&&(D=I,_+=1);while(R===K.space||R===K.newline||R===K.tab||R===K.cr||R===K.feed);o=K.space,c=_,h=I-D-1,T=I;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:I=j;do I+=1,R=N.charCodeAt(I);while(R===K.plus||R===K.greaterThan||R===K.tilde||R===K.pipe);o=K.combinator,c=_,h=j-D,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,o=R,c=_,h=j-D,T=I+1;break;case K.singleQuote:case K.doubleQuote:t=R===K.singleQuote?"'":'"',I=j;do for(r=!1,I=N.indexOf(t,I+1),I===-1&&m("quote",t),u=I;N.charCodeAt(u-1)===K.backslash;)u-=1,r=!r;while(r);o=K.str,c=_,h=j-D,T=I+1;break;default:R===K.slash&&N.charCodeAt(j+1)===K.asterisk?(I=N.indexOf("*/",j+2)+1,I===0&&m("comment","*/"),P=N.slice(j,I+1),v=P.split(`
63
63
  `),C=v.length-1,C>0?(f=_+C,l=I-v[C].length):(f=_,l=D),o=K.comment,_=f,c=f,h=I-l):R===K.slash?(I=j,o=R,c=_,h=j-D,T=I+1):(I=$(N,j),o=K.word,c=_,h=I-D),T=I+1;break}G.push([o,_,j-D,c,h,j,T]),l&&(D=l,l=null),j=T}return G}}),LH=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=T(tJ()),X=T(eJ()),Z=T(JK()),Q=T(KK()),w=T(YK()),H=T(XK()),W=T(ZK()),z=T(QK()),U=j(wK()),$=T(WK()),V=T(HK()),B=T(zK()),M=T(OH()),A=j(NH()),G=j(UK()),N=j(m0()),L=m5(),E,D;function _(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return _=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=_();if(d&&d.has(m))return d.get(m);var y={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in m)if(Object.prototype.hasOwnProperty.call(m,n)){var g=k?Object.getOwnPropertyDescriptor(m,n):null;g&&(g.get||g.set)?Object.defineProperty(y,n,g):y[n]=m[n]}return y.default=m,d&&d.set(m,y),y}function T(m){return m&&m.__esModule?m:{default:m}}function R(m,d){for(var y=0;y<d.length;y++){var k=d[y];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(m,k.key,k)}}function P(m,d,y){return d&&R(m.prototype,d),y&&R(m,y),m}var h=(E={},E[G.space]=!0,E[G.cr]=!0,E[G.feed]=!0,E[G.newline]=!0,E[G.tab]=!0,E),c=Object.assign({},h,(D={},D[G.comment]=!0,D));function r(m){return{line:m[A.FIELDS.START_LINE],column:m[A.FIELDS.START_COL]}}function u(m){return{line:m[A.FIELDS.END_LINE],column:m[A.FIELDS.END_COL]}}function C(m,d,y,k){return{start:{line:m,column:d},end:{line:y,column:k}}}function v(m){return C(m[A.FIELDS.START_LINE],m[A.FIELDS.START_COL],m[A.FIELDS.END_LINE],m[A.FIELDS.END_COL])}function I(m,d){if(m)return C(m[A.FIELDS.START_LINE],m[A.FIELDS.START_COL],d[A.FIELDS.END_LINE],d[A.FIELDS.END_COL])}function f(m,d){var y=m[d];if(typeof y=="string")return y.indexOf("\\")!==-1&&(L.ensureObject(m,"raws"),m[d]=L.unesc(y),m.raws[d]===void 0&&(m.raws[d]=y)),m}function l(m,d){for(var y=-1,k=[];(y=m.indexOf(d,y+1))!==-1;)k.push(y);return k}function t(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(d,y){return y===m.indexOf(d)})}var o=function(){function m(y,k){k===void 0&&(k={}),this.rule=y,this.options=Object.assign({lossy:!1,safe:!1},k),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=A.default({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var n=I(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:n}),this.root.errorGenerator=this._errorGenerator();var g=new X.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(k,n){return typeof y.rule=="string"?new Error(k):y.rule.error(k,n)}},d.attribute=function(){var y=[],k=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[A.FIELDS.TYPE]!==G.closeSquare;)y.push(this.currToken),this.position++;if(this.currToken[A.FIELDS.TYPE]!==G.closeSquare)return this.expected("closing square bracket",this.currToken[A.FIELDS.START_POS]);var n=y.length,g={source:C(k[1],k[2],this.currToken[3],this.currToken[4]),sourceIndex:k[A.FIELDS.START_POS]};if(n===1&&!~[G.word].indexOf(y[0][A.FIELDS.TYPE]))return this.expected("attribute",y[0][A.FIELDS.START_POS]);for(var e=0,Y0="",X0="",J0=null,V0=!1;e<n;){var _0=y[e],K0=this.content(_0),q0=y[e+1];switch(_0[A.FIELDS.TYPE]){case G.space:if(V0=!0,this.options.lossy)break;if(J0){L.ensureObject(g,"spaces",J0);var S0=g.spaces[J0].after||"";g.spaces[J0].after=S0+K0;var c0=L.getProp(g,"raws","spaces",J0,"after")||null;c0&&(g.raws.spaces[J0].after=c0+K0)}else Y0=Y0+K0,X0=X0+K0;break;case G.asterisk:if(q0[A.FIELDS.TYPE]===G.equals)g.operator=K0,J0="operator";else if((!g.namespace||J0==="namespace"&&!V0)&&q0){Y0&&(L.ensureObject(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&(L.ensureObject(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Y0,X0=""),g.namespace=(g.namespace||"")+K0;var k0=L.getProp(g,"raws","namespace")||null;k0&&(g.raws.namespace+=K0),J0="namespace"}V0=!1;break;case G.dollar:if(J0==="value"){var I0=L.getProp(g,"raws","value");g.value+="$",I0&&(g.raws.value=I0+"$");break}case G.caret:q0[A.FIELDS.TYPE]===G.equals&&(g.operator=K0,J0="operator"),V0=!1;break;case G.combinator:if(K0==="~"&&q0[A.FIELDS.TYPE]===G.equals&&(g.operator=K0,J0="operator"),K0!=="|"){V0=!1;break}q0[A.FIELDS.TYPE]===G.equals?(g.operator=K0,J0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),V0=!1;break;case G.word:if(q0&&this.content(q0)==="|"&&y[e+2]&&y[e+2][A.FIELDS.TYPE]!==G.equals&&!g.operator&&!g.namespace)g.namespace=K0,J0="namespace";else if(!g.attribute||J0==="attribute"&&!V0){Y0&&(L.ensureObject(g,"spaces","attribute"),g.spaces.attribute.before=Y0,Y0=""),X0&&(L.ensureObject(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,X0=""),g.attribute=(g.attribute||"")+K0;var f0=L.getProp(g,"raws","attribute")||null;f0&&(g.raws.attribute+=K0),J0="attribute"}else if(!g.value&&g.value!==""||J0==="value"&&!V0){var u0=L.unesc(K0),p0=L.getProp(g,"raws","value")||"",X1=g.value||"";g.value=X1+u0,g.quoteMark=null,(u0!==K0||p0)&&(L.ensureObject(g,"raws"),g.raws.value=(p0||X1)+K0),J0="value"}else{var Z1=K0==="i"||K0==="I";(g.value||g.value==="")&&(g.quoteMark||V0)?(g.insensitive=Z1,(!Z1||K0==="I")&&(L.ensureObject(g,"raws"),g.raws.insensitiveFlag=K0),J0="insensitive",Y0&&(L.ensureObject(g,"spaces","insensitive"),g.spaces.insensitive.before=Y0,Y0=""),X0&&(L.ensureObject(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=X0,X0="")):(g.value||g.value==="")&&(J0="value",g.value+=K0,g.raws.value&&(g.raws.value+=K0))}V0=!1;break;case G.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:_0[A.FIELDS.START_POS]});var n0=U.unescapeValue(K0),X8=n0.unescaped,P1=n0.quoteMark;g.value=X8,g.quoteMark=P1,J0="value",L.ensureObject(g,"raws"),g.raws.value=K0,V0=!1;break;case G.equals:if(!g.attribute)return this.expected("attribute",_0[A.FIELDS.START_POS],K0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:_0[A.FIELDS.START_POS]});g.operator=g.operator?g.operator+K0:K0,J0="operator",V0=!1;break;case G.comment:if(J0)if(V0||q0&&q0[A.FIELDS.TYPE]===G.space||J0==="insensitive"){var i1=L.getProp(g,"spaces",J0,"after")||"",Z8=L.getProp(g,"raws","spaces",J0,"after")||i1;L.ensureObject(g,"raws","spaces",J0),g.raws.spaces[J0].after=Z8+K0}else{var r8=g[J0]||"",Q8=L.getProp(g,"raws",J0)||r8;L.ensureObject(g,"raws"),g.raws[J0]=Q8+K0}else X0=X0+K0;break;default:return this.error('Unexpected "'+K0+'" found.',{index:_0[A.FIELDS.START_POS]})}e++}f(g,"attribute"),f(g,"namespace"),this.newNode(new U.default(g)),this.position++},d.parseWhitespaceEquivalentTokens=function(y){y<0&&(y=this.tokens.length);var k=this.position,n=[],g="",e=void 0;do if(h[this.currToken[A.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[A.FIELDS.TYPE]===G.comment){var Y0={};g&&(Y0.before=g,g=""),e=new Q.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS],spaces:Y0}),n.push(e)}while(++this.position<y);if(g){if(e)e.spaces.after=g;else if(!this.options.lossy){var X0=this.tokens[k],J0=this.tokens[this.position-1];n.push(new W.default({value:"",source:C(X0[A.FIELDS.START_LINE],X0[A.FIELDS.START_COL],J0[A.FIELDS.END_LINE],J0[A.FIELDS.END_COL]),sourceIndex:X0[A.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return n},d.convertWhitespaceNodesToSpace=function(y,k){var n=this;k===void 0&&(k=!1);var g="",e="";y.forEach(function(X0){var J0=n.lossySpace(X0.spaces.before,k),V0=n.lossySpace(X0.rawSpaceBefore,k);g+=J0+n.lossySpace(X0.spaces.after,k&&J0.length===0),e+=J0+X0.value+n.lossySpace(X0.rawSpaceAfter,k&&V0.length===0)}),e===g&&(e=void 0);var Y0={space:g,rawSpace:e};return Y0},d.isNamedCombinator=function(y){return y===void 0&&(y=this.position),this.tokens[y+0]&&this.tokens[y+0][A.FIELDS.TYPE]===G.slash&&this.tokens[y+1]&&this.tokens[y+1][A.FIELDS.TYPE]===G.word&&this.tokens[y+2]&&this.tokens[y+2][A.FIELDS.TYPE]===G.slash},d.namedCombinator=function(){if(this.isNamedCombinator()){var y=this.content(this.tokens[this.position+1]),k=L.unesc(y).toLowerCase(),n={};k!==y&&(n.value="/"+y+"/");var g=new V.default({value:"/"+k+"/",source:C(this.currToken[A.FIELDS.START_LINE],this.currToken[A.FIELDS.START_COL],this.tokens[this.position+2][A.FIELDS.END_LINE],this.tokens[this.position+2][A.FIELDS.END_COL]),sourceIndex:this.currToken[A.FIELDS.START_POS],raws:n});return this.position=this.position+3,g}else this.unexpected()},d.combinator=function(){var y=this;if(this.content()==="|")return this.namespace();var k=this.locateNextMeaningfulToken(this.position);if(k<0||this.tokens[k][A.FIELDS.TYPE]===G.comma){var n=this.parseWhitespaceEquivalentTokens(k);if(n.length>0){var g=this.current.last;if(g){var e=this.convertWhitespaceNodesToSpace(n),Y0=e.space,X0=e.rawSpace;X0!==void 0&&(g.rawSpaceAfter+=X0),g.spaces.after+=Y0}else n.forEach(function(p0){return y.newNode(p0)})}return}var J0=this.currToken,V0=void 0;k>this.position&&(V0=this.parseWhitespaceEquivalentTokens(k));var _0;if(this.isNamedCombinator()?_0=this.namedCombinator():this.currToken[A.FIELDS.TYPE]===G.combinator?(_0=new V.default({value:this.content(),source:v(this.currToken),sourceIndex:this.currToken[A.FIELDS.START_POS]}),this.position++):h[this.currToken[A.FIELDS.TYPE]]||V0||this.unexpected(),_0){if(V0){var K0=this.convertWhitespaceNodesToSpace(V0),q0=K0.space,S0=K0.rawSpace;_0.spaces.before=q0,_0.rawSpaceBefore=S0}}else{var c0=this.convertWhitespaceNodesToSpace(V0,!0),k0=c0.space,I0=c0.rawSpace;I0||(I0=k0);var f0={},u0={spaces:{}};k0.endsWith(" ")&&I0.endsWith(" ")?(f0.before=k0.slice(0,k0.length-1),u0.spaces.before=I0.slice(0,I0.length-1)):k0.startsWith(" ")&&I0.startsWith(" ")?(f0.after=k0.slice(1),u0.spaces.after=I0.slice(1)):u0.value=I0,_0=new V.default({value:" ",source:I(J0,this.tokens[this.position-1]),sourceIndex:J0[A.FIELDS.START_POS],spaces:f0,raws:u0})}return this.currToken&&this.currToken[A.FIELDS.TYPE]===G.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 X.default({source:{start:r(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 Q.default({value:this.content(),source:v(y),sourceIndex:y[A.FIELDS.START_POS]})),this.position++},d.error=function(y,k){throw this.root.error(y,k)},d.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[A.FIELDS.START_POS]})},d.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[A.FIELDS.START_POS])},d.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[A.FIELDS.START_POS])},d.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[A.FIELDS.START_POS])},d.namespace=function(){var y=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[A.FIELDS.TYPE]===G.word)return this.position++,this.word(y);if(this.nextToken[A.FIELDS.TYPE]===G.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 k=this.currToken;this.newNode(new B.default({value:this.content(),source:v(k),sourceIndex:k[A.FIELDS.START_POS]})),this.position++},d.parentheses=function(){var y=this.current.last,k=1;if(this.position++,y&&y.type===N.PSEUDO){var n=new X.default({source:{start:r(this.tokens[this.position-1])}}),g=this.current;for(y.append(n),this.current=n;this.position<this.tokens.length&&k;)this.currToken[A.FIELDS.TYPE]===G.openParenthesis&&k++,this.currToken[A.FIELDS.TYPE]===G.closeParenthesis&&k--,k?this.parse():(this.current.source.end=u(this.currToken),this.current.parent.source.end=u(this.currToken),this.position++);this.current=g}else{for(var e=this.currToken,Y0="(",X0;this.position<this.tokens.length&&k;)this.currToken[A.FIELDS.TYPE]===G.openParenthesis&&k++,this.currToken[A.FIELDS.TYPE]===G.closeParenthesis&&k--,X0=this.currToken,Y0+=this.parseParenthesisToken(this.currToken),this.position++;y?y.appendToPropertyAndEscape("value",Y0,Y0):this.newNode(new W.default({value:Y0,source:C(e[A.FIELDS.START_LINE],e[A.FIELDS.START_COL],X0[A.FIELDS.END_LINE],X0[A.FIELDS.END_COL]),sourceIndex:e[A.FIELDS.START_POS]}))}if(k)return this.expected("closing parenthesis",this.currToken[A.FIELDS.START_POS])},d.pseudo=function(){for(var y=this,k="",n=this.currToken;this.currToken&&this.currToken[A.FIELDS.TYPE]===G.colon;)k+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[A.FIELDS.TYPE]===G.word)this.splitWord(!1,function(g,e){k+=g,y.newNode(new z.default({value:k,source:I(n,y.currToken),sourceIndex:n[A.FIELDS.START_POS]})),e>1&&y.nextToken&&y.nextToken[A.FIELDS.TYPE]===G.openParenthesis&&y.error("Misplaced parenthesis.",{index:y.nextToken[A.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[A.FIELDS.START_POS])},d.space=function(){var y=this.content();this.position===0||this.prevToken[A.FIELDS.TYPE]===G.comma||this.prevToken[A.FIELDS.TYPE]===G.openParenthesis||this.current.nodes.every(function(k){return k.type==="comment"})?(this.spaces=this.optionalSpace(y),this.position++):this.position===this.tokens.length-1||this.nextToken[A.FIELDS.TYPE]===G.comma||this.nextToken[A.FIELDS.TYPE]===G.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(y),this.position++):this.combinator()},d.string=function(){var y=this.currToken;this.newNode(new W.default({value:this.content(),source:v(y),sourceIndex:y[A.FIELDS.START_POS]})),this.position++},d.universal=function(y){var k=this.nextToken;if(k&&this.content(k)==="|")return this.position++,this.namespace();var n=this.currToken;this.newNode(new $.default({value:this.content(),source:v(n),sourceIndex:n[A.FIELDS.START_POS]}),y),this.position++},d.splitWord=function(y,k){for(var n=this,g=this.nextToken,e=this.content();g&&~[G.dollar,G.caret,G.equals,G.word].indexOf(g[A.FIELDS.TYPE]);){this.position++;var Y0=this.content();if(e+=Y0,Y0.lastIndexOf("\\")===Y0.length-1){var X0=this.nextToken;X0&&X0[A.FIELDS.TYPE]===G.space&&(e+=this.requiredSpace(this.content(X0)),this.position++)}g=this.nextToken}var J0=l(e,".").filter(function(q0){var S0=e[q0-1]==="\\",c0=/^\d+\.\d+%$/.test(e);return!S0&&!c0}),V0=l(e,"#").filter(function(q0){return e[q0-1]!=="\\"}),_0=l(e,"#{");_0.length&&(V0=V0.filter(function(q0){return!~_0.indexOf(q0)}));var K0=M.default(t([0].concat(J0,V0)));K0.forEach(function(q0,S0){var c0=K0[S0+1]||e.length,k0=e.slice(q0,c0);if(S0===0&&k)return k.call(n,k0,K0.length);var I0,f0=n.currToken,u0=f0[A.FIELDS.START_POS]+K0[S0],p0=C(f0[1],f0[2]+q0,f0[3],f0[2]+(c0-1));if(~J0.indexOf(q0)){var X1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new Z.default(f(X1,"value"))}else if(~V0.indexOf(q0)){var Z1={value:k0.slice(1),source:p0,sourceIndex:u0};I0=new w.default(f(Z1,"value"))}else{var n0={value:k0,source:p0,sourceIndex:u0};f(n0,"value"),I0=new H.default(n0)}n.newNode(I0,y),y=null}),this.position++},d.word=function(y){var k=this.nextToken;return k&&this.content(k)==="|"?(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[A.FIELDS.TYPE]){case G.space:this.space();break;case G.comment:this.comment();break;case G.openParenthesis:this.parentheses();break;case G.closeParenthesis:y&&this.missingParenthesis();break;case G.openSquare:this.attribute();break;case G.dollar:case G.caret:case G.equals:case G.word:this.word();break;case G.colon:this.pseudo();break;case G.comma:this.comma();break;case G.asterisk:this.universal();break;case G.ampersand:this.nesting();break;case G.slash:case G.combinator:this.combinator();break;case G.str:this.string();break;case G.closeSquare:this.missingSquareBracket();case G.semicolon:this.missingBackslash();default:this.unexpected()}},d.expected=function(y,k,n){if(Array.isArray(y)){var g=y.pop();y=y.join(", ")+" or "+g}var e=/^[aeiou]/.test(y[0])?"an":"a";return n?this.error("Expected "+e+" "+y+', found "'+n+'" instead.',{index:k}):this.error("Expected "+e+" "+y+".",{index:k})},d.requiredSpace=function(y){return this.options.lossy?" ":y},d.optionalSpace=function(y){return this.options.lossy?"":y},d.lossySpace=function(y,k){return this.options.lossy?k?" ":"":y},d.parseParenthesisToken=function(y){var k=this.content(y);return y[A.FIELDS.TYPE]===G.space?this.requiredSpace(k):k},d.newNode=function(y,k){return k&&(/^ +$/.test(k)&&(this.options.lossy||(this.spaces=(this.spaces||"")+k),k=!0),y.namespace=k,f(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[A.FIELDS.START_POS],y[A.FIELDS.END_POS])},d.locateNextMeaningfulToken=function(y){y===void 0&&(y=this.position+1);for(var k=y;k<this.tokens.length;)if(c[this.tokens[k][A.FIELDS.TYPE]]){k++;continue}else return k;return-1},P(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=o,K.exports=J.default}),jH=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(LH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q(H,W){this.func=H||function(){},this.funcRes=null,this.options=W}var w=Q.prototype;return w._shouldUpdateSelector=function(H,W){W===void 0&&(W={});var z=Object.assign({},this.options,W);return z.updateSelector===!1?!1:typeof H!="string"},w._isLossy=function(H){H===void 0&&(H={});var W=Object.assign({},this.options,H);return W.lossless===!1},w._root=function(H,W){W===void 0&&(W={});var z=new Y.default(H,this._parseOptions(W));return z.root},w._parseOptions=function(H){return{lossy:this._isLossy(H)}},w._run=function(H,W){var z=this;return W===void 0&&(W={}),new Promise(function(U,$){try{var V=z._root(H,W);Promise.resolve(z.func(V)).then(function(B){var M=void 0;return z._shouldUpdateSelector(H,W)&&(M=V.toString(),H.selector=M),{transform:B,root:V,string:M}}).then(U,$)}catch(B){$(B);return}})},w._runSync=function(H,W){W===void 0&&(W={});var z=this._root(H,W),U=this.func(z);if(U&&typeof U.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var $=void 0;return W.updateSelector&&typeof H!="string"&&($=z.toString(),H.selector=$),{transform:U,root:z,string:$}},w.ast=function(H,W){return this._run(H,W).then(function(z){return z.root})},w.astSync=function(H,W){return this._runSync(H,W).root},w.transform=function(H,W){return this._run(H,W).then(function(z){return z.transform})},w.transformSync=function(H,W){return this._runSync(H,W).transform},w.process=function(H,W){return this._run(H,W).then(function(z){return z.string||z.root.toString()})},w.processSync=function(H,W){var z=this._runSync(H,W);return z.string||z.root.toString()},Q}();J.default=Z,K.exports=J.default}),FH=a((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=B(wK()),Y=B(JK()),X=B(HK()),Z=B(KK()),Q=B(YK()),w=B(zK()),H=B(QK()),W=B(tJ()),z=B(eJ()),U=B(ZK()),$=B(XK()),V=B(WK());function B(h){return h&&h.__esModule?h:{default:h}}var M=function(h){return new K.default(h)};J.attribute=M;var A=function(h){return new Y.default(h)};J.className=A;var G=function(h){return new X.default(h)};J.combinator=G;var N=function(h){return new Z.default(h)};J.comment=N;var L=function(h){return new Q.default(h)};J.id=L;var E=function(h){return new w.default(h)};J.nesting=E;var D=function(h){return new H.default(h)};J.pseudo=D;var _=function(h){return new W.default(h)};J.root=_;var j=function(h){return new z.default(h)};J.selector=j;var T=function(h){return new U.default(h)};J.string=T;var R=function(h){return new $.default(h)};J.tag=R;var P=function(h){return new V.default(h)};J.universal=P}),EH=a((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=L,J.isPseudoClass=E,J.isContainer=D,J.isNamespace=_,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=m0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(j){return typeof j=="object"&&X[j.type]}function Q(j,T){return Z(T)&&T.type===j}var w=Q.bind(null,K.ATTRIBUTE);J.isAttribute=w;var H=Q.bind(null,K.CLASS);J.isClassName=H;var W=Q.bind(null,K.COMBINATOR);J.isCombinator=W;var z=Q.bind(null,K.COMMENT);J.isComment=z;var U=Q.bind(null,K.ID);J.isIdentifier=U;var $=Q.bind(null,K.NESTING);J.isNesting=$;var V=Q.bind(null,K.PSEUDO);J.isPseudo=V;var B=Q.bind(null,K.ROOT);J.isRoot=B;var M=Q.bind(null,K.SELECTOR);J.isSelector=M;var A=Q.bind(null,K.STRING);J.isString=A;var G=Q.bind(null,K.TAG);J.isTag=G;var N=Q.bind(null,K.UNIVERSAL);J.isUniversal=N;function L(j){return V(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 V(j)&&!L(j)}function D(j){return!!(Z(j)&&j.walk)}function _(j){return w(j)||G(j)}}),_H=a((J)=>{J.__esModule=!0;var K=m0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=FH();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=EH();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),RH=a((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(jH()),X=Q(_H());function Z(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return Z=function(){return z},z}function Q(z){if(z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var U=Z();if(U&&U.has(z))return U.get(z);var $={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in z)if(Object.prototype.hasOwnProperty.call(z,B)){var M=V?Object.getOwnPropertyDescriptor(z,B):null;M&&(M.get||M.set)?Object.defineProperty($,B,M):$[B]=z[B]}return $.default=z,U&&U.set(z,$),$}function w(z){return z&&z.__esModule?z:{default:z}}var H=function(z){return new Y.default(z)};Object.assign(H,X),delete H.__esModule;var W=H;J.default=W,K.exports=J.default}),DH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),IH=a((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]}}),$K=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(M,A){for(var G in A)Object.defineProperty(M,G,{enumerable:!0,get:A[G]})}K(J,{parseColor:()=>V,formatColor:()=>B});var Y=X(IH());function X(M){return M&&M.__esModule?M:{default:M}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,w=/(?:\d+|\d*\.\d+)%?/,H=/(?:\s*,\s*|\s+)/,W=/\s*[,/]\s*/,z=/var\(--(?:[^ )]*?)\)/,U=new RegExp(`^(rgb)a?\\(\\s*(${w.source}|${z.source})(?:${H.source}(${w.source}|${z.source}))?(?:${H.source}(${w.source}|${z.source}))?(?:${W.source}(${w.source}|${z.source}))?\\s*\\)$`),$=new RegExp(`^(hsl)a?\\(\\s*((?:${w.source})(?:deg|rad|grad|turn)?|${z.source})(?:${H.source}(${w.source}|${z.source}))?(?:${H.source}(${w.source}|${z.source}))?(?:${W.source}(${w.source}|${z.source}))?\\s*\\)$`);function V(M,{loose:A=!1}={}){var G,N;if(typeof M!="string")return null;if(M=M.trim(),M==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(M in Y.default)return{mode:"rgb",color:Y.default[M].map((j)=>j.toString())};let L=M.replace(Q,(j,T,R,P,h)=>["#",T,T,R,R,P,P,h?h+h:""].join("")).match(Z);if(L!==null)return{mode:"rgb",color:[parseInt(L[1],16),parseInt(L[2],16),parseInt(L[3],16)].map((j)=>j.toString()),alpha:L[4]?(parseInt(L[4],16)/255).toString():void 0};var E;let D=(E=M.match(U))!==null&&E!==void 0?E:M.match($);if(D===null)return null;let _=[D[2],D[3],D[4]].filter(Boolean).map((j)=>j.toString());return!A&&_.length!==3||_.length<3&&!_.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:D[1],color:_,alpha:(G=D[5])===null||G===void 0||(N=G.toString)===null||N===void 0?void 0:N.call(G)}}function B({mode:M,color:A,alpha:G}){let N=G!==void 0;return`${M}(${A.join(" ")}${N?` / ${G}`:""})`}}),VK=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,w){for(var H in w)Object.defineProperty(Q,H,{enumerable:!0,get:w[H]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=$K();function X(Q,w,H){if(typeof Q=="function")return Q({opacityValue:w});let W=Y.parseColor(Q,{loose:!0});return W===null?H:Y.formatColor({...W,alpha:w})}function Z({color:Q,property:w,variable:H}){let W=[].concat(w);if(typeof Q=="function")return{[H]:"1",...Object.fromEntries(W.map((U)=>[U,Q({opacityVariable:H,opacityValue:`var(${H})`})]))};let z=Y.parseColor(Q);return z===null?Object.fromEntries(W.map((U)=>[U,Q])):z.alpha!==void 0?Object.fromEntries(W.map((U)=>[U,Q])):{[H]:"1",...Object.fromEntries(W.map((U)=>[U,Y.formatColor({...z,alpha:`var(${H})`})]))}}}),TH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(V,B){for(var M in B)Object.defineProperty(V,M,{enumerable:!0,get:B[M]})}K(J,{pattern:()=>Q,withoutCapturing:()=>w,any:()=>H,optional:()=>W,zeroOrMore:()=>z,nestedBrackets:()=>U,escape:()=>$});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z(V){return V=Array.isArray(V)?V:[V],V=V.map((B)=>B instanceof RegExp?B.source:B),V.join("")}function Q(V){return new RegExp(Z(V),"g")}function w(V){return new RegExp(`(?:${Z(V)})`,"g")}function H(V){return`(?:${V.map(Z).join("|")})`}function W(V){return`(?:${Z(V)})?`}function z(V){return`(?:${Z(V)})*`}function U(V,B,M=1){return w([$(V),/[^\s]*/,M===1?`[^${$(V)}${$(B)}s]*`:H([`[^${$(V)}${$(B)}s]*`,U(V,B,M-1)]),/[^\s]*/,$(B)])}function $(V){return V&&X.test(V)?V.replace(Y,"\\$&"):V||""}}),CH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(TH());function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,H=new WeakMap;return(Y=function(W){return W?H:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var H=Y(w);if(H&&H.has(Q))return H.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in Q)if(U!=="default"&&Object.prototype.hasOwnProperty.call(Q,U)){var $=z?Object.getOwnPropertyDescriptor(Q,U):null;$&&($.get||$.set)?Object.defineProperty(W,U,$):W[U]=Q[U]}return W.default=Q,H&&H.set(Q,W),W}function*Z(Q,w){let H=new RegExp(`[(){}\\[\\]${K.escape(w)}]`,"g"),W=0,z=0,U=!1,$=0,V=0,B=w.length;for(let M of Q.matchAll(H)){let A=M[0]===w[$],G=$===B-1,N=A&&G;M[0]==="("&&W++,M[0]===")"&&W--,M[0]==="["&&W++,M[0]==="]"&&W--,M[0]==="{"&&W++,M[0]==="}"&&W--,A&&W===0&&(V===0&&(V=M.index),$++),N&&W===0&&(U=!0,yield Q.substring(z,V),z=V+B),$===B&&($=0,V=0)}U?yield Q.substring(z):yield Q}}),PH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(W,z){for(var U in z)Object.defineProperty(W,U,{enumerable:!0,get:z[U]})}K(J,{parseBoxShadowValue:()=>w,formatBoxShadowValue:()=>H});var Y=CH(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function w(W){return Array.from(Y.splitAtTopLevelOnly(W,",")).map((z)=>{let U=z.trim(),$={raw:U},V=U.split(Z),B=new Set;for(let M of V)Q.lastIndex=0,!B.has("KEYWORD")&&X.has(M)?($.keyword=M,B.add("KEYWORD")):Q.test(M)?B.has("X")?B.has("Y")?B.has("BLUR")?B.has("SPREAD")||($.spread=M,B.add("SPREAD")):($.blur=M,B.add("BLUR")):($.y=M,B.add("Y")):($.x=M,B.add("X")):$.color?($.unknown||($.unknown=[]),$.unknown.push(M)):$.color=M;return $.valid=$.x!==void 0&&$.y!==void 0,$})}function H(W){return W.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),SH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(C,v){for(var I in v)Object.defineProperty(C,I,{enumerable:!0,get:v[I]})}K(J,{normalize:()=>H,url:()=>W,number:()=>z,percentage:()=>U,length:()=>B,lineWidth:()=>A,shadow:()=>G,color:()=>N,image:()=>L,gradient:()=>D,position:()=>j,familyName:()=>T,genericName:()=>P,absoluteSize:()=>c,relativeSize:()=>u});var Y=$K(),X=PH(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,w=/_(?![^(]*\))/g;function H(C,v=!0){return C.includes("url(")?C.split(/(url\(.*?\))/g).filter(Boolean).map((I)=>/^url\(.*?\)$/.test(I)?I:H(I,!1)).join(""):(C=C.replace(/([^\\])_+/g,(I,f)=>f+" ".repeat(I.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),v&&(C=C.trim()),C=C.replace(/(calc|min|max|clamp)\(.+\)/g,(I)=>I.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),C)}function W(C){return C.startsWith("url(")}function z(C){return!isNaN(Number(C))||Z.some((v)=>new RegExp(`^${v}\\(.+?`).test(C))}function U(C){return C.split(w).every((v)=>/%$/g.test(v)||Z.some((I)=>new RegExp(`^${I}\\(.+?%`).test(v)))}var $=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],V=`(?:${$.join("|")})`;function B(C){return C.split(w).every((v)=>v==="0"||new RegExp(`${V}$`).test(v)||Z.some((I)=>new RegExp(`^${I}\\(.+?${V}`).test(v)))}var M=new Set(["thin","medium","thick"]);function A(C){return M.has(C)}function G(C){let v=X.parseBoxShadowValue(H(C));for(let I of v)if(!I.valid)return!1;return!0}function N(C){let v=0;return C.split(w).every((I)=>(I=H(I),I.startsWith("var(")?!0:Y.parseColor(I,{loose:!0})!==null?(v++,!0):!1))?v>0:!1}function L(C){let v=0;return C.split(Q).every((I)=>(I=H(I),I.startsWith("var(")?!0:W(I)||D(I)||["element(","image(","cross-fade(","image-set("].some((f)=>I.startsWith(f))?(v++,!0):!1))?v>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function D(C){C=H(C);for(let v of E)if(C.startsWith(`${v}(`))return!0;return!1}var _=new Set(["center","top","right","bottom","left"]);function j(C){let v=0;return C.split(w).every((I)=>(I=H(I),I.startsWith("var(")?!0:_.has(I)||B(I)||U(I)?(v++,!0):!1))?v>0:!1}function T(C){let v=0;return C.split(Q).every((I)=>(I=H(I),I.startsWith("var(")?!0:I.includes(" ")&&!/(['"])([^"']+)\1/g.test(I)||/^\d/g.test(I)?!1:(v++,!0)))?v>0:!1}var R=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function P(C){return R.has(C)}var h=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function c(C){return h.has(C)}var r=new Set(["larger","smaller"]);function u(C){return r.has(C)}}),vH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(j,T){for(var R in T)Object.defineProperty(j,R,{enumerable:!0,get:T[R]})}K(J,{updateAllClasses:()=>W,asValue:()=>$,parseColorFormat:()=>M,asColor:()=>A,asLookupValue:()=>G,coerceValue:()=>_});var Y=H(RH()),X=H(DH()),Z=VK(),Q=SH(),w=H(oJ());function H(j){return j&&j.__esModule?j:{default:j}}function W(j,T){return Y.default((R)=>{R.walkClasses((P)=>{let h=T(P.value);P.value=h,P.raws&&P.raws.value&&(P.raws.value=X.default(P.raws.value))})}).processSync(j)}function z(j,T){if(!V(j))return;let R=j.slice(1,-1);if(T(R))return Q.normalize(R)}function U(j,T={},R){let P=T[j];if(P!==void 0)return w.default(P);if(V(j)){let h=z(j,R);return h===void 0?void 0:w.default(h)}}function $(j,T={},{validate:R=()=>!0}={}){var P;let h=(P=T.values)===null||P===void 0?void 0:P[j];return h!==void 0?h:T.supportsNegativeValues&&j.startsWith("-")?U(j.slice(1),T.values,R):z(j,R)}function V(j){return j.startsWith("[")&&j.endsWith("]")}function B(j){let T=j.lastIndexOf("/");return T===-1||T===j.length-1?[j]:[j.slice(0,T),j.slice(T+1)]}function M(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let T=j;return({opacityValue:R=1})=>T.replace("<alpha-value>",R)}return j}function A(j,T={},{tailwindConfig:R={}}={}){var P;if(((P=T.values)===null||P===void 0?void 0:P[j])!==void 0){var h;return M((h=T.values)===null||h===void 0?void 0:h[j])}let[c,r]=B(j);if(r!==void 0){var u,C,v,I;let f=(I=(u=T.values)===null||u===void 0?void 0:u[c])!==null&&I!==void 0?I:V(c)?c.slice(1,-1):void 0;return f===void 0?void 0:(f=M(f),V(r)?Z.withAlphaValue(f,r.slice(1,-1)):((C=R.theme)===null||C===void 0||(v=C.opacity)===null||v===void 0?void 0:v[r])===void 0?void 0:Z.withAlphaValue(f,R.theme.opacity[r]))}return $(j,T,{validate:Q.color})}function G(j,T={}){var R;return(R=T.values)===null||R===void 0?void 0:R[j]}function N(j){return(T,R)=>$(T,R,{validate:j})}var L={any:$,color:A,url:N(Q.url),image:N(Q.image),length:N(Q.length),percentage:N(Q.percentage),position:N(Q.position),lookup:G,"generic-name":N(Q.genericName),"family-name":N(Q.familyName),number:N(Q.number),"line-width":N(Q.lineWidth),"absolute-size":N(Q.absoluteSize),"relative-size":N(Q.relativeSize),shadow:N(Q.shadow)},E=Object.keys(L);function D(j,T){let R=j.indexOf(T);return R===-1?[void 0,j]:[j.slice(0,R),j.slice(R+1)]}function _(j,T,R,P){if(V(T)){let h=T.slice(1,-1),[c,r]=D(h,":");if(!/^[\w-_]+$/g.test(c))r=h;else if(c!==void 0&&!E.includes(c))return[];if(r.length>0&&E.includes(c))return[$(`[${r}]`,R),c]}for(let h of[].concat(j)){let c=L[h](T,R,{tailwindConfig:P});if(c!==void 0)return[c,h]}return[]}}),yH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),kH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>u});var K=M(oJ()),Y=M(wH()),X=M(WH()),Z=M(nJ()),Q=M(HH()),w=zH(),H=UH(),W=$H(),z=M(VH()),U=BH(),$=vH(),V=VK(),B=M(yH());function M(C){return C&&C.__esModule?C:{default:C}}function A(C){return typeof C=="function"}function G(C){return typeof C=="object"&&C!==null}function N(C,...v){let I=v.pop();for(let f of v)for(let l in f){let t=I(C[l],f[l]);t===void 0?G(C[l])&&G(f[l])?C[l]=N(C[l],f[l],I):C[l]=f[l]:C[l]=t}return C}var L={colors:Q.default,negative(C){return Object.keys(C).filter((v)=>C[v]!=="0").reduce((v,I)=>{let f=K.default(C[I]);return f!==void 0&&(v[`-${I}`]=f),v},{})},breakpoints(C){return Object.keys(C).filter((v)=>typeof C[v]=="string").reduce((v,I)=>({...v,[`screen-${I}`]:C[I]}),{})}};function E(C,...v){return A(C)?C(...v):C}function D(C){return C.reduce((v,{extend:I})=>N(v,I,(f,l)=>f===void 0?[l]:Array.isArray(f)?[l,...f]:[l,f]),{})}function _(C){return{...C.reduce((v,I)=>w.defaults(v,I),{}),extend:D(C)}}function j(C,v){if(Array.isArray(C)&&G(C[0]))return C.concat(v);if(Array.isArray(v)&&G(v[0])&&G(C))return[C,...v];if(Array.isArray(v))return v}function T({extend:C,...v}){return N(v,C,(I,f)=>!A(I)&&!f.some(A)?N({},I,...f,j):(l,t)=>N({},...[I,...f].map((o)=>E(o,l,t)),j))}function*R(C){let v=H.toPath(C);if(v.length===0||(yield v,Array.isArray(C)))return;let I=/^(.*?)\s*\/\s*([^/]+)$/,f=C.match(I);if(f!==null){let[,l,t]=f,o=H.toPath(l);o.alpha=t,yield o}}function P(C){let v=(I,f)=>{for(let l of R(I)){let t=0,o=C;for(;o!=null&&t<l.length;)o=o[l[t++]],o=A(o)&&(l.alpha===void 0||t<=l.length-1)?o(v,L):o;if(o!==void 0){if(l.alpha!==void 0){let m=$.parseColorFormat(o);return V.withAlphaValue(m,l.alpha,B.default(m))}return z.default(o)?U.cloneDeep(o):o}}return f};return Object.assign(v,{theme:v,...L}),Object.keys(C).reduce((I,f)=>(I[f]=A(C[f])?C[f](v,L):C[f],I),{})}function h(C){let v=[];return C.forEach((I)=>{v=[...v,I];var f;let l=(f=I==null?void 0:I.plugins)!==null&&f!==void 0?f:[];l.length!==0&&l.forEach((t)=>{t.__isOptionsFunction&&(t=t());var o;v=[...v,...h([(o=t==null?void 0:t.config)!==null&&o!==void 0?o:{}])]})}),v}function c(C){return[...C].reduceRight((v,I)=>A(I)?I({corePlugins:v}):X.default(I,v),Y.default)}function r(C){return[...C].reduceRight((v,I)=>[...v,...I],[])}function u(C){let v=[...h(C),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var I,f;return W.normalizeConfig(w.defaults({theme:P(T(_(v.map((l)=>(I=l==null?void 0:l.theme)!==null&&I!==void 0?I:{})))),corePlugins:c(v.map((l)=>l.corePlugins)),plugins:r(C.map((l)=>(f=l==null?void 0:l.plugins)!==null&&f!==void 0?f:[]))},...v))}}),BK={};E4(BK,{default:()=>qK});var qK,gH=F4(()=>{qK={yellow:(J)=>J}}),hH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K($,V){for(var B in V)Object.defineProperty($,B,{enumerable:!0,get:V[B]})}K(J,{flagEnabled:()=>H,issueFlagNotices:()=>z,default:()=>U});var Y=Z((gH(),g5(BK))),X=Z((_4(),g5(b5)));function Z($){return $&&$.__esModule?$:{default:$}}var Q={optimizeUniversalDefaults:!1},w={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function H($,V){if(w.future.includes(V)){var B,M,A;return $.future==="all"||((A=(M=$==null||(B=$.future)===null||B===void 0?void 0:B[V])!==null&&M!==void 0?M:Q[V])!==null&&A!==void 0?A:!1)}if(w.experimental.includes(V)){var G,N,L;return $.experimental==="all"||((L=(N=$==null||(G=$.experimental)===null||G===void 0?void 0:G[V])!==null&&N!==void 0?N:Q[V])!==null&&L!==void 0?L:!1)}return!1}function W($){if($.experimental==="all")return w.experimental;var V;return Object.keys((V=$==null?void 0:$.experimental)!==null&&V!==void 0?V:{}).filter((B)=>w.experimental.includes(B)&&$.experimental[B])}function z($){if(process.env.JEST_WORKER_ID===void 0&&W($).length>0){let V=W($).map((B)=>Y.default.yellow(B)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${V}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var U=w}),xH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(nJ()),Y=hH();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var w;let H=((w=Q==null?void 0:Q.presets)!==null&&w!==void 0?w:[K.default]).slice().reverse().flatMap((U)=>Z(typeof U=="function"?U():U)),W={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys(W).filter((U)=>Y.flagEnabled(Q,U)).map((U)=>W[U]);return[Q,...z,...H]}}),bH=a((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(kH()),Y=X(xH());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...w]=Y.default(Q[0]);return K.default([...Q,...w])}}),mH=a((J,K)=>{var Y=bH();K.exports=(Y.__esModule?Y:{default:Y}).default}),N5;var g8=null;async function f5(){return N5||(g8?(await g8,N5):(g8=Promise.resolve().then(()=>(QH(),rJ)).then((J)=>J.getYogaModule()).then((J)=>N5=J),await g8,g8=null,N5))}var l8=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),fH=l8((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),dH=l8((J,K)=>{K.exports=["deg","grad","rad","turn"]}),lH=l8((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),cH=l8((J,K)=>{K.exports=["Hz","kHz"]}),uH=l8((J,K)=>{K.exports=["s","ms"]}),pH=fH(),AK=dH(),GK=lH(),MK=cH(),OK=uH();function T4(J){if(/\.\D?$/.test(J))throw new Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw new Error("Only one leading +/- is allowed");if(iH(J)>1)throw new Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=Z4(J),this.unit="%";return}var K=oH(J);if(!K){this.type="number",this.value=Z4(J);return}this.type=sH(K),this.value=Z4(J.substr(0,J.length-K.length)),this.unit=K}T4.prototype.valueOf=function(){return this.value};T4.prototype.toString=function(){return this.value+(this.unit||"")};function c8(J){return new T4(J)}function iH(J){var K=J.match(/\./g);return K?K.length:0}function Z4(J){var K=parseFloat(J);if(isNaN(K))throw new Error("Invalid number: "+J);return K}var rH=[].concat(AK,MK,pH,GK,OK);function oH(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&rH.indexOf(Y)===-1)throw new Error("Invalid unit: "+Y);return Y}var nH=Object.assign(L5(AK,"angle"),L5(MK,"frequency"),L5(GK,"resolution"),L5(OK,"time"));function L5(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function sH(J){return nH[J]||"length"}function P5(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function aH(J){return/^class\s/.test(J.toString())}function tH(J){return"dangerouslySetInnerHTML"in J}function eH(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new c8(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return NK(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function NK(J){let K=new c8(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 S5(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 V1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw new Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var Q4,w4,Jz=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function q1(J,K,Y){if(!Q4||!w4){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw new Error("Intl.Segmenter does not exist, please use import a polyfill.");Q4=new Intl.Segmenter(Y,{granularity:"word"}),w4=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...w4.segment(J)].map((X)=>X.segment);{let X=[...Q4.segment(J)].map((w)=>w.segment),Z=[],Q=0;for(;Q<X.length;){let w=X[Q];if(w=="\xA0"){let H=Q===0?"":Z.pop(),W=Q===X.length-1?"":X[Q+1];Z.push(H+"\xA0"+W),Q+=2}else Z.push(w),Q++}return Z}}function s(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function Kz(J=20){let K=new Map;function Y(Q,w){if(K.size>=J){let H=K.keys().next().value;K.delete(H)}K.set(Q,w)}function X(Q){if(!K.has(Q))return;let w=K.get(Q);return K.delete(Q),K.set(Q,w),w}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function C4(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function Yz(J){return Object.prototype.toString.call(J)}function LK(J){return typeof J=="string"}function Xz(J){return typeof J=="number"}function Zz(J){return Yz(J)==="[object Undefined]"}function Qz(J,K){if(K==="break-all")return{words:q1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:q1(J,"word"),requiredBreaks:[]};let Y=new G6(J),X=0,Z=Y.nextBreak(),Q=[],w=[!1];for(;Z;){let H=J.slice(X,Z.position);Q.push(H),Z.required?w.push(!0):w.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:w}}var wz=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function jK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var Wz="image/avif",Hz="image/webp",d5="image/apng",l5="image/png",c5="image/jpeg",u5="image/gif",P4="image/svg+xml";function FK(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw new TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw new TypeError("Invalid JPEG")}function EK(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function _K(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var u1=Kz(100),v5=new Map,zz=[l5,d5,c5,u5,P4];function Uz(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function $z(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function jJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?C4(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),w=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!w))throw new Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let H=Z?[Z[2],Z[3]]:[+Q[1],+w[1]],W=H[0]/H[1];return Q&&w?[+Q[1],+w[1]]:Q?[+Q[1],+Q[1]/W]:w?[+w[1]*W,+w[1]]:[H[0],H[1]]}function FJ(J){let K,Y=Vz(new Uint8Array(J));switch(Y){case l5:case d5:K=_K(J);break;case u5:K=EK(J);break;case c5:K=FK(J);break}if(!zz.includes(Y))throw new Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${Uz(J)}`,K]}async function S4(J){if(!J)throw new Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=FJ(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw new Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:w,dataString:H}=Z;if(Q===P4){let W=w==="base64"?atob(H):decodeURIComponent(H.replace(/ /g,"%20")),z=w==="base64"?J:`data:image/svg+xml;base64,${btoa(W)}`,U=jJ(J,W);return u1.set(J,[z,...U]),[z,...U]}else if(w==="base64"){let W,z=$z(H);switch(Q){case l5:case d5:W=_K(z);break;case u5:W=EK(z);break;case c5:W=FK(z);break}return u1.set(J,[J,...W]),[J,...W]}else return console.warn("Image data URI resolved without size:"+J),u1.set(J,[J]),[J]}if(!globalThis.fetch)throw new Error("`fetch` is required to be polyfilled to load images.");if(v5.has(J))return v5.get(J);let K=u1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let H=`data:image/svg+xml;base64,${btoa(Z)}`,W=jJ(Y,Z);return[H,...W]}catch(H){throw new Error(`Failed to parse SVG image: ${H.message}`)}let[Q,w]=FJ(Z);return[Q,...w]}).then((Z)=>(u1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),u1.set(Y,[]),[]));return v5.set(Y,X),X}function Vz(J){return[255,216,255].every((K,Y)=>J[Y]===K)?c5:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?Bz(J)?d5:l5:[71,73,70,56].every((K,Y)=>J[Y]===K)?u5:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?Hz:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?P4:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?Wz:null}function Bz(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let w=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...w),Q=Y==="acTL",Z+=12+X}return Q}var A4={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"},qz=/[\r\n%#()<>?[\\\]^`{|}"']/g;function G4(J,K){if(!J)return"";if(Array.isArray(J))return J.map((z)=>G4(z,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw new Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},w=(Z==null?void 0:Z.color)||K,H=`${Object.entries(Q).map(([z,U])=>(typeof U=="string"&&U.toLowerCase()==="currentcolor"&&(U=w),z==="href"&&Y==="image"?` ${A4[z]||z}="${u1.get(U)[0]}"`:` ${A4[z]||z}="${U}"`)).join("")}`,W=Z?` style="${Object.entries(Z).map(([z,U])=>`${wz(z)}:${U}`).join(";")}"`:"";return`<${Y}${H}${W}>${G4(X,w)}</${Y}>`}async function Az(J){let K=new Set,Y=(X)=>{if(X&&P5(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>S4(X)))}async function Gz(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:w,style:H,children:W,...z}=J.props||{};Y||=X,z.xmlns="http://www.w3.org/2000/svg";let U=(H==null?void 0:H.color)||K,$=C4(Y),V=$?$[3]/$[2]:null;return Z=Z||V&&Q?Q/V:null,Q=Q||V&&Z?Z*V:null,z.width=Z,z.height=Q,Y&&(z.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([B,M])=>(typeof M=="string"&&M.toLowerCase()==="currentcolor"&&(M=U),` ${A4[B]||B}="${M}"`)).join("")}>${G4(W,U)}</svg>`.replace(qz,encodeURIComponent)}`}var K1="flex",Mz={p:{display:K1,marginTop:"1em",marginBottom:"1em"},div:{display:K1},blockquote:{display:K1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:K1,textAlign:"center"},hr:{display:K1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:K1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:K1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:K1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:K1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:K1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:K1,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:K1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},Oz=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 Nz(J){let K={};for(let Y in J)Oz.has(Y)&&(K[Y]=J[Y]);return K}function Lz(J,K){try{let Y=new c8(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function W4(J,K,Y){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 X=Lz(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function jz(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=IK.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?W4(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{...W4(Y[0],K,!0),...W4(Y[1],K,!1)}):{}}function h8(J,K){let Y=TK.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function Fz(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:h8(J,"position")||"0% 0%",size:h8(J,"size")||"100% 100%",repeat:h8(J,"repeat")||"repeat",origin:h8(J,"origin")||"border-box",clip:h8(J,"origin")||"border-box"};return jK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var Ez=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),_z=new Set(["lineHeight"]);function Rz(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function J8(J,K){let Y=Number(K);return isNaN(Y)?K:Ez.has(J)?_z.has(J)?Y:String(K):Y+"px"}function Dz(J,K,Y){if(J==="lineHeight")return{lineHeight:J8(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=B1.getStylesForProperty(J,X,!0),w=B1.getStylesForProperty(J,Z,!0);for(let H in Q)w[H]=J8(J,Q[H])+" "+J8(J,w[H]);return w}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=B1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:J8(J+"Width",X.borderWidth),Style:V1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let w of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let H in Z)Q["border"+w+H]=Z[H];return Q}if(J==="boxShadow"){if(!K)throw new Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?DK.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw new Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(w,H)=>{let W=~~(Math.random()*1e9);return X[W]=H,W+"px"}),Q=B1.getStylesForProperty("transform",Z,!0);for(let w of Q.transform)for(let H in w)X[w[H]]&&(w[H]=X[w[H]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?B1.getStylesForProperty("backgroundImage",K,!0):B1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=jK(K);for(let Q of Z){let w=B1.getStylesForProperty("textShadow",Q,!0);for(let H in w)X[H]?X[H].push(w[H]):X[H]=[w[H]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw new Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:J8(J,X[0]),WebkitTextStrokeColor:J8(J,X[1])}}}function EJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var _J=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function CK(J){if(typeof J=="string"&&_J.test(J.trim()))return J.trim().replace(_J,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=CK(J[K]);return J}return J}function RJ(J,K){let Y={};if(J){let Z=Tz(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let w=B1.getPropertyName(Q),H=Pz(J[Q],Z);try{let W=Dz(w,H,Z)||Rz(w,B1.getStylesForProperty(w,J8(w,H),!0),H,Z);Object.assign(Y,W)}catch(W){throw new Error(W.message+(W.message.includes(H)?`
64
64
  `+EJ(w):`
65
65
  in CSS rule \`${w}: ${H}\`.${EJ(w)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=RK.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=Fz(Y));let X=Iz(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=jz(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let w=U0(Q,X,X,K);typeof w<"u"&&(Y[Z]=w),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let w=CK(Q);w&&(Y[Z]=w),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let w=Q;for(let H of w){let W=Object.keys(H)[0],z=H[W],U=typeof z=="string"?U0(z,X,X,K)??z:z;H[W]=U}}if(Z==="textShadowRadius"){let w=Q;Y.textShadowRadius=w.map((H)=>U0(H,X,0,K,!1))}if(Z==="textShadowOffset"){let w=Q;Y.textShadowOffset=w.map(({height:H,width:W})=>({height:U0(H,X,0,K,!1),width:U0(W,X,0,K,!1)}))}}return Y}function Iz(J,K){if(typeof J=="number")return J;try{let Y=new c8(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function DJ(J){if(J.startsWith("hsl")){let K=z5(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function Tz(J,K){return J&&J.toLowerCase()!=="currentcolor"?DJ(J):DJ(K)}function Cz(J,K){return J.replace(/currentcolor/gi,K)}function Pz(J,K){return LK(J)&&(J=Cz(J,K)),J}async function Sz(J,K,Y,X,Z){let Q=await f5(),w={...Y,...RJ(Mz[K],Y),...RJ(X,Y)};if(K==="img"){let[H,W,z]=await S4(Z.src);if(W===void 0&&z===void 0){if(Z.width===void 0||Z.height===void 0)throw new Error("Image size cannot be determined. Please provide the width and height of the image.");W=parseInt(Z.width),z=parseInt(Z.height)}let U=z/W,$=(w.borderLeftWidth||0)+(w.borderRightWidth||0)+(w.paddingLeft||0)+(w.paddingRight||0),V=(w.borderTopWidth||0)+(w.borderBottomWidth||0)+(w.paddingTop||0)+(w.paddingBottom||0),B=w.width||Z.width,M=w.height||Z.height,A=typeof B=="number"&&typeof M=="number";A&&(B-=$,M-=V),B===void 0&&M===void 0?(B="100%",J.setAspectRatio(1/U)):B===void 0?typeof M=="number"?B=M/U:J.setAspectRatio(1/U):M===void 0&&(typeof B=="number"?M=B*U:J.setAspectRatio(1/U)),w.width=A?B+$:B,w.height=A?M+V:M,w.__src=H}if(K==="svg"){let H=Z.viewBox||Z.viewbox,W=C4(H),z=W?W[3]/W[2]:null,{width:U,height:$}=Z;typeof U>"u"&&$?z==null?U=0:typeof $=="string"&&$.endsWith("%")?U=parseInt($)/z+"%":($=U0($,Y.fontSize,1,Y),U=$/z):typeof $>"u"&&U?z==null?U=0:typeof U=="string"&&U.endsWith("%")?$=parseInt(U)*z+"%":(U=U0(U,Y.fontSize,1,Y),$=U*z):(typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),typeof $<"u"&&($=U0($,Y.fontSize,1,Y)||$),U||=W==null?void 0:W[2],$||=W==null?void 0:W[3]),!w.width&&U&&(w.width=U),!w.height&&$&&(w.height=$)}return J.setDisplay(V1(w.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(V1(w.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems(V1(w.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(V1(w.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(V1(w.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(V1(w.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(V1(w.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof w.gap<"u"&&J.setGap(Q.GUTTER_ALL,w.gap),typeof w.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,w.rowGap),typeof w.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,w.columnGap),typeof w.flexBasis<"u"&&J.setFlexBasis(w.flexBasis),J.setFlexGrow(typeof w.flexGrow>"u"?0:w.flexGrow),J.setFlexShrink(typeof w.flexShrink>"u"?0:w.flexShrink),typeof w.maxHeight<"u"&&J.setMaxHeight(w.maxHeight),typeof w.maxWidth<"u"&&J.setMaxWidth(w.maxWidth),typeof w.minHeight<"u"&&J.setMinHeight(w.minHeight),typeof w.minWidth<"u"&&J.setMinWidth(w.minWidth),J.setOverflow(V1(w.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,w.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,w.marginBottom||0),J.setMargin(Q.EDGE_LEFT,w.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,w.marginRight||0),J.setBorder(Q.EDGE_TOP,w.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,w.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,w.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,w.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,w.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,w.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,w.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,w.paddingRight||0),J.setPositionType(V1(w.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof w.top<"u"&&J.setPosition(Q.EDGE_TOP,w.top),typeof w.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,w.bottom),typeof w.left<"u"&&J.setPosition(Q.EDGE_LEFT,w.left),typeof w.right<"u"&&J.setPosition(Q.EDGE_RIGHT,w.right),typeof w.height<"u"?J.setHeight(w.height):J.setHeightAuto(),typeof w.width<"u"?J.setWidth(w.width):J.setWidthAuto(),[w,Nz(w)]}var IJ=[1,0,0,1,0,0];function vz(J,K,Y){let X=[...IJ];for(let Z of J){let Q=Object.keys(Z)[0],w=Z[Q];if(typeof w=="string")if(Q==="translateX")w=parseFloat(w)/100*K,Z[Q]=w;else if(Q==="translateY")w=parseFloat(w)/100*Y,Z[Q]=w;else throw new Error(`Invalid transform: "${Q}: ${w}".`);let H=w,W=[...IJ];switch(Q){case"translateX":W[4]=H;break;case"translateY":W[5]=H;break;case"scale":W[0]=H,W[3]=H;break;case"scaleX":W[0]=H;break;case"scaleY":W[3]=H;break;case"rotate":{let z=H*Math.PI/180,U=Math.cos(z),$=Math.sin(z);W[0]=U,W[1]=$,W[2]=-$,W[3]=U;break}case"skewX":W[2]=Math.tan(H*Math.PI/180);break;case"skewY":W[1]=Math.tan(H*Math.PI/180);break}X=S5(W,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function PK({left:J,top:K,width:Y,height:X},Z,Q,w){let H;Z.__resolved||vz(Z,Y,X);let W=Z;if(Q)H=W;else{let z=(w==null?void 0:w.xAbsolute)??((w==null?void 0:w.xRelative)??50)*Y/100,U=(w==null?void 0:w.yAbsolute)??((w==null?void 0:w.yRelative)??50)*X/100,$=J+z,V=K+U;H=S5([1,0,0,1,$,V],S5(W,[1,0,0,1,-$,-V])),W.__parent&&(H=S5(W.__parent,H)),W.splice(0,6,...H)}return`matrix(${H.map((z)=>z.toFixed(2)).join(",")})`}function yz({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let w="",H=1;return Q.transform&&(w=PK({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&(H=+Q.opacity),{matrix:w,opacity:H}}function kz({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:w,matrix:H,opacity:W,image:z,clipPathId:U,debug:$,shape:V,decorationShape:B},M){let A="";if($&&(A=s("rect",{x:X,y:Z-w,width:Q,height:w,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:H||void 0,"clip-path":U?`url(#${U})`:void 0})),z){let N={href:z,x:X,y:Z,width:Q,height:w,transform:H||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+s("image",{...N,opacity:W!==1?W:void 0})+(B||"")+(Y?"</g>":"")+A,""]}let G={x:X,y:Z,width:Q,height:w,"font-weight":M.fontWeight,"font-style":M.fontStyle,"font-size":M.fontSize,"font-family":M.fontFamily,"letter-spacing":M.letterSpacing||void 0,transform:H||void 0,"clip-path":U?`url(#${U})`:void 0,style:M.filter?`filter:${M.filter}`:void 0,"stroke-width":M.WebkitTextStrokeWidth?`${M.WebkitTextStrokeWidth}px`:void 0,stroke:M.WebkitTextStrokeWidth?M.WebkitTextStrokeColor:void 0,"stroke-linejoin":M.WebkitTextStrokeWidth?"round":void 0,"paint-order":M.WebkitTextStrokeWidth?"stroke":void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+s("text",{...G,fill:M.color,opacity:W!==1?W:void 0},M4.default(K))+(B||"")+(Y?"</g>":"")+A,V?s("text",G,M4.default(K)):""]}function gz(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,w){return Z+(parseFloat(Q)+K)+","+(parseFloat(w)+Y)})}var j5=1.1;function hz({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",w="",H=0,W=K,z=0,U=Y;for(let $=0;$<Z;$++){let V=X.shadowRadius[$]*X.shadowRadius[$]/4;H=Math.min(X.shadowOffset[$].width-V,H),W=Math.max(X.shadowOffset[$].width+V+K,W),z=Math.min(X.shadowOffset[$].height-V,z),U=Math.max(X.shadowOffset[$].height+V+Y,U),Q+=s("feDropShadow",{dx:X.shadowOffset[$].width,dy:X.shadowOffset[$].height,stdDeviation:X.shadowRadius[$]/2,"flood-color":X.shadowColor[$],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${$}`}:{}}),Z>1&&(w=s("feMergeNode",{in:`satori_s-${J}-result-${$}`})+w)}return s("filter",{id:`satori_s-${J}`,x:(H/K*100*j5).toFixed(2)+"%",y:(z/Y*100*j5).toFixed(2)+"%",width:((W-H)/K*100*j5).toFixed(2)+"%",height:((U-z)/Y*100*j5).toFixed(2)+"%"},Q+(w?s("feMerge",{},w):""))}function xz({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let w="",H="";for(let W=Q.boxShadow.length-1;W>=0;W--){let z="",U=Q.boxShadow[W];U.spreadRadius&&U.inset&&(U.spreadRadius=-U.spreadRadius);let $=U.blurRadius*U.blurRadius/4+(U.spreadRadius||0),V=Math.min(-$-(U.inset?U.offsetX:0),0),B=Math.max($+J-(U.inset?U.offsetX:0),J),M=Math.min(-$-(U.inset?U.offsetY:0),0),A=Math.max($+K-(U.inset?U.offsetY:0),K),G=`satori_s-${Z}-${W}`,N=`satori_ms-${Z}-${W}`,L=U.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${U.spreadRadius*2}"`):Y;z+=s("mask",{id:N,maskUnits:"userSpaceOnUse"},s("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:U.inset?"#000":"#fff"})+L.replace('fill="#fff"',U.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=L.replace(/d="([^"]+)"/,(D,_)=>'d="'+gz(_,U.offsetX,U.offsetY)+'"').replace(/x="([^"]+)"/,(D,_)=>'x="'+(parseFloat(_)+U.offsetX)+'"').replace(/y="([^"]+)"/,(D,_)=>'y="'+(parseFloat(_)+U.offsetY)+'"');U.spreadRadius&&U.spreadRadius<0&&(z+=s("mask",{id:N+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-U.spreadRadius*2}"`))),U.spreadRadius&&U.spreadRadius<0&&(E=s("g",{mask:`url(#${N}-neg)`},E)),z+=s("defs",{},s("filter",{id:G,x:`${V/J*100}%`,y:`${M/K*100}%`,width:`${(B-V)/J*100}%`,height:`${(A-M)/K*100}%`},s("feGaussianBlur",{stdDeviation:U.blurRadius/2,result:"b"})+s("feFlood",{"flood-color":U.color,in:"SourceGraphic",result:"f"})+s("feComposite",{in:"f",in2:"b",operator:U.inset?"out":"in"})))+s("g",{mask:`url(#${N})`,filter:`url(#${G})`,opacity:X},E),U.inset?H+=z:w+=z}return[w,H]}function bz({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},w){let{textDecorationColor:H,textDecorationStyle:W,textDecorationLine:z,fontSize:U,color:$}=w;if(!z||z==="none")return"";let V=Math.max(1,U*0.1),B=z==="line-through"?Y+X*0.7:z==="underline"?Y+X*1.1:Y,M=W==="dashed"?`${V*1.2} ${V*2}`:W==="dotted"?`0 ${V*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+s("line",{x1:K,y1:B,x2:K+J,y2:B,stroke:H||$,"stroke-width":V,"stroke-dasharray":M,"stroke-linecap":W==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function v4(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var d8=v4("U+0020"),SK=v4("U+0009"),y5=v4("U+2026");function mz(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function w(z){if(Q.has(z))return Q.get(z);let U=J.measure(z,{fontSize:X,letterSpacing:Z});return Q.set(z,U),U}function H(z){let U=0;for(let $ of z)K($)?U+=X:U+=w($);return U}function W(z){return H(q1(z,"grapheme"))}return{measureGrapheme:w,measureGraphemeArray:H,measureText:W}}function fz(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=dz(J,X,Y);let{content:w,shouldCollapseTabsAndSpaces:H,allowSoftWrap:W}=uz(J,Z),{words:z,requiredBreaks:U,allowBreakWord:$}=cz(w,Q),[V,B]=lz(K,W);return{words:z,requiredBreaks:U,allowSoftWrap:W,allowBreakWord:$,processedContent:w,shouldCollapseTabsAndSpaces:H,lineLimit:V,blockEllipsis:B}}function dz(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=q1(J,"word",Y).map((X)=>q1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function lz(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:w,display:H}=J;if(H==="block"&&X){let[W,z=y5]=pz(X);if(W)return[W,z]}return Y==="ellipsis"&&H==="-webkit-box"&&Q==="vertical"&&Xz(Z)&&Z>0?[Z,y5]:Y==="ellipsis"&&w==="hidden"&&!K?[1,y5]:[1/0]}function cz(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=Qz(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function uz(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,d8)),X&&(J=J.replace(/([ ]|\t)+/g,d8).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function pz(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],w=X[2];return[Q,w]}else if(Z){let Q=+Z[1],w=Z[2];return[Q,w]}return[]}var iz=new Set([SK]);function rz(J){return iz.has(J)}async function*oz(J,K){let Y=await f5(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:w,id:H,isInheritingTransform:W,debug:z,embedFont:U,graphemeImages:$,locale:V,canLoadAdditionalAssets:B}=K,{textAlign:M,lineHeight:A,textWrap:G,fontSize:N,filter:L,tabSize:E=8,letterSpacing:D,_inheritedBackgroundClipTextPath:_,flexShrink:j}=X,{words:T,requiredBreaks:R,allowSoftWrap:P,allowBreakWord:h,processedContent:c,shouldCollapseTabsAndSpaces:r,lineLimit:u,blockEllipsis:C}=fz(J,X,V),v=nz(Y,M);Q.insertChild(v,Q.getChildCount()),Zz(j)&&Q.setFlexShrink(1);let I=w.getEngine(N,A,X,V),f=B?q1(c,"grapheme").filter((Q0)=>!rz(Q0)&&!I.has(Q0)):[];yield f.map((Q0)=>({word:Q0,locale:V})),f.length&&(I=w.getEngine(N,A,X,V));function l(Q0){return!!($&&$[Q0])}let{measureGrapheme:t,measureGraphemeArray:o,measureText:m}=mz(I,l,{fontSize:N,letterSpacing:D}),d=LK(E)?U0(E,N,1,X):t(d8)*E,y=(Q0,M0)=>{if(Q0.length===0)return{originWidth:0,endingSpacesWidth:0,text:Q0};let{index:L0,tabCount:$0}=sz(Q0),R0=0;if($0>0){let T0=Q0.slice(0,L0),F0=Q0.slice(L0+$0),A0=m(T0),A1=A0+M0;R0=(d===0?A0:(Math.floor(A1/d)+$0)*d)+m(F0)}else R0=m(Q0);let B0=Q0.trimEnd()===Q0?R0:m(Q0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-B0,text:Q0}},k=[],n=[],g=[],e=[],Y0=[];function X0(Q0){let M0=0,L0=0,$0=-1,R0=0,B0=0,T0=0,F0=0;k=[],g=[0],e=[],Y0=[];let A0=0,A1=0;for(;A0<T.length&&M0<u;){let H0=T[A0],r1=R[A0],s0=0,{originWidth:v1,endingSpacesWidth:o8,text:y1}=y(H0,B0);H0=y1,s0=v1;let O0=o8;r1&&T0===0&&(T0=I.height(H0));let g0=",.!?:-@)>]}%#".indexOf(H0[0])<0,Q1=!B0,n8=A0&&g0&&B0+s0>Q0+O0&&P;if(h&&s0>Q0&&(!B0||n8||r1)){let d0=q1(H0,"grapheme");T.splice(A0,1,...d0),B0>0&&(k.push(B0-A1),n.push(F0),M0++,R0+=T0,B0=0,T0=0,F0=0,g.push(1),$0=-1),A1=O0;continue}if(r1||n8)r&&H0===d8&&(s0=0),k.push(B0-A1),n.push(F0),M0++,R0+=T0,B0=s0,T0=s0?I.height(H0):0,F0=s0?I.baseline(H0):0,g.push(1),$0=-1,r1||(L0=Math.max(L0,Q0));else{B0+=s0;let d0=I.height(H0);d0>T0&&(T0=d0,F0=I.baseline(H0)),Q1&&g[g.length-1]++}Q1&&$0++,L0=Math.max(L0,B0);let G8=B0-s0;if(s0===0)Y0.push({y:R0,x:G8,width:0,line:M0,lineIndex:$0,isImage:!1});else{let d0=q1(H0,"word");for(let w1=0;w1<d0.length;w1++){let o1=d0[w1],_1=0,M8=!1;l(o1)?(_1=N,M8=!0):_1=t(o1),e.push(o1),Y0.push({y:R0,x:G8,width:_1,line:M0,lineIndex:$0,isImage:M8}),G8+=_1}}A0++,A1=O0}return B0&&(M0<u&&(R0+=T0),M0++,k.push(B0),n.push(F0)),{width:L0,height:R0}}let J0={width:0,height:0};v.setMeasureFunc((Q0)=>{let{width:M0,height:L0}=X0(Q0);if(G==="balance"){let R0=M0/2,B0=M0,T0=M0;for(;R0+1<B0;){T0=(R0+B0)/2;let{height:A0}=X0(T0);A0>L0?R0=T0:B0=T0}X0(B0);let F0=Math.ceil(B0);return J0={width:F0,height:L0},{width:F0,height:L0}}let $0=Math.ceil(M0);return J0={width:$0,height:L0},{width:$0,height:L0}});let[V0,_0]=yield,K0="",q0="",S0=Z._inheritedClipPathId,c0=Z._inheritedMaskId,{left:k0,top:I0,width:f0,height:u0}=v.getComputedLayout(),p0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),X1=V0+k0,Z1=_0+I0,{matrix:n0,opacity:X8}=yz({left:k0,top:I0,width:f0,height:u0,isInheritingTransform:W},X),P1="";if(X.textShadowOffset){let{textShadowColor:Q0,textShadowOffset:M0,textShadowRadius:L0}=X;P1=hz({width:J0.width,height:J0.height,id:H},{shadowColor:Q0,shadowOffset:M0,shadowRadius:L0}),P1=s("defs",{},P1)}let i1="",Z8="",r8="",Q8=-1,w8={},S1=null,m4=0;for(let Q0=0;Q0<e.length;Q0++){let M0=Y0[Q0],L0=Y0[Q0+1];if(!M0)continue;let $0=e[Q0],R0=null,B0=!1,T0=$?$[$0]:null,F0=M0.y,A0=M0.x,A1=M0.width,H0=M0.line;if(H0===Q8)continue;let r1=!1;if(k.length>1){let O0=f0-k[H0];if(M==="right"||M==="end")A0+=O0;else if(M==="center")A0+=O0/2;else if(M==="justify"&&H0<k.length-1){let g0=g[H0],Q1=g0>1?O0/(g0-1):0;A0+=Q1*M0.lineIndex,r1=!0}}let s0=n[H0],v1=I.baseline($0),o8=I.height($0),y1=s0-v1;if(w8[H0]||(w8[H0]=[A0,Z1+F0+y1,v1,r1?f0:k[H0]]),u!==1/0){let O0=function(d0,w1){let o1=q1(w1,"grapheme",V),_1="",M8=0;for(let f4 of o1){let d4=d0+o([_1+f4]);if(_1&&d4+Q1>p0)break;_1+=f4,M8=d4}return{subset:_1,resolvedWidth:M8}},g0=C,Q1=t(C);Q1>p0&&(g0=y5,Q1=t(g0));let n8=t(d8),G8=H0<k.length-1;if(H0+1===u&&(G8||k[H0]>p0)){if(A0+A1+Q1+n8>p0){let{subset:d0,resolvedWidth:w1}=O0(A0,$0);$0=d0+g0,Q8=H0,w8[H0][2]=w1,B0=!0}else if(L0&&L0.line!==H0)if(M==="center"){let{subset:d0,resolvedWidth:w1}=O0(A0,$0);$0=d0+g0,Q8=H0,w8[H0][2]=w1,B0=!0}else{let d0=e[Q0+1],{subset:w1,resolvedWidth:o1}=O0(A1+A0,d0);$0=$0+w1+g0,Q8=H0,w8[H0][2]=o1,B0=!0}}}if(T0)F0+=0;else if(U){if(!$0.includes(SK)&&!Jz.includes($0)&&e[Q0+1]&&L0&&!L0.isImage&&F0===L0.y&&!B0){S1===null&&(m4=A0),S1=S1===null?$0:S1+$0;continue}let O0=S1===null?$0:S1+$0,g0=S1===null?A0:m4,Q1=M0.width+A0-g0;R0=I.getSVG(O0.replace(/(\t)+/g,""),{fontSize:N,left:X1+g0,top:Z1+F0+v1+y1,letterSpacing:D}),S1=null,z&&(r8+=s("rect",{x:X1+g0,y:Z1+F0+y1,width:Q1,height:o8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0})+s("line",{x1:X1+A0,x2:X1+A0+M0.width,y1:Z1+F0+y1+v1,y2:Z1+F0+y1+v1,stroke:"#14c000","stroke-width":1,transform:n0||void 0,"clip-path":S0?`url(#${S0})`:void 0}))}else F0+=v1+y1;if(X.textDecorationLine){let O0=w8[H0];O0&&!O0[4]&&(i1+=bz({left:X1+O0[0],top:O0[1],width:O0[3],ascender:O0[2],clipPathId:S0,matrix:n0},X),O0[4]=1)}if(R0!==null)Z8+=R0+" ";else{let[O0,g0]=kz({content:$0,filter:P1,id:H,left:X1+A0,top:Z1+F0,width:A1,height:o8,matrix:n0,opacity:X8,image:T0,clipPathId:S0,debug:z,shape:!!_,decorationShape:i1},X);K0+=O0,q0+=g0,i1=""}if(B0)break}if(Z8){let Q0=X.color!=="transparent"&&X8!==0?s("path",{fill:X.color,d:Z8,transform:n0||void 0,opacity:X8!==1?X8:void 0,"clip-path":S0?`url(#${S0})`:void 0,mask:c0?`url(#${c0})`:void 0,style:L?`filter:${L}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";_&&(q0=s("path",{d:Z8,transform:n0||void 0})),K0+=(P1?P1+s("g",{filter:`url(#satori_s-${H})`},Q0+i1):Q0+i1)+r8}return q0&&(X._inheritedBackgroundClipTextPath.value+=q0),K0}function nz(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent(V1(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")),Y}function sz(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function vK(J,K,Y,X,Z){let Q=[];for(let z of K){let{color:U}=z;if(!Q.length&&(Q.push({offset:0,color:U}),!z.offset||z.offset.value==="0"))continue;let $=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(U0(`${z.offset.value}${z.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:$,color:U})}Q.length||Q.push({offset:0,color:"transparent"});let w=Q[Q.length-1];w.offset!==1&&(typeof w.offset>"u"?w.offset=1:X?Q[Q.length-1]={offset:1,color:w.color}:Q.push({offset:1,color:w.color}));let H=0,W=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for(W<z&&(W=z);typeof Q[W].offset>"u";)W++;Q[z].offset=(Q[W].offset-Q[H].offset)/(W-H)*(z-H)+Q[H].offset}else H=z;return Z==="mask"?Q.map((z)=>{let U=z5(z.color);return U?U.alpha===0?{...z,color:"rgba(0, 0, 0, 1)"}:{...z,color:`rgba(255, 255, 255, ${U.alpha})`}:z}):Q}function az({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,H,W,z){let U=j7(Q),[$,V]=w,B=Q.startsWith("repeating"),M,A,G;if(U.orientation.type==="directional")M=ez(U.orientation.value),A=Math.sqrt(Math.pow((M.x2-M.x1)*$,2)+Math.pow((M.y2-M.y1)*V,2));else if(U.orientation.type==="angular"){let{length:_,...j}=JU(NK(`${U.orientation.value.value}${U.orientation.value.unit}`)/180*Math.PI,$,V);A=_,M=j}G=B?KU(U.stops,A,M,W):M;let N=vK(B?tz(U.stops,A):A,U.stops,W,B,z),L=`satori_bi${J}`,E=`satori_pattern_${J}`,D=s("pattern",{id:E,x:H[0]/K,y:H[1]/Y,width:X?$/K:"1",height:Z?V/Y:"1",patternUnits:"objectBoundingBox"},s("linearGradient",{id:L,...G,spreadMethod:B?"repeat":"pad"},N.map((_)=>s("stop",{offset:(_.offset??0)*100+"%","stop-color":_.color})).join(""))+s("rect",{x:0,y:0,width:$,height:V,fill:`url(#${L})`}));return[E,D]}function tz(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function ez(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function JU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,w,H,W,z,U,$,V=(B)=>{if(B===0){Z=0,Q=Y,w=0,H=0,W=Y;return}else if(B===Math.PI/2){Z=0,Q=0,w=K,H=0,W=K;return}if(B>0&&B<Math.PI/2){Z=(X*K/2/Math.tan(B)-Y/2)/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z+Y,w=Math.abs(K/2-Z)+K/2,H=Y/2-Math.abs(Q-Y/2),W=Math.sqrt(Math.pow(w-Z,2)+Math.pow(H-Q,2)),U=(K/2/Math.tan(B)-Y/2)/(Math.tan(B)+1/Math.tan(B)),$=Math.tan(B)*U+Y,W=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-$,2));return}else if(B>Math.PI/2&&B<Math.PI){Z=(Y/2+X*K/2/Math.tan(B))/(Math.tan(B)+X/Math.tan(B)),Q=Math.tan(B)*Z,w=Math.abs(K/2-Z)+K/2,H=Y/2+Math.abs(Q-Y/2),U=(K/2/Math.tan(B)+Y/2)/(Math.tan(B)+1/Math.tan(B)),$=Math.tan(B)*U,W=2*Math.sqrt(Math.pow(K/2-U,2)+Math.pow(Y/2-$,2));return}else B>=Math.PI&&(V(B-Math.PI),z=Z,Z=w,w=z,z=Q,Q=H,H=z)};return V(J),{x1:Z/K,y1:Q/Y,x2:w/K,y2:H/Y,length:W}}function KU(J,K,Y,X){let{x1:Z,x2:Q,y1:w,y2:H}=Y,W=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,z=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}`,X.fontSize,K,X,!0)/K:1,U=(Q-Z)*W+Z,$=(H-w)*W+w,V=(Q-Z)*z+Z,B=(H-w)*z+w;return{x1:U,y1:$,x2:V,y2:B}}function YU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,H,W,z){var U;let{shape:$,stops:V,position:B,size:M}=F7(Q),[A,G]=w,N=A/2,L=G/2,E=XU(B.x,B.y,A,G,W.fontSize,W);N=E.x,L=E.y;let D=vK(K,V,W,!1,z),_=`satori_radial_${J}`,j=`satori_pattern_${J}`,T=`satori_mask_${J}`,R=ZU($,M,W.fontSize,{x:N,y:L},[A,G],W),P=s("pattern",{id:j,x:H[0]/K,y:H[1]/Y,width:X?A/K:"1",height:Z?G/Y:"1",patternUnits:"objectBoundingBox"},s("radialGradient",{id:_},D.map((h)=>s("stop",{offset:h.offset||0,"stop-color":h.color})).join(""))+s("mask",{id:T},s("rect",{x:0,y:0,width:A,height:G,fill:"#fff"}))+s("rect",{x:0,y:0,width:A,height:G,fill:((U=D.at(-1))==null?void 0:U.color)||"transparent"})+s($,{cx:N,cy:L,width:A,height:G,...R,fill:`url(#${_})`,mask:`url(#${T})`}));return[j,P]}function XU(J,K,Y,X,Z,Q){let w={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(w,TJ(J.value,Y,X,"x")):w.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(w,TJ(K.value,Y,X,"y")):w.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,w}function TJ(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function ZU(J,K,Y,X,Z,Q){let[w,H]=Z,{x:W,y:z}=X,U={},$=0,V=0;if(QU(K)){if(K.some((B)=>B.value.value.startsWith("-")))throw new Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,H,Q,!0))}}switch(K[0].value){case"farthest-corner":$=Math.max(Math.abs(w-W),Math.abs(W)),V=Math.max(Math.abs(H-z),Math.abs(z));break;case"closest-corner":$=Math.min(Math.abs(w-W),Math.abs(W)),V=Math.min(Math.abs(H-z),Math.abs(z));break;case"farthest-side":return J==="circle"?U.r=Math.max(Math.abs(w-W),Math.abs(W),Math.abs(H-z),Math.abs(z)):(U.rx=Math.max(Math.abs(w-W),Math.abs(W)),U.ry=Math.max(Math.abs(H-z),Math.abs(z))),U;case"closest-side":return J==="circle"?U.r=Math.min(Math.abs(w-W),Math.abs(W),Math.abs(H-z),Math.abs(z)):(U.rx=Math.min(Math.abs(w-W),Math.abs(W)),U.ry=Math.min(Math.abs(H-z),Math.abs(z))),U}if(J==="circle")U.r=Math.sqrt($*$+V*V);else{let B=V!==0?$/V:1;$===0?(U.rx=0,U.ry=0):(U.ry=Math.sqrt($*$+V*V*B*B)/B,U.rx=U.ry*B)}return U}function QU(J){return!J.some((K)=>K.type==="keyword")}function wU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function H4(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let w=new c8(Q);return w.type==="length"||w.type==="number"?w.value:w.value+w.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,w)=>wU(Q,[K,Y][w]))}async function yK({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:w,position:H,repeat:W},z,U){W=W||"repeat",U=U||"background";let $=W==="repeat-x"||W==="repeat",V=W==="repeat-y"||W==="repeat",B=H4(w,{x:K,y:Y,defaultX:K,defaultY:Y}),M=H4(H,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return az({id:J,width:K,height:Y,repeatX:$,repeatY:V},Q,B,M,z,U);if(Q.startsWith("radial-gradient("))return YU({id:J,width:K,height:Y,repeatX:$,repeatY:V},Q,B,M,z,U);if(Q.startsWith("url(")){let A=H4(w,{x:K,y:Y,defaultX:0,defaultY:0}),[G,N,L]=await S4(Q.slice(4,-1)),E=U==="mask"?N||A[0]:A[0]||N,D=U==="mask"?L||A[1]:A[1]||L;return[`satori_bi${J}`,s("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:M[0]+X,y:M[1]+Z,width:$?E:"100%",height:V?D:"100%"},s("image",{x:0,y:0,width:E,height:D,preserveAspectRatio:"none",href:G}))]}throw new Error(`Invalid background image: "${Q}"`)}function WU([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 F5(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function E5(J){J[0]=J[1]=Math.min(J[0],J[1])}function _5(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map((H)=>H.trim()),w=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[w,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var R5=(J)=>J&&J[0]!==0&&J[1]!==0;function HU({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:w},H){let W=`satori_brc-${J}`;return[s("clipPath",{id:W},s(Y,{x:X,y:Z,width:Q,height:w,d:K||void 0})),W]}function h5({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:w,borderTopRightRadius:H,borderBottomLeftRadius:W,borderBottomRightRadius:z,fontSize:U}=Z,$,V,B,M;if([$,w]=_5(w,Y,X,U,Z),[V,H]=_5(H,Y,X,U,Z),[B,W]=_5(W,Y,X,U,Z),[M,z]=_5(z,Y,X,U,Z),!Q&&!R5(w)&&!R5(H)&&!R5(W)&&!R5(z))return"";w||=[0,0],H||=[0,0],W||=[0,0],z||=[0,0],[w[0],H[0]]=F5(w[0],H[0],Y),[W[0],z[0]]=F5(W[0],z[0],Y),[w[1],W[1]]=F5(w[1],W[1],X),[H[1],z[1]]=F5(H[1],z[1],X),$&&E5(w),V&&E5(H),B&&E5(W),M&&E5(z);let A=[];A[0]=[H,H],A[1]=[z,[-z[0],z[1]]],A[2]=[W,[-W[0],-W[1]]],A[3]=[w,[w[0],-w[1]]];let G=`h${Y-w[0]-H[0]} a${A[0][0]} 0 0 1 ${A[0][1]}`,N=`v${X-H[1]-z[1]} a${A[1][0]} 0 0 1 ${A[1][1]}`,L=`h${z[0]+W[0]-Y} a${A[2][0]} 0 0 1 ${A[2][1]}`,E=`v${W[1]+w[1]-X} a${A[3][0]} 0 0 1 ${A[3][1]}`;if(Q){let D=function(r){let u=WU([w,H,z,W][r]);return r===0?[[J+w[0]-u,K+w[1]-u],[J+w[0],K]]:r===1?[[J+Y-H[0]+u,K+H[1]-u],[J+Y,K+H[1]]]:r===2?[[J+Y-z[0]+u,K+X-z[1]+u],[J+Y-z[0],K+X]]:[[J+W[0]-u,K+X-W[1]+u],[J,K+X-W[1]]]},_=Q.indexOf(!1);if(!Q.includes(!0))throw new Error("Invalid `partialSides`.");if(_===-1)_=0;else for(;!Q[_];)_=(_+1)%4;let j="",T=D(_),R=`M${T[0]} A${A[(_+3)%4][0]} 0 0 1 ${T[1]}`,P=0;for(;P<4&&Q[(_+P)%4];P++)j+=R+" ",R=[G,N,L,E][(_+P)%4];let h=(_+P)%4;j+=R.split(" ")[0];let c=D(h);return j+=` A${A[(h+3)%4][0]} 0 0 1 ${c[0]}`,j}return`M${J+w[0]},${K} ${G} ${N} ${L} ${E}`}function CJ(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function zU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:w,height:H},W){if(!(W.borderTopWidth||W.borderRightWidth||W.borderBottomWidth||W.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[s("clipPath",{id:z,"clip-path":K?`url(#${K})`:void 0},s(X,{x:Z,y:Q,width:w,height:H,d:Y||void 0})),z]}function kK({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:w},H){let W=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!W.some((B)=>H[B+"Width"]))return"";let z="",U=0;for(;U>0&&CJ(W[U],W[(U+3)%4],H);)U=(U+3)%4;let $=[!1,!1,!1,!1],V=[];for(let B=0;B<4;B++){let M=(U+B)%4,A=(U+B+1)%4,G=W[M],N=W[A];if($[M]=!0,V=[H[G+"Width"],H[G+"Style"],H[G+"Color"],G],!CJ(G,N,H)){let L=(V[0]||0)+(Q&&!w&&H[G.replace("border","padding")]||0);L&&(z+=s("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":L*2,"stroke-dasharray":!Q&&V[1]==="dashed"?L*2+" "+L:void 0,d:h5({left:J,top:K,width:Y,height:X},H,$)})),$=[!1,!1,!1,!1]}}if($.some(Boolean)){let B=(V[0]||0)+(Q&&!w&&H[V[3].replace("border","padding")]||0);B&&(z+=s("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":V[2],"stroke-width":B*2,"stroke-dasharray":!Q&&V[1]==="dashed"?B*2+" "+B:void 0,d:h5({left:J,top:K,width:Y,height:X},H,$)}))}return z}function UU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:w},H){let W=(H.borderLeftWidth||0)+(w?0:H.paddingLeft||0),z=(H.borderTopWidth||0)+(w?0:H.paddingTop||0),U=(H.borderRightWidth||0)+(w?0:H.paddingRight||0),$=(H.borderBottomWidth||0)+(w?0:H.paddingBottom||0),V={x:K+W,y:Y+z,width:X-W-U,height:Z-z-$};return s("mask",{id:J},s("rect",{...V,fill:"#fff",transform:H.overflow==="hidden"&&H.transform&&Q?Q:void 0,mask:H._inheritedMaskId?`url(#${H._inheritedMaskId})`:void 0})+kK({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:w},H))}var x8={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function $U({width:J,height:K},Y,X){function Z(z){let U=z.match(x8.circle);if(!U)return null;let[,$]=U,[V,B=""]=$.split("at").map((G)=>G.trim()),{x:M,y:A}=SJ(B,J,K);return{type:"circle",r:U0(V,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(M,X.fontSize,J,X,!0),cy:U0(A,X.fontSize,K,X,!0)}}function Q(z){let U=z.match(x8.ellipse);if(!U)return null;let[,$]=U,[V,B=""]=$.split("at").map((L)=>L.trim()),[M,A]=V.split(" "),{x:G,y:N}=SJ(B,J,K);return{type:"ellipse",rx:U0(M||"50%",X.fontSize,J,X,!0),ry:U0(A||"50%",X.fontSize,K,X,!0),cx:U0(G,X.fontSize,J,X,!0),cy:U0(N,X.fontSize,K,X,!0)}}function w(z){let U=z.match(x8.path);if(!U)return null;let[$,V]=PJ(U[1]);return{type:"path",d:V,"fill-rule":$}}function H(z){let U=z.match(x8.polygon);if(!U)return null;let[$,V]=PJ(U[1]);return{type:"polygon","fill-rule":$,points:V.split(",").map((B)=>B.split(" ").map((M,A)=>U0(M,X.fontSize,A===0?J:K,X,!0)).join(" ")).join(",")}}function W(z){let U=z.match(x8.inset);if(!U)return null;let[$,V]=(U[1].includes("round")?U[1]:`${U[1].trim()} round 0`).split("round"),B=O4.getStylesForProperty("borderRadius",V,!0),M=Object.values(B).map((D)=>String(D)).map((D,_)=>U0(D,X.fontSize,_===0||_===2?K:J,X,!0)||0),A=Object.values(O4.getStylesForProperty("margin",$,!0)).map((D)=>String(D)).map((D,_)=>U0(D,X.fontSize,_===0||_===2?K:J,X,!0)||0),G=A[3],N=A[0],L=J-(A[1]+A[3]),E=K-(A[0]+A[2]);return M.some((D)=>D>0)?{type:"path",d:h5({left:G,top:N,width:L,height:E},{...Y,...B})}:{type:"rect",x:G,y:N,width:L,height:E}}return{parseCircle:Z,parseEllipse:Q,parsePath:w,parsePolygon:H,parseInset:W}}function PJ(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function SJ(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function y4(J){return`satori_cp-${J}`}function VU(J){return`url(#${y4(J)})`}function BU(J,K,Y){if(K.clipPath==="none")return"";let X=$U(J,K,Y),Z=K.clipPath,Q={type:""};for(let w of Object.keys(X))if(Q=X[w](Z),Q)break;if(Q){let{type:w,...H}=Q;return s("clipPath",{id:y4(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},s(w,H))}return""}function qU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:w,currentClipPath:H,src:W},z,U){let $="",V=z.clipPath&&z.clipPath!=="none"?BU({left:J,top:K,width:Y,height:X,path:Z,id:w,matrix:Q,currentClipPath:H,src:W},z,U):"";if(z.overflow!=="hidden"&&!W)$="";else{let M=V?`satori_ocp-${w}`:y4(w);$=s("clipPath",{id:M,"clip-path":H},s(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let B=UU({id:`satori_om-${w}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!W},z);return V+$+B}var AU=(J)=>`satori_mi-${J}`;async function GU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:w,id:H}=J,W=K.maskImage,z=W.length;if(!z)return["",""];let U=AU(H),$="";for(let V=0;V<z;V++){let B=W[V],[M,A]=await yK({id:`${U}-${V}`,left:X,top:Z,width:Q,height:w},B,Y,"mask");$+=A+s("rect",{x:X,y:Z,width:Q,height:w,fill:`url(#${M})`})}return $=s("mask",{id:U},$),[U,$]}async function z4({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:w,debug:H},W,z){if(W.display==="none")return"";let U=!!w,$="rect",V="",B="",M=[],A=1,G="";W.backgroundColor&&M.push(W.backgroundColor),W.opacity!==void 0&&(A=+W.opacity),W.transform&&(V=PK({left:K,top:Y,width:X,height:Z},W.transform,Q,W.transformOrigin));let N="";if(W.backgroundImage){let v=[];for(let I=0;I<W.backgroundImage.length;I++){let f=W.backgroundImage[I],l=await yK({id:J+"_"+I,width:X,height:Z,left:K,top:Y},f,z);l&&v.unshift(l)}for(let I of v)M.push(`url(#${I[0]})`),B+=I[1],I[2]&&(N+=I[2])}let[L,E]=await GU({id:J,left:K,top:Y,width:X,height:Z},W,z);B+=E;let D=L?`url(#${L})`:W._inheritedMaskId?`url(#${W._inheritedMaskId})`:void 0,_=h5({left:K,top:Y,width:X,height:Z},W);_&&($="path");let j=W._inheritedClipPathId;H&&(G=s("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:V||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:T,filter:R}=W,P=T==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:W.clipPath?VU(J):void 0,h=qU({left:K,top:Y,width:X,height:Z,path:_,id:J,matrix:V,currentClipPath:P,src:w},W,z),c=M.map((v)=>s($,{x:K,y:Y,width:X,height:Z,fill:v,d:_||void 0,transform:V||void 0,"clip-path":W.transform?void 0:P,style:R?`filter:${R}`:void 0,mask:W.transform?void 0:D})).join(""),r=zU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:j,borderPath:_,borderType:$},W),u;if(U){let v=(W.borderLeftWidth||0)+(W.paddingLeft||0),I=(W.borderTopWidth||0)+(W.paddingTop||0),f=(W.borderRightWidth||0)+(W.paddingRight||0),l=(W.borderBottomWidth||0)+(W.paddingBottom||0),t=W.objectFit==="contain"?"xMidYMid":W.objectFit==="cover"?"xMidYMid slice":"none";W.transform&&(u=HU({id:J,borderRadiusPath:_,borderType:$,left:K,top:Y,width:X,height:Z},W)),c+=s("image",{x:K+v,y:Y+I,width:X-v-f,height:Z-I-l,href:w,preserveAspectRatio:t,transform:V||void 0,style:R?`filter:${R}`:void 0,"clip-path":W.transform?u?`url(#${u[1]})`:void 0:`url(#satori_cp-${J})`,mask:W.transform?void 0:L?`url(#${L})`:`url(#satori_om-${J})`})}if(r){B+=r[0];let v=r[1];c+=kK({left:K,top:Y,width:X,height:Z,props:{transform:V||void 0,"clip-path":`url(#${v})`}},W)}let C=xz({width:X,height:Z,id:J,opacity:A,shape:s($,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:_||void 0,transform:V||void 0,"clip-path":P,mask:D})},W);return(B?s("defs",{},B):"")+(C?C[0]:"")+(u?u[0]:"")+h+(A!==1?`<g opacity="${A}">`:"")+(W.transform&&(P||D)?`<g${P?` clip-path="${P}"`:""}${D?` mask="${D}"`:""}>`:"")+(N||c)+(W.transform&&(P||D)?"</g>":"")+(A!==1?"</g>":"")+(C?C[1]:"")+G}var MU=()=>/[#*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,OU=new RegExp(MU(),""),N4={emoji:OU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},L4={"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},k4=Object.keys({...L4,...N4});function NU(J){return k4.includes(J)}function LU(J,K){for(let X of Object.keys(N4))if(N4[X].test(J))return[X];let Y=Object.keys(L4).filter((X)=>L4[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function jU(J){if(J)return k4.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*j4(J,K){var Y;let X=await f5(),{id:Z,inheritedStyle:Q,parent:w,font:H,debug:W,locale:z,embedFont:U=!0,graphemeImages:$,canLoadAdditionalAssets:V,getTwStyles:B}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!P5(J)||typeof J.type=="function"){let k;if(!P5(J))k=oz(String(J),K),yield(await k.next()).value;else{if(aH(J.type))throw new Error("Class component is not supported.");k=j4(J.type(J.props),K),yield(await k.next()).value}await k.next();let n=yield;return(await k.next(n)).value}let{type:M,props:A}=J;if(A&&tH(A))throw new Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:G,children:N,tw:L,lang:E=z}=A||{},D=jU(E);if(L){let k=B(L,G);G=Object.assign(k,G)}let _=X.Node.create();w.insertChild(_,w.getChildCount());let[j,T]=await Sz(_,M,Q,G,A),R=j.transform===Q.transform;if(R||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(T._inheritedClipPathId=`satori_cp-${Z}`,T._inheritedMaskId=`satori_om-${Z}`),j.maskImage&&(T._inheritedMaskId=`satori_mi-${Z}`),j.backgroundClip==="text"){let k={value:""};T._inheritedBackgroundClipTextPath=k,j._inheritedBackgroundClipTextPath=k}let P=eH(N),h=[],c=0,r=[];for(let k of P){let n=j4(k,{id:Z+"-"+c++,parentStyle:j,inheritedStyle:T,isInheritingTransform:!0,parent:_,font:H,embedFont:U,debug:W,graphemeImages:$,canLoadAdditionalAssets:V,locale:D,getTwStyles:B,onNodeDetected:K.onNodeDetected});V?r.push(...(await n.next()).value||[]):await n.next(),h.push(n)}yield r;for(let k of h)await k.next();let[u,C]=yield,{left:v,top:I,width:f,height:l}=_.getComputedLayout();v+=u,I+=C;let t="",o="",m="",{children:d,...y}=A;if((Y=K.onNodeDetected)==null||Y.call(K,{left:v,top:I,width:f,height:l,type:M,props:y,key:J.key,textContent:P5(d)?void 0:d}),M==="img"){let k=j.__src;o=await z4({id:Z,left:v,top:I,width:f,height:l,src:k,isInheritingTransform:R,debug:W},j,T)}else if(M==="svg"){let k=j.color,n=await Gz(J,k);o=await z4({id:Z,left:v,top:I,width:f,height:l,src:n,isInheritingTransform:R,debug:W},j,T)}else{let k=G==null?void 0:G.display;if(M==="div"&&N&&typeof N!="string"&&k!=="flex"&&k!=="none")throw new Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');o=await z4({id:Z,left:v,top:I,width:f,height:l,isInheritingTransform:R,debug:W},j,T)}for(let k of h)t+=(await k.next([v,I])).value;return j._inheritedBackgroundClipTextPath&&(m+=s("clipPath",{id:`satori_bct-${Z}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+o+t}var gK="unknown";function FU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var EU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,w,H]=Z,[,W,z]=X[Q];FU(K,Y,[w,H],[W,z])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!NU(Z))throw new Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${k4.join(", ")}.`);let Q=Z??gK,w=O5.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),H=w.charToGlyphIndex;w.charToGlyphIndex=(z)=>{let U=H.call(w,z);return U===0&&w._trackBrokenChars&&w._trackBrokenChars.push(z),U},this.defaultFont||(this.defaultFont=w);let W=`${Y.toLowerCase()}_${Q}`;this.fonts.has(W)||this.fonts.set(W,[]),this.fonts.get(W).push([w,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw new Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((N)=>N.toLowerCase());let w=[];Y.forEach((N)=>{let L=this.get({name:N,weight:X,style:Z});if(L){w.push(L);return}let E=this.get({name:N+"_unknown",weight:X,style:Z});if(E){w.push(E);return}});let H=Array.from(this.fonts.keys()),W=[],z=[],U=[];for(let N of H)if(!Y.includes(N))if(Q){let L=_U(N);L?L===Q?W.push(this.get({name:N,weight:X,style:Z})):z.push(this.get({name:N,weight:X,style:Z})):U.push(this.get({name:N,weight:X,style:Z}))}else U.push(this.get({name:N,weight:X,style:Z}));let $=new Map,V=(N,L=!0)=>{let E=[...w,...U,...W,...L?z:[]];if(typeof N>"u")return L?E[E.length-1]:void 0;let D=N.charCodeAt(0);if($.has(D))return $.get(D);let _=E.find((j,T)=>!!j.charToGlyphIndex(N)||L&&T===E.length-1);return _&&$.set(D,_),_},B=(N,L=!1)=>{var E,D;return((L?(D=(E=N.tables)==null?void 0:E.os2)==null?void 0:D.sTypoAscender:0)||N.ascender)/N.unitsPerEm*J},M=(N,L=!1)=>{var E,D;return((L?(D=(E=N.tables)==null?void 0:E.os2)==null?void 0:D.sTypoDescender:0)||N.descender)/N.unitsPerEm*J},A=(N,L=!1)=>{var E,D;if(typeof K=="string"&&K==="normal"){let _=(L?(D=(E=N.tables)==null?void 0:E.os2)==null?void 0:D.sTypoLineGap:0)||0;return B(N,L)-M(N,L)+_/N.unitsPerEm*J}else if(typeof K=="number")return J*K},G=(N)=>V(N,!1);return{has:(N)=>{if(N===`
66
66
  `)return!0;let L=G(N);return L?(L._trackBrokenChars=[],L.stringToGlyphs(N),L._trackBrokenChars.length?(L._trackBrokenChars=void 0,!1):!0):!1},baseline:(N,L=typeof N>"u"?w[0]:V(N))=>{let E=B(L),D=M(L),_=E-D;return E+(A(L)-_)/2},height:(N,L=typeof N>"u"?w[0]:V(N))=>A(L),measure:(N,L)=>this.measure(V,N,L),getSVG:(N,L)=>this.getSVG(V,N,L)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let w=X.call(J,Z,...Q);for(let H=0;H<w.length;H++)if(w[H].unicode===void 0){let W=Y.shift(),z=K(W);if(z!==J){let U=z.charToGlyph(W),$=J.unitsPerEm/z.unitsPerEm,V=new O5.Path;V.unitsPerEm=J.unitsPerEm,V.commands=U.path.commands.map((M)=>{let A={...M};for(let G in A)typeof A[G]=="number"&&(A[G]*=$);return A});let B=new O5.Glyph({...U,advanceWidth:U.advanceWidth*$,xMin:U.xMin*$,xMax:U.xMax*$,yMin:U.yMin*$,yMax:U.yMax*$,path:V});w[H]=B}}return w},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let w=J(K),H=this.patchFontFallbackResolver(w,J);try{return Y===0?"":w.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{H()}}};function _U(J){let K=J.split("_"),Y=K[K.length-1];return Y===gK?void 0:Y}function RU({width:J,height:K,content:Y}){return s("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var DU=XH(mH()),IU=["ios","android","windows","macos","web"];function TU(J){return IU.includes(J)}var CU=["portrait","landscape"];function PU(J){return CU.includes(J)}var vJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(vJ||(vJ={}));var G0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(G0||(G0={}));function yJ(J){return typeof J=="string"}function kJ(J){return typeof J=="object"}var U4;function x(J){return{kind:"complete",style:J}}function Y1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",w=""]=J.split("/",2),H=Y1(Q),W=Y1(w);return!H||!W?null:[H[0]/W[0],W[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,G0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,G0.rem];case"px":return[X,G0.px];case"em":return[X,G0.em];case"%":return[X,G0.percent];case"vw":return[X,G0.vw];case"vh":return[X,G0.vh];default:return null}}function u8(J,K,Y={}){let X=K8(K,Y);return X===null?null:x({[J]:X})}function $4(J,K,Y){let X=K8(K);return X!==null&&(Y[J]=X),Y}function SU(J,K){let Y=K8(K);return Y===null?null:{[J]:Y}}function K8(J,K={}){if(J===void 0)return null;let Y=Y1(String(J),K);return Y?p8(...Y,K):null}function p8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case G0.rem:return J*16*(X?-1:1);case G0.px:return J*(X?-1:1);case G0.percent:return`${X?"-":""}${J}%`;case G0.none:return J*(X?-1:1);case G0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(C1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case G0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(C1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function gJ(J){let K=Y1(J);if(!K)return null;let[Y,X]=K;switch(X){case G0.rem:return Y*16;case G0.px:return Y;default:return null}}var vU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function hK(J){return vU[J??""]||"All"}function xK(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=hK(X),"")),K]}function p5(J,K={}){if(J.includes("/")){let Y=hJ(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),hJ(J,K)}function Y8(J,K,Y={}){let X=p5(K,Y);return X===null?null:x({[J]:X})}function hJ(J,K={}){if(J==="px")return 1;let Y=Y1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=G0.percent,X*=100),Z===G0.none&&(X=X/4,Z=G0.rem),p8(X,Z,K)}function yU(...J){console.warn(...J)}function kU(...J){}var C1=typeof process>"u"||((U4=process==null?void 0:process.env)===null||U4===void 0?void 0:U4.JEST_WORKER_ID)===void 0?yU:kU,gU=[["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",b8("oldstyle-nums")],["small-caps",b8("small-caps")],["lining-nums",b8("lining-nums")],["tabular-nums",b8("tabular-nums")],["proportional-nums",b8("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})]],xJ=gU;function b8(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var hU=class{constructor(J){this.ir=new Map(xJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...xJ,...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 xU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return Y8("fontSize",J,Y);if(typeof X=="string")return u8("fontSize",X);let Z={},[Q,w]=X,H=SU("fontSize",Q);if(H&&(Z=H),typeof w=="string")return x($4("lineHeight",bJ(w,Z),Z));let{lineHeight:W,letterSpacing:z}=w;return W&&$4("lineHeight",bJ(W,Z),Z),z&&$4("letterSpacing",z,Z),x(Z)}function bJ(J,K){let Y=Y1(J);if(Y){let[X,Z]=Y;if((Z===G0.none||Z===G0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function bU(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=Y1(X);if(!Z)return null;let[Q,w]=Z;if(w===G0.none)return{kind:"dependent",complete(W){if(typeof W.fontSize!="number")return"relative line-height utilities require that font-size be set";W.lineHeight=W.fontSize*Q}};let H=p8(Q,w);return H!==null?x({lineHeight:H}):null}function mU(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let z=Z==null?void 0:Z[X];if(z)Q=z;else{let U=p5(X);return U&&typeof U=="number"?mJ(U,G0.px,K,J):null}}if(Q==="auto")return bK(K,J,"auto");let w=Y1(Q);if(!w)return null;let[H,W]=w;return Y&&(H=-H),mJ(H,W,K,J)}function mJ(J,K,Y,X){let Z=p8(J,K);return Z===null?null:bK(Y,X,Z)}function bK(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function fU(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,w])=>{let H=[0,1/0,0],W=typeof w=="string"?{min:w}:w,z=W.min?gJ(W.min):0;z===null?C1(`invalid screen config value: ${Q}->min: ${W.min}`):H[0]=z;let U=W.max?gJ(W.max):1/0;return U===null?C1(`invalid screen config value: ${Q}->max: ${W.max}`):H[1]=U,Z[Q]=H,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[w,H]=Z,[W,z]=Q;return H===1/0||z===1/0?w-W:H-z});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function dU(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return x({fontFamily:Y});let X=Y[0];return X?x({fontFamily:X}):null}function f8(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=mK(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=fJ(Z,Q/100),x({[k5[J].color]:Z})}return{kind:"dependent",complete(Q){let w=k5[J].opacity,H=Q[w];typeof H=="number"&&(Z=fJ(Z,H)),Q[k5[J].color]=Z}}}function D5(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[k5[J].opacity]:X}}}function fJ(J,K){return J.startsWith("#")?J=cU(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function lU(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var k5={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 cU(J){let K=J;J=J.replace(uU,(w,H,W,z)=>H+H+W+W+z+z);let Y=pU.exec(J);if(!Y)return C1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function mK(J,K){let Y=K[J];if(yJ(Y))return Y;if(kJ(Y)&&yJ(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(kJ(Q))return mK(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var uU=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,pU=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function iU(J,K){let[Y,X]=xK(J);if(Y.match(/^(-?(\d)+)?$/))return rU(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return x({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=f8(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let w=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let H=Y.slice(1,-1),W=Y8(w,H);return typeof(W==null?void 0:W.style[w])!="number"?null:W}function rU(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return u8(Z,X)}function oU(J,K){if(!K)return null;let[Y,X]=xK(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return dJ(u8(Z,Q));let w=Y8(Z,Y);return typeof(w==null?void 0:w.style[Z])!="number"?null:dJ(w)}function dJ(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 Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function m8(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,(H,W)=>(Z=W==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let H=K8(Q,{isNegative:Y});if(H!==null)return lJ(J,Z,H)}let w=p5(K,{isNegative:Y});return w!==null?lJ(J,Z,w):null}function lJ(J,K,Y){if(J!=="inset")return x({[J]:Y});switch(K){case null:return x({top:Y,left:Y,right:Y,bottom:Y});case"y":return x({top:Y,bottom:Y});case"x":return x({left:Y,right:Y})}}function I5(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:x({[`flex${J}`]:Q})}function nU(J,K){var Y,X;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 Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=K8((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?x({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=K8((X=Z[3])!==null&&X!==void 0?X:"");return Q?x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function cJ(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?u8(J,Z,Y):Y8(J,K,Y)}function T5(J,K,Y={},X){let Z=K8(X==null?void 0:X[K],Y);return Z?x({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),Y8(J,K,Y))}function sU(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=Y1(X,{isNegative:K});if(!Z)return null;let[Q,w]=Z;if(w===G0.em)return aU(Q);if(w===G0.percent)return C1("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 H=p8(Q,w,{isNegative:K});return H!==null?x({letterSpacing:H}):null}return Y8("letterSpacing",J,{isNegative:K})}function aU(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function tU(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=Y1(String(Y));if(Z)return x({opacity:Z[0]})}let X=Y1(J);return X?x({opacity:X[0]/100}):null}function eU(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function J$(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=V4(Y),Q=V4(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=V4(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function V4(J){let K=p5(J);return typeof K=="number"?K:null}var uJ=class{constructor(J,K={},Y,X,Z){var Q,w,H,W,z,U;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let $=J.trim().split(":"),V=[];$.length===1?this.string=J:(this.string=(Q=$.pop())!==null&&Q!==void 0?Q:"",V=$),this.char=this.string[0];let B=fU((w=this.config.theme)===null||w===void 0?void 0:w.screens);for(let M of V)if(B[M]){let A=(H=B[M])===null||H===void 0?void 0:H[2];A!==void 0&&(this.order=((W=this.order)!==null&&W!==void 0?W:0)+A);let G=(z=X.windowDimensions)===null||z===void 0?void 0:z.width;if(G){let[N,L]=(U=B[M])!==null&&U!==void 0?U:[0,0];(G<=N||G>L)&&(this.isNull=!0)}else this.isNull=!0}else TU(M)?this.isNull=M!==Z:PU(M)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==M?this.isNull=!0:this.incrementOrder():this.isNull=!0:M==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:M==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(M)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,w=null;switch(this.char){case"m":case"p":{let H=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if(H){let W=this.char==="m"?"margin":"padding";this.advance(((K=(J=H[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let z=hK(H[1]),U=mU(W,z,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[W]);if(U)return U}}}if(this.consumePeeked("h-")&&(w=cJ("height",this.rest,this.context,Q==null?void 0:Q.height),w)||this.consumePeeked("w-")&&(w=cJ("width",this.rest,this.context,Q==null?void 0:Q.width),w)||this.consumePeeked("min-w-")&&(w=T5("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),w)||this.consumePeeked("min-h-")&&(w=T5("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),w)||this.consumePeeked("max-w-")&&(w=T5("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),w)||this.consumePeeked("max-h-")&&(w=T5("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),w)||this.consumePeeked("leading-")&&(w=bU(this.rest,Q==null?void 0:Q.lineHeight),w)||this.consumePeeked("text-")&&(w=xU(this.rest,Q==null?void 0:Q.fontSize,this.context),w||(w=f8("text",this.rest,Q==null?void 0:Q.textColor),w)||this.consumePeeked("opacity-")&&(w=D5("text",this.rest),w))||this.consumePeeked("font-")&&(w=dU(this.rest,Q==null?void 0:Q.fontFamily),w)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&C1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),w=u8("aspectRatio",this.rest,{fractions:!0}),w)||this.consumePeeked("tint-")&&(w=f8("tint",this.rest,Q==null?void 0:Q.colors),w)||this.consumePeeked("bg-")&&(w=f8("bg",this.rest,Q==null?void 0:Q.backgroundColor),w||this.consumePeeked("opacity-")&&(w=D5("bg",this.rest),w))||this.consumePeeked("border")&&(w=iU(this.rest,Q),w||this.consumePeeked("-opacity-")&&(w=D5("border",this.rest),w))||this.consumePeeked("rounded")&&(w=oU(this.rest,Q==null?void 0:Q.borderRadius),w)||this.consumePeeked("bottom-")&&(w=m8("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("top-")&&(w=m8("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("left-")&&(w=m8("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("right-")&&(w=m8("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("inset-")&&(w=m8("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?w=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?w=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink):w=nU(this.rest,Q==null?void 0:Q.flex),w)||this.consumePeeked("grow")&&(w=I5("Grow",this.rest,Q==null?void 0:Q.flexGrow),w)||this.consumePeeked("shrink")&&(w=I5("Shrink",this.rest,Q==null?void 0:Q.flexShrink),w)||this.consumePeeked("shadow-color-opacity-")&&(w=D5("shadow",this.rest),w)||this.consumePeeked("shadow-opacity-")&&(w=eU(this.rest),w)||this.consumePeeked("shadow-offset-")&&(w=J$(this.rest),w)||this.consumePeeked("shadow-radius-")&&(w=Y8("shadowRadius",this.rest),w)||this.consumePeeked("shadow-")&&(w=f8("shadow",this.rest,Q==null?void 0:Q.colors),w))return w;if(this.consumePeeked("elevation-")){let H=parseInt(this.rest,10);if(!Number.isNaN(H))return x({elevation:H})}if(this.consumePeeked("opacity-")&&(w=tU(this.rest,Q==null?void 0:Q.opacity),w)||this.consumePeeked("tracking-")&&(w=sU(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),w))return w;if(this.consumePeeked("z-")){let H=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN(H))return x({zIndex:H})}return C1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",w=""]=Y,H=Q==="w"?X.width:X.height,W=Y1(w,this.context);if(W===null)return this.isNull=!0,!0;let[z,U]=W;return U!=="px"&&(this.isNull=!0),(Z==="min"?H>=z:H<=z)?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 K$(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...B4(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(B4)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?B4(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(Y$),Y]}function B4(J){return J.trim().split(/\s+/)}function Y$(J,K,Y){return Y.indexOf(J)===K}function X$(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...Z$(X.handler)}),{}))!==null&&K!==void 0?K:{}}function Z$(J){let K={};return J({addUtilities:(Y)=>{K=Y},...Q$}),K}function E1(J){throw new Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var Q$={addComponents:E1,addBase:E1,addVariant:E1,e:E1,prefix:E1,theme:E1,variants:E1,config:E1,corePlugins:E1,matchUtilities:E1,postcss:null};function w$(J,K){let Y=DU.default(W$(J)),X={},Z=X$(Y.plugins),Q={},w=Object.entries(Z).map(([M,A])=>typeof A=="string"?(Q[M]=A,[M,{kind:"null"}]):[M,x(A)]).filter(([,M])=>M.kind!=="null");function H(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let W=H(),z={};function U(){let M=z[W];if(M)return M;let A=new hU(w);return z[W]=A,A}function $(...M){let A=U(),G={},N=[],L=[],[E,D]=K$(M),_=E.join(" "),j=A.getStyle(_);if(j)return{...j,...D||{}};for(let T of E){let R=A.getIr(T);if(!R&&T in Q){let P=$(Q[T]);A.setIr(T,x(P)),G={...G,...P};continue}switch(R=new uJ(T,Y,A,X,K).parse(),R.kind){case"complete":G={...G,...R.style},A.setIr(T,R);break;case"dependent":N.push(R);break;case"ordered":L.push(R);break;case"null":A.setIr(T,R);break}}if(L.length>0){L.sort((T,R)=>T.order-R.order);for(let T of L)switch(T.styleIr.kind){case"complete":G={...G,...T.styleIr.style};break;case"dependent":N.push(T.styleIr);break}}if(N.length>0){for(let T of N){let R=T.complete(G);R&&C1(R)}lU(G)}return _!==""&&A.setStyle(_,G),D&&(G={...G,...D}),G}function V(M){let A=$(M.split(/\s+/g).map((G)=>G.replace(/^(bg|text|border)-/,"")).map((G)=>`bg-${G}`).join(" "));return typeof A.backgroundColor=="string"?A.backgroundColor:void 0}let B=(M,...A)=>{let G="";return M.forEach((N,L)=>{var E;G+=N+((E=A[L])!==null&&E!==void 0?E:"")}),$(G)};return B.style=$,B.color=V,B.prefixMatch=(...M)=>{let A=M.sort().join(":"),G=U(),N=G.getPrefixMatch(A);if(N!==void 0)return N;let L=new uJ(`${A}:flex`,Y,G,X,K).parse().kind!=="null";return G.setPrefixMatch(A,L),L},B.setWindowDimensions=(M)=>{X.windowDimensions=M,W=H()},B.setFontScale=(M)=>{X.fontScale=M,W=H()},B.setPixelDensity=(M)=>{X.pixelDensity=M,W=H()},B.setColorScheme=(M)=>{X.colorScheme=M,W=H()},B}function W$(J){return{...J,content:["_no_warnings_please"]}}var H$={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 z$(J){return w$({...J,plugins:[...(J==null?void 0:J.plugins)??[],H$]},"web")}var C5;function U$({width:J,height:K,config:Y}){return C5||(C5=z$(Y)),C5.setWindowDimensions({width:+J,height:+K}),C5}var q4=new WeakMap;async function fK(J,K){let Y=await f5();if(!Y||!Y.Node)throw new Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;q4.has(K.fonts)?X=q4.get(K.fonts):q4.set(K.fonts,X=new EU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,w=Y.Node.create();Z&&w.setWidth(Z),Q&&w.setHeight(Q),w.setFlexDirection(Y.FLEX_DIRECTION_ROW),w.setFlexWrap(Y.WRAP_WRAP),w.setAlignContent(Y.ALIGN_AUTO),w.setAlignItems(Y.ALIGN_FLEX_START),w.setJustifyContent(Y.JUSTIFY_FLEX_START),w.setOverflow(Y.OVERFLOW_HIDDEN);let H={...K.graphemeImages},W=new Set;u1.clear(),v5.clear(),await Az(J);let z=j4(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:w,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:H,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(M,A)=>{let G={...U$({width:Z,height:Q,config:K.tailwindConfig})([M])};return typeof G.lineHeight=="number"&&(G.lineHeight=G.lineHeight/(+G.fontSize||A.fontSize||16)),G.shadowColor&&G.boxShadow&&(G.boxShadow=G.boxShadow.replace(/rgba?\([^)]+\)/,G.shadowColor)),G}}),U=(await z.next()).value;if(K.loadAdditionalAsset&&U.length){let M=$$(U),A=[],G={};await Promise.all(Object.entries(M).flatMap(([N,L])=>L.map((E)=>{let D=`${N}_${E}`;return W.has(D)?null:(W.add(D),K.loadAdditionalAsset(N,E).then((_)=>{typeof _=="string"?G[E]=_:_&&(Array.isArray(_)?A.push(..._):A.push(_))}))}))),X.addFonts(A),Object.assign(H,G)}await z.next(),w.calculateLayout(Z,Q,Y.DIRECTION_LTR);let $=(await z.next([0,0])).value,V=w.getComputedWidth(),B=w.getComputedHeight();return w.freeRecursive(),RU({width:V,height:B,content:$})}function $$(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=LU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...pJ(q1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=pJ(q1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function pJ(J){return Array.from(new Set(J))}import B$ from"sharp";function g4(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function i5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,w=i5(Q.routes);for(let[H,{exec:W,middleware:z}]of Object.entries(w)){let U=Y==="/"?H:`${Y}${H}`,$=H==="/"&&Y!=="/"?Y:U,V=(B)=>Z.run.call(Z,B,Y);K[g4($)]={exec:[V,...W],middleware:[...Z.middlewares,...z],viewPath:Z.viewPath}}}else{let Q=(w)=>Z.run.call(Z,w,Y);K[g4(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=i5(Z.routes);for(let[w,{exec:H,middleware:W,viewPath:z}]of Object.entries(Q)){let U=Y==="/"?w:`${Y}${w}`,$=w==="/"&&Y!=="/"?Y:U;K[g4($)]={exec:H,middleware:[...Z.middlewares,...W],viewPath:z}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as dK}from"react-dom/server.browser";import{createElement as x4,Fragment as q$}from"react";function V$(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function r5(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,w=r5(Q.routes);for(let[H,W]of Object.entries(w)){let z=Y==="/"?H:`${Y}${H}`,U=H==="/"&&Y!=="/"?Y:z;K[U]=[Z,...W]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=r5(Z.routes);for(let[w,H]of Object.entries(Q)){let W=Y==="/"?w:`${Y}${w}`,z=w==="/"&&Y!=="/"?Y:W;K[z]=H}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[V$(Y),X]))}function o5(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if("children"in X){let Q=new X.children,w=o5(Q.routes);K.push([Z,w])}else K.push([Z,[]])}else{let Z=new X,Q=o5(Z.routes);K.push(...Q)}return K}function h4(J){let K=[];for(let[Y,X]of J)K.push(Y,...h4(X).flat());return Array.from(new Set(K))}class n5{static debug(J,K){t0.use().log("debug",J,K)}static info(J,K){t0.use().log("info",J,K)}static notice(J,K){t0.use().log("notice",J,K)}static warning(J,K){t0.use().log("warning",J,K)}static error(J,K){t0.use().log("error",J,K)}static critical(J,K){t0.use().log("critical",J,K)}static alert(J,K){t0.use().log("alert",J,K)}static emergency(J,K){t0.use().log("emergency",J,K)}}async function A$(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,w=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(w).then((H)=>H.arrayBuffer())}class b4 extends l0{service;static _name="ViewRouterServiceContainer";flatViewRoutes={};routeManifest={};componentTree=[];flatComponentTree=[];root=null;constructor(J){super();this.service=J;let K={"/":J.rootRouter,"/auth":K6};this.flatViewRoutes=i5(K),this.routeManifest=r5(K),this.componentTree=o5(K),this.flatComponentTree=h4(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:!0,sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.service.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:w,prefetchedData:H,url:W,user:z,viewData:U,breadcrumbs:$,urlLocaleSegment:V,meta:B,isOgRequest:M}=J,A=w.replace(`/${V}`,""),G={kind:"view",data:{meta:B,pageData:{[A]:U},__csrf:K.toString("base64"),prefetchedData:H,i18n:Z,auth:{user:z},routeManifest:this.routeManifest,breadcrumbs:$,router:{urlLocaleSegment:V,pathname:Y,params:Q,currentPath:w,searchParams:W.search,is404:!Y?!0:!1},componentTree:[["404",[]],...this.componentTree]},head:{}},N=this.root,L=this.routeManifest[Y];return async(E)=>{let{bootstrapModules:D,loaders:_,getStyles:j,viewImportMap:T,cssManifest:R,ogMap:P}=E;if(M){let c=null,r=null;for(let C of L)if(typeof P[C]==="function")r=C,c=P[C];if(!c)return new Response("Not found",{status:404});let u=Object.values(G.data.pageData)[0];try{await dK(x4(c,u[r]),{onError:()=>{}})}catch(C){let{fonts:v,...I}=C.satoriOptions,f=await Promise.all(v.map((m)=>{return A$(m.name,m.weight,m.style).then((d)=>({...m,data:d}))})),l=new Headers(X);l.set("Content-Type","image/png");let t=await fK(C.jsx,{...I,fonts:f}),o=await B$(Buffer.from(t)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(o,{headers:l})}return new Response("data")}G.data.cssManifest=R;let h=await dK(x4(q$,{children:[...await j(L),x4(N,{data:G.data,viewImportMap:T,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(G.data)}; window.loaders=${_}`,bootstrapModules:D});return new Response(h,{status:!Y?404:200,headers:X})}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...w]=Z.split("/"),H=`/${w.join("/")}`,W=null,z=null,U=C0.use();if(!U.service.supportedLocales.includes(Q))H=Z;else W=Q,z=Q;if(U.isEnabled&&!X){let G=C0.use().detectLocale(new w0(J,{},"view",H));if(z===null&&G!==U.service.defaultLocale){let N=C0.use().detectLocale(new w0(J,{},"view",H)),L=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${N}${L}`}})}}H=H.replace("//","/");let $=[],V=[],B=null,M={};try{for(let[G,N]of Object.entries(this.flatViewRoutes)){let L=new lK({pathname:G});if(L.test({pathname:H})){B=G,M=L.exec({pathname:H})?.pathname.groups,$=N.exec,V=N.middleware;break}}}catch(G){throw G}let A=new w0(J,M,"view",B);return await E0.run(A,async()=>{let G=null,N=E0.getStore();if(z){let E=z.replaceAll("/","");H8.setLocale(E)}else H8.setLocale();let L=N.req;try{await L8.use().runMiddleware(V);let E=C0.use(),D=E.isEnabled,_={};if(D){let I=null;if(z)I=z.replaceAll("/",""),N.setLocale(I);else I=E.detectLocale(new w0(J,L.params)),N.setLocale(I);let f=E.getPageTranslations(I,L.routePath);_={supportedLocales:E.service.supportedLocales,currentLocale:I,dictionary:{[I]:f},defaultLocale:E.service.defaultLocale}}let j=await Promise.all([...$.map((I)=>I(L)),...Array.from(N.prefetchPromiseQueue).map((I)=>I())]),T=N.cookies,R=N.headers,P=N.prefetchedResources;G={data:j,cookies:T,headers:R,user:N.user,prefetchedData:Object.fromEntries(P.entries()),currentPathName:L.routePath,params:L.params,urlLocaleSegment:W,meta:N.renderMeta()};let{params:h,currentPathName:c,user:r}=G,u={},C={};for(let I of j){let[f,l]=Object.entries(I)?.[0]??[];if(!f||!l)continue;C[`${f}:${c}`]=l.breadcrumb,u[f]=l}if(Y)return R.set("Content-Type","application/json"),T.forEach((I)=>R.append("Set-Cookie",I.toString())),await this.service.onRequestEnd(L),new Response(JSON.stringify({meta:G.meta,data:{[H]:u},breadcrumbs:C,prefetchedData:G.prefetchedData,i18n:_,is404:!c}),{headers:R});R.set("Content-Type","text/html");for(let I of T)R.append("Set-Cookie",I.toString());let v=Bun.CSRF.generate(process.env.SECRET);R.append("Set-Cookie",`csrf_token=${v}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(L)}catch(I){n5.error(I?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(I)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:c,headers:R,i18n:_,params:h,pathname:K.pathname,prefetchedData:G.prefetchedData,url:K,user:r,viewData:u,breadcrumbs:C,urlLocaleSegment:W,meta:G.meta,isOgRequest:X})}catch(E){if(E.kind===i8)if(Y){let{status:D=400,data:_,directive:j,headers:T}=E.payload.api;return new Response(JSON.stringify({data:_,directive:j}),{headers:T,status:D})}else{let{status:D=400,error:_}=E.payload.view;return new Response(_?.message,{...E.payload.view,status:D})}else throw this.service.onRequestFail(L,E),E}})}}class cK extends G1{routes={"/api-routes":this.get(()=>{let J=s5.use().flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:w,middleware:H}=Q;K.push({path:Y,method:Z,middleware:H})}return K}),"/view-routes":this.get(()=>{let J=b4.use().flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class s5 extends l0{service;static _name="ApiRouterServiceContainer";flatRoutes={};constructor(J){super();this.service=J;this.flatRoutes=H6({"/":this.service.rootRouter.bind(this.service),"/auth":Y6,"/__gemi__/services/i18n":X6,"/__gemi__/services/logs":W6,"/__gemi__/services/image":Z6,"/__gemi__/debug":cK})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let w=new URLPattern({pathname:Q});if(w.test({pathname:Y})){Z=Q,X=w.exec({pathname:Y})?.pathname.groups;break}}catch(w){console.error(w)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await L8.use().runMiddleware(X)}catch(Z){if(Z.kind===i8){if(K.rawRequest.url.includes("/api")){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}})}}else throw this.service.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=E0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===i8){let{status:w=400,data:H,headers:W}=Q.payload.api;return new Response(JSON.stringify(H),{status:w,headers:{"Content-Type":"application/json",...W}})}throw this.service.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}async handleApiRequest(J){let{params:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new w0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.service.onRequestStart(Z);return await E0.run(Z,async()=>{let Q=E0.getStore(),w=C0.use();if(w.isEnabled){let U=w.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let H=await this.runRouteMiddleware(Y,Z);if(H instanceof Response)return H;let W=await this.getRouteData(Y);if(W instanceof Response)return W;let z=Q.headers;if(z.append("Content-Type","application/json"),Q.cookies.forEach((U)=>z.append("Set-Cookie",U.toString())),Q.destroy(),!J.url.includes("/__gemi__"))this.service.onRequestEnd(Z);return new Response(JSON.stringify(W),{headers:z})})}}class a5{static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},w=E0.getStore();if(w.req.kind==="api")throw new Error("Query.prefetch() cannot be called from an API request");let H=w.req.rawRequest,W=new URL(H.url),z=new URLSearchParams(c4(Z));z.delete("json"),z.sort();let U=[`${g1(J,Q)}`,z.toString()].filter((G)=>G.length>0).join("?"),$=`${W.origin}/${U}`,V=new Request($,{headers:H.headers}),B=new w0(V,Q),M=(G)=>{w.prefetchedResources.set(g1(J,Q),{[z.toString()]:G})},A=()=>{return E0.run(B,async()=>{let G=await s5.use().getRouteData(J);return M(G),G})};return{instant:A,prefetch:()=>{w.prefetchPromiseQueue.add(A)}}}static instant(J,...K){return a5.prepare(J,...K).instant()}static prefetch(J,...K){return a5.prepare(J,...K).prefetch()}}class uK{static absolute(J,...K){return`${process.env.HOST_NAME}${g1(String(J),K[0]??{})}`}static relative(J,...K){return g1(String(J),K[0]??{})}}class pK{name="Meta";static description(J){E0.getStore().metadata.description(J)}static title(J){E0.getStore().metadata.title(J)}static openGraph(J){E0.getStore().metadata.openGraph(J)}}export{uK as Url,G$ as Redirect,a5 as Query,pK as Meta,n5 as Log,H8 as I18n,l4 as FileStorage,a8 as Broadcast,k1 as Auth};export{W8 as y,O8 as z,t0 as A,nK as B,a4 as C,L8 as D,b4 as E,s5 as F};
67
67
 
68
- //# debugId=47824F3BF871C78F64756E2164756E21
68
+ //# debugId=FC6298733DEBB79F64756E2164756E21