zframes 0.8.0 → 0.8.2

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 (225) hide show
  1. package/dist/index.js +15 -6
  2. package/package.json +5 -5
  3. package/runtime/assets/bar-chart-DCMbxUJx.js +1 -0
  4. package/runtime/assets/{bitcoin-dominance-Y-pfXAWg.js → bitcoin-dominance-DQ6fUOfp.js} +1 -1
  5. package/runtime/assets/{breakeven-D5o1aZeG.js → breakeven-BiMfl0NU.js} +1 -1
  6. package/runtime/assets/{breathing-C3xWrMh-.js → breathing-BQamMTOy.js} +1 -1
  7. package/runtime/assets/{btc-block-size-bars-Dm4d1uP6.js → btc-block-size-bars-DbwVb3YX.js} +1 -1
  8. package/runtime/assets/{btc-blocks-Dh75DtBl.js → btc-blocks-UZJqCEtB.js} +1 -1
  9. package/runtime/assets/{btc-difficulty-DT6GcCi7.js → btc-difficulty-BtNgUCRS.js} +1 -1
  10. package/runtime/assets/{btc-difficulty-chart-D6G_nIaV.js → btc-difficulty-chart-BNT2fdwu.js} +1 -1
  11. package/runtime/assets/{btc-fees-CAwJQaIo.js → btc-fees-CJhybpGO.js} +1 -1
  12. package/runtime/assets/{btc-hashrate-CWvKwoGY.js → btc-hashrate-CtKkSA37.js} +1 -1
  13. package/runtime/assets/{btc-mempool-C_PwdChj.js → btc-mempool-Dvlm6Uqk.js} +1 -1
  14. package/runtime/assets/bubbles-shared-DlmjtiIA.js +1 -0
  15. package/runtime/assets/{calculator-DmCi3Diy.js → calculator-vMXfcXI8.js} +1 -1
  16. package/runtime/assets/{capital-structure-bars-CCL6FBZT.js → capital-structure-bars-B8-6gPY8.js} +1 -1
  17. package/runtime/assets/{chain-activity-DmVXPTCW.js → chain-activity-Dj-2gNmT.js} +1 -1
  18. package/runtime/assets/{chain-activity-bars-C2_6k9uI.js → chain-activity-bars-BKvgXG2Z.js} +1 -1
  19. package/runtime/assets/{chain-activity-scatter-KDstJ2gQ.js → chain-activity-scatter-BQHleuZR.js} +1 -1
  20. package/runtime/assets/{chain-price-movers-C7cM87Np.js → chain-price-movers-Brvxvf8U.js} +1 -1
  21. package/runtime/assets/{checklist-aIHO99Oy.js → checklist-CNXEkmSt.js} +1 -1
  22. package/runtime/assets/{clock-RTIdbX_o.js → clock-Cygi_7Rq.js} +1 -1
  23. package/runtime/assets/{coin-momentum-heatmap-BqpZC5MD.js → coin-momentum-heatmap-1twNsb0f.js} +1 -1
  24. package/runtime/assets/{coin-momentum-scatter-BLQuQ5y9.js → coin-momentum-scatter-DPsgGLFi.js} +1 -1
  25. package/runtime/assets/{coin-movers-BcLGwl1y.js → coin-movers-CVT1PPyM.js} +1 -1
  26. package/runtime/assets/{countdown-DiZVeLK1.js → countdown-DSGwZS9O.js} +1 -1
  27. package/runtime/assets/{custom-data-BgQF-y2R.js → custom-data-eTpLXe-p.js} +1 -1
  28. package/runtime/assets/{cycle-signals-1fCJGzfH.js → cycle-signals-DjvuKoAs.js} +1 -1
  29. package/runtime/assets/{cycle-valuation-composite-BBA7wxL2.js → cycle-valuation-composite-D2lAreTy.js} +1 -1
  30. package/runtime/assets/{daily-analysis-w96yBGxi.js → daily-analysis-00KQOxaw.js} +1 -1
  31. package/runtime/assets/{day-meter-D7SyWAWO.js → day-meter-VL3CbmZ4.js} +1 -1
  32. package/runtime/assets/{defi-revenue-DC7iVw-b.js → defi-revenue-DWs3X1sr.js} +1 -1
  33. package/runtime/assets/{dex-hot-pools-CbBeDh7R.js → dex-hot-pools-Btjw9uOK.js} +1 -1
  34. package/runtime/assets/{dex-pool-bubbles-DsS26KRy.js → dex-pool-bubbles-DOWGPgDC.js} +1 -1
  35. package/runtime/assets/{dex-pool-liquidity-scatter-Cam1cxZL.js → dex-pool-liquidity-scatter-DBqKeUjl.js} +1 -1
  36. package/runtime/assets/{dex-pool-treemap-CuU6G6rY.js → dex-pool-treemap-Dev3WsvG.js} +1 -1
  37. package/runtime/assets/{dex-volume-bubbles-DZvYb1Gu.js → dex-volume-bubbles-C9INGAs-.js} +1 -1
  38. package/runtime/assets/{dex-volume-chart-BmJMKgts.js → dex-volume-chart-CdhI9ySp.js} +1 -1
  39. package/runtime/assets/{dex-volume-share-area-B16TypiP.js → dex-volume-share-area-DblxtqOC.js} +1 -1
  40. package/runtime/assets/{dex-volume-treemap-Kl3BycC8.js → dex-volume-treemap-LweUYNfn.js} +1 -1
  41. package/runtime/assets/{dice-BBWeIZ4c.js → dice-CRJFRdlS.js} +1 -1
  42. package/runtime/assets/{dino-game-CacSVnNs.js → dino-game-DIj8Xqmq.js} +1 -1
  43. package/runtime/assets/{divider-BDbJkoKt.js → divider-C0PhyAZz.js} +1 -1
  44. package/runtime/assets/{dominance-bars-D7mHdU5j.js → dominance-bars-CNztOXI9.js} +1 -1
  45. package/runtime/assets/{dominance-gauge-D4Dizu40.js → dominance-gauge-BSlVu-kG.js} +1 -1
  46. package/runtime/assets/{drawdy-C4Xes6ll.js → drawdy-UVwx54Tz.js} +1 -1
  47. package/runtime/assets/{dxy-CQqmlBOH.js → dxy-DDnItBY-.js} +1 -1
  48. package/runtime/assets/{dxy-chart-COvjjHiK.js → dxy-chart-CbyyyRdn.js} +1 -1
  49. package/runtime/assets/{editor-CFgkD4LH.js → editor-CpgNu0wu.js} +1 -1
  50. package/runtime/assets/{etf-flow-bars-DQmhSdlG.js → etf-flow-bars-Dknb70p4.js} +1 -1
  51. package/runtime/assets/{etf-flow-calendar-BtU4tAJx.js → etf-flow-calendar-DXTg-p2v.js} +1 -1
  52. package/runtime/assets/{etf-flows-B5HTl_O2.js → etf-flows-D7WwvrYS.js} +1 -1
  53. package/runtime/assets/{etf-flows-chart-CrJq5l_U.js → etf-flows-chart-D_Ts_7Bc.js} +1 -1
  54. package/runtime/assets/{etf-issuer-bars-C8CS42V9.js → etf-issuer-bars-B5q3WXIk.js} +1 -1
  55. package/runtime/assets/{etf-issuer-treemap-B8V6wOUz.js → etf-issuer-treemap-hdTKUL3C.js} +1 -1
  56. package/runtime/assets/{eth-issuance-impact-DBfYkAhQ.js → eth-issuance-impact-CSucvUy4.js} +1 -1
  57. package/runtime/assets/{eth-staking-CS-soUKT.js → eth-staking-Yp_RzOHD.js} +1 -1
  58. package/runtime/assets/{eth-supply-5f4GEmei.js → eth-supply-jf4tRC80.js} +1 -1
  59. package/runtime/assets/{fear-greed-D20BQ0ai.js → fear-greed-BrDutlol.js} +1 -1
  60. package/runtime/assets/{fear-greed-chart-CzqxRAt0.js → fear-greed-chart-BPAfnROs.js} +1 -1
  61. package/runtime/assets/{filings-feed-C-uvwTLC.js → filings-feed-BrtWoUaf.js} +1 -1
  62. package/runtime/assets/{filings-mix-OIhf0PEq.js → filings-mix-D8Z-fvzY.js} +1 -1
  63. package/runtime/assets/{financial-stress-B29D-qDA.js → financial-stress-DaxcQDnz.js} +1 -1
  64. package/runtime/assets/{flappy-bird-DGYf5Ewk.js → flappy-bird-M38jNjAd.js} +1 -1
  65. package/runtime/assets/{fundamentals-CcvmrNcz.js → fundamentals-TlBRBKFV.js} +1 -1
  66. package/runtime/assets/{funding-bars-D7M6sJZL.js → funding-bars-BPDrsC0K.js} +1 -1
  67. package/runtime/assets/{funding-carry-area-Dq7ytVeR.js → funding-carry-area-BZRpyy3L.js} +1 -1
  68. package/runtime/assets/{funding-comparison-Ci4xJZk2.js → funding-comparison-C1OOzJw-.js} +1 -1
  69. package/runtime/assets/{funding-crowding-scatter-nUiUaNV4.js → funding-crowding-scatter-DDjzoq8v.js} +1 -1
  70. package/runtime/assets/{funding-heatmap-B5zG3T9U.js → funding-heatmap-DqnJJPw0.js} +1 -1
  71. package/runtime/assets/{funding-leaderboard-bars-cf5-s8-T.js → funding-leaderboard-bars-CrQMBbY7.js} +1 -1
  72. package/runtime/assets/{funding-rate-chart-Dp06ipCG.js → funding-rate-chart-dYIjvTBt.js} +1 -1
  73. package/runtime/assets/{funding-spread-bars-CZdgC9ni.js → funding-spread-bars-CRoG-zHf.js} +1 -1
  74. package/runtime/assets/{funding-venue-heatmap-C-Kh1qHo.js → funding-venue-heatmap-DA0JsXzA.js} +1 -1
  75. package/runtime/assets/{fx-board-C4yCDDGZ.js → fx-board-C_h1IJJy.js} +1 -1
  76. package/runtime/assets/{fx-cross-heatmap-DHP7jzo6.js → fx-cross-heatmap-CLHkKvsB.js} +1 -1
  77. package/runtime/assets/{fx-movers-bars-8q6fFcdY.js → fx-movers-bars-_U6XrETl.js} +1 -1
  78. package/runtime/assets/{fx-trend-chart-DEtRTau8.js → fx-trend-chart-Cdi-lmjx.js} +1 -1
  79. package/runtime/assets/{heading-B6HiIuvX.js → heading-BS9IhuAM.js} +1 -1
  80. package/runtime/assets/{hero-number-DUjENGj6.js → hero-number-R-27T2n_.js} +1 -1
  81. package/runtime/assets/{holiday-calendar-qi7M9l4n.js → holiday-calendar-BxcU0Y64.js} +1 -1
  82. package/runtime/assets/{image-D5ZO4DFB.js → image-HcDu9YKF.js} +1 -1
  83. package/runtime/assets/{image-gallery-Dpr218ld.js → image-gallery-BCXhCjqj.js} +1 -1
  84. package/runtime/assets/{index-CiYWppnQ.js → index-BJ1Zyy42.js} +36 -36
  85. package/runtime/assets/index-Bw1aFtyx.js +1 -0
  86. package/runtime/assets/index-yv-SCb9g.css +1 -0
  87. package/runtime/assets/{inflation-pulse-cleNvOgk.js → inflation-pulse-BDmh42Nq.js} +1 -1
  88. package/runtime/assets/{journal-log-BYS6KBP0.js → journal-log-BKsmm4ZL.js} +1 -1
  89. package/runtime/assets/{journal-open-Dd-2HpWe.js → journal-open-CQtXIVzV.js} +1 -1
  90. package/runtime/assets/{journal-results-Bo95cRBC.js → journal-results-BBhWJDi4.js} +1 -1
  91. package/runtime/assets/{journal-score-CQ5jNovg.js → journal-score-DRmD6tOH.js} +1 -1
  92. package/runtime/assets/{journal-ui-P_aNAgF1.js → journal-ui-YZ5om8r6.js} +1 -1
  93. package/runtime/assets/{labor-force-flow-0vecYFin.js → labor-force-flow-B-8gZXZw.js} +1 -1
  94. package/runtime/assets/{labor-market-BSxSRnKx.js → labor-market-C6nbrubk.js} +1 -1
  95. package/runtime/assets/{lightning-stats-CBj576A7.js → lightning-stats-cbygNRrq.js} +1 -1
  96. package/runtime/assets/{link-grid-MCfSDZZw.js → link-grid-C0BQkbQ9.js} +1 -1
  97. package/runtime/assets/{liquidity-basis-bars-CPGTcxkm.js → liquidity-basis-bars-Dd5FSjDX.js} +1 -1
  98. package/runtime/assets/{ma-multiplier-g4p5Pi3k.js → ma-multiplier-CrY1aFKX.js} +1 -1
  99. package/runtime/assets/{macro-calendar-d2JHausW.js → macro-calendar-D9MJ74wW.js} +1 -1
  100. package/runtime/assets/{market-bubbles-CDCGDkEQ.js → market-bubbles-BKLV2VSd.js} +1 -1
  101. package/runtime/assets/{market-cap-treemap-BSElYaQa.js → market-cap-treemap-B9af5p9K.js} +1 -1
  102. package/runtime/assets/{market-hours-BH2Focsr.js → market-hours-jJUnunAF.js} +1 -1
  103. package/runtime/assets/{market-scatter-CdXDxlvI.js → market-scatter-_f6FvF2I.js} +1 -1
  104. package/runtime/assets/{marquee-DAz20C7s.js → marquee-CJGebjBa.js} +1 -1
  105. package/runtime/assets/{mayer-multiple-mJbiBIAH.js → mayer-multiple-DcxCnx6X.js} +1 -1
  106. package/runtime/assets/{mempool-fee-curve-DC21aRj_.js → mempool-fee-curve-yI10fMrE.js} +1 -1
  107. package/runtime/assets/{mining-pools-DDrcI0JC.js → mining-pools-SIhc1qJ_.js} +1 -1
  108. package/runtime/assets/{mining-pools-share-BTghpuPh.js → mining-pools-share-DQSjhlWH.js} +1 -1
  109. package/runtime/assets/{misery-index-BFKKI3-y.js → misery-index-p5iEl6PS.js} +1 -1
  110. package/runtime/assets/{mover-row-9TS6-Vx5.js → mover-row-_czAON2U.js} +1 -1
  111. package/runtime/assets/{movers-bars-BGRZiztL.js → movers-bars-clMvsESM.js} +1 -1
  112. package/runtime/assets/{movers-bubbles-DKwj1mvp.js → movers-bubbles-CnHOfNZx.js} +1 -1
  113. package/runtime/assets/{mvrv-bAGE8y8s.js → mvrv-x4gyjhWx.js} +1 -1
  114. package/runtime/assets/{mvrv-zscore-chart-BBQG73VU.js → mvrv-zscore-chart-BT3IGmGY.js} +1 -1
  115. package/runtime/assets/national-debt-DNtVgcl5.js +1 -0
  116. package/runtime/assets/{news-feed-BdERDNLF.js → news-feed-BVfKqSh7.js} +1 -1
  117. package/runtime/assets/{nft-activity-bars-DDM29Mlf.js → nft-activity-bars-lFRednN3.js} +1 -1
  118. package/runtime/assets/{nft-bubbles-piuKr-F-.js → nft-bubbles-ClNH9-_X.js} +1 -1
  119. package/runtime/assets/{nft-collections-BRT3lGEI.js → nft-collections-B9RW4PJG.js} +1 -1
  120. package/runtime/assets/{nft-scatter-v2AlapcL.js → nft-scatter--MbPsUx4.js} +1 -1
  121. package/runtime/assets/{nft-treemap-DOoBuiAe.js → nft-treemap-DBkTmq6-.js} +1 -1
  122. package/runtime/assets/{note-Cge-Twe7.js → note-BhUZxKk8.js} +1 -1
  123. package/runtime/assets/{nupl-DyKmiugr.js → nupl-D3l-QZE3.js} +1 -1
  124. package/runtime/assets/{nupl-cycle-chart-CjPXwU_H.js → nupl-cycle-chart-BskEKMiX.js} +1 -1
  125. package/runtime/assets/{nyfed-fed-funds-band-gauge-CgtBzt19.js → nyfed-fed-funds-band-gauge-CyShM9Rb.js} +1 -1
  126. package/runtime/assets/{nyfed-reference-rate-bars-XM22e3m1.js → nyfed-reference-rate-bars-WKmIeI9B.js} +1 -1
  127. package/runtime/assets/{nyfed-sofr-term-averages-bars-BX8DdQdy.js → nyfed-sofr-term-averages-bars-BXymij4O.js} +1 -1
  128. package/runtime/assets/{ofr-stress-category-area-DJ9A1Jek.js → ofr-stress-category-area-Cq2zYtm9.js} +1 -1
  129. package/runtime/assets/{ohlcv-volume-bars-DjbIATbf.js → ohlcv-volume-bars-BqgMyH4V.js} +1 -1
  130. package/runtime/assets/{oi-treemap-DN3lHhIw.js → oi-treemap-Bu6FQGPf.js} +1 -1
  131. package/runtime/assets/{onchain-oscillator-overlay-BhHhVrFw.js → onchain-oscillator-overlay-BETEO4VQ.js} +1 -1
  132. package/runtime/assets/{open-interest-CQz_hue7.js → open-interest-DPwK2Vft.js} +1 -1
  133. package/runtime/assets/{options-flow-skew-BnNt577O.js → options-flow-skew-CLWqzUM0.js} +1 -1
  134. package/runtime/assets/{options-iv-DRlcGyOA.js → options-iv-tjSjFT91.js} +1 -1
  135. package/runtime/assets/{options-max-pain-multi-BWvVp8w0.js → options-max-pain-multi-bMgyJ7e8.js} +1 -1
  136. package/runtime/assets/{options-max-pain-DttmKvGL.js → options-max-pain-v6hCUt4V.js} +1 -1
  137. package/runtime/assets/{options-oi-ladder-heatmap-D-GtQnYR.js → options-oi-ladder-heatmap-M34leT_q.js} +1 -1
  138. package/runtime/assets/{options-oi-skew-C7zh_o7-.js → options-oi-skew-DxGLV4Co.js} +1 -1
  139. package/runtime/assets/{options-oi-strike-CRd6fuzZ.js → options-oi-strike-CoVTVWcx.js} +1 -1
  140. package/runtime/assets/{options-put-call-DaSJMaWB.js → options-put-call-fRylJJIM.js} +1 -1
  141. package/runtime/assets/{options-vol-smile-DLg5yS2Q.js → options-vol-smile-DsHa2Bug.js} +1 -1
  142. package/runtime/assets/{options-vol-spread-DzhDF8S2.js → options-vol-spread-BB1X9lml.js} +1 -1
  143. package/runtime/assets/{payrolls-bars-DUfM2bRV.js → payrolls-bars-CQOZQEvE.js} +1 -1
  144. package/runtime/assets/{pi-cycle-Dnep9J9d.js → pi-cycle-BTdRfEfm.js} +1 -1
  145. package/runtime/assets/{pomodoro-462F-K_R.js → pomodoro-lYAXlnH5.js} +1 -1
  146. package/runtime/assets/{portfolio-allocation-BmnvEhEW.js → portfolio-allocation-CJCJ-fv5.js} +1 -1
  147. package/runtime/assets/{portfolio-common-DPg-LM-S.js → portfolio-common-BMRwgiXd.js} +1 -1
  148. package/runtime/assets/{portfolio-holdings-pJ3PcDtA.js → portfolio-holdings-BwUpyolL.js} +1 -1
  149. package/runtime/assets/{portfolio-movers-88ySthIZ.js → portfolio-movers-CGcHyyU9.js} +1 -1
  150. package/runtime/assets/{portfolio-value-BIrDQqeD.js → portfolio-value--mB-D1zn.js} +1 -1
  151. package/runtime/assets/{portfolio-value-bars-B5PlVsS-.js → portfolio-value-bars-C1sg3z_9.js} +1 -1
  152. package/runtime/assets/{prediction-market-bars-CjhLqjKZ.js → prediction-market-bars-CV7qn0TK.js} +1 -1
  153. package/runtime/assets/{prediction-market-scatter-PFzl9aUV.js → prediction-market-scatter-vvAyUSMc.js} +1 -1
  154. package/runtime/assets/{prediction-markets-COBBk6vK.js → prediction-markets-Dj5pUGQ9.js} +1 -1
  155. package/runtime/assets/{prediction-markets-bubble-OHW4Fyta.js → prediction-markets-bubble-Dy58nx5D.js} +1 -1
  156. package/runtime/assets/{price-chart-CttRCaIA.js → price-chart-BWVJKy6l.js} +1 -1
  157. package/runtime/assets/{price-compare-DNhtDisn.js → price-compare-X_somRkJ.js} +1 -1
  158. package/runtime/assets/{price-liveline-DR_topxQ.js → price-liveline-BcfvYH4i.js} +1 -1
  159. package/runtime/assets/{price-ticker-DgbqT8Ft.js → price-ticker-Dp5X5iEE.js} +1 -1
  160. package/runtime/assets/{protocol-fees-bubbles-DJKiIQLP.js → protocol-fees-bubbles-cOlmopfM.js} +1 -1
  161. package/runtime/assets/{protocol-fees-treemap-YkaWU0jI.js → protocol-fees-treemap-k3DCqpib.js} +1 -1
  162. package/runtime/assets/{protocol-fees-vs-tvl-scatter-BdbfLYV5.js → protocol-fees-vs-tvl-scatter-DE0XqWUP.js} +1 -1
  163. package/runtime/assets/{protocol-tvl-bubbles-BC38d6kb.js → protocol-tvl-bubbles-C_y8RNpr.js} +1 -1
  164. package/runtime/assets/{protocol-tvl-by-category-D6xbGiRH.js → protocol-tvl-by-category-CU3EhtYv.js} +1 -1
  165. package/runtime/assets/{protocol-tvl-chart-MRYKJKC8.js → protocol-tvl-chart-BSjYp87K.js} +1 -1
  166. package/runtime/assets/{protocol-tvl-share-area-BaLjcOpi.js → protocol-tvl-share-area-A9uUDjqD.js} +1 -1
  167. package/runtime/assets/{protocol-tvl-treemap-DdIxlR7K.js → protocol-tvl-treemap-DK99PI9E.js} +1 -1
  168. package/runtime/assets/{puell-multiple-C-5BP2qr.js → puell-multiple-DUwx8WAi.js} +1 -1
  169. package/runtime/assets/{put-call-gauge-CIL56SWp.js → put-call-gauge-wPFbaG0I.js} +1 -1
  170. package/runtime/assets/{quote-BCahDrH2.js → quote-BEXrdAL4.js} +1 -1
  171. package/runtime/assets/{rates-board-JeVYxfxX.js → rates-board-Bo-1vZL3.js} +1 -1
  172. package/runtime/assets/{real-wages-CxYcPexL.js → real-wages-DFbQjlXf.js} +1 -1
  173. package/runtime/assets/{realized-price-DfKM0AQB.js → realized-price-C7sCYZ-5.js} +1 -1
  174. package/runtime/assets/{reserve-risk-CZ8W5vox.js → reserve-risk-CYWr6Bnu.js} +1 -1
  175. package/runtime/assets/returns-projector-Bitu8mA2.js +1 -0
  176. package/runtime/assets/{risk-reward-DgkqN_mw.js → risk-reward-5CA4dPWK.js} +1 -1
  177. package/runtime/assets/{rsi-momentum-DLc5Fw80.js → rsi-momentum-BdScXy4t.js} +1 -1
  178. package/runtime/assets/{rules-card-B5gZWhLc.js → rules-card-BxdIuORn.js} +1 -1
  179. package/runtime/assets/scatter-chart-B78EA7lD.js +1 -0
  180. package/runtime/assets/{sector-bars-CahrlX_u.js → sector-bars-B4Nabix2.js} +1 -1
  181. package/runtime/assets/{sector-bubbles-DdfZ6e5Q.js → sector-bubbles-D_s1FnKb.js} +1 -1
  182. package/runtime/assets/{sector-performance-BdYXFE7z.js → sector-performance-C8K8FBsp.js} +1 -1
  183. package/runtime/assets/{sector-treemap-DBA5ilb3.js → sector-treemap-DOn3li5j.js} +1 -1
  184. package/runtime/assets/{sentiment-gauge-BD6U6U9e.js → sentiment-gauge-D-TyqTrT.js} +1 -1
  185. package/runtime/assets/{session-progress-1UWc9VqZ.js → session-progress-2uZKU_tb.js} +1 -1
  186. package/runtime/assets/{short-volume-BR5Bd4dE.js → short-volume-DrAqZxL_.js} +1 -1
  187. package/runtime/assets/{short-volume-bars-qHwd3DwT.js → short-volume-bars-D0tDnbRp.js} +1 -1
  188. package/runtime/assets/{snake-VPnsi0wu.js → snake-CPrCYXRC.js} +1 -1
  189. package/runtime/assets/{sopr-pPCw72oY.js → sopr-CL-DcV9H.js} +1 -1
  190. package/runtime/assets/{spotify-embed-BAYLjQ13.js → spotify-embed-Cuyo3WcD.js} +1 -1
  191. package/runtime/assets/{stablecoin-chains-gXvliWf0.js → stablecoin-chains-BNyBP4r7.js} +1 -1
  192. package/runtime/assets/{stablecoin-supply-cKbLU-qq.js → stablecoin-supply-CDoJSW65.js} +1 -1
  193. package/runtime/assets/{stopwatch-USjNEK2T.js → stopwatch-C5UbM7BR.js} +1 -1
  194. package/runtime/assets/{top-movers-m16-LIpD.js → top-movers-n7gjNCAB.js} +1 -1
  195. package/runtime/assets/{treasury-auction-demand-scatter-qtbp6UWp.js → treasury-auction-demand-scatter-B2GgfweB.js} +1 -1
  196. package/runtime/assets/{treasury-auction-size-bars-BN1UAVmo.js → treasury-auction-size-bars-RSKrqPZN.js} +1 -1
  197. package/runtime/assets/{treasury-auctions-BiOh-3vx.js → treasury-auctions-DmhLNhux.js} +1 -1
  198. package/runtime/assets/{treasury-avg-rate-bars-CJ1IViWy.js → treasury-avg-rate-bars-CHo7_TZ6.js} +1 -1
  199. package/runtime/assets/{treasury-debt-composition-area-BPy8-h89.js → treasury-debt-composition-area-D9TIg2Fu.js} +1 -1
  200. package/runtime/assets/{trending-bars-D_8IduL8.js → trending-bars-CFUOf_2T.js} +1 -1
  201. package/runtime/assets/{trending-bubbles-DYxWvz2k.js → trending-bubbles-CWixlrYZ.js} +1 -1
  202. package/runtime/assets/{trending-coins-DqSuuuF9.js → trending-coins-XmlyMu9W.js} +1 -1
  203. package/runtime/assets/{tvl-bars-inXG_MRY.js → tvl-bars-CMr0p3wy.js} +1 -1
  204. package/runtime/assets/{tvl-bubbles-C5-rCI8e.js → tvl-bubbles-CBwy6njm.js} +1 -1
  205. package/runtime/assets/{tvl-treemap-KR6k_75O.js → tvl-treemap-Df9Sw5pQ.js} +1 -1
  206. package/runtime/assets/{video-DcFqrZ43.js → video-Cb7G8kra.js} +1 -1
  207. package/runtime/assets/{volume-movers-scatter-C4nPVYp-.js → volume-movers-scatter-MwF5sr-K.js} +1 -1
  208. package/runtime/assets/volume-profile-DM349em1.js +1 -0
  209. package/runtime/assets/{volume-share-donut-DCtz5g5J.js → volume-share-donut-FMessqoh.js} +1 -1
  210. package/runtime/assets/{yield-composition-scatter-Djup_wzz.js → yield-composition-scatter-51jp_MgP.js} +1 -1
  211. package/runtime/assets/{yield-curve-BM9IJJt6.js → yield-curve-WOaDSVNR.js} +1 -1
  212. package/runtime/assets/{yield-momentum-bars-gE1357zR.js → yield-momentum-bars-0hhg35dJ.js} +1 -1
  213. package/runtime/assets/yield-risk-pie-mBxQGJN1.js +1 -0
  214. package/runtime/assets/{yield-scanner-CbcLN2kK.js → yield-scanner-DTDsWH9C.js} +1 -1
  215. package/runtime/assets/{yield-scatter-B6ic-t9n.js → yield-scatter-BkeRhOK4.js} +1 -1
  216. package/runtime/index.html +2 -2
  217. package/runtime/assets/bar-chart-DmyKFv_O.js +0 -1
  218. package/runtime/assets/bubbles-shared-DY914nhm.js +0 -1
  219. package/runtime/assets/index-5ezz63At.css +0 -1
  220. package/runtime/assets/index-D051JGM1.js +0 -1
  221. package/runtime/assets/national-debt-DKFxcreA.js +0 -1
  222. package/runtime/assets/returns-projector-D8UX1710.js +0 -1
  223. package/runtime/assets/scatter-chart-B28DJ7P-.js +0 -1
  224. package/runtime/assets/volume-profile-BYg0s84c.js +0 -1
  225. package/runtime/assets/yield-risk-pie-qhN37WPr.js +0 -1
@@ -1 +1 @@
1
- import{r as s,j as t}from"./react-qoZPGuNy.js";import{i as w}from"./content-shared-BZ1XzrJx.js";import{f as k,aU as x}from"./index-CiYWppnQ.js";import{F as b}from"./ui-Bq3RQsdJ.js";x.schema;const h="var(--color-highlight)",p={coin:"Coin flip",dice:"Dice roll",list:"Random pick"},v={1:[!1,!1,!1,!1,!0,!1,!1,!1,!1],2:[!0,!1,!1,!1,!1,!1,!1,!1,!0],3:[!0,!1,!1,!1,!0,!1,!1,!1,!0],4:[!0,!1,!0,!1,!1,!1,!0,!1,!0],5:[!0,!1,!0,!1,!0,!1,!0,!1,!0],6:[!0,!1,!0,!0,!1,!0,!0,!1,!0]};function c(r,e){return r==="coin"?Math.random()<.5?"Heads":"Tails":r==="dice"?String(Math.floor(Math.random()*6)+1):e.length===0?"":e[Math.floor(Math.random()*e.length)]??""}function N({value:r}){const e=v[r];return e?t.jsx("div",{className:"grid grid-cols-3 gap-1","aria-hidden":!0,children:e.map((a,l)=>t.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:a?h:"transparent"}},l))}):null}function E({config:r}){const{mode:e,options:a,label:l}=r,n=e==="list"&&a.length===0,[o,f]=s.useState(()=>c(e,a)),[i,u]=s.useState(!1);s.useEffect(()=>{f(c(e,a))},[e,a]),s.useEffect(()=>{if(!i)return;let d=0;const m=window.setInterval(()=>{f(c(e,a)),d+=1,d>=6&&(window.clearInterval(m),u(!1))},60);return()=>window.clearInterval(m)},[i,e,a]);const g=s.useCallback(()=>{n||u(!0)},[n]);if(n)return t.jsx(b,{children:"add options to decide"});const j=e==="list"?"metric-lg":"metric-xl";return t.jsxs("button",{type:"button",onClick:g,"aria-label":`${p[e]} — roll again`,className:`flex h-full w-full cursor-pointer flex-col items-center justify-center gap-2 px-3 py-2 ${w}`,children:[t.jsx("span",{className:"caption text-soft uppercase tracking-[0.12em]",children:p[e]}),t.jsx("span",{"aria-live":"polite",className:`${j} max-w-full break-words text-center leading-none transition-transform`,style:{color:h,transform:i?"scale(1.08)":void 0},children:o}),e==="dice"&&t.jsx(N,{value:Number(o)}),l.trim()&&t.jsx("span",{className:"caption text-soft max-w-full text-center",children:l.trim()}),t.jsx("span",{className:"caption text-disabled uppercase tracking-[0.12em]",children:"click to roll"})]})}const F=k({...x,component:E});export{F as diceFrame};
1
+ import{r as s,j as t}from"./react-qoZPGuNy.js";import{i as w}from"./content-shared-BZ1XzrJx.js";import{f as k,aU as x}from"./index-BJ1Zyy42.js";import{F as b}from"./ui-Bq3RQsdJ.js";x.schema;const h="var(--color-highlight)",p={coin:"Coin flip",dice:"Dice roll",list:"Random pick"},v={1:[!1,!1,!1,!1,!0,!1,!1,!1,!1],2:[!0,!1,!1,!1,!1,!1,!1,!1,!0],3:[!0,!1,!1,!1,!0,!1,!1,!1,!0],4:[!0,!1,!0,!1,!1,!1,!0,!1,!0],5:[!0,!1,!0,!1,!0,!1,!0,!1,!0],6:[!0,!1,!0,!0,!1,!0,!0,!1,!0]};function c(r,e){return r==="coin"?Math.random()<.5?"Heads":"Tails":r==="dice"?String(Math.floor(Math.random()*6)+1):e.length===0?"":e[Math.floor(Math.random()*e.length)]??""}function N({value:r}){const e=v[r];return e?t.jsx("div",{className:"grid grid-cols-3 gap-1","aria-hidden":!0,children:e.map((a,l)=>t.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:a?h:"transparent"}},l))}):null}function E({config:r}){const{mode:e,options:a,label:l}=r,n=e==="list"&&a.length===0,[o,f]=s.useState(()=>c(e,a)),[i,u]=s.useState(!1);s.useEffect(()=>{f(c(e,a))},[e,a]),s.useEffect(()=>{if(!i)return;let d=0;const m=window.setInterval(()=>{f(c(e,a)),d+=1,d>=6&&(window.clearInterval(m),u(!1))},60);return()=>window.clearInterval(m)},[i,e,a]);const g=s.useCallback(()=>{n||u(!0)},[n]);if(n)return t.jsx(b,{children:"add options to decide"});const j=e==="list"?"metric-lg":"metric-xl";return t.jsxs("button",{type:"button",onClick:g,"aria-label":`${p[e]} — roll again`,className:`flex h-full w-full cursor-pointer flex-col items-center justify-center gap-2 px-3 py-2 ${w}`,children:[t.jsx("span",{className:"caption text-soft uppercase tracking-[0.12em]",children:p[e]}),t.jsx("span",{"aria-live":"polite",className:`${j} max-w-full break-words text-center leading-none transition-transform`,style:{color:h,transform:i?"scale(1.08)":void 0},children:o}),e==="dice"&&t.jsx(N,{value:Number(o)}),l.trim()&&t.jsx("span",{className:"caption text-soft max-w-full text-center",children:l.trim()}),t.jsx("span",{className:"caption text-disabled uppercase tracking-[0.12em]",children:"click to roll"})]})}const F=k({...x,component:E});export{F as diceFrame};
@@ -1 +1 @@
1
- import{r as s,j as M}from"./react-qoZPGuNy.js";import{a as P,d as _,G as T}from"./game-ui-BiMS2KJf.js";import{f as k,G as z}from"./index-CiYWppnQ.js";import"./format-DxkEZcwQ.js";const F=.6,U=-12,I=40,W=40,b=44,Y=24,X=40,H=3,q=5e-4,p={ground:"rgba(255, 255, 255, 0.1)",groundTexture:"rgba(255, 255, 255, 0.06)",dino:"rgba(255, 255, 255, 1)",eye:"rgba(0, 0, 0, 0.8)",cactus:"#25A78D"};function L(t,n,o,c){t.fillStyle=p.dino,t.fillRect(n+10,o+10,25,24),t.fillRect(n+20,o,20,16),t.fillStyle=p.eye,t.fillRect(n+32,o+4,4,4),t.fillStyle=p.dino,t.fillRect(n,o+16,14,8),t.fillRect(n-4,o+12,8,8),c===null?(t.fillRect(n+12,o+34,6,10),t.fillRect(n+24,o+34,6,10)):(t.fillRect(n+12,o+34,6,c===0?10:6),t.fillRect(n+24,o+34,6,c===1?10:6)),t.fillRect(n+30,o+18,4,10)}function B(t,n,o,c,m){const f=o-m;t.fillStyle=p.cactus,t.fillRect(n+c/2-4,f,8,m),t.fillRect(n,f+10,8,6),t.fillRect(n,f+10,4,14),t.fillRect(n+c-8,f+18,8,6),t.fillRect(n+c-4,f+18,4,12)}function N(t,n,o,c,m,f){const u=t.height-I;n.clearRect(0,0,t.width,t.height),n.fillStyle=p.ground,n.fillRect(0,u,t.width,2),L(n,50,u-b,null),n.textAlign="center",o==="idle"?(n.fillStyle=T.text,n.font='bold 14px "DM Sans", sans-serif',n.fillText("Press SPACE or tap to start",t.width/2,t.height/2-30)):(n.fillStyle=T.gameOver,n.font='bold 20px "DM Sans", sans-serif',n.fillText("GAME OVER",t.width/2,t.height/2-40),n.fillStyle=T.text,n.font='bold 14px "DM Sans", sans-serif',n.fillText(`Score: ${c}`,t.width/2,t.height/2-10),n.fillStyle=T.textSoft,n.fillText("Press SPACE or tap to restart",t.width/2,t.height/2+20)),n.textAlign="left",_(t,n,c,m,f)}function K(){const t=s.useRef(null),n=s.useRef(null),[o,c]=s.useState("idle"),[m,f]=s.useState(0),[u,V]=s.useState(()=>{if(typeof window<"u"){const e=localStorage.getItem("zframes-dino-high-score");return e?parseInt(e,10):0}return 0}),[v,J]=s.useState(!1),g=s.useRef(0),S=s.useRef(u),D=s.useRef(o),y=s.useRef(P(null));s.useEffect(()=>{S.current=u,u>0&&localStorage.setItem("zframes-dino-high-score",String(u))},[u]),s.useEffect(()=>{D.current=o},[o]);const R=s.useRef({dinoY:0,dinoVelocity:0,isJumping:!1,obstacles:[],speed:H,frameCount:0,groundOffset:0}),G=s.useCallback(()=>{const e=t.current;e&&(R.current={dinoY:e.height-I-b,dinoVelocity:0,isJumping:!1,obstacles:[],speed:H,frameCount:0,groundOffset:0},g.current=0,f(0))},[]),C=s.useCallback(()=>{var i;if((i=n.current)==null||i.focus(),o!=="playing"){G(),c("playing");return}const e=R.current;e.isJumping||(e.dinoVelocity=U,e.isJumping=!0)},[o,G]);return s.useEffect(()=>{const e=a=>{const l=a.target;l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.isContentEditable||(a.code==="Space"||a.code==="ArrowUp")&&(a.preventDefault(),C())},i=n.current;if(i)return i.addEventListener("keydown",e),()=>i.removeEventListener("keydown",e)},[C]),s.useLayoutEffect(()=>{const e=t.current;if(!e)return;const i=()=>{const l=e.parentElement;if(l&&l.clientWidth>0&&l.clientHeight>0){e.width=l.clientWidth,e.height=l.clientHeight,y.current=P(e),R.current.dinoY=e.height-I-b;const E=e.getContext("2d");E&&D.current!=="playing"&&N(e,E,D.current,g.current,S.current,y.current),J(A=>!A)}};i();const a=new ResizeObserver(i);return a.observe(e.parentElement),()=>a.disconnect()},[]),s.useEffect(()=>{if(o!=="playing")return;const e=t.current,i=e==null?void 0:e.getContext("2d");if(!e||!i)return;let a;const l=e.height-I,E=()=>{i.fillStyle=p.ground,i.fillRect(0,l,e.width,2),i.fillStyle=p.groundTexture;const r=R.current.groundOffset%30;for(let h=-r;h<e.width;h+=30)i.beginPath(),i.arc(h,l+12,1.5,0,Math.PI*2),i.fill(),i.beginPath(),i.arc(h+15,l+20,1,0,Math.PI*2),i.fill()},A=r=>{const w=R.current.dinoY;return 50+W-5>r.x&&55<r.x+r.width&&w+b>l-r.height&&w+5<l},O=()=>{const r=R.current;i.clearRect(0,0,e.width,e.height),r.dinoVelocity+=F,r.dinoY+=r.dinoVelocity;const h=l-b;r.dinoY>=h&&(r.dinoY=h,r.dinoVelocity=0,r.isJumping=!1),r.obstacles=r.obstacles.filter(d=>d.x>-Y),r.obstacles.forEach(d=>{d.x-=r.speed});const w=r.obstacles[r.obstacles.length-1],j=300+Math.random()*200;(!w||w.x<e.width-j)&&Math.random()<.02&&r.obstacles.push({x:e.width,width:Y,height:X});for(const d of r.obstacles)if(A(d)){g.current>S.current&&(S.current=g.current,V(g.current)),c("gameover");return}r.frameCount++,r.frameCount%6===0&&(g.current+=1,f(g.current)),r.speed+=q,r.groundOffset+=r.speed,E(),L(i,50,r.dinoY,r.isJumping?null:Math.floor(r.frameCount/5)%2),r.obstacles.forEach(d=>B(i,d.x,l,d.width,d.height)),_(e,i,g.current,S.current,y.current),a=requestAnimationFrame(O)};return a=requestAnimationFrame(O),()=>cancelAnimationFrame(a)},[o]),s.useEffect(()=>{if(o==="playing")return;const e=t.current,i=e==null?void 0:e.getContext("2d");!e||!i||N(e,i,o,m,u,y.current)},[o,m,u,v]),M.jsx("div",{ref:n,tabIndex:0,className:"relative h-full w-full cursor-pointer select-none overflow-hidden outline-none",onClick:C,onTouchStart:C,role:"application","aria-label":"Dino running game. Press space or tap to jump over obstacles.",children:M.jsx("canvas",{ref:t,className:"h-full w-full"})})}const ee=k({...z,component:K});export{ee as dinoGameFrame};
1
+ import{r as s,j as M}from"./react-qoZPGuNy.js";import{a as P,d as _,G as T}from"./game-ui-BiMS2KJf.js";import{f as k,G as z}from"./index-BJ1Zyy42.js";import"./format-DxkEZcwQ.js";const F=.6,U=-12,I=40,W=40,b=44,Y=24,X=40,H=3,q=5e-4,p={ground:"rgba(255, 255, 255, 0.1)",groundTexture:"rgba(255, 255, 255, 0.06)",dino:"rgba(255, 255, 255, 1)",eye:"rgba(0, 0, 0, 0.8)",cactus:"#25A78D"};function L(t,n,o,c){t.fillStyle=p.dino,t.fillRect(n+10,o+10,25,24),t.fillRect(n+20,o,20,16),t.fillStyle=p.eye,t.fillRect(n+32,o+4,4,4),t.fillStyle=p.dino,t.fillRect(n,o+16,14,8),t.fillRect(n-4,o+12,8,8),c===null?(t.fillRect(n+12,o+34,6,10),t.fillRect(n+24,o+34,6,10)):(t.fillRect(n+12,o+34,6,c===0?10:6),t.fillRect(n+24,o+34,6,c===1?10:6)),t.fillRect(n+30,o+18,4,10)}function B(t,n,o,c,m){const f=o-m;t.fillStyle=p.cactus,t.fillRect(n+c/2-4,f,8,m),t.fillRect(n,f+10,8,6),t.fillRect(n,f+10,4,14),t.fillRect(n+c-8,f+18,8,6),t.fillRect(n+c-4,f+18,4,12)}function N(t,n,o,c,m,f){const u=t.height-I;n.clearRect(0,0,t.width,t.height),n.fillStyle=p.ground,n.fillRect(0,u,t.width,2),L(n,50,u-b,null),n.textAlign="center",o==="idle"?(n.fillStyle=T.text,n.font='bold 14px "DM Sans", sans-serif',n.fillText("Press SPACE or tap to start",t.width/2,t.height/2-30)):(n.fillStyle=T.gameOver,n.font='bold 20px "DM Sans", sans-serif',n.fillText("GAME OVER",t.width/2,t.height/2-40),n.fillStyle=T.text,n.font='bold 14px "DM Sans", sans-serif',n.fillText(`Score: ${c}`,t.width/2,t.height/2-10),n.fillStyle=T.textSoft,n.fillText("Press SPACE or tap to restart",t.width/2,t.height/2+20)),n.textAlign="left",_(t,n,c,m,f)}function K(){const t=s.useRef(null),n=s.useRef(null),[o,c]=s.useState("idle"),[m,f]=s.useState(0),[u,V]=s.useState(()=>{if(typeof window<"u"){const e=localStorage.getItem("zframes-dino-high-score");return e?parseInt(e,10):0}return 0}),[v,J]=s.useState(!1),g=s.useRef(0),S=s.useRef(u),D=s.useRef(o),y=s.useRef(P(null));s.useEffect(()=>{S.current=u,u>0&&localStorage.setItem("zframes-dino-high-score",String(u))},[u]),s.useEffect(()=>{D.current=o},[o]);const R=s.useRef({dinoY:0,dinoVelocity:0,isJumping:!1,obstacles:[],speed:H,frameCount:0,groundOffset:0}),G=s.useCallback(()=>{const e=t.current;e&&(R.current={dinoY:e.height-I-b,dinoVelocity:0,isJumping:!1,obstacles:[],speed:H,frameCount:0,groundOffset:0},g.current=0,f(0))},[]),C=s.useCallback(()=>{var i;if((i=n.current)==null||i.focus(),o!=="playing"){G(),c("playing");return}const e=R.current;e.isJumping||(e.dinoVelocity=U,e.isJumping=!0)},[o,G]);return s.useEffect(()=>{const e=a=>{const l=a.target;l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.isContentEditable||(a.code==="Space"||a.code==="ArrowUp")&&(a.preventDefault(),C())},i=n.current;if(i)return i.addEventListener("keydown",e),()=>i.removeEventListener("keydown",e)},[C]),s.useLayoutEffect(()=>{const e=t.current;if(!e)return;const i=()=>{const l=e.parentElement;if(l&&l.clientWidth>0&&l.clientHeight>0){e.width=l.clientWidth,e.height=l.clientHeight,y.current=P(e),R.current.dinoY=e.height-I-b;const E=e.getContext("2d");E&&D.current!=="playing"&&N(e,E,D.current,g.current,S.current,y.current),J(A=>!A)}};i();const a=new ResizeObserver(i);return a.observe(e.parentElement),()=>a.disconnect()},[]),s.useEffect(()=>{if(o!=="playing")return;const e=t.current,i=e==null?void 0:e.getContext("2d");if(!e||!i)return;let a;const l=e.height-I,E=()=>{i.fillStyle=p.ground,i.fillRect(0,l,e.width,2),i.fillStyle=p.groundTexture;const r=R.current.groundOffset%30;for(let h=-r;h<e.width;h+=30)i.beginPath(),i.arc(h,l+12,1.5,0,Math.PI*2),i.fill(),i.beginPath(),i.arc(h+15,l+20,1,0,Math.PI*2),i.fill()},A=r=>{const w=R.current.dinoY;return 50+W-5>r.x&&55<r.x+r.width&&w+b>l-r.height&&w+5<l},O=()=>{const r=R.current;i.clearRect(0,0,e.width,e.height),r.dinoVelocity+=F,r.dinoY+=r.dinoVelocity;const h=l-b;r.dinoY>=h&&(r.dinoY=h,r.dinoVelocity=0,r.isJumping=!1),r.obstacles=r.obstacles.filter(d=>d.x>-Y),r.obstacles.forEach(d=>{d.x-=r.speed});const w=r.obstacles[r.obstacles.length-1],j=300+Math.random()*200;(!w||w.x<e.width-j)&&Math.random()<.02&&r.obstacles.push({x:e.width,width:Y,height:X});for(const d of r.obstacles)if(A(d)){g.current>S.current&&(S.current=g.current,V(g.current)),c("gameover");return}r.frameCount++,r.frameCount%6===0&&(g.current+=1,f(g.current)),r.speed+=q,r.groundOffset+=r.speed,E(),L(i,50,r.dinoY,r.isJumping?null:Math.floor(r.frameCount/5)%2),r.obstacles.forEach(d=>B(i,d.x,l,d.width,d.height)),_(e,i,g.current,S.current,y.current),a=requestAnimationFrame(O)};return a=requestAnimationFrame(O),()=>cancelAnimationFrame(a)},[o]),s.useEffect(()=>{if(o==="playing")return;const e=t.current,i=e==null?void 0:e.getContext("2d");!e||!i||N(e,i,o,m,u,y.current)},[o,m,u,v]),M.jsx("div",{ref:n,tabIndex:0,className:"relative h-full w-full cursor-pointer select-none overflow-hidden outline-none",onClick:C,onTouchStart:C,role:"application","aria-label":"Dino running game. Press space or tap to jump over obstacles.",children:M.jsx("canvas",{ref:t,className:"h-full w-full"})})}const ee=k({...z,component:K});export{ee as dinoGameFrame};
@@ -1 +1 @@
1
- import{j as r}from"./react-qoZPGuNy.js";import{f as n,aS as a}from"./index-CiYWppnQ.js";a.schema;const d="hsl(0 0% var(--zf-ink-l, 100%) / 0.16)";function h({config:e}){const t=e.orientation==="vertical",i=e.label.trim(),l=e.accent!==void 0,o=l?{"--zf-accent-hue":String(e.accent)}:void 0,c=l?"var(--color-accent-line)":d,s=()=>r.jsx("span",{className:`shrink ${t?"w-0 flex-1":"h-0 flex-1"}`,style:t?{borderLeftWidth:e.thickness,borderLeftStyle:e.style,borderColor:c}:{borderTopWidth:e.thickness,borderTopStyle:e.style,borderColor:c}});return i?r.jsxs("div",{className:`flex h-full w-full items-center justify-center gap-3 ${t?"flex-col py-1":"px-1"}`,style:o,children:[s(),r.jsx("span",{className:`caption shrink-0 whitespace-nowrap uppercase tracking-[0.14em] ${l?"text-highlight":"text-soft"}`,style:t?{writingMode:"vertical-rl"}:void 0,children:i}),s()]}):r.jsx("div",{className:`flex h-full w-full items-center justify-center ${t?"flex-col":""}`,style:o,children:s()})}const f=n({...a,component:h});export{f as dividerFrame};
1
+ import{j as r}from"./react-qoZPGuNy.js";import{f as n,aS as a}from"./index-BJ1Zyy42.js";a.schema;const d="hsl(0 0% var(--zf-ink-l, 100%) / 0.16)";function h({config:e}){const t=e.orientation==="vertical",i=e.label.trim(),l=e.accent!==void 0,o=l?{"--zf-accent-hue":String(e.accent)}:void 0,c=l?"var(--color-accent-line)":d,s=()=>r.jsx("span",{className:`shrink ${t?"w-0 flex-1":"h-0 flex-1"}`,style:t?{borderLeftWidth:e.thickness,borderLeftStyle:e.style,borderColor:c}:{borderTopWidth:e.thickness,borderTopStyle:e.style,borderColor:c}});return i?r.jsxs("div",{className:`flex h-full w-full items-center justify-center gap-3 ${t?"flex-col py-1":"px-1"}`,style:o,children:[s(),r.jsx("span",{className:`caption shrink-0 whitespace-nowrap uppercase tracking-[0.14em] ${l?"text-highlight":"text-soft"}`,style:t?{writingMode:"vertical-rl"}:void 0,children:i}),s()]}):r.jsx("div",{className:`flex h-full w-full items-center justify-center ${t?"flex-col":""}`,style:o,children:s()})}const f=n({...a,component:h});export{f as dividerFrame};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{f as p,cJ as s,k as d}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as f}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function h({config:n}){const{market:r,isLoading:m}=d(),a=c.useMemo(()=>r?Object.entries(r.dominance).sort((t,o)=>o[1]-t[1]).slice(0,n.limit).map(([t,o])=>({label:t.toUpperCase(),value:o})):[],[r,n.limit]);return m?e.jsx(i,{loading:!0,children:"loading dominance…"}):a.length===0?e.jsx(i,{children:"no dominance data yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(f,{data:a,orientation:"horizontal",height:Math.max(a.length*24,96),formatValue:t=>l(t,1)}),e.jsxs("div",{className:"caption text-soft text-center",children:["market-cap share · top ",a.length]})]})}const F=p({...s,component:h});export{F as dominanceBarsFrame};
1
+ import{r as c,j as e}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{f as p,cJ as s,k as d}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as f}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";s.schema;function h({config:n}){const{market:r,isLoading:m}=d(),a=c.useMemo(()=>r?Object.entries(r.dominance).sort((t,o)=>o[1]-t[1]).slice(0,n.limit).map(([t,o])=>({label:t.toUpperCase(),value:o})):[],[r,n.limit]);return m?e.jsx(i,{loading:!0,children:"loading dominance…"}):a.length===0?e.jsx(i,{children:"no dominance data yet"}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(f,{data:a,orientation:"horizontal",height:Math.max(a.length*24,96),formatValue:t=>l(t,1)}),e.jsxs("div",{className:"caption text-soft text-center",children:["market-cap share · top ",a.length]})]})}const F=p({...s,component:h});export{F as dominanceBarsFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{b as m}from"./format-DxkEZcwQ.js";import{f as l,ct as r,k as d}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{R as f}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";r.schema;const s="hsl(var(--zf-accent-hue, 242) 82% 70%)";function p({config:a}){const{market:t,isLoading:i}=d();if(i)return e.jsx(n,{loading:!0,children:"loading dominance…"});if(!t)return e.jsx(n,{children:"no market data yet"});const o=t.dominance[a.coin]??0,c=a.coin.toUpperCase();return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[e.jsxs(f,{value:o,min:0,max:100,color:s,size:170,children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:s,textShadow:"0 0 28px hsl(var(--zf-accent-hue, 242) 82% 70% / 0.33)"},children:m(o,1)}),e.jsxs("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:[c," dominance"]})]}),e.jsx("div",{className:"caption text-soft",children:"share of total market cap"})]})}const G=l({...r,component:p});export{G as dominanceGaugeFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{b as m}from"./format-DxkEZcwQ.js";import{f as l,ct as r,k as d}from"./index-BJ1Zyy42.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{R as f}from"./radial-gauge-0BzRQ6fO.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";r.schema;const s="hsl(var(--zf-accent-hue, 242) 82% 70%)";function p({config:a}){const{market:t,isLoading:i}=d();if(i)return e.jsx(n,{loading:!0,children:"loading dominance…"});if(!t)return e.jsx(n,{children:"no market data yet"});const o=t.dominance[a.coin]??0,c=a.coin.toUpperCase();return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1",children:[e.jsxs(f,{value:o,min:0,max:100,color:s,size:170,children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:s,textShadow:"0 0 28px hsl(var(--zf-accent-hue, 242) 82% 70% / 0.33)"},children:m(o,1)}),e.jsxs("div",{className:"caption text-soft mt-1 uppercase tracking-wide",children:[c," dominance"]})]}),e.jsx("div",{className:"caption text-soft",children:"share of total market cap"})]})}const G=l({...r,component:p});export{G as dominanceGaugeFrame};
@@ -1 +1 @@
1
- import{r as t,j as a}from"./react-qoZPGuNy.js";import{f as d,aN as s}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";function i(){const[r,e]=t.useState("loading");return r==="error"?a.jsx(o,{children:"canvas unavailable"}):a.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-md",children:[r==="loading"&&a.jsx("div",{className:"absolute inset-0 z-10",children:a.jsx(o,{loading:!0,children:"loading canvas…"})}),a.jsx("iframe",{src:"https://drawdy.io",title:"Drawdy Canvas",className:`h-full w-full border-0 transition-opacity duration-300 ${r==="loaded"?"opacity-100":"opacity-0"}`,allow:"clipboard-read; clipboard-write",onLoad:()=>e("loaded"),onError:()=>e("error")})]})}const m=d({...s,component:i});export{m as drawdyFrame};
1
+ import{r as t,j as a}from"./react-qoZPGuNy.js";import{f as d,aN as s}from"./index-BJ1Zyy42.js";import{F as o}from"./ui-Bq3RQsdJ.js";function i(){const[r,e]=t.useState("loading");return r==="error"?a.jsx(o,{children:"canvas unavailable"}):a.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-md",children:[r==="loading"&&a.jsx("div",{className:"absolute inset-0 z-10",children:a.jsx(o,{loading:!0,children:"loading canvas…"})}),a.jsx("iframe",{src:"https://drawdy.io",title:"Drawdy Canvas",className:`h-full w-full border-0 transition-opacity duration-300 ${r==="loaded"?"opacity-100":"opacity-0"}`,allow:"clipboard-read; clipboard-write",onLoad:()=>e("loaded"),onError:()=>e("error")})]})}const m=d({...s,component:i});export{m as drawdyFrame};
@@ -1 +1 @@
1
- import{j as r}from"./react-qoZPGuNy.js";import{M as n,Z as i}from"./cycle-shared-XoGVsOjC.js";import{c as s,a as m}from"./format-DxkEZcwQ.js";import{f as c,bt as l,bu as d}from"./index-CiYWppnQ.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function p(){const{dxy:o,isLoading:t}=d();if(t)return r.jsx(a,{loading:!0,children:"loading DXY…"});if(!o)return r.jsx(a,{children:"no FX data yet"});const e=s(o.changePct);return r.jsx(n,{caption:"US Dollar Index",headline:o.value.toFixed(2),headlineColor:i,zone:{label:o.changePct>=0?"Stronger USD":"Weaker USD",color:e},sub:m(o.changePct),sparkline:o.history,sparkColor:e})}const C=c({...l,component:p});export{C as dxyFrame};
1
+ import{j as r}from"./react-qoZPGuNy.js";import{M as n,Z as i}from"./cycle-shared-XoGVsOjC.js";import{c as s,a as m}from"./format-DxkEZcwQ.js";import{f as c,bt as l,bu as d}from"./index-BJ1Zyy42.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function p(){const{dxy:o,isLoading:t}=d();if(t)return r.jsx(a,{loading:!0,children:"loading DXY…"});if(!o)return r.jsx(a,{children:"no FX data yet"});const e=s(o.changePct);return r.jsx(n,{caption:"US Dollar Index",headline:o.value.toFixed(2),headlineColor:i,zone:{label:o.changePct>=0?"Stronger USD":"Weaker USD",color:e},sub:m(o.changePct),sparkline:o.history,sparkColor:e})}const C=c({...l,component:p});export{C as dxyFrame};
@@ -1 +1 @@
1
- import{r as m,j as e}from"./react-qoZPGuNy.js";import{l as n,g as s}from"./format-DxkEZcwQ.js";import{f as d,du as u,bu as f}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{M as l}from"./index-BpPIfN5S.js";import{a as x}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const h=t=>t.toFixed(2);function c(){const{dxy:t,isLoading:i}=f(),r=m.useMemo(()=>t?[{id:"dxy",name:"DXY",color:t.changePct>=0?n:s,data:t.history.map(a=>({date:new Date(a.time).toISOString(),value:a.value}))}]:[],[t]);return i?e.jsx(o,{loading:!0,children:"loading DXY…"}):r.length===0||r[0].data.length===0?e.jsx(o,{children:"no FX data yet"}):e.jsx(l,{series:r,timeframe:x["1M"],height:220,formatValue:h})}const M=d({...u,component:c});export{M as dxyChartFrame};
1
+ import{r as m,j as e}from"./react-qoZPGuNy.js";import{l as n,g as s}from"./format-DxkEZcwQ.js";import{f as d,du as u,bu as f}from"./index-BJ1Zyy42.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{M as l}from"./index-BpPIfN5S.js";import{a as x}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const h=t=>t.toFixed(2);function c(){const{dxy:t,isLoading:i}=f(),r=m.useMemo(()=>t?[{id:"dxy",name:"DXY",color:t.changePct>=0?n:s,data:t.history.map(a=>({date:new Date(a.time).toISOString(),value:a.value}))}]:[],[t]);return i?e.jsx(o,{loading:!0,children:"loading DXY…"}):r.length===0||r[0].data.length===0?e.jsx(o,{children:"no FX data yet"}):e.jsx(l,{series:r,timeframe:x["1M"],height:220,formatValue:h})}const M=d({...u,component:c});export{M as dxyChartFrame};
@@ -1,4 +1,4 @@
1
- import{r,j as e,c as aa,a as Ns}from"./react-qoZPGuNy.js";import{G as vs}from"./gridstack-BxxvPIFU.js";import{t as St,u as ra,B as Fe,T as ks,F as ws,a as na,b as ia,c as la,d as ca,N as Ss,e as Cs,s as oa}from"./index-CiYWppnQ.js";function ua(t){const a=t.trim().toLowerCase();return a?a.split(/\s+/):[]}function ma(t,a,n){if(n.length===0)return!0;const m=`${t.label} ${t.description??""} ${t.name} ${a}`.toLowerCase();return n.every(j=>m.includes(j))}/**
1
+ import{r,j as e,c as aa,a as Ns}from"./react-qoZPGuNy.js";import{G as vs}from"./gridstack-BxxvPIFU.js";import{t as St,u as ra,B as Fe,T as ks,F as ws,a as na,b as ia,c as la,d as ca,N as Ss,e as Cs,s as oa}from"./index-BJ1Zyy42.js";function ua(t){const a=t.trim().toLowerCase();return a?a.split(/\s+/):[]}function ma(t,a,n){if(n.length===0)return!0;const m=`${t.label} ${t.description??""} ${t.name} ${a}`.toLowerCase();return n.every(j=>m.includes(j))}/**
2
2
  * @license lucide-react v1.21.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{r as l,j as o}from"./react-qoZPGuNy.js";import{f as n,D as f,U as u}from"./format-DxkEZcwQ.js";import{f as p,cc as m,bK as d}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const h={"1M":30*864e5,"3M":90*864e5,"6M":180*864e5};m.schema;function F(e){const a=new Date(e);return`${a.getMonth()+1}/${a.getDate()}`}function j({config:e}){const a=l.useMemo(()=>Date.now()-h[e.lookback],[e.lookback]),{flows:t,isLoading:c}=d(e.asset),r=l.useMemo(()=>((t==null?void 0:t.history)??[]).filter(s=>s.time>=a).map(s=>({label:F(s.time),value:s.value})),[t,a]);return c?o.jsx(i,{loading:!0,children:"loading ETF flows…"}):r.length===0?o.jsx(i,{children:"ETF flows unavailable"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(x,{data:r,color:u,negativeColor:f,height:200,formatValue:n,showValues:!1,maxTickLabels:6}),o.jsxs("div",{className:"caption text-soft text-center",children:[e.asset.toUpperCase()," spot-ETF daily net flow · latest"," ",n((t==null?void 0:t.dailyTotalNetInflow)??0)]})]})}const v=p({...m,component:j});export{v as etfFlowBarsFrame};
1
+ import{r as l,j as o}from"./react-qoZPGuNy.js";import{f as n,D as f,U as u}from"./format-DxkEZcwQ.js";import{f as p,cc as m,bK as d}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const h={"1M":30*864e5,"3M":90*864e5,"6M":180*864e5};m.schema;function F(e){const a=new Date(e);return`${a.getMonth()+1}/${a.getDate()}`}function j({config:e}){const a=l.useMemo(()=>Date.now()-h[e.lookback],[e.lookback]),{flows:t,isLoading:c}=d(e.asset),r=l.useMemo(()=>((t==null?void 0:t.history)??[]).filter(s=>s.time>=a).map(s=>({label:F(s.time),value:s.value})),[t,a]);return c?o.jsx(i,{loading:!0,children:"loading ETF flows…"}):r.length===0?o.jsx(i,{children:"ETF flows unavailable"}):o.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[o.jsx(x,{data:r,color:u,negativeColor:f,height:200,formatValue:n,showValues:!1,maxTickLabels:6}),o.jsxs("div",{className:"caption text-soft text-center",children:[e.asset.toUpperCase()," spot-ETF daily net flow · latest"," ",n((t==null?void 0:t.dailyTotalNetInflow)??0)]})]})}const v=p({...m,component:j});export{v as etfFlowBarsFrame};
@@ -1 +1 @@
1
- import{r as l,j as n}from"./react-qoZPGuNy.js";import{f as u}from"./format-DxkEZcwQ.js";import{f,dA as c,bK as d}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{H as h}from"./index-D051JGM1.js";import"./utils-DxneYyA_.js";const p={"1M":30*864e5,"3M":90*864e5,"6M":180*864e5};c.schema;function m(t){const e=new Date(t);e.setHours(0,0,0,0);const o=(e.getDay()+6)%7;return e.setDate(e.getDate()-o),e.getTime()}function w({data:t,width:e,height:o}){return e<40||o<18?null:n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx("span",{className:"caption text-normal tabular-nums",children:u(t.value)})})}function x({config:t}){const{flows:e,isLoading:o}=d(t.asset),r=l.useMemo(()=>m(Date.now()-p[t.lookback]),[t.lookback]),s=l.useMemo(()=>((e==null?void 0:e.history)??[]).filter(a=>a.time>=r).map(a=>({id:String(a.time),row:new Date(m(a.time)).toLocaleDateString("en-US",{month:"short",day:"numeric"}),column:new Date(a.time).toLocaleDateString("en-US",{weekday:"short"}),value:a.value})),[e,r]);return o?n.jsx(i,{loading:!0,children:"loading ETF flows…"}):s.length===0?n.jsx(i,{children:"ETF flows unavailable"}):n.jsx(h,{data:s,CellComponent:w,gap:3,showLabels:!0,rowLabelWidth:56,columnLabelHeight:20})}const j=f({...c,component:x});export{j as etfFlowCalendarFrame};
1
+ import{r as l,j as n}from"./react-qoZPGuNy.js";import{f as u}from"./format-DxkEZcwQ.js";import{f,dA as c,bK as d}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{H as h}from"./index-Bw1aFtyx.js";import"./utils-DxneYyA_.js";const p={"1M":30*864e5,"3M":90*864e5,"6M":180*864e5};c.schema;function m(t){const e=new Date(t);e.setHours(0,0,0,0);const o=(e.getDay()+6)%7;return e.setDate(e.getDate()-o),e.getTime()}function w({data:t,width:e,height:o}){return e<40||o<18?null:n.jsx("div",{className:"flex h-full w-full items-center justify-center",children:n.jsx("span",{className:"caption text-normal tabular-nums",children:u(t.value)})})}function x({config:t}){const{flows:e,isLoading:o}=d(t.asset),r=l.useMemo(()=>m(Date.now()-p[t.lookback]),[t.lookback]),s=l.useMemo(()=>((e==null?void 0:e.history)??[]).filter(a=>a.time>=r).map(a=>({id:String(a.time),row:new Date(m(a.time)).toLocaleDateString("en-US",{month:"short",day:"numeric"}),column:new Date(a.time).toLocaleDateString("en-US",{weekday:"short"}),value:a.value})),[e,r]);return o?n.jsx(i,{loading:!0,children:"loading ETF flows…"}):s.length===0?n.jsx(i,{children:"ETF flows unavailable"}):n.jsx(h,{data:s,CellComponent:w,gap:3,showLabels:!0,rowLabelWidth:56,columnLabelHeight:20})}const j=f({...c,component:x});export{j as etfFlowCalendarFrame};
@@ -1 +1 @@
1
- import{j as s}from"./react-qoZPGuNy.js";import{c as a,f as o}from"./format-DxkEZcwQ.js";import{M as d}from"./metric-row-BVVhjsjK.js";import{f as m,bJ as n,bK as x}from"./index-CiYWppnQ.js";import{F as r,s as p}from"./ui-Bq3RQsdJ.js";n.schema;const i=e=>e>=0?`+${o(e)}`:o(e);function u({config:e}){const{flows:l,isLoading:c}=x(e.asset);if(c)return s.jsx(r,{loading:!0,children:"loading ETF flows…"});if(!l)return s.jsx(r,{children:"ETF flows unavailable"});const f=l.issuers.slice(0,e.limit);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"caption text-soft",children:[e.asset.toUpperCase()," spot ETF · net flow",l.date?` · ${l.date}`:""]}),s.jsx("div",{className:"metric-lg leading-none",style:{color:a(l.dailyTotalNetInflow)},children:i(l.dailyTotalNetInflow)})]}),s.jsx("div",{className:`${p} flex flex-col`,children:f.map(t=>s.jsx(d,{label:t.ticker,meta:t.institute,value:s.jsx("span",{style:{color:a(t.dailyNetInflow)},children:i(t.dailyNetInflow)})},t.ticker))})]})}const g=m({...n,component:u});export{g as etfFlowsFrame};
1
+ import{j as s}from"./react-qoZPGuNy.js";import{c as a,f as o}from"./format-DxkEZcwQ.js";import{M as d}from"./metric-row-BVVhjsjK.js";import{f as m,bJ as n,bK as x}from"./index-BJ1Zyy42.js";import{F as r,s as p}from"./ui-Bq3RQsdJ.js";n.schema;const i=e=>e>=0?`+${o(e)}`:o(e);function u({config:e}){const{flows:l,isLoading:c}=x(e.asset);if(c)return s.jsx(r,{loading:!0,children:"loading ETF flows…"});if(!l)return s.jsx(r,{children:"ETF flows unavailable"});const f=l.issuers.slice(0,e.limit);return s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"caption text-soft",children:[e.asset.toUpperCase()," spot ETF · net flow",l.date?` · ${l.date}`:""]}),s.jsx("div",{className:"metric-lg leading-none",style:{color:a(l.dailyTotalNetInflow)},children:i(l.dailyTotalNetInflow)})]}),s.jsx("div",{className:`${p} flex flex-col`,children:f.map(t=>s.jsx(d,{label:t.ticker,meta:t.institute,value:s.jsx("span",{style:{color:a(t.dailyNetInflow)},children:i(t.dailyNetInflow)})},t.ticker))})]})}const g=m({...n,component:u});export{g as etfFlowsFrame};
@@ -1 +1 @@
1
- import{r as f,j as s}from"./react-qoZPGuNy.js";import{f as c}from"./format-DxkEZcwQ.js";import{f as h,bS as l,bK as d}from"./index-CiYWppnQ.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{a as r,C}from"./chart-utils-DGogNvJT.js";import{M}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const F={"1M":{ms:30*864e5,timeframe:r["1M"]},"3M":{ms:90*864e5,timeframe:r["3M"]},"6M":{ms:180*864e5,timeframe:r.YTD}};l.schema;function S({config:t}){const{ms:o,timeframe:u}=F[t.lookback],m=f.useMemo(()=>Date.now()-o,[o]),{flows:e,isLoading:p}=d(t.asset),i=f.useMemo(()=>[{id:t.asset,name:`${t.asset.toUpperCase()} net flow`,color:C[0],data:((e==null?void 0:e.history)??[]).filter(a=>a.time>=m).map(a=>({date:new Date(a.time).toISOString(),value:a.value}))}],[e,t.asset,m]);return p?s.jsx(n,{loading:!0,children:"loading ETF flows…"}):i[0].data.length===0?s.jsx(n,{children:"ETF flows unavailable"}):s.jsx(M,{series:i,timeframe:u,height:220,formatValue:c})}const R=h({...l,component:S});export{R as etfFlowsChartFrame};
1
+ import{r as f,j as s}from"./react-qoZPGuNy.js";import{f as c}from"./format-DxkEZcwQ.js";import{f as h,bS as l,bK as d}from"./index-BJ1Zyy42.js";import{F as n}from"./ui-Bq3RQsdJ.js";import{a as r,C}from"./chart-utils-DGogNvJT.js";import{M}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const F={"1M":{ms:30*864e5,timeframe:r["1M"]},"3M":{ms:90*864e5,timeframe:r["3M"]},"6M":{ms:180*864e5,timeframe:r.YTD}};l.schema;function S({config:t}){const{ms:o,timeframe:u}=F[t.lookback],m=f.useMemo(()=>Date.now()-o,[o]),{flows:e,isLoading:p}=d(t.asset),i=f.useMemo(()=>[{id:t.asset,name:`${t.asset.toUpperCase()} net flow`,color:C[0],data:((e==null?void 0:e.history)??[]).filter(a=>a.time>=m).map(a=>({date:new Date(a.time).toISOString(),value:a.value}))}],[e,t.asset,m]);return p?s.jsx(n,{loading:!0,children:"loading ETF flows…"}):i[0].data.length===0?s.jsx(n,{children:"ETF flows unavailable"}):s.jsx(M,{series:i,timeframe:u,height:220,formatValue:c})}const R=h({...l,component:S});export{R as etfFlowsChartFrame};
@@ -1 +1 @@
1
- import{r as m,j as s}from"./react-qoZPGuNy.js";import{f,D as d,U as u}from"./format-DxkEZcwQ.js";import{f as c,dx as i,bK as p}from"./index-CiYWppnQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function h({config:a}){const{flows:e,isLoading:n}=p(a.asset),r=m.useMemo(()=>[...(e==null?void 0:e.issuers)??[]].sort((t,o)=>Math.abs(o.dailyNetInflow)-Math.abs(t.dailyNetInflow)).slice(0,a.limit).sort((t,o)=>o.dailyNetInflow-t.dailyNetInflow).map(t=>({label:t.ticker,value:t.dailyNetInflow})),[e,a.limit]);return n?s.jsx(l,{loading:!0,children:"loading ETF flows…"}):r.length===0?s.jsx(l,{children:"ETF flows unavailable"}):s.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[s.jsx(x,{data:r,orientation:"horizontal",color:u,negativeColor:d,height:Math.max(r.length*24,96),formatValue:f}),s.jsxs("div",{className:"caption text-soft text-center",children:[a.asset.toUpperCase()," spot-ETF issuers · today's net flow"]})]})}const C=c({...i,component:h});export{C as etfIssuerBarsFrame};
1
+ import{r as m,j as s}from"./react-qoZPGuNy.js";import{f,D as d,U as u}from"./format-DxkEZcwQ.js";import{f as c,dx as i,bK as p}from"./index-BJ1Zyy42.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function h({config:a}){const{flows:e,isLoading:n}=p(a.asset),r=m.useMemo(()=>[...(e==null?void 0:e.issuers)??[]].sort((t,o)=>Math.abs(o.dailyNetInflow)-Math.abs(t.dailyNetInflow)).slice(0,a.limit).sort((t,o)=>o.dailyNetInflow-t.dailyNetInflow).map(t=>({label:t.ticker,value:t.dailyNetInflow})),[e,a.limit]);return n?s.jsx(l,{loading:!0,children:"loading ETF flows…"}):r.length===0?s.jsx(l,{children:"ETF flows unavailable"}):s.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[s.jsx(x,{data:r,orientation:"horizontal",color:u,negativeColor:d,height:Math.max(r.length*24,96),formatValue:f}),s.jsxs("div",{className:"caption text-soft text-center",children:[a.asset.toUpperCase()," spot-ETF issuers · today's net flow"]})]})}const C=c({...i,component:h});export{C as etfIssuerBarsFrame};
@@ -1 +1 @@
1
- import{r as l,j as a}from"./react-qoZPGuNy.js";import{f as n}from"./format-DxkEZcwQ.js";import{f,dq as m,bK as u}from"./index-CiYWppnQ.js";import{T as p,a as d}from"./treemap-leaf-QG-L-SIG.js";import{F as i}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";m.schema;function c({width:r,height:s,data:t}){const o=n(t.netAssets),e=n(t.dailyNetInflow);return a.jsx(d,{width:r,height:s,label:t.id,secondary:o,title:`${t.id} · ${o} AUM · ${t.dailyNetInflow>=0?"+":""}${e} today`})}function w({config:r}){const{flows:s,isLoading:t}=u(r.asset),o=l.useMemo(()=>((s==null?void 0:s.issuers)??[]).filter(e=>e.netAssets>0).slice(0,r.limit).map(e=>({id:e.ticker,value:e.netAssets,netAssets:e.netAssets,dailyNetInflow:e.dailyNetInflow})),[s,r.limit]);return t?a.jsx(i,{loading:!0,children:"loading ETF flows…"}):o.length===0?a.jsx(i,{children:"ETF flows unavailable"}):a.jsx(p,{data:o,LeafComponent:c,getColorValue:e=>e.dailyNetInflow})}const E=f({...m,component:w});export{E as etfIssuerTreemapFrame};
1
+ import{r as l,j as a}from"./react-qoZPGuNy.js";import{f as n}from"./format-DxkEZcwQ.js";import{f,dq as m,bK as u}from"./index-BJ1Zyy42.js";import{T as p,a as d}from"./treemap-leaf-QG-L-SIG.js";import{F as i}from"./ui-Bq3RQsdJ.js";import"./utils-DxneYyA_.js";import"./d3-ibrLIlQc.js";m.schema;function c({width:r,height:s,data:t}){const o=n(t.netAssets),e=n(t.dailyNetInflow);return a.jsx(d,{width:r,height:s,label:t.id,secondary:o,title:`${t.id} · ${o} AUM · ${t.dailyNetInflow>=0?"+":""}${e} today`})}function w({config:r}){const{flows:s,isLoading:t}=u(r.asset),o=l.useMemo(()=>((s==null?void 0:s.issuers)??[]).filter(e=>e.netAssets>0).slice(0,r.limit).map(e=>({id:e.ticker,value:e.netAssets,netAssets:e.netAssets,dailyNetInflow:e.dailyNetInflow})),[s,r.limit]);return t?a.jsx(i,{loading:!0,children:"loading ETF flows…"}):o.length===0?a.jsx(i,{children:"ETF flows unavailable"}):a.jsx(p,{data:o,LeafComponent:c,getColorValue:e=>e.dailyNetInflow})}const E=f({...m,component:w});export{E as etfIssuerTreemapFrame};
@@ -1 +1 @@
1
- import{r as l,j as a}from"./react-qoZPGuNy.js";import{a as r,U as n,D as i}from"./format-DxkEZcwQ.js";import{f as c,d8 as p,bF as m}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function f(){const{supply:t,isLoading:s}=m(),e=l.useMemo(()=>t?[{label:"PoS (actual)",value:t.supplyGrowthYearlyPct},{label:"PoW (counterfactual)",value:t.supplyGrowthYearlyPowPct}]:[],[t]);return s?a.jsx(o,{loading:!0,children:"loading ETH issuance…"}):t?a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(u,{data:e,orientation:"horizontal",color:i,negativeColor:n,height:Math.max(e.length*28,84),formatValue:r}),a.jsxs("div",{className:"caption text-soft text-center",children:["Net"," ",t.supplyGrowthYearlyPct<=0?"deflationary":"inflationary"," ·"," ",r(t.supplyGrowthYearlyPct),"/yr"]})]}):a.jsx(o,{children:"no ETH data yet"})}const E=c({...p,component:f});export{E as ethIssuanceImpactFrame};
1
+ import{r as l,j as a}from"./react-qoZPGuNy.js";import{a as r,U as n,D as i}from"./format-DxkEZcwQ.js";import{f as c,d8 as p,bF as m}from"./index-BJ1Zyy42.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function f(){const{supply:t,isLoading:s}=m(),e=l.useMemo(()=>t?[{label:"PoS (actual)",value:t.supplyGrowthYearlyPct},{label:"PoW (counterfactual)",value:t.supplyGrowthYearlyPowPct}]:[],[t]);return s?a.jsx(o,{loading:!0,children:"loading ETH issuance…"}):t?a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(u,{data:e,orientation:"horizontal",color:i,negativeColor:n,height:Math.max(e.length*28,84),formatValue:r}),a.jsxs("div",{className:"caption text-soft text-center",children:["Net"," ",t.supplyGrowthYearlyPct<=0?"deflationary":"inflationary"," ·"," ",r(t.supplyGrowthYearlyPct),"/yr"]})]}):a.jsx(o,{children:"no ETH data yet"})}const E=c({...p,component:f});export{E as ethIssuanceImpactFrame};
@@ -1 +1 @@
1
- import{j as t}from"./react-qoZPGuNy.js";import{M as e,Z as a}from"./cycle-shared-XoGVsOjC.js";import{U as n,b as s}from"./format-DxkEZcwQ.js";import{f as p,bG as m,bF as l}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function u(){const{supply:r,isLoading:o}=l();return o?t.jsx(i,{loading:!0,children:"loading staking APR…"}):r?t.jsx(e,{caption:"ETH Staking APR",headline:s(r.stakingAprPct),headlineColor:n,zone:{label:"validator yield",color:a},sub:"issuance + MEV + tips",sparkline:[],sparkColor:a}):t.jsx(i,{children:"no ETH data yet"})}const b=p({...m,component:u});export{b as ethStakingFrame};
1
+ import{j as t}from"./react-qoZPGuNy.js";import{M as e,Z as a}from"./cycle-shared-XoGVsOjC.js";import{U as n,b as s}from"./format-DxkEZcwQ.js";import{f as p,bG as m,bF as l}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";function u(){const{supply:r,isLoading:o}=l();return o?t.jsx(i,{loading:!0,children:"loading staking APR…"}):r?t.jsx(e,{caption:"ETH Staking APR",headline:s(r.stakingAprPct),headlineColor:n,zone:{label:"validator yield",color:a},sub:"issuance + MEV + tips",sparkline:[],sparkColor:a}):t.jsx(i,{children:"no ETH data yet"})}const b=p({...m,component:u});export{b as ethStakingFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{M as s}from"./cycle-shared-XoGVsOjC.js";import{U as p,D as l}from"./format-DxkEZcwQ.js";import{f as u,bE as m,bF as y}from"./index-CiYWppnQ.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const n=r=>`${Math.round(r).toLocaleString("en-US")} ETH/yr`;function c(){const{supply:r,isLoading:i}=y();if(i)return e.jsx(a,{loading:!0,children:"loading ETH supply…"});if(!r)return e.jsx(a,{children:"no ETH data yet"});const t=r.supplyGrowthYearlyPct,o=t<=0?p:l;return e.jsx(s,{caption:"ETH Net Supply Growth · yr",headline:`${t>=0?"+":""}${t.toFixed(2)}%`,headlineColor:o,zone:{label:t<=0?"Deflationary":"Inflationary",color:o},sub:`burn ${n(r.burnRateYearlyEth)} · issue ${n(r.issuanceRateYearlyEth)}`,sparkline:r.history,sparkColor:o})}const j=u({...m,component:c});export{j as ethSupplyFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{M as s}from"./cycle-shared-XoGVsOjC.js";import{U as p,D as l}from"./format-DxkEZcwQ.js";import{f as u,bE as m,bF as y}from"./index-BJ1Zyy42.js";import{F as a}from"./ui-Bq3RQsdJ.js";import"./indicators-Cw7CVPn4.js";import"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const n=r=>`${Math.round(r).toLocaleString("en-US")} ETH/yr`;function c(){const{supply:r,isLoading:i}=y();if(i)return e.jsx(a,{loading:!0,children:"loading ETH supply…"});if(!r)return e.jsx(a,{children:"no ETH data yet"});const t=r.supplyGrowthYearlyPct,o=t<=0?p:l;return e.jsx(s,{caption:"ETH Net Supply Growth · yr",headline:`${t>=0?"+":""}${t.toFixed(2)}%`,headlineColor:o,zone:{label:t<=0?"Deflationary":"Inflationary",color:o},sub:`burn ${n(r.burnRateYearlyEth)} · issue ${n(r.issuanceRateYearlyEth)}`,sparkline:r.history,sparkColor:o})}const j=u({...m,component:c});export{j as ethSupplyFrame};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./react-qoZPGuNy.js";import{f as u,H as l,I as m}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{M as p}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function x(r){return r<=25?"#F21553":r<=45?"#F97316":r<=55?"#F59E0B":r<=75?"#84CC16":"#25A78D"}function f({config:r}){const{points:s,isLoading:o}=m(r.sparklineDays),t=s[0],d=c.useMemo(()=>[...s].reverse().map(n=>({date:new Date(n.time).toISOString(),value:n.value})),[s]);if(o)return e.jsx(i,{loading:!0,children:"loading index…"});if(!t)return e.jsx(i,{children:"no sentiment data yet"});const a=x(t.value);return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2.5",children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:a,textShadow:`0 0 28px ${a}55`},children:t.value}),e.jsx("div",{className:"body-sm rounded-full px-2.5 py-0.5 font-semibold uppercase tracking-wide",style:{color:a,background:`${a}1f`,border:`1px solid ${a}33`},children:t.classification}),e.jsxs("div",{className:"relative w-full max-w-[180px] overflow-hidden rounded-xl",children:[e.jsx("div",{className:"h-[11px] w-full opacity-40",style:{background:"linear-gradient(90deg, #FF1F5F 4.89%, #464646 34.15%, #464646 69.98%, #81FE90 100%)"}}),e.jsx("div",{className:"absolute left-0 top-0 h-full w-full",style:{background:"repeating-linear-gradient(to right, var(--color-background-terminal), var(--color-background-terminal) 2px, transparent 2px, transparent 3px)"}}),e.jsx("div",{className:"absolute top-1/2 h-3 w-[3px] -translate-x-1/2 -translate-y-1/2 rounded-xs",style:{left:`${t.value}%`,background:a}})]}),e.jsx(p,{data:d,width:150,height:30,color:a}),e.jsxs("div",{className:"caption text-soft",children:["crypto fear & greed · ",r.sparklineDays,"d"]})]})}const b=u({...l,component:f});export{b as fearGreedFrame};
1
+ import{r as c,j as e}from"./react-qoZPGuNy.js";import{f as u,H as l,I as m}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{M as p}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function x(r){return r<=25?"#F21553":r<=45?"#F97316":r<=55?"#F59E0B":r<=75?"#84CC16":"#25A78D"}function f({config:r}){const{points:s,isLoading:o}=m(r.sparklineDays),t=s[0],d=c.useMemo(()=>[...s].reverse().map(n=>({date:new Date(n.time).toISOString(),value:n.value})),[s]);if(o)return e.jsx(i,{loading:!0,children:"loading index…"});if(!t)return e.jsx(i,{children:"no sentiment data yet"});const a=x(t.value);return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2.5",children:[e.jsx("div",{className:"metric-xl leading-none",style:{color:a,textShadow:`0 0 28px ${a}55`},children:t.value}),e.jsx("div",{className:"body-sm rounded-full px-2.5 py-0.5 font-semibold uppercase tracking-wide",style:{color:a,background:`${a}1f`,border:`1px solid ${a}33`},children:t.classification}),e.jsxs("div",{className:"relative w-full max-w-[180px] overflow-hidden rounded-xl",children:[e.jsx("div",{className:"h-[11px] w-full opacity-40",style:{background:"linear-gradient(90deg, #FF1F5F 4.89%, #464646 34.15%, #464646 69.98%, #81FE90 100%)"}}),e.jsx("div",{className:"absolute left-0 top-0 h-full w-full",style:{background:"repeating-linear-gradient(to right, var(--color-background-terminal), var(--color-background-terminal) 2px, transparent 2px, transparent 3px)"}}),e.jsx("div",{className:"absolute top-1/2 h-3 w-[3px] -translate-x-1/2 -translate-y-1/2 rounded-xs",style:{left:`${t.value}%`,background:a}})]}),e.jsx(p,{data:d,width:150,height:30,color:a}),e.jsxs("div",{className:"caption text-soft",children:["crypto fear & greed · ",r.sparklineDays,"d"]})]})}const b=u({...l,component:f});export{b as fearGreedFrame};
@@ -1 +1 @@
1
- import{r as u,j as r}from"./react-qoZPGuNy.js";import{f as c,ds as f,I as p}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{M as F}from"./index-BpPIfN5S.js";import{a as t}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";f.schema;function h(e){return e<=25?"#F21553":e<=45?"#F97316":e<=55?"#F59E0B":e<=75?"#84CC16":"#25A78D"}function l(e){return e<=35?t["1M"]:e<=100?t["3M"]:t.YTD}const x=e=>e.toFixed(0);function C({config:e}){const{points:a,isLoading:d}=p(e.days),n=u.useMemo(()=>{const i=[...a].reverse(),o=i.at(-1);return[{id:"fear-greed",name:"Fear & Greed",color:o?h(o.value):"#8b8bff",data:i.map(s=>({date:new Date(s.time).toISOString(),value:s.value}))}]},[a]);return d?r.jsx(m,{loading:!0,children:"loading index…"}):n[0].data.length===0?r.jsx(m,{children:"no sentiment data yet"}):r.jsx(F,{series:n,timeframe:l(e.days),height:220,formatValue:x})}const I=c({...f,component:C});export{I as fearGreedChartFrame};
1
+ import{r as u,j as r}from"./react-qoZPGuNy.js";import{f as c,ds as f,I as p}from"./index-BJ1Zyy42.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{M as F}from"./index-BpPIfN5S.js";import{a as t}from"./chart-utils-DGogNvJT.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";f.schema;function h(e){return e<=25?"#F21553":e<=45?"#F97316":e<=55?"#F59E0B":e<=75?"#84CC16":"#25A78D"}function l(e){return e<=35?t["1M"]:e<=100?t["3M"]:t.YTD}const x=e=>e.toFixed(0);function C({config:e}){const{points:a,isLoading:d}=p(e.days),n=u.useMemo(()=>{const i=[...a].reverse(),o=i.at(-1);return[{id:"fear-greed",name:"Fear & Greed",color:o?h(o.value):"#8b8bff",data:i.map(s=>({date:new Date(s.time).toISOString(),value:s.value}))}]},[a]);return d?r.jsx(m,{loading:!0,children:"loading index…"}):n[0].data.length===0?r.jsx(m,{children:"no sentiment data yet"}):r.jsx(F,{series:n,timeframe:l(e.days),height:220,formatValue:x})}const I=c({...f,component:C});export{I as fearGreedChartFrame};
@@ -1 +1 @@
1
- import{r as x,j as t}from"./react-qoZPGuNy.js";import{f,J as p,K as h,h as u,A as F}from"./index-CiYWppnQ.js";import{F as j}from"./feed-row-mVg1d5Zj.js";import{t as b}from"./format-DxkEZcwQ.js";import{F as a,s as y}from"./ui-Bq3RQsdJ.js";p.schema;const n={"10-K":"Annual report","10-Q":"Quarterly report","8-K":"Material event","20-F":"Annual report (foreign)","40-F":"Annual report (foreign)","6-K":"Foreign interim report","S-1":"Registration","S-3":"Registration","S-4":"Registration (M&A)","DEF 14A":"Proxy statement",DEFA14A:"Proxy materials","SC 13D":"Activist stake","SC 13G":"Passive stake",SD:"Specialized disclosure",3:"Initial insider ownership",4:"Insider transaction",5:"Annual insider ownership",144:"Proposed insider sale","11-K":"Employee benefit plan"},A=/^(10-K|10-Q|8-K|20-F|40-F|6-K|S-|F-|424|DEF |DEFA|DEFM|11-K|SC 13|25)/i,S=/^(3|4|5|144)(\/A)?$/;function l(e){return e.replace(/^SCHEDULE /i,"SC ").trim()}function E(e,s){return s==="all"?!0:s==="insider"?S.test(e):A.test(e)}function D(e){const s=l(e.form);if(n[s])return n[s];const r=s.replace(/\/A$/,"");return r!==s&&n[r]?`${n[r]} (amended)`:e.description&&e.description.toUpperCase()!==e.form.toUpperCase()?e.description:s}function N({filing:e}){return t.jsx(j,{href:e.url,titleAttr:e.form,leading:t.jsx("span",{className:"caption text-strong inline-flex w-16 shrink-0 justify-center truncate rounded bg-white/[0.06] px-1.5 py-1 font-bold",children:l(e.form)}),title:D(e),subtitle:e.reportDate?`period ${e.reportDate}`:e.items?`items ${e.items}`:e.accessionNumber,meta:e.filingDate?b(new Date(e.filingDate).getTime()):void 0})}function v({config:e}){const{data:s,isLoading:r}=h(e.symbol),m=x.useMemo(()=>((s==null?void 0:s.filings)??[]).filter(i=>E(l(i.form),e.forms)).slice(0,e.count),[s==null?void 0:s.filings,e.forms,e.count]);if(r)return t.jsx(a,{loading:!0,children:"loading SEC filings…"});if(!s)return t.jsxs(a,{children:["no SEC data for “",u(e.symbol),"”"]});const o=s.tickers[0],c=e.symbol.includes(":")?e.symbol:o?`xyz:${o}`:null,d=[s.exchanges[0],s.category].filter(Boolean).join(" · ");return t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c&&t.jsx(F,{symbol:c,size:22}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"body-sm text-strong truncate font-semibold",children:s.name||o||u(e.symbol)}),d&&t.jsx("div",{className:"caption text-soft truncate",children:d})]})]}),t.jsx("div",{className:"caption text-soft shrink-0 text-right",children:"filings"})]}),t.jsx("div",{className:y,children:m.length>0?m.map(i=>t.jsx(N,{filing:i},i.accessionNumber)):t.jsxs(a,{children:["no ",e.forms==="all"?"":`${e.forms} `,"filings yet"]})})]})}const k=f({...p,component:v});export{k as filingsFeedFrame};
1
+ import{r as x,j as t}from"./react-qoZPGuNy.js";import{f,J as p,K as h,h as u,A as F}from"./index-BJ1Zyy42.js";import{F as j}from"./feed-row-mVg1d5Zj.js";import{t as b}from"./format-DxkEZcwQ.js";import{F as a,s as y}from"./ui-Bq3RQsdJ.js";p.schema;const n={"10-K":"Annual report","10-Q":"Quarterly report","8-K":"Material event","20-F":"Annual report (foreign)","40-F":"Annual report (foreign)","6-K":"Foreign interim report","S-1":"Registration","S-3":"Registration","S-4":"Registration (M&A)","DEF 14A":"Proxy statement",DEFA14A:"Proxy materials","SC 13D":"Activist stake","SC 13G":"Passive stake",SD:"Specialized disclosure",3:"Initial insider ownership",4:"Insider transaction",5:"Annual insider ownership",144:"Proposed insider sale","11-K":"Employee benefit plan"},A=/^(10-K|10-Q|8-K|20-F|40-F|6-K|S-|F-|424|DEF |DEFA|DEFM|11-K|SC 13|25)/i,S=/^(3|4|5|144)(\/A)?$/;function l(e){return e.replace(/^SCHEDULE /i,"SC ").trim()}function E(e,s){return s==="all"?!0:s==="insider"?S.test(e):A.test(e)}function D(e){const s=l(e.form);if(n[s])return n[s];const r=s.replace(/\/A$/,"");return r!==s&&n[r]?`${n[r]} (amended)`:e.description&&e.description.toUpperCase()!==e.form.toUpperCase()?e.description:s}function N({filing:e}){return t.jsx(j,{href:e.url,titleAttr:e.form,leading:t.jsx("span",{className:"caption text-strong inline-flex w-16 shrink-0 justify-center truncate rounded bg-white/[0.06] px-1.5 py-1 font-bold",children:l(e.form)}),title:D(e),subtitle:e.reportDate?`period ${e.reportDate}`:e.items?`items ${e.items}`:e.accessionNumber,meta:e.filingDate?b(new Date(e.filingDate).getTime()):void 0})}function v({config:e}){const{data:s,isLoading:r}=h(e.symbol),m=x.useMemo(()=>((s==null?void 0:s.filings)??[]).filter(i=>E(l(i.form),e.forms)).slice(0,e.count),[s==null?void 0:s.filings,e.forms,e.count]);if(r)return t.jsx(a,{loading:!0,children:"loading SEC filings…"});if(!s)return t.jsxs(a,{children:["no SEC data for “",u(e.symbol),"”"]});const o=s.tickers[0],c=e.symbol.includes(":")?e.symbol:o?`xyz:${o}`:null,d=[s.exchanges[0],s.category].filter(Boolean).join(" · ");return t.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c&&t.jsx(F,{symbol:c,size:22}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"body-sm text-strong truncate font-semibold",children:s.name||o||u(e.symbol)}),d&&t.jsx("div",{className:"caption text-soft truncate",children:d})]})]}),t.jsx("div",{className:"caption text-soft shrink-0 text-right",children:"filings"})]}),t.jsx("div",{className:y,children:m.length>0?m.map(i=>t.jsx(N,{filing:i},i.accessionNumber)):t.jsxs(a,{children:["no ",e.forms==="all"?"":`${e.forms} `,"filings yet"]})})]})}const k=f({...p,component:v});export{k as filingsFeedFrame};
@@ -1 +1 @@
1
- import{r as u,j as s}from"./react-qoZPGuNy.js";import{f as x,dn as c,K as p,h as o}from"./index-CiYWppnQ.js";import{b as h}from"./format-DxkEZcwQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{C as n}from"./chart-utils-DGogNvJT.js";import{P as g}from"./pie-chart-BIxKuHm-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;const j=/^(10-K|10-Q|8-K|20-F|40-F|6-K|S-|F-|424|DEF |DEFA|DEFM|11-K|SC 13|25)/i,E=/^(3|4|5|144)(\/A)?$/;function b(i){return i.replace(/^SCHEDULE /i,"SC ").trim()}function F(i){const r=b(i);return E.test(r)?"insider":j.test(r)?"important":"other"}const v=[{id:"important",label:"Periodic & material",color:n[0]},{id:"insider",label:"Insider (3/4/5/144)",color:n[2]},{id:"other",label:"Other",color:n[5]}];function N({config:i}){const{data:r,isLoading:f}=p(i.symbol),a=u.useMemo(()=>{const e={important:0,insider:0,other:0};for(const t of(r==null?void 0:r.filings)??[])e[F(t.form)]++;return v.map(t=>({...t,value:e[t.id]})).filter(t=>t.value>0).sort((t,d)=>d.value-t.value)},[r]),l=a.reduce((e,t)=>e+t.value,0);return f?s.jsx(m,{loading:!0,children:"loading SEC filings…"}):a.length===0?s.jsxs(m,{children:["no SEC filings for “",o(i.symbol),"”"]}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4",children:[s.jsx(g,{data:a.map(e=>({name:e.label,value:e.value})),width:200,height:200,innerRadius:58,outerRadius:92,colors:a.map(e=>e.color),children:s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[s.jsx("span",{className:"caption text-soft",children:(r==null?void 0:r.name)||o(i.symbol)}),s.jsx("span",{className:"metric-lg text-strong",children:l}),s.jsx("span",{className:"caption text-soft",children:"filings"})]})}),s.jsx("div",{className:"flex w-full max-w-xs flex-wrap justify-center gap-x-5 gap-y-1.5",children:a.map(e=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full",style:{background:e.color}}),s.jsx("span",{className:"body-sm text-soft",children:e.label}),s.jsx("span",{className:"body-sm text-normal font-bold tabular-nums",children:h(e.value/l*100,0)})]},e.id))})]})}const O=x({...c,component:N});export{O as filingsMixFrame};
1
+ import{r as u,j as s}from"./react-qoZPGuNy.js";import{f as x,dn as c,K as p,h as o}from"./index-BJ1Zyy42.js";import{b as h}from"./format-DxkEZcwQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{C as n}from"./chart-utils-DGogNvJT.js";import{P as g}from"./pie-chart-BIxKuHm-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;const j=/^(10-K|10-Q|8-K|20-F|40-F|6-K|S-|F-|424|DEF |DEFA|DEFM|11-K|SC 13|25)/i,E=/^(3|4|5|144)(\/A)?$/;function b(i){return i.replace(/^SCHEDULE /i,"SC ").trim()}function F(i){const r=b(i);return E.test(r)?"insider":j.test(r)?"important":"other"}const v=[{id:"important",label:"Periodic & material",color:n[0]},{id:"insider",label:"Insider (3/4/5/144)",color:n[2]},{id:"other",label:"Other",color:n[5]}];function N({config:i}){const{data:r,isLoading:f}=p(i.symbol),a=u.useMemo(()=>{const e={important:0,insider:0,other:0};for(const t of(r==null?void 0:r.filings)??[])e[F(t.form)]++;return v.map(t=>({...t,value:e[t.id]})).filter(t=>t.value>0).sort((t,d)=>d.value-t.value)},[r]),l=a.reduce((e,t)=>e+t.value,0);return f?s.jsx(m,{loading:!0,children:"loading SEC filings…"}):a.length===0?s.jsxs(m,{children:["no SEC filings for “",o(i.symbol),"”"]}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4",children:[s.jsx(g,{data:a.map(e=>({name:e.label,value:e.value})),width:200,height:200,innerRadius:58,outerRadius:92,colors:a.map(e=>e.color),children:s.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[s.jsx("span",{className:"caption text-soft",children:(r==null?void 0:r.name)||o(i.symbol)}),s.jsx("span",{className:"metric-lg text-strong",children:l}),s.jsx("span",{className:"caption text-soft",children:"filings"})]})}),s.jsx("div",{className:"flex w-full max-w-xs flex-wrap justify-center gap-x-5 gap-y-1.5",children:a.map(e=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full",style:{background:e.color}}),s.jsx("span",{className:"body-sm text-soft",children:e.label}),s.jsx("span",{className:"body-sm text-normal font-bold tabular-nums",children:h(e.value/l*100,0)})]},e.id))})]})}const O=x({...c,component:N});export{O as filingsMixFrame};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./react-qoZPGuNy.js";import{D as m,U as x}from"./format-DxkEZcwQ.js";import{f as h,P as l,Q as u}from"./index-CiYWppnQ.js";import{F as r}from"./ui-Bq3RQsdJ.js";import{M as f}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function n(t){return t>0?m:x}function p(t){return t>=2.5?"high stress":t>=1?"elevated":t>-1?"near average":"below average"}function j({config:t}){const{stress:s,isLoading:d}=u(),o=c.useMemo(()=>((s==null?void 0:s.trend)??[]).slice(-t.trendDays).map(a=>({date:new Date(a.time).toISOString(),value:a.value})),[t.trendDays,s==null?void 0:s.trend]);if(d)return e.jsx(r,{loading:!0,children:"loading stress index…"});if(!s)return e.jsx(r,{children:"no stress-index data yet"});const i=n(s.value);return e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"OFR FSI"}),e.jsx("div",{className:"body-sm text-normal",children:s.date})]}),e.jsx("div",{className:"caption text-soft text-right",children:"daily"})]}),e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"metric-xl leading-none",style:{color:i,textShadow:`0 0 24px ${i}44`},children:[s.value>0?"+":"",s.value.toFixed(2)]}),e.jsx("div",{className:"caption text-soft mt-1",children:p(s.value)})]}),e.jsxs("div",{className:"caption text-soft max-w-[46%] text-right leading-snug",children:["0 = long-run average",e.jsx("br",{}),"higher = more stress"]})]}),e.jsx(f,{data:o,width:210,height:42,color:i}),t.showCategories&&s.categories.length>0&&e.jsx("div",{className:"grid grid-cols-2 gap-1.5 border-t border-white/[0.08] pt-2",children:s.categories.map(a=>e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"caption text-soft truncate",children:a.label}),e.jsxs("span",{className:"body-sm font-bold tabular-nums",style:{color:n(a.value)},children:[a.value>0?"+":"",a.value.toFixed(2)]})]},a.label))})]})}const y=h({...l,component:j});export{y as financialStressFrame};
1
+ import{r as c,j as e}from"./react-qoZPGuNy.js";import{D as m,U as x}from"./format-DxkEZcwQ.js";import{f as h,P as l,Q as u}from"./index-BJ1Zyy42.js";import{F as r}from"./ui-Bq3RQsdJ.js";import{M as f}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";l.schema;function n(t){return t>0?m:x}function p(t){return t>=2.5?"high stress":t>=1?"elevated":t>-1?"near average":"below average"}function j({config:t}){const{stress:s,isLoading:d}=u(),o=c.useMemo(()=>((s==null?void 0:s.trend)??[]).slice(-t.trendDays).map(a=>({date:new Date(a.time).toISOString(),value:a.value})),[t.trendDays,s==null?void 0:s.trend]);if(d)return e.jsx(r,{loading:!0,children:"loading stress index…"});if(!s)return e.jsx(r,{children:"no stress-index data yet"});const i=n(s.value);return e.jsxs("div",{className:"flex h-full min-h-0 flex-col justify-center gap-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"OFR FSI"}),e.jsx("div",{className:"body-sm text-normal",children:s.date})]}),e.jsx("div",{className:"caption text-soft text-right",children:"daily"})]}),e.jsxs("div",{className:"flex items-end justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"metric-xl leading-none",style:{color:i,textShadow:`0 0 24px ${i}44`},children:[s.value>0?"+":"",s.value.toFixed(2)]}),e.jsx("div",{className:"caption text-soft mt-1",children:p(s.value)})]}),e.jsxs("div",{className:"caption text-soft max-w-[46%] text-right leading-snug",children:["0 = long-run average",e.jsx("br",{}),"higher = more stress"]})]}),e.jsx(f,{data:o,width:210,height:42,color:i}),t.showCategories&&s.categories.length>0&&e.jsx("div",{className:"grid grid-cols-2 gap-1.5 border-t border-white/[0.08] pt-2",children:s.categories.map(a=>e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"caption text-soft truncate",children:a.label}),e.jsxs("span",{className:"body-sm font-bold tabular-nums",style:{color:n(a.value)},children:[a.value>0?"+":"",a.value.toFixed(2)]})]},a.label))})]})}const y=h({...l,component:j});export{y as financialStressFrame};
@@ -1 +1 @@
1
- import{r as i,j as x}from"./react-qoZPGuNy.js";import{a as F,d as _,G as I}from"./game-ui-BiMS2KJf.js";import{f as L,aL as O}from"./index-CiYWppnQ.js";import"./format-DxkEZcwQ.js";const v=.225,j=-3.6,b=52,A=132,z=210,U=1.3,C=64,p=12,M=28,N=28,R={bird:"rgba(255, 255, 255, 0.95)",eye:"rgba(0, 0, 0, 0.8)",pipe:"hsla(160, 64%, 40%, 0.9)",ground:"rgba(255, 255, 255, 0.1)"};function H(t,r,f,d){t.save(),t.translate(C,r),t.rotate(Math.max(-.5,Math.min(.9,f*.06))),t.fillStyle=R.bird,t.beginPath(),t.arc(0,0,p,0,Math.PI*2),t.fill(),t.fillStyle=d,t.fillRect(-p+2,0,10,5),t.fillStyle=R.eye,t.beginPath(),t.arc(5,-4,2,0,Math.PI*2),t.fill(),t.restore()}function V(t,r,f,d,y,h){r.clearRect(0,0,t.width,t.height);const c=t.height-M;r.fillStyle=R.ground,r.fillRect(0,c,t.width,2),H(r,t.height/2,0,h),r.textAlign="center",f==="idle"?(r.fillStyle=I.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText("Press SPACE or tap to fly",t.width/2,t.height/2-40)):(r.fillStyle=I.gameOver,r.font='bold 20px "DM Sans", sans-serif',r.fillText("GAME OVER",t.width/2,t.height/2-50),r.fillStyle=I.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText(`Score: ${d}`,t.width/2,t.height/2-22),r.fillStyle=I.textSoft,r.fillText("Press SPACE or tap to retry",t.width/2,t.height/2+6)),r.textAlign="left",_(t,r,d,y,h)}function X(){const t=i.useRef(null),r=i.useRef(null),[f,d]=i.useState("idle"),[y,h]=i.useState(0),[c,k]=i.useState(()=>{if(typeof window<"u"){const e=localStorage.getItem("zframes-flappy-bird-high-score");return e?parseInt(e,10):0}return 0}),[,B]=i.useState(!1),u=i.useRef(0),g=i.useRef(c),E=i.useRef(f),m=i.useRef(F(null));i.useEffect(()=>{g.current=c,c>0&&localStorage.setItem("zframes-flappy-bird-high-score",String(c))},[c]),i.useEffect(()=>{E.current=f},[f]);const w=i.useRef({birdY:0,birdVel:0,pipes:[],frameCount:0}),G=i.useCallback(e=>{const n=e.height-M,a=N,l=n-N-A;return a+Math.random()*Math.max(0,l-a)},[]),T=i.useCallback(()=>{const e=t.current;e&&(w.current={birdY:e.height/2,birdVel:0,pipes:[{x:e.width+60,gapY:G(e),passed:!1}],frameCount:0},u.current=0,h(0))},[G]),P=i.useCallback(()=>{var e;if((e=r.current)==null||e.focus(),E.current!=="playing"){T(),d("playing");return}w.current.birdVel=j},[T]);return i.useEffect(()=>{const e=a=>{const l=a.target;l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.isContentEditable||(a.code==="Space"||a.code==="ArrowUp")&&(a.preventDefault(),P())},n=r.current;if(n)return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[P]),i.useLayoutEffect(()=>{const e=t.current;if(!e)return;const n=()=>{const l=e.parentElement;if(l&&l.clientWidth>0&&l.clientHeight>0){e.width=l.clientWidth,e.height=l.clientHeight,m.current=F(e);const S=e.getContext("2d");E.current!=="playing"&&(w.current.birdY=e.height/2,S&&V(e,S,E.current,u.current,g.current,m.current)),B(Y=>!Y)}};n();const a=new ResizeObserver(n);return a.observe(e.parentElement),()=>a.disconnect()},[]),i.useEffect(()=>{if(f!=="playing")return;const e=t.current,n=e==null?void 0:e.getContext("2d");if(!e||!n)return;let a;const l=e.height-M,S=()=>{u.current>g.current&&(g.current=u.current,k(u.current)),d("gameover")},Y=()=>{const o=w.current;n.clearRect(0,0,e.width,e.height),o.birdVel+=v,o.birdY+=o.birdVel,o.pipes=o.pipes.filter(s=>s.x>-b),o.pipes.forEach(s=>s.x-=U);const D=o.pipes[o.pipes.length-1];if((!D||D.x<e.width-z)&&o.pipes.push({x:e.width,gapY:G(e),passed:!1}),o.birdY-p<=0||o.birdY+p>=l){S();return}for(const s of o.pipes){if(C+p>s.x&&C-p<s.x+b&&(o.birdY-p<s.gapY||o.birdY+p>s.gapY+A)){S();return}!s.passed&&s.x+b<C&&(s.passed=!0,u.current+=1,h(u.current))}n.fillStyle=R.pipe;for(const s of o.pipes)n.fillRect(s.x,0,b,s.gapY),n.fillRect(s.x,s.gapY+A,b,l-(s.gapY+A));n.fillStyle=R.ground,n.fillRect(0,l,e.width,2),H(n,o.birdY,o.birdVel,m.current),_(e,n,u.current,g.current,m.current),o.frameCount++,a=requestAnimationFrame(Y)};return a=requestAnimationFrame(Y),()=>cancelAnimationFrame(a)},[f]),i.useEffect(()=>{if(f==="playing")return;const e=t.current,n=e==null?void 0:e.getContext("2d");!e||!n||V(e,n,f,y,c,m.current)},[f,y,c]),x.jsx("div",{ref:r,tabIndex:0,className:"relative h-full w-full cursor-pointer select-none overflow-hidden outline-none",onClick:P,onTouchStart:P,role:"application","aria-label":"Flappy bird game. Press space or tap to flap.",children:x.jsx("canvas",{ref:t,className:"h-full w-full"})})}const Q=L({...O,component:X});export{Q as flappyBirdFrame};
1
+ import{r as i,j as x}from"./react-qoZPGuNy.js";import{a as F,d as _,G as I}from"./game-ui-BiMS2KJf.js";import{f as L,aL as O}from"./index-BJ1Zyy42.js";import"./format-DxkEZcwQ.js";const v=.225,j=-3.6,b=52,A=132,z=210,U=1.3,C=64,p=12,M=28,N=28,R={bird:"rgba(255, 255, 255, 0.95)",eye:"rgba(0, 0, 0, 0.8)",pipe:"hsla(160, 64%, 40%, 0.9)",ground:"rgba(255, 255, 255, 0.1)"};function H(t,r,f,d){t.save(),t.translate(C,r),t.rotate(Math.max(-.5,Math.min(.9,f*.06))),t.fillStyle=R.bird,t.beginPath(),t.arc(0,0,p,0,Math.PI*2),t.fill(),t.fillStyle=d,t.fillRect(-p+2,0,10,5),t.fillStyle=R.eye,t.beginPath(),t.arc(5,-4,2,0,Math.PI*2),t.fill(),t.restore()}function V(t,r,f,d,y,h){r.clearRect(0,0,t.width,t.height);const c=t.height-M;r.fillStyle=R.ground,r.fillRect(0,c,t.width,2),H(r,t.height/2,0,h),r.textAlign="center",f==="idle"?(r.fillStyle=I.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText("Press SPACE or tap to fly",t.width/2,t.height/2-40)):(r.fillStyle=I.gameOver,r.font='bold 20px "DM Sans", sans-serif',r.fillText("GAME OVER",t.width/2,t.height/2-50),r.fillStyle=I.text,r.font='bold 14px "DM Sans", sans-serif',r.fillText(`Score: ${d}`,t.width/2,t.height/2-22),r.fillStyle=I.textSoft,r.fillText("Press SPACE or tap to retry",t.width/2,t.height/2+6)),r.textAlign="left",_(t,r,d,y,h)}function X(){const t=i.useRef(null),r=i.useRef(null),[f,d]=i.useState("idle"),[y,h]=i.useState(0),[c,k]=i.useState(()=>{if(typeof window<"u"){const e=localStorage.getItem("zframes-flappy-bird-high-score");return e?parseInt(e,10):0}return 0}),[,B]=i.useState(!1),u=i.useRef(0),g=i.useRef(c),E=i.useRef(f),m=i.useRef(F(null));i.useEffect(()=>{g.current=c,c>0&&localStorage.setItem("zframes-flappy-bird-high-score",String(c))},[c]),i.useEffect(()=>{E.current=f},[f]);const w=i.useRef({birdY:0,birdVel:0,pipes:[],frameCount:0}),G=i.useCallback(e=>{const n=e.height-M,a=N,l=n-N-A;return a+Math.random()*Math.max(0,l-a)},[]),T=i.useCallback(()=>{const e=t.current;e&&(w.current={birdY:e.height/2,birdVel:0,pipes:[{x:e.width+60,gapY:G(e),passed:!1}],frameCount:0},u.current=0,h(0))},[G]),P=i.useCallback(()=>{var e;if((e=r.current)==null||e.focus(),E.current!=="playing"){T(),d("playing");return}w.current.birdVel=j},[T]);return i.useEffect(()=>{const e=a=>{const l=a.target;l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.isContentEditable||(a.code==="Space"||a.code==="ArrowUp")&&(a.preventDefault(),P())},n=r.current;if(n)return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[P]),i.useLayoutEffect(()=>{const e=t.current;if(!e)return;const n=()=>{const l=e.parentElement;if(l&&l.clientWidth>0&&l.clientHeight>0){e.width=l.clientWidth,e.height=l.clientHeight,m.current=F(e);const S=e.getContext("2d");E.current!=="playing"&&(w.current.birdY=e.height/2,S&&V(e,S,E.current,u.current,g.current,m.current)),B(Y=>!Y)}};n();const a=new ResizeObserver(n);return a.observe(e.parentElement),()=>a.disconnect()},[]),i.useEffect(()=>{if(f!=="playing")return;const e=t.current,n=e==null?void 0:e.getContext("2d");if(!e||!n)return;let a;const l=e.height-M,S=()=>{u.current>g.current&&(g.current=u.current,k(u.current)),d("gameover")},Y=()=>{const o=w.current;n.clearRect(0,0,e.width,e.height),o.birdVel+=v,o.birdY+=o.birdVel,o.pipes=o.pipes.filter(s=>s.x>-b),o.pipes.forEach(s=>s.x-=U);const D=o.pipes[o.pipes.length-1];if((!D||D.x<e.width-z)&&o.pipes.push({x:e.width,gapY:G(e),passed:!1}),o.birdY-p<=0||o.birdY+p>=l){S();return}for(const s of o.pipes){if(C+p>s.x&&C-p<s.x+b&&(o.birdY-p<s.gapY||o.birdY+p>s.gapY+A)){S();return}!s.passed&&s.x+b<C&&(s.passed=!0,u.current+=1,h(u.current))}n.fillStyle=R.pipe;for(const s of o.pipes)n.fillRect(s.x,0,b,s.gapY),n.fillRect(s.x,s.gapY+A,b,l-(s.gapY+A));n.fillStyle=R.ground,n.fillRect(0,l,e.width,2),H(n,o.birdY,o.birdVel,m.current),_(e,n,u.current,g.current,m.current),o.frameCount++,a=requestAnimationFrame(Y)};return a=requestAnimationFrame(Y),()=>cancelAnimationFrame(a)},[f]),i.useEffect(()=>{if(f==="playing")return;const e=t.current,n=e==null?void 0:e.getContext("2d");!e||!n||V(e,n,f,y,c,m.current)},[f,y,c]),x.jsx("div",{ref:r,tabIndex:0,className:"relative h-full w-full cursor-pointer select-none overflow-hidden outline-none",onClick:P,onTouchStart:P,role:"application","aria-label":"Flappy bird game. Press space or tap to flap.",children:x.jsx("canvas",{ref:t,className:"h-full w-full"})})}const Q=L({...O,component:X});export{Q as flappyBirdFrame};
@@ -1 +1 @@
1
- import{j as s}from"./react-qoZPGuNy.js";import{f as c,L as r,O as o,h as i}from"./index-CiYWppnQ.js";import{e as m,d,f}from"./format-DxkEZcwQ.js";import{F as n,s as u}from"./ui-Bq3RQsdJ.js";r.schema;function x(a){return a.unit==="USD/shares"?m(a.value):a.unit==="shares"?d(a.value):f(a.value)}function h({config:a}){const{data:t,isLoading:l}=o(a.symbol);return l?s.jsx(n,{loading:!0,children:"loading SEC financials…"}):!t||t.metrics.length===0?s.jsxs(n,{children:["no SEC financials for “",i(a.symbol),"”"]}):s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:"body-sm text-strong truncate font-semibold",children:t.entityName||i(a.symbol)}),s.jsx("div",{className:"caption text-soft truncate",children:"SEC EDGAR · XBRL company facts"})]}),s.jsx("div",{className:"caption text-soft shrink-0 text-right",children:"on filing"})]}),s.jsx("div",{className:`grid grid-cols-2 content-start gap-2 ${u}`,children:t.metrics.map(e=>s.jsxs("div",{className:"rounded bg-white/[0.04] px-3 py-2",children:[s.jsx("div",{className:"caption text-soft truncate",children:e.label}),s.jsx("div",{className:"metric-sm text-strong",children:x(e)}),s.jsx("div",{className:"caption text-soft truncate",children:e.fiscalPeriod})]},e.label))})]})}const N=c({...r,component:h});export{N as fundamentalsFrame};
1
+ import{j as s}from"./react-qoZPGuNy.js";import{f as c,L as r,O as o,h as i}from"./index-BJ1Zyy42.js";import{e as m,d,f}from"./format-DxkEZcwQ.js";import{F as n,s as u}from"./ui-Bq3RQsdJ.js";r.schema;function x(a){return a.unit==="USD/shares"?m(a.value):a.unit==="shares"?d(a.value):f(a.value)}function h({config:a}){const{data:t,isLoading:l}=o(a.symbol);return l?s.jsx(n,{loading:!0,children:"loading SEC financials…"}):!t||t.metrics.length===0?s.jsxs(n,{children:["no SEC financials for “",i(a.symbol),"”"]}):s.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:"body-sm text-strong truncate font-semibold",children:t.entityName||i(a.symbol)}),s.jsx("div",{className:"caption text-soft truncate",children:"SEC EDGAR · XBRL company facts"})]}),s.jsx("div",{className:"caption text-soft shrink-0 text-right",children:"on filing"})]}),s.jsx("div",{className:`grid grid-cols-2 content-start gap-2 ${u}`,children:t.metrics.map(e=>s.jsxs("div",{className:"rounded bg-white/[0.04] px-3 py-2",children:[s.jsx("div",{className:"caption text-soft truncate",children:e.label}),s.jsx("div",{className:"metric-sm text-strong",children:x(e)}),s.jsx("div",{className:"caption text-soft truncate",children:e.fiscalPeriod})]},e.label))})]})}const N=c({...r,component:h});export{N as fundamentalsFrame};
@@ -1 +1 @@
1
- import{r as s,j as e}from"./react-qoZPGuNy.js";import{D as d,U as f,h as i}from"./format-DxkEZcwQ.js";import{f as p,cb as c,bD as g}from"./index-CiYWppnQ.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function h({config:u}){const{comparison:r,isLoading:l}=g(),o=u.coin.trim().toUpperCase(),n=s.useMemo(()=>r.find(a=>a.coin.toUpperCase()===o),[r,o]),t=s.useMemo(()=>((n==null?void 0:n.venues)??[]).map(a=>({label:a.venue,value:a.annualizedPct})),[n]);return l?e.jsx(m,{loading:!0,children:"loading funding…"}):t.length===0?e.jsxs(m,{children:["no cross-venue funding for ",o]}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(x,{data:t,orientation:"horizontal",color:f,negativeColor:d,height:Math.max(t.length*28,84),formatValue:a=>i(a)}),e.jsxs("div",{className:"caption text-soft text-center",children:[o," funding, annualized · spread"," ",i((n==null?void 0:n.spreadPct)??0)]})]})}const P=p({...c,component:h});export{P as fundingBarsFrame};
1
+ import{r as s,j as e}from"./react-qoZPGuNy.js";import{D as d,U as f,h as i}from"./format-DxkEZcwQ.js";import{f as p,cb as c,bD as g}from"./index-BJ1Zyy42.js";import{F as m}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";c.schema;function h({config:u}){const{comparison:r,isLoading:l}=g(),o=u.coin.trim().toUpperCase(),n=s.useMemo(()=>r.find(a=>a.coin.toUpperCase()===o),[r,o]),t=s.useMemo(()=>((n==null?void 0:n.venues)??[]).map(a=>({label:a.venue,value:a.annualizedPct})),[n]);return l?e.jsx(m,{loading:!0,children:"loading funding…"}):t.length===0?e.jsxs(m,{children:["no cross-venue funding for ",o]}):e.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[e.jsx(x,{data:t,orientation:"horizontal",color:f,negativeColor:d,height:Math.max(t.length*28,84),formatValue:a=>i(a)}),e.jsxs("div",{className:"caption text-soft text-center",children:[o," funding, annualized · spread"," ",i((n==null?void 0:n.spreadPct)??0)]})]})}const P=p({...c,component:h});export{P as fundingBarsFrame};
@@ -1 +1 @@
1
- import{r as m,j as a}from"./react-qoZPGuNy.js";import{f as x,cz as f,Z as A,h as C}from"./index-CiYWppnQ.js";import{h as u}from"./format-DxkEZcwQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{C as d}from"./chart-utils-DGogNvJT.js";import{S}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const F={"24h":1440*60*1e3,"7D":10080*60*1e3,"1M":720*60*60*1e3};f.schema;function M(r){return r.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function j({config:r}){const o=F[r.lookback],h=m.useMemo(()=>Date.now()-o,[o]),{history:n,isLoading:l}=A(r.symbols,h),s=m.useMemo(()=>r.symbols.map((t,p)=>{let i=0;const g=[...n[t]??[]].sort((e,y)=>e.time-y.time).map(e=>(i+=e.fundingRate*100,{date:new Date(e.time),value:i}));return{id:t,name:C(t),color:d[p%d.length],data:g}}),[r.symbols,n]);return l?a.jsx(c,{loading:!0,children:"loading funding carry…"}):s.every(t=>t.data.length===0)?a.jsx(c,{children:"no funding data yet"}):a.jsx(S,{series:s,height:250,formatXAxis:M,formatYAxis:u,formatValue:u})}const _=x({...f,component:j});export{_ as fundingCarryAreaFrame};
1
+ import{r as m,j as a}from"./react-qoZPGuNy.js";import{f as x,cz as f,Z as A,h as C}from"./index-BJ1Zyy42.js";import{h as u}from"./format-DxkEZcwQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{C as d}from"./chart-utils-DGogNvJT.js";import{S}from"./index-DuNO-RcB.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const F={"24h":1440*60*1e3,"7D":10080*60*1e3,"1M":720*60*60*1e3};f.schema;function M(r){return r.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function j({config:r}){const o=F[r.lookback],h=m.useMemo(()=>Date.now()-o,[o]),{history:n,isLoading:l}=A(r.symbols,h),s=m.useMemo(()=>r.symbols.map((t,p)=>{let i=0;const g=[...n[t]??[]].sort((e,y)=>e.time-y.time).map(e=>(i+=e.fundingRate*100,{date:new Date(e.time),value:i}));return{id:t,name:C(t),color:d[p%d.length],data:g}}),[r.symbols,n]);return l?a.jsx(c,{loading:!0,children:"loading funding carry…"}):s.every(t=>t.data.length===0)?a.jsx(c,{children:"no funding data yet"}):a.jsx(S,{series:s,height:250,formatXAxis:M,formatYAxis:u,formatValue:u})}const _=x({...f,component:j});export{_ as fundingCarryAreaFrame};
@@ -1 +1 @@
1
- import{j as o}from"./react-qoZPGuNy.js";import{b as a}from"./format-DxkEZcwQ.js";import{M as l}from"./metric-row-BVVhjsjK.js";import{f as d,bC as r,bD as u}from"./index-CiYWppnQ.js";import{F as e,s as f}from"./ui-Bq3RQsdJ.js";r.schema;function p({config:t}){const{comparison:m,isLoading:c}=u(),i=m.slice(0,t.limit);return c?o.jsx(e,{loading:!0,children:"loading funding…"}):i.length===0?o.jsx(e,{children:"no funding data yet"}):o.jsx("div",{className:`${f} flex flex-col`,children:i.map(n=>o.jsx(l,{label:n.coin,meta:n.venues.map(s=>`${s.venue.slice(0,3)} ${a(s.annualizedPct,1)}`).join(" · "),value:`${a(n.spreadPct,1)} sprd`},n.coin))})}const h=d({...r,component:p});export{h as fundingComparisonFrame};
1
+ import{j as o}from"./react-qoZPGuNy.js";import{b as a}from"./format-DxkEZcwQ.js";import{M as l}from"./metric-row-BVVhjsjK.js";import{f as d,bC as r,bD as u}from"./index-BJ1Zyy42.js";import{F as e,s as f}from"./ui-Bq3RQsdJ.js";r.schema;function p({config:t}){const{comparison:m,isLoading:c}=u(),i=m.slice(0,t.limit);return c?o.jsx(e,{loading:!0,children:"loading funding…"}):i.length===0?o.jsx(e,{children:"no funding data yet"}):o.jsx("div",{className:`${f} flex flex-col`,children:i.map(n=>o.jsx(l,{label:n.coin,meta:n.venues.map(s=>`${s.venue.slice(0,3)} ${a(s.annualizedPct,1)}`).join(" · "),value:`${a(n.spreadPct,1)} sprd`},n.coin))})}const h=d({...r,component:p});export{h as fundingComparisonFrame};
@@ -1 +1 @@
1
- import{r as c,j as n}from"./react-qoZPGuNy.js";import{f as u,cD as m,aj as h,aJ as p,h as x}from"./index-CiYWppnQ.js";import{c as j,h as S,a as w}from"./format-DxkEZcwQ.js";import{F as g}from"./ui-Bq3RQsdJ.js";import{S as L}from"./scatter-chart-B28DJ7P-.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function b({config:i}){const{stats:r,isLoading:d}=h(),{entries:o,isLoading:f}=p(),l=d||f,s=c.useMemo(()=>{const t=new Map;for(const e of o)t.set(e.symbol,e.openInterestUsd);return t},[o]),a=c.useMemo(()=>Object.entries(r).filter(([,t])=>t.funding!==void 0).map(([t,e])=>({id:t,label:x(t),x:e.changePct,y:e.funding*100,weight:s.get(t)??0,color:j(e.changePct)})).filter(t=>t.weight>0).sort((t,e)=>e.weight-t.weight).slice(0,i.limit),[r,s,i.limit]);return l?n.jsx(g,{loading:!0,children:"loading funding…"}):a.length===0?n.jsx(g,{children:"no funding data yet"}):n.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[n.jsx(L,{data:a,zeroXLine:!0,height:210,formatX:w,formatY:S,maxLabels:10}),n.jsxs("div",{className:"caption text-soft text-center",children:["24h change (x) vs funding rate (y) · bubble = open interest · top"," ",a.length]})]})}const O=u({...m,component:b});export{O as fundingCrowdingScatterFrame};
1
+ import{r as c,j as n}from"./react-qoZPGuNy.js";import{f as u,cD as m,aj as h,aJ as p,h as x}from"./index-BJ1Zyy42.js";import{c as j,h as S,a as w}from"./format-DxkEZcwQ.js";import{F as g}from"./ui-Bq3RQsdJ.js";import{S as L}from"./scatter-chart-B78EA7lD.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";m.schema;function b({config:i}){const{stats:r,isLoading:d}=h(),{entries:o,isLoading:f}=p(),l=d||f,s=c.useMemo(()=>{const t=new Map;for(const e of o)t.set(e.symbol,e.openInterestUsd);return t},[o]),a=c.useMemo(()=>Object.entries(r).filter(([,t])=>t.funding!==void 0).map(([t,e])=>({id:t,label:x(t),x:e.changePct,y:e.funding*100,weight:s.get(t)??0,color:j(e.changePct)})).filter(t=>t.weight>0).sort((t,e)=>e.weight-t.weight).slice(0,i.limit),[r,s,i.limit]);return l?n.jsx(g,{loading:!0,children:"loading funding…"}):a.length===0?n.jsx(g,{children:"no funding data yet"}):n.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[n.jsx(L,{data:a,zeroXLine:!0,height:210,formatX:w,formatY:S,maxLabels:10}),n.jsxs("div",{className:"caption text-soft text-center",children:["24h change (x) vs funding rate (y) · bubble = open interest · top"," ",a.length]})]})}const O=u({...m,component:b});export{O as fundingCrowdingScatterFrame};
@@ -1 +1 @@
1
- import{r as f,j as o}from"./react-qoZPGuNy.js";import{f as y,Y as h,Z as M,h as j}from"./index-CiYWppnQ.js";import{h as w}from"./format-DxkEZcwQ.js";import{F as d}from"./ui-Bq3RQsdJ.js";import{H as F}from"./index-D051JGM1.js";import"./utils-DxneYyA_.js";h.schema;const p=1440*60*1e3,H=10080*60*1e3;function C({data:t,width:a}){return a<44?null:o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx("span",{className:"caption text-normal tabular-nums",children:w(t.rate*100)})})}function L({config:t}){const a=f.useMemo(()=>Date.now()-H,[]),{history:i,isLoading:g}=M(t.symbols,a),u=f.useMemo(()=>{const c=[];for(const r of t.symbols){const b=i[r]??[],m=new Map;for(const n of b){const s=Math.floor(n.time/p)*p,e=m.get(s)??{sum:0,n:0};e.sum+=n.fundingRate,e.n+=1,m.set(s,e)}for(const[n,{sum:s,n:e}]of m){const l=s/e,x=new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"});c.push({id:`${r}-${n}`,row:j(r),column:x,value:l*1e4,rate:l})}}return c},[i,t.symbols]);return g?o.jsx(d,{loading:!0,children:"loading funding…"}):u.length===0?o.jsx(d,{children:"no funding data"}):o.jsx(F,{data:u,CellComponent:C,gap:3,showLabels:!0,rowLabelWidth:48,columnLabelHeight:20})}const O=y({...h,component:L});export{O as fundingHeatmapFrame};
1
+ import{r as f,j as o}from"./react-qoZPGuNy.js";import{f as y,Y as h,Z as M,h as j}from"./index-BJ1Zyy42.js";import{h as w}from"./format-DxkEZcwQ.js";import{F as d}from"./ui-Bq3RQsdJ.js";import{H as F}from"./index-Bw1aFtyx.js";import"./utils-DxneYyA_.js";h.schema;const p=1440*60*1e3,H=10080*60*1e3;function C({data:t,width:a}){return a<44?null:o.jsx("div",{className:"flex h-full w-full items-center justify-center",children:o.jsx("span",{className:"caption text-normal tabular-nums",children:w(t.rate*100)})})}function L({config:t}){const a=f.useMemo(()=>Date.now()-H,[]),{history:i,isLoading:g}=M(t.symbols,a),u=f.useMemo(()=>{const c=[];for(const r of t.symbols){const b=i[r]??[],m=new Map;for(const n of b){const s=Math.floor(n.time/p)*p,e=m.get(s)??{sum:0,n:0};e.sum+=n.fundingRate,e.n+=1,m.set(s,e)}for(const[n,{sum:s,n:e}]of m){const l=s/e,x=new Date(n).toLocaleDateString("en-US",{month:"numeric",day:"numeric"});c.push({id:`${r}-${n}`,row:j(r),column:x,value:l*1e4,rate:l})}}return c},[i,t.symbols]);return g?o.jsx(d,{loading:!0,children:"loading funding…"}):u.length===0?o.jsx(d,{children:"no funding data"}):o.jsx(F,{data:u,CellComponent:C,gap:3,showLabels:!0,rowLabelWidth:48,columnLabelHeight:20})}const O=y({...h,component:L});export{O as fundingHeatmapFrame};
@@ -1 +1 @@
1
- import{r as u,j as e}from"./react-qoZPGuNy.js";import{f,cC as d,aj as n,h as c}from"./index-CiYWppnQ.js";import{h as g,D as h,U as p}from"./format-DxkEZcwQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";d.schema;const j=["xyz:*"];function v({config:i}){const r=n(void 0,6e4),s=n(j,6e4),m=r.isLoading||s.isLoading,o=u.useMemo(()=>Object.entries({...r.stats,...s.stats}).filter(([,t])=>t.funding!==void 0).map(([t,a])=>({label:c(t),value:a.funding*100})).sort((t,a)=>Math.abs(a.value)-Math.abs(t.value)).slice(0,i.limit).sort((t,a)=>a.value-t.value),[r.stats,s.stats,i.limit]);return m?e.jsx(l,{loading:!0,children:"loading funding…"}):o.length===0?e.jsx(l,{children:"no funding data yet"}):e.jsx("div",{className:"flex h-full flex-col justify-center text-normal",children:e.jsx(x,{data:o,orientation:"horizontal",color:p,negativeColor:h,height:Math.max(o.length*24,96),formatValue:g})})}const B=f({...d,component:v});export{B as fundingLeaderboardBarsFrame};
1
+ import{r as u,j as e}from"./react-qoZPGuNy.js";import{f,cC as d,aj as n,h as c}from"./index-BJ1Zyy42.js";import{h as g,D as h,U as p}from"./format-DxkEZcwQ.js";import{F as l}from"./ui-Bq3RQsdJ.js";import{B as x}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";d.schema;const j=["xyz:*"];function v({config:i}){const r=n(void 0,6e4),s=n(j,6e4),m=r.isLoading||s.isLoading,o=u.useMemo(()=>Object.entries({...r.stats,...s.stats}).filter(([,t])=>t.funding!==void 0).map(([t,a])=>({label:c(t),value:a.funding*100})).sort((t,a)=>Math.abs(a.value)-Math.abs(t.value)).slice(0,i.limit).sort((t,a)=>a.value-t.value),[r.stats,s.stats,i.limit]);return m?e.jsx(l,{loading:!0,children:"loading funding…"}):o.length===0?e.jsx(l,{children:"no funding data yet"}):e.jsx("div",{className:"flex h-full flex-col justify-center text-normal",children:e.jsx(x,{data:o,orientation:"horizontal",color:p,negativeColor:h,height:Math.max(o.length*24,96),formatValue:g})})}const B=f({...d,component:v});export{B as fundingLeaderboardBarsFrame};
@@ -1 +1 @@
1
- import{r as o,j as a}from"./react-qoZPGuNy.js";import{f as l,_ as d,Z as C,h as M}from"./index-CiYWppnQ.js";import{h as R}from"./format-DxkEZcwQ.js";import{F as f}from"./ui-Bq3RQsdJ.js";import{a as r,C as u}from"./chart-utils-DGogNvJT.js";import{M as S}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const x={"24h":{ms:1440*60*1e3,timeframe:r["24h"]},"7D":{ms:10080*60*1e3,timeframe:r["7D"]},"1M":{ms:720*60*60*1e3,timeframe:r["1M"]}};d.schema;function F({config:e}){const{ms:s,timeframe:h}=x[e.lookback],c=o.useMemo(()=>Date.now()-s,[s]),{history:m,isLoading:p}=C(e.symbols,c),i=o.useMemo(()=>e.symbols.map((t,g)=>({id:t,name:M(t),color:u[g%u.length],data:(m[t]??[]).map(n=>({date:new Date(n.time).toISOString(),value:n.fundingRate*100}))})),[e.symbols,m]);return p?a.jsx(f,{loading:!0,children:"loading funding rates…"}):i.every(t=>t.data.length===0)?a.jsx(f,{children:"no funding data yet"}):a.jsx(S,{series:i,timeframe:h,height:250,formatValue:R})}const k=l({...d,component:F});export{k as fundingRateChartFrame};
1
+ import{r as o,j as a}from"./react-qoZPGuNy.js";import{f as l,_ as d,Z as C,h as M}from"./index-BJ1Zyy42.js";import{h as R}from"./format-DxkEZcwQ.js";import{F as f}from"./ui-Bq3RQsdJ.js";import{a as r,C as u}from"./chart-utils-DGogNvJT.js";import{M as S}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";const x={"24h":{ms:1440*60*1e3,timeframe:r["24h"]},"7D":{ms:10080*60*1e3,timeframe:r["7D"]},"1M":{ms:720*60*60*1e3,timeframe:r["1M"]}};d.schema;function F({config:e}){const{ms:s,timeframe:h}=x[e.lookback],c=o.useMemo(()=>Date.now()-s,[s]),{history:m,isLoading:p}=C(e.symbols,c),i=o.useMemo(()=>e.symbols.map((t,g)=>({id:t,name:M(t),color:u[g%u.length],data:(m[t]??[]).map(n=>({date:new Date(n.time).toISOString(),value:n.fundingRate*100}))})),[e.symbols,m]);return p?a.jsx(f,{loading:!0,children:"loading funding rates…"}):i.every(t=>t.data.length===0)?a.jsx(f,{children:"no funding data yet"}):a.jsx(S,{series:i,timeframe:h,height:250,formatValue:R})}const k=l({...d,component:F});export{k as fundingRateChartFrame};
@@ -1 +1 @@
1
- import{r as d,j as a}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{f as c,cx as i,bD as p}from"./index-CiYWppnQ.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function f({config:e}){const{comparison:n,isLoading:o}=p(),r=d.useMemo(()=>[...n].sort((t,m)=>m.spreadPct-t.spreadPct).slice(0,e.limit).map(t=>({label:t.coin,value:t.spreadPct})),[n,e.limit]);return o?a.jsx(s,{loading:!0,children:"loading funding…"}):r.length===0?a.jsx(s,{children:"no funding data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(u,{data:r,orientation:"horizontal",height:Math.max(r.length*26,96),formatValue:t=>l(t,1)}),a.jsxs("div",{className:"caption text-soft text-center",children:["cross-venue funding spread, annualized · top ",r.length]})]})}const P=c({...i,component:f});export{P as fundingSpreadBarsFrame};
1
+ import{r as d,j as a}from"./react-qoZPGuNy.js";import{b as l}from"./format-DxkEZcwQ.js";import{f as c,cx as i,bD as p}from"./index-BJ1Zyy42.js";import{F as s}from"./ui-Bq3RQsdJ.js";import{B as u}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";i.schema;function f({config:e}){const{comparison:n,isLoading:o}=p(),r=d.useMemo(()=>[...n].sort((t,m)=>m.spreadPct-t.spreadPct).slice(0,e.limit).map(t=>({label:t.coin,value:t.spreadPct})),[n,e.limit]);return o?a.jsx(s,{loading:!0,children:"loading funding…"}):r.length===0?a.jsx(s,{children:"no funding data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(u,{data:r,orientation:"horizontal",height:Math.max(r.length*26,96),formatValue:t=>l(t,1)}),a.jsxs("div",{className:"caption text-soft text-center",children:["cross-venue funding spread, annualized · top ",r.length]})]})}const P=c({...i,component:f});export{P as fundingSpreadBarsFrame};
@@ -1 +1 @@
1
- import{r as c,j as t}from"./react-qoZPGuNy.js";import{b as d}from"./format-DxkEZcwQ.js";import{f,cy as u,bD as p}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{H as h}from"./index-D051JGM1.js";import"./utils-DxneYyA_.js";u.schema;function g({data:a,width:o}){return o<44?null:t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx("span",{className:"caption text-normal tabular-nums",children:d(a.annualizedPct,1)})})}function x({config:a}){const{comparison:o,isLoading:l}=p(),r=c.useMemo(()=>{const m=[...o].sort((n,e)=>Math.abs(e.spreadPct)-Math.abs(n.spreadPct)).slice(0,a.limit),s=[];for(const n of m)for(const e of n.venues)s.push({id:`${n.coin}-${e.venue}`,row:n.coin,column:e.venue,value:e.annualizedPct,annualizedPct:e.annualizedPct});return s},[o,a.limit]);return l?t.jsx(i,{loading:!0,children:"loading funding…"}):r.length===0?t.jsx(i,{children:"no funding data"}):t.jsx(h,{data:r,CellComponent:g,gap:3,showLabels:!0,rowLabelWidth:48,columnLabelHeight:20})}const C=f({...u,component:x});export{C as fundingVenueHeatmapFrame};
1
+ import{r as c,j as t}from"./react-qoZPGuNy.js";import{b as d}from"./format-DxkEZcwQ.js";import{f,cy as u,bD as p}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{H as h}from"./index-Bw1aFtyx.js";import"./utils-DxneYyA_.js";u.schema;function g({data:a,width:o}){return o<44?null:t.jsx("div",{className:"flex h-full w-full items-center justify-center",children:t.jsx("span",{className:"caption text-normal tabular-nums",children:d(a.annualizedPct,1)})})}function x({config:a}){const{comparison:o,isLoading:l}=p(),r=c.useMemo(()=>{const m=[...o].sort((n,e)=>Math.abs(e.spreadPct)-Math.abs(n.spreadPct)).slice(0,a.limit),s=[];for(const n of m)for(const e of n.venues)s.push({id:`${n.coin}-${e.venue}`,row:n.coin,column:e.venue,value:e.annualizedPct,annualizedPct:e.annualizedPct});return s},[o,a.limit]);return l?t.jsx(i,{loading:!0,children:"loading funding…"}):r.length===0?t.jsx(i,{children:"no funding data"}):t.jsx(h,{data:r,CellComponent:g,gap:3,showLabels:!0,rowLabelWidth:48,columnLabelHeight:20})}const C=f({...u,component:x});export{C as fundingVenueHeatmapFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{c as x,i as p,a as f}from"./format-DxkEZcwQ.js";import{f as b,an as d,ao as j}from"./index-CiYWppnQ.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{M as u}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";d.schema;function g({config:a}){var n,o;const{rates:t,isLoading:h}=j(a.base,a.symbols);if(h)return e.jsx(c,{loading:!0,children:"loading FX rates…"});if(!t.length)return e.jsx(c,{children:"no FX data yet"});const r=(o=(n=t[0])==null?void 0:n.history.at(-1))==null?void 0:o.time;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"FX rates"}),e.jsxs("div",{className:"body-sm text-normal",children:["1 ",a.base.toUpperCase()," buys"]})]}),e.jsx("div",{className:"caption text-soft text-right",children:r?new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):"ECB daily"})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:t.map(s=>{const i=x(s.changePct),l=s.history.map(m=>({date:new Date(m.time).toISOString(),value:m.value}));return e.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] py-1.5 last:border-b-0",children:[e.jsx("span",{className:"body-sm w-9 font-bold text-strong",children:s.symbol}),e.jsx("div",{className:"flex-1"}),a.showSparkline&&l.length>1&&e.jsx(u,{data:l,width:72,height:20,color:i}),e.jsxs("span",{className:"whitespace-nowrap text-right tabular-nums",children:[e.jsx("span",{className:"body-sm text-strong",children:p(s.rate)}),e.jsx("span",{className:"caption ml-2 font-bold",style:{color:i},children:f(s.changePct)})]})]},s.symbol)})})]})}const B=b({...d,component:g});export{B as fxBoardFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{c as x,i as p,a as f}from"./format-DxkEZcwQ.js";import{f as b,an as d,ao as j}from"./index-BJ1Zyy42.js";import{F as c}from"./ui-Bq3RQsdJ.js";import{M as u}from"./mini-line-chart-DyG55cVW.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";d.schema;function g({config:a}){var n,o;const{rates:t,isLoading:h}=j(a.base,a.symbols);if(h)return e.jsx(c,{loading:!0,children:"loading FX rates…"});if(!t.length)return e.jsx(c,{children:"no FX data yet"});const r=(o=(n=t[0])==null?void 0:n.history.at(-1))==null?void 0:o.time;return e.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("div",{className:"caption text-soft uppercase",children:"FX rates"}),e.jsxs("div",{className:"body-sm text-normal",children:["1 ",a.base.toUpperCase()," buys"]})]}),e.jsx("div",{className:"caption text-soft text-right",children:r?new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):"ECB daily"})]}),e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:t.map(s=>{const i=x(s.changePct),l=s.history.map(m=>({date:new Date(m.time).toISOString(),value:m.value}));return e.jsxs("div",{className:"flex items-center gap-3 border-b border-white/[0.06] py-1.5 last:border-b-0",children:[e.jsx("span",{className:"body-sm w-9 font-bold text-strong",children:s.symbol}),e.jsx("div",{className:"flex-1"}),a.showSparkline&&l.length>1&&e.jsx(u,{data:l,width:72,height:20,color:i}),e.jsxs("span",{className:"whitespace-nowrap text-right tabular-nums",children:[e.jsx("span",{className:"body-sm text-strong",children:p(s.rate)}),e.jsx("span",{className:"caption ml-2 font-bold",style:{color:i},children:f(s.changePct)})]})]},s.symbol)})})]})}const B=b({...d,component:g});export{B as fxBoardFrame};
@@ -1 +1 @@
1
- import{r as u,j as s}from"./react-qoZPGuNy.js";import{a as f,i as y}from"./format-DxkEZcwQ.js";import{f as d,dp as h,ao as C}from"./index-CiYWppnQ.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{H as g}from"./index-D051JGM1.js";import"./utils-DxneYyA_.js";h.schema;function j({data:t,width:a}){return a<40?null:s.jsx("div",{className:"flex h-full w-full items-center justify-center",title:`${t.row} → ${t.column} · ${y(t.rate)} · ${f(t.value)}`,children:s.jsx("span",{className:"caption text-normal tabular-nums",children:f(t.value)})})}function w({config:t}){const a=u.useMemo(()=>t.symbols.filter(o=>o!=="USD"),[t.symbols]),{rates:c,isLoading:x}=C("USD",a),m=u.useMemo(()=>{const o=new Map([["USD",{rate:1,changePct:0}]]);for(const e of c)o.set(e.symbol,e);const i=[];for(const e of t.symbols){const n=o.get(e);if(n)for(const r of t.symbols){if(e===r)continue;const l=o.get(r);if(!l)continue;const b=((1+l.changePct/100)/(1+n.changePct/100)-1)*100;i.push({id:`${e}-${r}`,row:e,column:r,value:b,rate:l.rate/n.rate})}}return i},[c,t.symbols]);return x?s.jsx(p,{loading:!0,children:"loading FX crosses…"}):m.length===0?s.jsx(p,{children:"no FX data yet"}):s.jsx(g,{data:m,CellComponent:j,gap:3,showLabels:!0,rowLabelWidth:40,columnLabelHeight:20})}const S=d({...h,component:w});export{S as fxCrossHeatmapFrame};
1
+ import{r as u,j as s}from"./react-qoZPGuNy.js";import{a as f,i as y}from"./format-DxkEZcwQ.js";import{f as d,dp as h,ao as C}from"./index-BJ1Zyy42.js";import{F as p}from"./ui-Bq3RQsdJ.js";import{H as g}from"./index-Bw1aFtyx.js";import"./utils-DxneYyA_.js";h.schema;function j({data:t,width:a}){return a<40?null:s.jsx("div",{className:"flex h-full w-full items-center justify-center",title:`${t.row} → ${t.column} · ${y(t.rate)} · ${f(t.value)}`,children:s.jsx("span",{className:"caption text-normal tabular-nums",children:f(t.value)})})}function w({config:t}){const a=u.useMemo(()=>t.symbols.filter(o=>o!=="USD"),[t.symbols]),{rates:c,isLoading:x}=C("USD",a),m=u.useMemo(()=>{const o=new Map([["USD",{rate:1,changePct:0}]]);for(const e of c)o.set(e.symbol,e);const i=[];for(const e of t.symbols){const n=o.get(e);if(n)for(const r of t.symbols){if(e===r)continue;const l=o.get(r);if(!l)continue;const b=((1+l.changePct/100)/(1+n.changePct/100)-1)*100;i.push({id:`${e}-${r}`,row:e,column:r,value:b,rate:l.rate/n.rate})}}return i},[c,t.symbols]);return x?s.jsx(p,{loading:!0,children:"loading FX crosses…"}):m.length===0?s.jsx(p,{children:"no FX data yet"}):s.jsx(g,{data:m,CellComponent:j,gap:3,showLabels:!0,rowLabelWidth:40,columnLabelHeight:20})}const S=d({...h,component:w});export{S as fxCrossHeatmapFrame};
@@ -1 +1 @@
1
- import{r as l,j as a}from"./react-qoZPGuNy.js";import{a as c,D as h,U as x}from"./format-DxkEZcwQ.js";import{f,dv as n,ao as p}from"./index-CiYWppnQ.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DmyKFv_O.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";n.schema;function u({config:t}){const{rates:s,isLoading:m}=p(t.base,t.symbols),r=l.useMemo(()=>[...s].sort((e,i)=>i.changePct-e.changePct).map(e=>({label:e.symbol,value:e.changePct})),[s]);return m?a.jsx(o,{loading:!0,children:"loading FX rates…"}):r.length===0?a.jsx(o,{children:"no FX data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(d,{data:r,orientation:"horizontal",color:x,negativeColor:h,height:Math.max(r.length*24,96),formatValue:c}),a.jsxs("div",{className:"caption text-soft text-center",children:[t.base.toUpperCase()," FX movers · day change"]})]})}const y=f({...n,component:u});export{y as fxMoversBarsFrame};
1
+ import{r as l,j as a}from"./react-qoZPGuNy.js";import{a as c,D as h,U as x}from"./format-DxkEZcwQ.js";import{f,dv as n,ao as p}from"./index-BJ1Zyy42.js";import{F as o}from"./ui-Bq3RQsdJ.js";import{B as d}from"./bar-chart-DCMbxUJx.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";n.schema;function u({config:t}){const{rates:s,isLoading:m}=p(t.base,t.symbols),r=l.useMemo(()=>[...s].sort((e,i)=>i.changePct-e.changePct).map(e=>({label:e.symbol,value:e.changePct})),[s]);return m?a.jsx(o,{loading:!0,children:"loading FX rates…"}):r.length===0?a.jsx(o,{children:"no FX data yet"}):a.jsxs("div",{className:"flex h-full flex-col justify-center gap-1 text-normal",children:[a.jsx(d,{data:r,orientation:"horizontal",color:x,negativeColor:h,height:Math.max(r.length*24,96),formatValue:c}),a.jsxs("div",{className:"caption text-soft text-center",children:[t.base.toUpperCase()," FX movers · day change"]})]})}const y=f({...n,component:u});export{y as fxMoversBarsFrame};
@@ -1 +1 @@
1
- import{r as u,j as e}from"./react-qoZPGuNy.js";import{a as f}from"./format-DxkEZcwQ.js";import{f as p,dr as h,ao as c}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{C as n,a as C}from"./chart-utils-DGogNvJT.js";import{M as g}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";h.schema;function x({config:a}){const{rates:o,isLoading:l}=c(a.base,a.symbols),s=u.useMemo(()=>o.filter(t=>t.history.length>0).map((t,d)=>{const r=t.history[0].value;return{id:t.symbol,name:t.symbol,color:n[d%n.length],data:t.history.map(m=>({date:new Date(m.time).toISOString(),value:r>0?(m.value-r)/r*100:0}))}}),[o]);return l?e.jsx(i,{loading:!0,children:"loading FX trends…"}):s.length===0?e.jsx(i,{children:"no FX data yet"}):e.jsx(g,{series:s,timeframe:C["1M"],height:220,formatValue:f})}const E=p({...h,component:x});export{E as fxTrendChartFrame};
1
+ import{r as u,j as e}from"./react-qoZPGuNy.js";import{a as f}from"./format-DxkEZcwQ.js";import{f as p,dr as h,ao as c}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";import{C as n,a as C}from"./chart-utils-DGogNvJT.js";import{M as g}from"./index-BpPIfN5S.js";import"./d3-ibrLIlQc.js";import"./utils-DxneYyA_.js";h.schema;function x({config:a}){const{rates:o,isLoading:l}=c(a.base,a.symbols),s=u.useMemo(()=>o.filter(t=>t.history.length>0).map((t,d)=>{const r=t.history[0].value;return{id:t.symbol,name:t.symbol,color:n[d%n.length],data:t.history.map(m=>({date:new Date(m.time).toISOString(),value:r>0?(m.value-r)/r*100:0}))}}),[o]);return l?e.jsx(i,{loading:!0,children:"loading FX trends…"}):s.length===0?e.jsx(i,{children:"no FX data yet"}):e.jsx(g,{series:s,timeframe:C["1M"],height:220,formatValue:f})}const E=p({...h,component:x});export{E as fxTrendChartFrame};
@@ -1 +1 @@
1
- import{j as e}from"./react-qoZPGuNy.js";import{f as m,$ as c}from"./index-CiYWppnQ.js";c.schema;function p({config:t}){const n=t.accent!==void 0,s=t.align==="center",i=n?{"--zf-accent-hue":String(t.accent)}:void 0,a=n?"hsl(var(--zf-accent-hue) 80% 70% / 0.5)":"hsl(0 0% var(--zf-ink-l, 100%) / 0.16)",l=n?"hsl(var(--zf-accent-hue) 80% 70% / 0.06)":"hsl(0 0% var(--zf-ink-l, 100%) / 0.02)",o=`linear-gradient(90deg, ${a}, ${l} 65%, transparent)`,d=`linear-gradient(90deg, transparent, ${l} 35%, ${a})`,r=x=>e.jsx("span",{className:"mb-[5px] h-px flex-1",style:{background:x}}),h=e.jsxs("div",{className:`flex min-w-0 flex-col gap-1 ${s?"items-center":""}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"h-[5px] w-[5px] shrink-0 rounded-full",style:{background:"var(--color-highlight)",boxShadow:"0 0 8px var(--color-highlight)"}}),e.jsx("h2",{className:`body-md font-extrabold uppercase leading-none tracking-[0.14em] ${n?"text-highlight":"text-strong"}`,children:t.title})]}),t.subtitle&&e.jsx("p",{className:`caption text-soft leading-none ${s?"":"pl-[13px]"}`,children:t.subtitle})]});return e.jsxs("div",{className:"flex h-full w-full items-end gap-3 pb-2",style:i,children:[s&&r(d),h,r(o)]})}const f=m({...c,component:p});export{f as headingFrame};
1
+ import{j as e}from"./react-qoZPGuNy.js";import{f as m,$ as c}from"./index-BJ1Zyy42.js";c.schema;function p({config:t}){const n=t.accent!==void 0,s=t.align==="center",i=n?{"--zf-accent-hue":String(t.accent)}:void 0,a=n?"hsl(var(--zf-accent-hue) 80% 70% / 0.5)":"hsl(0 0% var(--zf-ink-l, 100%) / 0.16)",l=n?"hsl(var(--zf-accent-hue) 80% 70% / 0.06)":"hsl(0 0% var(--zf-ink-l, 100%) / 0.02)",o=`linear-gradient(90deg, ${a}, ${l} 65%, transparent)`,d=`linear-gradient(90deg, transparent, ${l} 35%, ${a})`,r=x=>e.jsx("span",{className:"mb-[5px] h-px flex-1",style:{background:x}}),h=e.jsxs("div",{className:`flex min-w-0 flex-col gap-1 ${s?"items-center":""}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"h-[5px] w-[5px] shrink-0 rounded-full",style:{background:"var(--color-highlight)",boxShadow:"0 0 8px var(--color-highlight)"}}),e.jsx("h2",{className:`body-md font-extrabold uppercase leading-none tracking-[0.14em] ${n?"text-highlight":"text-strong"}`,children:t.title})]}),t.subtitle&&e.jsx("p",{className:`caption text-soft leading-none ${s?"":"pl-[13px]"}`,children:t.subtitle})]});return e.jsxs("div",{className:"flex h-full w-full items-end gap-3 pb-2",style:i,children:[s&&r(d),h,r(o)]})}const f=m({...c,component:p});export{f as headingFrame};
@@ -1 +1 @@
1
- import{j as a}from"./react-qoZPGuNy.js";import{U as t,D as r}from"./format-DxkEZcwQ.js";import{f as o,a0 as l}from"./index-CiYWppnQ.js";l.schema;function m({config:e}){const s=e.deltaDir==="up"?t:e.deltaDir==="down"?r:"var(--color-soft)";return a.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-center",children:[e.label&&a.jsx("div",{className:"caption text-soft uppercase tracking-[0.12em]",children:e.label}),a.jsx("div",{className:"metric-lg text-strong break-words leading-none",children:e.value}),e.delta&&a.jsx("div",{className:"body-sm font-semibold tabular-nums",style:{color:s},children:e.delta}),e.sublabel&&a.jsx("div",{className:"caption text-disabled",children:e.sublabel})]})}const c=o({...l,component:m});export{c as heroNumberFrame};
1
+ import{j as a}from"./react-qoZPGuNy.js";import{U as t,D as r}from"./format-DxkEZcwQ.js";import{f as o,a0 as l}from"./index-BJ1Zyy42.js";l.schema;function m({config:e}){const s=e.deltaDir==="up"?t:e.deltaDir==="down"?r:"var(--color-soft)";return a.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-1 text-center",children:[e.label&&a.jsx("div",{className:"caption text-soft uppercase tracking-[0.12em]",children:e.label}),a.jsx("div",{className:"metric-lg text-strong break-words leading-none",children:e.value}),e.delta&&a.jsx("div",{className:"body-sm font-semibold tabular-nums",style:{color:s},children:e.delta}),e.sublabel&&a.jsx("div",{className:"caption text-disabled",children:e.sublabel})]})}const c=o({...l,component:m});export{c as heroNumberFrame};
@@ -1 +1 @@
1
- import{j as n}from"./react-qoZPGuNy.js";import{E as d,a as u,n as h}from"./market-data-CvmpLFSo.js";import{M as f}from"./metric-row-BVVhjsjK.js";import{f as x,bV as m}from"./index-CiYWppnQ.js";import{F as i,s as p}from"./ui-Bq3RQsdJ.js";m.schema;function y(e,o){const[t,a,s]=e.split("-").map(Number),[l,r,c]=o.split("-").map(Number);return Math.round((Date.UTC(l,r-1,c)-Date.UTC(t,a-1,s))/864e5)}function b(e){const[o,t,a]=e.split("-").map(Number);return new Date(Date.UTC(o,t-1,a)).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"})}function C(e){return e<=0?"today":e===1?"tomorrow":`in ${e}d`}function j({config:e}){var l;if(!d[e.exchange])return n.jsx(i,{children:"unknown exchange"});const t=(l=u(e.exchange))==null?void 0:l.ymd,a=h(e.exchange,e.count),s=e.label.trim();return!t||a.length===0?n.jsx(i,{children:"no upcoming holidays on file"}):n.jsxs("div",{className:"flex h-full w-full flex-col",children:[s&&n.jsx("div",{className:"caption text-soft mb-1 shrink-0 uppercase tracking-[0.12em]",children:s}),n.jsx("div",{className:`min-h-0 flex-1 ${p}`,children:a.map(r=>n.jsx(f,{label:b(r),value:C(y(t,r))},r))})]})}const k=x({...m,component:j});export{k as holidayCalendarFrame};
1
+ import{j as n}from"./react-qoZPGuNy.js";import{E as d,a as u,n as h}from"./market-data-CvmpLFSo.js";import{M as f}from"./metric-row-BVVhjsjK.js";import{f as x,bV as m}from"./index-BJ1Zyy42.js";import{F as i,s as p}from"./ui-Bq3RQsdJ.js";m.schema;function y(e,o){const[t,a,s]=e.split("-").map(Number),[l,r,c]=o.split("-").map(Number);return Math.round((Date.UTC(l,r-1,c)-Date.UTC(t,a-1,s))/864e5)}function b(e){const[o,t,a]=e.split("-").map(Number);return new Date(Date.UTC(o,t-1,a)).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"})}function C(e){return e<=0?"today":e===1?"tomorrow":`in ${e}d`}function j({config:e}){var l;if(!d[e.exchange])return n.jsx(i,{children:"unknown exchange"});const t=(l=u(e.exchange))==null?void 0:l.ymd,a=h(e.exchange,e.count),s=e.label.trim();return!t||a.length===0?n.jsx(i,{children:"no upcoming holidays on file"}):n.jsxs("div",{className:"flex h-full w-full flex-col",children:[s&&n.jsx("div",{className:"caption text-soft mb-1 shrink-0 uppercase tracking-[0.12em]",children:s}),n.jsx("div",{className:`min-h-0 flex-1 ${p}`,children:a.map(r=>n.jsx(f,{label:b(r),value:C(y(t,r))},r))})]})}const k=x({...m,component:j});export{k as holidayCalendarFrame};
@@ -1 +1 @@
1
- import{r as l,j as e}from"./react-qoZPGuNy.js";import{f as d,a1 as n}from"./index-CiYWppnQ.js";import{F as i}from"./ui-Bq3RQsdJ.js";n.schema;function m({config:a}){const[o,t]=l.useState("loading"),s=l.useRef(null);return l.useEffect(()=>{t("loading");const r=s.current;r!=null&&r.complete&&t(r.naturalWidth>0?"loaded":"error")},[a.url]),o==="error"?e.jsx(i,{children:"image unavailable"}):e.jsxs("div",{className:"relative flex h-full w-full items-center justify-center overflow-hidden rounded-md",children:[o==="loading"&&e.jsx("div",{className:"absolute inset-0 z-10",children:e.jsx(i,{loading:!0,children:"loading image…"})}),e.jsx("img",{ref:s,src:a.url,alt:a.alt,className:`h-full w-full transition-opacity duration-300 ${o==="loaded"?"opacity-100":"opacity-0"}`,style:{objectFit:a.fit},onLoad:()=>t("loaded"),onError:()=>t("error")})]})}const p=d({...n,component:m});export{p as imageFrame};
1
+ import{r as l,j as e}from"./react-qoZPGuNy.js";import{f as d,a1 as n}from"./index-BJ1Zyy42.js";import{F as i}from"./ui-Bq3RQsdJ.js";n.schema;function m({config:a}){const[o,t]=l.useState("loading"),s=l.useRef(null);return l.useEffect(()=>{t("loading");const r=s.current;r!=null&&r.complete&&t(r.naturalWidth>0?"loaded":"error")},[a.url]),o==="error"?e.jsx(i,{children:"image unavailable"}):e.jsxs("div",{className:"relative flex h-full w-full items-center justify-center overflow-hidden rounded-md",children:[o==="loading"&&e.jsx("div",{className:"absolute inset-0 z-10",children:e.jsx(i,{loading:!0,children:"loading image…"})}),e.jsx("img",{ref:s,src:a.url,alt:a.alt,className:`h-full w-full transition-opacity duration-300 ${o==="loaded"?"opacity-100":"opacity-0"}`,style:{objectFit:a.fit},onLoad:()=>t("loaded"),onError:()=>t("error")})]})}const p=d({...n,component:m});export{p as imageFrame};
@@ -1 +1 @@
1
- import{r as n,j as s}from"./react-qoZPGuNy.js";import{f as y,a2 as h}from"./index-CiYWppnQ.js";import{F as f}from"./ui-Bq3RQsdJ.js";h.schema;function S({config:p}){const{images:a,intervalSec:l,fit:g}=p,[x,c]=n.useState(0),[o,d]=n.useState(()=>a.map(()=>"loading")),u=n.useRef([]),j=a.map(t=>t.url).join("|");n.useEffect(()=>{c(0),d(a.map((t,e)=>{const r=u.current[e];return r!=null&&r.complete?r.naturalWidth>0?"loaded":"error":"loading"}))},[j]),n.useEffect(()=>{if(l<=0||a.length<=1)return;const t=window.setInterval(()=>c(e=>(e+1)%a.length),l*1e3);return()=>window.clearInterval(t)},[l,a.length]);const i=Math.min(x,a.length-1),m=(t,e)=>d(r=>r.map((v,w)=>w===t?e:v));return s.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-md",children:[o[i]==="loading"&&s.jsx("div",{className:"absolute inset-0 z-10",children:s.jsx(f,{loading:!0,children:"loading image…"})}),o[i]==="error"&&s.jsx("div",{className:"absolute inset-0 z-10",children:s.jsx(f,{children:"image unavailable"})}),a.map((t,e)=>s.jsx("img",{ref:r=>{u.current[e]=r},src:t.url,alt:t.alt,className:"absolute inset-0 h-full w-full transition-opacity duration-700",style:{objectFit:g,opacity:e===i&&o[e]==="loaded"?1:0},onLoad:()=>m(e,"loaded"),onError:()=>m(e,"error")},`${e}:${t.url}`))]})}const I=y({...h,component:S});export{I as imageGalleryFrame};
1
+ import{r as n,j as s}from"./react-qoZPGuNy.js";import{f as y,a2 as h}from"./index-BJ1Zyy42.js";import{F as f}from"./ui-Bq3RQsdJ.js";h.schema;function S({config:p}){const{images:a,intervalSec:l,fit:g}=p,[x,c]=n.useState(0),[o,d]=n.useState(()=>a.map(()=>"loading")),u=n.useRef([]),j=a.map(t=>t.url).join("|");n.useEffect(()=>{c(0),d(a.map((t,e)=>{const r=u.current[e];return r!=null&&r.complete?r.naturalWidth>0?"loaded":"error":"loading"}))},[j]),n.useEffect(()=>{if(l<=0||a.length<=1)return;const t=window.setInterval(()=>c(e=>(e+1)%a.length),l*1e3);return()=>window.clearInterval(t)},[l,a.length]);const i=Math.min(x,a.length-1),m=(t,e)=>d(r=>r.map((v,w)=>w===t?e:v));return s.jsxs("div",{className:"relative h-full w-full overflow-hidden rounded-md",children:[o[i]==="loading"&&s.jsx("div",{className:"absolute inset-0 z-10",children:s.jsx(f,{loading:!0,children:"loading image…"})}),o[i]==="error"&&s.jsx("div",{className:"absolute inset-0 z-10",children:s.jsx(f,{children:"image unavailable"})}),a.map((t,e)=>s.jsx("img",{ref:r=>{u.current[e]=r},src:t.url,alt:t.alt,className:"absolute inset-0 h-full w-full transition-opacity duration-700",style:{objectFit:g,opacity:e===i&&o[e]==="loaded"?1:0},onLoad:()=>m(e,"loaded"),onError:()=>m(e,"error")},`${e}:${t.url}`))]})}const I=y({...h,component:S});export{I as imageGalleryFrame};