@everfur/sdk 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/dist/{Chat.d-B4GybUU4.d.ts → Chat.d-BIr_4AJt.d.ts} +1 -1
  2. package/dist/{Chat.d-DPM2ncxi.d.cts → Chat.d-BhevtXn9.d.cts} +1 -1
  3. package/dist/{DepthViews.d-BGspxovy.d.cts → DepthViews.d-C8KdfzwR.d.cts} +1 -1
  4. package/dist/{DepthViews.d-BaLh7Lsi.d.cts → DepthViews.d-DWQ-J208.d.cts} +1 -1
  5. package/dist/{DepthViews.d-BIHVrf9r.d.ts → DepthViews.d-DYVUq4Xk.d.ts} +1 -1
  6. package/dist/{DepthViews.d-CEVk9poG.d.ts → DepthViews.d-oKr9R0Ql.d.ts} +1 -1
  7. package/dist/{IntakeMedia.d-CwSkSLNM.d.ts → IntakeMedia.d-B-ZZK6vd.d.ts} +1 -1
  8. package/dist/{IntakeMedia.d-LRXO38_z.d.cts → IntakeMedia.d-CuVkzIsO.d.cts} +1 -1
  9. package/dist/{IntakeMedia.d-DmaeGU6T.d.cts → IntakeMedia.d-CyF6NPHx.d.cts} +1 -1
  10. package/dist/{IntakeMedia.d-Dyb9R8b0.d.ts → IntakeMedia.d-vU8g9OM5.d.ts} +1 -1
  11. package/dist/{RecordsPage.d-D10RIgdc.d.ts → RecordsPage.d-DU8Nswzh.d.ts} +1 -1
  12. package/dist/{RecordsPage.d-DbhYNSbq.d.cts → RecordsPage.d-DzPhqMHW.d.cts} +1 -1
  13. package/dist/animations/index.d.cts +3 -3
  14. package/dist/animations/index.d.ts +3 -3
  15. package/dist/{attachments.d-CF4lLuGK.d.cts → attachments.d-0nOPDIng.d.cts} +1 -1
  16. package/dist/{attachments.d-BlukNfIf.d.ts → attachments.d-BlyI-RCY.d.ts} +1 -1
  17. package/dist/{bookingCopy.d-Bn8bdo89.d.ts → bookingCopy.d-ClL8OxBS.d.ts} +3 -3
  18. package/dist/{bookingCopy.d-Dg7bPM-U.d.cts → bookingCopy.d-DUVqhF5f.d.cts} +3 -3
  19. package/dist/{branding.d-XrZYClN4.d.ts → branding.d-D0LV3aFE.d.ts} +1 -1
  20. package/dist/{branding.d-CqDLKj1U.d.cts → branding.d-DzSPLZKl.d.cts} +1 -1
  21. package/dist/{casesRepository.d-CVuKTkJo.d.cts → casesRepository.d-DnanKXJ1.d.cts} +1 -1
  22. package/dist/{casesRepository.d-Dn1fK1b2.d.ts → casesRepository.d-_4QucKVC.d.ts} +1 -1
  23. package/dist/chat/index.cjs +239 -238
  24. package/dist/chat/index.d.cts +11 -11
  25. package/dist/chat/index.d.ts +11 -11
  26. package/dist/chat/index.js +241 -240
  27. package/dist/chat/lite/index.cjs +239 -238
  28. package/dist/chat/lite/index.d.cts +11 -11
  29. package/dist/chat/lite/index.d.ts +11 -11
  30. package/dist/chat/lite/index.js +239 -238
  31. package/dist/chat-cards/index.cjs +2 -2
  32. package/dist/chat-cards/index.js +9 -9
  33. package/dist/{chatHandoffToken.d-zdp23Ukr.d.ts → chatHandoffToken.d-BoZGGbIB.d.ts} +5 -5
  34. package/dist/{chatHandoffToken.d-Cap2z62P.d.cts → chatHandoffToken.d-DhhGdLNH.d.cts} +5 -5
  35. package/dist/{checkin.d-CuIUahcd.d.cts → checkin.d-DB-HlK7r.d.cts} +9 -4
  36. package/dist/{checkin.d-BoZXWjxX.d.ts → checkin.d-DogrR06X.d.ts} +9 -4
  37. package/dist/{chunk-LMIBOI3I.js → chunk-6E3J6IVM.js} +13 -13
  38. package/dist/{chunk-6AIEUA4V.js → chunk-J5ZUBY3S.js} +1 -1
  39. package/dist/{chunk-BN7OAFBS.js → chunk-LPHBCDJP.js} +21 -21
  40. package/dist/{chunk-IXHLESYC.js → chunk-ULQDOC75.js} +1 -1
  41. package/dist/client/index.cjs +28 -27
  42. package/dist/client/index.d.cts +13 -13
  43. package/dist/client/index.d.ts +13 -13
  44. package/dist/client/index.js +25 -24
  45. package/dist/{clinicBatch.d-C0xx5L4j.d.cts → clinicBatch.d-BvPF6vXS.d.cts} +2 -2
  46. package/dist/{clinicBatch.d-DNi4UURs.d.ts → clinicBatch.d-CF0GIvpx.d.ts} +2 -2
  47. package/dist/{config.d-B7Z-KTGq.d.ts → config.d-Bc41Ax6M.d.ts} +5 -1
  48. package/dist/{config.d-ClAI2RZ6.d.cts → config.d-Bn6GEGfl.d.cts} +5 -1
  49. package/dist/consent/index.d.cts +5 -5
  50. package/dist/consent/index.d.ts +5 -5
  51. package/dist/{context.d-D7zX6Q0J.d.ts → context.d-0QfLaI3W.d.ts} +5 -5
  52. package/dist/{context.d-guaLkx5t.d.cts → context.d-CyQpedoU.d.cts} +5 -5
  53. package/dist/{copy.d--F5A9cXK.d.cts → copy.d-B55PpLxr.d.cts} +2 -2
  54. package/dist/{copy.d-DmxuFJFe.d.ts → copy.d-B8wIE6cH.d.ts} +2 -2
  55. package/dist/core/index.cjs +32 -31
  56. package/dist/core/index.d.cts +22 -16
  57. package/dist/core/index.d.ts +22 -16
  58. package/dist/core/index.js +37 -36
  59. package/dist/{depth.d-CgzYE6_n.d.ts → depth.d-CrtZXnLy.d.ts} +2 -2
  60. package/dist/{depth.d-DLaP0o8Y.d.cts → depth.d-Cxz6VisZ.d.cts} +2 -2
  61. package/dist/{entitlementRepository.d-CkUTlVAb.d.ts → entitlementRepository.d-BaZTIe1B.d.ts} +3 -3
  62. package/dist/{entitlementRepository.d-DVTp-BB9.d.cts → entitlementRepository.d-YeNG2TKI.d.cts} +3 -3
  63. package/dist/{focus.d-u-HYvim0.d.ts → focus.d-520VEHKB.d.ts} +1 -1
  64. package/dist/{focus.d-CLTjm6In.d.cts → focus.d-DoempN1I.d.cts} +1 -1
  65. package/dist/health-plan/index.cjs +236 -235
  66. package/dist/health-plan/index.d.cts +15 -15
  67. package/dist/health-plan/index.d.ts +15 -15
  68. package/dist/health-plan/index.js +236 -235
  69. package/dist/{healthPlanRepository.d-CwRXeoM7.d.ts → healthPlanRepository.d-BHu9LO0r.d.ts} +2 -2
  70. package/dist/{healthPlanRepository.d-B22kjrYa.d.cts → healthPlanRepository.d-tUR1f_5s.d.cts} +2 -2
  71. package/dist/{idempotency.d-DrxKLPPe.d.cts → idempotency.d-CcFLvzYW.d.cts} +1 -1
  72. package/dist/{idempotency.d-CbB07p64.d.ts → idempotency.d-CvqKG3Uq.d.ts} +1 -1
  73. package/dist/{identity.d-D4VtpqRr.d.ts → identity.d-Bex_XJZx.d.ts} +1 -1
  74. package/dist/{identity.d-DDpXOtas.d.cts → identity.d-Dm0Buvn8.d.cts} +1 -1
  75. package/dist/{inbox.d-B2JXK0uI.d.ts → inbox.d-9ajb0oiJ.d.ts} +1 -1
  76. package/dist/{inbox.d-CwA1ogzV.d.cts → inbox.d-CGCYOZIq.d.cts} +1 -1
  77. package/dist/index.cjs +259 -258
  78. package/dist/index.d.cts +17 -17
  79. package/dist/index.d.ts +17 -17
  80. package/dist/index.js +258 -257
  81. package/dist/{introEvents.d-DW3gLljE.d.ts → introEvents.d-CuVaufTy.d.ts} +1 -1
  82. package/dist/{introEvents.d-B7acmGwf.d.cts → introEvents.d-DU6feqx4.d.cts} +1 -1
  83. package/dist/{layout.d-C8y_ki1V.d.ts → layout.d-BQ5IVS-m.d.ts} +1 -1
  84. package/dist/{layout.d-DfaFM_lp.d.cts → layout.d-CSPr33BP.d.cts} +1 -1
  85. package/dist/notifications/inbox/index.d.cts +6 -6
  86. package/dist/notifications/inbox/index.d.ts +6 -6
  87. package/dist/notifications/index.d.cts +7 -7
  88. package/dist/notifications/index.d.ts +7 -7
  89. package/dist/{optInView.d-Cps7aLQN.d.ts → optInView.d-DpGXnpGw.d.ts} +21 -3
  90. package/dist/{optInView.d-ChJyJMBA.d.cts → optInView.d-dLjrI3co.d.cts} +21 -3
  91. package/dist/{pets.d-BpLObpfM.d.ts → pets.d-CHdSIoBf.d.ts} +1 -1
  92. package/dist/{pets.d-DXhzTNuI.d.cts → pets.d-jnhrJhqm.d.cts} +1 -1
  93. package/dist/{petsRepository.d-ai_tZ3lu.d.cts → petsRepository.d-BeKRiNao.d.cts} +1 -1
  94. package/dist/{petsRepository.d-_QfM7F6T.d.ts → petsRepository.d-BjwB1vku.d.ts} +1 -1
  95. package/dist/{presentation.d-BkIvMtIl.d.cts → presentation.d-Br3TnwA6.d.cts} +17 -1
  96. package/dist/{presentation.d-BkIvMtIl.d.ts → presentation.d-Br3TnwA6.d.ts} +17 -1
  97. package/dist/records/depth/index.d.cts +9 -9
  98. package/dist/records/depth/index.d.ts +9 -9
  99. package/dist/records/index.cjs +237 -228
  100. package/dist/records/index.d.cts +39 -12
  101. package/dist/records/index.d.ts +39 -12
  102. package/dist/records/index.js +155 -146
  103. package/dist/{requestFunnel.d-DKBPTpsy.d.ts → requestFunnel.d-C_NMgz9R.d.ts} +2 -2
  104. package/dist/{requestFunnel.d-BwZDfWVD.d.cts → requestFunnel.d-DoJWLySc.d.cts} +2 -2
  105. package/dist/{route.d-QBCoO62z.d.cts → route.d-BW2abFVK.d.cts} +2 -2
  106. package/dist/{route.d-B3u14HJT.d.ts → route.d-Olr_gXaa.d.ts} +2 -2
  107. package/dist/{runtimeTypes.d-hjN6xvxm.d.ts → runtimeTypes.d-Bp2VW6YE.d.ts} +6 -6
  108. package/dist/{runtimeTypes.d-BSxuUCOX.d.cts → runtimeTypes.d-StvJY45N.d.cts} +6 -6
  109. package/dist/{screenProps.d-fHBKArt_.d.ts → screenProps.d-BTLSji0N.d.ts} +1 -1
  110. package/dist/{screenProps.d-6xmE1C-V.d.cts → screenProps.d-B_5Bh7aQ.d.cts} +1 -1
  111. package/dist/server/events/index.cjs +2 -2
  112. package/dist/server/events/index.d.cts +19 -5
  113. package/dist/server/events/index.d.ts +19 -5
  114. package/dist/server/events/index.js +2 -2
  115. package/dist/server/index.cjs +1 -1
  116. package/dist/server/index.d.cts +3 -3
  117. package/dist/server/index.d.ts +3 -3
  118. package/dist/server/index.js +1 -1
  119. package/dist/shop/index.d.cts +3 -3
  120. package/dist/shop/index.d.ts +3 -3
  121. package/dist/slots/index.cjs +200 -199
  122. package/dist/slots/index.d.cts +5 -5
  123. package/dist/slots/index.d.ts +5 -5
  124. package/dist/slots/index.js +200 -199
  125. package/dist/tabs/index.cjs +200 -190
  126. package/dist/tabs/index.d.cts +68 -11
  127. package/dist/tabs/index.d.ts +68 -11
  128. package/dist/tabs/index.js +201 -191
  129. package/dist/tabs-bar/index.cjs +247 -0
  130. package/dist/tabs-bar/index.d.cts +10 -0
  131. package/dist/tabs-bar/index.d.ts +10 -0
  132. package/dist/tabs-bar/index.js +247 -0
  133. package/dist/{tabsModel.d-D9GWPFrL.d.ts → tabsModel.d-B4MSQB57.d.cts} +5 -2
  134. package/dist/{tabsModel.d-D9GWPFrL.d.cts → tabsModel.d-C8pd-DP3.d.ts} +5 -2
  135. package/dist/televet/booking/index.cjs +147 -145
  136. package/dist/televet/booking/index.d.cts +10 -10
  137. package/dist/televet/booking/index.d.ts +10 -10
  138. package/dist/televet/booking/index.js +163 -161
  139. package/dist/televet/call/index.cjs +52 -52
  140. package/dist/televet/call/index.d.cts +5 -0
  141. package/dist/televet/call/index.d.ts +5 -0
  142. package/dist/televet/call/index.js +25 -25
  143. package/dist/televet/index.d.cts +3 -3
  144. package/dist/televet/index.d.ts +3 -3
  145. package/dist/{televetGlobal.d-gZrXPaLl.d.cts → televetGlobal.d-B_I_fy7O.d.cts} +9 -0
  146. package/dist/{televetGlobal.d-DkJkV55Y.d.ts → televetGlobal.d-DN7o45WJ.d.ts} +9 -0
  147. package/dist/testing/index.cjs +3 -3
  148. package/dist/testing/index.d.cts +1 -1
  149. package/dist/testing/index.d.ts +1 -1
  150. package/dist/testing/index.js +3 -3
  151. package/dist/testing/rn/index.d.cts +9 -9
  152. package/dist/testing/rn/index.d.ts +9 -9
  153. package/dist/testing/web/index.d.cts +9 -9
  154. package/dist/testing/web/index.d.ts +9 -9
  155. package/dist/texting/index.cjs +32 -27
  156. package/dist/texting/index.d.cts +5 -5
  157. package/dist/texting/index.d.ts +5 -5
  158. package/dist/texting/index.js +52 -47
  159. package/dist/{threadOptions.d-NSlFx-Lp.d.ts → threadOptions.d-D_3hk79R.d.ts} +5 -5
  160. package/dist/{threadOptions.d-Dc57dm7h.d.cts → threadOptions.d-D_GU6lp9.d.cts} +5 -5
  161. package/dist/{timelineRows.d-CthNM5hV.d.ts → timelineRows.d-BbVuARtc.d.ts} +1 -1
  162. package/dist/{timelineRows.d-7w8NsNi4.d.cts → timelineRows.d-BiLAAbYl.d.cts} +1 -1
  163. package/dist/{typeStyle.d-8mcLhtbH.d.ts → typeStyle.d-DSk99BuZ.d.ts} +1 -1
  164. package/dist/{typeStyle.d-CLrQZW-r.d.cts → typeStyle.d-DqR6mWCF.d.cts} +1 -1
  165. package/dist/{useHealthPlanSubscription.d-CV7M21HS.d.ts → useHealthPlanSubscription.d-CpE6l1VW.d.ts} +3 -3
  166. package/dist/{useHealthPlanSubscription.d-SA9-SuKe.d.cts → useHealthPlanSubscription.d-DRiWDJXq.d.cts} +3 -3
  167. package/dist/{useInboxUnread.d-0DrQPn7J.d.ts → useInboxUnread.d-BV7PkWDH.d.ts} +1 -1
  168. package/dist/{useInboxUnread.d-CRcOTkmu.d.cts → useInboxUnread.d-CElyXBkY.d.cts} +1 -1
  169. package/dist/{usePresentation.d-BJzFicRQ.d.cts → usePresentation.d-BcazazQH.d.cts} +3 -3
  170. package/dist/{usePresentation.d-DgSGIWS-.d.ts → usePresentation.d-CMOypLlH.d.ts} +3 -3
  171. package/dist/{useRecordsDepth.d-ZX2rhcUx.d.ts → useRecordsDepth.d-Bka4KQhq.d.ts} +1 -1
  172. package/dist/{useRecordsDepth.d-C9W45gwS.d.cts → useRecordsDepth.d-TgmpxKdX.d.cts} +1 -1
  173. package/dist/{useUnread.d-4SbFChbd.d.ts → useUnread.d-CGqaP-dB.d.ts} +27 -5
  174. package/dist/{useUnread.d-B0YhhR_D.d.cts → useUnread.d-DVVnYNPU.d.cts} +27 -5
  175. package/dist/{view.d-3lxzyJlL.d.cts → view.d-CwruYhQy.d.cts} +3 -3
  176. package/dist/{view.d-DRiYNQJ8.d.ts → view.d-DamH8TQF.d.ts} +3 -3
  177. package/dist/web/consent/index.d.cts +5 -5
  178. package/dist/web/consent/index.d.ts +5 -5
  179. package/dist/web/health-plan/index.cjs +9 -8
  180. package/dist/web/health-plan/index.d.cts +16 -16
  181. package/dist/web/health-plan/index.d.ts +16 -16
  182. package/dist/web/health-plan/index.js +49 -48
  183. package/dist/web/inbox/index.d.cts +7 -7
  184. package/dist/web/inbox/index.d.ts +7 -7
  185. package/dist/web/index.cjs +185 -184
  186. package/dist/web/index.d.cts +32 -32
  187. package/dist/web/index.d.ts +32 -32
  188. package/dist/web/index.js +187 -186
  189. package/dist/web/intro/index.d.cts +7 -7
  190. package/dist/web/intro/index.d.ts +7 -7
  191. package/dist/web/notifications/index.d.cts +6 -6
  192. package/dist/web/notifications/index.d.ts +6 -6
  193. package/dist/web/records/depth/index.d.cts +9 -9
  194. package/dist/web/records/depth/index.d.ts +9 -9
  195. package/dist/web/records/index.d.cts +11 -11
  196. package/dist/web/records/index.d.ts +11 -11
  197. package/dist/web/records-sheet/index.cjs +111 -110
  198. package/dist/web/records-sheet/index.js +111 -110
  199. package/dist/web/shop/index.cjs +1 -1
  200. package/dist/web/shop/index.d.cts +3 -3
  201. package/dist/web/shop/index.d.ts +3 -3
  202. package/dist/web/shop/index.js +1 -1
  203. package/dist/web/televet/booking/index.cjs +3 -3
  204. package/dist/web/televet/booking/index.d.cts +10 -10
  205. package/dist/web/televet/booking/index.d.ts +10 -10
  206. package/dist/web/televet/booking/index.js +69 -69
  207. package/dist/web/televet/call/index.cjs +1 -1
  208. package/dist/web/televet/call/index.js +1 -1
  209. package/dist/web/televet/index.d.cts +3 -3
  210. package/dist/web/televet/index.d.ts +3 -3
  211. package/dist/web/texting/index.cjs +34 -29
  212. package/dist/web/texting/index.d.cts +5 -5
  213. package/dist/web/texting/index.d.ts +5 -5
  214. package/dist/web/texting/index.js +45 -40
  215. package/dist/web/ui/index.cjs +1 -1
  216. package/dist/web/ui/index.js +33 -33
  217. package/package.json +16 -1
  218. package/tabs-bar/package.json +8 -0
@@ -18,286 +18,287 @@ return Object.freeze({orders:/* @__PURE__ */Object.freeze(t.map(healthPlanOneBox
18
18
  return Object.freeze({productId:n,currency:r,boxPrice:i,firstBoxPrice:l?zt(t.first_box_price)??i:i,firstBoxDiscountPercent:l?d:0,offerApplies:l,oneBox:Kt(t.one_box,i),intervalOptions:o,defaultIntervalDays:a!==null&&o.includes(a)?a:o[0],supply:c,firstBoxShipsOn:_t(t.first_box_ships_on),subscription:healthPlanSubscriptionFromWire(t.subscription)})}function Xt(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Yt(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response carried no subscription`})}function Jt(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var Qt=e=>typeof e=="string"&&e.length>0&&e.length<=Pt;function Zt(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan/subscriptions`}function createHealthPlanSubscriptionRepositoryOver(e){let t=Je(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}})),n=async(e,petRef,n,r,i)=>{if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));let o=await t.send(e,{method:n,path:`${Zt(petRef)}${r}`,...i===void 0?{}:{body:i}});if(!o.ok)return err(o.error);let l=healthPlanSubscriptionFromWire(o.value);return l===null?err(Yt(e)):ok(l)},r=(e,t="")=>Qt(e)?`/${encodeURIComponent(e)}${t}`:null;return{async quote(petRef,e){if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));if(!Qt(e))return err(Xt("productId must be 1..128 characters"));let n=await t.send("healthPlan.subscription.quote",{method:"GET",path:`${Zt(petRef)}/quote`,query:{product_id:e}});if(!n.ok)return err(n.error);let r=healthPlanSubscriptionQuoteFromWire(n.value);return r===null?err(Yt("healthPlan.subscription.quote")):ok(r)},async list(petRef){if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.list",{method:"GET",path:Zt(petRef)});if(!e.ok)return err(e.error);let n=e.value!==null&&typeof e.value=="object"?e.value.subscriptions:null;return Array.isArray(n)?ok(/* @__PURE__ */Object.freeze(n.map(healthPlanSubscriptionFromWire).filter(e=>e!==null))):err(Yt("healthPlan.subscription.list"))},create(petRef,e,t){return Qt(e)?n("healthPlan.subscription.create",petRef,"POST","",{product_id:e,...t===void 0?{}:{interval_days:t}}):Promise.resolve(err(Xt("productId must be 1..128 characters")))},changeInterval(petRef,e,t){let i=r(e);return i===null?Promise.resolve(err(Xt("subscriptionId must be 1..128 characters"))):n("healthPlan.subscription.interval",petRef,"PATCH",i,{interval_days:t})},skip(petRef,e){let t=r(e,"/skip");return t===null?Promise.resolve(err(Xt("subscriptionId must be 1..128 characters"))):n("healthPlan.subscription.skip",petRef,"POST",t,{})},cancel(petRef,e){let t=r(e,"/cancel");return t===null?Promise.resolve(err(Xt("subscriptionId must be 1..128 characters"))):n("healthPlan.subscription.cancel",petRef,"POST",t,{})},restart(petRef,e,t){let i=r(e,"/restart");return i===null?Promise.resolve(err(Xt("subscriptionId must be 1..128 characters"))):n("healthPlan.subscription.restart",petRef,"POST",i,t===void 0?{}:{interval_days:t})},async buyOneBox(petRef,e,n){if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));if(!Qt(e))return err(Xt("productId must be 1..128 characters"));let r=await t.send("healthPlan.subscription.oneBox",{method:"POST",path:`${Zt(petRef)}/one-box`,body:{product_id:e}},{idempotent:true,...n===void 0?{}:{idempotencyKey:`hp-one-box:${n}`}});if(!r.ok)return err(r.error);let i=healthPlanOneBoxOrderFromWire(r.value);return i===null?err(Yt("healthPlan.subscription.oneBox")):ok(i)},async listOneBoxOrders(petRef){if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));let e=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${Zt(petRef)}/one-box`});if(!e.ok)return err(e.error);let n=healthPlanOneBoxOrderPageFromWire(e.value);return n===null?err(Yt("healthPlan.subscription.oneBoxList")):ok(n.orders)},async listOneBoxOrderPage(petRef,e){if(!Qt(petRef))return err(Xt("petRef must be 1..128 characters"));let n=e?.limit;if(n!==void 0&&!(Number.isInteger(n)&&n>=1&&n<=50))return err(Xt("limit must be a whole number 1..50"));if(e?.cursor!==void 0&&!Qt(e.cursor))return err(Xt("cursor must be 1..128 characters"));let r={...n!==void 0?{limit:String(n)}:{},...e?.cursor!==void 0?{cursor:e.cursor}:{}},i=await t.send("healthPlan.subscription.oneBoxList",{method:"GET",path:`${Zt(petRef)}/one-box`,query:r});if(!i.ok)return err(i.error);let o=healthPlanOneBoxOrderPageFromWire(i.value);return o===null?err(Yt("healthPlan.subscription.oneBoxList")):ok(o)}}}function createHealthPlanSubscriptionRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanSubscriptionRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})},n=(n,r)=>(...i)=>e.isDisposed?Promise.resolve(err(Jt(n))):r(t(),...i);return{quote:n("quote",(e,t,n)=>e.quote(t,n)),list:n("list",(e,t)=>e.list(t)),create:n("create",(e,t,n,r)=>e.create(t,n,r)),changeInterval:n("changeInterval",(e,t,n,r)=>e.changeInterval(t,n,r)),skip:n("skip",(e,t,n)=>e.skip(t,n)),cancel:n("cancel",(e,t,n)=>e.cancel(t,n)),restart:n("restart",(e,t,n,r)=>e.restart(t,n,r)),buyOneBox:n("buyOneBox",(e,t,n,r)=>e.buyOneBox(t,n,r)),listOneBoxOrders:n("listOneBoxOrders",(e,t)=>e.listOneBoxOrders(t)),listOneBoxOrderPage:n("listOneBoxOrderPage",(e,t,n)=>e.listOneBoxOrderPage(t,n))}}var en=/* @__PURE__ */new Set(["cart_disabled","cart_has_subscription","cart_currency_mixed","sample_product","partner_endpoint_missing","checkout_pending","already_subscribed"]);function healthPlanCheckoutRefusal(e){if(e==null||e.httpStatus!==409)return null;let t=an(e.raw);for(let n of[e.reasonCode,e.wireMessage,t?.detail,t?.message,t?.reason_code])if(typeof n=="string"&&en.has(n.trim()))return n.trim();return null}var tn=128,nn=10,rn=/* @__PURE__ */new Set(["shield","arrow","check","star","truck","refresh","card","alert","x","chat","repeat","calendar","flame","box","cart","minus","plus","chev","pulse","file","kit","dna","heart","bottle","harness","ramp"]),on=/* @__PURE__ */new Set(["y","c","g","r"]),ln=/* @__PURE__ */new Set(["done","now","next"]),an=e=>e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null,sn=(e,t=1e3)=>typeof e=="string"&&e.trim().length>0&&e.length<=t?e.trim():null,cn=e=>typeof e=="string"&&/^[A-Za-z0-9_-]{1,40}$/.test(e)?e:null,dn=e=>typeof e=="string"&&rn.has(e)?e:null;function un(e){let t=sn(e,2048);return t===null||/\s/.test(t)?null:/^https:\/\/[^/]/i.test(t)||/^\/(?![/\\])/.test(t)?t:null}var pn=e=>typeof e=="number"&&Number.isInteger(e)?String(e):sn(e,tn);function hn(e){return typeof e=="number"&&Number.isFinite(e)&&e>0?e:null}function gn(e){/* @__PURE__ */
19
19
  return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null)))}function fn(e,t,n=20){if(!Array.isArray(e))return null;let r=[];for(let i of e){if(r.length>=n)break;let e=t(i);e!==null&&r.push(e)}return r.length===0?null:/* @__PURE__ */Object.freeze(r)}var mn=(e,t=12,n=300)=>fn(e,e=>sn(e,n),t);function yn(e){let t=an(e),n=sn(t?.kicker,120),r=sn(t?.title,300);if(t===null||n===null||r===null)return null;let i=an(t.risk),o=an(t.odds),l=an(t.quote),a=an(t.jump);return gn({kicker:n,title:r,sources:fn(t.sources,e=>{let t=sn(an(e)?.label,60);return t===null?null:gn({label:t,kind:cn(an(e)?.kind)})},6),risk:sn(i?.lead,300)===null?null:gn({lead:sn(i?.lead,300),body:sn(i?.body),kind:cn(i?.kind)}),odds:sn(o?.label,120)===null||sn(o?.from,20)===null||sn(o?.to,20)===null?null:gn({label:sn(o?.label,120),tag:sn(o?.tag,40),from:sn(o?.from,20),to:sn(o?.to,20),toLabel:sn(o?.toLabel,120)}),quote:sn(l?.text)===null?null:gn({kicker:sn(l?.kicker,120),tag:sn(l?.tag,40),text:sn(l?.text)}),jump:sn(a?.title,300)===null||sn(a?.go,60)===null?null:gn({title:sn(a?.title,300),go:sn(a?.go,60)}),report:bn(t.report)})}function bn(e){let t=an(e),n=sn(t?.label,120),r=sn(t?.text,1200);return n===null||r===null?null:gn({label:n,text:r,actions:mn(t?.actions,5,300)})}function wn(e){let t=an(e),n=sn(t?.title,300),r=fn(t?.steps,e=>{let t=an(e),n=sn(t?.title,300),r=t?.tone;return n===null?null:gn({title:n,body:sn(t?.body),source:sn(t?.source,200),tone:typeof r=="string"&&on.has(r)?r:null,icon:dn(t?.icon),fromVet:t?.fromVet===true?true:null})});return n===null||r===null?null:gn({title:n,label:sn(t?.label,60),steps:r})}function xn(e){let t=an(e),n=sn(t?.title,300);if(t===null||n===null)return null;let r=an(t.rating),i=an(t.reviews),o=an(t.why),l=an(o?.score),a=an(t.dose),s=an(t.ingredients),c=fn(i?.items,e=>{let t=an(e),n=t?.stars,r=sn(t?.text),i=sn(t?.by,80);return typeof n!="number"||!Number.isFinite(n)||n<1||n>5||r===null||i===null?null:gn({stars:Math.round(n),text:r,by:i})},5),d=fn(o?.rows,e=>{let t=an(e),n=sn(t?.chip,40),r=sn(t?.title,300);return n===null||r===null?null:gn({chip:n,kind:cn(t?.kind),title:r,body:sn(t?.body)})}),u=fn(a?.stats,e=>{let t=an(e),n=sn(t?.value,40),r=sn(t?.label,120),i=t?.kind;return n===null||r===null?null:gn({value:n,label:r,kind:i==="weight"||i==="dose"||i==="days"?i:null})},6),p=mn(s?.items,12,80);return gn({title:n,none:t.none===true?true:null,hidden:t.none===true&&t.hidden===true?true:null,productId:pn(t.productId),partnerSku:sn(t.partnerSku,200),rating:sn(r?.value,20)===null?null:gn({value:sn(r?.value,20),label:sn(r?.label,120)}),line:sn(t.line),reviews:sn(i?.label,200)===null||c===null?null:gn({label:sn(i?.label,200),items:c}),checkoutLine:sn(t.checkoutLine,300),why:sn(o?.title,200)===null||d===null?null:gn({title:sn(o?.title,200),rows:d,score:sn(l?.text,200)===null||sn(l?.value,20)===null?null:gn({text:sn(l?.text,200),value:sn(l?.value,20)})}),dose:sn(a?.title,200)===null||u===null?null:gn({title:sn(a?.title,200),stats:u,note:sn(a?.note)}),doseLabel:sn(t.doseLabel,120),ingredients:p===null?null:gn({label:sn(s?.label,200),items:p}),proof:sn(t.proof,300),trust:fn(t.trust,e=>{let t=an(e),n=dn(t?.icon),r=sn(t?.label,120);return n===null||r===null?null:gn({icon:n,label:r})},6),more:sn(t.more,120),fine:sn(t.fine),checkin:sn(t.checkin,200),detail:pt(t.detail)??null})}function kn(e){let t=an(e),n=sn(t?.title,200),r=fn(t?.items,e=>{let t=an(e),n=sn(t?.title,300),r=sn(t?.body);return n===null||r===null?null:gn({title:n,body:r,urgent:t?.urgent===true?true:null,callVet:t?.callVet===true?true:null})});return n===null||r===null?null:gn({title:n,items:r})}function vn(e){let t=an(e),n=sn(t?.title,200),r=mn(t?.questions,12,300),i=sn(t?.add,80),o=sn(t?.added,80);return n===null||r===null||i===null||o===null?null:gn({title:n,questions:r,add:i,added:o})}function Sn(e){let t=an(e),n=sn(t?.title,200),r=fn(t?.items,e=>{let t=an(e),n=sn(t?.key,tn),r=sn(t?.title,300),i=sn(t?.action,80),o=pn(t?.productId),l=sn(t?.added,80)??(o!==null?i:null);return n===null||r===null||i===null||l===null?null:gn({key:n,productId:o,title:r,body:sn(t?.body),price:sn(t?.price,40),was:sn(t?.was,40),tag:sn(t?.tag,40),imageUrl:un(t?.imageUrl),icon:dn(t?.icon),kind:cn(t?.kind),action:i,added:l,owned:t?.owned===true?true:null,detail:pt(t?.detail)??null})},6);return n===null||r===null?null:gn({title:n,items:r})}function Tn(e){let t=an(e),n=sn(t?.kicker,120),r=sn(t?.title,120);return t===null||n===null||r===null?null:gn({kicker:n,title:r,icon:dn(t.icon),track:fn(t.track,e=>{let t=an(e),n=sn(t?.title,120),r=t?.state;return n===null?null:gn({title:n,detail:sn(t?.detail,120),state:typeof r=="string"&&ln.has(r)?r:null,tag:sn(t?.tag,40)})},6),heading:sn(t.heading,200),rows:fn(t.rows,e=>{let t=an(e),n=dn(t?.icon),r=sn(t?.label,120);if(n===null||r===null)return null;if(t?.fromVet===true)return gn({icon:n,label:r,text:"",fromVet:true});let i=sn(t?.text,300);return i===null?null:gn({icon:n,label:r,text:i})},6),note:sn(t.note,300),action:sn(t.action,80)})}function healthPlanFocusDesignFromWire(e){let t=an(e),n=sn(t?.title,300),r=xn(t?.pick);if(t===null||n===null||r===null)return null;let i=an(t.byline);return gn({eyebrow:sn(t.eyebrow,120),title:n,subtitle:sn(t.subtitle,300),subtitleNoRecords:sn(t.subtitleNoRecords,300),headImageUrl:un(t.headImageUrl),byline:sn(i?.name,120)===null?null:gn({name:sn(i?.name,120),role:sn(i?.role,120),imageUrl:un(i?.imageUrl),shortName:sn(i?.shortName,60)}),focus:yn(t.focus),routine:wn(t.routine),pick:r,signs:kn(t.signs),checkup:vn(t.checkup),extras:Sn(t.extras),wait:Tn(t.wait),fine:sn(t.fine),checkoutRows:fn(t.checkoutRows,e=>{let t=an(e),n=dn(t?.icon),r=sn(t?.label,60),i=sn(t?.value,200);return n===null||r===null||i===null?null:gn({icon:n,label:r,value:i})},6)})}function healthPlanPageFromWire(e,petRef){let t=an(e);if(t===null||!("page"in t))return null;let n=an(t.pet),r=n?.sex;/* @__PURE__ */
20
20
  return Object.freeze({petRef:sn(t.pet_ref,tn)??petRef,pet:/* @__PURE__ */Object.freeze({name:sn(n?.name,120),species:sn(n?.species,60),sex:r==="female"||r==="male"?r:null,breed:sn(n?.breed,120),weightKg:hn(n?.weight_kg),weightLb:hn(n?.weight_lb)}),checkout:t.checkout==="everfur_stripe"?"everfur_stripe":"partner",page:healthPlanFocusDesignFromWire(t.page),vetReviewed:t.vet_reviewed===true,trackingTextsEnabled:t.tracking_texts_enabled===true})}function healthPlanCheckoutSessionFromWire(e){let t=an(e),n=pn(t?.checkout_id),r=sn(t?.url,4096);return n===null||r===null||!/^https:\/\/[^\s/][^\s]*$/i.test(r)?null:/* @__PURE__ */Object.freeze({checkoutId:n,url:r})}var Cn=/* @__PURE__ */new Set(["pending","paid","expired","failed"]);function healthPlanCheckoutStateFromWire(e){let t=an(e),n=t?.status,r=t?.purchase;if(typeof n!="string"||!Cn.has(n)||r!=="one_box"&&r!=="subscription")return null;let i=healthPlanOneBoxOrderFromWire(t?.order),o=Array.isArray(t?.orders)?(t?.orders).map(healthPlanOneBoxOrderFromWire).filter(e=>e!==null):[];/* @__PURE__ */
21
- return Object.freeze({status:n,purchase:r,order:i??o[0]??null,orders:/* @__PURE__ */Object.freeze(o.length>0?o:i===null?[]:[i]),subscription:healthPlanSubscriptionFromWire(t?.subscription)})}function jn(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function In(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response was not the expected shape`})}function Hn(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var Pn=e=>typeof e=="string"&&e.length>0&&e.length<=tn,Fn=e=>typeof e=="string"&&e.length<=2048&&/^https?:\/\/[^\s/][^\s]*$/i.test(e);function Rn(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}async function Dn(e,petRef,t){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));let n=await e.send("healthPlan.page.read",{method:"GET",path:`${Rn(petRef)}/page`,...t?.signal?{signal:t.signal}:{}});if(!n.ok)return err(n.error);let r=healthPlanPageFromWire(n.value,petRef);return r===null?err(In("healthPlan.page.read")):ok(r)}var zn=/* @__PURE__ */new WeakMap;function $n(e){let t=zn.get(e);if(t!==void 0)return t;let n=On(e);return zn.set(e,n),n}function On(e){return{getPage:(petRef,t)=>{if(e.isDisposed)return Promise.resolve(err(Hn("getPage")));let{services:n}=e.registry,r=Je(createRequestFunnel({auth:n.authFor(null),...n.errorPolicy?{errorPolicy:n.errorPolicy}:{}}));return Dn(r,petRef,t)}}}function createHealthPlanPageRepositoryOver(e){let t=Je(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}}));return{getPage:(petRef,e)=>Dn(t,petRef,e),async startCheckout(petRef,e,n){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));if(!Pn(e.productId))return err(jn("productId must be 1..128 characters"));if(e.purchase!=="one_box"&&e.purchase!=="subscription")return err(jn("purchase must be one_box or subscription"));if(e.intervalDays!==void 0&&(!Number.isInteger(e.intervalDays)||e.intervalDays<=0))return err(jn("intervalDays must be a positive whole number"));if(!Fn(e.successUrl)||!Fn(e.cancelUrl))return err(jn("successUrl and cancelUrl must be absolute http(s) URLs"));let r=await t.send("healthPlan.checkout.start",{method:"POST",path:`${Rn(petRef)}/checkout`,body:{product_id:e.productId,purchase:e.purchase,...e.purchase==="subscription"&&e.intervalDays!==void 0?{interval_days:e.intervalDays}:{},success_url:e.successUrl,cancel_url:e.cancelUrl}},{idempotent:true,idempotencyKey:`hp-checkout:${n}`});if(!r.ok)return err(r.error);let i=healthPlanCheckoutSessionFromWire(r.value);return i===null?err(In("healthPlan.checkout.start")):ok(i)},async startCartCheckout(petRef,e,n){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));let r=e.items;if(!Array.isArray(r)||r.length<1||r.length>nn)return err(jn("items must hold 1..10 lines"));let i=/* @__PURE__ */new Set;for(let e of r){if(!Pn(e.productId)||i.has(e.productId))return err(jn("each item needs a productId, once per cart"));if(i.add(e.productId),e.purchase!=="one_box"&&e.purchase!=="subscription")return err(jn("purchase must be one_box or subscription"));let t=e.quantity??1;if(!Number.isInteger(t)||t<1||t>nn)return err(jn("quantity must be a whole number 1..10"));if(e.purchase==="subscription"&&t!==1)return err(jn("a subscription line is quantity 1"));if(e.intervalDays!==void 0&&(!Number.isInteger(e.intervalDays)||e.intervalDays<=0))return err(jn("intervalDays must be a positive whole number"))}if(!Fn(e.successUrl)||!Fn(e.cancelUrl))return err(jn("successUrl and cancelUrl must be absolute http(s) URLs"));let o=await t.send("healthPlan.checkout.start",{method:"POST",path:`${Rn(petRef)}/checkout`,body:{items:r.map(e=>({product_id:e.productId,purchase:e.purchase,...e.purchase==="subscription"&&e.intervalDays!==void 0?{interval_days:e.intervalDays}:{},quantity:e.quantity??1})),success_url:e.successUrl,cancel_url:e.cancelUrl}},{idempotent:true,idempotencyKey:`hp-checkout:${n}`});if(!o.ok)return err(o.error);let l=healthPlanCheckoutSessionFromWire(o.value);return l===null?err(In("healthPlan.checkout.start")):ok(l)},async getCheckout(petRef,e){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));if(!Pn(e))return err(jn("checkoutId must be 1..128 characters"));let n=await t.send("healthPlan.checkout.read",{method:"GET",path:`${Rn(petRef)}/checkout/${encodeURIComponent(e)}`});if(!n.ok)return err(n.error);let r=healthPlanCheckoutStateFromWire(n.value);return r===null?err(In("healthPlan.checkout.read")):ok(r)}}}function createHealthPlanPageRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanPageRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})};return{getPage:(petRef,n)=>e.isDisposed?Promise.resolve(err(Hn("getPage"))):t().getPage(petRef,n),startCheckout:(petRef,n,r)=>e.isDisposed?Promise.resolve(err(Hn("startCheckout"))):t().startCheckout(petRef,n,r),startCartCheckout:(petRef,n,r)=>e.isDisposed?Promise.resolve(err(Hn("startCartCheckout"))):t().startCartCheckout?.(petRef,n,r)??Promise.resolve(err(Hn("startCartCheckout"))),getCheckout:(petRef,n)=>e.isDisposed?Promise.resolve(err(Hn("getCheckout"))):t().getCheckout(petRef,n)}}var Bn=It,_n=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanPageReads@v1");function Ln(){let e=globalThis,t=e[_n];if(t instanceof WeakMap)return t;let n=/* @__PURE__ */new WeakMap;return e[_n]=n,n}function En(e,t,userRef,petRef,n){let r=Ln(),i=r.get(t);i===void 0&&(i=/* @__PURE__ */new Map,r.set(t,i));let o=i,l=`${userRef}\0${petRef}`,a=o.get(l);if(!n&&a!==void 0&&(a.at===null||Date.now()-a.at<Bn))return a.promise;let s={at:null,promise:e.getPage(petRef).then(e=>(o.get(l)===s&&(e.ok||Ke(e.error)?s.at=Date.now():o.delete(l)),e))};return o.set(l,s),s.promise}function useHealthPlanPageRepository(){let{runtime:t}=$();return e.useMemo(()=>createHealthPlanPageRepository(t),[t])}function useHealthPlanPage(t){let{userRef:userRef,runtime:n}=$(),r=e.useMemo(()=>$n(n),[n]),i=t.repository,o=i??r,l=e.useCallback((e,t)=>i!==void 0||userRef==null?o.getPage(e):En(r,n,userRef,e,t),[i,o,r,n,userRef]),{petRef:petRef}=t,a=t.enabled!==false&&userRef!=null&&petRef!==null,[s,c]=e.useState({phase:"idle",petRef:null,page:null,error:null}),d=e.useRef(0),u=e.useRef(0),p=e.useCallback(async e=>{let t=++d.current;if(!a||petRef===null){c(e=>e.phase==="idle"&&e.petRef===null?e:{phase:"idle",petRef:null,page:null,error:null});return}c(e=>({phase:"loading",petRef:petRef,page:e.petRef===petRef?e.page:null,error:null}));let n=await l(petRef,e);t===d.current&&(n.ok?c({phase:"ready",petRef:petRef,page:n.value,error:null,readyAt:Date.now()}):Ke(n.error)?c({phase:"ready",petRef:petRef,page:null,error:null,missing:true,readyAt:Date.now()}):c({phase:"failed",petRef:petRef,page:null,error:n.error}))},[a,petRef,l]),h=e.useCallback(()=>p(true),[p]),g=s.phase==="ready"&&s.petRef===petRef,f=e.useCallback(async()=>{if(!a||petRef===null||!g)return;let e=d.current,t=++u.current,n=await l(petRef,true);e!==d.current||t!==u.current||!n.ok||c(e=>e.phase==="ready"&&e.petRef===petRef?{phase:"ready",petRef:petRef,page:n.value,error:null,readyAt:Date.now()}:e)},[a,petRef,g,l]);Ht({lifecycle:t.lifecycle,refreshKey:t.refreshKey,readyAt:g?s.readyAt??null:null,revalidate:()=>{f()},refresh:()=>{g?f():h()}}),e.useEffect(()=>(p(false),()=>{d.current+=1}),[p]);let m=a&&s.petRef!==petRef;return e.useMemo(()=>({phase:m?"loading":s.phase,page:m?null:s.page,error:m?null:s.error,missing:!m&&s.missing===true,refresh:h}),[m,s,h])}var An=()=>()=>{},Wn=()=>null;function Vn(t,n){return e.useSyncExternalStore(n?.subscribe??An,n?.get??Wn,n?.get??Wn)??t}var Mn=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false}),Nn=/* @__PURE__ */Object.freeze({chatAnswerStyle:"chat_answer_style",chatHistoryStyle:"chat_history_style",chatTopCard:"chat_top_card",chatFollowUpCount:"chat_follow_up_count",chatFollowUpsExcludeTelevet:"chat_follow_ups_exclude_televet",chatComposerMic:"chat_composer_mic",chatComposerUpload:"chat_composer_upload",safetyDisclaimerPlacement:"safety_disclaimer_placement",healthPlanLayout:"health_plan_layout",recordsTopRiskLine:"records_top_risk_line",recordsClearResultsFilter:"records_clear_results_filter",chatComposerStyle:"chat_composer_style",chatComposerPlaceholder:"chat_composer_placeholder",chatHistoryBar:"chat_history_bar",chatGeneralBanner:"chat_general_banner",chatSendButton:"chat_send_button",chatTextingAsk:"chat_texting_ask",serverSlots:"server_slots"}),Un=Object.keys(Nn),qn="presentation",Gn="presentation.";var Kn={chatAnswerStyle:["bubbles","cards"],chatHistoryStyle:["drawer","sheet"],chatTopCard:["none","focus"],safetyDisclaimerPlacement:["composer","answer_footer","none"],healthPlanLayout:["standard","focus_plan"],chatComposerStyle:["standard","compact"],chatComposerPlaceholder:["generic","pet_name"],chatHistoryBar:["pinned","scroll"],chatSendButton:["always_dark","dim_when_empty"]},Xn=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function Yn(e,t){if(t==null)return;let n=Kn[e];return n!==void 0?typeof t=="string"&&n.includes(t)?t:void 0:Xn.has(e)?typeof t=="boolean"?t:void 0:typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=3?t:void 0}function parsePresentation(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,n={};for(let e of Un){let r=Nn[e],i=Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[e],o=Yn(e,i);o!==void 0&&(n[e]=o)}return Object.keys(n).length===0?null:/* @__PURE__ */Object.freeze(n)}function isPresentationFieldLocked(e,t){if(t==null)return false;let n=`${Gn}${Nn[e]}`;for(let e of t)if(e===qn||e===n)return true;return false}function resolvePresentation(e){let t=parsePresentation(e?.server??null)??{},{safetyDisclaimerPlacement:n,...r}=t,i=n==="none"||n===void 0?r:{...r,safetyDisclaimerPlacement:n},o=parsePresentation(e?.client??null)??{},l=e?.locked?[...e.locked]:null,a={};for(let e of Un){let t=i[e],n=isPresentationFieldLocked(e,l)?void 0:o[e];a[e]=n??t??Mn[e]}/* @__PURE__ */
22
- return Object.freeze(a)}var Jn=/* @__PURE__ */Object.freeze({branding:null}),Qn=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>Jn});function Zn(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return er(e).presentation}function er(t){let{runtime:n}=$(),r=n?.entitlements??Qn,i=e.useCallback(()=>r.getSnapshot()?.branding??null,[r]),o=Vn(e.useSyncExternalStore(r.subscribe,i,i),n?.sdkConfigHost?.branding),l=Zn(t);return e.useMemo(()=>{let e=o?.lockedFields??null;return{presentation:resolvePresentation({server:o?.presentation??null,locked:e,client:t??null}),isLocked:t=>isPresentationFieldLocked(t,e)}},[o,l])}function tr(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}var nr=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),rr=globalThis,ir=rr[nr]??(rr[nr]=e.createContext(null));ir.displayName??="EverfurSlotSwitch";function or(t){let n=e.useContext(ir),r=useEverfurPresentation(void 0).serverSlots;return n===null?r:n}var lr=class extends e.Component{constructor(){super(...arguments);this.state={failed:false,key:this.props.resetKey}}static getDerivedStateFromError(){return{failed:true}}static getDerivedStateFromProps(e,t){return Object.is(e.resetKey,t.key)?null:{failed:false,key:e.resetKey}}render(){return this.state.failed?this.props.fallback:this.props.children}};function RenderHost({render:e}){return e()}function HostRender({render:t,fallback:n,resetKey:r}){return e.createElement(lr,{fallback:n,resetKey:r,children:e.createElement(RenderHost,{render:t})})}function ar(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){let n=e.charCodeAt(t+1);if(!(n>=56320&&n<=57343))return true;t+=1}else if(n>=56320&&n<=57343)return true}return false}function sr(e){return[...e].length}var cr=/* @__PURE__ */Object.freeze({dog:"dog",canine:"dog",k9:"dog",puppy:"dog",cat:"cat",feline:"cat",kitten:"cat"});function canonicalPetSpecies(e){if(typeof e!="string")return null;let t=e.trim().toLowerCase();return Object.prototype.hasOwnProperty.call(cr,t)?cr[t]:null}var dr=50,ur=128,pr=120,hr=120,gr=2e3,fr=120,mr=80,yr=/* @__PURE__ */new Set(["male","female","unknown"]),br=/* @__PURE__ */new Set(["day","month","year"]),wr=/* @__PURE__ */new Set(["low","medium","high","athletic"]),xr=/* @__PURE__ */new Set(["indoor","outdoor","both"]),kr=/* @__PURE__ */new Set(["mild","moderate","severe"]),vr=/^(\d{4})-(\d{2})-(\d{2})$/,Sr=[["sex","sex"],["spayedNeutered","spayed_neutered"],["birthDate","birth_date"],["birthDatePrecision","birth_date_precision"],["activityLevel","activity_level"],["indoorOutdoor","indoor_outdoor"],["foodBrand","food_brand"],["foodType","food_type"],["microchipId","microchip_id"]],Tr=[["allergies","allergies"],["medications","medications"],["supplements","supplements"],["conditions","conditions"]];/* @__PURE__ */Object.freeze([...Sr,...Tr].map(([e])=>e));function Cr(e){let t=vr.exec(e);if(t===null)return false;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],o=new Date(Date.UTC(n,r-1,i));return o.getUTCFullYear()===n&&o.getUTCMonth()===r-1&&o.getUTCDate()===i}var jr=e=>(t,n)=>typeof n=="string"&&e.has(n)?null:`${t} must be one of ${[...e].join(", ")}`,Ir=(e,t)=>typeof t=="boolean"?null:`${e} must be true or false`,Hr=(e,t)=>typeof t=="string"&&Cr(t)?null:`${e} must be a real date written YYYY-MM-DD`,Pr=(e,t={})=>(n,r)=>{if(typeof r!="string")return`${n} must be a string`;if(ar(r))return`${n} contains an unpaired surrogate and cannot be encoded`;let i=t.trimmed?r.trim():r;if(t.required&&i.length===0)return`${n} is required and must not be blank`;let o=sr(i);return o<=e?null:`${n} is ${o} characters; the server accepts at most ${e}`},Fr={sex:jr(yr),spayedNeutered:Ir,birthDate:Hr,birthDatePrecision:jr(br),activityLevel:jr(wr),indoorOutdoor:jr(xr),foodBrand:Pr(fr),foodType:Pr(fr),microchipId:Pr(mr)},Rr=["ref","ref",false,Pr(ur,{required:true,trimmed:true})],Dr=["notes","notes",false,Pr(gr,{trimmed:true})],zr=[Rr,["name","name",true,Pr(pr,{required:true,trimmed:true})],["dose","dose",false,Pr(hr,{trimmed:true})],["frequency","frequency",false,Pr(hr,{trimmed:true})],["startDate","start_date",false,Hr],["endDate","end_date",false,Hr],Dr],$r={allergies:[Rr,["allergen","allergen",true,Pr(pr,{required:true,trimmed:true})],["severity","severity",false,jr(kr)],Dr],medications:zr,supplements:zr,conditions:[Rr,["conditionName","condition_name",true,Pr(pr,{required:true,trimmed:true})],["diagnosedDate","diagnosed_date",false,Hr],Dr]};function Or(e,t,n){let r=`${e}[${t}]`;if(typeof n!="object"||n===null||Array.isArray(n))return{error:`${r} must be an object`};let i=n,o={};for(let[t,n,l,a]of $r[e]){let e=i[t];if(e==null){if(l)return{error:`${r}.${t} is required`};e===null&&(o[n]=null);continue}let s=a(`${r}.${t}`,e);if(s!==null)return{error:s};o[n]=e}let l=o.start_date,a=o.end_date;return typeof l=="string"&&typeof a=="string"&&a<l?{error:`${r}.endDate must not be before startDate`}:{item:o}}function Br(e,t){if(!Array.isArray(t))return{error:`${e} must be an array (send [] to clear it)`};if(t.length>dr)return{error:`${e} has ${t.length} items; the server accepts at most ${dr}`};let n=[],r=/* @__PURE__ */new Set;for(let i=0;i<t.length;i+=1){let o=Or(e,i,t[i]);if("error"in o)return o;let l=o.item.ref;if(typeof l=="string"){let t=l.trim();if(r.has(t))return{error:`${e}: ref ${JSON.stringify(t)} is used twice; a ref names one item`};r.add(t)}n.push(o.item)}return{items:n}}function _r(e,t){let n=e,r={};for(let[e,t]of Sr){let i=n[e];if(i!==void 0){if(i!==null){let t=Fr[e](e,i);if(t!==null)return{error:t}}r[t]=i}}let i=n.birthDate!==void 0,o=n.birthDatePrecision!==void 0;if(i!==o||i&&n.birthDate===null!=(n.birthDatePrecision===null))return{error:"birthDate and birthDatePrecision must be sent together, both set or both null"};for(let[e,t]of Tr){let i=n[e];if(i===void 0)continue;let o=Br(e,i);if("error"in o)return o;r[t]=o.items}return Object.keys(r).length>0&&t!==void 0&&canonicalPetSpecies(t)===null?{error:"health fields need a pet Everfur reads as a dog or a cat (dog, canine, k9, puppy, cat, feline, kitten)"}:{body:r}}var Lr=e=>typeof e=="string"?e:null,Er=(e,t)=>typeof t=="string"&&e.has(t)?t:null,Ar=e=>typeof e=="boolean"?e:null;function Wr(e,t){return Array.isArray(e)?/* @__PURE__ */Object.freeze(e.flatMap(e=>{if(typeof e!="object"||e===null||Array.isArray(e))return[];let n=t(e);return n===null?[]:[n]})):/* @__PURE__ */Object.freeze([])}function Vr(e){let t=Lr(e.name);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Lr(e.ref),name:t,dose:Lr(e.dose),frequency:Lr(e.frequency),startDate:Lr(e.start_date),endDate:Lr(e.end_date),notes:Lr(e.notes)})}function Mr(e){let t=e.profile_version;/* @__PURE__ */
23
- return Object.freeze({profileVersion:typeof t=="number"&&Number.isInteger(t)&&t>=0?t:0,sex:Er(yr,e.sex),spayedNeutered:Ar(e.spayed_neutered),birthDate:Lr(e.birth_date),birthDatePrecision:Er(br,e.birth_date_precision),activityLevel:Er(wr,e.activity_level),indoorOutdoor:Er(xr,e.indoor_outdoor),foodBrand:Lr(e.food_brand),foodType:Lr(e.food_type),microchipId:Lr(e.microchip_id),allergies:Wr(e.allergies,e=>{let t=Lr(e.allergen);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Lr(e.ref),allergen:t,severity:Er(kr,e.severity),notes:Lr(e.notes)})}),medications:Wr(e.medications,Vr),supplements:Wr(e.supplements,Vr),conditions:Wr(e.conditions,e=>{let t=Lr(e.condition_name);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Lr(e.ref),conditionName:t,diagnosedDate:Lr(e.diagnosed_date),notes:Lr(e.notes)})})})}var Nr=100,Ur=50,qr=100,Gr=50,Kr=500,Xr=128,Yr=6e4;function Jr(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function Qr(e,t,n){if(typeof t!="string")return Jr(`${e} must be a string`);let r=sr(t);return r<=n?null:Jr(`${e} is ${r} characters; the server accepts at most ${n}`)}function Zr(e,t,n){return typeof t=="number"&&Number.isFinite(t)&&t>=0&&t<=n?null:Jr(`${e} must be a finite number between 0 and ${n}`)}function ei(petRef,e){if(typeof petRef!="string")return Jr("pet_ref must be a string");if(petRef.trim().length===0)return Jr("pet_ref must not be blank");if(ar(petRef))return Jr("pet_ref contains an unpaired surrogate and cannot be encoded");if(e!=null&&typeof e!="object")return Jr("profile must be an object");let t=[Qr("pet_ref",petRef,Xr)];return e?.name!==void 0&&t.push(Qr("name",e.name,Nr)),e?.species!==void 0&&t.push(Qr("species",e.species,Ur)),e?.breed!==void 0&&t.push(Qr("breed",e.breed,qr)),e?.ageYears!==void 0&&t.push(Zr("age_years",e.ageYears,Gr)),e?.weightKg!==void 0&&t.push(Zr("weight_kg",e.weightKg,Kr)),t.find(e=>e!==null)??null}function ti(e,t){let n=_r(e,t);return"error"in n?{error:Jr(n.error)}:n}function ni(e){if(typeof e!="object"||e===null)return{error:Jr("patch must be an object")};let t=e,n=[["name","name",e=>Qr("name",e,Nr)],["species","species",e=>Qr("species",e,Ur)],["breed","breed",e=>Qr("breed",e,qr)],["ageYears","age_years",e=>Zr("age_years",e,Gr)],["weightKg","weight_kg",e=>Zr("weight_kg",e,Kr)]],r={};for(let[e,i,o]of n){let n=t[e];if(n!==void 0){if(n!==null){let e=o(n);if(e!==null)return{error:e}}r[i]=n}}let i=ti(t,t.species);return"error"in i?i:(Object.assign(r,i.body),Object.keys(r).length===0?{error:Jr("patch must change at least one field")}:{body:r})}function ri(e){if(e==null)return{body:{}};let t=ti(e,e.species);return"error"in t?t:{body:{...e.name!==void 0?{name:e.name}:{},...e.species!==void 0?{species:e.species}:{},...e.breed!==void 0?{breed:e.breed}:{},...e.ageYears!==void 0?{age_years:e.ageYears}:{},...e.weightKg!==void 0?{weight_kg:e.weightKg}:{},...t.body}}}var ii=e=>typeof e=="string"?e:null,oi=e=>typeof e=="number"&&Number.isFinite(e)?e:null;function li(e,petRef){let t=typeof e=="object"&&e!==null?e:{};/* @__PURE__ */
24
- return Object.freeze({petRef:ii(t.pet_ref)??petRef,name:ii(t.name),species:ii(t.species),breed:ii(t.breed),ageYears:oi(t.age_years),weightKg:oi(t.weight_kg)})}function widgetPetFromWire(e){if(typeof e!="object"||e===null)return null;let t=e,petRef=ii(t.pet_ref);return petRef===null||petRef.length===0?null:/* @__PURE__ */Object.freeze({petId:ii(t.pet_id),petRef:petRef,name:ii(t.name),species:ii(t.species),breed:ii(t.breed),ageYears:oi(t.age_years),weightKg:oi(t.weight_kg),updatedAt:ii(t.updated_at)})}function ai(e){let t=widgetPetFromWire(e);return t===null?null:/* @__PURE__ */Object.freeze({...t,...Mr(e)})}function si(e){let t=Array.isArray(e)?e:typeof e=="object"&&e!==null&&Array.isArray(e.pets)?e.pets:[];/* @__PURE__ */
25
- return Object.freeze(t.flatMap(e=>{let t=widgetPetFromWire(e);return t===null?[]:[t]}))}function createPetsRepository(e){return ci(createRequestFunnel({auth:e}),createRequestFunnel({auth:e,unaryTimeoutMs:Yr}))}function ci(e,t=e){let n=(e,t)=>t?{...e,signal:t}:e,r=petRef=>ei(petRef,void 0)??`/widget/v1/pets/${encodeURIComponent(petRef)}`;return{async list(t){let r=await e.send("pets.list",n({method:"GET",path:"/widget/v1/pets"},t?.signal));return r.ok?ok(si(r.value)):err(r.error)},async registerPet(petRef,t,n){let r=ei(petRef,t);if(r!==null)return err(r);let i=ri(t);if("error"in i)return err(i.error);let o={method:"POST",path:`/widget/v1/pets/${encodeURIComponent(petRef)}`,body:i.body},l=await e.send("pets.registerPet",n?.signal?{...o,signal:n.signal}:o);return l.ok?ok(li(l.value,petRef)):err(l.error)},async updatePet(petRef,t,i){let o=r(petRef);if(typeof o!="string")return err(o);let l=ni(t);if("error"in l)return err(l.error);let a=await e.send("pets.updatePet",n({method:"PATCH",path:o,body:l.body},i?.signal));return a.ok?ok(li(a.value,petRef)):err(a.error)},async getPetProfile(petRef,t){let i=r(petRef);if(typeof i!="string")return err(i);let o=await e.send("pets.getPetProfile",n({method:"GET",path:`${i}/profile`},t?.signal));if(!o.ok)return err(o.error);let l=ai(o.value);return l===null?err(makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:"the pet profile response carried no pet_ref"})):ok(l)},async deletePet(petRef,t){let i=r(petRef);if(typeof i!="string")return err(i);let o=await e.send("pets.deletePet",n({method:"DELETE",path:i},t?.signal));return o.ok?ok(void 0):err(o.error)},async eraseUserData(e){let r=await t.send("pets.eraseUserData",n({method:"DELETE",path:"/widget/v1/me"},e?.signal),{maxAttempts:1});return r.ok?ok(void 0):err(r.error)}}}var di=/* @__PURE__ */new WeakMap;function ui(e,t){let n=di.get(e);return n===void 0&&(n=/* @__PURE__ */new Set,di.set(e,n)),n.add(t),()=>{n?.delete(t)}}function useEverfurPets(){let{runtime:t,userRef:userRef,activePet:n,scopeEpoch:r}=$(),i=e.useMemo(()=>createPetsRepository(t.registry.services.authFor(userRef)),[t,userRef,r]),[o,l]=e.useState({repository:i,pets:[],loading:true,error:null}),a=o.repository===i?o:{pets:[],loading:true,error:null},s=e.useRef(0),c=e.useCallback(async()=>{let e=++s.current;l(e=>({...e,repository:i,loading:true,error:null,pets:e.repository===i?e.pets:[]}));let t=await i.list();e===s.current&&l(t.ok?{repository:i,pets:t.value,loading:false,error:null}:e=>({repository:i,pets:e.repository===i?e.pets:[],loading:false,error:t.error}))},[i]);e.useEffect(()=>(c(),()=>{s.current+=1}),[c]),e.useEffect(()=>ui(t,()=>{c()}),[t,c]);let d=e.useMemo(()=>n===null?null:a.pets.find(e=>e.petRef===n)??null,[n,a.pets]);return e.useMemo(()=>({pets:a.pets,activePet:d,loading:a.loading,error:a.error,refresh:c}),[a.pets,a.loading,a.error,d,c])}var pi=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var hi=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){hi(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var gi=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var fi={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},mi={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},yi={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},bi={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},wi={regular:"400",medium:"500",bold:"700"},xi={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},ki=0,vi="System",Si="monospace",Ti=["content","heading","control","compact","badge"];function Ci(e){let t={};for(let n of Ti)t[n]=e;return t}var ji=[];function Ii(){return{family:vi,mono:Si,fontUrl:null,families:{regular:vi,medium:vi,bold:vi,mono:Si,monoMedium:Si,monoBold:Si},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:yi,tierSizes:Ci(yi),lineHeight:bi,weight:wi,letterSpacing:xi,scale:1,maxScale:ki,scaleCaps:gi,headingFamily:null,headingWeight:null,fontSources:ji,roles:pi,typeScale:1}}var Hi={},Pi=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var Fi={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Pi.standard),emphasized:cssCubicBezier(Pi.emphasized),exit:cssCubicBezier(Pi.exit)},reducedMotion:false},Ri={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},Di=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Ri,space:fi,radius:mi,type:Ii(),motion:Fi,slots:Hi}),zi={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},$i=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:zi,space:fi,radius:mi,type:Ii(),motion:Fi,slots:Hi});var Oi=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Bi=globalThis,_i=Bi[Oi]??(Bi[Oi]=e.createContext(Di));_i.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(_i)}function Li(e,t){let n=e.scaleCaps[t];return n>0?n:void 0}function Text({tier:n,variant:r,...i}){let o=useEverfurTheme(),l=r===void 0?void 0:o.type.roles[r],a=Li(o.type,n??l?.tier??"content"),s=r===void 0?i:{...i,style:[{...textRole(o,r),color:o.color.text.primary,flexShrink:1},i.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}e.forwardRef(function(n,r){return e.createElement(t.TextInput,{...n,...r===null?{}:{ref:r}})});var Ei=/* @__PURE__ */Object.freeze({chat:/* @__PURE__ */Object.freeze(["chat.message.create"]),records:/* @__PURE__ */Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:/* @__PURE__ */Object.freeze(["records.clinic.create"]),video:/* @__PURE__ */Object.freeze(["video.gait.execute"]),photo:/* @__PURE__ */Object.freeze(["photo.checkup.execute"]),animations:/* @__PURE__ */Object.freeze(["animations.state.read"]),televet:/* @__PURE__ */Object.freeze(["televet.visit.create"]),texting:/* @__PURE__ */Object.freeze(["sms.identity.read","sms.identity.update"]),healthPlan:/* @__PURE__ */Object.freeze(["shop.plan.read","shop.plan.update"])});function requires(e){return Ei[e]}function decideCapability(e,t,n){let r=requires(e),i=/* @__PURE__ */new Map;for(let e of t)i.set(e.resource,e);if(n?.isPending===true&&r.some(e=>!i.has(e)))return Vi({name:e,enabled:false,isPending:true,limits:{}});let o=Ai(r,i);return r.filter(e=>i.get(e)?.granted!==true).length===0?Vi({name:e,enabled:true,isPending:false,limits:o}):Vi({name:e,enabled:false,isPending:false,limits:o,disabled:Wi(r,i)})}function Ai(e,t){let n={};for(let r of e){let e=t.get(r)?.limits;if(e)for(let[t,r]of Object.entries(e)){let e=n[t];n[t]=e===void 0?r:Math.min(e,r)}}return n}function Wi(e,t){for(let n of e){let e=t.get(n)?.disabled;if(e)/* @__PURE__ */
21
+ return Object.freeze({status:n,purchase:r,order:i??o[0]??null,orders:/* @__PURE__ */Object.freeze(o.length>0?o:i===null?[]:[i]),subscription:healthPlanSubscriptionFromWire(t?.subscription)})}function jn(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function In(e){return makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:`${e}: the response was not the expected shape`})}function Hn(e){return makeEverfurError("runtimeDisposed",{retryable:false,wireMessage:`the Everfur runtime is disposed; ${e} was called after unmount`})}var Pn=e=>typeof e=="string"&&e.length>0&&e.length<=tn,Fn=e=>typeof e=="string"&&e.length<=2048&&/^https?:\/\/[^\s/][^\s]*$/i.test(e);function Rn(petRef){return`/widget/v1/pets/${encodeURIComponent(petRef)}/plan`}async function Dn(e,petRef,t){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));let n=await e.send("healthPlan.page.read",{method:"GET",path:`${Rn(petRef)}/page`,...t?.signal?{signal:t.signal}:{}});if(!n.ok)return err(n.error);let r=healthPlanPageFromWire(n.value,petRef);return r===null?err(In("healthPlan.page.read")):ok(r)}var zn=/* @__PURE__ */new WeakMap;function $n(e){let t=zn.get(e);if(t!==void 0)return t;let n=On(e);return zn.set(e,n),n}function On(e){return{getPage:(petRef,t)=>{if(e.isDisposed)return Promise.resolve(err(Hn("getPage")));let{services:n}=e.registry,r=Je(createRequestFunnel({auth:n.authFor(null),...n.errorPolicy?{errorPolicy:n.errorPolicy}:{}}));return Dn(r,petRef,t)}}}function createHealthPlanPageRepositoryOver(e){let t=Je(e.funnel??createRequestFunnel({auth:e.auth,...e.errorPolicy?{errorPolicy:e.errorPolicy}:{}}));return{getPage:(petRef,e)=>Dn(t,petRef,e),async startCheckout(petRef,e,n){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));if(!Pn(e.productId))return err(jn("productId must be 1..128 characters"));if(e.purchase!=="one_box"&&e.purchase!=="subscription")return err(jn("purchase must be one_box or subscription"));if(e.intervalDays!==void 0&&(!Number.isInteger(e.intervalDays)||e.intervalDays<=0))return err(jn("intervalDays must be a positive whole number"));if(!Fn(e.successUrl)||!Fn(e.cancelUrl))return err(jn("successUrl and cancelUrl must be absolute http(s) URLs"));let r=await t.send("healthPlan.checkout.start",{method:"POST",path:`${Rn(petRef)}/checkout`,body:{product_id:e.productId,purchase:e.purchase,...e.purchase==="subscription"&&e.intervalDays!==void 0?{interval_days:e.intervalDays}:{},success_url:e.successUrl,cancel_url:e.cancelUrl}},{idempotent:true,idempotencyKey:`hp-checkout:${n}`});if(!r.ok)return err(r.error);let i=healthPlanCheckoutSessionFromWire(r.value);return i===null?err(In("healthPlan.checkout.start")):ok(i)},async startCartCheckout(petRef,e,n){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));let r=e.items;if(!Array.isArray(r)||r.length<1||r.length>nn)return err(jn("items must hold 1..10 lines"));let i=/* @__PURE__ */new Set;for(let e of r){if(!Pn(e.productId)||i.has(e.productId))return err(jn("each item needs a productId, once per cart"));if(i.add(e.productId),e.purchase!=="one_box"&&e.purchase!=="subscription")return err(jn("purchase must be one_box or subscription"));let t=e.quantity??1;if(!Number.isInteger(t)||t<1||t>nn)return err(jn("quantity must be a whole number 1..10"));if(e.purchase==="subscription"&&t!==1)return err(jn("a subscription line is quantity 1"));if(e.intervalDays!==void 0&&(!Number.isInteger(e.intervalDays)||e.intervalDays<=0))return err(jn("intervalDays must be a positive whole number"))}if(!Fn(e.successUrl)||!Fn(e.cancelUrl))return err(jn("successUrl and cancelUrl must be absolute http(s) URLs"));let o=await t.send("healthPlan.checkout.start",{method:"POST",path:`${Rn(petRef)}/checkout`,body:{items:r.map(e=>({product_id:e.productId,purchase:e.purchase,...e.purchase==="subscription"&&e.intervalDays!==void 0?{interval_days:e.intervalDays}:{},quantity:e.quantity??1})),success_url:e.successUrl,cancel_url:e.cancelUrl}},{idempotent:true,idempotencyKey:`hp-checkout:${n}`});if(!o.ok)return err(o.error);let l=healthPlanCheckoutSessionFromWire(o.value);return l===null?err(In("healthPlan.checkout.start")):ok(l)},async getCheckout(petRef,e){if(!Pn(petRef))return err(jn("petRef must be 1..128 characters"));if(!Pn(e))return err(jn("checkoutId must be 1..128 characters"));let n=await t.send("healthPlan.checkout.read",{method:"GET",path:`${Rn(petRef)}/checkout/${encodeURIComponent(e)}`});if(!n.ok)return err(n.error);let r=healthPlanCheckoutStateFromWire(n.value);return r===null?err(In("healthPlan.checkout.read")):ok(r)}}}function createHealthPlanPageRepository(e){let t=()=>{let{services:t}=e.registry;return createHealthPlanPageRepositoryOver({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}})};return{getPage:(petRef,n)=>e.isDisposed?Promise.resolve(err(Hn("getPage"))):t().getPage(petRef,n),startCheckout:(petRef,n,r)=>e.isDisposed?Promise.resolve(err(Hn("startCheckout"))):t().startCheckout(petRef,n,r),startCartCheckout:(petRef,n,r)=>e.isDisposed?Promise.resolve(err(Hn("startCartCheckout"))):t().startCartCheckout?.(petRef,n,r)??Promise.resolve(err(Hn("startCartCheckout"))),getCheckout:(petRef,n)=>e.isDisposed?Promise.resolve(err(Hn("getCheckout"))):t().getCheckout(petRef,n)}}var Bn=It,_n=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanPageReads@v1");function Ln(){let e=globalThis,t=e[_n];if(t instanceof WeakMap)return t;let n=/* @__PURE__ */new WeakMap;return e[_n]=n,n}function En(e,t,userRef,petRef,n){let r=Ln(),i=r.get(t);i===void 0&&(i=/* @__PURE__ */new Map,r.set(t,i));let o=i,l=`${userRef}\0${petRef}`,a=o.get(l);if(!n&&a!==void 0&&(a.at===null||Date.now()-a.at<Bn))return a.promise;let s={at:null,promise:e.getPage(petRef).then(e=>(o.get(l)===s&&(e.ok||Ke(e.error)?s.at=Date.now():o.delete(l)),e))};return o.set(l,s),s.promise}function useHealthPlanPageRepository(){let{runtime:t}=$();return e.useMemo(()=>createHealthPlanPageRepository(t),[t])}function useHealthPlanPage(t){let{userRef:userRef,runtime:n}=$(),r=e.useMemo(()=>$n(n),[n]),i=t.repository,o=i??r,l=e.useCallback((e,t)=>i!==void 0||userRef==null?o.getPage(e):En(r,n,userRef,e,t),[i,o,r,n,userRef]),{petRef:petRef}=t,a=t.enabled!==false&&userRef!=null&&petRef!==null,[s,c]=e.useState({phase:"idle",petRef:null,page:null,error:null}),d=e.useRef(0),u=e.useRef(0),p=e.useCallback(async e=>{let t=++d.current;if(!a||petRef===null){c(e=>e.phase==="idle"&&e.petRef===null?e:{phase:"idle",petRef:null,page:null,error:null});return}c(e=>({phase:"loading",petRef:petRef,page:e.petRef===petRef?e.page:null,error:null}));let n=await l(petRef,e);t===d.current&&(n.ok?c({phase:"ready",petRef:petRef,page:n.value,error:null,readyAt:Date.now()}):Ke(n.error)?c({phase:"ready",petRef:petRef,page:null,error:null,missing:true,readyAt:Date.now()}):c({phase:"failed",petRef:petRef,page:null,error:n.error}))},[a,petRef,l]),h=e.useCallback(()=>p(true),[p]),g=s.phase==="ready"&&s.petRef===petRef,f=e.useCallback(async()=>{if(!a||petRef===null||!g)return;let e=d.current,t=++u.current,n=await l(petRef,true);e!==d.current||t!==u.current||!n.ok||c(e=>e.phase==="ready"&&e.petRef===petRef?{phase:"ready",petRef:petRef,page:n.value,error:null,readyAt:Date.now()}:e)},[a,petRef,g,l]);Ht({lifecycle:t.lifecycle,refreshKey:t.refreshKey,readyAt:g?s.readyAt??null:null,revalidate:()=>{f()},refresh:()=>{g?f():h()}}),e.useEffect(()=>(p(false),()=>{d.current+=1}),[p]);let m=a&&s.petRef!==petRef;return e.useMemo(()=>({phase:m?"loading":s.phase,page:m?null:s.page,error:m?null:s.error,missing:!m&&s.missing===true,refresh:h}),[m,s,h])}var An=()=>()=>{},Wn=()=>null;function Vn(t,n){return e.useSyncExternalStore(n?.subscribe??An,n?.get??Wn,n?.get??Wn)??t}var Mn=/* @__PURE__ */Object.freeze(["ask","vet","plan","records"]),Nn=/* @__PURE__ */Object.freeze({chatAnswerStyle:"cards",chatHistoryStyle:"sheet",chatTopCard:"focus",chatFollowUpCount:3,chatFollowUpsExcludeTelevet:false,chatComposerMic:true,chatComposerUpload:true,safetyDisclaimerPlacement:"composer",healthPlanLayout:"focus_plan",recordsTopRiskLine:true,recordsClearResultsFilter:true,chatComposerStyle:"compact",chatComposerPlaceholder:"pet_name",chatHistoryBar:"scroll",chatGeneralBanner:true,chatSendButton:"always_dark",chatTextingAsk:true,serverSlots:false,shellTabs:null,shellHeader:"classic"}),Un=/* @__PURE__ */Object.freeze({chatAnswerStyle:"chat_answer_style",chatHistoryStyle:"chat_history_style",chatTopCard:"chat_top_card",chatFollowUpCount:"chat_follow_up_count",chatFollowUpsExcludeTelevet:"chat_follow_ups_exclude_televet",chatComposerMic:"chat_composer_mic",chatComposerUpload:"chat_composer_upload",safetyDisclaimerPlacement:"safety_disclaimer_placement",healthPlanLayout:"health_plan_layout",recordsTopRiskLine:"records_top_risk_line",recordsClearResultsFilter:"records_clear_results_filter",chatComposerStyle:"chat_composer_style",chatComposerPlaceholder:"chat_composer_placeholder",chatHistoryBar:"chat_history_bar",chatGeneralBanner:"chat_general_banner",chatSendButton:"chat_send_button",chatTextingAsk:"chat_texting_ask",serverSlots:"server_slots",shellTabs:"shell_tabs",shellHeader:"shell_header"}),qn=Object.keys(Un),Gn="presentation",Kn="presentation.";var Xn={chatAnswerStyle:["bubbles","cards"],chatHistoryStyle:["drawer","sheet"],chatTopCard:["none","focus"],safetyDisclaimerPlacement:["composer","answer_footer","none"],healthPlanLayout:["standard","focus_plan"],chatComposerStyle:["standard","compact"],chatComposerPlaceholder:["generic","pet_name"],chatHistoryBar:["pinned","scroll"],chatSendButton:["always_dark","dim_when_empty"],shellHeader:["classic","tabs_bar"]};function Yn(e){if(!Array.isArray(e)||e.length===0)return;let t=/* @__PURE__ */new Set;for(let n of e){if(typeof n!="string"||!Mn.includes(n)||t.has(n))return;t.add(n)}/* @__PURE__ */
22
+ return Object.freeze([...e])}var Jn=/* @__PURE__ */new Set(["chatFollowUpsExcludeTelevet","chatComposerMic","chatComposerUpload","recordsTopRiskLine","recordsClearResultsFilter","chatGeneralBanner","chatTextingAsk","serverSlots"]);function Qn(e,t){if(t==null)return;if(e==="shellTabs")return Yn(t);let n=Xn[e];return n!==void 0?typeof t=="string"&&n.includes(t)?t:void 0:Jn.has(e)?typeof t=="boolean"?t:void 0:typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=3?t:void 0}function parsePresentation(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let t=e,n={};for(let e of qn){let r=Un[e],i=Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[e],o=Qn(e,i);o!==void 0&&(n[e]=o)}return Object.keys(n).length===0?null:/* @__PURE__ */Object.freeze(n)}function isPresentationFieldLocked(e,t){if(t==null)return false;let n=`${Kn}${Un[e]}`;for(let e of t)if(e===Gn||e===n)return true;return false}function resolvePresentation(e){let t=parsePresentation(e?.server??null)??{},{safetyDisclaimerPlacement:n,...r}=t,i=n==="none"||n===void 0?r:{...r,safetyDisclaimerPlacement:n},o=parsePresentation(e?.client??null)??{},l=e?.locked?[...e.locked]:null,a={};for(let e of qn){let t=i[e],n=isPresentationFieldLocked(e,l)?void 0:o[e];a[e]=n??t??Nn[e]}/* @__PURE__ */
23
+ return Object.freeze(a)}var Zn=/* @__PURE__ */Object.freeze({branding:null}),er=/* @__PURE__ */Object.freeze({subscribe:()=>()=>{},getSnapshot:()=>Zn});function tr(e){return e?Object.keys(e).sort().map(t=>`${t}=${String(e[t])}`).join("&"):""}function useEverfurPresentation(e){return nr(e).presentation}function nr(t){let{runtime:n}=$(),r=n?.entitlements??er,i=e.useCallback(()=>r.getSnapshot()?.branding??null,[r]),o=Vn(e.useSyncExternalStore(r.subscribe,i,i),n?.sdkConfigHost?.branding),l=tr(t);return e.useMemo(()=>{let e=o?.lockedFields??null;return{presentation:resolvePresentation({server:o?.presentation??null,locked:e,client:t??null}),isLocked:t=>isPresentationFieldLocked(t,e)}},[o,l])}function rr(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}var ir=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotSwitchContext@v1"),or=globalThis,lr=or[ir]??(or[ir]=e.createContext(null));lr.displayName??="EverfurSlotSwitch";function ar(t){let n=e.useContext(lr),r=useEverfurPresentation(void 0).serverSlots;return n===null?r:n}var sr=class extends e.Component{constructor(){super(...arguments);this.state={failed:false,key:this.props.resetKey}}static getDerivedStateFromError(){return{failed:true}}static getDerivedStateFromProps(e,t){return Object.is(e.resetKey,t.key)?null:{failed:false,key:e.resetKey}}render(){return this.state.failed?this.props.fallback:this.props.children}};function RenderHost({render:e}){return e()}function HostRender({render:t,fallback:n,resetKey:r}){return e.createElement(sr,{fallback:n,resetKey:r,children:e.createElement(RenderHost,{render:t})})}function cr(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){let n=e.charCodeAt(t+1);if(!(n>=56320&&n<=57343))return true;t+=1}else if(n>=56320&&n<=57343)return true}return false}function dr(e){return[...e].length}var ur=/* @__PURE__ */Object.freeze({dog:"dog",canine:"dog",k9:"dog",puppy:"dog",cat:"cat",feline:"cat",kitten:"cat"});function canonicalPetSpecies(e){if(typeof e!="string")return null;let t=e.trim().toLowerCase();return Object.prototype.hasOwnProperty.call(ur,t)?ur[t]:null}var pr=50,hr=128,gr=120,fr=120,mr=2e3,yr=120,br=80,wr=/* @__PURE__ */new Set(["male","female","unknown"]),xr=/* @__PURE__ */new Set(["day","month","year"]),kr=/* @__PURE__ */new Set(["low","medium","high","athletic"]),vr=/* @__PURE__ */new Set(["indoor","outdoor","both"]),Sr=/* @__PURE__ */new Set(["mild","moderate","severe"]),Tr=/^(\d{4})-(\d{2})-(\d{2})$/,Cr=[["sex","sex"],["spayedNeutered","spayed_neutered"],["birthDate","birth_date"],["birthDatePrecision","birth_date_precision"],["activityLevel","activity_level"],["indoorOutdoor","indoor_outdoor"],["foodBrand","food_brand"],["foodType","food_type"],["microchipId","microchip_id"]],jr=[["allergies","allergies"],["medications","medications"],["supplements","supplements"],["conditions","conditions"]];/* @__PURE__ */Object.freeze([...Cr,...jr].map(([e])=>e));function Ir(e){let t=Tr.exec(e);if(t===null)return false;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],o=new Date(Date.UTC(n,r-1,i));return o.getUTCFullYear()===n&&o.getUTCMonth()===r-1&&o.getUTCDate()===i}var Hr=e=>(t,n)=>typeof n=="string"&&e.has(n)?null:`${t} must be one of ${[...e].join(", ")}`,Pr=(e,t)=>typeof t=="boolean"?null:`${e} must be true or false`,Fr=(e,t)=>typeof t=="string"&&Ir(t)?null:`${e} must be a real date written YYYY-MM-DD`,Rr=(e,t={})=>(n,r)=>{if(typeof r!="string")return`${n} must be a string`;if(cr(r))return`${n} contains an unpaired surrogate and cannot be encoded`;let i=t.trimmed?r.trim():r;if(t.required&&i.length===0)return`${n} is required and must not be blank`;let o=dr(i);return o<=e?null:`${n} is ${o} characters; the server accepts at most ${e}`},Dr={sex:Hr(wr),spayedNeutered:Pr,birthDate:Fr,birthDatePrecision:Hr(xr),activityLevel:Hr(kr),indoorOutdoor:Hr(vr),foodBrand:Rr(yr),foodType:Rr(yr),microchipId:Rr(br)},zr=["ref","ref",false,Rr(hr,{required:true,trimmed:true})],$r=["notes","notes",false,Rr(mr,{trimmed:true})],Or=[zr,["name","name",true,Rr(gr,{required:true,trimmed:true})],["dose","dose",false,Rr(fr,{trimmed:true})],["frequency","frequency",false,Rr(fr,{trimmed:true})],["startDate","start_date",false,Fr],["endDate","end_date",false,Fr],$r],Br={allergies:[zr,["allergen","allergen",true,Rr(gr,{required:true,trimmed:true})],["severity","severity",false,Hr(Sr)],$r],medications:Or,supplements:Or,conditions:[zr,["conditionName","condition_name",true,Rr(gr,{required:true,trimmed:true})],["diagnosedDate","diagnosed_date",false,Fr],$r]};function _r(e,t,n){let r=`${e}[${t}]`;if(typeof n!="object"||n===null||Array.isArray(n))return{error:`${r} must be an object`};let i=n,o={};for(let[t,n,l,a]of Br[e]){let e=i[t];if(e==null){if(l)return{error:`${r}.${t} is required`};e===null&&(o[n]=null);continue}let s=a(`${r}.${t}`,e);if(s!==null)return{error:s};o[n]=e}let l=o.start_date,a=o.end_date;return typeof l=="string"&&typeof a=="string"&&a<l?{error:`${r}.endDate must not be before startDate`}:{item:o}}function Lr(e,t){if(!Array.isArray(t))return{error:`${e} must be an array (send [] to clear it)`};if(t.length>pr)return{error:`${e} has ${t.length} items; the server accepts at most ${pr}`};let n=[],r=/* @__PURE__ */new Set;for(let i=0;i<t.length;i+=1){let o=_r(e,i,t[i]);if("error"in o)return o;let l=o.item.ref;if(typeof l=="string"){let t=l.trim();if(r.has(t))return{error:`${e}: ref ${JSON.stringify(t)} is used twice; a ref names one item`};r.add(t)}n.push(o.item)}return{items:n}}function Er(e,t){let n=e,r={};for(let[e,t]of Cr){let i=n[e];if(i!==void 0){if(i!==null){let t=Dr[e](e,i);if(t!==null)return{error:t}}r[t]=i}}let i=n.birthDate!==void 0,o=n.birthDatePrecision!==void 0;if(i!==o||i&&n.birthDate===null!=(n.birthDatePrecision===null))return{error:"birthDate and birthDatePrecision must be sent together, both set or both null"};for(let[e,t]of jr){let i=n[e];if(i===void 0)continue;let o=Lr(e,i);if("error"in o)return o;r[t]=o.items}return Object.keys(r).length>0&&t!==void 0&&canonicalPetSpecies(t)===null?{error:"health fields need a pet Everfur reads as a dog or a cat (dog, canine, k9, puppy, cat, feline, kitten)"}:{body:r}}var Ar=e=>typeof e=="string"?e:null,Wr=(e,t)=>typeof t=="string"&&e.has(t)?t:null,Vr=e=>typeof e=="boolean"?e:null;function Mr(e,t){return Array.isArray(e)?/* @__PURE__ */Object.freeze(e.flatMap(e=>{if(typeof e!="object"||e===null||Array.isArray(e))return[];let n=t(e);return n===null?[]:[n]})):/* @__PURE__ */Object.freeze([])}function Nr(e){let t=Ar(e.name);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Ar(e.ref),name:t,dose:Ar(e.dose),frequency:Ar(e.frequency),startDate:Ar(e.start_date),endDate:Ar(e.end_date),notes:Ar(e.notes)})}function Ur(e){let t=e.profile_version;/* @__PURE__ */
24
+ return Object.freeze({profileVersion:typeof t=="number"&&Number.isInteger(t)&&t>=0?t:0,sex:Wr(wr,e.sex),spayedNeutered:Vr(e.spayed_neutered),birthDate:Ar(e.birth_date),birthDatePrecision:Wr(xr,e.birth_date_precision),activityLevel:Wr(kr,e.activity_level),indoorOutdoor:Wr(vr,e.indoor_outdoor),foodBrand:Ar(e.food_brand),foodType:Ar(e.food_type),microchipId:Ar(e.microchip_id),allergies:Mr(e.allergies,e=>{let t=Ar(e.allergen);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Ar(e.ref),allergen:t,severity:Wr(Sr,e.severity),notes:Ar(e.notes)})}),medications:Mr(e.medications,Nr),supplements:Mr(e.supplements,Nr),conditions:Mr(e.conditions,e=>{let t=Ar(e.condition_name);return t===null||t.length===0?null:/* @__PURE__ */Object.freeze({ref:Ar(e.ref),conditionName:t,diagnosedDate:Ar(e.diagnosed_date),notes:Ar(e.notes)})})})}var qr=100,Gr=50,Kr=100,Xr=50,Yr=500,Jr=128,Qr=6e4;function Zr(e){return makeEverfurError("validationFailed",{retryable:false,wireMessage:e})}function ei(e,t,n){if(typeof t!="string")return Zr(`${e} must be a string`);let r=dr(t);return r<=n?null:Zr(`${e} is ${r} characters; the server accepts at most ${n}`)}function ti(e,t,n){return typeof t=="number"&&Number.isFinite(t)&&t>=0&&t<=n?null:Zr(`${e} must be a finite number between 0 and ${n}`)}function ni(petRef,e){if(typeof petRef!="string")return Zr("pet_ref must be a string");if(petRef.trim().length===0)return Zr("pet_ref must not be blank");if(cr(petRef))return Zr("pet_ref contains an unpaired surrogate and cannot be encoded");if(e!=null&&typeof e!="object")return Zr("profile must be an object");let t=[ei("pet_ref",petRef,Jr)];return e?.name!==void 0&&t.push(ei("name",e.name,qr)),e?.species!==void 0&&t.push(ei("species",e.species,Gr)),e?.breed!==void 0&&t.push(ei("breed",e.breed,Kr)),e?.ageYears!==void 0&&t.push(ti("age_years",e.ageYears,Xr)),e?.weightKg!==void 0&&t.push(ti("weight_kg",e.weightKg,Yr)),t.find(e=>e!==null)??null}function ri(e,t){let n=Er(e,t);return"error"in n?{error:Zr(n.error)}:n}function ii(e){if(typeof e!="object"||e===null)return{error:Zr("patch must be an object")};let t=e,n=[["name","name",e=>ei("name",e,qr)],["species","species",e=>ei("species",e,Gr)],["breed","breed",e=>ei("breed",e,Kr)],["ageYears","age_years",e=>ti("age_years",e,Xr)],["weightKg","weight_kg",e=>ti("weight_kg",e,Yr)]],r={};for(let[e,i,o]of n){let n=t[e];if(n!==void 0){if(n!==null){let e=o(n);if(e!==null)return{error:e}}r[i]=n}}let i=ri(t,t.species);return"error"in i?i:(Object.assign(r,i.body),Object.keys(r).length===0?{error:Zr("patch must change at least one field")}:{body:r})}function oi(e){if(e==null)return{body:{}};let t=ri(e,e.species);return"error"in t?t:{body:{...e.name!==void 0?{name:e.name}:{},...e.species!==void 0?{species:e.species}:{},...e.breed!==void 0?{breed:e.breed}:{},...e.ageYears!==void 0?{age_years:e.ageYears}:{},...e.weightKg!==void 0?{weight_kg:e.weightKg}:{},...t.body}}}var li=e=>typeof e=="string"?e:null,ai=e=>typeof e=="number"&&Number.isFinite(e)?e:null;function si(e,petRef){let t=typeof e=="object"&&e!==null?e:{};/* @__PURE__ */
25
+ return Object.freeze({petRef:li(t.pet_ref)??petRef,name:li(t.name),species:li(t.species),breed:li(t.breed),ageYears:ai(t.age_years),weightKg:ai(t.weight_kg)})}function widgetPetFromWire(e){if(typeof e!="object"||e===null)return null;let t=e,petRef=li(t.pet_ref);return petRef===null||petRef.length===0?null:/* @__PURE__ */Object.freeze({petId:li(t.pet_id),petRef:petRef,name:li(t.name),species:li(t.species),breed:li(t.breed),ageYears:ai(t.age_years),weightKg:ai(t.weight_kg),updatedAt:li(t.updated_at)})}function ci(e){let t=widgetPetFromWire(e);return t===null?null:/* @__PURE__ */Object.freeze({...t,...Ur(e)})}function di(e){let t=Array.isArray(e)?e:typeof e=="object"&&e!==null&&Array.isArray(e.pets)?e.pets:[];/* @__PURE__ */
26
+ return Object.freeze(t.flatMap(e=>{let t=widgetPetFromWire(e);return t===null?[]:[t]}))}function createPetsRepository(e){return ui(createRequestFunnel({auth:e}),createRequestFunnel({auth:e,unaryTimeoutMs:Qr}))}function ui(e,t=e){let n=(e,t)=>t?{...e,signal:t}:e,r=petRef=>ni(petRef,void 0)??`/widget/v1/pets/${encodeURIComponent(petRef)}`;return{async list(t){let r=await e.send("pets.list",n({method:"GET",path:"/widget/v1/pets"},t?.signal));return r.ok?ok(di(r.value)):err(r.error)},async registerPet(petRef,t,n){let r=ni(petRef,t);if(r!==null)return err(r);let i=oi(t);if("error"in i)return err(i.error);let o={method:"POST",path:`/widget/v1/pets/${encodeURIComponent(petRef)}`,body:i.body},l=await e.send("pets.registerPet",n?.signal?{...o,signal:n.signal}:o);return l.ok?ok(si(l.value,petRef)):err(l.error)},async updatePet(petRef,t,i){let o=r(petRef);if(typeof o!="string")return err(o);let l=ii(t);if("error"in l)return err(l.error);let a=await e.send("pets.updatePet",n({method:"PATCH",path:o,body:l.body},i?.signal));return a.ok?ok(si(a.value,petRef)):err(a.error)},async getPetProfile(petRef,t){let i=r(petRef);if(typeof i!="string")return err(i);let o=await e.send("pets.getPetProfile",n({method:"GET",path:`${i}/profile`},t?.signal));if(!o.ok)return err(o.error);let l=ci(o.value);return l===null?err(makeEverfurError("internalError",{retryable:false,httpStatus:502,wireMessage:"the pet profile response carried no pet_ref"})):ok(l)},async deletePet(petRef,t){let i=r(petRef);if(typeof i!="string")return err(i);let o=await e.send("pets.deletePet",n({method:"DELETE",path:i},t?.signal));return o.ok?ok(void 0):err(o.error)},async eraseUserData(e){let r=await t.send("pets.eraseUserData",n({method:"DELETE",path:"/widget/v1/me"},e?.signal),{maxAttempts:1});return r.ok?ok(void 0):err(r.error)}}}var pi=/* @__PURE__ */new WeakMap;function hi(e,t){let n=pi.get(e);return n===void 0&&(n=/* @__PURE__ */new Set,pi.set(e,n)),n.add(t),()=>{n?.delete(t)}}function useEverfurPets(){let{runtime:t,userRef:userRef,activePet:n,scopeEpoch:r}=$(),i=e.useMemo(()=>createPetsRepository(t.registry.services.authFor(userRef)),[t,userRef,r]),[o,l]=e.useState({repository:i,pets:[],loading:true,error:null}),a=o.repository===i?o:{pets:[],loading:true,error:null},s=e.useRef(0),c=e.useCallback(async()=>{let e=++s.current;l(e=>({...e,repository:i,loading:true,error:null,pets:e.repository===i?e.pets:[]}));let t=await i.list();e===s.current&&l(t.ok?{repository:i,pets:t.value,loading:false,error:null}:e=>({repository:i,pets:e.repository===i?e.pets:[],loading:false,error:t.error}))},[i]);e.useEffect(()=>(c(),()=>{s.current+=1}),[c]),e.useEffect(()=>hi(t,()=>{c()}),[t,c]);let d=e.useMemo(()=>n===null?null:a.pets.find(e=>e.petRef===n)??null,[n,a.pets]);return e.useMemo(()=>({pets:a.pets,activePet:d,loading:a.loading,error:a.error,refresh:c}),[a.pets,a.loading,a.error,d,c])}var gi=/* @__PURE__ */Object.freeze({display:/* @__PURE__ */Object.freeze({size:29,lineHeight:1.06,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),title:/* @__PURE__ */Object.freeze({size:23,lineHeight:1.12,weight:"800",face:"heading",letterSpacing:-.01,uppercase:false,tier:"heading"}),cardTitle:/* @__PURE__ */Object.freeze({size:19,lineHeight:1.22,weight:"800",face:"sans",letterSpacing:0,uppercase:false,tier:"heading"}),rowTitle:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.4,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),body:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),message:/* @__PURE__ */Object.freeze({size:15.5,lineHeight:1.5,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),bodySmall:/* @__PURE__ */Object.freeze({size:14.5,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),caption:/* @__PURE__ */Object.freeze({size:13,lineHeight:1.4,weight:"400",face:"sans",letterSpacing:0,uppercase:false,tier:"content"}),label:/* @__PURE__ */Object.freeze({size:10.5,lineHeight:1.4,weight:"400",face:"mono",letterSpacing:.05,uppercase:true,tier:"compact"}),eyebrow:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"400",face:"mono",letterSpacing:.07,uppercase:true,tier:"compact"}),chip:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.3,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),tab:/* @__PURE__ */Object.freeze({size:16,lineHeight:1.5,weight:"600",face:"sans",letterSpacing:0,uppercase:false,tier:"compact"}),button:/* @__PURE__ */Object.freeze({size:15,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"control"}),badge:/* @__PURE__ */Object.freeze({size:12,lineHeight:1.5,weight:"700",face:"sans",letterSpacing:0,uppercase:false,tier:"badge"})});var fi=Object.freeze;function deepFreeze(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){fi(e);for(let t of Object.keys(e))deepFreeze(e[t])}return e}var mi=/* @__PURE__ */Object.freeze({content:0,heading:2,control:1.8,compact:1.5,badge:1.3});var yi={xs:4,sm:8,md:12,lg:16,xl:24,xxl:32},bi={tile:5,xs:6,sm:10,md:14,lg:20,xl:28,pill:500},wi={nano:8,small:9,micro:10,tiny:11,caption:13,bodyTight:15,body:17,subtitle:20,heading:22,verdict:24},xi={tight:1.15,snug:1.3,normal:1.4,relaxed:1.55},ki={regular:"400",medium:"500",bold:"700"},vi={eyebrow:1,monoWide:.9,headerBrand:-.42,tight:-.35},Si=0,Ti="System",Ci="monospace",ji=["content","heading","control","compact","badge"];function Ii(e){let t={};for(let n of ji)t[n]=e;return t}var Hi=[];function Pi(){return{family:Ti,mono:Ci,fontUrl:null,families:{regular:Ti,medium:Ti,bold:Ti,mono:Ci,monoMedium:Ci,monoBold:Ci},namedFaces:{regular:false,medium:false,bold:false,mono:false,monoMedium:false,monoBold:false},fontUrls:{},size:wi,tierSizes:Ii(wi),lineHeight:xi,weight:ki,letterSpacing:vi,scale:1,maxScale:Si,scaleCaps:mi,headingFamily:null,headingWeight:null,fontSources:Hi,roles:gi,typeScale:1}}var Fi={},Ri=/* @__PURE__ */Object.freeze({standard:/* @__PURE__ */Object.freeze([.2,0,0,1]),emphasized:/* @__PURE__ */Object.freeze([.2,.8,.2,1]),exit:/* @__PURE__ */Object.freeze([.4,0,1,1])});function cssCubicBezier(e){return`cubic-bezier(${e.join(", ")})`}var Di={duration:{instant:80,fast:140,normal:220,slow:320},spring:{gentle:{damping:18,stiffness:200}},easing:{standard:cssCubicBezier(Ri.standard),emphasized:cssCubicBezier(Ri.emphasized),exit:cssCubicBezier(Ri.exit)},reducedMotion:false},zi={brand:"#10462E",brandSoft:"rgba(16,70,46,0.10)",brandSofter:"rgba(16,70,46,0.15)",brandBorder:"rgba(16,70,46,0.18)",borderHairlineGreen:"rgba(16,70,46,0.25)",brandBorderStrong:"rgba(16,70,46,0.55)",brandInk:"#10462E",linkInk:"#10462E",surface:"#FFFFFF",surfaceCream:"#FFFFFF",surfaceSubtle:"#F1F5F2",background:"#FFFFFF",borderRingCream:"#E4E4E4",chatGround:"#FFFFFF",composerFill:"#FFFFFF",composerBorder:"rgba(16,70,46,0.75)",shadow:"#0B3421",text:{primary:"#000000",secondary:"#0E462E",muted:"#6B6B6B",placeholder:"rgba(61,61,61,0.75)",onBrand:"#FFFFFF",metaCool:"#3D3D3D",timestamp:"rgba(61,61,61,0.75)"},primary:"#10462E",onPrimary:"#FFFFFF",accent:"#10462E",onAccent:"#FFFFFF",accentEdge:"#07C168",success:"#07C168",danger:"#C03410",onDanger:"#FFFFFF",errorRed:"#C03410",warningStrong:"#A45610",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.12)",badgeBgCaution:"rgba(217,130,29,0.14)",badgeBgCritical:"rgba(192,52,16,0.06)",badgeBgNeutral:"rgba(107,107,107,0.12)",bubbleUser:"#10462E",bubbleAssistant:"#FFFFFF",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#E9F1E9",scanButtonPink:"#FFC3BC",highlight:"#FFC3BC",onHighlight:"#000000",mark:"#07C168",controlEdge:"rgba(16,70,46,0.18)",structureEdge:"rgba(16,70,46,0.25)",primaryEdge:"#10462E",checkupCardLowRiskBg:"rgba(7,193,104,0.10)",checkupCardConcernBg:"rgba(239,167,0,0.10)",info:"#10462E",badgeBgInfo:"rgba(16,70,46,0.10)",infoEdge:"rgba(16,70,46,0.25)"},$i=deepFreeze({brightness:"light",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:zi,space:yi,radius:bi,type:Pi(),motion:Di,slots:Fi}),Oi={brand:"#6BD39A",brandSoft:"rgba(107,211,154,0.12)",brandSofter:"rgba(107,211,154,0.18)",brandBorder:"rgba(107,211,154,0.22)",borderHairlineGreen:"rgba(107,211,154,0.28)",brandBorderStrong:"rgba(107,211,154,0.55)",brandInk:"#6BD39A",linkInk:"#6BD39A",surface:"#1C1F23",surfaceCream:"#23272C",surfaceSubtle:"#23272C",background:"#15171A",borderRingCream:"#3A3F45",chatGround:"#1C1F23",composerFill:"#23272C",composerBorder:"rgba(107,211,154,0.75)",shadow:"#000000",text:{primary:"#F5F3F0",secondary:"#A9E4C4",muted:"#9A9A9A",placeholder:"rgba(255,255,255,0.55)",onBrand:"#0E1F17",metaCool:"#C9C9C9",timestamp:"rgba(245,243,240,0.7)"},primary:"#6BD39A",onPrimary:"#0E1F17",accent:"#6BD39A",onAccent:"#0E1F17",accentEdge:"#34D888",success:"#07C168",danger:"#F87171",onDanger:"#0E1F17",errorRed:"#FF6B5B",warningStrong:"#F0A35E",cautionAccent:"#D9821D",riskConcern:"#EFA700",sentiment:{up:"#07C168",neutral:"#FBC558",down:"#FF1B00"},badgeBgPositive:"rgba(7,193,104,0.18)",badgeBgCaution:"rgba(217,130,29,0.20)",badgeBgCritical:"rgba(185,28,28,0.22)",badgeBgNeutral:"rgba(255,255,255,0.10)",bubbleUser:"#6BD39A",bubbleAssistant:"#1C1F23",bubbleVet:"#FFC3BC",onBubbleVet:"#000000",skeleton:"#23272C",scanButtonPink:"#FFC3BC",highlight:"#605051",onHighlight:"#F5F3F0",mark:"#07C168",controlEdge:"rgba(107,211,154,0.22)",structureEdge:"rgba(107,211,154,0.28)",primaryEdge:"#6BD39A",checkupCardLowRiskBg:"rgba(7,193,104,0.16)",checkupCardConcernBg:"rgba(239,167,0,0.16)",info:"#6BD39A",badgeBgInfo:"rgba(107,211,154,0.12)",infoEdge:"rgba(107,211,154,0.28)"},Bi=deepFreeze({brightness:"dark",highContrast:false,meta:{displayName:"Everfur",logoUrl:null,placeholder:null,hidePoweredBy:false,assistantAvatarUrl:null},color:Oi,space:yi,radius:bi,type:Pi(),motion:Di,slots:Fi});var _i=/* @__PURE__ */Symbol.for("@everfur/sdk#EverfurThemeContext@v1"),Li=globalThis,Ei=Li[_i]??(Li[_i]=e.createContext($i));Ei.displayName??="EverfurThemeContext";function useEverfurTheme(){return e.useContext(Ei)}function Ai(e,t){let n=e.scaleCaps[t];return n>0?n:void 0}function Text({tier:n,variant:r,...i}){let o=useEverfurTheme(),l=r===void 0?void 0:o.type.roles[r],a=Ai(o.type,n??l?.tier??"content"),s=r===void 0?i:{...i,style:[{...textRole(o,r),color:o.color.text.primary,flexShrink:1},i.style]};return e.createElement(t.Text,a===void 0?s:{maxFontSizeMultiplier:a,...s})}e.forwardRef(function(n,r){return e.createElement(t.TextInput,{...n,...r===null?{}:{ref:r}})});var Wi=/* @__PURE__ */Object.freeze({chat:/* @__PURE__ */Object.freeze(["chat.message.create"]),records:/* @__PURE__ */Object.freeze(["records.upload.create","records.record.read"]),recordsClinic:/* @__PURE__ */Object.freeze(["records.clinic.create"]),video:/* @__PURE__ */Object.freeze(["video.gait.execute"]),photo:/* @__PURE__ */Object.freeze(["photo.checkup.execute"]),animations:/* @__PURE__ */Object.freeze(["animations.state.read"]),televet:/* @__PURE__ */Object.freeze(["televet.visit.create"]),texting:/* @__PURE__ */Object.freeze(["sms.identity.read","sms.identity.update"]),healthPlan:/* @__PURE__ */Object.freeze(["shop.plan.read","shop.plan.update"])});function requires(e){return Wi[e]}function decideCapability(e,t,n){let r=requires(e),i=/* @__PURE__ */new Map;for(let e of t)i.set(e.resource,e);if(n?.isPending===true&&r.some(e=>!i.has(e)))return Ni({name:e,enabled:false,isPending:true,limits:{}});let o=Vi(r,i);return r.filter(e=>i.get(e)?.granted!==true).length===0?Ni({name:e,enabled:true,isPending:false,limits:o}):Ni({name:e,enabled:false,isPending:false,limits:o,disabled:Mi(r,i)})}function Vi(e,t){let n={};for(let r of e){let e=t.get(r)?.limits;if(e)for(let[t,r]of Object.entries(e)){let e=n[t];n[t]=e===void 0?r:Math.min(e,r)}}return n}function Mi(e,t){for(let n of e){let e=t.get(n)?.disabled;if(e)/* @__PURE__ */
26
27
  return Object.freeze({reason:e.reason,level:e.level,recoverable:e.recoverable})}/* @__PURE__ */
27
- return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function Vi(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(t){let{runtime:n}=$(),r=n.entitlements,i=e.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);return e.useMemo(()=>decideCapability(t,i.decisions,{isPending:i.isPending}),[t,i])}var Mi=48;function Ni(e){return e.isPending?"pending":e.enabled?"enabled":"disabled"}function CapabilityGate(t){let{capability:r,children:i,renderDisabled:o,renderPending:l,style:a}=t,s=useCapability(r),c=e.useMemo(()=>Ni(s),[s]);switch(c){case"enabled":return i;case"pending":return l?/* @__PURE__ */n.jsx(HostRender,{render:l,fallback:/* @__PURE__ */n.jsx(PendingSkeleton,{capability:r,style:a})}):/* @__PURE__ */n.jsx(PendingSkeleton,{capability:r,style:a});case"disabled":return o?/* @__PURE__ */n.jsx(HostRender,{render:()=>o(s),fallback:/* @__PURE__ */n.jsx(OffState,{decision:s,style:a}),resetKey:s}):/* @__PURE__ */n.jsx(OffState,{decision:s,style:a});default:return assertNever(c)}}function PendingSkeleton({capability:r,style:i}){let o=useEverfurTheme(),l=e.useMemo(()=>Ui(o),[o]);/* @__PURE__ */
28
- return n.jsx(t.View,{style:[l.offstate,i],accessible:true,accessibilityState:{busy:true},accessibilityLabel:`Loading ${r}`,children:/* @__PURE__ */n.jsx(t.View,{style:l.skeletonBar})})}function OffState({decision:r,style:i}){let o=useEverfurTheme(),l=e.useMemo(()=>Ui(o),[o]),a=r.disabled?.reason??"";/* @__PURE__ */
29
- return n.jsx(t.View,{style:[l.offstate,i],accessible:true,accessibilityRole:"text",accessibilityLabel:a,children:a.length>0?/* @__PURE__ */n.jsx(Text,{style:l.offstateText,children:a}):null})}function Ui(e){let{color:n,space:r,radius:i,type:o}=e;return t.StyleSheet.create({offstate:{minHeight:Mi,justifyContent:"center",paddingHorizontal:r.lg,paddingVertical:r.md,backgroundColor:n.surfaceCream,borderRadius:i.md,borderWidth:t.StyleSheet.hairlineWidth,borderColor:n.brandBorder},offstateText:{...face(e,"regular"),fontSize:o.size.body,lineHeight:Math.round(o.size.body*o.lineHeight.normal),color:n.text.muted},skeletonBar:{height:r.md,borderRadius:i.xs,backgroundColor:n.brandSofter}})}function qi(e){if(typeof e=="number")return Xi(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Gi(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Gi(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Ki(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Gi(t);if(e!==null)return e}return/^\d+$/.test(t)?Xi(Number.parseInt(t,10)):null}function Gi(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:Ji(t[0]),g:Ji(t[1]),b:Ji(t[2]),a:1};if(t.length===6)return{r:Yi(t,0),g:Yi(t,2),b:Yi(t,4),a:1};if(t.length===8){let e=Yi(t,0);return{r:Yi(t,2),g:Yi(t,4),b:Yi(t,6),a:e/255}}return null}function Ki(e){let t=e.indexOf("("),n=e.indexOf(")");if(t<0||n<0||n<t)return null;let r=e.slice(t+1,n).split(",").map(e=>e.trim());if(r.length<3)return null;let i=Qi(Number(r[0])),o=Qi(Number(r[1])),l=Qi(Number(r[2]));if(i===null||o===null||l===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function Xi(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,n=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:n===0?1:n/255}}function Yi(e,t){return Number.parseInt(e.slice(t,t+2),16)}function Ji(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function Qi(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function Zi(e,t,n){return`#${eo(e)}${eo(t)}${eo(n)}`.toUpperCase()}function eo(e){return e.toString(16).padStart(2,"0")}var to="#111111",no="#FFFFFF",ro="#000000";function readableOn(e){let t=qi(e);if(t===null)return no;let n=lo(t),r=lo({r:17,g:17,b:17}),i=lo({r:255,g:255,b:255});return so(n,i)>=so(n,r)?no:to}function io(e,t){let n=readableOn(e);return contrastRatio(n,e)>=t?n:contrastRatio(no,e)>=contrastRatio(ro,e)?no:ro}function oo(e){let t=t=>e.reduce((e,n)=>Math.min(e,contrastRatio(t,n)),Number.POSITIVE_INFINITY);return t(no)>=t(ro)?no:ro}function lo(e){let t=ao(e.r/255),n=ao(e.g/255),r=ao(e.b/255);return.2126*t+.7152*n+.0722*r}function ao(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function so(e,t){let n=Math.max(e,t),r=Math.min(e,t);return(n+.05)/(r+.05)}function contrastRatio(e,t){let n=qi(e),r=qi(t);if(n===null||r===null)return 1;let i=r.a>=1?r:{...r},o=n.a>=1?n:co(n,i);return so(lo(o),lo(i))}function co(e,t){let n=e.a,r=(e,t)=>Math.round(e*n+t*(1-n));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function uo(e,t){let n=qi(e),r=qi(t);if(n===null||r===null)return null;let i=n.a>=1?n:co(n,{...r});return Zi(i.r,i.g,i.b)}var po=.05;function ho(e,t,n,r){let i=t[0];if(i===void 0)return n;let o=e=>t.every(t=>contrastRatio(e,t)>=r);if(qi(e)===null)return n;if(o(e))return e;let l=uo(e,i),a=l===null?null:qi(l),s=qi(n);if(a===null||s===null)return n;for(let e=1;e<1/po;e+=1){let t=e*po,n=(e,n)=>Math.round(e+(n-e)*t),r=Zi(n(a.r,s.r),n(a.g,s.g),n(a.b,s.b));if(o(r))return r}return n}var go={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},fo=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function mo(){let t=globalThis,n=t[fo];return n===void 0&&(n=e.createContext(null),n.displayName="EverfurThemeContext",t[fo]=n),n}var yo=(e,t)=>e.toUpperCase()===t.toUpperCase();function bo(e){let t=qi(e);return t!==null&&lo(t)<.18}var wo=/* @__PURE__ */new WeakMap;function xo(e,t){if(t===null)return e;let n=wo.get(e);n===void 0&&(n=/* @__PURE__ */new WeakMap,wo.set(e,n));let r=n.get(t);return r===void 0&&(r=ko(e,t),n.set(t,r)),r}function ko(e,t){let n=t.colors,r=!yo(n.ink,go.ink),i=!yo(n.go,go.go),o=e===Di&&bo(n.bg),l=o?$i:e,a=l.color,s=e=>o||a[e]===Di.color[e],c={};r&&s("primary")&&(Object.assign(c,{primary:n.ink,onPrimary:n.onInk,brand:n.ink,brandInk:n.ink}),s("linkInk")&&(c.linkInk=n.ink),!i&&s("accent")&&Object.assign(c,{accent:n.ink,onAccent:n.onInk})),i&&s("accent")&&Object.assign(c,{accent:n.go,onAccent:n.onGo}),!yo(n.alert,go.alert)&&s("danger")&&(c.danger=n.alert),!yo(n.tintSage,go.tintSage)&&s("brandSoft")&&(c.brandSoft=n.tintSage,s("brandSofter")&&(c.brandSofter=n.tintSage)),o&&Object.assign(c,{background:n.bg,surface:n.surface,text:{...a.text,primary:n.text,muted:n.muted},borderRingCream:n.line});let d=t.motion?.reduced===true&&!l.motion.reducedMotion;return!o&&!d&&Object.keys(c).length===0?e:{...l,color:{...a,...c},...d?{motion:{...l.motion,reducedMotion:true}}:{}}}function vo(){let t=useEverfurTheme(),n=e.useContext(mo());return e.useMemo(()=>xo(t,n),[t,n])}var So=640,To=600,Co=/* @__PURE__ */Object.freeze({width:0,height:0}),jo="useWindowDimensions"in l&&typeof l.useWindowDimensions=="function"?l.useWindowDimensions:()=>Co,Io=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:So,alignSelf:"center"});/* @__PURE__ */Object.freeze({...Io,flex:1});var Ho=/* @__PURE__ */Object.freeze({...Io,flexGrow:1,flexShrink:1});function Po(){return jo().width>=To}function Fo(){let{width:e}=jo();return e>=To?Math.min(e,So):e}function Ro(e="flow"){let{width:t}=jo();if(t<To)return null;if(e==="flow")return Io;let n=Math.max(0,Math.round((t-So)/2));return{left:n,right:n}}function Do(e,t){return t===null?e:[e,t]}var zo=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),$o=globalThis,Oo=$o[zo]??($o[zo]=e.createContext(false));Oo.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:r,style:i,testID:o}){let l=Po(),a=e.useContext(Oo);return!l||a?r:/* @__PURE__ */n.jsx(t.View,{style:i===void 0?Ho:[Ho,i],testID:o??"everfur-tablet-column",children:/* @__PURE__ */n.jsx(Oo.Provider,{value:true,children:r})})}function Bo(e,t){if(e===void 0)return{};let n={};return e.backgroundColor!==void 0&&(n.backgroundColor=e.backgroundColor),e.borderColor!==void 0&&(n.borderColor=e.borderColor,n.borderWidth=t??1),e.borderRadius!==void 0&&(n.borderRadius=e.borderRadius),n}function _o(e){return e?.textColor===void 0?{}:{color:e.textColor}}function HealthPlanCartBar(r){let{cart:i,onCheckout:o,busy:l=false,priceFormat:a,style:s}=jt(r,["onCheckout"]),c=vo(),d=e.useMemo(()=>Lo(c),[c]),u=formatHealthPlanPriceWith(i.subtotal,i.currency,a),h=i.count===0||l,g=B(),petRef=L(useHealthPlanCartDock()?.petRef);/* @__PURE__ */
28
+ return Object.freeze({reason:userFacingError("accessDenied"),level:"user_entitlement",recoverable:false})}function Ni(e){let t={name:e.name,enabled:e.enabled,isPending:e.isPending,limits:/* @__PURE__ */Object.freeze({...e.limits})};return e.disabled!==void 0&&(t.disabled=e.disabled),/* @__PURE__ */Object.freeze(t)}function useCapability(t){let{runtime:n}=$(),r=n.entitlements,i=e.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);return e.useMemo(()=>decideCapability(t,i.decisions,{isPending:i.isPending}),[t,i])}var Ui=48;function qi(e){return e.isPending?"pending":e.enabled?"enabled":"disabled"}function CapabilityGate(t){let{capability:r,children:i,renderDisabled:o,renderPending:l,style:a}=t,s=useCapability(r),c=e.useMemo(()=>qi(s),[s]);switch(c){case"enabled":return i;case"pending":return l?/* @__PURE__ */n.jsx(HostRender,{render:l,fallback:/* @__PURE__ */n.jsx(PendingSkeleton,{capability:r,style:a})}):/* @__PURE__ */n.jsx(PendingSkeleton,{capability:r,style:a});case"disabled":return o?/* @__PURE__ */n.jsx(HostRender,{render:()=>o(s),fallback:/* @__PURE__ */n.jsx(OffState,{decision:s,style:a}),resetKey:s}):/* @__PURE__ */n.jsx(OffState,{decision:s,style:a});default:return assertNever(c)}}function PendingSkeleton({capability:r,style:i}){let o=useEverfurTheme(),l=e.useMemo(()=>Gi(o),[o]);/* @__PURE__ */
29
+ return n.jsx(t.View,{style:[l.offstate,i],accessible:true,accessibilityState:{busy:true},accessibilityLabel:`Loading ${r}`,children:/* @__PURE__ */n.jsx(t.View,{style:l.skeletonBar})})}function OffState({decision:r,style:i}){let o=useEverfurTheme(),l=e.useMemo(()=>Gi(o),[o]),a=r.disabled?.reason??"";/* @__PURE__ */
30
+ return n.jsx(t.View,{style:[l.offstate,i],accessible:true,accessibilityRole:"text",accessibilityLabel:a,children:a.length>0?/* @__PURE__ */n.jsx(Text,{style:l.offstateText,children:a}):null})}function Gi(e){let{color:n,space:r,radius:i,type:o}=e;return t.StyleSheet.create({offstate:{minHeight:Ui,justifyContent:"center",paddingHorizontal:r.lg,paddingVertical:r.md,backgroundColor:n.surfaceCream,borderRadius:i.md,borderWidth:t.StyleSheet.hairlineWidth,borderColor:n.brandBorder},offstateText:{...face(e,"regular"),fontSize:o.size.body,lineHeight:Math.round(o.size.body*o.lineHeight.normal),color:n.text.muted},skeletonBar:{height:r.md,borderRadius:i.xs,backgroundColor:n.brandSofter}})}function Ki(e){if(typeof e=="number")return Ji(e);if(typeof e!="string")return null;let t=e.trim();if(t.length===0)return null;if(t.startsWith("#"))return Xi(t.slice(1));if(t.toLowerCase().startsWith("0x"))return Xi(t.slice(2));if(t.toLowerCase().startsWith("rgb"))return Yi(t);if(/^[0-9a-fA-F]+$/.test(t)){let e=Xi(t);if(e!==null)return e}return/^\d+$/.test(t)?Ji(Number.parseInt(t,10)):null}function Xi(e){let t=e.trim();if(!/^[0-9a-fA-F]+$/.test(t))return null;if(t.length===3)return{r:Zi(t[0]),g:Zi(t[1]),b:Zi(t[2]),a:1};if(t.length===6)return{r:Qi(t,0),g:Qi(t,2),b:Qi(t,4),a:1};if(t.length===8){let e=Qi(t,0);return{r:Qi(t,2),g:Qi(t,4),b:Qi(t,6),a:e/255}}return null}function Yi(e){let t=e.indexOf("("),n=e.indexOf(")");if(t<0||n<0||n<t)return null;let r=e.slice(t+1,n).split(",").map(e=>e.trim());if(r.length<3)return null;let i=eo(Number(r[0])),o=eo(Number(r[1])),l=eo(Number(r[2]));if(i===null||o===null||l===null)return null;let a=1;if(r.length>=4){let e=Number(r[3]);if(!Number.isFinite(e))return null;a=Math.min(1,Math.max(0,e))}return{r:i,g:o,b:l,a:a}}function Ji(e){if(!Number.isFinite(e))return null;let t=Math.trunc(e)>>>0,n=t>>>24&255;return{r:t>>>16&255,g:t>>>8&255,b:t&255,a:n===0?1:n/255}}function Qi(e,t){return Number.parseInt(e.slice(t,t+2),16)}function Zi(e){return Number.parseInt(`${e??"0"}${e??"0"}`,16)}function eo(e){return Number.isFinite(e)?Math.min(255,Math.max(0,Math.round(e))):null}function to(e,t,n){return`#${no(e)}${no(t)}${no(n)}`.toUpperCase()}function no(e){return e.toString(16).padStart(2,"0")}var ro="#111111",io="#FFFFFF",oo="#000000";function readableOn(e){let t=Ki(e);if(t===null)return io;let n=so(t),r=so({r:17,g:17,b:17}),i=so({r:255,g:255,b:255});return uo(n,i)>=uo(n,r)?io:ro}function lo(e,t){let n=readableOn(e);return contrastRatio(n,e)>=t?n:contrastRatio(io,e)>=contrastRatio(oo,e)?io:oo}function ao(e){let t=t=>e.reduce((e,n)=>Math.min(e,contrastRatio(t,n)),Number.POSITIVE_INFINITY);return t(io)>=t(oo)?io:oo}function so(e){let t=co(e.r/255),n=co(e.g/255),r=co(e.b/255);return.2126*t+.7152*n+.0722*r}function co(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uo(e,t){let n=Math.max(e,t),r=Math.min(e,t);return(n+.05)/(r+.05)}function contrastRatio(e,t){let n=Ki(e),r=Ki(t);if(n===null||r===null)return 1;let i=r.a>=1?r:{...r},o=n.a>=1?n:po(n,i);return uo(so(o),so(i))}function po(e,t){let n=e.a,r=(e,t)=>Math.round(e*n+t*(1-n));return{r:r(e.r,t.r),g:r(e.g,t.g),b:r(e.b,t.b),a:1}}function ho(e,t){let n=Ki(e),r=Ki(t);if(n===null||r===null)return null;let i=n.a>=1?n:po(n,{...r});return to(i.r,i.g,i.b)}var go=.05;function fo(e,t,n,r){let i=t[0];if(i===void 0)return n;let o=e=>t.every(t=>contrastRatio(e,t)>=r);if(Ki(e)===null)return n;if(o(e))return e;let l=ho(e,i),a=l===null?null:Ki(l),s=Ki(n);if(a===null||s===null)return n;for(let e=1;e<1/go;e+=1){let t=e*go,n=(e,n)=>Math.round(e+(n-e)*t),r=to(n(a.r,s.r),n(a.g,s.g),n(a.b,s.b));if(o(r))return r}return n}var mo={ink:"#10462E",go:"#07C168",alert:"#C03410",tintSage:"#E6ECE8"},yo=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1");function bo(){let t=globalThis,n=t[yo];return n===void 0&&(n=e.createContext(null),n.displayName="EverfurThemeContext",t[yo]=n),n}var wo=(e,t)=>e.toUpperCase()===t.toUpperCase();function xo(e){let t=Ki(e);return t!==null&&so(t)<.18}var ko=/* @__PURE__ */new WeakMap;function vo(e,t){if(t===null)return e;let n=ko.get(e);n===void 0&&(n=/* @__PURE__ */new WeakMap,ko.set(e,n));let r=n.get(t);return r===void 0&&(r=So(e,t),n.set(t,r)),r}function So(e,t){let n=t.colors,r=!wo(n.ink,mo.ink),i=!wo(n.go,mo.go),o=e===$i&&xo(n.bg),l=o?Bi:e,a=l.color,s=e=>o||a[e]===$i.color[e],c={};r&&s("primary")&&(Object.assign(c,{primary:n.ink,onPrimary:n.onInk,brand:n.ink,brandInk:n.ink}),s("linkInk")&&(c.linkInk=n.ink),!i&&s("accent")&&Object.assign(c,{accent:n.ink,onAccent:n.onInk})),i&&s("accent")&&Object.assign(c,{accent:n.go,onAccent:n.onGo}),!wo(n.alert,mo.alert)&&s("danger")&&(c.danger=n.alert),!wo(n.tintSage,mo.tintSage)&&s("brandSoft")&&(c.brandSoft=n.tintSage,s("brandSofter")&&(c.brandSofter=n.tintSage)),o&&Object.assign(c,{background:n.bg,surface:n.surface,text:{...a.text,primary:n.text,muted:n.muted},borderRingCream:n.line});let d=t.motion?.reduced===true&&!l.motion.reducedMotion;return!o&&!d&&Object.keys(c).length===0?e:{...l,color:{...a,...c},...d?{motion:{...l.motion,reducedMotion:true}}:{}}}function To(){let t=useEverfurTheme(),n=e.useContext(bo());return e.useMemo(()=>vo(t,n),[t,n])}var Co=640,jo=600,Io=/* @__PURE__ */Object.freeze({width:0,height:0}),Ho="useWindowDimensions"in l&&typeof l.useWindowDimensions=="function"?l.useWindowDimensions:()=>Io,Po=/* @__PURE__ */Object.freeze({width:"100%",maxWidth:Co,alignSelf:"center"});/* @__PURE__ */Object.freeze({...Po,flex:1});var Fo=/* @__PURE__ */Object.freeze({...Po,flexGrow:1,flexShrink:1});function Ro(){return Ho().width>=jo}function Do(){let{width:e}=Ho();return e>=jo?Math.min(e,Co):e}function zo(e="flow"){let{width:t}=Ho();if(t<jo)return null;if(e==="flow")return Po;let n=Math.max(0,Math.round((t-Co)/2));return{left:n,right:n}}function $o(e,t){return t===null?e:[e,t]}var Oo=/* @__PURE__ */Symbol.for("@everfur/sdk#InSdkColumn@v1"),Bo=globalThis,_o=Bo[Oo]??(Bo[Oo]=e.createContext(false));_o.displayName??="EverfurInSdkColumn";function SdkTabletColumn({children:r,style:i,testID:o}){let l=Ro(),a=e.useContext(_o);return!l||a?r:/* @__PURE__ */n.jsx(t.View,{style:i===void 0?Fo:[Fo,i],testID:o??"everfur-tablet-column",children:/* @__PURE__ */n.jsx(_o.Provider,{value:true,children:r})})}function Lo(e,t){if(e===void 0)return{};let n={};return e.backgroundColor!==void 0&&(n.backgroundColor=e.backgroundColor),e.borderColor!==void 0&&(n.borderColor=e.borderColor,n.borderWidth=t??1),e.borderRadius!==void 0&&(n.borderRadius=e.borderRadius),n}function Eo(e){return e?.textColor===void 0?{}:{color:e.textColor}}function HealthPlanCartBar(r){let{cart:i,onCheckout:o,busy:l=false,priceFormat:a,style:s}=jt(r,["onCheckout"]),c=To(),d=e.useMemo(()=>Ao(c),[c]),u=formatHealthPlanPriceWith(i.subtotal,i.currency,a),h=i.count===0||l,g=B(),petRef=L(useHealthPlanCartDock()?.petRef);/* @__PURE__ */
30
31
  return n.jsxs(t.View,{style:[d.bar,s],accessibilityLabel:f.cartLabel(c.meta.displayName),children:[
31
32
  /* @__PURE__ */n.jsxs(t.View,{style:d.copy,children:[
32
33
  /* @__PURE__ */n.jsxs(t.View,{style:d.labelRow,children:[
33
- /* @__PURE__ */n.jsx(Text,{style:d.label,children:f.cartLabel(c.meta.displayName)}),i.count>0?/* @__PURE__ */n.jsx(t.View,{style:d.count,accessibilityElementsHidden:true,importantForAccessibility:"no",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:d.countLabel,children:String(i.count)})}):null]}),i.count===0?/* @__PURE__ */n.jsx(Text,{style:d.line,children:p.cartEmpty}):u===null?null:/* @__PURE__ */n.jsxs(Text,{style:d.line,children:[p.subtotal," ",u]})]}),o===void 0?null:/* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>{W(g,petRef,i),o(i.items)},disabled:h,accessibilityRole:"button",accessibilityLabel:p.checkout,accessibilityState:{disabled:h,busy:l},style:[d.checkout,h?d.dimmed:null],testID:"health-plan-checkout",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:d.checkoutLabel,children:p.checkout})})]})}function Lo(e){let{color:n,radius:r,space:i,type:o,slots:l}=e,a=l.cartBar?.textColor??n.text.onBrand,s=l.cartBar?.backgroundColor??n.brandInk,c=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n});return t.StyleSheet.create({bar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.md,paddingHorizontal:i.lg,paddingVertical:i.md,borderRadius:r.lg,backgroundColor:n.brand,...Bo(l.cartBar)},copy:{flex:1,gap:2},labelRow:{flexDirection:"row",alignItems:"center",gap:i.sm},label:c(o.size.body,a,"bold"),count:{minWidth:22,height:22,paddingHorizontal:i.xs,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},countLabel:c(o.size.caption,s,"bold"),line:c(o.size.caption,a,"regular"),checkout:{minHeight:44,paddingHorizontal:i.lg,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},checkoutLabel:c(o.size.body,s,"bold"),dimmed:{opacity:.5}})}var Eo={in:320,out:220,inCurve:"drawer",outCurve:"out"},Ao={in:240,out:200,inCurve:"ease",outCurve:"ease"},Wo={in:300,out:220,inCurve:"drawer",outCurve:"out"},Vo={in:220,out:160,inCurve:"out",outCurve:"out"},Mo={in:160,out:160,inCurve:"ease",outCurve:"ease"},No={};function Uo(e){let n=No[e];if(n!==void 0)return n;let[r,i,o,l]=e==="drawer"?[.32,.72,0,1]:e==="out"?[.23,1,.32,1]:[.25,.1,.25,1],a=t.Easing.bezier(r,i,o,l);return No[e]=a,a}function qo(e,n,r,i){let o=n.length,l=n.map((n,i)=>t.Animated.timing(e[i],{toValue:r?1:0,duration:r?n.in:n.out,easing:Uo(r?n.inCurve:n.outCurve),useNativeDriver:true}));for(let e of l)e.start(({finished:e})=>{o-=1,e&&o===0&&i()});return()=>{for(let e of l)e.stop()}}function PlanLinger({draw:n,motions:r}){let i=n!==null,[o,l]=e.useState(null);i&&o?.draw!==n&&l({draw:n});let a=e.useRef(new t.Animated.Value(0)).current,s=e.useRef(new t.Animated.Value(0)).current,c=[a,s];e.useEffect(()=>{if(!(!i&&o===null))return qo(c,r,i,()=>{i||l(null)})},[i]);let d=n??o?.draw;return d===void 0?null:d(c)}function PlanPushes({id:r,depth:i,node:o,width:l,paper:a,still:s}){let[c,d]=e.useState({id:r,depth:i,node:o,leaving:null}),u=r!==c.id;(u||o!==c.node)&&d({id:r,depth:i,node:o,leaving:u?i<c.depth?c.node:null:c.leaving});let p=e.useRef(new t.Animated.Value(1)).current,h=e.useRef(new t.Animated.Value(1)).current,g=s?Mo:Wo,f=e.useRef(i);e.useLayoutEffect(()=>{let e=f.current;if(f.current=i,i>e)return p.setValue(0),qo([p],[g],true,()=>{});if(i!==e)return h.setValue(1),qo([h],[g],false,()=>d(e=>({...e,leaving:null})))},[r]);let m=e=>s?{opacity:e}:{transform:[{translateX:e.interpolate({inputRange:[0,1],outputRange:[l,0]})}]};/* @__PURE__ */
34
+ /* @__PURE__ */n.jsx(Text,{style:d.label,children:f.cartLabel(c.meta.displayName)}),i.count>0?/* @__PURE__ */n.jsx(t.View,{style:d.count,accessibilityElementsHidden:true,importantForAccessibility:"no",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:d.countLabel,children:String(i.count)})}):null]}),i.count===0?/* @__PURE__ */n.jsx(Text,{style:d.line,children:p.cartEmpty}):u===null?null:/* @__PURE__ */n.jsxs(Text,{style:d.line,children:[p.subtotal," ",u]})]}),o===void 0?null:/* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>{W(g,petRef,i),o(i.items)},disabled:h,accessibilityRole:"button",accessibilityLabel:p.checkout,accessibilityState:{disabled:h,busy:l},style:[d.checkout,h?d.dimmed:null],testID:"health-plan-checkout",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:d.checkoutLabel,children:p.checkout})})]})}function Ao(e){let{color:n,radius:r,space:i,type:o,slots:l}=e,a=l.cartBar?.textColor??n.text.onBrand,s=l.cartBar?.backgroundColor??n.brandInk,c=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n});return t.StyleSheet.create({bar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.md,paddingHorizontal:i.lg,paddingVertical:i.md,borderRadius:r.lg,backgroundColor:n.brand,...Lo(l.cartBar)},copy:{flex:1,gap:2},labelRow:{flexDirection:"row",alignItems:"center",gap:i.sm},label:c(o.size.body,a,"bold"),count:{minWidth:22,height:22,paddingHorizontal:i.xs,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},countLabel:c(o.size.caption,s,"bold"),line:c(o.size.caption,a,"regular"),checkout:{minHeight:44,paddingHorizontal:i.lg,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:a},checkoutLabel:c(o.size.body,s,"bold"),dimmed:{opacity:.5}})}var Wo={in:320,out:220,inCurve:"drawer",outCurve:"out"},Vo={in:240,out:200,inCurve:"ease",outCurve:"ease"},Mo={in:300,out:220,inCurve:"drawer",outCurve:"out"},No={in:220,out:160,inCurve:"out",outCurve:"out"},Uo={in:160,out:160,inCurve:"ease",outCurve:"ease"},qo={};function Go(e){let n=qo[e];if(n!==void 0)return n;let[r,i,o,l]=e==="drawer"?[.32,.72,0,1]:e==="out"?[.23,1,.32,1]:[.25,.1,.25,1],a=t.Easing.bezier(r,i,o,l);return qo[e]=a,a}function Ko(e,n,r,i){let o=n.length,l=n.map((n,i)=>t.Animated.timing(e[i],{toValue:r?1:0,duration:r?n.in:n.out,easing:Go(r?n.inCurve:n.outCurve),useNativeDriver:true}));for(let e of l)e.start(({finished:e})=>{o-=1,e&&o===0&&i()});return()=>{for(let e of l)e.stop()}}function PlanLinger({draw:n,motions:r}){let i=n!==null,[o,l]=e.useState(null);i&&o?.draw!==n&&l({draw:n});let a=e.useRef(new t.Animated.Value(0)).current,s=e.useRef(new t.Animated.Value(0)).current,c=[a,s];e.useEffect(()=>{if(!(!i&&o===null))return Ko(c,r,i,()=>{i||l(null)})},[i]);let d=n??o?.draw;return d===void 0?null:d(c)}function PlanPushes({id:r,depth:i,node:o,width:l,paper:a,still:s}){let[c,d]=e.useState({id:r,depth:i,node:o,leaving:null}),u=r!==c.id;(u||o!==c.node)&&d({id:r,depth:i,node:o,leaving:u?i<c.depth?c.node:null:c.leaving});let p=e.useRef(new t.Animated.Value(1)).current,h=e.useRef(new t.Animated.Value(1)).current,g=s?Uo:Mo,f=e.useRef(i);e.useLayoutEffect(()=>{let e=f.current;if(f.current=i,i>e)return p.setValue(0),Ko([p],[g],true,()=>{});if(i!==e)return h.setValue(1),Ko([h],[g],false,()=>d(e=>({...e,leaving:null})))},[r]);let m=e=>s?{opacity:e}:{transform:[{translateX:e.interpolate({inputRange:[0,1],outputRange:[l,0]})}]};/* @__PURE__ */
34
35
  return n.jsxs(t.View,{children:[
35
- /* @__PURE__ */n.jsx(t.Animated.View,{style:m(p),children:o}),c.leaving===null?null:/* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:[{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:a},m(h)],children:c.leaving})]})}var Go=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var Ko={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},Xo={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Yo=e=>({...Ko,...e}),Jo=e=>({...Xo,...e}),Qo={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var Zo={card:/* @__PURE__ */Yo({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */Yo({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */Jo({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */Yo({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */Jo({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */Jo({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */Yo({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */Jo({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */Jo({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */Yo({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */Yo({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */Jo({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */Yo({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */Jo({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Yo({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */Jo({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */Yo({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Jo({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */Jo({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */Jo({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},el={card:/* @__PURE__ */Yo({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */Yo({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */Jo({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */Yo({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */Jo({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */Jo({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */Yo({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */Jo({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */Jo({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */Yo({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */Yo({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */Jo({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */Yo({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */Jo({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Yo({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */Jo({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */Yo({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Jo({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */Jo({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */Jo({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */Yo({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */Yo({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */Jo({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */Yo({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */Yo({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */Yo({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */Yo({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */Jo({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */Jo({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */Yo({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */Jo({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */Yo({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */Jo({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */Jo({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */Yo({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */Yo({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */Jo({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */Jo({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */Jo({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */Yo({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */Jo({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */Yo({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */Yo({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},tl={card:/* @__PURE__ */Yo({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Yo({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */Yo({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Jo({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Jo({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */Jo({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */Yo({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */Jo({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */Yo({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */Yo({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Yo({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Yo({w:22,h:22})},nl={card:/* @__PURE__ */Yo({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Yo({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */Yo({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Jo({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Jo({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */Yo({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Yo({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Yo({w:22,h:22,color:"ink"})},rl={card:/* @__PURE__ */Yo({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */Yo({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Jo({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */Yo({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */Yo({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */Yo({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */Yo({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */Yo({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Jo({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */Yo({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},il={card:/* @__PURE__ */Yo({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */Yo({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */Jo({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */Yo({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */Jo({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */Jo({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */Yo({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */Jo({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})};function ol(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))ol(t);return e}var ll=Go,al=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function sl(e){return Object.defineProperty(e,al,{value:e,enumerable:true}),ol(e)}var cl={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},dl=sl({name:"everfur",colors:{bg:ll.color.bg,surface:ll.color.efWhite,text:ll.color.text,ink:ll.role.color.ink,onInk:ll.color.efWhite,muted:ll.role.color.muted,line:ll.role.color.line,go:ll.role.color.go,onGo:ll.role.color.ink,pink:ll.color.efDustyPink,onPink:ll.role.color.ink,alert:ll.color.alert,alertDeep:ll.color.alertDeep,icoSage:ll.role.color.icoSage,bgMist:ll.color.bgMist,tintSage:ll.role.color.tintSage,tintBlue:ll.role.color.tintBlue,tintGo:ll.role.color.tintGo,tintPink:ll.role.color.tintPink,tintYellowEdge:ll.role.color.tintYellowEdge,tintWatch:Qo.colors.watch,tintRed:ll.role.color.tintRed,scrim:Qo.colors.scrim,grab:Qo.colors.grab,focus:ll.role.color.ink,planInk:Qo.colors.planInk,planOnInk:Qo.colors.planOnInk,planAccent:Qo.colors.planAccent,planLink:Qo.colors.planLink,planAccentWash:Qo.colors.planAccentWash,planAccentChip:Qo.colors.planAccentChip,planLinkWash:Qo.colors.planLinkWash,planLinkChip:Qo.colors.planLinkChip},radius:{...ll.radius},space:{...ll.space},type:{family:ll.font.family.base,mono:ll.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:ll.font.size.xs,sm:ll.font.size.sm,md:ll.font.size.md,lg:ll.font.size.lg,xl:ll.font.size.xl},weight:{...ll.font.weight},lineHeight:{...ll.font.lineHeight},scaleCaps:cl},motion:{duration:{press:ll.motion.duration.press,fade:ll.motion.duration.fade,enter:ll.motion.duration.enter,sheet:ll.motion.duration.sheet,sheetOut:ll.motion.duration.sheetOut},easing:{out:ll.motion.easing.out,drawer:ll.motion.easing.drawer},pop:{duration:ll.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:Qo});function ul(e){return e[al]??dl}function pl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function hl(e,t){if(!pl(e)||!pl(t))return t===void 0?e:t;let n={...e};for(let[r,i]of Object.entries(t))i!==void 0&&(n[r]=hl(e[r],i));return n}function resolveTheme(e,t=dl){if(!e)return t;let n=hl(t,e),r=e.colors;if(r){let e=n.colors;for(let[t,n,i]of gl){let o=r[n];o!==void 0&&r[t]===void 0&&(e[t]=fl(o,i,e.surface)??e[t]??o)}}return ol(n)}var gl=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function fl(e,t,n){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[r(e),r(n)];if(!(!i||!o))return`#${i.map((e,n)=>Math.round(e*t+(o[n]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var ml=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),n=globalThis,r=n[t]??(n[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:t,children:n}){let r=Sl(),i=t===void 0||bl(t)?t:yl(t),o=e.useMemo(()=>bl(t)?vl(t):resolveTheme(t,r),[i,r]);return e.createElement(ml.Provider,{value:o},n)}function yl(e){return JSON.stringify(e,(e,t)=>pl(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function bl(e){return e!==void 0&&Object.isFrozen(e)&&wl.every(t=>t in e)}var wl=["name","colors","radius","space","type","motion","metrics"];function xl(e,t){if(e===void 0)return true;if(!pl(e))return t!==void 0;if(!pl(t))return false;for(let n of Object.keys(e))if(!xl(e[n],t[n]))return false;return true}var kl=/* @__PURE__ */new WeakMap;function vl(e){let t=kl.get(e);if(t)return t;if(xl(dl,e))return kl.set(e,e),e;let n=ul(e),r=hl(dl,n===dl?e:hl(n,e));r[al]=n;let i=ol(r);return kl.set(e,i),i}function Sl(){let t=e.useContext(ml);return t?vl(t):dl}var Tl=e=>Math.round(e*1e3)/1e3;function Cl(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function jl(e,t){let n=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!n)return e;let[r,i,o]=[n[1],n[2],n[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${i}, ${o}, ${t})`}function Il(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let n=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return n?[n[1],n[2],n[3]].map(Number):void 0}function Hl(e,t,n,r){let[i,o]=[Il(e),Il(n)];return!i||!o?r:`rgb(${i.map((e,n)=>Math.round(e*t+(o[n]??0)*(1-t))).join(", ")})`}function Pl(e,t){let n=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=n?.[1];if(!n||r===void 0||!(r in e.colors))return t;let i=e.colors[r];return n[2]===void 0?i:jl(i,Number(n[2]))}function Fl(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Pl(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function Rl(e,t){return t==="none"?void 0:Pl(e,t)}function Dl(e){let t=e.metrics.summary,n=(e,t)=>Tl(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Pl(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:n(t.termSize,t.termLineHeight),color:Pl(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:n(t.valueSize,t.valueLineHeight),color:Pl(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:n(t.totalTermSize,t.termLineHeight),color:Pl(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:n(t.totalSize,t.totalLineHeight),color:Pl(e,t.valueColor)},off:Fl(e,e.metrics.summary.off)}}function zl(e,t){let n=e.metrics.skeleton.widths;return`${n[t%n.length]}%`}function $l(e,t,n){return n!==void 0?n:e===void 0?void 0:`${e}-${t}`}function Ol(e){return e==="warn"||e==="danger"}var Bl=e=>e,_l=e=>"edge"in e&&"shadow"in e&&"fit"in e,Ll=e=>"deco"in e&&"face"in e&&"tabular"in e;function El(e){let t=/* @__PURE__ */new Map;for(let[n,r]of Object.entries(e))t.has(r)||t.set(r,n);return t}var Al,Wl=/* @__PURE__ */new WeakMap;function Vl(e,t,n){let r=e.get(n),i=r===void 0?void 0:t[r];return typeof i=="number"?i:n}function Ml(e){let t=dl;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function Nl(e,t){let n=dl;Al??(Al={space:El(Bl(n.space)),radius:El(Bl(n.radius)),size:El(Bl(n.type.size)),weight:El(Bl(n.type.weight))});let r=Al,i=t=>Vl(r.space,Bl(e.space),t),o=t=>Vl(r.radius,Bl(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:_l(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:Ll(t)?{...t,size:Vl(r.size,Bl(e.type.size),t.size),weight:Vl(r.weight,Bl(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function Ul(e,t){if(Ml(e))return t;let n=Wl.get(t);n||Wl.set(t,n=/* @__PURE__ */new WeakMap);let r=n.get(e);if(r)return r;let i=Nl(e,t);return n.set(e,i),i}var ql={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function Gl(e,t){let n=e.colors;switch(t){case"ink":return n.ink;case"text":return n.text;case"muted":return n.muted;case"danger":return n.alertDeep;case"inverse":return n.onInk;default:return}}function Kl(e,t,n,r){let i=Fl(e,e.metrics.text[t]),o=Gl(e,n);return{...i,...o?{color:o}:{},...r?{weight:e.type.weight[r]}:{}}}var Xl={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Yl(e,t){return e.type.variantTiers?.[t]??ql[t]}var Jl=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),n=globalThis,r=n[t]??(n[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function Ql(){return e.useContext(Jl)}function Zl(e,n){let r=Cl(n.weight,n.mono===true);return{fontFamily:n.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(n.weight)},fontSize:n.size,lineHeight:n.lineHeight,color:n.color,...n.tracking?{letterSpacing:n.tracking}:{},...n.upper?{textTransform:"uppercase"}:{},...n.deco?ea(n):{},...n.tabular?{fontVariant:["tabular-nums"]}:{},...n.wrap&&t.Platform.OS==="web"?{textWrap:n.wrap}:{}}}function ea(e){let n={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?n:{...n,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function ta(e,t){let[n=0,r=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=Rl(e,t.bg);return{paddingTop:n,paddingRight:r,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Pl(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...la(t.shadow)}}function na(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function ra(n){let[r,i]=e.useState(()=>n===null&&na());return e.useEffect(()=>{if(n!==null)return;let e=true,r=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof r=="function"){let n=r.call(t.AccessibilityInfo);n!=null&&typeof n.then=="function"&&n.then(t=>{e&&i(t===true)},()=>{})}let o=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{e=false,o?.remove?.()}},[n]),n??r}function ia(e){let t=ra(Ql());return e.motion.reduced||t}function oa(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function la(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function aa(e){return Math.round(e*100)/100}function sa(e,t){let n=Number(t.weight),r=t.letterSpacing??0;return{...Zl(e,{size:t.size,weight:n,lineHeight:aa(t.size*t.lineHeight),color:e.colors.text,tracking:r?aa(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function ca(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function da(e,t){let n=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Cl(n)]}:{fontWeight:String(n)}}function Text2({tier:n,variant:r,tone:i,weight:o,level:l,lineBreak:a,typeRole:s,...c}){let d=Sl();if(s){let r=d.type.scaleCaps[n??s.tier??"content"],i=a?ca(a):null;return e.createElement(t.Text,{...r>0?{maxFontSizeMultiplier:r}:{},...i,...c,style:[sa(d,s),c.style]})}let u=d.type.scaleCaps[n??(r?Yl(d,r):"content")],p=ca(a??(r?Xl[r]:"auto"));if(r===void 0&&i===void 0&&o===void 0&&l===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...c}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...c}:c);let h=Gl(d,i),g=r?Zl(d,Kl(d,r,i,o)):{...h?{color:h}:{},...o?da(d,o):{}},f=l===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":l}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...c,style:[g,c.style]})}var ua=24,pa=16,ha=.8,ga=e=>Math.round(e*pa);function fa(e,t,n,r,i,o){let l=e-n/2,a=t-r/2,s=Math.round(l),c=Math.round(a);return{position:"absolute",left:s,top:c,width:n,height:r,transform:[{translateX:l-s},{translateY:a-c},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/pa}]}}function ma(e,t,n){for(let r of e.strokes){let e=r.width*t,i=r.points,o=i.length/2,l=r.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,c=(i[a*2+1]??0)*t,d=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(o===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||l!==o-1||r.cap?e/2:0,y=(p+m-f)/2;n.push({paint:"backgroundColor",style:{...fa(s+h*y,c+g*y,ga(p+f+m),ga(e),h,g),borderTopLeftRadius:f>0?ga(e)/2:0,borderBottomLeftRadius:f>0?ga(e)/2:0,borderTopRightRadius:m>0?ga(e)/2:0,borderBottomRightRadius:m>0?ga(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function ya(e,t,n){for(let r of e.boxes){let e=(r.w+r.width)*t,i=(r.h+r.width)*t;n.push({paint:"borderColor",style:{...fa((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+i/2,ga(e),ga(i),1,0),borderWidth:ga(r.width*t),borderRadius:(r.radius+r.width/2)*t*pa,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function ba(e,t,n){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let n=e[t]??[0,0],r=e[(t+1)%3]??[0,0],l=Math.hypot(r[0]-n[0],r[1]-n[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],c=(a[0]-l[0])/o,d=(a[1]-l[1])/o,u=(s[0]-l[0])*c+(s[1]-l[1])*d,p=(s[0]-l[0])*-d+(s[1]-l[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ga(u),y=ga(o)-m,b=ga(h);n.push({paint:g?"borderBottomColor":"borderTopColor",style:{...fa(l[0]+c*(o/2)-d*f,l[1]+d*(o/2)+c*f,m+y,b,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:y,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:b}:{borderTopWidth:b}}})}for(let r of e.seams){let e=(r[0]??0)*t,i=(r[1]??0)*t,o=(r[2]??0)*t-e,l=(r[3]??0)*t-i,a=Math.hypot(o,l),s=ha*(r[4]??0),c=ha*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;n.push({paint:"backgroundColor",style:fa(e+o/a*u,i+l/a*u,ga(d),ga(ha),o/a,l/a)})}}var wa=/* @__PURE__ */new WeakMap;function xa(e,t){let n=wa.get(e);n===void 0&&(n=/* @__PURE__ */new Map,wa.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=[],o=t/ua;return ya(e,o,i),ma(e,o,i),ba(e,o,i),n.set(t,i),i}function Glyph({icon:e,size:r,color:i,label:o,testID:l,style:a}){let s=Sl(),c=r??s.metrics.icon.size,d=i??s.colors.ink;/* @__PURE__ */
36
- return n.jsx(t.View,{testID:l,pointerEvents:"none",style:[{width:c,height:c},a],...o?{accessible:true,accessibilityRole:"image",accessibilityLabel:o}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:xa(e,c).map((e,r)=>/* @__PURE__ */n.jsx(t.View,{style:[e.style,{[e.paint]:d}]},r))})}var ka=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function va(e){Object.assign(ka.icons,e)}function Sa(e){let t=ka.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!ka.warned.has(e)&&(ka.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let r=Sa(e);return r?/* @__PURE__ */n.jsx(Glyph,{icon:r,...t}):null}t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var Ta={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}},Ca={padding:[10,16],gap:10,copyGap:2,radius:28,bg:"ink",dangerBg:"alertDeep",icon:20,iconColor:"onInk",title:{size:15,weight:700,lineHeight:21.75,tracking:0,color:"onInk"},message:{size:15,weight:400,lineHeight:21.75,tracking:0,color:"onInk"}};t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function ja(e,t){return Zl(e,{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Pl(e,t.color),tracking:t.tracking,mono:t.mono===true,upper:t.upper===true})}t.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});function Ia(e,t){return Zl(e,Fl(e,t))}t.StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Ha={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},Pa={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]};var Fa={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},Ra={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var Da={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},za={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]};var $a={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]};t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});t.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});t.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:r,label:i,testID:o,style:l,block:a,color:s}){let c=Sl(),d=c.metrics.skeleton,u=s??d.color??c.colors.tintSage,p=i?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:i,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return a?/* @__PURE__ */n.jsx(SkeletonBox,{block:a,fill:u,testID:o,style:l,named:p}):r?/* @__PURE__ */n.jsx(t.View,{testID:o,style:[Oa(c,r,u),l],...p}):/* @__PURE__ */n.jsx(t.View,{testID:o,style:[{rowGap:d.gap,alignSelf:"stretch"},l],...p,children:Array.from({length:Math.max(1,e)},(e,r)=>/* @__PURE__ */n.jsx(t.View,{style:{height:d.lineHeight,width:zl(c,r),borderRadius:c.radius.pill,backgroundColor:u}},r))})}function SkeletonBox({block:r,fill:i,testID:o,style:l,named:a}){let s=Sl(),c=ia(s),d=Ta,u=d.shimmer,p=r.shimmer===true&&!c,[h,g]=e.useState(0),f=e.useRef(new t.Animated.Value(0)).current;e.useEffect(()=>{if(!p||h<=0)return;f.setValue(0);let e=t.Animated.loop(t.Animated.timing(f,{toValue:1,duration:u.duration,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:t.Platform.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,f,u.duration]);let m=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
37
- return n.jsx(t.View,{testID:o,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:r.width??"100%",height:r.height??d.block.height,borderRadius:r.radius??d.block.radius,borderCurve:"continuous",backgroundColor:i,overflow:"hidden"},l],...a,children:p&&h>0?/* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function Oa(e,t,n){let r=t.radius==="circle",i=t.width??(r?t.height:void 0),o=Ba(e,t,i);return{height:t.height,...i===void 0?{alignSelf:"stretch"}:{width:i},borderRadius:o,backgroundColor:n}}function Ba(e,t,n){let r=t.radius??"pill";return r==="none"?0:r==="circle"?(typeof n=="number"?Math.min(n,t.height):t.height)/2:e.radius[r]}function SummaryList({rows:e,total:r=false,trailingRows:i=[],loading:o=false,loadingLabel:l,variant:a="standard",note:s,grouped:c=true,lineBreak:d,testID:u,style:p}){let h=Sl(),g=Dl(h);if(o)/* @__PURE__ */
36
+ /* @__PURE__ */n.jsx(t.Animated.View,{style:m(p),children:o}),c.leaving===null?null:/* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:[{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:a},m(h)],children:c.leaving})]})}var Xo=/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({efDarkGreen:"#10462E",efWhite:"#FFFFFF",efBlack:"#000000",efDustyPink:"#FFC3BC",efBrightGreen:"#07C168",efYellow:"#F2C763",efDustyBlue:"#A8B9DA",efSkyBlue:"#4E98C9",efCharcoal:"#3D3D3D",efIconHoney:"#926F06",efIconLeaf:"#16864A",efIconSky:"#1E7AB7",efIconTeal:"#05827E",efIconCocoa:"#865B3F",efIconNavy:"#223E80",efIconBerry:"#B6407F",efIconAmber:"#B25E05",efIconMoss:"#5E7E1E",efIconSlate:"#5A6087",efIconRose:"#CA4463",efRedDeep:"#6D1D14",efRedBright:"#C03410",bg:"#FFFFFF",bgBrand:"#10462E",bgAccent:"#FFC3BC",bgAccentB2b:"#A8B9DA",bgWarm:"#F2C763",text:"#000000",textBrand:"#10462E",textOnBrand:"#FFFFFF",textCta:"#07C168",textMuted:"#6B6B6B",bgMist:"#F1F5F2",border:"#E4E4E4",borderStrong:"#3D3D3D",hi:"#DAF6E8",hiStrong:"#ABEACC",hiEdge:"#0B8A4E",now:"#0C844B",alert:"#C03410",alertDeep:"#6D1D14",btnPrimaryBg:"#10462E",btnPrimaryText:"#FFFFFF",btnSecondaryBg:"rgba(0, 0, 0, 0)",btnSecondaryText:"#10462E",btnSecondaryBorder:"#10462E",mixMint:"#7FE8AE",mixLegal:"#A9C4B5",mixPromptGreen:"#BFEFD8",mixPromptYellow:"#F7DC9E",mixRx:"#E0E6F2",mixShelf:"#F3F3F3",mixEar:"#F09FA3",efBone:"#FAF9F6",efTennisBall:"#DCEF5A",efFawn:"#E8CAA4",efPine:"#12301F",efPine70:"rgba(18, 48, 31, 0.72)",efLiver:"#7A4330",efMerle:"#AEB8C1",efNose:"#E9B6A6"}),font:/* @__PURE__ */Object.freeze({family:/* @__PURE__ */Object.freeze({base:'Azeret, "Helvetica Neue", Arial, sans-serif',mono:'"Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace'}),size:/* @__PURE__ */Object.freeze({xs:13,sm:15,md:17,lg:20,xl:24,"2xl":32,"3xl":40,"4xl":56}),lineHeight:/* @__PURE__ */Object.freeze({body:1.55,display:1.15}),weight:/* @__PURE__ */Object.freeze({regular:400,medium:500,bold:700})}),space:/* @__PURE__ */Object.freeze({1:4,2:8,3:12,4:16,5:24,6:32,7:48,8:64,9:96}),radius:/* @__PURE__ */Object.freeze({sm:6,md:10,lg:20,xl:28,pill:999}),shadow:/* @__PURE__ */Object.freeze({sm:/* @__PURE__ */Object.freeze({x:0,y:1,blur:2,spread:0,color:"rgba(16, 70, 46, 0.06)"}),md:/* @__PURE__ */Object.freeze({x:0,y:4,blur:16,spread:0,color:"rgba(16, 70, 46, 0.08)"})}),layout:/* @__PURE__ */Object.freeze({container:1200,containerNarrow:720}),motion:/* @__PURE__ */Object.freeze({easing:/* @__PURE__ */Object.freeze({out:/* @__PURE__ */Object.freeze([.23,1,.32,1]),inOut:/* @__PURE__ */Object.freeze([.77,0,.175,1]),drawer:/* @__PURE__ */Object.freeze([.32,.72,0,1]),expo:/* @__PURE__ */Object.freeze([.16,1,.3,1]),bark:/* @__PURE__ */Object.freeze([.34,1.56,.64,1])}),duration:/* @__PURE__ */Object.freeze({press:160,fade:200,enter:300,sheet:420,sheetOut:240,draw:900})}),web:/* @__PURE__ */Object.freeze({serif:'Azeret, "Helvetica Neue", Arial, sans-serif',sans:'Azeret, "Helvetica Neue", Arial, sans-serif',tSmall:14,max:1312}),role:/* @__PURE__ */Object.freeze({color:/* @__PURE__ */Object.freeze({ink:"#10462E",go:"#07C168",muted:"#6B6B6B",line:"#E4E4E4",pink50:"#FFE1DE",tintSage:"#E6ECE8",tintPink:"#FFEAE8",tintPinkSoft:"#FFF6F5",tintBlue:"#EAEEF6",tintYellow:"#FCF0D6",tintYellowEdge:"#F6D892",tintRed:"#FBF1EE",tintGo:"#DCF6EA",icoGrey:"#6B6B6B",icoSage:"#819E90",icoBlue:"#4E98C9",icoWarm:"#D6D0C2",icoAmber:"#B67B3F",amberText:"#A05E32",wxSun:"#F2C763",wxSunEdge:"#D5AD47",wxCloud:"#FFFFFF",wxCloudEdge:"#DEDEDE",wxCloudDark:"#EAEAEA",wxCloudDarkEdge:"#C5C5C5",wxRain:"#75AFD5",wxSnow:"#AFD1E7",wxMist:"#D4D4D4",cwShelf:"#FFFFFF",cwShelfDeep:"#F1F4F2",cwRx:"#E0E6F2",cwRxInk:"#5A6087",cwEdgeC:"#C6D3CD",nItch:"#CA4463",nJoints:"#5E7E1E",nItchC:"#FFC3BC",nJointsC:"#D8E0C9",lvlGood:"#77DDAC",lvlOk:"#F4CF7A",lvlHot:"#DC8F7C",lvlStorm:"#8DA4BB",mapLand:"#F5F5F5",mapEdge:"#EAEAEA",mapPark:"#D7F5E7",mapWater:"#D8E0EE",mapSand:"#FCF3DD"}),size:/* @__PURE__ */Object.freeze({max:1440,gutter:16,sideW:220,cardPad:16,barH:48,tabH:58,dock:64,side:16,stackGap:12})})});var Yo={shown:true,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},Jo={shown:true,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},Qo=e=>({...Yo,...e}),Zo=e=>({...Jo,...e}),el={button:{ink:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},go:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24},outline:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:400,lineHeight:1,iconSize:24},pink:{fill:true,minHeight:60,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:18,fontWeight:700,lineHeight:1,iconSize:24},danger:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1.55,iconSize:20},inkSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},goSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},outlineSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:400,lineHeight:1,iconSize:20},pinkSm:{fill:true,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20},row:{fill:false,minHeight:36,paddingX:14,gap:8,borderWidth:1.5,ring:false,fontSize:14,fontWeight:400,lineHeight:1,iconSize:17},outlineInSheetWeight:700,money:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"pink",fg:"ink",edgeColor:"ink"},moneySm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"pink",fg:"ink",edgeColor:"ink"},warn:{fill:false,minHeight:52,paddingX:24,gap:8,borderWidth:1.5,ring:false,fontSize:17,fontWeight:700,lineHeight:1,iconSize:24,bg:"none",fg:"alertDeep",edgeColor:"alert"},warnSm:{fill:false,minHeight:46,paddingX:16,gap:8,borderWidth:1.5,ring:false,fontSize:15,fontWeight:700,lineHeight:1,iconSize:20,bg:"none",fg:"alertDeep",edgeColor:"alert"},text:{fontSize:15,fontWeight:700,lineHeight:1.4,color:"ink",pressOpacity:.6}},pill:{minHeight:24,paddingX:10,fontSize:12,fontWeight:700,lineHeight:1,letterSpacing:.72,ring:{soon:1.25,overdue:1.25,clear:1.5,later:1.25,plain:1.5,new:1.5},plainRingAlpha:.2,dot:6,dotGap:6,allergyDot:{size:6,gap:6,color:"alert"},mono:true,upper:true,tones:{rx:{bg:"#E0E6F2",fg:"ink",ring:0,ringColor:"ink"},soon:{bg:"surface",fg:"ink",ring:1.25,ringColor:"tintYellowEdge"},overdue:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},clear:{bg:"surface",fg:"go",ring:1.5,ringColor:"go"},stable:{bg:"tintGo",fg:"ink",ring:0,ringColor:"ink"},later:{bg:"surface",fg:"muted",ring:1.25,ringColor:"line"},plain:{bg:"surface",fg:"ink",ring:1.5,ringColor:"ink/0.2"},new:{bg:"surface",fg:"ink",ring:1.5,ringColor:"go"},pink:{bg:"tintPink",fg:"ink",ring:0,ringColor:"ink"},watch:{bg:"#F9E6B9",fg:"ink",ring:0,ringColor:"ink"},high:{bg:"surface",fg:"alert",ring:1.25,ringColor:"alert"},allergy:{bg:"surface",fg:"alertDeep",ring:1.25,ringColor:"alert"}}},chip:{minHeight:42,paddingX:16,gap:8,borderWidth:1,fontSize:15,fontWeight:500,lineHeight:1.3},card:{padding:16,radius:20,borderWidth:1,titleSize:18,titleWeight:700,titleLineHeight:1.25,titleTracking:-.36,titleGap:12,leadSize:15,leadLineHeight:1.5,leadGap:12,headGapX:16,headGapY:8,headGap:12,bodySize:17,bodyLineHeight:1.55,ghost:{borderStyle:"dashed",borderColor:"#B9C9C2"}},sectionHeader:{gapX:12,gapY:8,marginTop:8},kicker:{fontSize:12,fontWeight:700,lineHeight:1.55,letterSpacing:.96,gap:8},quantityStepper:{borderWidth:1,borderColor:"line",ring:false,button:40,icon:18,valueMinWidth:28,offColor:"line",offOpacity:1,valueSize:17,valueWeight:700,valueLineHeight:1.55},tabs:{minHeight:44,gap:6,fontSize:15,fontWeight:500,currentWeight:700,lineHeight:1.55,indicator:3,hairline:1,dot:7},sheet:{radius:28,grabHeight:20,grabBarWidth:36,grabBarHeight:5,grabBarRadius:3,headPaddingTop:4,headPaddingX:16,headPaddingBottom:12,headGap:12,titlesGap:2,titleSize:18,close:36,closeIcon:20,bodyGap:12,bodyPaddingX:16,bodyPaddingBottom:24,actsGap:12,actsMarginTop:4},empty:{gap:8,titleSize:22,titleWeight:500,titleLineHeight:1.2,titleTracking:-.33,leadSize:15,leadLineHeight:1.5,actsGap:12,actsMarginTop:12,buttonMinWidth:200,linkMinHeight:44,linkPaddingX:4,linkSize:15,linkWeight:700,linkUnderlineOffset:3},skeleton:{gap:10,lineHeight:12,widths:[100,82,64]},summary:{paddingX:24,paddingY:0,radius:20,borderWidth:1,background:"surface",shadow:{color:"",x:0,y:0,blur:0,spread:0},rowDivider:1,rowMinHeight:0,rowCenter:false,rowPaddingY:14,termColor:"muted",valueColor:"ink",tabular:false,totalRowMinHeight:0,totalTermSize:15,totalTermWeight:400,totalTermColor:"muted",totalWeight:700,rowGapX:16,rowGapY:2,termSize:15,termLineHeight:1.55,valueSize:15,valueWeight:700,valueLineHeight:1.4,totalSize:20,totalLineHeight:1.4,off:{shown:true,size:15,weight:700,lineHeight:21,color:"go",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},icon:{size:24},timeline:{row:{shown:true,w:361,h:69.281,padding:[0,0,24,0],marginTop:0,marginBottom:0,gap:[16,16],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},done:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"ink",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"surface",fit:"cover",x:0,y:0,dy:0},now:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},next:{shown:true,w:28,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"surface",edge:{width:2,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},nowInner:{size:10,color:"go"},check:{shown:true,w:16,h:16,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},lineDoneDone:{x:13,top:30,bottom:2,width:2,color:"ink"},lineDoneNow:{x:13,top:30,bottom:2,width:2,color:"ink"},lineNowNext:{x:13,top:30,bottom:2,width:2,color:"line"},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},head:{shown:true,w:317,h:27,padding:[3,0,0,0],marginTop:0,marginBottom:0,gap:[8,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},nextTitle:{shown:true,size:17,weight:700,lineHeight:22.1,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:3},when:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},thumbnail:{xs:{frame:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},img:{shown:false,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1,color:"line",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},sm:{frame:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:48,h:48,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:64,h:64,padding:[8,8,8,8],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[14,14],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},md:{frame:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:156,h:156,padding:[10,10,10,10],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:156,h:156,padding:[0,0,0,0],marginTop:0,marginBottom:6,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F5F5F5",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false},lg:{frame:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},img:{shown:true,w:174.5,h:174.5,padding:[14,14,18,14],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"contain",x:0,y:0,dy:0},empty:{shown:true,w:174.5,h:174.5,padding:[0,0,0,0],marginTop:0,marginBottom:8,gap:[0,0],minHeight:0,radius:[20,20],bg:"#F3F3F3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#1E7AB7",fit:"cover",x:0,y:0,dy:0},top:false}},text:{display:{shown:true,size:40,weight:500,lineHeight:39.2,color:"ink",tracking:-1.2,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},headline:{shown:true,size:30,weight:500,lineHeight:33,color:"ink",tracking:-.45,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:22,weight:500,lineHeight:26.4,color:"ink",tracking:-.33,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},heading:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},lead:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},meta:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"mono",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},caption:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},overline:{shown:true,size:12,weight:700,lineHeight:16.8,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},kicker:{shown:true,size:12,weight:700,lineHeight:18.6,color:"muted",tracking:.96,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},field:{gap:6,label:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},input:{shown:true,w:361,h:52,padding:[0,16,0,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},focusEdge:"ink",errorEdge:"alert",value:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:1},valueInset:[2,1],icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},area:{shown:true,w:361,h:158,padding:[12,16,12,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:52,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},areaValue:{shown:true,size:17,weight:400,lineHeight:25.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:2},areaValueMinHeight:132,areaInset:[2,2],hint:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},error:{shown:true,size:15,weight:400,lineHeight:21.75,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},placeholder:"muted"},checkbox:{row:{shown:true,w:361,h:45,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},labelX:34,box:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[6,6],bg:"ink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},tick:{w:5,h:10,stroke:2,color:"surface",rotate:45,dy:-1},label:{shown:true,size:15,weight:400,lineHeight:22.5,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},boxed:{shown:true,w:361,h:50.5,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"bgMist",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0}},choice:{row:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},selected:{shown:true,w:361,h:56.344,padding:[14,16,14,16],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"pink",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},radio:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:1.5,color:"icoSage",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},radioOn:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[10,10],bg:"surface",edge:{width:6,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},textX:34,title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},strut:26.35,meta:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0},end:{shown:true,size:13,weight:400,lineHeight:20.15,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},group:{gap:8,legend:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},legendPaddingX:2,legendGap:0}},switch:{track:{shown:true,w:48,h:28,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"#D0D6D3",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},on:"ink",thumb:{size:22,inset:3,travel:20,color:"surface",shadow:{color:"rgba(16, 70, 46, 0.06)",x:0,y:1,blur:2,spread:0}}},iconButton:{bare:{shown:true,w:44,h:44,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[22,22],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},bareIcon:22,offColor:"line",ring:{shown:true,w:36,h:36,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[18,18],bg:"surface",edge:{width:1.5,color:"ink",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},ringIcon:18,ringPressed:"tintSage",ringPressScale:.94},link:{text:{shown:true,size:17,weight:400,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},danger:{shown:true,size:15,weight:700,lineHeight:23.25,color:"alert",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},inline:{shown:true,size:17,weight:400,lineHeight:26.35,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},lists:{rows:{row:{shown:true,w:327,h:94.781,padding:[16,0,16,0],marginTop:0,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:1,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.85,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:2,paddingTop:0}},tiles:{list:{shown:true,w:343,h:175.813,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},outdent:8,row:{shown:true,w:343,h:62.281,padding:[10,8,10,8],marginTop:0,marginBottom:0,gap:[12,12],minHeight:0,radius:[10,10],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},leading:22,leadingFace:40,icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"muted",fit:"cover",x:0,y:0,dy:0},text:{shown:true,w:261,h:42.281,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[2,2],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},subtitle:{shown:true,size:13,weight:400,lineHeight:18.2,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},pressed:"#EDF2EF",alert:{bg:"tintRed",icon:"alert",title:"alertDeep",subtitle:"alert"}},end:{text:{shown:true,size:15,weight:400,lineHeight:23.25,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},gap:8,chevron:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"#819D90",fit:"cover",x:0,y:0,dy:0}},section:{title:{shown:true,size:18,weight:700,lineHeight:22.5,color:"ink",tracking:-.36,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},titleGap:12,head:{shown:true,w:361,h:22.5,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[12,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},note:{shown:true,size:13,weight:400,lineHeight:19.5,color:"muted",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:12,paddingTop:0}},avatar:{sizes:{xs:20,sm:36,md:48,lg:64,xl:128},face:40,bg:"surface",edge:{width:1,color:"line",ring:true},initials:{shown:true,size:15,weight:700,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},initialsXs:{shown:true,size:9,weight:700,lineHeight:13.95,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tints:{default:"tintPink",pink:"#FFCFC9",blue:"#C2CEE5",yellow:"#F6D78F",sage:"#C6D3CD"},ring:{width:2,offset:2,color:"go"},ringXl:{width:3,offset:4,color:"go"},dot:{size:12,edge:2,edgeColor:"surface"}},stack:{size:28,overlap:-8,initialsSize:12,halo:{width:2,color:"surface"}},banner:{box:{shown:true,w:361,h:155.391,padding:[16,16,16,16],marginTop:0,marginBottom:0,gap:[12,4],minHeight:0,radius:[20,20],bg:"#F1F5F2",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},icon:{shown:true,w:22,h:22,padding:[0,0,0,0],marginTop:1,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},iconRows:3,kicker:{shown:true,size:12,weight:700,lineHeight:16.8,color:"#5B5B5B",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},title:{shown:true,size:17,weight:700,lineHeight:22.1,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},text:{shown:true,size:15,weight:400,lineHeight:21.75,color:"text",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:295,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},tones:{info:{bg:"#F1F5F2",icon:"ink"},success:{bg:"tintGo",icon:"ink"},warn:{bg:"#FCF0D6",icon:"#926F06"},danger:{bg:"tintRed",icon:"alert"}}},toast:{box:{shown:true,w:200.281,h:40.25,padding:[10,16,10,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"surface",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:15,weight:400,lineHeight:20.25,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:10},inset:16,rise:8,fade:200,hold:2600},spinner:{size:16,border:2,turn:700,openSide:true,reducedOpacity:.5},offbar:{box:{shown:true,w:361,h:56,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[10,10],minHeight:44,radius:[0,0],bg:"#FCF0D6",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:48,dy:0},text:{shown:true,size:15,weight:500,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},icon:{shown:true,w:20,h:20,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},action:{shown:true,w:69.859,h:44,padding:[0,2,0,2],marginTop:0,marginBottom:0,gap:[6,6],minHeight:44,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},actionText:{shown:true,size:15,weight:700,lineHeight:19.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"underline",decoOffset:3,decoThickness:0,marginTop:0,paddingTop:0},online:{bg:"ink",color:"onInk"},fade:200},progress:{track:{shown:true,w:361,h:4,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[999,999],bg:"line",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},fill:"go",move:300},divider:{width:1,color:"line",label:{shown:true,size:12,weight:400,lineHeight:18.6,color:"muted",tracking:.72,face:"mono",upper:true,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},labelGap:12,labelLine:{width:1,color:"line"}},errorInline:{text:{shown:true,size:15,weight:400,lineHeight:21,color:"alertDeep",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},acts:{shown:true,w:361,h:21,padding:[0,0,0,0],marginTop:8,marginBottom:0,gap:[16,8],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"text",fit:"cover",x:0,y:0,dy:0},link:{shown:true,size:15,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"pretty",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0}},linkPressedOpacity:.6},variants:{drawer:{frame:{shown:true,w:393,h:226.594,padding:[10,20,40,20],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[28,0],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:293.406,dy:0},maxHeight:.8,grab:{shown:true,w:40,h:5,padding:[0,0,0,0],marginTop:0,marginBottom:10,gap:[0,0],minHeight:0,radius:[2.5,2.5],bg:"#DAD7D1",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},top:{shown:true,w:353,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},kicker:{shown:true,size:11,weight:400,lineHeight:16.5,color:"muted",tracking:.88,face:"mono",upper:true,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},close:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},closeEnd:-8,closeIcon:22,title:{shown:true,size:24,weight:800,lineHeight:27.6,color:"ink",tracking:-.24,face:"serif",upper:false,wrap:"balance",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},body:{shown:true,w:353,h:82,padding:[0,0,0,0],marginTop:12,marginBottom:0,gap:[10,10],minHeight:0,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"text",fit:"cover",x:0,y:0,dy:0},text:{shown:true,size:16,weight:400,lineHeight:24,color:"text",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},scrim:"ink/0.38",motion:{enterMs:320,enterEasing:[.32,.72,0,1],exitMs:220,exitEasing:[.23,1,.32,1],scrimEnterMs:240,scrimExitMs:200,scrimEasing:[.25,.1,.25,1]}},button:{ink:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:0,ring:false,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},outline:{fill:false,minHeight:48,paddingX:22,gap:8,borderWidth:1.5,ring:true,fontSize:16,fontWeight:700,lineHeight:1.5,iconSize:20},sm:{fill:false,minHeight:40,paddingX:16,gap:8,borderWidth:1.5,ring:true,fontSize:15,fontWeight:700,lineHeight:1.5,iconSize:20},lg:{fill:false,minHeight:56,paddingX:28,gap:8,borderWidth:0,ring:false,fontSize:17,fontWeight:700,lineHeight:1.5,iconSize:20},disabledOpacity:.32,press:.97,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms ease"},segmented:{track:{shown:true,w:361,h:44,padding:[4,4,4,4],marginTop:0,marginBottom:0,gap:[4,4],minHeight:0,radius:[22,22],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},option:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},label:{shown:true,size:14,weight:700,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},chosen:{shown:true,w:115,h:36,padding:[0,6,0,6],marginTop:0,marginBottom:0,gap:[0,0],minHeight:36,radius:[18,18],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:0,y:0,dy:0},chosenLabel:{shown:true,size:14,weight:700,lineHeight:21,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},press:.96,transition:"background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},stepper:{track:{shown:true,w:110,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"surface",edge:{width:1.5,color:"#DAD7D1",ring:true},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},button:{shown:true,w:40,h:40,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[20,20],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},icon:16,value:{shown:true,size:15.5,weight:800,lineHeight:23.25,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},valueWidth:30,disabledOpacity:.3,press:.9,transition:"transform 160ms cubic-bezier(0.23, 1, 0.32, 1)"},summary:{box:{shown:true,w:361,h:144,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"surface",edge:{width:0,color:"line",ring:false},shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0},row:{shown:true,w:329,h:34,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:34,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},term:{shown:true,size:15,weight:400,lineHeight:22.5,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},value:{shown:true,size:15,weight:400,lineHeight:22.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},totalRow:{shown:true,w:329,h:42,padding:[0,0,0,0],marginTop:0,marginBottom:0,gap:[12,12],minHeight:42,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},totalTerm:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},total:{shown:true,size:17,weight:800,lineHeight:25.5,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renewRow:{shown:true,w:329,h:28,padding:[0,0,0,0],marginTop:-6,marginBottom:0,gap:[12,12],minHeight:28,radius:[0,0],bg:"none",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:true,color:"ink",fit:"cover",x:0,y:0,dy:0},renewTerm:{shown:true,size:14,weight:400,lineHeight:21,color:"#4A4845",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},renew:{shown:true,size:14,weight:400,lineHeight:21,color:"ink",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:true,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:0},inset:{shown:true,w:361,h:88,padding:[6,16,6,16],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"bg",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"ink",fit:"cover",x:0,y:0,dy:0}},toast:{box:{shown:true,w:361,h:64.594,padding:[12,15,12,15],marginTop:0,marginBottom:0,gap:[0,0],minHeight:0,radius:[16,16],bg:"ink",edge:{width:0,color:"line",ring:false},shadow:{color:"",x:0,y:0,blur:0,spread:0},center:false,color:"onInk",fit:"cover",x:16,y:62,dy:0},text:{shown:true,size:14.5,weight:400,lineHeight:20.3,color:"onInk",tracking:0,face:"sans",upper:false,wrap:"auto",tabular:false,deco:"none",decoOffset:0,decoThickness:0,marginTop:0,paddingTop:12},motion:{enterMs:220,exitMs:160,easing:[.23,1,.32,1],rise:-8}},focus:{width:2,offset:2,color:"ink"}},press:{button:.97,iconButton:.94,card:.98},colors:{grab:"#C9C9C9",scrim:"rgba(0, 0, 0, 0.32)",watch:"#F9E6B9",planInk:"#262523",planOnInk:"#FFFFFF",planAccent:"#FFCE34",planLink:"#00707C",planAccentWash:"#FFF7DC",planAccentChip:"#FFE7A1",planLinkWash:"#E0FDFF",planLinkChip:"#C8F4F8"}};var tl={card:/* @__PURE__ */Qo({w:325,h:125.25,padding:[14,16,14,16],radius:[0,20],bg:"surface",shadow:{color:"rgba(0, 0, 0, 0.06)",x:0,y:2,blur:3,spread:-1}}),kicker:/* @__PURE__ */Qo({w:293,h:24,gap:[8,8],center:true}),kickerText:/* @__PURE__ */Zo({size:15,weight:700,lineHeight:23.25}),source:/* @__PURE__ */Qo({w:116.719,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#DAF6E8",center:true,color:"ink"}),sourceText:/* @__PURE__ */Zo({size:12,weight:700,lineHeight:18.6,color:"ink"}),title:/* @__PURE__ */Zo({shown:false,size:15,weight:700,lineHeight:23.25}),signal:/* @__PURE__ */Qo({w:293,h:65.25,marginTop:8,gap:[9,9],color:"#4D4D4D"}),signalText:/* @__PURE__ */Zo({size:15,weight:400,lineHeight:21.75,color:"#4D4D4D"}),signalLead:/* @__PURE__ */Zo({size:15,weight:700,lineHeight:21.75}),dot:/* @__PURE__ */Qo({w:9,h:9,radius:[4.5,4.5],bg:"alert",color:"#4D4D4D",dy:-1}),score:/* @__PURE__ */Qo({w:293,h:99.859,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[10,10],bg:"#FCF0D6",center:true}),scoreLabel:/* @__PURE__ */Zo({size:14,weight:600,lineHeight:18.9,color:"#4D4D4D"}),scoreTag:/* @__PURE__ */Qo({w:63.125,h:20.188,padding:[2,6,2,6],marginTop:3,radius:[6,6],bg:"surface"}),scoreTagText:/* @__PURE__ */Zo({size:12,weight:600,lineHeight:16.2,tracking:.72,face:"mono",upper:true,marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Qo({w:106.109,h:51.141,gap:[6,0],center:true}),scoreWas:/* @__PURE__ */Zo({size:17,weight:700,lineHeight:26.35,color:"muted",deco:"strike",decoThickness:1.5}),scoreArrow:/* @__PURE__ */Qo({w:16,h:16,color:"muted"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Zo({size:28,weight:700,lineHeight:28,tracking:-.84,tabular:true}),scoreOf:/* @__PURE__ */Zo({size:15,weight:700,lineHeight:15,color:"#4D4D4D",tabular:true}),scoreSince:/* @__PURE__ */Zo({size:13,weight:700,lineHeight:20.15,color:"ink",marginTop:3})},nl={card:/* @__PURE__ */Qo({w:329,h:380.172,padding:[16,16,16,16],marginTop:14,radius:[22,22],bg:"surface",shadow:{color:"rgba(38, 37, 35, 0.06)",x:0,y:1,blur:3,spread:0},color:"#262523"}),kicker:/* @__PURE__ */Qo({w:297,h:24,gap:[8,8],center:true,color:"#262523"}),kickerText:/* @__PURE__ */Zo({size:15,weight:800,lineHeight:22.5,color:"#262523"}),source:/* @__PURE__ */Qo({w:83.375,h:24,padding:[0,9,0,9],radius:[999,999],bg:"#F2F1EE",center:true,color:"#4A4845"}),sourceText:/* @__PURE__ */Zo({size:12,weight:700,lineHeight:18,color:"#4A4845"}),title:/* @__PURE__ */Zo({size:19,weight:800,lineHeight:23.18,color:"#262523",marginTop:12}),signal:/* @__PURE__ */Qo({w:297,h:65.25,marginTop:6,gap:[9,9],color:"#4A4845"}),signalText:/* @__PURE__ */Zo({size:15,weight:400,lineHeight:21.75,color:"#4A4845"}),signalLead:/* @__PURE__ */Zo({size:15,weight:800,lineHeight:21.75,color:"#262523"}),dot:/* @__PURE__ */Qo({w:9,h:9,radius:[4.5,4.5],bg:"#E5372B",color:"#4A4845",dy:-1}),score:/* @__PURE__ */Qo({w:297,h:69.75,padding:[10,14,10,14],marginTop:12,gap:[12,12],radius:[14,14],bg:"planAccentWash",center:true,color:"#262523"}),scoreLabel:/* @__PURE__ */Zo({size:13.5,weight:600,lineHeight:18.225,color:"#4A4845",wrap:"balance"}),scoreTag:/* @__PURE__ */Qo({w:51.609,h:17.5,padding:[2,6,2,6],marginTop:3,radius:[5,5],bg:"surface",color:"#262523"}),scoreTagText:/* @__PURE__ */Zo({size:10,weight:600,lineHeight:13.5,color:"#262523",tracking:.6,face:"mono",upper:true,wrap:"balance",marginTop:3,paddingTop:2}),scoreNums:/* @__PURE__ */Qo({w:94.75,h:49.75,gap:[6,0],center:true,color:"#262523"}),scoreWas:/* @__PURE__ */Zo({size:17,weight:700,lineHeight:25.5,color:"#6B6863",deco:"strike"}),scoreArrow:/* @__PURE__ */Qo({w:16,h:16,color:"#6B6863"}),scoreArrowFlip:true,scoreNow:/* @__PURE__ */Zo({size:28,weight:800,lineHeight:28,color:"#262523"}),scoreOf:/* @__PURE__ */Zo({size:13,weight:800,lineHeight:13,color:"muted"}),scoreSince:/* @__PURE__ */Zo({size:12.5,weight:700,lineHeight:18.75,color:"planLink",marginTop:3}),sources:/* @__PURE__ */Qo({w:131.375,h:24,gap:[4,4],color:"#262523"}),sourceDna:/* @__PURE__ */Qo({w:44,h:24,padding:[0,9,0,9],radius:[999,999],bg:"planLinkWash",center:true,color:"planLink"}),sourceDnaText:/* @__PURE__ */Zo({size:12,weight:700,lineHeight:18,color:"planLink"}),dotWatch:/* @__PURE__ */Qo({w:9,h:9,radius:[4.5,4.5],bg:"#E5A000",color:"#4A4845",dy:-1}),dotClear:/* @__PURE__ */Qo({w:9,h:9,radius:[4.5,4.5],bg:"#5FA82B",color:"#4A4845",dy:-1}),scoreLabelMax:135,says:/* @__PURE__ */Qo({w:297,h:52,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysImg:/* @__PURE__ */Qo({w:32,h:32,radius:[16,16],color:"#262523"}),saysText:/* @__PURE__ */Zo({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845"}),saysBy:/* @__PURE__ */Zo({size:14.5,weight:800,lineHeight:20.3,color:"#262523"}),saysByGap:2,saysTag:/* @__PURE__ */Qo({w:51.609,h:15,padding:[2,6,2,6],radius:[5,5],bg:"surface",color:"#262523"}),saysTagText:/* @__PURE__ */Zo({size:10,weight:400,lineHeight:14,color:"#262523",tracking:.6,face:"mono",upper:true,paddingTop:2}),saysBare:/* @__PURE__ */Qo({w:297,h:81,padding:[10,12,10,12],marginTop:12,gap:[10,10],radius:[14,14],bg:"#F8F7F4",color:"#262523"}),saysKicker:/* @__PURE__ */Zo({size:17,weight:400,lineHeight:25.5,color:"#262523"}),saysSerif:/* @__PURE__ */Zo({size:17,weight:800,lineHeight:25.5,color:"#262523",tracking:-.17,wrap:"balance"}),jump:/* @__PURE__ */Qo({w:297,h:60,padding:[8,14,8,8],marginTop:12,gap:[12,12],radius:[14,14],bg:"planInk",center:true,color:"planOnInk"}),jumpImg:/* @__PURE__ */Qo({w:44,h:44,radius:[10,10],bg:"surface",color:"surface"}),jumpKicker:/* @__PURE__ */Zo({size:13,weight:800,lineHeight:19.5,color:"planAccent"}),jumpTitle:/* @__PURE__ */Zo({size:15,weight:800,lineHeight:18.75,color:"planOnInk"}),jumpGo:/* @__PURE__ */Zo({size:14,weight:800,lineHeight:21,color:"planOnInk"}),jumpPressScale:.98,more:/* @__PURE__ */Qo({w:87.547,h:36,marginTop:6,marginBottom:-4,gap:[4,4],minHeight:36,center:true,color:"planLink"}),moreText:/* @__PURE__ */Zo({size:15,weight:800,lineHeight:22.5,color:"planLink"}),moreIcon:/* @__PURE__ */Qo({w:16,h:16,color:"planLink"}),moreInset:16,moreTurn:{closed:90,open:-90},rep:/* @__PURE__ */Qo({w:297,h:48.5,padding:[14,14,12,14],marginTop:10,radius:[16,16],bg:"#F8F7F4",color:"#262523"})},rl={card:/* @__PURE__ */Qo({w:201.5,h:275.031,padding:[8,10,10,10],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"tintBlue",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Qo({w:181.5,h:113.438,radius:[10,10],bg:"#F3F3F3"}),n:/* @__PURE__ */Qo({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Zo({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Zo({size:16,weight:700,lineHeight:20,marginTop:10}),text:/* @__PURE__ */Zo({size:15,weight:400,lineHeight:21,color:"#4D4D4D",marginTop:4}),foot:/* @__PURE__ */Qo({w:181.5,h:26.594,padding:[8,0,0,0],gap:[4,4],center:true,color:"ink"}),footText:/* @__PURE__ */Zo({size:12,weight:400,lineHeight:18.6,color:"ink",tracking:.48,face:"mono",upper:true,paddingTop:8}),footArrow:/* @__PURE__ */Qo({w:14,h:14,color:"ink"}),footArrowFlip:true,pressScale:.98,bare:/* @__PURE__ */Qo({w:181.5,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Qo({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Qo({w:22,h:22})},il={card:/* @__PURE__ */Qo({w:221,h:152,padding:[8,8,12,8],radius:[20,20],bg:"#FCF0D6"}),tones:{y:"#FCF0D6",c:"#EEDCC8",g:"tintGo",r:"tintPink"},img:/* @__PURE__ */Qo({w:205,h:102.5,radius:[10,10],bg:"#F3F3F3"}),imgAspect:2,n:/* @__PURE__ */Qo({w:28,h:28,radius:[14,14],bg:"surface",center:true,x:8,y:8}),nText:/* @__PURE__ */Zo({size:14,weight:700,lineHeight:14}),title:/* @__PURE__ */Zo({size:15,weight:700,lineHeight:19.5,marginTop:10}),titleInset:4,pressScale:.98,bare:/* @__PURE__ */Qo({w:205,h:42,padding:[2,0,0,0],center:true}),thumb:/* @__PURE__ */Qo({w:40,h:40,radius:[10,10],bg:"surface",center:true}),thumbIcon:/* @__PURE__ */Qo({w:22,h:22,color:"ink"})},ol={card:/* @__PURE__ */Qo({w:226,h:172.047,gap:[10,10]}),img:/* @__PURE__ */Qo({w:226,h:141.25,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Zo({size:16,weight:700,lineHeight:20.8,wrap:"balance"}),coverRadius:10,row:{from:440,card:/* @__PURE__ */Qo({w:400,h:80,padding:[6,0,6,0],gap:[10,10],minHeight:80,center:true}),img:/* @__PURE__ */Qo({w:64,h:64,radius:[10,10]}),arrowColumn:18,arrow:/* @__PURE__ */Qo({w:18,h:18,color:"ink"}),arrowTurn:180},phone:{upTo:639,card:/* @__PURE__ */Qo({w:216,h:162.5,gap:[8,8]}),img:/* @__PURE__ */Qo({w:216,h:135,radius:[14,14]}),imgAspect:1.6,title:/* @__PURE__ */Zo({size:15,weight:700,lineHeight:19.5,wrap:"balance"}),smallUpTo:359,smallW:208},mark:{tile:/* @__PURE__ */Qo({w:226,h:141.25,radius:[14,14],bg:"#F5F5F5",center:true,color:"ink"}),icon:{share:.36,min:16,max:40,color:"ink"}},ring:{width:2,offset:2,color:"text"},hoverOffset:3},ll={card:/* @__PURE__ */Qo({w:225.406,h:182.844,padding:[14,14,12,14],radius:[18,18],bg:"planAccentChip",color:"#262523"}),tones:{y:"planAccentChip",c:"planLinkChip",g:"#DDEFC4",r:"#FFD8D6"},top:/* @__PURE__ */Qo({w:197.406,h:30,center:true,color:"#262523"}),nText:/* @__PURE__ */Zo({size:30,weight:900,lineHeight:30,color:"#262523"}),icon:/* @__PURE__ */Qo({w:26,h:26,color:"#262523"}),title:/* @__PURE__ */Zo({size:17,weight:800,lineHeight:21.25,color:"#262523",marginTop:14}),text:/* @__PURE__ */Zo({size:14.5,weight:400,lineHeight:20.3,color:"#4A4845",marginTop:4}),foot:/* @__PURE__ */Qo({w:197.406,h:25.75,padding:[10,0,0,0],color:"planLink"}),footText:/* @__PURE__ */Zo({size:10.5,weight:400,lineHeight:15.75,color:"planLink",tracking:.42,face:"mono",upper:true,paddingTop:10})};function al(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e))for(let t of Object.values(e))al(t);return e}var sl=Xo,cl=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#preset@v1");function dl(e){return Object.defineProperty(e,cl,{value:e,enumerable:true}),al(e)}var ul={content:0,heading:2,control:1.8,compact:1.5,badge:1.3},pl=dl({name:"everfur",colors:{bg:sl.color.bg,surface:sl.color.efWhite,text:sl.color.text,ink:sl.role.color.ink,onInk:sl.color.efWhite,muted:sl.role.color.muted,line:sl.role.color.line,go:sl.role.color.go,onGo:sl.role.color.ink,pink:sl.color.efDustyPink,onPink:sl.role.color.ink,alert:sl.color.alert,alertDeep:sl.color.alertDeep,icoSage:sl.role.color.icoSage,bgMist:sl.color.bgMist,tintSage:sl.role.color.tintSage,tintBlue:sl.role.color.tintBlue,tintGo:sl.role.color.tintGo,tintPink:sl.role.color.tintPink,tintYellowEdge:sl.role.color.tintYellowEdge,tintWatch:el.colors.watch,tintRed:sl.role.color.tintRed,scrim:el.colors.scrim,grab:el.colors.grab,focus:sl.role.color.ink,planInk:el.colors.planInk,planOnInk:el.colors.planOnInk,planAccent:el.colors.planAccent,planLink:el.colors.planLink,planAccentWash:el.colors.planAccentWash,planAccentChip:el.colors.planAccentChip,planLinkWash:el.colors.planLinkWash,planLinkChip:el.colors.planLinkChip},radius:{...sl.radius},space:{...sl.space},type:{family:sl.font.family.base,mono:sl.font.family.mono,faces:{regular:"Azeret-Regular",medium:"Azeret-Medium",bold:"Azeret-Bold",mono:"AzeretMono-Regular",monoBold:"AzeretMono-Bold"},namedFaces:true,size:{xs:sl.font.size.xs,sm:sl.font.size.sm,md:sl.font.size.md,lg:sl.font.size.lg,xl:sl.font.size.xl},weight:{...sl.font.weight},lineHeight:{...sl.font.lineHeight},scaleCaps:ul},motion:{duration:{press:sl.motion.duration.press,fade:sl.motion.duration.fade,enter:sl.motion.duration.enter,sheet:sl.motion.duration.sheet,sheetOut:sl.motion.duration.sheetOut},easing:{out:sl.motion.easing.out,drawer:sl.motion.easing.drawer},pop:{duration:sl.motion.duration.enter,from:.95,peakAt:.55,amplitude:.035,switchAmplitude:.06},reduced:false},metrics:el});function hl(e){return e[cl]??pl}function gl(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function fl(e,t){if(!gl(e)||!gl(t))return t===void 0?e:t;let n={...e};for(let[r,i]of Object.entries(t))i!==void 0&&(n[r]=fl(e[r],i));return n}function resolveTheme(e,t=pl){if(!e)return t;let n=fl(t,e),r=e.colors;if(r){let e=n.colors;for(let[t,n,i]of ml){let o=r[n];o!==void 0&&r[t]===void 0&&(e[t]=yl(o,i,e.surface)??e[t]??o)}}return al(n)}var ml=[["planAccentWash","planAccent",.17],["planAccentChip","planAccent",.47],["planLinkWash","planLink",.12],["planLinkChip","planLink",.2]];function yl(e,t,n){let r=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e??"");return t?[t[1],t[2],t[3]].map(e=>parseInt(e,16)):void 0},[i,o]=[r(e),r(n)];if(!(!i||!o))return`#${i.map((e,n)=>Math.round(e*t+(o[n]??0)*(1-t)).toString(16).padStart(2,"0")).join("").toUpperCase()}`}var bl=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-core#ThemeContext@v1"),n=globalThis,r=n[t]??(n[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurThemeContext"),r})();function ThemeProvider({theme:t,children:n}){let r=Cl(),i=t===void 0||xl(t)?t:wl(t),o=e.useMemo(()=>xl(t)?Tl(t):resolveTheme(t,r),[i,r]);return e.createElement(bl.Provider,{value:o},n)}function wl(e){return JSON.stringify(e,(e,t)=>gl(t)&&!Array.isArray(t)?Object.fromEntries(Object.keys(t).sort().map(e=>[e,t[e]])):t)}function xl(e){return e!==void 0&&Object.isFrozen(e)&&kl.every(t=>t in e)}var kl=["name","colors","radius","space","type","motion","metrics"];function vl(e,t){if(e===void 0)return true;if(!gl(e))return t!==void 0;if(!gl(t))return false;for(let n of Object.keys(e))if(!vl(e[n],t[n]))return false;return true}var Sl=/* @__PURE__ */new WeakMap;function Tl(e){let t=Sl.get(e);if(t)return t;if(vl(pl,e))return Sl.set(e,e),e;let n=hl(e),r=fl(pl,n===pl?e:fl(n,e));r[cl]=n;let i=al(r);return Sl.set(e,i),i}function Cl(){let t=e.useContext(bl);return t?Tl(t):pl}var jl=e=>Math.round(e*1e3)/1e3;function Il(e,t=false){return t?e>450?"monoBold":"mono":e>500?"bold":e>450?"medium":"regular"}function Hl(e,t){let n=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(!n)return e;let[r,i,o]=[n[1],n[2],n[3]].map(e=>parseInt(e,16));return`rgba(${r}, ${i}, ${o}, ${t})`}function Pl(e){let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);if(t)return[t[1],t[2],t[3]].map(e=>parseInt(e,16));let n=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(e);return n?[n[1],n[2],n[3]].map(Number):void 0}function Fl(e,t,n,r){let[i,o]=[Pl(e),Pl(n)];return!i||!o?r:`rgb(${i.map((e,n)=>Math.round(e*t+(o[n]??0)*(1-t))).join(", ")})`}function Rl(e,t){let n=/^([a-zA-Z]+)(?:\/([\d.]+))?$/.exec(t),r=n?.[1];if(!n||r===void 0||!(r in e.colors))return t;let i=e.colors[r];return n[2]===void 0?i:Hl(i,Number(n[2]))}function Dl(e,t){return{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Rl(e,t.color),...t.face==="mono"?{mono:true}:{},...t.face==="serif"?{serif:true}:{},...t.tracking?{tracking:t.tracking}:{},...t.upper?{upper:true}:{},...t.deco==="none"?{}:{deco:t.deco==="strike"?"strike":"underline",decoOffset:t.decoOffset,decoThickness:t.decoThickness},...t.tabular?{tabular:true}:{},...t.wrap==="auto"?{}:{wrap:t.wrap==="balance"?"balance":"pretty"}}}function zl(e,t){return t==="none"?void 0:Rl(e,t)}function $l(e){let t=e.metrics.summary,n=(e,t)=>jl(e*t);return{paddingX:t.paddingX,paddingY:t.paddingY,radius:t.radius,borderWidth:t.borderWidth,borderColor:e.colors.line,background:Rl(e,t.background),shadow:t.shadow,row:{paddingY:t.rowPaddingY,minHeight:t.rowMinHeight,gapX:t.rowGapX,gapY:t.rowGapY,divider:t.rowDivider,center:t.rowCenter},totalRowMinHeight:t.totalRowMinHeight,gap:t.gap??0,totalMarginTop:t.totalMarginTop??0,tabular:t.tabular,term:{size:t.termSize,weight:e.type.weight.regular,lineHeight:n(t.termSize,t.termLineHeight),color:Rl(e,t.termColor)},value:{size:t.valueSize,weight:t.valueWeight,lineHeight:n(t.valueSize,t.valueLineHeight),color:Rl(e,t.valueColor)},totalTerm:{size:t.totalTermSize,weight:t.totalTermWeight,lineHeight:n(t.totalTermSize,t.termLineHeight),color:Rl(e,t.totalTermColor)},total:{size:t.totalSize,weight:t.totalWeight,lineHeight:n(t.totalSize,t.totalLineHeight),color:Rl(e,t.valueColor)},off:Dl(e,e.metrics.summary.off)}}function Ol(e,t){let n=e.metrics.skeleton.widths;return`${n[t%n.length]}%`}function Bl(e,t,n){return n!==void 0?n:e===void 0?void 0:`${e}-${t}`}function _l(e){return e==="warn"||e==="danger"}var Ll=e=>e,El=e=>"edge"in e&&"shadow"in e&&"fit"in e,Al=e=>"deco"in e&&"face"in e&&"tabular"in e;function Wl(e){let t=/* @__PURE__ */new Map;for(let[n,r]of Object.entries(e))t.has(r)||t.set(r,n);return t}var Vl,Ml=/* @__PURE__ */new WeakMap;function Nl(e,t,n){let r=e.get(n),i=r===void 0?void 0:t[r];return typeof i=="number"?i:n}function Ul(e){let t=pl;return e.space===t.space&&e.radius===t.radius&&e.type.size===t.type.size&&e.type.weight===t.type.weight}function ql(e,t){let n=pl;Vl??(Vl={space:Wl(Ll(n.space)),radius:Wl(Ll(n.radius)),size:Wl(Ll(n.type.size)),weight:Wl(Ll(n.type.weight))});let r=Vl,i=t=>Nl(r.space,Ll(e.space),t),o=t=>Nl(r.radius,Ll(e.radius),t),l=t=>Array.isArray(t)?t.map(l):t===null||typeof t!="object"?t:El(t)?{...t,padding:t.padding.map(i),gap:t.gap.map(i),marginTop:i(t.marginTop),marginBottom:i(t.marginBottom),radius:t.radius.map(o)}:Al(t)?{...t,size:Nl(r.size,Ll(e.type.size),t.size),weight:Nl(r.weight,Ll(e.type.weight),t.weight),marginTop:i(t.marginTop),paddingTop:i(t.paddingTop)}:Object.fromEntries(Object.entries(t).map(([e,t])=>[e,l(t)]));return l(t)}function Gl(e,t){if(Ul(e))return t;let n=Ml.get(t);n||Ml.set(t,n=/* @__PURE__ */new WeakMap);let r=n.get(e);if(r)return r;let i=ql(e,t);return n.set(e,i),i}var Kl={display:"heading",headline:"heading",title:"heading",heading:"heading",body:"content",lead:"content",label:"control",meta:"compact",caption:"content",overline:"compact",kicker:"compact"};function Xl(e,t){let n=e.colors;switch(t){case"ink":return n.ink;case"text":return n.text;case"muted":return n.muted;case"danger":return n.alertDeep;case"inverse":return n.onInk;default:return}}function Yl(e,t,n,r){let i=Dl(e,e.metrics.text[t]),o=Xl(e,n);return{...i,...o?{color:o}:{},...r?{weight:e.type.weight[r]}:{}}}var Jl={display:"balance",headline:"balance",title:"balance",heading:"balance",body:"pretty",lead:"pretty",meta:"pretty",caption:"pretty",label:"auto",overline:"auto",kicker:"auto"};function Ql(e,t){return e.type.variantTiers?.[t]??Kl[t]}var Zl=/* @__PURE__ */(()=>{let t=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#ReducedMotionContext@v1"),n=globalThis,r=n[t]??(n[t]=e.createContext(null));return r.displayName??(r.displayName="EverfurReducedMotionContext"),r})();function ea(){return e.useContext(Zl)}function ta(e,n){let r=Il(n.weight,n.mono===true);return{fontFamily:n.serif?e.type.faces.serif??e.type.faces.bold:e.type.faces[r],...e.type.namedFaces?{}:{fontWeight:String(n.weight)},fontSize:n.size,lineHeight:n.lineHeight,color:n.color,...n.tracking?{letterSpacing:n.tracking}:{},...n.upper?{textTransform:"uppercase"}:{},...n.deco?na(n):{},...n.tabular?{fontVariant:["tabular-nums"]}:{},...n.wrap&&t.Platform.OS==="web"?{textWrap:n.wrap}:{}}}function na(e){let n={textDecorationLine:e.deco==="strike"?"line-through":"underline"};return t.Platform.OS!=="web"?n:{...n,...e.decoOffset?{textUnderlineOffset:e.decoOffset}:{},...e.decoThickness?{textDecorationThickness:e.decoThickness}:{}}}function ra(e,t){let[n=0,r=0,i=0,o=0]=t.padding,[l=0,a=0]=t.radius,s=zl(e,t.bg);return{paddingTop:n,paddingRight:r,paddingBottom:i,paddingLeft:o,...t.marginTop?{marginTop:t.marginTop}:{},...t.gap[0]?{columnGap:t.gap[0]}:{},...t.gap[1]?{rowGap:t.gap[1]}:{},...l===a?l?{borderRadius:l}:{}:{borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:a,borderBottomRightRadius:a},...s?{backgroundColor:s}:{},...t.edge.width>0&&!t.edge.ring?{borderWidth:t.edge.width,borderColor:Rl(e,t.edge.color)}:{},...t.minHeight?{minHeight:t.minHeight}:{},...sa(t.shadow)}}function ia(){if(t.Platform.OS!=="web")return false;let e=globalThis;return typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)").matches}function oa(n){let[r,i]=e.useState(()=>n===null&&ia());return e.useEffect(()=>{if(n!==null)return;let e=true,r=t.AccessibilityInfo?.isReduceMotionEnabled;if(typeof r=="function"){let n=r.call(t.AccessibilityInfo);n!=null&&typeof n.then=="function"&&n.then(t=>{e&&i(t===true)},()=>{})}let o=t.AccessibilityInfo?.addEventListener?.("reduceMotionChanged",e=>i(e===true));return()=>{e=false,o?.remove?.()}},[n]),n??r}function la(e){let t=oa(ea());return e.motion.reduced||t}function aa(e){let t=Math.max(0,Math.ceil((44-e)/2));return t===0?void 0:{top:t,bottom:t,left:t,right:t}}function sa(e){return e.blur===0&&e.y===0&&e.x===0?null:{shadowColor:e.color,shadowOffset:{width:e.x,height:e.y},shadowOpacity:1,shadowRadius:e.blur,elevation:1}}function ca(e){return Math.round(e*100)/100}function da(e,t){let n=Number(t.weight),r=t.letterSpacing??0;return{...ta(e,{size:t.size,weight:n,lineHeight:ca(t.size*t.lineHeight),color:e.colors.text,tracking:r?ca(t.size*r):0,mono:t.face==="mono",upper:t.uppercase===true}),flexShrink:1}}function ua(e){return e==="auto"?null:t.Platform.OS==="ios"?{lineBreakStrategyIOS:"push-out"}:t.Platform.OS==="android"&&e==="balance"?{textBreakStrategy:"balanced"}:null}function pa(e,t){let n=e.type.weight[t];return e.type.namedFaces?{fontFamily:e.type.faces[Il(n)]}:{fontWeight:String(n)}}function Text2({tier:n,variant:r,tone:i,weight:o,level:l,lineBreak:a,typeRole:s,...c}){let d=Cl();if(s){let r=d.type.scaleCaps[n??s.tier??"content"],i=a?ua(a):null;return e.createElement(t.Text,{...r>0?{maxFontSizeMultiplier:r}:{},...i,...c,style:[da(d,s),c.style]})}let u=d.type.scaleCaps[n??(r?Ql(d,r):"content")],p=ua(a??(r?Jl[r]:"auto"));if(r===void 0&&i===void 0&&o===void 0&&l===void 0)return p?e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...c}):e.createElement(t.Text,u>0?{maxFontSizeMultiplier:u,...c}:c);let h=Xl(d,i),g=r?ta(d,Yl(d,r,i,o)):{...h?{color:h}:{},...o?pa(d,o):{}},f=l===void 0?{}:{accessibilityRole:"header",...t.Platform.OS==="web"?{"aria-level":l}:{}};return e.createElement(t.Text,{...u>0?{maxFontSizeMultiplier:u}:{},...p,...f,...c,style:[g,c.style]})}var ha=24,ga=16,fa=.8,ma=e=>Math.round(e*ga);function ya(e,t,n,r,i,o){let l=e-n/2,a=t-r/2,s=Math.round(l),c=Math.round(a);return{position:"absolute",left:s,top:c,width:n,height:r,transform:[{translateX:l-s},{translateY:a-c},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/ga}]}}function ba(e,t,n){for(let r of e.strokes){let e=r.width*t,i=r.points,o=i.length/2,l=r.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,c=(i[a*2+1]??0)*t,d=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(o===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||l!==o-1||r.cap?e/2:0,y=(p+m-f)/2;n.push({paint:"backgroundColor",style:{...ya(s+h*y,c+g*y,ma(p+f+m),ma(e),h,g),borderTopLeftRadius:f>0?ma(e)/2:0,borderBottomLeftRadius:f>0?ma(e)/2:0,borderTopRightRadius:m>0?ma(e)/2:0,borderBottomRightRadius:m>0?ma(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function wa(e,t,n){for(let r of e.boxes){let e=(r.w+r.width)*t,i=(r.h+r.width)*t;n.push({paint:"borderColor",style:{...ya((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+i/2,ma(e),ma(i),1,0),borderWidth:ma(r.width*t),borderRadius:(r.radius+r.width/2)*t*ga,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function xa(e,t,n){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let n=e[t]??[0,0],r=e[(t+1)%3]??[0,0],l=Math.hypot(r[0]-n[0],r[1]-n[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],c=(a[0]-l[0])/o,d=(a[1]-l[1])/o,u=(s[0]-l[0])*c+(s[1]-l[1])*d,p=(s[0]-l[0])*-d+(s[1]-l[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=ma(u),y=ma(o)-m,b=ma(h);n.push({paint:g?"borderBottomColor":"borderTopColor",style:{...ya(l[0]+c*(o/2)-d*f,l[1]+d*(o/2)+c*f,m+y,b,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:y,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:b}:{borderTopWidth:b}}})}for(let r of e.seams){let e=(r[0]??0)*t,i=(r[1]??0)*t,o=(r[2]??0)*t-e,l=(r[3]??0)*t-i,a=Math.hypot(o,l),s=fa*(r[4]??0),c=fa*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;n.push({paint:"backgroundColor",style:ya(e+o/a*u,i+l/a*u,ma(d),ma(fa),o/a,l/a)})}}var ka=/* @__PURE__ */new WeakMap;function va(e,t){let n=ka.get(e);n===void 0&&(n=/* @__PURE__ */new Map,ka.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=[],o=t/ha;return wa(e,o,i),ba(e,o,i),xa(e,o,i),n.set(t,i),i}function Glyph({icon:e,size:r,color:i,label:o,testID:l,style:a}){let s=Cl(),c=r??s.metrics.icon.size,d=i??s.colors.ink;/* @__PURE__ */
37
+ return n.jsx(t.View,{testID:l,pointerEvents:"none",style:[{width:c,height:c},a],...o?{accessible:true,accessibilityRole:"image",accessibilityLabel:o}:{accessible:false,accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"},children:va(e,c).map((e,r)=>/* @__PURE__ */n.jsx(t.View,{style:[e.style,{[e.paint]:d}]},r))})}var Sa=/* @__PURE__ */(()=>{let e=/* @__PURE__ */Symbol.for("@everfur-health/ui-native#icons@v1"),t=globalThis;return t[e]??(t[e]={icons:{},warned:/* @__PURE__ */new Set})})();function Ta(e){Object.assign(Sa.icons,e)}function Ca(e){let t=Sa.icons[e];return t===void 0&&(typeof __DEV__<"u"?__DEV__:typeof process<"u"&&process.env.NODE_ENV!=="production")&&!Sa.warned.has(e)&&(Sa.warned.add(e),console.warn(`@everfur-health/ui-native: no icon "${e}" is registered. The lean entry draws only the icons an app registers: registerIcons({ ... }) with the UI_RN_ICON_* exports, or pass a drawing.`)),t}function Icon({name:e,...t}){let r=Ca(e);return r?/* @__PURE__ */n.jsx(Glyph,{icon:r,...t}):null}t.StyleSheet.create({base:{flexDirection:"row",alignItems:"center",justifyContent:"center"},block:{alignSelf:"stretch"},auto:{alignSelf:"flex-start"},labelBox:{flexShrink:1},label:{textAlign:"center"}});var ja={block:{height:16,radius:8},shimmer:{duration:1150,bandShare:.6,bandMin:28,band:"rgba(255, 255, 255, 0.42)",skew:-14}},Ia={padding:[10,16],gap:10,copyGap:2,radius:28,bg:"ink",dangerBg:"alertDeep",icon:20,iconColor:"onInk",title:{size:15,weight:700,lineHeight:21.75,tracking:0,color:"onInk"},message:{size:15,weight:400,lineHeight:21.75,tracking:0,color:"onInk"}};t.StyleSheet.create({head:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},shrink:{flexShrink:1},end:{justifyContent:"flex-end"}});t.StyleSheet.create({chip:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});function Ha(e,t){return ta(e,{size:t.size,weight:t.weight,lineHeight:t.lineHeight,color:Rl(e,t.color),tracking:t.tracking,mono:t.mono===true,upper:t.upper===true})}t.StyleSheet.create({st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},acts:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"},compact:{alignItems:"center"},iconBox:{alignItems:"center",justifyContent:"center"},pill:{alignItems:"center",justifyContent:"center"}});function Pa(e,t){return ta(e,Dl(e,t))}t.StyleSheet.create({acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"},st:{alignItems:"center",alignSelf:"stretch"},center:{textAlign:"center"},stActs:{alignItems:"center",alignSelf:"stretch"},link:{alignItems:"center",justifyContent:"center"},underline:{textDecorationLine:"underline"}});t.StyleSheet.create({pill:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",maxWidth:"100%"},label:{flexShrink:1}});var Fa={strokes:[{width:2,cap:true,closed:false,points:[21.73,18,13.73,4,12.997,3.258,11.99,2.986,10.983,3.258,10.25,4,2.25,18,1.982,19.005,2.254,20.008,2.994,20.739,4,21,20,21,20.999,20.731,21.731,19.999,21.998,18.999,21.73,18]},{width:2,cap:true,closed:false,points:[12,9,12,13]},{width:2,cap:true,closed:false,points:[12,17,12.01,17]}],boxes:[],triangles:[],seams:[]},Ra={strokes:[{width:2,cap:true,closed:false,points:[12,19,5,12,12,5]},{width:2,cap:true,closed:false,points:[19,12,5,12]}],boxes:[],triangles:[],seams:[]};var Da={strokes:[{width:2,cap:true,closed:false,points:[20,6,9,17,4,12]}],boxes:[],triangles:[],seams:[]},za={strokes:[{width:2,cap:true,closed:false,points:[9,18.001,15,12.001,9,6.001]}],boxes:[],triangles:[],seams:[]};var $a={strokes:[{width:2,cap:true,closed:false,points:[12,16,12,12]},{width:2,cap:true,closed:false,points:[12,8,12.01,8]}],boxes:[{x:2,y:2,w:20,h:20,radius:10,width:2}],triangles:[],seams:[]},Oa={strokes:[{width:2,cap:true,closed:true,points:[11,20,8.727,19.628,6.697,18.538,5.131,16.848,4.199,14.741,4.001,12.446,4.558,10.211,5.811,8.278,7.624,6.856,9.8,6.1,12.322,5.587,14.274,5.099,15.788,4.568,16.993,3.921,18.02,3.088,19,2,19.734,3.557,20.375,5.318,20.828,7.42,21,10,20.72,12.286,19.931,14.388,18.708,16.245,17.127,17.796,15.265,18.98,13.198,19.735,11,20]},{width:2,cap:true,closed:false,points:[2,21,2.218,19.285,2.858,17.776,3.896,16.524,5.311,15.582,7.08,15,8.885,14.469,10.573,13.695,11.993,12.823,13,12]}],boxes:[],triangles:[],seams:[]};var Ba={strokes:[{width:2,cap:true,closed:true,points:[9,10,10.913,10.381,12.536,11.464,13.619,13.087,14,15,14,18.5,13.615,20.094,12.547,21.338,11.029,21.959,9.395,21.82,8.003,20.952,7.16,19.545,6.576,18.327,5.676,17.425,4.46,16.84,3.054,15.997,2.186,14.607,2.046,12.974,2.665,11.456,3.907,10.387,5.5,10]}],boxes:[{x:9,y:2,w:4,h:4,radius:2,width:2},{x:16,y:6,w:4,h:4,radius:2,width:2},{x:18,y:14,w:4,h:4,radius:2,width:2}],triangles:[],seams:[]};t.StyleSheet.create({qty:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"},button:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},compact:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1},edit:{flexDirection:"row",alignItems:"center",justifyContent:"center"},pressed:{opacity:.6}});t.StyleSheet.create({row:{flexDirection:"row",alignSelf:"stretch"},hairline:{position:"absolute",left:0,right:0},tab:{flex:1,flexBasis:0,flexDirection:"row",alignItems:"center",justifyContent:"center"},center:{flexShrink:1,textAlign:"center"}});t.StyleSheet.create({scrim:{flex:1,justifyContent:"flex-end"},sheet:{maxHeight:"100%"},grab:{alignItems:"center",justifyContent:"center"},head:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},titles:{flexShrink:1,flexGrow:1},close:{alignItems:"center",justifyContent:"center"},closeEnd:{marginLeft:"auto"},scroll:{flexGrow:0},top:{flexDirection:"row",alignItems:"center"}});function Skeleton({lines:e=3,shape:r,label:i,testID:o,style:l,block:a,color:s}){let c=Cl(),d=c.metrics.skeleton,u=s??d.color??c.colors.tintSage,p=i?{accessible:true,accessibilityRole:"progressbar",accessibilityLabel:i,accessibilityState:{busy:true}}:{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants"};return a?/* @__PURE__ */n.jsx(SkeletonBox,{block:a,fill:u,testID:o,style:l,named:p}):r?/* @__PURE__ */n.jsx(t.View,{testID:o,style:[_a(c,r,u),l],...p}):/* @__PURE__ */n.jsx(t.View,{testID:o,style:[{rowGap:d.gap,alignSelf:"stretch"},l],...p,children:Array.from({length:Math.max(1,e)},(e,r)=>/* @__PURE__ */n.jsx(t.View,{style:{height:d.lineHeight,width:Ol(c,r),borderRadius:c.radius.pill,backgroundColor:u}},r))})}function SkeletonBox({block:r,fill:i,testID:o,style:l,named:a}){let s=Cl(),c=la(s),d=ja,u=d.shimmer,p=r.shimmer===true&&!c,[h,g]=e.useState(0),f=e.useRef(new t.Animated.Value(0)).current;e.useEffect(()=>{if(!p||h<=0)return;f.setValue(0);let e=t.Animated.loop(t.Animated.timing(f,{toValue:1,duration:u.duration,easing:t.Easing.inOut(t.Easing.ease),useNativeDriver:t.Platform.OS!=="web"}));return e.start(),()=>e.stop()},[p,h,f,u.duration]);let m=Math.max(u.bandMin,h*u.bandShare);/* @__PURE__ */
38
+ return n.jsx(t.View,{testID:o,onLayout:p?e=>g(Math.round(e.nativeEvent.layout.width)):void 0,style:[{width:r.width??"100%",height:r.height??d.block.height,borderRadius:r.radius??d.block.radius,borderCurve:"continuous",backgroundColor:i,overflow:"hidden"},l],...a,children:p&&h>0?/* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:-6,bottom:-6,left:0,width:m,backgroundColor:u.band,transform:[{translateX:f.interpolate({inputRange:[0,1],outputRange:[-m,h+m]})},{skewX:`${u.skew}deg`}]}}):null})}function _a(e,t,n){let r=t.radius==="circle",i=t.width??(r?t.height:void 0),o=La(e,t,i);return{height:t.height,...i===void 0?{alignSelf:"stretch"}:{width:i},borderRadius:o,backgroundColor:n}}function La(e,t,n){let r=t.radius??"pill";return r==="none"?0:r==="circle"?(typeof n=="number"?Math.min(n,t.height):t.height)/2:e.radius[r]}function SummaryList({rows:e,total:r=false,trailingRows:i=[],loading:o=false,loadingLabel:l,variant:a="standard",note:s,grouped:c=true,lineBreak:d,testID:u,style:p}){let h=Cl(),g=$l(h);if(o)/* @__PURE__ */
38
39
  return n.jsx(t.View,{testID:u,style:[{padding:g.paddingX,borderRadius:g.radius,backgroundColor:h.colors.surface},p],children:/* @__PURE__ */n.jsx(Skeleton,{lines:4,label:l})});let f=typeof r=="object"?[...e,{...r,key:r.key??"total"}]:e,m=r!==false;if(f.length===0)return null;let y=e=>c?{accessible:true,accessibilityLabel:`${e.term}, ${e.value}`}:null,b=d===void 0?null:{lineBreak:d},w=s?{...s,key:s.key??"note"}:void 0,x=[...f,...i,...w?[w]:[]];if(a!=="standard"&&a!=="flush"){let e=h.metrics.variants.summary;/* @__PURE__ */
39
- return n.jsx(t.View,{testID:u,style:[ta(h,a==="inset"?e.inset:e.box),p],children:x.map((r,i)=>{let o=r===w?"note":m&&i===f.length-1?"total":"row",l=o==="note"?e.renewRow:o==="total"?e.totalRow:e.row,a=o==="note"?e.renewTerm:o==="total"?e.totalTerm:e.term,s=o==="note"?e.renew:o==="total"?e.total:e.value;/* @__PURE__ */
40
- return n.jsxs(t.View,{testID:$l(u,r.key??i,r.testID),...y(r),style:[_a.cardRow,{columnGap:l.gap[0]??0,minHeight:l.minHeight||void 0,marginTop:l.marginTop||void 0}],children:[
41
- /* @__PURE__ */n.jsx(Text2,{...b,style:Zl(h,Fl(h,a)),children:r.term}),
42
- /* @__PURE__ */n.jsx(Text2,{...b,style:Zl(h,Fl(h,s)),children:r.value})]},r.key??`${i}`)})})}let k=a==="flush";/* @__PURE__ */
43
- return n.jsx(t.View,{testID:u,style:[{paddingHorizontal:k?0:g.paddingX,paddingVertical:k?0:g.paddingY,borderWidth:k?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},la(g.shadow),p],children:x.map((e,r)=>{let i=r===x.length-1,o=m&&r===f.length-1,l=o?g.totalRowMinHeight:g.row.minHeight;/* @__PURE__ */
44
- return n.jsxs(t.View,{testID:$l(u,e.key??r,e.testID),...y(e),style:[_a.row,{alignItems:g.row.center?"center":"baseline",paddingVertical:g.row.paddingY,columnGap:g.row.gapX,rowGap:g.row.gapY},l?{minHeight:l}:null,i||g.row.divider===0?null:{borderBottomWidth:g.row.divider,borderBottomColor:g.borderColor}],children:[
45
- /* @__PURE__ */n.jsx(Text2,{...b,style:Zl(h,o?g.totalTerm:g.term),children:e.term}),
46
- /* @__PURE__ */n.jsx(Text2,{...b,style:[Zl(h,o?g.total:e.tone==="off"?g.off:g.value),_a.value,g.tabular?_a.tabular:null],children:e.value})]},e.key??`${r}`)})})}var _a=t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:r,style:i}){let o=Sl();return typeof e=="function"?e({size:t,color:r??o.colors.ink}):typeof e!="string"?/* @__PURE__ */n.jsx(Glyph,{icon:e,size:t,color:r,style:i}):/* @__PURE__ */n.jsx(Icon,{name:e,size:t,color:r,style:i})}function FadeImage({onShown:r,onLoad:i,style:o,...l}){let a=Sl(),s=ia(a),c=e.useRef(new t.Animated.Value(0)).current;/* @__PURE__ */
47
- return n.jsx(t.Animated.Image,{...l,fadeDuration:0,onLoad:e=>{i?.(e);let n=a.motion.duration.fade;if(s||n<=0){c.setValue(1),r?.();return}t.Animated.timing(c,{toValue:1,duration:n,easing:t.Easing.out(t.Easing.cubic),useNativeDriver:t.Platform.OS!=="web"}).start(()=>r?.())},style:[o,{opacity:c}]})}t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});t.StyleSheet.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});function Toast({message:e,action:r,variant:i="pill",title:o,tone:l="info",onPress:a,testID:s,style:c}){let d=Sl();if(i==="top")/* @__PURE__ */return n.jsx(TopToast,{message:e,title:o,tone:l,onPress:a,testID:s,style:c,t:d});let u=i==="card",p=d.metrics.lists.toast,h=d.metrics.variants.toast,g=u?h.box:p.box,[f=0,m=0,y=0,b=0]=g.padding,w=Ia(d,u?h.text:p.text);/* @__PURE__ */
48
- return n.jsxs(t.View,{testID:s,style:[u?Ea.card:[Ea.pill,{marginHorizontal:p.inset}],{paddingTop:f,paddingRight:m,paddingBottom:y,paddingLeft:b,borderRadius:g.radius[0]??0,backgroundColor:Rl(d,g.bg)},c],children:[
49
- /* @__PURE__ */n.jsx(Text2,{style:[w,u?Ea.start:Ea.center,Ea.shrink],children:e}),r?/* @__PURE__ */n.jsx(t.Pressable,{onPress:r.onPress,accessibilityRole:"button",accessibilityLabel:r.label,testID:s?`${s}-action`:void 0,style:({pressed:e})=>[{marginLeft:d.metrics.lists.banner.acts.gap[0]??0},e?{opacity:d.metrics.lists.linkPressedOpacity}:null],children:/* @__PURE__ */n.jsx(Text2,{tier:"control",style:Ia(d,{...u?h.text:p.text,weight:d.metrics.lists.banner.link.weight}),children:r.label})}):null]})}function La(e){return e==="success"?Fa:e==="info"?Da:Ha}function TopToast({message:e,title:r,tone:i,onPress:o,testID:l,style:a,t:s}){let c=Ca,d=Ol(i),[u,p]=c.padding;/* @__PURE__ */
50
- return n.jsxs(t.Pressable,{testID:l,onPress:o,accessibilityRole:d?"alert":"text",accessibilityLiveRegion:d?"assertive":"polite",accessibilityLabel:r?`${r}. ${e}`:e,style:[Ea.top,{columnGap:c.gap,paddingVertical:u,paddingHorizontal:p,borderRadius:c.radius,backgroundColor:Pl(s,i==="danger"?c.dangerBg:c.bg)},a],children:[
51
- /* @__PURE__ */n.jsx(Glyph,{icon:La(i),size:c.icon,color:Pl(s,c.iconColor)}),
52
- /* @__PURE__ */n.jsxs(t.View,{style:[Ea.copy,{rowGap:c.copyGap}],children:[r?/* @__PURE__ */n.jsx(Text2,{style:ja(s,c.title),children:r}):null,
53
- /* @__PURE__ */n.jsx(Text2,{style:ja(s,c.message),children:e})]})]})}var Ea=t.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Aa(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Photo({image:r,onImageError:i,box:o,testID:l}){let a=Sl(),[s,c]=e.useState(null),d=Aa(r),u=[ta(a,o),{width:o.w,height:o.h,overflow:"hidden"}];return!d||s===r?/* @__PURE__ */n.jsx(t.View,{style:u}):/* @__PURE__ */n.jsx(t.View,{style:u,children:/* @__PURE__ */n.jsx(FadeImage,{testID:l,source:d,resizeMode:"cover",onError:()=>{r!=null&&(c(r),i?.(r))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(d))})}function Quote({quote:e,m:r,testID:i}){let o=Sl(),l=e=>Zl(o,Fl(o,e)),a=e.tag?/* @__PURE__ */n.jsx(t.View,{testID:i===void 0?void 0:`${i}-tag`,style:ta(o,r.saysTag),children:/* @__PURE__ */n.jsx(Text2,{style:[l(r.saysTagText),{paddingTop:0,lineHeight:r.saysTag.h-(r.saysTag.padding?.[0]??0)-(r.saysTag.padding?.[2]??0)}],children:e.tag})}):null;return Aa(e.image)===null?/* @__PURE__ */n.jsxs(t.View,{testID:i,style:[ta(o,r.says),{flexDirection:"column",rowGap:r.saysBare.gap[1],marginTop:r.says.marginTop}],children:[e.by||a?/* @__PURE__ */n.jsxs(Text2,{style:l(r.saysKicker),children:[e.by,e.by&&a?" ":null,a]}):null,
54
- /* @__PURE__ */n.jsx(Text2,{style:l(r.saysSerif),children:e.text})]}):/* @__PURE__ */n.jsxs(t.View,{testID:i,style:[ta(o,r.says),{flexDirection:"row",alignItems:"flex-start",columnGap:r.says.gap[0],marginTop:r.says.marginTop}],children:[
40
+ return n.jsx(t.View,{testID:u,style:[ra(h,a==="inset"?e.inset:e.box),p],children:x.map((r,i)=>{let o=r===w?"note":m&&i===f.length-1?"total":"row",l=o==="note"?e.renewRow:o==="total"?e.totalRow:e.row,a=o==="note"?e.renewTerm:o==="total"?e.totalTerm:e.term,s=o==="note"?e.renew:o==="total"?e.total:e.value;/* @__PURE__ */
41
+ return n.jsxs(t.View,{testID:Bl(u,r.key??i,r.testID),...y(r),style:[Ea.cardRow,{columnGap:l.gap[0]??0,minHeight:l.minHeight||void 0,marginTop:l.marginTop||void 0}],children:[
42
+ /* @__PURE__ */n.jsx(Text2,{...b,style:ta(h,Dl(h,a)),children:r.term}),
43
+ /* @__PURE__ */n.jsx(Text2,{...b,style:ta(h,Dl(h,s)),children:r.value})]},r.key??`${i}`)})})}let k=a==="flush";/* @__PURE__ */
44
+ return n.jsx(t.View,{testID:u,style:[{paddingHorizontal:k?0:g.paddingX,paddingVertical:k?0:g.paddingY,borderWidth:k?0:g.borderWidth,borderColor:g.borderColor,borderRadius:g.radius,backgroundColor:g.background},sa(g.shadow),p],children:x.map((e,r)=>{let i=r===x.length-1,o=m&&r===f.length-1,l=o?g.totalRowMinHeight:g.row.minHeight;/* @__PURE__ */
45
+ return n.jsxs(t.View,{testID:Bl(u,e.key??r,e.testID),...y(e),style:[Ea.row,{alignItems:g.row.center?"center":"baseline",paddingVertical:g.row.paddingY,columnGap:g.row.gapX,rowGap:g.row.gapY},l?{minHeight:l}:null,i||g.row.divider===0?null:{borderBottomWidth:g.row.divider,borderBottomColor:g.borderColor}],children:[
46
+ /* @__PURE__ */n.jsx(Text2,{...b,style:ta(h,o?g.totalTerm:g.term),children:e.term}),
47
+ /* @__PURE__ */n.jsx(Text2,{...b,style:[ta(h,o?g.total:e.tone==="off"?g.off:g.value),Ea.value,g.tabular?Ea.tabular:null],children:e.value})]},e.key??`${r}`)})})}var Ea=t.StyleSheet.create({row:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"},cardRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},value:{marginLeft:"auto",textAlign:"right"},tabular:{fontVariant:["tabular-nums"]}});function BlockIcon({icon:e,size:t,color:r,style:i}){let o=Cl();return typeof e=="function"?e({size:t,color:r??o.colors.ink}):typeof e!="string"?/* @__PURE__ */n.jsx(Glyph,{icon:e,size:t,color:r,style:i}):/* @__PURE__ */n.jsx(Icon,{name:e,size:t,color:r,style:i})}function FadeImage({onShown:r,onLoad:i,style:o,...l}){let a=Cl(),s=la(a),c=e.useRef(new t.Animated.Value(0)).current;/* @__PURE__ */
48
+ return n.jsx(t.Animated.Image,{...l,fadeDuration:0,onLoad:e=>{i?.(e);let n=a.motion.duration.fade;if(s||n<=0){c.setValue(1),r?.();return}t.Animated.timing(c,{toValue:1,duration:n,easing:t.Easing.out(t.Easing.cubic),useNativeDriver:t.Platform.OS!=="web"}).start(()=>r?.())},style:[o,{opacity:c}]})}t.StyleSheet.create({row:{flexDirection:"row",alignItems:"flex-start"},noGap:{columnGap:0},box:{alignItems:"center",justifyContent:"center"},grow:{flex:1,minWidth:0}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"},words:{flex:1,minWidth:0},center:{alignItems:"center",justifyContent:"center"}});t.StyleSheet.create({hintRow:{flexDirection:"row",alignItems:"flex-start"},grow:{flex:1}});t.StyleSheet.create({base:{alignItems:"center",justifyContent:"center",alignSelf:"flex-start"}});t.StyleSheet.create({base:{alignSelf:"flex-start"}});t.StyleSheet.create({track:{alignSelf:"flex-start"},thumb:{position:"absolute"}});t.StyleSheet.create({box:{flexDirection:"row"},line:{alignItems:"center"},area:{alignItems:"stretch"},input:{flex:1,minWidth:0,margin:0,borderWidth:0,backgroundColor:"transparent"},hidden:{position:"absolute",width:1,height:1,overflow:"hidden",opacity:0}});t.StyleSheet.create({clip:{overflow:"hidden"},center:{alignItems:"center",justifyContent:"center"},stack:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start"}});t.StyleSheet.create({leadAuto:{flexShrink:0},words:{flex:1,minWidth:0},below:{alignSelf:"flex-start"},end:{flexDirection:"row",alignItems:"center",flexShrink:1,maxWidth:"45%",justifyContent:"flex-end"},flush:{marginTop:0}});t.StyleSheet.create({offRow:{flexDirection:"row",alignItems:"center",alignSelf:"stretch"},offText:{flexShrink:1,minWidth:0},offAction:{flexDirection:"row",alignItems:"center",marginLeft:"auto",flexShrink:0},row:{flexDirection:"row",alignItems:"flex-start"},copy:{flex:1,minWidth:0},acts:{flexDirection:"row",flexWrap:"wrap",alignItems:"center"}});function Toast({message:e,action:r,variant:i="pill",title:o,tone:l="info",onPress:a,testID:s,style:c}){let d=Cl();if(i==="top")/* @__PURE__ */return n.jsx(TopToast,{message:e,title:o,tone:l,onPress:a,testID:s,style:c,t:d});let u=i==="card",p=d.metrics.lists.toast,h=d.metrics.variants.toast,g=u?h.box:p.box,[f=0,m=0,y=0,b=0]=g.padding,w=Pa(d,u?h.text:p.text);/* @__PURE__ */
49
+ return n.jsxs(t.View,{testID:s,style:[u?Wa.card:[Wa.pill,{marginHorizontal:p.inset}],{paddingTop:f,paddingRight:m,paddingBottom:y,paddingLeft:b,borderRadius:g.radius[0]??0,backgroundColor:zl(d,g.bg)},c],children:[
50
+ /* @__PURE__ */n.jsx(Text2,{style:[w,u?Wa.start:Wa.center,Wa.shrink],children:e}),r?/* @__PURE__ */n.jsx(t.Pressable,{onPress:r.onPress,accessibilityRole:"button",accessibilityLabel:r.label,testID:s?`${s}-action`:void 0,style:({pressed:e})=>[{marginLeft:d.metrics.lists.banner.acts.gap[0]??0},e?{opacity:d.metrics.lists.linkPressedOpacity}:null],children:/* @__PURE__ */n.jsx(Text2,{tier:"control",style:Pa(d,{...u?h.text:p.text,weight:d.metrics.lists.banner.link.weight}),children:r.label})}):null]})}function Aa(e){return e==="success"?Da:e==="info"?$a:Fa}function TopToast({message:e,title:r,tone:i,onPress:o,testID:l,style:a,t:s}){let c=Ia,d=_l(i),[u,p]=c.padding;/* @__PURE__ */
51
+ return n.jsxs(t.Pressable,{testID:l,onPress:o,accessibilityRole:d?"alert":"text",accessibilityLiveRegion:d?"assertive":"polite",accessibilityLabel:r?`${r}. ${e}`:e,style:[Wa.top,{columnGap:c.gap,paddingVertical:u,paddingHorizontal:p,borderRadius:c.radius,backgroundColor:Rl(s,i==="danger"?c.dangerBg:c.bg)},a],children:[
52
+ /* @__PURE__ */n.jsx(Glyph,{icon:Aa(i),size:c.icon,color:Rl(s,c.iconColor)}),
53
+ /* @__PURE__ */n.jsxs(t.View,{style:[Wa.copy,{rowGap:c.copyGap}],children:[r?/* @__PURE__ */n.jsx(Text2,{style:Ha(s,c.title),children:r}):null,
54
+ /* @__PURE__ */n.jsx(Text2,{style:Ha(s,c.message),children:e})]})]})}var Wa=t.StyleSheet.create({fill:{flex:1},host:{position:"absolute",left:0,right:0,alignItems:"center"},cardHost:{position:"absolute"},card:{alignSelf:"stretch"},start:{textAlign:"left"},pill:{flexDirection:"row",flexWrap:"wrap",alignItems:"center",justifyContent:"center",alignSelf:"center",maxWidth:"100%"},center:{textAlign:"center"},shrink:{flexShrink:1},topHost:{position:"absolute",alignItems:"center",zIndex:1e3},top:{flexDirection:"row",alignItems:"center"},copy:{flex:1}});t.StyleSheet.create({row:{flexDirection:"row",alignItems:"center"}});function Va(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function Photo({image:r,onImageError:i,box:o,testID:l}){let a=Cl(),[s,c]=e.useState(null),d=Va(r),u=[ra(a,o),{width:o.w,height:o.h,overflow:"hidden"}];return!d||s===r?/* @__PURE__ */n.jsx(t.View,{style:u}):/* @__PURE__ */n.jsx(t.View,{style:u,children:/* @__PURE__ */n.jsx(FadeImage,{testID:l,source:d,resizeMode:"cover",onError:()=>{r!=null&&(c(r),i?.(r))},style:{position:"absolute",top:0,right:0,bottom:0,left:0}},JSON.stringify(d))})}function Quote({quote:e,m:r,testID:i}){let o=Cl(),l=e=>ta(o,Dl(o,e)),a=e.tag?/* @__PURE__ */n.jsx(t.View,{testID:i===void 0?void 0:`${i}-tag`,style:ra(o,r.saysTag),children:/* @__PURE__ */n.jsx(Text2,{style:[l(r.saysTagText),{paddingTop:0,lineHeight:r.saysTag.h-(r.saysTag.padding?.[0]??0)-(r.saysTag.padding?.[2]??0)}],children:e.tag})}):null;return Va(e.image)===null?/* @__PURE__ */n.jsxs(t.View,{testID:i,style:[ra(o,r.says),{flexDirection:"column",rowGap:r.saysBare.gap[1],marginTop:r.says.marginTop}],children:[e.by||a?/* @__PURE__ */n.jsxs(Text2,{style:l(r.saysKicker),children:[e.by,e.by&&a?" ":null,a]}):null,
55
+ /* @__PURE__ */n.jsx(Text2,{style:l(r.saysSerif),children:e.text})]}):/* @__PURE__ */n.jsxs(t.View,{testID:i,style:[ra(o,r.says),{flexDirection:"row",alignItems:"flex-start",columnGap:r.says.gap[0],marginTop:r.says.marginTop}],children:[
55
56
  /* @__PURE__ */n.jsx(Photo,{image:e.image,onImageError:e.onImageError,box:r.saysImg}),
56
- /* @__PURE__ */n.jsxs(Text2,{style:[l(r.saysText),{flex:1}],children:[e.by?/* @__PURE__ */n.jsx(Text2,{style:l(r.saysBy),children:e.by}):null,e.by?" ":null,e.text,a?" ":null,a]})]})}function Jump({jump:e,m:r,testID:i}){let o=Sl(),l=ia(o),a=e=>Zl(o,Fl(o,e)),s=Aa(e.image)!==null,c=[ta(o,r.jump),{flexDirection:"row",alignItems:"center",columnGap:r.jump.gap[0],marginTop:r.jump.marginTop}],d=/* @__PURE__ */n.jsxs(n.Fragment,{children:[s?/* @__PURE__ */n.jsx(Photo,{image:e.image,onImageError:e.onImageError,box:r.jumpImg}):null,
57
+ /* @__PURE__ */n.jsxs(Text2,{style:[l(r.saysText),{flex:1}],children:[e.by?/* @__PURE__ */n.jsx(Text2,{style:l(r.saysBy),children:e.by}):null,e.by?" ":null,e.text,a?" ":null,a]})]})}function Jump({jump:e,m:r,testID:i}){let o=Cl(),l=la(o),a=e=>ta(o,Dl(o,e)),s=Va(e.image)!==null,c=[ra(o,r.jump),{flexDirection:"row",alignItems:"center",columnGap:r.jump.gap[0],marginTop:r.jump.marginTop}],d=/* @__PURE__ */n.jsxs(n.Fragment,{children:[s?/* @__PURE__ */n.jsx(Photo,{image:e.image,onImageError:e.onImageError,box:r.jumpImg}):null,
57
58
  /* @__PURE__ */n.jsxs(t.View,{style:{flex:1,minWidth:0},children:[
58
59
  /* @__PURE__ */n.jsx(Text2,{style:a(r.jumpKicker),children:e.kicker}),
59
60
  /* @__PURE__ */n.jsx(Text2,{style:a(r.jumpTitle),children:e.title})]}),
60
- /* @__PURE__ */n.jsx(Text2,{style:a(r.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */n.jsx(t.Pressable,{testID:i,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...c,e&&!l?{transform:[{scale:r.jumpPressScale}]}:null],children:d}):/* @__PURE__ */n.jsx(t.View,{testID:i,style:c,children:d})}function PlanNeedCard({kicker:e,source:r,sources:i,title:o,signals:l,score:a,more:s,quote:c,jump:d,variant:u="standard",children:p,beforeJump:h,loading:g=false,loadingLabel:f,testID:m,style:y}){let b=Sl(),w=u==="plan",x=Ul(b,el),k=w?x:Ul(b,Zo),v=e=>m===void 0?void 0:`${m}-${e}`,S=i??(r?[{label:r}]:[]),T=e=>Zl(b,Fl(b,e)),C=[ta(b,k.card),{marginTop:0},y];if(g)/* @__PURE__ */
61
+ /* @__PURE__ */n.jsx(Text2,{style:a(r.jumpGo),children:e.go})]});return e.onPress?/* @__PURE__ */n.jsx(t.Pressable,{testID:i,onPress:e.onPress,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??`${e.kicker}, ${e.title}`,style:({pressed:e})=>[...c,e&&!l?{transform:[{scale:r.jumpPressScale}]}:null],children:d}):/* @__PURE__ */n.jsx(t.View,{testID:i,style:c,children:d})}function PlanNeedCard({kicker:e,source:r,sources:i,title:o,signals:l,score:a,more:s,quote:c,jump:d,variant:u="standard",children:p,beforeJump:h,loading:g=false,loadingLabel:f,testID:m,style:y}){let b=Cl(),w=u==="plan",x=Gl(b,nl),k=w?x:Gl(b,tl),v=e=>m===void 0?void 0:`${m}-${e}`,S=i??(r?[{label:r}]:[]),T=e=>ta(b,Dl(b,e)),C=[ra(b,k.card),{marginTop:0},y];if(g)/* @__PURE__ */
61
62
  return n.jsx(t.View,{testID:m,style:C,children:/* @__PURE__ */n.jsx(Skeleton,{lines:3,label:f})});let j=T(k.signalText);/* @__PURE__ */
62
63
  return n.jsxs(t.View,{testID:m,style:C,children:[
63
64
  /* @__PURE__ */n.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:k.kicker.gap[0],minHeight:S.length>0?k.kicker.h:void 0},children:[
64
65
  /* @__PURE__ */n.jsx(Text2,{style:T(k.kickerText),children:e}),S.length>0?/* @__PURE__ */n.jsx(t.View,{style:{marginLeft:"auto",flexDirection:"row",columnGap:x.sources.gap[0],flexShrink:1},children:S.map((e,r)=>{let o=e.kind==="dna";/* @__PURE__ */
65
- return n.jsx(t.View,{testID:v(i?`source-${r}`:"source"),style:[ta(b,k.source),o?{backgroundColor:Pl(b,x.sourceDna.bg)}:null,{height:k.source.h,justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{numberOfLines:1,style:T(o?x.sourceDnaText:k.sourceText),children:e.label})},`${r}-${e.label}`)})}):null]}),o?/* @__PURE__ */n.jsx(Text2,{accessibilityRole:"header",style:[T(k.title),{marginTop:k.title.marginTop}],children:o}):null,l.map(e=>/* @__PURE__ */n.jsxs(t.View,{style:{flexDirection:"row",columnGap:k.signal.gap[0],marginTop:k.signal.marginTop},children:[e.dot===false?null:e.dot==="space"?/* @__PURE__ */n.jsx(t.View,{style:{width:k.dot.w}}):/* @__PURE__ */n.jsx(t.View,{style:{height:j.lineHeight,justifyContent:"center",paddingTop:(j.fontSize??0)*.4-k.dot.h/2},children:/* @__PURE__ */n.jsx(t.View,{style:{width:k.dot.w,height:k.dot.h,borderRadius:k.dot.w/2,backgroundColor:Pl(b,w&&e.tone==="watch"?x.dotWatch.bg:w&&e.tone==="clear"?x.dotClear.bg:k.dot.bg),transform:[{translateY:k.dot.dy}]}})}),
66
+ return n.jsx(t.View,{testID:v(i?`source-${r}`:"source"),style:[ra(b,k.source),o?{backgroundColor:Rl(b,x.sourceDna.bg)}:null,{height:k.source.h,justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{numberOfLines:1,style:T(o?x.sourceDnaText:k.sourceText),children:e.label})},`${r}-${e.label}`)})}):null]}),o?/* @__PURE__ */n.jsx(Text2,{accessibilityRole:"header",style:[T(k.title),{marginTop:k.title.marginTop}],children:o}):null,l.map(e=>/* @__PURE__ */n.jsxs(t.View,{style:{flexDirection:"row",columnGap:k.signal.gap[0],marginTop:k.signal.marginTop},children:[e.dot===false?null:e.dot==="space"?/* @__PURE__ */n.jsx(t.View,{style:{width:k.dot.w}}):/* @__PURE__ */n.jsx(t.View,{style:{height:j.lineHeight,justifyContent:"center",paddingTop:(j.fontSize??0)*.4-k.dot.h/2},children:/* @__PURE__ */n.jsx(t.View,{style:{width:k.dot.w,height:k.dot.h,borderRadius:k.dot.w/2,backgroundColor:Rl(b,w&&e.tone==="watch"?x.dotWatch.bg:w&&e.tone==="clear"?x.dotClear.bg:k.dot.bg),transform:[{translateY:k.dot.dy}]}})}),
66
67
  /* @__PURE__ */n.jsxs(Text2,{style:[j,{flex:1}],children:[e.lead?/* @__PURE__ */n.jsx(Text2,{style:T(k.signalLead),children:e.lead}):null,e.lead?" ":null,e.text]})]},e.key)),w&&s?/* @__PURE__ */n.jsxs(n.Fragment,{children:[
67
68
  /* @__PURE__ */n.jsxs(t.Pressable,{testID:v("more"),onPress:s.onPress,accessibilityRole:"button",accessibilityState:{expanded:s.expanded},"aria-expanded":s.expanded,style:{flexDirection:"row",alignItems:"center",alignSelf:"flex-start",columnGap:x.more.gap[0],minHeight:x.more.minHeight,marginTop:x.more.marginTop,marginBottom:x.more.marginBottom,marginLeft:x.moreInset},children:[
68
69
  /* @__PURE__ */n.jsx(Text2,{style:T(x.moreText),children:s.label}),
69
- /* @__PURE__ */n.jsx(Glyph,{icon:Ra,size:x.moreIcon.w,color:Pl(b,x.moreText.color),style:{transform:[{rotate:`${s.expanded?x.moreTurn.open:x.moreTurn.closed}deg`}]}})]}),s.expanded?/* @__PURE__ */n.jsx(t.View,{testID:v("more-panel"),nativeID:s.panelId,style:[ta(b,x.rep),{marginTop:x.rep.marginTop}],children:s.content}):null]}):null,a?/* @__PURE__ */n.jsxs(t.View,{testID:m===void 0?void 0:`${m}-score`,style:[ta(b,k.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
70
- /* @__PURE__ */n.jsx(t.View,{style:{flexShrink:1,minWidth:0,maxWidth:w&&x.scoreLabelMax?x.scoreLabelMax:void 0},children:/* @__PURE__ */n.jsxs(Text2,{style:T(k.scoreLabel),children:[a.label,a.tag?" ":null,a.tag?/* @__PURE__ */n.jsx(t.View,{testID:v("tag"),style:ta(b,k.scoreTag),children:/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreTagText),children:a.tag})}):null]})}),
70
+ /* @__PURE__ */n.jsx(Glyph,{icon:za,size:x.moreIcon.w,color:Rl(b,x.moreText.color),style:{transform:[{rotate:`${s.expanded?x.moreTurn.open:x.moreTurn.closed}deg`}]}})]}),s.expanded?/* @__PURE__ */n.jsx(t.View,{testID:v("more-panel"),nativeID:s.panelId,style:[ra(b,x.rep),{marginTop:x.rep.marginTop}],children:s.content}):null]}):null,a?/* @__PURE__ */n.jsxs(t.View,{testID:m===void 0?void 0:`${m}-score`,style:[ra(b,k.score),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
71
+ /* @__PURE__ */n.jsx(t.View,{style:{flexShrink:1,minWidth:0,maxWidth:w&&x.scoreLabelMax?x.scoreLabelMax:void 0},children:/* @__PURE__ */n.jsxs(Text2,{style:T(k.scoreLabel),children:[a.label,a.tag?" ":null,a.tag?/* @__PURE__ */n.jsx(t.View,{testID:v("tag"),style:ra(b,k.scoreTag),children:/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreTagText),children:a.tag})}):null]})}),
71
72
  /* @__PURE__ */n.jsxs(t.View,{accessible:a.accessibilityLabel!==void 0,accessibilityLabel:a.accessibilityLabel,style:{flexShrink:0,alignItems:"flex-end"},children:[
72
- /* @__PURE__ */n.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:k.scoreNums.gap[0]},children:[a.was?/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreWas),children:a.was}):null,a.was?a.icon!==void 0?/* @__PURE__ */n.jsx(t.View,{testID:v("arrow"),children:/* @__PURE__ */n.jsx(BlockIcon,{icon:a.icon,size:k.scoreArrow.w,color:Pl(b,k.scoreArrow.color)})}):/* @__PURE__ */n.jsx(Glyph,{testID:v("arrow"),icon:Pa,size:k.scoreArrow.w,color:Pl(b,k.scoreArrow.color),style:k.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
73
- /* @__PURE__ */n.jsxs(Text2,{style:T(k.scoreNow),children:[a.now,a.of?/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreOf),children:a.of}):null]})]}),a.since?/* @__PURE__ */n.jsx(Text2,{style:[T(k.scoreSince),{marginTop:k.scoreSince.marginTop}],children:a.since}):null]})]}):null,w&&c?/* @__PURE__ */n.jsx(Quote,{quote:c,m:x,testID:v("quote")}):null,w?h:null,w&&d?/* @__PURE__ */n.jsx(Jump,{jump:d,m:x,testID:v("jump")}):null,p]})}function Wa(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function TipCard(r){let{number:i,title:o,text:l,foot:a,footArrow:s=false,footPress:c,tone:d="y",image:u,onImageError:p,icon:h=za,onPress:g,pressTarget:f="title",accessibilityLabel:m,variant:y="standard",loading:b=false,loadingLabel:w,testID:x,style:k}=r,v=Sl(),S=ia(v),T=Ul(v,tl),C=Ul(v,nl),j=Ul(v,rl),I=Ul(v,il),H=y==="web",P=y==="photo",F=y==="plan",[R,D]=e.useState(false),[z,$]=e.useState(null),O=e=>Zl(v,Fl(v,e)),B=P?{...T,card:C.card,tones:C.tones,img:C.img,n:C.n,nText:C.nText,title:C.title,pressScale:C.pressScale,bare:C.bare,thumb:C.thumb,thumbIcon:C.thumbIcon}:F?{...T,card:I.card,tones:I.tones,title:I.title,text:I.text,footText:I.footText,foot:I.foot,pressScale:1}:T,_=H?[ta(v,j.card),k]:[ta(v,B.card),{backgroundColor:Pl(v,B.tones[d])},k],L=H?j.imgAspect:P?C.imgAspect:T.img.w/T.img.h,E=H?1:B.pressScale;if(b)/* @__PURE__ */
74
- return n.jsx(t.View,{testID:x,style:_,children:/* @__PURE__ */n.jsx(Skeleton,{lines:3,label:w})});let A=B.n,W=H?null:/* @__PURE__ */n.jsx(t.View,{style:[ta(v,A),{position:"absolute",left:A.x,top:A.y,width:A.w,height:A.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{style:O(B.nText),children:i})}),V=/* @__PURE__ */n.jsx(Text2,{style:O(H?j.title:B.title),children:o}),M=g!==void 0&&(H||f==="card"),N=e=>x===void 0?void 0:`${x}-${e}`,U=F?null:Wa(u),q=U&&z!==u?U:null,G=O(B.footText),K=s||c?/* @__PURE__ */n.jsx(Glyph,{icon:Pa,size:T.footArrow.w,color:typeof G.color=="string"?G.color:void 0,style:T.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,X=/* @__PURE__ */n.jsx(Text2,{style:G,children:a}),Y={flexDirection:"row",alignItems:"center",columnGap:T.foot.gap[0]},J=a&&!H&&!P?c?/* @__PURE__ */n.jsxs(t.Pressable,{testID:c.testID??N("foot"),onPress:c.onPress,accessibilityRole:"link",accessibilityLabel:c.accessibilityLabel??a,hitSlop:oa(G.lineHeight??T.footArrow.w),style:[Y,{marginTop:"auto",paddingTop:B.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[X,K]}):K?/* @__PURE__ */n.jsxs(t.View,{style:[Y,{marginTop:"auto",paddingTop:B.foot.padding[0]}],children:[X,K]}):/* @__PURE__ */n.jsx(Text2,{style:[G,{marginTop:"auto",paddingTop:B.foot.padding[0]}],children:a}):null,Q=()=>{u!=null&&($(u),p?.(u))},Z=e=>/* @__PURE__ */n.jsx(BlockIcon,{icon:h,size:e.w,color:Pl(v,e.color)}),ee=F?/* @__PURE__ */n.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:I.top.h},children:[
73
+ /* @__PURE__ */n.jsxs(t.View,{style:{flexDirection:"row",alignItems:"center",columnGap:k.scoreNums.gap[0]},children:[a.was?/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreWas),children:a.was}):null,a.was?a.icon!==void 0?/* @__PURE__ */n.jsx(t.View,{testID:v("arrow"),children:/* @__PURE__ */n.jsx(BlockIcon,{icon:a.icon,size:k.scoreArrow.w,color:Rl(b,k.scoreArrow.color)})}):/* @__PURE__ */n.jsx(Glyph,{testID:v("arrow"),icon:Ra,size:k.scoreArrow.w,color:Rl(b,k.scoreArrow.color),style:k.scoreArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,
74
+ /* @__PURE__ */n.jsxs(Text2,{style:T(k.scoreNow),children:[a.now,a.of?/* @__PURE__ */n.jsx(Text2,{style:T(k.scoreOf),children:a.of}):null]})]}),a.since?/* @__PURE__ */n.jsx(Text2,{style:[T(k.scoreSince),{marginTop:k.scoreSince.marginTop}],children:a.since}):null]})]}):null,w&&c?/* @__PURE__ */n.jsx(Quote,{quote:c,m:x,testID:v("quote")}):null,w?h:null,w&&d?/* @__PURE__ */n.jsx(Jump,{jump:d,m:x,testID:v("jump")}):null,p]})}function Ma(e){return typeof e=="number"?e:typeof e=="string"?e?{uri:e}:null:e&&typeof e=="object"&&e.uri?e:null}function TipCard(r){let{number:i,title:o,text:l,foot:a,footArrow:s=false,footPress:c,tone:d="y",image:u,onImageError:p,icon:h=Oa,onPress:g,pressTarget:f="title",accessibilityLabel:m,variant:y="standard",loading:b=false,loadingLabel:w,testID:x,style:k}=r,v=Cl(),S=la(v),T=Gl(v,rl),C=Gl(v,il),j=Gl(v,ol),I=Gl(v,ll),H=y==="web",P=y==="photo",F=y==="plan",[R,D]=e.useState(false),[z,$]=e.useState(null),O=e=>ta(v,Dl(v,e)),B=P?{...T,card:C.card,tones:C.tones,img:C.img,n:C.n,nText:C.nText,title:C.title,pressScale:C.pressScale,bare:C.bare,thumb:C.thumb,thumbIcon:C.thumbIcon}:F?{...T,card:I.card,tones:I.tones,title:I.title,text:I.text,footText:I.footText,foot:I.foot,pressScale:1}:T,_=H?[ra(v,j.card),k]:[ra(v,B.card),{backgroundColor:Rl(v,B.tones[d])},k],L=H?j.imgAspect:P?C.imgAspect:T.img.w/T.img.h,E=H?1:B.pressScale;if(b)/* @__PURE__ */
75
+ return n.jsx(t.View,{testID:x,style:_,children:/* @__PURE__ */n.jsx(Skeleton,{lines:3,label:w})});let A=B.n,W=H?null:/* @__PURE__ */n.jsx(t.View,{style:[ra(v,A),{position:"absolute",left:A.x,top:A.y,width:A.w,height:A.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{style:O(B.nText),children:i})}),V=/* @__PURE__ */n.jsx(Text2,{style:O(H?j.title:B.title),children:o}),M=g!==void 0&&(H||f==="card"),N=e=>x===void 0?void 0:`${x}-${e}`,U=F?null:Ma(u),q=U&&z!==u?U:null,G=O(B.footText),K=s||c?/* @__PURE__ */n.jsx(Glyph,{icon:Ra,size:T.footArrow.w,color:typeof G.color=="string"?G.color:void 0,style:T.footArrowFlip?{transform:[{rotate:"180deg"}]}:void 0}):null,X=/* @__PURE__ */n.jsx(Text2,{style:G,children:a}),Y={flexDirection:"row",alignItems:"center",columnGap:T.foot.gap[0]},J=a&&!H&&!P?c?/* @__PURE__ */n.jsxs(t.Pressable,{testID:c.testID??N("foot"),onPress:c.onPress,accessibilityRole:"link",accessibilityLabel:c.accessibilityLabel??a,hitSlop:aa(G.lineHeight??T.footArrow.w),style:[Y,{marginTop:"auto",paddingTop:B.foot.padding[0],alignSelf:"flex-start",zIndex:1}],children:[X,K]}):K?/* @__PURE__ */n.jsxs(t.View,{style:[Y,{marginTop:"auto",paddingTop:B.foot.padding[0]}],children:[X,K]}):/* @__PURE__ */n.jsx(Text2,{style:[G,{marginTop:"auto",paddingTop:B.foot.padding[0]}],children:a}):null,Q=()=>{u!=null&&($(u),p?.(u))},Z=e=>/* @__PURE__ */n.jsx(BlockIcon,{icon:h,size:e.w,color:Rl(v,e.color)}),ee=F?/* @__PURE__ */n.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",minHeight:I.top.h},children:[
75
76
  /* @__PURE__ */n.jsx(Text2,{style:O(I.nText),children:i}),
76
- /* @__PURE__ */n.jsx(BlockIcon,{icon:h,size:I.icon.w,color:Pl(v,I.icon.color)})]}):!H&&!q?/* @__PURE__ */n.jsxs(t.View,{testID:N("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ta(v,B.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
77
- /* @__PURE__ */n.jsx(t.View,{style:[ta(v,A),{width:A.w,height:A.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{style:O(B.nText),children:i})}),
78
- /* @__PURE__ */n.jsx(t.View,{style:[ta(v,B.thumb),{width:B.thumb.w,height:B.thumb.h,alignItems:"center",justifyContent:"center"}],children:Z(B.thumbIcon)})]}):/* @__PURE__ */n.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ta(v,H?j.img:B.img),{width:"100%",aspectRatio:L,overflow:"hidden"}],children:[q?/* @__PURE__ */n.jsx(FadeImage,{testID:N("image"),source:q,resizeMode:"cover",onError:Q,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof u=="string"?u:JSON.stringify(u)):null,W]}),te=/* @__PURE__ */n.jsxs(n.Fragment,{children:[ee,
77
+ /* @__PURE__ */n.jsx(BlockIcon,{icon:h,size:I.icon.w,color:Rl(v,I.icon.color)})]}):!H&&!q?/* @__PURE__ */n.jsxs(t.View,{testID:N("thumb"),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ra(v,B.bare),{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}],children:[
78
+ /* @__PURE__ */n.jsx(t.View,{style:[ra(v,A),{width:A.w,height:A.h,alignItems:"center",justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text2,{style:O(B.nText),children:i})}),
79
+ /* @__PURE__ */n.jsx(t.View,{style:[ra(v,B.thumb),{width:B.thumb.w,height:B.thumb.h,alignItems:"center",justifyContent:"center"}],children:Z(B.thumbIcon)})]}):/* @__PURE__ */n.jsxs(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",style:[ra(v,H?j.img:B.img),{width:"100%",aspectRatio:L,overflow:"hidden"}],children:[q?/* @__PURE__ */n.jsx(FadeImage,{testID:N("image"),source:q,resizeMode:"cover",onError:Q,style:{position:"absolute",top:0,right:0,bottom:0,left:0}},typeof u=="string"?u:JSON.stringify(u)):null,W]}),te=/* @__PURE__ */n.jsxs(n.Fragment,{children:[ee,
79
80
  /* @__PURE__ */n.jsx(t.View,{style:H?null:{marginTop:B.title.marginTop,marginHorizontal:P?C.titleInset:0},children:g&&!M?/* @__PURE__ */n.jsx(t.Pressable,{onPress:g,accessibilityRole:"button",accessibilityLabel:o,children:V}):V}),l&&!H&&!P?/* @__PURE__ */n.jsx(Text2,{style:[O(B.text),{marginTop:B.text.marginTop}],children:l}):null,J]});return M&&c?/* @__PURE__ */n.jsxs(t.View,{testID:x,style:[..._,R&&!S?{transform:[{scale:E}]}:null],children:[te,
80
- /* @__PURE__ */n.jsx(t.Pressable,{testID:N("cover"),onPress:g,onPressIn:()=>D(true),onPressOut:()=>D(false),accessibilityRole:"button",accessibilityLabel:m??o,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):M?/* @__PURE__ */n.jsx(t.Pressable,{testID:x,onPress:g,accessibilityRole:"button",accessibilityLabel:m??o,style:({pressed:e})=>[..._,e&&!S&&E!==1?{transform:[{scale:E}]}:null],children:te}):/* @__PURE__ */n.jsx(t.View,{testID:x,style:_,children:te})}var Va=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),Ma=/* @__PURE__ */new WeakMap;function Na(e){let t=Ma.get(e);if(t!==void 0)return t;let n=e.color,r=e.brightness==="dark",i=r?{dark:r,ink:n.text.primary,ink2:n.text.secondary,ink3:n.text.muted,paper:n.background,card:n.surface,line:n.borderRingCream,tile:n.surfaceSubtle,shadow:n.shadow,riskBg:n.badgeBgCritical,riskInk:n.danger,riskDot:n.danger,clearBg:n.badgeBgPositive,clearInk:n.success,clearDot:n.success,watchDot:n.warningStrong}:{dark:r,...Va},o=(e,t)=>ho(e,t,oo(t),Ua),l=(e,t)=>contrastRatio(e,t)>=Ua?e:io(t,Ua),a=[i.card,i.paper].map(e=>uo(n.brandSoft,e)??e),s={primary:n.primary,onPrimary:l(n.onPrimary,n.primary),accent:n.accent,onAccent:l(n.onAccent,n.accent),link:o(n.linkInk,[i.card,i.paper,i.tile]),badge:n.brandSoft,onBadge:o(n.brandInk,a)},c=/* @__PURE__ */Object.freeze({...i,...s});return Ma.set(e,c),c}var Ua=4.5;var qa="#DAD7D1";function Ga(e,t=false){let n=t=>e.roles[t]??t,r=t=>e.dark?n("line"):t,i=(e,t={})=>({bg:e,...t}),o=e=>({color:e}),l={color:"",x:0,y:0,blur:0,spread:0},a=Object.fromEntries(Object.entries({planInk:"primary",planOnInk:"onPrimary",planAccent:"accent",planLink:"link",planAccentWash:"accent4",planAccentChip:"accentChip",planLinkWash:"linkWash",planLinkChip:"linkChip"}).flatMap(([t,n])=>e.roles[n]===void 0?[]:[[t,e.roles[n]]]));return{colors:{bg:n("paper"),surface:n("card"),text:n("black"),ink:n(t?"ink":"primary"),onInk:n("onPrimary"),muted:n("ink3"),line:n("line"),scrim:n("scrim"),grab:r(qa),focus:n("ink"),...a},type:e.type,motion:{reduced:e.reduced},metrics:{variants:{drawer:{frame:i(n("card"),{color:n("ink")}),grab:i(r(qa)),kicker:o(n("ink3")),close:{color:n("ink")},title:{color:n("ink"),wrap:"auto"},text:o(n("black")),scrim:n("scrim")},segmented:{track:i(n("card"),{edge:{color:r(qa)}}),label:o(n("ink")),chosen:i(n("primary")),chosenLabel:o(n("onPrimary"))},stepper:{track:i(n("card"),{edge:{color:r(qa)}}),button:{color:n("ink")},value:o(n("ink"))},summary:{box:i(n("card"),e.dark?{shadow:l}:{}),term:o(n("ink2")),value:o(n("ink")),totalTerm:o(n("ink")),total:o(n("ink")),renewTerm:o(n("ink2")),renew:o(n("ink")),inset:i(n("paper"))},toast:{box:i(n("ink")),text:o(n("onInk"))},focus:{color:n("ink")}}}}}var Ka=/* @__PURE__ */new WeakMap;function Xa(e,t,n,r=false){let i=Ka.get(t);i===void 0&&(i={fill:/* @__PURE__ */new WeakMap,outline:/* @__PURE__ */new WeakMap},Ka.set(t,i));let o=i[r?"outline":"fill"],l=o.get(e);return l===void 0&&(l=resolveTheme(Ga(n(),r),t),o.set(e,l)),l}var Ya=e=>{let t=e.type.namedFaces,n=t=>face(e,t).fontFamily;return{family:n("regular"),mono:n("mono"),faces:{regular:n("regular"),medium:n("medium"),bold:n("bold"),mono:n("mono"),monoBold:n("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Ja=/* @__PURE__ */new WeakMap;function Qa(e,t,n=dl){if(n!==dl)return Za(e,t,n);let r=Ja.get(t);r===void 0&&Ja.set(t,r=/* @__PURE__ */new WeakMap);let i=r.get(e);return i===void 0&&r.set(e,i=Za(e,t,n)),i}function Za(e,t,n){let r=e.color,i=Di.color,o=e.brightness==="dark",l=o?$i:Di,a=e=>r[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),o)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=l.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=l.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,r=n.space,i=e=>Math.round(e*t);c.space={1:i(r[1]),2:i(r[2]),3:i(r[3]),4:i(r[4]),5:i(r[5]),6:i(r[6]),7:i(r[7]),8:i(r[8]),9:i(r[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,y=f.relaxed!==m.relaxed||f.tight!==m.tight,b=e.type.scaleCaps,w=l.type.scaleCaps,x=b.content!==w.content||b.heading!==w.heading||b.control!==w.control||b.compact!==w.compact||b.badge!==w.badge,k=g||y||x;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...y?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...x?{scaleCaps:{content:b.content,heading:b.heading,control:b.control,compact:b.compact,badge:b.badge}}:{},...t(e)},e.motion.reducedMotion&&!n.motion.reduced&&(c.motion={reduced:true});let v=k||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==Di.type.families.regular,S=ns(e,l,s.surface??n.colors.surface),T=Object.entries(S).filter(([e,t])=>t!==n.colors[e]);return T.length>0&&(c.colors={...s,...Object.fromEntries(T)}),v?{name:"partner",...c}:c}var es={planAccent:dl.colors.planAccent,planLink:dl.colors.planLink},ts={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function ns(e,t,n){let r=Na(e),i=Na(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:r.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),r.link!==i.link&&(l.planLink=r.link);let a={accent:l.planAccent??es.planAccent,link:l.planLink??es.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=n.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,n]]of Object.entries(ts)){let i=s[e];i!==void 0?l[e]=i:c&&(l[e]=Hl(a[t],n,r.card,r.card))}return l}function rs(t){let n=useEverfurTheme();return e.useMemo(()=>Qa(n,t),[n,t])}function is(e,t){return Xa(e,dl,()=>({roles:t,dark:Na(e).dark,type:{...Ya(e),scaleCaps:e.type.scaleCaps},reduced:e.motion.reducedMotion}))}function PlanDs(t){return e.createElement(ThemeProvider,{theme:t.theme},t.children)}var os=/* @__PURE__ */Object.freeze({root:{backgroundColor:"$paper",color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:28,paddingLeft:16,paddingRight:16,paddingTop:16},pageFine:{color:"$ink3",fontFamily:"sans",fontSize:12.5,lineHeight:18.13,marginBottom:0,marginLeft:0,marginRight:0,marginTop:16,textAlign:"center"},tools:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:8,justifyContent:"space-between",lineHeight:25.5,marginBottom:2,marginLeft:2,marginRight:-6,marginTop:-8},toolsEyebrow:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.77,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},toolsEnd:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5},orders:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:6,lineHeight:22.5,minHeight:44,paddingBottom:0,paddingLeft:8,paddingRight:8,paddingTop:0},ordersIcon:{height:21,width:21},cart:{alignItems:"center",backgroundColor:"transparent",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,height:44,justifyContent:"center",lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,position:"relative",width:44},cartIcon:{height:26,width:26},cartCount:{backgroundColor:"$riskDot",borderRadius:999,color:"$card",fontFamily:"sans",fontSize:12,fontVariant:["tabular-nums"],fontWeight:"800",height:20,lineHeight:20,minWidth:20,paddingBottom:0,paddingLeft:5,paddingRight:5,paddingTop:0,position:"absolute",right:1,ring:[{width:2,color:"$paper"}],textAlign:"center",top:3},head:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:["fr",56],lineHeight:25.5,paddingBottom:0,paddingLeft:2,paddingRight:2,paddingTop:2},eyebrow:{color:"$ink2",fontFamily:"mono",fontSize:15,letterSpacing:1.05,lineHeight:22.5,marginBottom:6,marginLeft:0,marginRight:0,marginTop:6,textTransform:"uppercase"},title:{color:"$ink",fontFamily:"serif",fontSize:29,fontWeight:"800",letterSpacing:-.29,lineHeight:30.74,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},subtitle:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6},headImage:{backgroundColor:"$tile",borderRadius:28,height:56,ring:[{width:3,color:"$paper"},{width:5.5,color:"$accent"}],width:56},by:{alignItems:"center",backgroundColor:"$card",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[40,"fr",22],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:10,paddingLeft:12,paddingRight:12,paddingTop:10,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},byImage:{backgroundColor:"$tile",borderRadius:20,height:40,width:40},byName:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:18.75},byRole:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.53,lineHeight:15.75,marginTop:2,textTransform:"uppercase"},byOk:{color:"$link",height:22,width:22},byIcon:{alignItems:"center",backgroundColor:"$tile",borderRadius:20,color:"$ink",height:40,justifyContent:"center",width:40},byIconSvg:{height:20,width:20},need:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},needKicker:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"800",gap:8,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},sources:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"800",gap:4,lineHeight:22.5,marginLeft:"auto"},source:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$tile",borderRadius:999,color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:12,fontWeight:"700",height:24,lineHeight:18,paddingBottom:0,paddingLeft:9,paddingRight:9,paddingTop:0},sourceDna:{backgroundColor:"$linkWash",color:"$link"},needTitle:{color:"$ink",fontFamily:"sans",fontSize:19,fontWeight:"800",lineHeight:23.18,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12},needRisk:{alignItems:"baseline",color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:15,gap:9,grid:[9,"fr"],lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6},needRiskLead:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:21.75},dot:{alignSelf:"flex-start",borderRadius:4.5,flexGrow:0,flexShrink:0,height:9,width:9},dotRisk:{backgroundColor:"$riskDot"},odds:{alignItems:"center",backgroundColor:"$accent4",borderRadius:14,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,marginTop:12,paddingBottom:10,paddingLeft:14,paddingRight:14,paddingTop:10},oddsKicker:{color:"$ink2",fontFamily:"sans",fontSize:13.5,fontWeight:"600",lineHeight:18.23,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:135},oddsTag:{alignSelf:"flex-start",backgroundColor:"$card",borderRadius:5,color:"$ink",fontFamily:"mono",fontSize:10,fontWeight:"600",letterSpacing:.6,lineHeight:13.5,marginTop:3,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},oddsNumbers:{alignItems:"center",color:"$ink",columnGap:6,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:["auto","auto","auto"],justifyItems:"flex-end",lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,rowGap:0},oddsFrom:{color:"$ink3",fontFamily:"sans",fontSize:17,fontWeight:"700",lineHeight:25.5,textDecorationLine:"line-through"},oddsIcon:{color:"$ink3",height:16,width:16},oddsTo:{color:"$ink",fontFamily:"serif",fontSize:28,fontWeight:"800",lineHeight:28},oddsLabel:{color:"$link",fontFamily:"sans",fontSize:12.5,fontWeight:"700",lineHeight:18.75,marginTop:3},says:{alignItems:"flex-start",backgroundColor:"$paper",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[32,"fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14},saysImage:{borderRadius:16,height:32,width:32},saysText:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},saysBy:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontWeight:"800",lineHeight:20.3,marginRight:2},saysSerif:{color:"$ink",fontFamily:"serif",fontSize:17,fontWeight:"800",letterSpacing:-.17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},saysKicker:{alignItems:"center",color:"$ink3",flexDirection:"row",fontFamily:"mono",fontSize:10.5,justifyContent:"space-between",letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},saysQuote:{color:"$ink",fontFamily:"serif",fontSize:17,fontWeight:"800",letterSpacing:-.17,lineHeight:23.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8},tag:{backgroundColor:"$card",borderRadius:5,color:"$ink",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:14,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},jump:{alignItems:"center",backgroundColor:"$primary",borderRadius:14,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[44,"fr","auto"],lineHeight:25.5,marginTop:12,paddingBottom:8,paddingLeft:8,paddingRight:14,paddingTop:8,textAlign:"left",width:"100%"},jumpNoImage:{grid:["fr","auto"]},jumpImage:{backgroundColor:"$card",borderRadius:10,height:44,width:44},jumpSmall:{color:"$accent",fontFamily:"sans",fontSize:13,fontWeight:"800",lineHeight:19.5,textAlign:"left"},jumpStrong:{color:"$onPrimary",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:18.75,textAlign:"left"},jumpGo:{color:"$onPrimary",fontFamily:"sans",fontSize:14,fontWeight:"800",lineHeight:21,textAlign:"left"},steps:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:12,paddingLeft:12,paddingRight:12,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},stepsHead:{alignItems:"baseline",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,paddingBottom:0,paddingLeft:4,paddingRight:4,paddingTop:0},stepsTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:19,fontWeight:"800",gap:10,lineHeight:22.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},stepsLabel:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.55,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},n:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:12.5,fontWeight:"800",height:24,justifyContent:"center",lineHeight:15,width:24},tips:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:-12,marginRight:-12,marginTop:10,paddingBottom:2,paddingLeft:12,paddingRight:12,paddingTop:0},tip:{borderRadius:18,color:"$ink",flexBasis:"78%",flexDirection:"column",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,maxWidth:280,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:14},tipY:{backgroundColor:"$accentChip"},tipC:{backgroundColor:"$linkChip"},tipG:{backgroundColor:"$clearChip"},tipR:{backgroundColor:"$riskChip"},tipTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,justifyContent:"space-between",lineHeight:25.5},tipIcon:{color:"$ink",height:26,width:26},tipN:{color:"$ink",fontFamily:"serif",fontSize:30,fontWeight:"900",lineHeight:30},tipStrong:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:21.25,marginTop:14},tipSmall:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginTop:4},tipEm:{color:"$link",fontFamily:"mono",fontSize:10.5,fontStyle:"normal",letterSpacing:.42,lineHeight:15.75,marginTop:"auto",paddingTop:10,textTransform:"uppercase"},tipList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},tipRow:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[28,"fr"],lineHeight:25.5,paddingBottom:10,paddingLeft:6,paddingRight:6,paddingTop:10},tipRowN:{alignItems:"center",backgroundColor:"$accent4",borderRadius:8,color:"$ink",fontFamily:"serif",fontSize:16,fontWeight:"800",height:28,justifyContent:"center",lineHeight:16,width:28},tipRowStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20,marginTop:3},tipRowSmall:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginTop:3},tipRowEm:{color:"$link",fontFamily:"mono",fontSize:10.5,fontStyle:"normal",letterSpacing:.42,lineHeight:15.75,marginTop:5,textTransform:"uppercase"},sec:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},secTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:19,fontWeight:"800",gap:10,lineHeight:22.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},secN:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:12.5,fontWeight:"800",height:24,justifyContent:"center",lineHeight:15,width:24},pick:{backgroundColor:"transparent",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},pickTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[76,"fr"],lineHeight:25.5},pickImage:{backgroundColor:"$paper",borderRadius:14,height:76,overflow:"hidden",width:76},pickTitle:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:20.4,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},stars:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:13.5,fontWeight:"800",gap:4,lineHeight:20.25,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},starsIcon:{color:"$watchDot",height:14,width:14},starsLabel:{color:"$ink3",fontFamily:"sans",fontSize:13.5,fontWeight:"500",lineHeight:20.25},pickLine:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginBottom:0,marginLeft:0,marginRight:0,marginTop:3},reviews:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:-16,marginRight:-16,marginTop:12,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0},review:{backgroundColor:"$paper",borderRadius:14,color:"$ink",flexBasis:"78%",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:280,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},reviewsStack:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:12},reviewCard:{backgroundColor:"$paper",borderRadius:14,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},reviewStars:{color:"$watchDot",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:1,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},reviewStar:{height:13,width:13},reviewText:{color:"$ink",fontFamily:"sans",fontSize:15,lineHeight:21,marginBottom:0,marginLeft:0,marginRight:0,marginTop:5},reviewBy:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:19.5,marginTop:4},why:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$ink"},lineHeight:25.5,marginTop:14,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},whyMini:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},whyList:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},whyRow:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[58,"fr"],lineHeight:25.5,marginTop:10},whyStrong:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:19.5},whySmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:1},chip:{alignItems:"center",borderRadius:6,color:"$ink",fontFamily:"mono",fontSize:10.5,fontWeight:"700",height:22,justifyContent:"center",letterSpacing:.42,lineHeight:15.75,textTransform:"uppercase"},chipDna:{backgroundColor:"$linkWash",color:"$link"},chipAsk:{backgroundColor:"$accent4",color:"$ink"},chipRec:{backgroundColor:"$tile",color:"$ink2"},score:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"800",gap:8,justifyContent:"space-between",lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:11,paddingLeft:14,paddingRight:12,paddingTop:11},scoreValue:{color:"$accent",flexGrow:0,flexShrink:0,fontFamily:"mono",fontSize:16,fontWeight:"700",lineHeight:20.8},dose:{backgroundColor:"$linkWash",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:10,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:12},doseMini:{color:"$link",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},doseList:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:8,grid:["fr","fr","fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},doseItem:{alignItems:"center",backgroundColor:"$card",borderRadius:12,color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,paddingBottom:10,paddingLeft:4,paddingRight:4,paddingTop:10,textAlign:"center"},doseValue:{color:"$ink",fontFamily:"mono",fontSize:21,fontVariant:["tabular-nums"],fontWeight:"700",lineHeight:23.1,textAlign:"center"},doseLabel:{color:"$ink2",fontFamily:"sans",fontSize:12.5,lineHeight:16.25,textAlign:"center"},doseNote:{color:"$link",fontFamily:"sans",fontSize:14,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10},ingredients:{color:"$ink",flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12},ingredient:{backgroundColor:"$tile",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:13.5,fontWeight:"600",lineHeight:20.25,paddingBottom:6,paddingLeft:10,paddingRight:10,paddingTop:6},opts:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:14},opt:{alignItems:"center",backgroundColor:"$card",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,inner:{width:1.5,color:"$n_DEDCD7"},justifyContent:"space-between",lineHeight:25.5,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14,textAlign:"left",width:"100%"},optOn:{inner:{width:2.5,color:"$ink"}},optOnce:{backgroundColor:"$paper",inner:null,paddingBottom:10,paddingLeft:14,paddingRight:14,paddingTop:10,shadow:null},optOnceOn:{backgroundColor:"$card",inner:{width:2,color:"$ink"}},optText:{alignItems:"flex-start",color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,textAlign:"left"},optStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24,textAlign:"left"},optOnceStrong:{fontSize:15,fontWeight:"700",lineHeight:22.5},optSmall:{color:"$ink2",fontFamily:"sans",fontSize:13.5,lineHeight:20.25,textAlign:"left"},optOnceSmall:{fontSize:13,lineHeight:19.5},optTag:{backgroundColor:"$riskInk",borderRadius:6,color:"$card",fontFamily:"sans",fontSize:12,fontWeight:"800",lineHeight:18,marginBottom:4,paddingBottom:2,paddingLeft:8,paddingRight:8,paddingTop:2,textAlign:"left"},price:{alignItems:"flex-end",color:"$ink",columnGap:8,flexDirection:"column",flexWrap:"nowrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,minWidth:0,rowGap:0,textAlign:"left"},priceValue:{color:"$ink",fontFamily:"sans",fontSize:24,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:26.4,textAlign:"left"},priceWas:{color:"$riskInk",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,textAlign:"left",textDecorationLine:"line-through"},optPrice:{color:"$ink",fontFamily:"sans",fontSize:18,fontWeight:"800",lineHeight:27,textAlign:"left"},optOncePrice:{color:"$ink2",fontSize:15,fontWeight:"700",lineHeight:22.5},buy:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,marginTop:12},button:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:25.5,minHeight:52,paddingBottom:0,paddingLeft:20,paddingRight:20,paddingTop:0,textDecorationLine:"none",width:"100%"},buttonDisabled:{opacity:.32},proof:{alignItems:"center",color:"$riskInk",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"800",gap:6,justifyContent:"center",lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10},proofIcon:{flexGrow:0,flexShrink:0,height:21,marginTop:-2,width:21},trust:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:6,grid:["fr","fr","fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},trustItem:{alignItems:"center",color:"$ink2",fontFamily:"sans",fontSize:12.5,fontWeight:"600",gap:4,lineHeight:16.25,textAlign:"center"},trustIcon:{color:"$link",height:20,width:20},on:{alignItems:"center",backgroundColor:"$clearBg",borderRadius:14,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[34,"fr","auto"],lineHeight:25.5,marginTop:12,paddingBottom:10,paddingLeft:12,paddingRight:10,paddingTop:10},onIcon:{alignItems:"center",backgroundColor:"$clearDot",borderRadius:17,color:"$card",fontFamily:"sans",fontSize:17,height:34,justifyContent:"center",lineHeight:25.5,width:34},onIconSvg:{height:18,width:18},onStrong:{color:"$clearInk",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:18.75},onSmall:{color:"$ink2",fontFamily:"sans",fontSize:13,lineHeight:17.55,marginTop:1},onButton:{backgroundColor:"$card",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"800",inner:{width:1.5,color:"$ink"},lineHeight:21,minHeight:38,paddingBottom:0,paddingLeft:14,paddingRight:14,paddingTop:0},more:{color:"$ink",columnGap:18,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8,rowGap:0},moreButton:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,minHeight:34,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},fine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8},others:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},sign:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$n_DEDCD7"},lineHeight:25.5,marginTop:12,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14},signUrgent:{backgroundColor:"$riskBg",inner:null,shadow:null},signTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"800",gap:8,lineHeight:20,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},signUrgentTitle:{color:"$riskInk"},signUrgentIcon:{height:20,width:20},signBody:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:4},signUrgentBody:{color:"$ink"},questionsKicker:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20,marginBottom:0,marginLeft:0,marginRight:0,marginTop:18},questions:{color:"$ink",fontFamily:"sans",fontSize:15,gap:6,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,paddingLeft:22},questionsAfterKicker:{marginTop:6},add:{alignItems:"center",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"800",inner:{width:2,color:"$ink"},justifyContent:"center",lineHeight:24,marginTop:14,minHeight:48,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0,width:"100%"},addOn:{backgroundColor:"$clearBg",color:"$clearInk",inner:null,shadow:null},askRow:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[40,"fr",18],lineHeight:25.5,marginTop:10,paddingBottom:12,paddingLeft:12,paddingRight:14,paddingTop:12,textAlign:"left",width:"100%"},askRowInSec:{marginTop:12},askRowIcon:{alignItems:"center",backgroundColor:"$card",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,textAlign:"left",width:40},askRowIconSvg:{height:21,width:21},askRowStrong:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:20.15,textAlign:"left"},askRowSmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:1,textAlign:"left"},askRowChev:{color:"$ink2",height:18,width:18},extras:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginTop:22},extrasTitle:{color:"$ink3",fontFamily:"mono",fontSize:11,fontWeight:"400",letterSpacing:.77,lineHeight:12.65,marginBottom:0,marginLeft:4,marginRight:4,marginTop:0,textTransform:"uppercase"},extra:{alignItems:"flex-start",backgroundColor:"$card",borderRadius:22,color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[56,"fr"],lineHeight:25.5,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14,rowGap:4,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},extraKit:{backgroundColor:"$linkWash",inner:null,shadow:null},extraImage:{backgroundColor:"$card",borderRadius:14,height:56,width:56},extraKitImage:{backgroundColor:"$card"},extraIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:14,color:"$link",height:56,justifyContent:"center",width:56},extraIconSvg:{height:26,width:26},extraTitle:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:20.4,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},extraTitleSerif:{fontFamily:"serif",fontSize:21,fontWeight:"800",letterSpacing:-.21,lineHeight:25.2},extraBody:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:3},extraPrice:{alignItems:"center",color:"$ink",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,rowGap:0},extraPriceValue:{color:"$ink",fontFamily:"sans",fontSize:19,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:26.6},extraPriceWas:{color:"$ink3",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:19.6,textDecorationLine:"line-through"},extraGo:{backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",fontFamily:"sans",fontSize:14.5,fontWeight:"800",lineHeight:21.75,marginTop:8,minHeight:40,paddingBottom:0,paddingLeft:18,paddingRight:18,paddingTop:0},extraGoOn:{backgroundColor:"$clearBg",color:"$clearInk"},wait:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},waitTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[46,"fr"],lineHeight:25.5},waitTile:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:13,color:"$link",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:22,height:46,justifyContent:"center",lineHeight:33,width:46},waitTileSvg:{height:23,width:23},waitMini:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},waitTitle:{color:"$ink",fontFamily:"serif",fontSize:26,fontWeight:"800",letterSpacing:-.26,lineHeight:27.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},waitKey:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24,marginBottom:0,marginLeft:0,marginRight:0,marginTop:18},waitText:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15.5,fontWeight:"700",gap:8,lineHeight:23.25,marginBottom:12,marginLeft:0,marginRight:0,marginTop:16},waitTextSvg:{color:"$link",flexGrow:0,flexShrink:0,height:20,width:20},waitButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textDecorationLine:"none",width:"100%"},track:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},trackStep:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[22,"fr"],lineHeight:25.5,paddingBottom:16,position:"relative"},trackStepLast:{paddingBottom:0},trackLine:{backgroundColor:"$n_E2DFD9",borderRadius:1,bottom:-2,left:10,position:"absolute",top:20,width:2},trackLineDone:{backgroundColor:"$primary"},trackDot:{alignItems:"center",backgroundColor:"$card",borderRadius:11,height:22,inner:{width:2,color:"$n_CFCBC4"},justifyContent:"center",position:"relative",width:22,zIndex:1},trackDotDone:{backgroundColor:"$primary",inner:null,shadow:null},trackDotNow:{backgroundColor:"$accent",inner:{width:2,color:"$ink"}},trackDotSvg:{color:"$card",height:13,width:13},trackTitle:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:20.15},trackTitleTodo:{color:"$ink3",fontWeight:"700"},trackDetail:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginTop:1},trackTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:13.5,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},next:{backgroundColor:"$card",borderRadius:18,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:22,paddingBottom:4,paddingLeft:16,paddingRight:16,paddingTop:4,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06},textAlign:"left"},nextIn:{backgroundColor:"$paper",inner:null,marginTop:8,shadow:null},nextRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[36,"fr"],lineHeight:25.5,paddingBottom:10,paddingLeft:0,paddingRight:0,paddingTop:10,textAlign:"left"},nextIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:36,justifyContent:"center",lineHeight:25.5,textAlign:"left",width:36},nextIconSvg:{height:19,width:19},nextIconImage:{borderRadius:11,height:"100%",width:"100%"},nextLabel:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.53,lineHeight:15.75,textAlign:"left",textTransform:"uppercase"},nextText:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"600",lineHeight:20.25,marginTop:1,textAlign:"left"},done:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:20,paddingLeft:22,paddingRight:22,paddingTop:40,textAlign:"center"},doneCheck:{alignItems:"center",backgroundColor:"$accent",borderRadius:38,color:"$ink",fontFamily:"sans",fontSize:17,height:76,justifyContent:"center",lineHeight:25.5,marginBottom:0,marginLeft:"auto",marginRight:"auto",marginTop:0,textAlign:"center",width:76},doneCheckSvg:{height:38,width:38},doneTitle:{color:"$ink",fontFamily:"serif",fontSize:34,fontWeight:"800",letterSpacing:-.34,lineHeight:39.1,marginBottom:0,marginLeft:0,marginRight:0,marginTop:20,textAlign:"center"},doneWhen:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:24,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,textAlign:"center"},doneWho:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2,textAlign:"center"},pushFoot:{backgroundColor:"$paper",borderTopColor:"$line",borderTopWidth:1,color:"$ink",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:34,paddingLeft:18,paddingRight:18,paddingTop:12},pushFootStack:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5},shop:{color:"$ink",fontFamily:"sans",fontSize:17,gap:12,lineHeight:25.5,paddingBottom:28,paddingLeft:18,paddingRight:18,paddingTop:8},shopTitle:{color:"$ink",fontFamily:"serif",fontSize:29,fontWeight:"800",letterSpacing:-.29,lineHeight:31.32,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},shopSub:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:-6},shopKey:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:18.4,marginBottom:-4,marginLeft:2,marginRight:2,marginTop:6},shopCard:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:14,paddingLeft:16,paddingRight:16,paddingTop:14,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},shopFine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},shopFineCenter:{marginTop:14,textAlign:"center"},shopEmpty:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:8,paddingLeft:12,paddingRight:12,paddingTop:48,textAlign:"center"},shopEmptyTile:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:20,color:"$link",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:22,height:72,justifyContent:"center",lineHeight:33,marginBottom:8,textAlign:"center",width:72},shopEmptyTileSvg:{height:34,width:34},shopEmptyTitle:{color:"$ink",fontFamily:"serif",fontSize:28,fontWeight:"800",letterSpacing:-.28,lineHeight:30.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},shopEmptyText:{color:"$ink2",fontFamily:"sans",fontSize:15.5,lineHeight:22.48,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:298.07,textAlign:"center"},shopEmptyButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,marginTop:12,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textAlign:"center",textDecorationLine:"none"},shopLink:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},shopActions:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:4,lineHeight:25.5,marginTop:4},orderList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},order:{alignItems:"center",backgroundColor:"$card",borderRadius:22,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:["fr",18],lineHeight:25.5,paddingBottom:14,paddingLeft:16,paddingRight:14,paddingTop:14,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06},textAlign:"left",width:"100%"},orderChev:{color:"$ink3",height:18,width:18},orderTop:{alignItems:"center",color:"$ink",columnGap:10,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,rowGap:4,textAlign:"left"},orderNo:{color:"$ink3",fontFamily:"mono",fontSize:12,letterSpacing:.48,lineHeight:18,textAlign:"left"},orderWhat:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20.8,marginTop:8,textAlign:"left"},orderMeta:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:2,textAlign:"left"},orderPics:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginTop:10,textAlign:"left"},orderPic:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:10,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,overflow:"hidden",textAlign:"left",width:40},orderPicImage:{height:"100%",width:"100%"},orderPicSvg:{height:20,width:20},pill:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$accent3",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:13,fontWeight:"800",gap:6,lineHeight:19.5,minHeight:26,paddingBottom:0,paddingLeft:10,paddingRight:10,paddingTop:0,textAlign:"left"},pillDone:{backgroundColor:"$clearBg",color:"$clearInk"},pillSub:{backgroundColor:"$linkWash",color:"$link"},cartItems:{color:"$ink",fontFamily:"sans",fontSize:17,gap:18,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},cartItem:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[64,"fr"],lineHeight:25.5},cartItemImage:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:14,color:"$link",fontFamily:"sans",fontSize:17,height:64,justifyContent:"center",lineHeight:25.5,overflow:"hidden",width:64},cartItemImageSvg:{height:28,width:28},cartItemTitle:{color:"$ink",fontFamily:"sans",fontSize:16.5,fontWeight:"800",lineHeight:20.63,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},cartItemPrice:{alignItems:"center",color:"$ink",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:3,rowGap:2},cartItemPriceValue:{color:"$ink",fontFamily:"sans",fontSize:16,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:24},cartItemPriceWas:{color:"$ink3",fontFamily:"sans",fontSize:14,fontWeight:"600",lineHeight:21,textDecorationLine:"line-through"},cartItemPriceNote:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:21},cartItemActions:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:16,lineHeight:25.5,marginTop:8},stepper:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$card",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[40,30,40],height:40,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5},stepperButton:{alignItems:"center",backgroundColor:"transparent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},stepperButtonDisabled:{opacity:.3},stepperButtonSvg:{height:16,width:16},stepperValue:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:23.25,textAlign:"center"},remove:{backgroundColor:"transparent",color:"$ink2",fontFamily:"sans",fontSize:14.5,fontWeight:"700",lineHeight:21.75,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},mode:{color:"$ink",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginTop:8},modeButton:{alignItems:"center",backgroundColor:"$paper",borderRadius:12,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"700",gap:10,justifyContent:"space-between",lineHeight:18.85,minHeight:44,paddingBottom:8,paddingLeft:12,paddingRight:12,paddingTop:8,textAlign:"left"},modeButtonOn:{backgroundColor:"$card",inner:{width:2,color:"$ink"}},modePrice:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:18.85,textAlign:"left"},every:{backgroundColor:"$card",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:4,grid:["fr","fr","fr"],inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5,marginTop:8,paddingBottom:4,paddingLeft:4,paddingRight:4,paddingTop:4},everyButton:{backgroundColor:"transparent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,minHeight:36,paddingBottom:0,paddingLeft:6,paddingRight:6,paddingTop:0,textAlign:"center"},everyButtonOn:{backgroundColor:"$primary",color:"$onPrimary"},summary:{backgroundColor:"$card",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:6,paddingLeft:16,paddingRight:16,paddingTop:6,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},summaryRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],gap:12,justifyContent:"space-between",lineHeight:22.5,minHeight:34},summaryLabel:{alignItems:"center",alignSelf:"flex-start",color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],gap:8,lineHeight:22.5},summaryTotal:{fontSize:17,fontWeight:"800",lineHeight:25.5,minHeight:42},summaryTotalLabel:{color:"$ink"},summaryRenew:{fontSize:14,lineHeight:21,marginTop:-6,minHeight:28},summaryTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,fontVariant:["tabular-nums"],letterSpacing:.6,lineHeight:15,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},foot:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5},footFine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},co:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginTop:2},coProduct:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[56,"fr"],lineHeight:25.5},coProductImage:{alignItems:"center",backgroundColor:"$accent3",borderRadius:14,color:"$ink",fontFamily:"sans",fontSize:17,height:56,justifyContent:"center",lineHeight:25.5,overflow:"hidden",width:56},coProductImageSvg:{height:30,width:30},coProductTitle:{color:"$ink2",fontFamily:"sans",fontSize:14,fontWeight:"800",lineHeight:18.9,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},coProductLine:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},coOptions:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},coOption:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5},coOptionOn:{backgroundColor:"$accent4",inner:{width:2,color:"$ink"}},coOptionHit:{alignItems:"flex-start",backgroundColor:"transparent",borderRadius:16,color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[22,"fr","auto"],lineHeight:25.5,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12,rowGap:2,textAlign:"left",width:"100%"},coOptionStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:21.6,textAlign:"left"},coOptionSmall:{color:"$ink2",fontFamily:"sans",fontSize:13,lineHeight:18.2,textAlign:"left"},coOptionPrice:{color:"$ink",fontFamily:"sans",fontSize:16,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:21.6,textAlign:"right"},coOptionPriceWas:{color:"$riskInk",fontFamily:"sans",fontSize:13,fontVariant:["tabular-nums"],fontWeight:"600",lineHeight:17.55,textAlign:"right",textDecorationLine:"line-through"},coRadio:{alignItems:"center",borderRadius:11,height:22,inner:{width:2,color:"$n_BDB9B2"},justifyContent:"center",width:22},coRadioOn:{inner:{width:7,color:"$ink"}},coKicker:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:6,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},coWhen:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:12,paddingLeft:48,paddingRight:14,paddingTop:0},coItems:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},coItem:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,gap:12,grid:[44,"fr","auto"],lineHeight:22.5},coItemPic:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:10,color:"$link",fontFamily:"sans",fontSize:15,height:44,justifyContent:"center",lineHeight:22.5,overflow:"hidden",width:44},coItemStrong:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:19.38},coItemSmall:{color:"$ink3",fontFamily:"sans",fontSize:13.5,lineHeight:20.25},coItemValue:{color:"$ink",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:22.5},coRows:{backgroundColor:"$paper",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:2,paddingLeft:14,paddingRight:14,paddingTop:2},coRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:14.5,gap:10,grid:[20,73.6,"fr"],lineHeight:21.75,minHeight:40},coRowSvg:{color:"$ink2",height:20,width:20},coRowLabel:{color:"$ink3",fontFamily:"sans",fontSize:14.5,lineHeight:21.75},coRowValue:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontWeight:"700",lineHeight:21.75},coRowsShop:{backgroundColor:"$card",shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},coFine:{color:"$ink3",fontFamily:"sans",fontSize:12.5,lineHeight:18.13,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},coSummary:{backgroundColor:"$paper",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:null,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:6,paddingLeft:16,paddingRight:16,paddingTop:6,shadow:null},weightField:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:8,lineHeight:22.5,marginTop:14},weightInputWrap:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,position:"relative"},weightInput:{backgroundColor:"$card",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:24,fontVariant:["tabular-nums"],fontWeight:"800",height:58,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:36,paddingBottom:0,paddingLeft:18,paddingRight:56,paddingTop:0,width:"100%"},weightInputFocus:{inner:{width:2.5,color:"$ink"}},weightUnit:{color:"$ink3",fontFamily:"sans",fontSize:17,fontWeight:"700",lineHeight:25.5,position:"absolute",right:18,top:"50%"},weightError:{color:"$riskInk",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,minHeight:20},weightActions:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:10},subCard:{alignItems:"center",backgroundColor:"$clearBg",borderRadius:22,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[56,"fr","auto"],lineHeight:25.5,paddingBottom:12,paddingLeft:12,paddingRight:14,paddingTop:12},subCardImage:{backgroundColor:"$card",borderRadius:14,height:56,width:56},subCardStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20},subCardSmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginTop:2},subCardButton:{backgroundColor:"$card",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"800",inner:{width:1.5,color:"$ink"},lineHeight:21,minHeight:40,paddingBottom:0,paddingLeft:14,paddingRight:14,paddingTop:0},carrier:{alignItems:"center",color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[40,"fr"],lineHeight:25.5,rowGap:4},carrierIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,width:40},carrierIconSvg:{height:21,width:21},carrierStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24},carrierSmall:{alignItems:"center",color:"$ink2",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"mono",fontSize:13,letterSpacing:.26,lineHeight:19.5,marginTop:1,rowGap:2},carrierButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:8,inner:{width:1.5,color:"$ink"},justifyContent:"center",lineHeight:22.5,marginTop:10,minHeight:40,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0,textDecorationLine:"none"},carrierWait:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3},carrierTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:15,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},toast:{backgroundColor:"$ink",borderRadius:16,color:"$onInk",fontFamily:"sans",fontSize:14.5,left:16,lineHeight:20.3,opacity:1,paddingBottom:12,paddingLeft:15,paddingRight:15,paddingTop:12,position:"absolute",right:16,top:62,zIndex:50},scrim:{backgroundColor:"$scrim",bottom:0,left:0,opacity:1,position:"absolute",right:0,top:0,zIndex:40},sheet:{backgroundColor:"$card",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:28,borderTopRightRadius:28,bottom:0,color:"$ink",fontFamily:"sans",fontSize:17,left:0,lineHeight:25.5,maxHeight:"80%",paddingBottom:40,paddingLeft:20,paddingRight:20,paddingTop:10,position:"absolute",right:0,zIndex:41},sheetGrab:{backgroundColor:"$n_DAD7D1",borderRadius:3,height:5,marginBottom:10,marginLeft:"auto",marginRight:"auto",marginTop:0,width:40},sheetTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,justifyContent:"space-between",lineHeight:25.5},sheetKicker:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.88,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},sheetClose:{alignItems:"center",backgroundColor:"transparent",borderRadius:20,color:"$ink",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,marginRight:-8,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,position:"relative",width:40},sheetCloseSvg:{height:22,width:22},sheetTitle:{color:"$ink",fontFamily:"serif",fontSize:24,fontWeight:"800",letterSpacing:-.24,lineHeight:27.6,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},sheetBody:{color:"$black",fontFamily:"sans",fontSize:16,gap:10,lineHeight:24,marginTop:12},coButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:17,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:25.5,minHeight:56,paddingBottom:0,paddingLeft:28,paddingRight:28,paddingTop:0,textDecorationLine:"none",width:"100%"},footButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textDecorationLine:"none",width:"100%"},blanksWrap:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14},blanksCard:{backgroundColor:"$card",borderRadius:20,color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:13,paddingLeft:12,paddingRight:12,paddingTop:12,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},blanksHead:{alignItems:"center",color:"$ink3",flexDirection:"row",fontFamily:"sans",fontSize:12.5,fontWeight:"800",gap:10,justifyContent:"space-between",letterSpacing:.88,lineHeight:18.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:2,paddingLeft:2,paddingRight:2,paddingTop:0,textTransform:"uppercase"},blanksPill:{backgroundColor:"$accent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:13,fontStyle:"normal",fontWeight:"800",letterSpacing:.13,lineHeight:19.5,paddingBottom:2,paddingLeft:10,paddingRight:10,paddingTop:2,textTransform:"none"},blanksPillFilled:{backgroundColor:"$clearBg",color:"$clearInk"},blanksList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:7,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},blanksRow:{alignItems:"center",backgroundColor:"$paper",borderRadius:15,color:"$ink",columnGap:11,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[34,"fr"],lineHeight:25.5,paddingBottom:9,paddingLeft:9,paddingRight:12,paddingTop:9},blanksNum:{alignItems:"center",backgroundColor:"$accentChip",borderRadius:11,color:"$ink",fontFamily:"serif",fontSize:22,fontWeight:"800",height:40,justifyContent:"center",lineHeight:33,width:34},blanksText:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:21.6},blanksSource:{color:"$ink3",fontFamily:"sans",fontSize:13.5,lineHeight:20.25},blank:{alignSelf:"flex-start",backgroundColor:"$accent4",borderRadius:6,color:"$ink",fontFamily:"sans",fontSize:16,fontStyle:"normal",fontWeight:"700",height:20,inner:{width:1.5,color:"$accent"},lineHeight:21.6,minWidth:36},blankS:{minWidth:24},blankL:{minWidth:64},blankFilled:{backgroundColor:"transparent",borderRadius:6,height:"auto",inner:null,marginBottom:0,marginLeft:-3,marginRight:-3,marginTop:0,minWidth:0,paddingBottom:0,paddingLeft:3,paddingRight:3,paddingTop:0,shadow:null},manageOrders:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"}}),ls=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var as=/* @__PURE__ */Object.freeze({black:"#000000",onInk:"#FFFFFF",wash:"rgba(38, 37, 35, 0.06)",scrim:"rgba(38, 37, 35, 0.38)",riskChip:"#FFD8D6",clearChip:"#DDEFC4"});function ss(e){let t=e.trim(),n=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t);if(n!==null){let e=n[1].length===3?n[1].split("").map(e=>e+e).join(""):n[1];return[0,2,4].map(t=>parseInt(e.slice(t,t+2),16))}let r=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i.exec(t);return r===null?null:[Number(r[1]),Number(r[2]),Number(r[3])]}function cs(e,t,n){let r=ss(e),i=ss(n);if(r===null||i===null)return n;let o=e=>Math.round(r[e]*t+i[e]*(1-t)).toString(16).padStart(2,"0");return`#${o(0)}${o(1)}${o(2)}`.toUpperCase()}function ds(e){let t=ss(e);return t===null?"transparent":`rgba(${t[0]}, ${t[1]}, ${t[2]}, 0)`}function us(e){let t=e.color,n=Na(e),r=n.card,i=n.link;return{ink:n.ink,ink2:n.ink2,ink3:n.ink3,paper:n.paper,tile:n.tile,line:n.line,card:r,...ps(e)?{paper:t.background}:{},riskBg:n.riskBg,riskInk:n.riskInk,riskDot:n.riskDot,clearBg:n.clearBg,clearInk:n.clearInk,clearDot:n.clearDot,watchDot:n.watchDot,...n.dark?{black:t.text.primary,onInk:t.background,wash:cs(t.text.primary,.08,t.surface),scrim:"rgba(0, 0, 0, 0.6)",riskChip:t.badgeBgCritical,clearChip:t.badgeBgPositive}:as,primary:n.primary,onPrimary:n.onPrimary,accent:n.accent,accent4:cs(t.accent,.17,r),accent3:cs(t.accent,.25,r),accentChip:cs(t.accent,.47,r),link:i,linkWash:(n.dark?void 0:e.slots.planWash?.backgroundColor)??cs(i,.12,r),linkChip:(n.dark?void 0:e.slots.planChip?.backgroundColor)??cs(i,.2,r)}}function ps(e){return e.brightness==="dark"?false:e.meta.displayName!==Di.meta.displayName||e.color.background!==Di.color.background}var hs=["sec","steps","need","by","extra"],gs=["sec","steps","need"],fs=["button","coButton","footButton"];function ms(e,t){if(e.brightness==="dark")return;let n=e.slots.card,r=e.slots.primaryButton,i=(e,n)=>{let r=t[e];t[e]={...r,box:{...r.box,...n}}};if(n!==void 0)for(let e of hs)i(e,{...n.backgroundColor===void 0?{}:{backgroundColor:n.backgroundColor},...n.borderRadius===void 0||!gs.includes(e)?{}:{borderRadius:n.borderRadius}});if(r?.borderRadius!==void 0)for(let e of fs)i(e,{borderRadius:r.borderRadius})}var ys=/* @__PURE__ */new Set(["fontSize","fontWeight","fontFamily","fontStyle","letterSpacing","lineHeight","textTransform","color","textAlign","textDecorationLine","fontVariant"]),bs=/* @__PURE__ */new Set(["justifyItems"]);function ws(e,t,n){let r=Number(n??400);if(t==="serif"){let t=headingFace(e,"bold");return t.fontWeight===void 0?{fontFamily:t.fontFamily}:{fontFamily:t.fontFamily,fontWeight:String(r)}}let i=t==="mono",o=r>=650?i?"monoBold":"bold":r>=450?i?"monoMedium":"medium":i?"mono":"regular",l=face(e,o);return e.type.namedFaces[o]?{fontFamily:l.fontFamily}:{fontFamily:l.fontFamily,fontWeight:String(r)}}function xs(e,t,n,r,i){let o={},l={},a=e=>{if(!e.startsWith("$"))return e;let n=e.slice(1);return n.startsWith("n_")?r?i:`#${n.slice(2)}`:t[n]??e},s=[],c;for(let[t,i]of Object.entries(n))if(!(i===void 0||bs.has(t)||t==="grid"||t==="fontWeight"))if(t==="fontFamily")Object.assign(l,ws(e,String(i),n.fontWeight));else if(t==="shadow"){if(i===null)Object.assign(o,{shadowOpacity:0,elevation:0});else if(!r){let e=i;Object.assign(o,{shadowColor:a(e.color),shadowOpacity:e.opacity,shadowRadius:e.blur,shadowOffset:{width:e.x,height:e.y},elevation:Math.max(1,Math.round(e.blur/2))})}}else if(t==="inner"){let e=i;c=e===null?null:{position:"absolute",top:0,right:0,bottom:0,left:0,borderWidth:e.width,borderColor:a(e.color),pointerEvents:"none"}}else if(t==="ring"){let e=i,t=typeof n.borderRadius=="number"?n.borderRadius:0;s=e.map((n,r)=>({borderWidth:n.width-(e[r-1]?.width??0),borderColor:a(n.color),borderRadius:t+n.width})).reverse()}else t==="color"||t.endsWith("Color")?(t==="color"?l:o)[t]=a(String(i)):(ys.has(t)?l:o)[t]=i;n.fontWeight!==void 0&&n.fontFamily===void 0&&Object.assign(l,ws(e,"sans",n.fontWeight));let d=s[0];if(d!==void 0){let e=n.ring.reduce((e,t)=>Math.max(e,t.width),0),t={...d};if(o.position==="absolute"){for(let e of["position","zIndex"])o[e]!==void 0&&(t[e]=o[e]);for(let n of["top","right","bottom","left"])typeof o[n]=="number"&&(t[n]=o[n]-e);for(let e of["position","zIndex","top","right","bottom","left"])delete o[e]}else{for(let n of["marginTop","marginRight","marginBottom","marginLeft"])t[n]=(typeof o[n]=="number"?o[n]:0)-e,delete o[n];o.alignSelf!==void 0&&(t.alignSelf=o.alignSelf,delete o.alignSelf)}s[0]=t}return{box:o,text:l,rings:s,...c===void 0?{}:{inner:c},grid:n.grid??[]}}var ks=/* @__PURE__ */new WeakMap;function vs(e){let t=ks.get(e);if(t!==void 0)return t;let n=us(e),r=e.brightness==="dark",i={roles:n};for(let[t,o]of Object.entries(os))i[t]=xs(e,n,o,r,n.line);ms(e,i);let o=i;return ks.set(e,o),o}function Ss(e,t){let n=e.grid[t];return n===void 0?{}:n==="fr"?{flexGrow:1,flexShrink:1,flexBasis:0,minWidth:0}:n==="auto"?{flexShrink:0}:typeof n=="number"?{width:n,flexShrink:0}:{}}var Ts=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Cs=["margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical"],js=/* @__PURE__ */new WeakMap;function Is(n){let r=js.get(n);if(r!==void 0)return r;let i=e=>e.filter(e=>typeof e=="string"),o={bx:(...e)=>i(e).map(e=>n[e].box),im:(...e)=>i(e).map(e=>n[e].box),tx:(...e)=>i(e).map(e=>n[e].text),tb:(...e)=>i(e).flatMap(e=>[n[e].box,n[e].text]),ring:(r,i,o)=>{let l=n[r].rings;return l.length===0?i:l.reduceRight((n,r,i)=>e.createElement(t.View,{key:i,style:i===0&&o!==void 0?[r,o]:r},n),i)},inner:(...r)=>{let o=null,l={};for(let e of i(r)){let t=n[e];t.inner!==void 0&&(o=t.inner);for(let e of Ts)t.box[e]!==void 0&&(l={...l,[e]:t.box[e]})}return o===null?null:e.createElement(t.View,{style:[o,l]})},ink:(e,t)=>typeof n[e].text.color=="string"?n[e].text.color:t,side:(e,t)=>typeof n[e].box.width=="number"?n[e].box.width:t,mod:(e,t)=>{if(t===void 0||t==="")return null;let r=`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`;return r!=="roles"&&r in n?r:null},scroll:e=>{let t={},r={};for(let[i,o]of Object.entries(n[e].box))(Cs.includes(i)?t:r)[i]=o;return{place:t,content:r}},swipe:(e,t)=>{let r=n[e].box,i=typeof r.flexBasis=="string"&&r.flexBasis.endsWith("%")?Number(r.flexBasis.slice(0,-1))/100:1,o=typeof r.maxWidth=="number"?r.maxWidth:1/0;return Math.round(Math.min(o,t*i)*100)/100}};return js.set(n,o),o}var Hs=/* @__PURE__ */Object.freeze({button:.97,onButton:.96,jump:.98,opt:.98,add:.98,extraGo:.96,every:.96,askRow:.98,stepper:.9,mode:.98,order:.98,subCard:.96});function Ps(e,t,n){return n?e:({pressed:n})=>n?[e,{transform:[{scale:t}]}]:e}var Fs=["ordered","shipped","out_for_delivery","delivered"],Rs={ordered:0,shipped:1,delivered:3};function Ds(e){let t=Math.max(0,Fs.indexOf(e.status));return{key:e.key,number:e.number??null,step:t,dates:e.dates??[],everfur:false,steps:[0,1,2,3],productId:null,items:e.items.map(e=>({title:e.title,quantity:e.quantity,price:e.price,imageUrl:e.imageUrl??null,icon:e.icon??null})),total:Math.round(e.items.reduce((e,t)=>e+t.price,0)*100)/100,currency:e.currency,subscriptionBox:e.subscriptionBox===true,carrier:e.carrier??null,trackingNumber:e.trackingNumber??null,trackingTag:e.trackingTag??null,trackingUrl:e.trackingUrl??null}}function zs(e,t){let n=t.find(t=>t.productId===e.productId),r=e.tracking,i=e.quantity??1,o=e.total??Math.round(e.price*i*100)/100,l=r===void 0?0:Rs[r.status];return{key:e.orderId,number:r?.orderNumber??null,step:l,dates:r===void 0?[e.createdAt??null]:[e.createdAt??null,r.shippedAt,null,l===3?null:r.estimatedDelivery],steps:r===void 0?[0]:[0,1,3],everfur:true,productId:e.productId,items:[{title:e.title??n?.title??"",quantity:i,price:o,imageUrl:n?.imageUrl??null,icon:null}],total:o,currency:e.currency,subscriptionBox:false,carrier:r?.carrier??null,trackingNumber:r?.trackingNumber??null,trackingTag:null,trackingUrl:r?.trackingUrl??null}}function $s(e,t,n=/* @__PURE__ */new Date){if(e==null)return null;let r=/^\d{4}-\d{2}-\d{2}$/.test(e),i=new Date(r?`${e}T00:00:00Z`:e);if(Number.isNaN(i.getTime()))return null;let o=r?"UTC":void 0,l=Number(new Intl.DateTimeFormat("en-US",{year:"numeric",...o?{timeZone:o}:{}}).format(i));try{return new Intl.DateTimeFormat(t??"en-US",l!==n.getFullYear()?{month:"short",day:"numeric",year:"numeric",...o?{timeZone:o}:{}}:{weekday:"short",month:"short",day:"numeric",...o?{timeZone:o}:{}}).format(i)}catch{return e}}function Os(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]??""}`}var Bs={justifyContent:"center"},_s={flexShrink:1},Ls={width:"100%",height:"100%"},Es={flexWrap:"wrap"},As={width:"100%",alignSelf:"stretch"},Ws={top:2,bottom:2,left:2,right:2},Vs={alignSelf:"auto"},Ms={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",borderWidth:0},Ns=(e,r,i)=>/* @__PURE__ */n.jsxs(n.Fragment,{children:[" ",
81
- /* @__PURE__ */n.jsx(t.View,{style:e.S.D.bx(i),children:/* @__PURE__ */n.jsx(Text,{style:e.S.D.tx(i),children:r})})]});function Us(e,r,i,o={}){let{S:l}=e,{bx:a,tx:s}=l.D,c=o.disabled===true,d=o.part??"button";/* @__PURE__ */
82
- return n.jsx(t.Pressable,{onPress:c?void 0:i,disabled:c,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:c},style:Ps(o.ghost?[l.buttonGhost,c?l.disabled:null]:a(d,c&&"buttonDisabled"),Hs.button,c),...o.testID?{testID:o.testID}:{},children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:o.ghost?l.buttonGhostText:s(d),children:r})})}function qs(e,r,i,o){let{bx:l,tx:a}=e.S.D;/* @__PURE__ */
83
- return n.jsx(t.Pressable,{onPress:i,accessibilityRole:"button",accessibilityLabel:r,style:[...l("shopLink"),Bs],...o?{testID:o}:{},children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:a("shopLink"),children:r})})}function Gs(e,r,i=false){if(r.length===0)return null;let{bx:o,tx:l,ink:a,side:s}=e.S.D,c=e.S.X;/* @__PURE__ */
81
+ /* @__PURE__ */n.jsx(t.Pressable,{testID:N("cover"),onPress:g,onPressIn:()=>D(true),onPressOut:()=>D(false),accessibilityRole:"button",accessibilityLabel:m??o,style:{position:"absolute",top:0,right:0,bottom:0,left:0}})]}):M?/* @__PURE__ */n.jsx(t.Pressable,{testID:x,onPress:g,accessibilityRole:"button",accessibilityLabel:m??o,style:({pressed:e})=>[..._,e&&!S&&E!==1?{transform:[{scale:E}]}:null],children:te}):/* @__PURE__ */n.jsx(t.View,{testID:x,style:_,children:te})}var Na=/* @__PURE__ */Object.freeze({ink:"#262523",ink2:"#4A4845",ink3:"#6B6863",paper:"#F8F7F4",card:"#FFFFFF",line:"#E7E6E2",tile:"#F2F1EE",shadow:"rgba(38, 37, 35, .07)",riskBg:"#FFE3E1",riskInk:"#B0231B",riskDot:"#E5372B",clearBg:"#E6F4D3",clearInk:"#2F6A12",clearDot:"#5FA82B",watchDot:"#E5A000"}),Ua=/* @__PURE__ */new WeakMap;function qa(e){let t=Ua.get(e);if(t!==void 0)return t;let n=e.color,r=e.brightness==="dark",i=r?{dark:r,ink:n.text.primary,ink2:n.text.secondary,ink3:n.text.muted,paper:n.background,card:n.surface,line:n.borderRingCream,tile:n.surfaceSubtle,shadow:n.shadow,riskBg:n.badgeBgCritical,riskInk:n.danger,riskDot:n.danger,clearBg:n.badgeBgPositive,clearInk:n.success,clearDot:n.success,watchDot:n.warningStrong}:{dark:r,...Na},o=(e,t)=>fo(e,t,ao(t),Ga),l=(e,t)=>contrastRatio(e,t)>=Ga?e:lo(t,Ga),a=[i.card,i.paper].map(e=>ho(n.brandSoft,e)??e),s={primary:n.primary,onPrimary:l(n.onPrimary,n.primary),accent:n.accent,onAccent:l(n.onAccent,n.accent),link:o(n.linkInk,[i.card,i.paper,i.tile]),badge:n.brandSoft,onBadge:o(n.brandInk,a)},c=/* @__PURE__ */Object.freeze({...i,...s});return Ua.set(e,c),c}var Ga=4.5;var Ka="#DAD7D1";function Xa(e,t=false){let n=t=>e.roles[t]??t,r=t=>e.dark?n("line"):t,i=(e,t={})=>({bg:e,...t}),o=e=>({color:e}),l={color:"",x:0,y:0,blur:0,spread:0},a=Object.fromEntries(Object.entries({planInk:"primary",planOnInk:"onPrimary",planAccent:"accent",planLink:"link",planAccentWash:"accent4",planAccentChip:"accentChip",planLinkWash:"linkWash",planLinkChip:"linkChip"}).flatMap(([t,n])=>e.roles[n]===void 0?[]:[[t,e.roles[n]]]));return{colors:{bg:n("paper"),surface:n("card"),text:n("black"),ink:n(t?"ink":"primary"),onInk:n("onPrimary"),muted:n("ink3"),line:n("line"),scrim:n("scrim"),grab:r(Ka),focus:n("ink"),...a},type:e.type,motion:{reduced:e.reduced},metrics:{variants:{drawer:{frame:i(n("card"),{color:n("ink")}),grab:i(r(Ka)),kicker:o(n("ink3")),close:{color:n("ink")},title:{color:n("ink"),wrap:"auto"},text:o(n("black")),scrim:n("scrim")},segmented:{track:i(n("card"),{edge:{color:r(Ka)}}),label:o(n("ink")),chosen:i(n("primary")),chosenLabel:o(n("onPrimary"))},stepper:{track:i(n("card"),{edge:{color:r(Ka)}}),button:{color:n("ink")},value:o(n("ink"))},summary:{box:i(n("card"),e.dark?{shadow:l}:{}),term:o(n("ink2")),value:o(n("ink")),totalTerm:o(n("ink")),total:o(n("ink")),renewTerm:o(n("ink2")),renew:o(n("ink")),inset:i(n("paper"))},toast:{box:i(n("ink")),text:o(n("onInk"))},focus:{color:n("ink")}}}}}var Ya=/* @__PURE__ */new WeakMap;function Ja(e,t,n,r=false){let i=Ya.get(t);i===void 0&&(i={fill:/* @__PURE__ */new WeakMap,outline:/* @__PURE__ */new WeakMap},Ya.set(t,i));let o=i[r?"outline":"fill"],l=o.get(e);return l===void 0&&(l=resolveTheme(Xa(n(),r),t),o.set(e,l)),l}var Qa=e=>{let t=e.type.namedFaces,n=t=>face(e,t).fontFamily;return{family:n("regular"),mono:n("mono"),faces:{regular:n("regular"),medium:n("medium"),bold:n("bold"),mono:n("mono"),monoBold:n("monoBold"),serif:headingFace(e,"bold").fontFamily},namedFaces:t.regular&&t.medium&&t.bold}},Za=/* @__PURE__ */new WeakMap;function es(e,t,n=pl){if(n!==pl)return ts(e,t,n);let r=Za.get(t);r===void 0&&Za.set(t,r=/* @__PURE__ */new WeakMap);let i=r.get(e);return i===void 0&&r.set(e,i=ts(e,t,n)),i}function ts(e,t,n){let r=e.color,i=$i.color,o=e.brightness==="dark",l=o?Bi:$i,a=e=>r[e]!==i[e],s={};if(a("primary")?(Object.assign(s,{ink:r.primary,onInk:r.onPrimary,focus:r.primary}),a("accent")||Object.assign(s,{go:r.primary,onGo:r.onPrimary})):a("onPrimary")&&(s.onInk=r.onPrimary),a("accent")&&Object.assign(s,{go:r.accent,onGo:r.onAccent}),a("brandSoft")&&(s.tintSage=r.brandSoft),a("danger")&&Object.assign(s,{alert:r.danger,alertDeep:r.danger}),o)Object.assign(s,{bg:r.background,surface:r.surface,text:r.text.primary,muted:r.text.muted,line:r.borderRingCream});else{let e=l.color;r.background!==e.background&&(s.bg=r.background),r.surface!==e.surface&&(s.surface=r.surface),r.text.primary!==e.text.primary&&(s.text=r.text.primary),r.text.muted!==e.text.muted&&(s.muted=r.text.muted)}let c={};Object.keys(s).length>0&&(c.colors={...s});let d=e.radius,u=l.radius;if(d.xs!==u.xs||d.sm!==u.sm||d.lg!==u.lg||d.xl!==u.xl||d.pill!==u.pill){let e={};d.xs!==u.xs&&(e.sm=d.xs),d.sm!==u.sm&&(e.md=d.sm),d.lg!==u.lg&&(e.lg=d.lg),d.xl!==u.xl&&(e.xl=d.xl),d.pill!==u.pill&&(e.pill=d.pill),c.radius=e,(d.lg!==u.lg||d.xl!==u.xl)&&(c.metrics={...d.lg!==u.lg?{card:{radius:d.lg},summary:{radius:d.lg}}:{},...d.xl!==u.xl?{sheet:{radius:d.xl}}:{}})}if(e.space.xs!==l.space.xs){let t=e.space.xs/l.space.xs,r=n.space,i=e=>Math.round(e*t);c.space={1:i(r[1]),2:i(r[2]),3:i(r[3]),4:i(r[4]),5:i(r[5]),6:i(r[6]),7:i(r[7]),8:i(r[8]),9:i(r[9])}}let p=e.type.size,h=l.type.size,g=p.caption!==h.caption||p.bodyTight!==h.bodyTight||p.body!==h.body||p.subtitle!==h.subtitle||p.verdict!==h.verdict,f=e.type.lineHeight,m=l.type.lineHeight,y=f.relaxed!==m.relaxed||f.tight!==m.tight,b=e.type.scaleCaps,w=l.type.scaleCaps,x=b.content!==w.content||b.heading!==w.heading||b.control!==w.control||b.compact!==w.compact||b.badge!==w.badge,k=g||y||x;c.type={...g?{size:{xs:p.caption,sm:p.bodyTight,md:p.body,lg:p.subtitle,xl:p.verdict}}:{},...y?{lineHeight:{body:f.relaxed,display:f.tight}}:{},...x?{scaleCaps:{content:b.content,heading:b.heading,control:b.control,compact:b.compact,badge:b.badge}}:{},...t(e)},e.motion.reducedMotion&&!n.motion.reduced&&(c.motion={reduced:true});let v=k||Object.keys(s).length>0||Object.keys(c).some(e=>e!=="type"&&e!=="colors")||e.type.families.regular!==$i.type.families.regular,S=is(e,l,s.surface??n.colors.surface),T=Object.entries(S).filter(([e,t])=>t!==n.colors[e]);return T.length>0&&(c.colors={...s,...Object.fromEntries(T)}),v?{name:"partner",...c}:c}var ns={planAccent:pl.colors.planAccent,planLink:pl.colors.planLink},rs={planAccentWash:["accent",.17],planAccentChip:["accent",.47],planLinkWash:["link",.12],planLinkChip:["link",.2]};function is(e,t,n){let r=qa(e),i=qa(t),o=e.color,l={};(o.primary!==t.color.primary||o.onPrimary!==t.color.onPrimary)&&Object.assign(l,{planInk:o.primary,planOnInk:r.onPrimary}),o.accent!==t.color.accent&&(l.planAccent=o.accent),r.link!==i.link&&(l.planLink=r.link);let a={accent:l.planAccent??ns.planAccent,link:l.planLink??ns.planLink},s={planLinkWash:r.dark?void 0:e.slots.planWash?.backgroundColor,planLinkChip:r.dark?void 0:e.slots.planChip?.backgroundColor},c=n.toLowerCase()!==r.card.toLowerCase();for(let[e,[t,n]]of Object.entries(rs)){let i=s[e];i!==void 0?l[e]=i:c&&(l[e]=Fl(a[t],n,r.card,r.card))}return l}function os(t){let n=useEverfurTheme();return e.useMemo(()=>es(n,t),[n,t])}function ls(e,t){return Ja(e,pl,()=>({roles:t,dark:qa(e).dark,type:{...Qa(e),scaleCaps:e.type.scaleCaps},reduced:e.motion.reducedMotion}))}function PlanDs(t){return e.createElement(ThemeProvider,{theme:t.theme},t.children)}var as=/* @__PURE__ */Object.freeze({root:{backgroundColor:"$paper",color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:28,paddingLeft:16,paddingRight:16,paddingTop:16},pageFine:{color:"$ink3",fontFamily:"sans",fontSize:12.5,lineHeight:18.13,marginBottom:0,marginLeft:0,marginRight:0,marginTop:16,textAlign:"center"},tools:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:8,justifyContent:"space-between",lineHeight:25.5,marginBottom:2,marginLeft:2,marginRight:-6,marginTop:-8},toolsEyebrow:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.77,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},toolsEnd:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5},orders:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:6,lineHeight:22.5,minHeight:44,paddingBottom:0,paddingLeft:8,paddingRight:8,paddingTop:0},ordersIcon:{height:21,width:21},cart:{alignItems:"center",backgroundColor:"transparent",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,height:44,justifyContent:"center",lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,position:"relative",width:44},cartIcon:{height:26,width:26},cartCount:{backgroundColor:"$riskDot",borderRadius:999,color:"$card",fontFamily:"sans",fontSize:12,fontVariant:["tabular-nums"],fontWeight:"800",height:20,lineHeight:20,minWidth:20,paddingBottom:0,paddingLeft:5,paddingRight:5,paddingTop:0,position:"absolute",right:1,ring:[{width:2,color:"$paper"}],textAlign:"center",top:3},head:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:["fr",56],lineHeight:25.5,paddingBottom:0,paddingLeft:2,paddingRight:2,paddingTop:2},eyebrow:{color:"$ink2",fontFamily:"mono",fontSize:15,letterSpacing:1.05,lineHeight:22.5,marginBottom:6,marginLeft:0,marginRight:0,marginTop:6,textTransform:"uppercase"},title:{color:"$ink",fontFamily:"serif",fontSize:29,fontWeight:"800",letterSpacing:-.29,lineHeight:30.74,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},subtitle:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6},headImage:{backgroundColor:"$tile",borderRadius:28,height:56,ring:[{width:3,color:"$paper"},{width:5.5,color:"$accent"}],width:56},by:{alignItems:"center",backgroundColor:"$card",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[40,"fr",22],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:10,paddingLeft:12,paddingRight:12,paddingTop:10,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},byImage:{backgroundColor:"$tile",borderRadius:20,height:40,width:40},byName:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:18.75},byRole:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.53,lineHeight:15.75,marginTop:2,textTransform:"uppercase"},byOk:{color:"$link",height:22,width:22},byIcon:{alignItems:"center",backgroundColor:"$tile",borderRadius:20,color:"$ink",height:40,justifyContent:"center",width:40},byIconSvg:{height:20,width:20},need:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},needKicker:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"800",gap:8,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},sources:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"800",gap:4,lineHeight:22.5,marginLeft:"auto"},source:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$tile",borderRadius:999,color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:12,fontWeight:"700",height:24,lineHeight:18,paddingBottom:0,paddingLeft:9,paddingRight:9,paddingTop:0},sourceDna:{backgroundColor:"$linkWash",color:"$link"},needTitle:{color:"$ink",fontFamily:"sans",fontSize:19,fontWeight:"800",lineHeight:23.18,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12},needRisk:{alignItems:"baseline",color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:15,gap:9,grid:[9,"fr"],lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6},needRiskLead:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:21.75},dot:{alignSelf:"flex-start",borderRadius:4.5,flexGrow:0,flexShrink:0,height:9,width:9},dotRisk:{backgroundColor:"$riskDot"},odds:{alignItems:"center",backgroundColor:"$accent4",borderRadius:14,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,marginTop:12,paddingBottom:10,paddingLeft:14,paddingRight:14,paddingTop:10},oddsKicker:{color:"$ink2",fontFamily:"sans",fontSize:13.5,fontWeight:"600",lineHeight:18.23,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:135},oddsTag:{alignSelf:"flex-start",backgroundColor:"$card",borderRadius:5,color:"$ink",fontFamily:"mono",fontSize:10,fontWeight:"600",letterSpacing:.6,lineHeight:13.5,marginTop:3,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},oddsNumbers:{alignItems:"center",color:"$ink",columnGap:6,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:["auto","auto","auto"],justifyItems:"flex-end",lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,rowGap:0},oddsFrom:{color:"$ink3",fontFamily:"sans",fontSize:17,fontWeight:"700",lineHeight:25.5,textDecorationLine:"line-through"},oddsIcon:{color:"$ink3",height:16,width:16},oddsTo:{color:"$ink",fontFamily:"serif",fontSize:28,fontWeight:"800",lineHeight:28},oddsLabel:{color:"$link",fontFamily:"sans",fontSize:12.5,fontWeight:"700",lineHeight:18.75,marginTop:3},says:{alignItems:"flex-start",backgroundColor:"$paper",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[32,"fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14},saysImage:{borderRadius:16,height:32,width:32},saysText:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},saysBy:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontWeight:"800",lineHeight:20.3,marginRight:2},saysSerif:{color:"$ink",fontFamily:"serif",fontSize:17,fontWeight:"800",letterSpacing:-.17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},saysKicker:{alignItems:"center",color:"$ink3",flexDirection:"row",fontFamily:"mono",fontSize:10.5,justifyContent:"space-between",letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},saysQuote:{color:"$ink",fontFamily:"serif",fontSize:17,fontWeight:"800",letterSpacing:-.17,lineHeight:23.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8},tag:{backgroundColor:"$card",borderRadius:5,color:"$ink",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:14,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},jump:{alignItems:"center",backgroundColor:"$primary",borderRadius:14,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[44,"fr","auto"],lineHeight:25.5,marginTop:12,paddingBottom:8,paddingLeft:8,paddingRight:14,paddingTop:8,textAlign:"left",width:"100%"},jumpNoImage:{grid:["fr","auto"]},jumpImage:{backgroundColor:"$card",borderRadius:10,height:44,width:44},jumpSmall:{color:"$accent",fontFamily:"sans",fontSize:13,fontWeight:"800",lineHeight:19.5,textAlign:"left"},jumpStrong:{color:"$onPrimary",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:18.75,textAlign:"left"},jumpGo:{color:"$onPrimary",fontFamily:"sans",fontSize:14,fontWeight:"800",lineHeight:21,textAlign:"left"},steps:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:12,paddingLeft:12,paddingRight:12,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},stepsHead:{alignItems:"baseline",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,paddingBottom:0,paddingLeft:4,paddingRight:4,paddingTop:0},stepsTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:19,fontWeight:"800",gap:10,lineHeight:22.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},stepsLabel:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.55,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},n:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:12.5,fontWeight:"800",height:24,justifyContent:"center",lineHeight:15,width:24},tips:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:-12,marginRight:-12,marginTop:10,paddingBottom:2,paddingLeft:12,paddingRight:12,paddingTop:0},tip:{borderRadius:18,color:"$ink",flexBasis:"78%",flexDirection:"column",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,maxWidth:280,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:14},tipY:{backgroundColor:"$accentChip"},tipC:{backgroundColor:"$linkChip"},tipG:{backgroundColor:"$clearChip"},tipR:{backgroundColor:"$riskChip"},tipTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,justifyContent:"space-between",lineHeight:25.5},tipIcon:{color:"$ink",height:26,width:26},tipN:{color:"$ink",fontFamily:"serif",fontSize:30,fontWeight:"900",lineHeight:30},tipStrong:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:21.25,marginTop:14},tipSmall:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginTop:4},tipEm:{color:"$link",fontFamily:"mono",fontSize:10.5,fontStyle:"normal",letterSpacing:.42,lineHeight:15.75,marginTop:"auto",paddingTop:10,textTransform:"uppercase"},tipList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},tipRow:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[28,"fr"],lineHeight:25.5,paddingBottom:10,paddingLeft:6,paddingRight:6,paddingTop:10},tipRowN:{alignItems:"center",backgroundColor:"$accent4",borderRadius:8,color:"$ink",fontFamily:"serif",fontSize:16,fontWeight:"800",height:28,justifyContent:"center",lineHeight:16,width:28},tipRowStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20,marginTop:3},tipRowSmall:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginTop:3},tipRowEm:{color:"$link",fontFamily:"mono",fontSize:10.5,fontStyle:"normal",letterSpacing:.42,lineHeight:15.75,marginTop:5,textTransform:"uppercase"},sec:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},secTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:19,fontWeight:"800",gap:10,lineHeight:22.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},secN:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:12.5,fontWeight:"800",height:24,justifyContent:"center",lineHeight:15,width:24},pick:{backgroundColor:"transparent",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},pickTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[76,"fr"],lineHeight:25.5},pickImage:{backgroundColor:"$paper",borderRadius:14,height:76,overflow:"hidden",width:76},pickTitle:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:20.4,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},stars:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:13.5,fontWeight:"800",gap:4,lineHeight:20.25,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},starsIcon:{color:"$watchDot",height:14,width:14},starsLabel:{color:"$ink3",fontFamily:"sans",fontSize:13.5,fontWeight:"500",lineHeight:20.25},pickLine:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginBottom:0,marginLeft:0,marginRight:0,marginTop:3},reviews:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:-16,marginRight:-16,marginTop:12,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0},review:{backgroundColor:"$paper",borderRadius:14,color:"$ink",flexBasis:"78%",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:280,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},reviewsStack:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:12},reviewCard:{backgroundColor:"$paper",borderRadius:14,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},reviewStars:{color:"$watchDot",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:1,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},reviewStar:{height:13,width:13},reviewText:{color:"$ink",fontFamily:"sans",fontSize:15,lineHeight:21,marginBottom:0,marginLeft:0,marginRight:0,marginTop:5},reviewBy:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:19.5,marginTop:4},why:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$ink"},lineHeight:25.5,marginTop:14,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12},whyMini:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},whyList:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},whyRow:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[58,"fr"],lineHeight:25.5,marginTop:10},whyStrong:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"800",lineHeight:19.5},whySmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:1},chip:{alignItems:"center",borderRadius:6,color:"$ink",fontFamily:"mono",fontSize:10.5,fontWeight:"700",height:22,justifyContent:"center",letterSpacing:.42,lineHeight:15.75,textTransform:"uppercase"},chipDna:{backgroundColor:"$linkWash",color:"$link"},chipAsk:{backgroundColor:"$accent4",color:"$ink"},chipRec:{backgroundColor:"$tile",color:"$ink2"},score:{alignItems:"center",backgroundColor:"$primary",borderRadius:12,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"800",gap:8,justifyContent:"space-between",lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:11,paddingLeft:14,paddingRight:12,paddingTop:11},scoreValue:{color:"$accent",flexGrow:0,flexShrink:0,fontFamily:"mono",fontSize:16,fontWeight:"700",lineHeight:20.8},dose:{backgroundColor:"$linkWash",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:10,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:12},doseMini:{color:"$link",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},doseList:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:8,grid:["fr","fr","fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},doseItem:{alignItems:"center",backgroundColor:"$card",borderRadius:12,color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,paddingBottom:10,paddingLeft:4,paddingRight:4,paddingTop:10,textAlign:"center"},doseValue:{color:"$ink",fontFamily:"mono",fontSize:21,fontVariant:["tabular-nums"],fontWeight:"700",lineHeight:23.1,textAlign:"center"},doseLabel:{color:"$ink2",fontFamily:"sans",fontSize:12.5,lineHeight:16.25,textAlign:"center"},doseNote:{color:"$link",fontFamily:"sans",fontSize:14,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10},ingredients:{color:"$ink",flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12},ingredient:{backgroundColor:"$tile",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:13.5,fontWeight:"600",lineHeight:20.25,paddingBottom:6,paddingLeft:10,paddingRight:10,paddingTop:6},opts:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:14},opt:{alignItems:"center",backgroundColor:"$card",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,inner:{width:1.5,color:"$n_DEDCD7"},justifyContent:"space-between",lineHeight:25.5,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14,textAlign:"left",width:"100%"},optOn:{inner:{width:2.5,color:"$ink"}},optOnce:{backgroundColor:"$paper",inner:null,paddingBottom:10,paddingLeft:14,paddingRight:14,paddingTop:10,shadow:null},optOnceOn:{backgroundColor:"$card",inner:{width:2,color:"$ink"}},optText:{alignItems:"flex-start",color:"$ink",fontFamily:"sans",fontSize:17,gap:2,lineHeight:25.5,textAlign:"left"},optStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24,textAlign:"left"},optOnceStrong:{fontSize:15,fontWeight:"700",lineHeight:22.5},optSmall:{color:"$ink2",fontFamily:"sans",fontSize:13.5,lineHeight:20.25,textAlign:"left"},optOnceSmall:{fontSize:13,lineHeight:19.5},optTag:{backgroundColor:"$riskInk",borderRadius:6,color:"$card",fontFamily:"sans",fontSize:12,fontWeight:"800",lineHeight:18,marginBottom:4,paddingBottom:2,paddingLeft:8,paddingRight:8,paddingTop:2,textAlign:"left"},price:{alignItems:"flex-end",color:"$ink",columnGap:8,flexDirection:"column",flexWrap:"nowrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,minWidth:0,rowGap:0,textAlign:"left"},priceValue:{color:"$ink",fontFamily:"sans",fontSize:24,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:26.4,textAlign:"left"},priceWas:{color:"$riskInk",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,textAlign:"left",textDecorationLine:"line-through"},optPrice:{color:"$ink",fontFamily:"sans",fontSize:18,fontWeight:"800",lineHeight:27,textAlign:"left"},optOncePrice:{color:"$ink2",fontSize:15,fontWeight:"700",lineHeight:22.5},buy:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:12,justifyContent:"space-between",lineHeight:25.5,marginTop:12},button:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:25.5,minHeight:52,paddingBottom:0,paddingLeft:20,paddingRight:20,paddingTop:0,textDecorationLine:"none",width:"100%"},buttonDisabled:{opacity:.32},proof:{alignItems:"center",color:"$riskInk",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"800",gap:6,justifyContent:"center",lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10},proofIcon:{flexGrow:0,flexShrink:0,height:21,marginTop:-2,width:21},trust:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:6,grid:["fr","fr","fr"],lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:12,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},trustItem:{alignItems:"center",color:"$ink2",fontFamily:"sans",fontSize:12.5,fontWeight:"600",gap:4,lineHeight:16.25,textAlign:"center"},trustIcon:{color:"$link",height:20,width:20},on:{alignItems:"center",backgroundColor:"$clearBg",borderRadius:14,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:[34,"fr","auto"],lineHeight:25.5,marginTop:12,paddingBottom:10,paddingLeft:12,paddingRight:10,paddingTop:10},onIcon:{alignItems:"center",backgroundColor:"$clearDot",borderRadius:17,color:"$card",fontFamily:"sans",fontSize:17,height:34,justifyContent:"center",lineHeight:25.5,width:34},onIconSvg:{height:18,width:18},onStrong:{color:"$clearInk",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:18.75},onSmall:{color:"$ink2",fontFamily:"sans",fontSize:13,lineHeight:17.55,marginTop:1},onButton:{backgroundColor:"$card",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"800",inner:{width:1.5,color:"$ink"},lineHeight:21,minHeight:38,paddingBottom:0,paddingLeft:14,paddingRight:14,paddingTop:0},more:{color:"$ink",columnGap:18,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8,rowGap:0},moreButton:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,minHeight:34,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},fine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:8},others:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},sign:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$n_DEDCD7"},lineHeight:25.5,marginTop:12,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14},signUrgent:{backgroundColor:"$riskBg",inner:null,shadow:null},signTitle:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"800",gap:8,lineHeight:20,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},signUrgentTitle:{color:"$riskInk"},signUrgentIcon:{height:20,width:20},signBody:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:4},signUrgentBody:{color:"$ink"},questionsKicker:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20,marginBottom:0,marginLeft:0,marginRight:0,marginTop:18},questions:{color:"$ink",fontFamily:"sans",fontSize:15,gap:6,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,paddingLeft:22},questionsAfterKicker:{marginTop:6},add:{alignItems:"center",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"800",inner:{width:2,color:"$ink"},justifyContent:"center",lineHeight:24,marginTop:14,minHeight:48,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0,width:"100%"},addOn:{backgroundColor:"$clearBg",color:"$clearInk",inner:null,shadow:null},askRow:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:16,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[40,"fr",18],lineHeight:25.5,marginTop:10,paddingBottom:12,paddingLeft:12,paddingRight:14,paddingTop:12,textAlign:"left",width:"100%"},askRowInSec:{marginTop:12},askRowIcon:{alignItems:"center",backgroundColor:"$card",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,textAlign:"left",width:40},askRowIconSvg:{height:21,width:21},askRowStrong:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:20.15,textAlign:"left"},askRowSmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:1,textAlign:"left"},askRowChev:{color:"$ink2",height:18,width:18},extras:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginTop:22},extrasTitle:{color:"$ink3",fontFamily:"mono",fontSize:11,fontWeight:"400",letterSpacing:.77,lineHeight:12.65,marginBottom:0,marginLeft:4,marginRight:4,marginTop:0,textTransform:"uppercase"},extra:{alignItems:"flex-start",backgroundColor:"$card",borderRadius:22,color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[56,"fr"],lineHeight:25.5,paddingBottom:14,paddingLeft:14,paddingRight:14,paddingTop:14,rowGap:4,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},extraKit:{backgroundColor:"$linkWash",inner:null,shadow:null},extraImage:{backgroundColor:"$card",borderRadius:14,height:56,width:56},extraKitImage:{backgroundColor:"$card"},extraIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:14,color:"$link",height:56,justifyContent:"center",width:56},extraIconSvg:{height:26,width:26},extraTitle:{color:"$ink",fontFamily:"sans",fontSize:17,fontWeight:"800",lineHeight:20.4,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},extraTitleSerif:{fontFamily:"serif",fontSize:21,fontWeight:"800",letterSpacing:-.21,lineHeight:25.2},extraBody:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:3},extraPrice:{alignItems:"center",color:"$ink",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:14.5,lineHeight:20.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,rowGap:0},extraPriceValue:{color:"$ink",fontFamily:"sans",fontSize:19,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:26.6},extraPriceWas:{color:"$ink3",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:19.6,textDecorationLine:"line-through"},extraGo:{backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",fontFamily:"sans",fontSize:14.5,fontWeight:"800",lineHeight:21.75,marginTop:8,minHeight:40,paddingBottom:0,paddingLeft:18,paddingRight:18,paddingTop:0},extraGoOn:{backgroundColor:"$clearBg",color:"$clearInk"},wait:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14,paddingBottom:16,paddingLeft:16,paddingRight:16,paddingTop:16,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},waitTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[46,"fr"],lineHeight:25.5},waitTile:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:13,color:"$link",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:22,height:46,justifyContent:"center",lineHeight:33,width:46},waitTileSvg:{height:23,width:23},waitMini:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},waitTitle:{color:"$ink",fontFamily:"serif",fontSize:26,fontWeight:"800",letterSpacing:-.26,lineHeight:27.3,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},waitKey:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24,marginBottom:0,marginLeft:0,marginRight:0,marginTop:18},waitText:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15.5,fontWeight:"700",gap:8,lineHeight:23.25,marginBottom:12,marginLeft:0,marginRight:0,marginTop:16},waitTextSvg:{color:"$link",flexGrow:0,flexShrink:0,height:20,width:20},waitButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textDecorationLine:"none",width:"100%"},track:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:14,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},trackStep:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[22,"fr"],lineHeight:25.5,paddingBottom:16,position:"relative"},trackStepLast:{paddingBottom:0},trackLine:{backgroundColor:"$n_E2DFD9",borderRadius:1,bottom:-2,left:10,position:"absolute",top:20,width:2},trackLineDone:{backgroundColor:"$primary"},trackDot:{alignItems:"center",backgroundColor:"$card",borderRadius:11,height:22,inner:{width:2,color:"$n_CFCBC4"},justifyContent:"center",position:"relative",width:22,zIndex:1},trackDotDone:{backgroundColor:"$primary",inner:null,shadow:null},trackDotNow:{backgroundColor:"$accent",inner:{width:2,color:"$ink"}},trackDotSvg:{color:"$card",height:13,width:13},trackTitle:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:20.15},trackTitleTodo:{color:"$ink3",fontWeight:"700"},trackDetail:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginTop:1},trackTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:13.5,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},next:{backgroundColor:"$card",borderRadius:18,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:22,paddingBottom:4,paddingLeft:16,paddingRight:16,paddingTop:4,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06},textAlign:"left"},nextIn:{backgroundColor:"$paper",inner:null,marginTop:8,shadow:null},nextRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[36,"fr"],lineHeight:25.5,paddingBottom:10,paddingLeft:0,paddingRight:0,paddingTop:10,textAlign:"left"},nextIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:36,justifyContent:"center",lineHeight:25.5,textAlign:"left",width:36},nextIconSvg:{height:19,width:19},nextIconImage:{borderRadius:11,height:"100%",width:"100%"},nextLabel:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.53,lineHeight:15.75,textAlign:"left",textTransform:"uppercase"},nextText:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"600",lineHeight:20.25,marginTop:1,textAlign:"left"},done:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:20,paddingLeft:22,paddingRight:22,paddingTop:40,textAlign:"center"},doneCheck:{alignItems:"center",backgroundColor:"$accent",borderRadius:38,color:"$ink",fontFamily:"sans",fontSize:17,height:76,justifyContent:"center",lineHeight:25.5,marginBottom:0,marginLeft:"auto",marginRight:"auto",marginTop:0,textAlign:"center",width:76},doneCheckSvg:{height:38,width:38},doneTitle:{color:"$ink",fontFamily:"serif",fontSize:34,fontWeight:"800",letterSpacing:-.34,lineHeight:39.1,marginBottom:0,marginLeft:0,marginRight:0,marginTop:20,textAlign:"center"},doneWhen:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:24,marginBottom:0,marginLeft:0,marginRight:0,marginTop:10,textAlign:"center"},doneWho:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:22.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2,textAlign:"center"},pushFoot:{backgroundColor:"$paper",borderTopColor:"$line",borderTopWidth:1,color:"$ink",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:34,paddingLeft:18,paddingRight:18,paddingTop:12},pushFootStack:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5},shop:{color:"$ink",fontFamily:"sans",fontSize:17,gap:12,lineHeight:25.5,paddingBottom:28,paddingLeft:18,paddingRight:18,paddingTop:8},shopTitle:{color:"$ink",fontFamily:"serif",fontSize:29,fontWeight:"800",letterSpacing:-.29,lineHeight:31.32,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},shopSub:{color:"$ink2",fontFamily:"sans",fontSize:15,lineHeight:21.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:-6},shopKey:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:18.4,marginBottom:-4,marginLeft:2,marginRight:2,marginTop:6},shopCard:{backgroundColor:"$card",borderRadius:22,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:14,paddingLeft:16,paddingRight:16,paddingTop:14,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},shopFine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},shopFineCenter:{marginTop:14,textAlign:"center"},shopEmpty:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:8,paddingLeft:12,paddingRight:12,paddingTop:48,textAlign:"center"},shopEmptyTile:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:20,color:"$link",flexGrow:0,flexShrink:0,fontFamily:"sans",fontSize:22,height:72,justifyContent:"center",lineHeight:33,marginBottom:8,textAlign:"center",width:72},shopEmptyTileSvg:{height:34,width:34},shopEmptyTitle:{color:"$ink",fontFamily:"serif",fontSize:28,fontWeight:"800",letterSpacing:-.28,lineHeight:30.8,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},shopEmptyText:{color:"$ink2",fontFamily:"sans",fontSize:15.5,lineHeight:22.48,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,maxWidth:298.07,textAlign:"center"},shopEmptyButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,marginTop:12,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textAlign:"center",textDecorationLine:"none"},shopLink:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},shopActions:{alignItems:"center",color:"$ink",fontFamily:"sans",fontSize:17,gap:4,lineHeight:25.5,marginTop:4},orderList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},order:{alignItems:"center",backgroundColor:"$card",borderRadius:22,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:10,grid:["fr",18],lineHeight:25.5,paddingBottom:14,paddingLeft:16,paddingRight:14,paddingTop:14,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06},textAlign:"left",width:"100%"},orderChev:{color:"$ink3",height:18,width:18},orderTop:{alignItems:"center",color:"$ink",columnGap:10,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,rowGap:4,textAlign:"left"},orderNo:{color:"$ink3",fontFamily:"mono",fontSize:12,letterSpacing:.48,lineHeight:18,textAlign:"left"},orderWhat:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20.8,marginTop:8,textAlign:"left"},orderMeta:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:19.6,marginTop:2,textAlign:"left"},orderPics:{color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginTop:10,textAlign:"left"},orderPic:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:10,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,overflow:"hidden",textAlign:"left",width:40},orderPicImage:{height:"100%",width:"100%"},orderPicSvg:{height:20,width:20},pill:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$accent3",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:13,fontWeight:"800",gap:6,lineHeight:19.5,minHeight:26,paddingBottom:0,paddingLeft:10,paddingRight:10,paddingTop:0,textAlign:"left"},pillDone:{backgroundColor:"$clearBg",color:"$clearInk"},pillSub:{backgroundColor:"$linkWash",color:"$link"},cartItems:{color:"$ink",fontFamily:"sans",fontSize:17,gap:18,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},cartItem:{alignItems:"flex-start",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[64,"fr"],lineHeight:25.5},cartItemImage:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:14,color:"$link",fontFamily:"sans",fontSize:17,height:64,justifyContent:"center",lineHeight:25.5,overflow:"hidden",width:64},cartItemImageSvg:{height:28,width:28},cartItemTitle:{color:"$ink",fontFamily:"sans",fontSize:16.5,fontWeight:"800",lineHeight:20.63,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},cartItemPrice:{alignItems:"center",color:"$ink",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:3,rowGap:2},cartItemPriceValue:{color:"$ink",fontFamily:"sans",fontSize:16,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:24},cartItemPriceWas:{color:"$ink3",fontFamily:"sans",fontSize:14,fontWeight:"600",lineHeight:21,textDecorationLine:"line-through"},cartItemPriceNote:{color:"$ink3",fontFamily:"sans",fontSize:14,lineHeight:21},cartItemActions:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:16,lineHeight:25.5,marginTop:8},stepper:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$card",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[40,30,40],height:40,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5},stepperButton:{alignItems:"center",backgroundColor:"transparent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},stepperButtonDisabled:{opacity:.3},stepperButtonSvg:{height:16,width:16},stepperValue:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:23.25,textAlign:"center"},remove:{backgroundColor:"transparent",color:"$ink2",fontFamily:"sans",fontSize:14.5,fontWeight:"700",lineHeight:21.75,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"},mode:{color:"$ink",fontFamily:"sans",fontSize:17,gap:6,lineHeight:25.5,marginTop:8},modeButton:{alignItems:"center",backgroundColor:"$paper",borderRadius:12,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:14.5,fontWeight:"700",gap:10,justifyContent:"space-between",lineHeight:18.85,minHeight:44,paddingBottom:8,paddingLeft:12,paddingRight:12,paddingTop:8,textAlign:"left"},modeButtonOn:{backgroundColor:"$card",inner:{width:2,color:"$ink"}},modePrice:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:18.85,textAlign:"left"},every:{backgroundColor:"$card",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:4,grid:["fr","fr","fr"],inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5,marginTop:8,paddingBottom:4,paddingLeft:4,paddingRight:4,paddingTop:4},everyButton:{backgroundColor:"transparent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,minHeight:36,paddingBottom:0,paddingLeft:6,paddingRight:6,paddingTop:0,textAlign:"center"},everyButtonOn:{backgroundColor:"$primary",color:"$onPrimary"},summary:{backgroundColor:"$card",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:6,paddingLeft:16,paddingRight:16,paddingTop:6,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},summaryRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],gap:12,justifyContent:"space-between",lineHeight:22.5,minHeight:34},summaryLabel:{alignItems:"center",alignSelf:"flex-start",color:"$ink2",flexDirection:"row",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],gap:8,lineHeight:22.5},summaryTotal:{fontSize:17,fontWeight:"800",lineHeight:25.5,minHeight:42},summaryTotalLabel:{color:"$ink"},summaryRenew:{fontSize:14,lineHeight:21,marginTop:-6,minHeight:28},summaryTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,fontVariant:["tabular-nums"],letterSpacing:.6,lineHeight:15,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},foot:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5},footFine:{color:"$ink3",fontFamily:"sans",fontSize:13,lineHeight:18.85,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},co:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginTop:2},coProduct:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[56,"fr"],lineHeight:25.5},coProductImage:{alignItems:"center",backgroundColor:"$accent3",borderRadius:14,color:"$ink",fontFamily:"sans",fontSize:17,height:56,justifyContent:"center",lineHeight:25.5,overflow:"hidden",width:56},coProductImageSvg:{height:30,width:30},coProductTitle:{color:"$ink2",fontFamily:"sans",fontSize:14,fontWeight:"800",lineHeight:18.9,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},coProductLine:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginBottom:0,marginLeft:0,marginRight:0,marginTop:2},coOptions:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},coOption:{borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:25.5},coOptionOn:{backgroundColor:"$accent4",inner:{width:2,color:"$ink"}},coOptionHit:{alignItems:"flex-start",backgroundColor:"transparent",borderRadius:16,color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[22,"fr","auto"],lineHeight:25.5,paddingBottom:12,paddingLeft:14,paddingRight:14,paddingTop:12,rowGap:2,textAlign:"left",width:"100%"},coOptionStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:21.6,textAlign:"left"},coOptionSmall:{color:"$ink2",fontFamily:"sans",fontSize:13,lineHeight:18.2,textAlign:"left"},coOptionPrice:{color:"$ink",fontFamily:"sans",fontSize:16,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:21.6,textAlign:"right"},coOptionPriceWas:{color:"$riskInk",fontFamily:"sans",fontSize:13,fontVariant:["tabular-nums"],fontWeight:"600",lineHeight:17.55,textAlign:"right",textDecorationLine:"line-through"},coRadio:{alignItems:"center",borderRadius:11,height:22,inner:{width:2,color:"$n_BDB9B2"},justifyContent:"center",width:22},coRadioOn:{inner:{width:7,color:"$ink"}},coKicker:{color:"$ink3",fontFamily:"mono",fontSize:10.5,letterSpacing:.63,lineHeight:15.75,marginBottom:6,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},coWhen:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,paddingBottom:12,paddingLeft:48,paddingRight:14,paddingTop:0},coItems:{color:"$ink",fontFamily:"sans",fontSize:17,gap:10,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},coItem:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,gap:12,grid:[44,"fr","auto"],lineHeight:22.5},coItemPic:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:10,color:"$link",fontFamily:"sans",fontSize:15,height:44,justifyContent:"center",lineHeight:22.5,overflow:"hidden",width:44},coItemStrong:{color:"$ink",fontFamily:"sans",fontSize:15.5,fontWeight:"800",lineHeight:19.38},coItemSmall:{color:"$ink3",fontFamily:"sans",fontSize:13.5,lineHeight:20.25},coItemValue:{color:"$ink",fontFamily:"sans",fontSize:15,fontVariant:["tabular-nums"],fontWeight:"800",lineHeight:22.5},coRows:{backgroundColor:"$paper",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:2,paddingLeft:14,paddingRight:14,paddingTop:2},coRow:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:14.5,gap:10,grid:[20,73.6,"fr"],lineHeight:21.75,minHeight:40},coRowSvg:{color:"$ink2",height:20,width:20},coRowLabel:{color:"$ink3",fontFamily:"sans",fontSize:14.5,lineHeight:21.75},coRowValue:{color:"$ink",fontFamily:"sans",fontSize:14.5,fontWeight:"700",lineHeight:21.75},coRowsShop:{backgroundColor:"$card",shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},coFine:{color:"$ink3",fontFamily:"sans",fontSize:12.5,lineHeight:18.13,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textAlign:"center"},coSummary:{backgroundColor:"$paper",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:17,inner:null,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:6,paddingLeft:16,paddingRight:16,paddingTop:6,shadow:null},weightField:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:8,lineHeight:22.5,marginTop:14},weightInputWrap:{color:"$ink",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,position:"relative"},weightInput:{backgroundColor:"$card",borderRadius:16,color:"$ink",fontFamily:"sans",fontSize:24,fontVariant:["tabular-nums"],fontWeight:"800",height:58,inner:{width:1.5,color:"$n_DAD7D1"},lineHeight:36,paddingBottom:0,paddingLeft:18,paddingRight:56,paddingTop:0,width:"100%"},weightInputFocus:{inner:{width:2.5,color:"$ink"}},weightUnit:{color:"$ink3",fontFamily:"sans",fontSize:17,fontWeight:"700",lineHeight:25.5,position:"absolute",right:18,top:"50%"},weightError:{color:"$riskInk",fontFamily:"sans",fontSize:14,fontWeight:"700",lineHeight:21,marginBottom:0,marginLeft:0,marginRight:0,marginTop:6,minHeight:20},weightActions:{color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,marginTop:10},subCard:{alignItems:"center",backgroundColor:"$clearBg",borderRadius:22,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,gap:12,grid:[56,"fr","auto"],lineHeight:25.5,paddingBottom:12,paddingLeft:12,paddingRight:14,paddingTop:12},subCardImage:{backgroundColor:"$card",borderRadius:14,height:56,width:56},subCardStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:20},subCardSmall:{color:"$ink2",fontFamily:"sans",fontSize:14,lineHeight:18.9,marginTop:2},subCardButton:{backgroundColor:"$card",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:14,fontWeight:"800",inner:{width:1.5,color:"$ink"},lineHeight:21,minHeight:40,paddingBottom:0,paddingLeft:14,paddingRight:14,paddingTop:0},carrier:{alignItems:"center",color:"$ink",columnGap:12,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[40,"fr"],lineHeight:25.5,rowGap:4},carrierIcon:{alignItems:"center",backgroundColor:"$linkWash",borderRadius:11,color:"$link",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,width:40},carrierIconSvg:{height:21,width:21},carrierStrong:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"800",lineHeight:24},carrierSmall:{alignItems:"center",color:"$ink2",columnGap:8,flexDirection:"row",flexWrap:"wrap",fontFamily:"mono",fontSize:13,letterSpacing:.26,lineHeight:19.5,marginTop:1,rowGap:2},carrierButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"transparent",borderRadius:999,color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:15,fontWeight:"700",gap:8,inner:{width:1.5,color:"$ink"},justifyContent:"center",lineHeight:22.5,marginTop:10,minHeight:40,paddingBottom:0,paddingLeft:16,paddingRight:16,paddingTop:0,textDecorationLine:"none"},carrierWait:{color:"$ink2",fontFamily:"sans",fontSize:14.5,lineHeight:20.3},carrierTag:{backgroundColor:"$ink",borderRadius:5,color:"$onInk",fontFamily:"mono",fontSize:10,letterSpacing:.6,lineHeight:15,paddingBottom:2,paddingLeft:6,paddingRight:6,paddingTop:2,textTransform:"uppercase"},toast:{backgroundColor:"$ink",borderRadius:16,color:"$onInk",fontFamily:"sans",fontSize:14.5,left:16,lineHeight:20.3,opacity:1,paddingBottom:12,paddingLeft:15,paddingRight:15,paddingTop:12,position:"absolute",right:16,top:62,zIndex:50},scrim:{backgroundColor:"$scrim",bottom:0,left:0,opacity:1,position:"absolute",right:0,top:0,zIndex:40},sheet:{backgroundColor:"$card",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:28,borderTopRightRadius:28,bottom:0,color:"$ink",fontFamily:"sans",fontSize:17,left:0,lineHeight:25.5,maxHeight:"80%",paddingBottom:40,paddingLeft:20,paddingRight:20,paddingTop:10,position:"absolute",right:0,zIndex:41},sheetGrab:{backgroundColor:"$n_DAD7D1",borderRadius:3,height:5,marginBottom:10,marginLeft:"auto",marginRight:"auto",marginTop:0,width:40},sheetTop:{alignItems:"center",color:"$ink",flexDirection:"row",fontFamily:"sans",fontSize:17,justifyContent:"space-between",lineHeight:25.5},sheetKicker:{color:"$ink3",fontFamily:"mono",fontSize:11,letterSpacing:.88,lineHeight:16.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,textTransform:"uppercase"},sheetClose:{alignItems:"center",backgroundColor:"transparent",borderRadius:20,color:"$ink",fontFamily:"sans",fontSize:17,height:40,justifyContent:"center",lineHeight:25.5,marginRight:-8,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,position:"relative",width:40},sheetCloseSvg:{height:22,width:22},sheetTitle:{color:"$ink",fontFamily:"serif",fontSize:24,fontWeight:"800",letterSpacing:-.24,lineHeight:27.6,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0},sheetBody:{color:"$black",fontFamily:"sans",fontSize:16,gap:10,lineHeight:24,marginTop:12},coButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:17,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:25.5,minHeight:56,paddingBottom:0,paddingLeft:28,paddingRight:28,paddingTop:0,textDecorationLine:"none",width:"100%"},footButton:{alignItems:"center",alignSelf:"flex-start",backgroundColor:"$primary",borderRadius:999,color:"$onPrimary",flexDirection:"row",fontFamily:"sans",fontSize:16,fontWeight:"700",gap:8,justifyContent:"center",lineHeight:24,minHeight:48,paddingBottom:0,paddingLeft:22,paddingRight:22,paddingTop:0,textDecorationLine:"none",width:"100%"},blanksWrap:{color:"$ink",fontFamily:"sans",fontSize:17,lineHeight:25.5,marginTop:14},blanksCard:{backgroundColor:"$card",borderRadius:20,color:"$ink",fontFamily:"sans",fontSize:17,gap:8,lineHeight:25.5,paddingBottom:13,paddingLeft:12,paddingRight:12,paddingTop:12,shadow:{x:0,y:1,blur:3,color:"#262523",opacity:.06}},blanksHead:{alignItems:"center",color:"$ink3",flexDirection:"row",fontFamily:"sans",fontSize:12.5,fontWeight:"800",gap:10,justifyContent:"space-between",letterSpacing:.88,lineHeight:18.75,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:2,paddingLeft:2,paddingRight:2,paddingTop:0,textTransform:"uppercase"},blanksPill:{backgroundColor:"$accent",borderRadius:999,color:"$ink",fontFamily:"sans",fontSize:13,fontStyle:"normal",fontWeight:"800",letterSpacing:.13,lineHeight:19.5,paddingBottom:2,paddingLeft:10,paddingRight:10,paddingTop:2,textTransform:"none"},blanksPillFilled:{backgroundColor:"$clearBg",color:"$clearInk"},blanksList:{color:"$ink",fontFamily:"sans",fontSize:17,gap:7,lineHeight:25.5,marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0},blanksRow:{alignItems:"center",backgroundColor:"$paper",borderRadius:15,color:"$ink",columnGap:11,flexDirection:"row",fontFamily:"sans",fontSize:17,grid:[34,"fr"],lineHeight:25.5,paddingBottom:9,paddingLeft:9,paddingRight:12,paddingTop:9},blanksNum:{alignItems:"center",backgroundColor:"$accentChip",borderRadius:11,color:"$ink",fontFamily:"serif",fontSize:22,fontWeight:"800",height:40,justifyContent:"center",lineHeight:33,width:34},blanksText:{color:"$ink",fontFamily:"sans",fontSize:16,fontWeight:"700",lineHeight:21.6},blanksSource:{color:"$ink3",fontFamily:"sans",fontSize:13.5,lineHeight:20.25},blank:{alignSelf:"flex-start",backgroundColor:"$accent4",borderRadius:6,color:"$ink",fontFamily:"sans",fontSize:16,fontStyle:"normal",fontWeight:"700",height:20,inner:{width:1.5,color:"$accent"},lineHeight:21.6,minWidth:36},blankS:{minWidth:24},blankL:{minWidth:64},blankFilled:{backgroundColor:"transparent",borderRadius:6,height:"auto",inner:null,marginBottom:0,marginLeft:-3,marginRight:-3,marginTop:0,minWidth:0,paddingBottom:0,paddingLeft:3,paddingRight:3,paddingTop:0,shadow:null},manageOrders:{backgroundColor:"transparent",color:"$link",fontFamily:"sans",fontSize:15,fontWeight:"700",lineHeight:22.5,minHeight:40,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,textDecorationLine:"underline"}}),ss=/* @__PURE__ */Object.freeze({shield:{strokes:[{width:1.8,cap:true,closed:true,points:[12,3,19,6,19,12,18.759,14.125,18.074,16,17,17.625,15.593,19,13.907,20.125,12,21,10.093,20.125,8.407,19,7,17.625,5.926,16,5.241,14.125,5,12,5,6]},{width:1.8,cap:true,closed:false,points:[9,12,11,14,15,10]}],boxes:[],triangles:[],seams:[]},arrow:{strokes:[{width:2,cap:true,closed:false,points:[4.5,12,19,12]},{width:2,cap:true,closed:false,points:[13.5,6.5,19,12,13.5,17.5]}],boxes:[],triangles:[],seams:[]},check:{strokes:[{width:2.4,cap:true,closed:false,points:[5,12.6,9.4,17,19,7.4]}],boxes:[],triangles:[],seams:[]},star:{strokes:[],boxes:[],triangles:[[12,16.9,6.8,19.6,7.8,13.8],[16.2,13.8,17.2,19.6,12,16.9],[7.8,13.8,3.5,9.7,9.4,8.8],[14.6,8.8,20.5,9.7,16.2,13.8],[9.4,8.8,12,3.5,14.6,8.8],[16.2,13.8,12,16.9,7.8,13.8],[14.6,8.8,16.2,13.8,7.8,13.8],[14.6,8.8,7.8,13.8,9.4,8.8]],seams:[[12,16.9,7.8,13.8,.245,.677],[12,16.9,16.2,13.8,.245,.677],[7.8,13.8,9.4,8.8,.69,.248],[14.6,8.8,16.2,13.8,.248,.243],[14.6,8.8,9.4,8.8,.68,.245],[16.2,13.8,7.8,13.8,.677,.68],[14.6,8.8,7.8,13.8,.68,.69]]},truck:{strokes:[{width:1.7,cap:false,closed:true,points:[2.8,6.5,14.2,6.5,14.2,16,2.8,16]},{width:1.7,cap:false,closed:false,points:[14.2,9.5,17.8,9.5,21.2,12.9,21.2,16,14.2,16]}],boxes:[{x:5,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7},{x:15.4,y:15.8,w:3.6,h:3.6,radius:1.8,width:1.7}],triangles:[],seams:[]},refresh:{strokes:[{width:1.7,cap:true,closed:false,points:[4,12,4.343,14.363,5.368,16.52,6.985,18.278,9.048,19.48,11.374,20.021,13.756,19.85,15.981,18.984,17.852,17.5,19.201,15.53,19.909,13.249,19.912,10.861,19.21,8.578,17.865,6.605,15.998,5.116,13.775,4.245,11.393,4.068,9.066,4.602,7,5.8]},{width:1.7,cap:true,closed:false,points:[4,4,4,8,8,8]}],boxes:[],triangles:[],seams:[]},card:{strokes:[{width:1.7,cap:true,closed:false,points:[3,9.5,21,9.5]},{width:1.7,cap:true,closed:false,points:[6.5,15,10.5,15]}],boxes:[{x:3,y:5.5,w:18,h:13,radius:2.2,width:1.7}],triangles:[],seams:[]},alert:{strokes:[{width:1.9,cap:true,closed:true,points:[12,3.5,21.5,20,2.5,20]},{width:1.9,cap:true,closed:false,points:[12,10,12,14.5]},{width:1.9,cap:true,closed:false,points:[12,17.2,12.01,17.2]}],boxes:[],triangles:[],seams:[]},x:{strokes:[{width:2,cap:true,closed:false,points:[6.5,6.5,17.5,17.5]},{width:2,cap:true,closed:false,points:[17.5,6.5,6.5,17.5]}],boxes:[],triangles:[],seams:[]},chat:{strokes:[{width:1.7,cap:false,closed:true,points:[5,5.2,19,5.2,19.8,5.414,20.386,6,20.6,6.8,20.6,15.4,20.386,16.2,19.8,16.786,19,17,10.3,17,5.5,20.6,5.5,17,5,17,4.2,16.786,3.614,16.2,3.4,15.4,3.4,6.8,3.614,6,4.2,5.414,5,5.2]}],boxes:[],triangles:[],seams:[]},repeat:{strokes:[{width:1.8,cap:true,closed:false,points:[4.5,11,4.824,8.824,5.766,6.837,7.244,5.208,9.131,4.077,11.264,3.543,13.461,3.65,15.533,4.391,17.3,5.7,19.5,8]},{width:1.8,cap:true,closed:false,points:[19.5,3.5,19.5,8,15,8]},{width:1.8,cap:true,closed:false,points:[19.5,13,19.176,15.176,18.234,17.163,16.756,18.792,14.869,19.923,12.736,20.457,10.539,20.35,8.467,19.609,6.7,18.3,4.5,16]},{width:1.8,cap:true,closed:false,points:[4.5,20.5,4.5,16,9,16]}],boxes:[],triangles:[],seams:[]},calendar:{strokes:[{width:1.8,cap:true,closed:false,points:[4,10,20,10]},{width:1.8,cap:true,closed:false,points:[8.5,3.5,8.5,7.5]},{width:1.8,cap:true,closed:false,points:[15.5,3.5,15.5,7.5]}],boxes:[{x:4,y:5.5,w:16,h:15,radius:2.5,width:1.8}],triangles:[],seams:[]},flame:{strokes:[],boxes:[],triangles:[[12.15,14.513,13.1,15.2,13.1,13.7],[11.5,13.3,12.15,14.513,13.1,13.7],[16.874,10.907,15.7,9.3,15.381,10.659],[14.7,16.7,16.838,18.516,17.693,16.84],[14.7,16.7,14.489,17.681,16.838,18.516],[18,14.9,14.507,15.633,17.693,16.84],[16.874,10.907,15.381,10.659,14.685,11.707],[17.693,12.759,16.874,10.907,14.685,11.707],[15.538,19.832,16.838,18.516,14.489,17.681],[14.685,11.707,13.959,14.633,17.693,12.759],[17.693,12.759,13.959,14.633,18,14.9],[13.891,20.692,13.055,19.006,12,21],[12,21,12,19.2,10.109,20.692],[8.462,19.832,10.109,20.692,10.659,18.863],[10.659,18.863,9.741,17.97,8.462,19.832],[6.307,16.84,9.602,15.677,6,14.9],[6.273,13.033,6,14.9,9.602,15.677],[9.602,15.677,10.113,14.812,6.273,13.033],[6.988,11.438,6.273,13.033,10.113,14.812],[13.525,7.088,12.856,5.017,12,3.5],[13.856,9.589,13.525,7.088,12,3.5],[13.7,12.4,13.856,9.589,12,3.5],[10.113,14.812,10.792,14.042,6.988,11.438],[14.7,16.7,17.693,16.84,14.507,15.633],[13.7,12.4,13.959,14.633,14.685,11.707],[14.507,15.633,18,14.9,13.959,14.633],[13.1,13.7,13.959,14.633,13.7,12.4],[11.5,13.3,13.1,13.7,13.7,12.4],[7.983,10.048,6.988,11.438,10.792,14.042],[10.792,14.042,11.5,13.3,7.983,10.048],[14.489,17.681,13.913,18.475,15.538,19.832],[13.891,20.692,15.538,19.832,13.913,18.475],[13.891,20.692,13.913,18.475,13.055,19.006],[12,19.2,12,21,13.055,19.006],[10.659,18.863,10.109,20.692,12,19.2],[7.162,18.516,8.462,19.832,9.741,17.97],[9.741,17.97,9.4,16.7,7.162,18.516],[6.307,16.84,7.162,18.516,9.4,16.7],[6.307,16.84,9.4,16.7,9.602,15.677],[9.1,8.8,7.983,10.048,11.5,13.3],[11.5,13.3,13.7,12.4,9.1,8.8],[10.054,7.77,9.1,8.8,13.7,12.4],[10.927,6.683,10.054,7.77,13.7,12.4],[11.613,5.481,10.927,6.683,13.7,12.4],[12.006,4.106,11.613,5.481,13.7,12.4],[12,2.5,12.006,4.106,13.7,12.4],[12,2.5,13.7,12.4,12,3.5]],seams:[[12.15,14.513,13.1,13.7,.121,.428],[11.5,13.3,13.1,13.7,.681,.356],[15.381,10.659,16.874,10.907,.033,.883],[14.7,16.7,16.838,18.516,.648,1.318],[14.7,16.7,17.693,16.84,.648,1.533],[14.489,17.681,16.838,18.516,.51,1.318],[14.507,15.633,18,14.9,.782,1.787],[14.507,15.633,17.693,16.84,.782,1.533],[14.685,11.707,16.874,10.907,.68,.883],[14.685,11.707,17.693,12.759,.61,.484],[14.489,17.681,15.538,19.832,.51,1.115],[13.959,14.633,14.685,11.707,1.333,.576],[13.959,14.633,17.693,12.759,.851,.484],[13.959,14.633,18,14.9,.851,1.787],[13.055,19.006,13.891,20.692,.36,.984],[12,21,13.055,19.006,.945,.395],[12,19.2,12,21,.394,.945],[10.109,20.692,12,19.2,.715,.394],[10.109,20.692,10.659,18.863,.715,.428],[10.659,18.863,8.462,19.832,.428,.809],[8.462,19.832,9.741,17.97,.809,.525],[6.307,16.84,9.602,15.677,1.65,.812],[6,14.9,9.602,15.677,.194,1.012],[6.273,13.033,9.602,15.677,2.068,1.012],[10.113,14.812,6.273,13.033,1.217,2.068],[10.113,14.812,6.988,11.438,1.217,2.2],[12,3.5,13.525,7.088,4.697,5.571],[12,3.5,13.856,9.589,4.697,3.017],[12,3.5,13.7,12.4,4.648,26.765],[10.792,14.042,6.988,11.438,1.339,2.2],[13.7,12.4,13.959,14.633,.819,1.333],[13.1,13.7,13.7,12.4,0,.819],[11.5,13.3,13.7,12.4,.681,.537],[10.792,14.042,7.983,10.048,1.339,2.328],[11.5,13.3,7.983,10.048,1.438,2.328],[13.913,18.475,15.538,19.832,.409,1.115],[13.891,20.692,13.913,18.475,.984,.409],[7.162,18.516,9.741,17.97,.977,.525],[7.162,18.516,9.4,16.7,.977,.677],[6.307,16.84,9.4,16.7,1.65,.677],[11.5,13.3,9.1,8.8,1.438,1.129],[13.7,12.4,9.1,8.8,2.046,1.129],[10.054,7.77,13.7,12.4,.079,2.285],[10.927,6.683,13.7,12.4,.237,3.126],[11.613,5.481,13.7,12.4,.475,5.451],[12.006,4.106,13.7,12.4,.961,15.892],[12,2.5,13.7,12.4,2.974,26.765]]},box:{strokes:[{width:1.7,cap:false,closed:true,points:[3.8,7.8,12,4,20.2,7.8,20.2,16.4,12,20,3.8,16.4]},{width:1.7,cap:false,closed:false,points:[3.8,7.8,12,11.6,20.2,7.8]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20]}],boxes:[],triangles:[],seams:[]},cart:{strokes:[{width:1.8,cap:true,closed:false,points:[2.8,4,5.4,4,7.7,14.6,8.203,15.401,9.1,15.7,17.3,15.7,18.197,15.401,18.7,14.6,20.4,7.6,6.3,7.6]}],boxes:[{x:8.3,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8},{x:15.8,y:18.3,w:2.6,h:2.6,radius:1.3,width:1.8}],triangles:[],seams:[]},minus:{strokes:[{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},plus:{strokes:[{width:2.2,cap:true,closed:false,points:[12,6,12,18]},{width:2.2,cap:true,closed:false,points:[6,12,18,12]}],boxes:[],triangles:[],seams:[]},chev:{strokes:[{width:2,cap:true,closed:false,points:[9,5.5,15.5,12,9,18.5]}],boxes:[],triangles:[],seams:[]},pulse:{strokes:[{width:1.8,cap:true,closed:false,points:[3,12.5,6.8,12.5,9.2,6.9,13.4,17.5,15.8,12.5,21,12.5]}],boxes:[],triangles:[],seams:[]},file:{strokes:[{width:1.7,cap:true,closed:true,points:[7,3.5,14.2,3.5,18.5,7.8,18.5,20,18.324,20.424,17.9,20.6,7,20.6,6.576,20.424,6.4,20,6.4,4.1,6.576,3.676,7,3.5]},{width:1.7,cap:true,closed:false,points:[14,3.6,14,8,18.4,8]},{width:1.7,cap:true,closed:false,points:[9.4,12.4,14.6,12.4]},{width:1.7,cap:true,closed:false,points:[9.4,15.8,14.6,15.8]}],boxes:[],triangles:[],seams:[]},kit:{strokes:[{width:1.7,cap:false,closed:true,points:[4,7.6,12,3.6,20,7.6,20,16.4,12,20.4,4,16.4]},{width:1.7,cap:false,closed:false,points:[4,7.6,12,11.6,20,7.6]},{width:1.7,cap:false,closed:false,points:[12,11.6,12,20.4]}],boxes:[],triangles:[],seams:[]},dna:{strokes:[{width:1.7,cap:true,closed:false,points:[7,3.5,7.28,4.645,8.04,5.594,9.16,6.394,10.52,7.097,12,7.75,13.48,8.403,14.84,9.106,15.96,9.906,16.72,10.855,17,12,16.72,13.145,15.96,14.094,14.84,14.894,13.48,15.597,12,16.25,10.52,16.903,9.16,17.606,8.04,18.406,7.28,19.355,7,20.5]},{width:1.7,cap:true,closed:false,points:[17,3.5,16.72,4.645,15.96,5.594,14.84,6.394,13.48,7.097,12,7.75,10.52,8.403,9.16,9.106,8.04,9.906,7.28,10.855,7,12,7.28,13.145,8.04,14.094,9.16,14.894,10.52,15.597,12,16.25,13.48,16.903,14.84,17.606,15.96,18.406,16.72,19.355,17,20.5]},{width:1.7,cap:true,closed:false,points:[8.6,6.3,15.4,6.3]},{width:1.7,cap:true,closed:false,points:[8.6,17.7,15.4,17.7]},{width:1.7,cap:true,closed:false,points:[10.4,9.6,13.6,9.6]},{width:1.7,cap:true,closed:false,points:[10.4,14.4,13.6,14.4]}],boxes:[],triangles:[],seams:[]},heart:{strokes:[{width:1.8,cap:false,closed:true,points:[12,20.2,11.739,20.035,11.041,19.559,10.03,18.804,8.831,17.799,7.569,16.575,6.37,15.163,5.359,13.593,4.661,11.895,4.4,10.1,4.833,8.454,5.87,7.105,7.349,6.264,9.039,6.062,10.675,6.532,12,7.6,13.325,6.532,14.961,6.062,16.651,6.264,18.13,7.105,19.167,8.454,19.6,10.1,19.339,11.895,18.641,13.593,17.63,15.163,16.431,16.575,15.169,17.799,13.97,18.804,12.959,19.559,12.261,20.035,12,20.2]}],boxes:[],triangles:[],seams:[]},bottle:{strokes:[{width:1.7,cap:false,closed:true,points:[7.2,6.2,16.8,6.2,17.507,6.493,17.8,7.2,17.8,19.5,17.572,20.35,16.95,20.972,16.1,21.2,7.9,21.2,7.05,20.972,6.428,20.35,6.2,19.5,6.2,7.2,6.493,6.493,7.2,6.2]},{width:1.7,cap:false,closed:true,points:[9,11,15,11,15,16,9,16]}],boxes:[{x:8,y:2.8,w:8,h:3.4,radius:1,width:1.7}],triangles:[],seams:[]},harness:{strokes:[{width:1.5,cap:true,closed:false,points:[7.5,4.5,7.728,6.82,8.364,8.708,9.336,10.116,10.572,10.996,12,11.3,13.428,10.996,14.664,10.116,15.636,8.708,16.272,6.82,16.5,4.5]},{width:1.5,cap:true,closed:true,points:[5,12.6,19,12.6,19,17.2,18.692,18.35,17.85,19.192,16.7,19.5,7.3,19.5,6.15,19.192,5.308,18.35,5,17.2]},{width:1.5,cap:true,closed:false,points:[8.2,15.3,15.8,15.3]}],boxes:[{x:10.7,y:8.9,w:2.6,h:2.6,radius:1.3,width:1.5}],triangles:[],seams:[]},ramp:{strokes:[{width:1.5,cap:true,closed:false,points:[2.5,19.5,21.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,19.5,3.5,16.5,8,16.5,8,13.5,12.5,13.5,12.5,10.5,17,10.5,17,7.5,20.5,7.5,20.5,19.5]},{width:1.5,cap:true,closed:false,points:[3.5,16.5,20.5,7.5],opacity:.35}],boxes:[],triangles:[],seams:[]}});var cs=/* @__PURE__ */Object.freeze({black:"#000000",onInk:"#FFFFFF",wash:"rgba(38, 37, 35, 0.06)",scrim:"rgba(38, 37, 35, 0.38)",riskChip:"#FFD8D6",clearChip:"#DDEFC4"});function ds(e){let t=e.trim(),n=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t);if(n!==null){let e=n[1].length===3?n[1].split("").map(e=>e+e).join(""):n[1];return[0,2,4].map(t=>parseInt(e.slice(t,t+2),16))}let r=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i.exec(t);return r===null?null:[Number(r[1]),Number(r[2]),Number(r[3])]}function us(e,t,n){let r=ds(e),i=ds(n);if(r===null||i===null)return n;let o=e=>Math.round(r[e]*t+i[e]*(1-t)).toString(16).padStart(2,"0");return`#${o(0)}${o(1)}${o(2)}`.toUpperCase()}function ps(e){let t=ds(e);return t===null?"transparent":`rgba(${t[0]}, ${t[1]}, ${t[2]}, 0)`}function hs(e){let t=e.color,n=qa(e),r=n.card,i=n.link;return{ink:n.ink,ink2:n.ink2,ink3:n.ink3,paper:n.paper,tile:n.tile,line:n.line,card:r,...gs(e)?{paper:t.background}:{},riskBg:n.riskBg,riskInk:n.riskInk,riskDot:n.riskDot,clearBg:n.clearBg,clearInk:n.clearInk,clearDot:n.clearDot,watchDot:n.watchDot,...n.dark?{black:t.text.primary,onInk:t.background,wash:us(t.text.primary,.08,t.surface),scrim:"rgba(0, 0, 0, 0.6)",riskChip:t.badgeBgCritical,clearChip:t.badgeBgPositive}:cs,primary:n.primary,onPrimary:n.onPrimary,accent:n.accent,accent4:us(t.accent,.17,r),accent3:us(t.accent,.25,r),accentChip:us(t.accent,.47,r),link:i,linkWash:(n.dark?void 0:e.slots.planWash?.backgroundColor)??us(i,.12,r),linkChip:(n.dark?void 0:e.slots.planChip?.backgroundColor)??us(i,.2,r)}}function gs(e){return e.brightness==="dark"?false:e.meta.displayName!==$i.meta.displayName||e.color.background!==$i.color.background}var fs=["sec","steps","need","by","extra"],ms=["sec","steps","need"],ys=["button","coButton","footButton"];function bs(e,t){if(e.brightness==="dark")return;let n=e.slots.card,r=e.slots.primaryButton,i=(e,n)=>{let r=t[e];t[e]={...r,box:{...r.box,...n}}};if(n!==void 0)for(let e of fs)i(e,{...n.backgroundColor===void 0?{}:{backgroundColor:n.backgroundColor},...n.borderRadius===void 0||!ms.includes(e)?{}:{borderRadius:n.borderRadius}});if(r?.borderRadius!==void 0)for(let e of ys)i(e,{borderRadius:r.borderRadius})}var ws=/* @__PURE__ */new Set(["fontSize","fontWeight","fontFamily","fontStyle","letterSpacing","lineHeight","textTransform","color","textAlign","textDecorationLine","fontVariant"]),xs=/* @__PURE__ */new Set(["justifyItems"]);function ks(e,t,n){let r=Number(n??400);if(t==="serif"){let t=headingFace(e,"bold");return t.fontWeight===void 0?{fontFamily:t.fontFamily}:{fontFamily:t.fontFamily,fontWeight:String(r)}}let i=t==="mono",o=r>=650?i?"monoBold":"bold":r>=450?i?"monoMedium":"medium":i?"mono":"regular",l=face(e,o);return e.type.namedFaces[o]?{fontFamily:l.fontFamily}:{fontFamily:l.fontFamily,fontWeight:String(r)}}function vs(e,t,n,r,i){let o={},l={},a=e=>{if(!e.startsWith("$"))return e;let n=e.slice(1);return n.startsWith("n_")?r?i:`#${n.slice(2)}`:t[n]??e},s=[],c;for(let[t,i]of Object.entries(n))if(!(i===void 0||xs.has(t)||t==="grid"||t==="fontWeight"))if(t==="fontFamily")Object.assign(l,ks(e,String(i),n.fontWeight));else if(t==="shadow"){if(i===null)Object.assign(o,{shadowOpacity:0,elevation:0});else if(!r){let e=i;Object.assign(o,{shadowColor:a(e.color),shadowOpacity:e.opacity,shadowRadius:e.blur,shadowOffset:{width:e.x,height:e.y},elevation:Math.max(1,Math.round(e.blur/2))})}}else if(t==="inner"){let e=i;c=e===null?null:{position:"absolute",top:0,right:0,bottom:0,left:0,borderWidth:e.width,borderColor:a(e.color),pointerEvents:"none"}}else if(t==="ring"){let e=i,t=typeof n.borderRadius=="number"?n.borderRadius:0;s=e.map((n,r)=>({borderWidth:n.width-(e[r-1]?.width??0),borderColor:a(n.color),borderRadius:t+n.width})).reverse()}else t==="color"||t.endsWith("Color")?(t==="color"?l:o)[t]=a(String(i)):(ws.has(t)?l:o)[t]=i;n.fontWeight!==void 0&&n.fontFamily===void 0&&Object.assign(l,ks(e,"sans",n.fontWeight));let d=s[0];if(d!==void 0){let e=n.ring.reduce((e,t)=>Math.max(e,t.width),0),t={...d};if(o.position==="absolute"){for(let e of["position","zIndex"])o[e]!==void 0&&(t[e]=o[e]);for(let n of["top","right","bottom","left"])typeof o[n]=="number"&&(t[n]=o[n]-e);for(let e of["position","zIndex","top","right","bottom","left"])delete o[e]}else{for(let n of["marginTop","marginRight","marginBottom","marginLeft"])t[n]=(typeof o[n]=="number"?o[n]:0)-e,delete o[n];o.alignSelf!==void 0&&(t.alignSelf=o.alignSelf,delete o.alignSelf)}s[0]=t}return{box:o,text:l,rings:s,...c===void 0?{}:{inner:c},grid:n.grid??[]}}var Ss=/* @__PURE__ */new WeakMap;function Ts(e){let t=Ss.get(e);if(t!==void 0)return t;let n=hs(e),r=e.brightness==="dark",i={roles:n};for(let[t,o]of Object.entries(as))i[t]=vs(e,n,o,r,n.line);bs(e,i);let o=i;return Ss.set(e,o),o}function Cs(e,t){let n=e.grid[t];return n===void 0?{}:n==="fr"?{flexGrow:1,flexShrink:1,flexBasis:0,minWidth:0}:n==="auto"?{flexShrink:0}:typeof n=="number"?{width:n,flexShrink:0}:{}}var js=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Is=["margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical"],Hs=/* @__PURE__ */new WeakMap;function Ps(n){let r=Hs.get(n);if(r!==void 0)return r;let i=e=>e.filter(e=>typeof e=="string"),o={bx:(...e)=>i(e).map(e=>n[e].box),im:(...e)=>i(e).map(e=>n[e].box),tx:(...e)=>i(e).map(e=>n[e].text),tb:(...e)=>i(e).flatMap(e=>[n[e].box,n[e].text]),ring:(r,i,o)=>{let l=n[r].rings;return l.length===0?i:l.reduceRight((n,r,i)=>e.createElement(t.View,{key:i,style:i===0&&o!==void 0?[r,o]:r},n),i)},inner:(...r)=>{let o=null,l={};for(let e of i(r)){let t=n[e];t.inner!==void 0&&(o=t.inner);for(let e of js)t.box[e]!==void 0&&(l={...l,[e]:t.box[e]})}return o===null?null:e.createElement(t.View,{style:[o,l]})},ink:(e,t)=>typeof n[e].text.color=="string"?n[e].text.color:t,side:(e,t)=>typeof n[e].box.width=="number"?n[e].box.width:t,mod:(e,t)=>{if(t===void 0||t==="")return null;let r=`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`;return r!=="roles"&&r in n?r:null},scroll:e=>{let t={},r={};for(let[i,o]of Object.entries(n[e].box))(Is.includes(i)?t:r)[i]=o;return{place:t,content:r}},swipe:(e,t)=>{let r=n[e].box,i=typeof r.flexBasis=="string"&&r.flexBasis.endsWith("%")?Number(r.flexBasis.slice(0,-1))/100:1,o=typeof r.maxWidth=="number"?r.maxWidth:1/0;return Math.round(Math.min(o,t*i)*100)/100}};return Hs.set(n,o),o}var Fs=/* @__PURE__ */Object.freeze({button:.97,onButton:.96,jump:.98,opt:.98,add:.98,extraGo:.96,every:.96,askRow:.98,stepper:.9,mode:.98,order:.98,subCard:.96});function Rs(e,t,n){return n?e:({pressed:n})=>n?[e,{transform:[{scale:t}]}]:e}var Ds=["ordered","shipped","out_for_delivery","delivered"],zs={ordered:0,shipped:1,delivered:3};function $s(e){let t=Math.max(0,Ds.indexOf(e.status));return{key:e.key,number:e.number??null,step:t,dates:e.dates??[],everfur:false,steps:[0,1,2,3],productId:null,items:e.items.map(e=>({title:e.title,quantity:e.quantity,price:e.price,imageUrl:e.imageUrl??null,icon:e.icon??null})),total:Math.round(e.items.reduce((e,t)=>e+t.price,0)*100)/100,currency:e.currency,subscriptionBox:e.subscriptionBox===true,carrier:e.carrier??null,trackingNumber:e.trackingNumber??null,trackingTag:e.trackingTag??null,trackingUrl:e.trackingUrl??null}}function Os(e,t){let n=t.find(t=>t.productId===e.productId),r=e.tracking,i=e.quantity??1,o=e.total??Math.round(e.price*i*100)/100,l=r===void 0?0:zs[r.status];return{key:e.orderId,number:r?.orderNumber??null,step:l,dates:r===void 0?[e.createdAt??null]:[e.createdAt??null,r.shippedAt,null,l===3?null:r.estimatedDelivery],steps:r===void 0?[0]:[0,1,3],everfur:true,productId:e.productId,items:[{title:e.title??n?.title??"",quantity:i,price:o,imageUrl:n?.imageUrl??null,icon:null}],total:o,currency:e.currency,subscriptionBox:false,carrier:r?.carrier??null,trackingNumber:r?.trackingNumber??null,trackingTag:null,trackingUrl:r?.trackingUrl??null}}function Bs(e,t,n=/* @__PURE__ */new Date){if(e==null)return null;let r=/^\d{4}-\d{2}-\d{2}$/.test(e),i=new Date(r?`${e}T00:00:00Z`:e);if(Number.isNaN(i.getTime()))return null;let o=r?"UTC":void 0,l=Number(new Intl.DateTimeFormat("en-US",{year:"numeric",...o?{timeZone:o}:{}}).format(i));try{return new Intl.DateTimeFormat(t??"en-US",l!==n.getFullYear()?{month:"short",day:"numeric",year:"numeric",...o?{timeZone:o}:{}}:{weekday:"short",month:"short",day:"numeric",...o?{timeZone:o}:{}}).format(i)}catch{return e}}function _s(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]??""}`}var Ls={justifyContent:"center"},Es={flexShrink:1},As={width:"100%",height:"100%"},Ws={flexWrap:"wrap"},Vs={width:"100%",alignSelf:"stretch"},Ms={top:2,bottom:2,left:2,right:2},Ns={alignSelf:"auto"},Us={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",borderWidth:0},qs=(e,r,i)=>/* @__PURE__ */n.jsxs(n.Fragment,{children:[" ",
82
+ /* @__PURE__ */n.jsx(t.View,{style:e.S.D.bx(i),children:/* @__PURE__ */n.jsx(Text,{style:e.S.D.tx(i),children:r})})]});function Gs(e,r,i,o={}){let{S:l}=e,{bx:a,tx:s}=l.D,c=o.disabled===true,d=o.part??"button";/* @__PURE__ */
83
+ return n.jsx(t.Pressable,{onPress:c?void 0:i,disabled:c,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:c},style:Rs(o.ghost?[l.buttonGhost,c?l.disabled:null]:a(d,c&&"buttonDisabled"),Fs.button,c),...o.testID?{testID:o.testID}:{},children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:o.ghost?l.buttonGhostText:s(d),children:r})})}function Ks(e,r,i,o){let{bx:l,tx:a}=e.S.D;/* @__PURE__ */
84
+ return n.jsx(t.Pressable,{onPress:i,accessibilityRole:"button",accessibilityLabel:r,style:[...l("shopLink"),Ls],...o?{testID:o}:{},children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:a("shopLink"),children:r})})}function Xs(e,r,i=false){if(r.length===0)return null;let{bx:o,tx:l,ink:a,side:s}=e.S.D,c=e.S.X;/* @__PURE__ */
84
85
  return n.jsx(t.View,{style:o("coRows",i&&"coRowsShop"),testID:"health-plan-checkout-rows",children:r.map(r=>/* @__PURE__ */n.jsxs(t.View,{style:o("coRow"),children:[
85
- /* @__PURE__ */n.jsx(t.View,{style:Ss(c.coRow,0),children:e.icon(r.icon,a("coRowSvg",c.roles.ink2??""),s("coRowSvg",20))}),
86
- /* @__PURE__ */n.jsx(Text,{style:[...l("coRowLabel"),{minWidth:Ss(c.coRow,1).width,flexShrink:0}],numberOfLines:1,children:r.label}),
87
- /* @__PURE__ */n.jsx(Text,{style:[...l("coRow","coRowValue"),Ss(c.coRow,2)],children:r.value})]},r.label))})}function Ks(e,t,r={}){let{S:i,copy:o}=e,l=r.renew??null,a=o.shippingValue!=="";return l!==null||a&&r.tag===true&&o.shippingTag!==""?Xs(e,t,r):/* @__PURE__ */n.jsx(PlanDs,{theme:i.ds,children:/* @__PURE__ */n.jsx(SummaryList,{variant:r.inCheckout?"inset":"card",rows:[{key:"subtotal",term:o.subtotal,value:t},...a?[{key:"shipping",term:o.shipping,value:o.shippingValue}]:[]],total:{key:"total",term:o.total,value:t},testID:"health-plan-summary"})})}function Xs(e,r,i){let{S:o,copy:l}=e,{bx:a,tx:s}=o.D,c=i.renew??null,d=(e,r,i,o)=>/* @__PURE__ */n.jsxs(t.View,{style:a("summaryRow",i),children:[
88
- /* @__PURE__ */n.jsxs(t.View,{style:[...a("summaryLabel"),_s,Vs],children:[
89
- /* @__PURE__ */n.jsx(Text,{style:[...s("summaryRow",i,i==="summaryTotal"?"summaryTotalLabel":"summaryLabel"),_s],children:e}),o===void 0?null:/* @__PURE__ */n.jsx(t.View,{style:a("summaryTag"),testID:"health-plan-summary-tag",children:/* @__PURE__ */n.jsx(Text,{style:s("summaryTag"),children:o})})]}),
86
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(c.coRow,0),children:e.icon(r.icon,a("coRowSvg",c.roles.ink2??""),s("coRowSvg",20))}),
87
+ /* @__PURE__ */n.jsx(Text,{style:[...l("coRowLabel"),{minWidth:Cs(c.coRow,1).width,flexShrink:0}],numberOfLines:1,children:r.label}),
88
+ /* @__PURE__ */n.jsx(Text,{style:[...l("coRow","coRowValue"),Cs(c.coRow,2)],children:r.value})]},r.label))})}function Ys(e,t,r={}){let{S:i,copy:o}=e,l=r.renew??null,a=o.shippingValue!=="";return l!==null||a&&r.tag===true&&o.shippingTag!==""?Js(e,t,r):/* @__PURE__ */n.jsx(PlanDs,{theme:i.ds,children:/* @__PURE__ */n.jsx(SummaryList,{variant:r.inCheckout?"inset":"card",rows:[{key:"subtotal",term:o.subtotal,value:t},...a?[{key:"shipping",term:o.shipping,value:o.shippingValue}]:[]],total:{key:"total",term:o.total,value:t},testID:"health-plan-summary"})})}function Js(e,r,i){let{S:o,copy:l}=e,{bx:a,tx:s}=o.D,c=i.renew??null,d=(e,r,i,o)=>/* @__PURE__ */n.jsxs(t.View,{style:a("summaryRow",i),children:[
89
+ /* @__PURE__ */n.jsxs(t.View,{style:[...a("summaryLabel"),Es,Ns],children:[
90
+ /* @__PURE__ */n.jsx(Text,{style:[...s("summaryRow",i,i==="summaryTotal"?"summaryTotalLabel":"summaryLabel"),Es],children:e}),o===void 0?null:/* @__PURE__ */n.jsx(t.View,{style:a("summaryTag"),testID:"health-plan-summary-tag",children:/* @__PURE__ */n.jsx(Text,{style:s("summaryTag"),children:o})})]}),
90
91
  /* @__PURE__ */n.jsx(Text,{style:s("summaryRow",i),children:r})]});/* @__PURE__ */
91
- return n.jsxs(t.View,{style:a(i.inCheckout?"coSummary":"summary"),children:[d(l.subtotal,r),l.shippingValue===""?null:d(l.shipping,l.shippingValue,void 0,i.tag&&l.shippingTag!==""?l.shippingTag:void 0),d(c===null?l.total:l.dueToday,r,"summaryTotal"),c===null?null:d(l.thenRenews(c),l.renewsEvery(c),"summaryRenew")]})}function Ys(e,r,i){let{S:o}=e,{bx:l,tx:a,tb:s,inner:c,ink:d,side:u}=o.D;/* @__PURE__ */
92
+ return n.jsxs(t.View,{style:a(i.inCheckout?"coSummary":"summary"),children:[d(l.subtotal,r),l.shippingValue===""?null:d(l.shipping,l.shippingValue,void 0,i.tag&&l.shippingTag!==""?l.shippingTag:void 0),d(c===null?l.total:l.dueToday,r,"summaryTotal"),c===null?null:d(l.thenRenews(c),l.renewsEvery(c),"summaryRenew")]})}function Qs(e,r,i){let{S:o}=e,{bx:l,tx:a,tb:s,inner:c,ink:d,side:u}=o.D;/* @__PURE__ */
92
93
  return n.jsx(t.View,{style:l("track"),accessibilityLabel:i,testID:"health-plan-track",children:r.map((i,p)=>{let h=i.state==="done",g=i.state==="now",f=p===r.length-1;/* @__PURE__ */
93
94
  return n.jsxs(t.View,{style:l("trackStep",f&&"trackStepLast"),children:[f?null:/* @__PURE__ */n.jsx(t.View,{style:l("trackLine",h&&r[p+1]?.state==="done"&&"trackLineDone")}),
94
- /* @__PURE__ */n.jsxs(t.View,{style:[...l("trackDot",h&&"trackDotDone",g&&"trackDotNow"),Ss(o.X.trackStep,0)],children:[c("trackDot",h&&"trackDotDone",g&&"trackDotNow"),h?e.icon("check",d("trackDotSvg",o.X.roles.card??""),u("trackDotSvg",13)):null]}),
95
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(o.X.trackStep,1),children:[
96
- /* @__PURE__ */n.jsx(Text,{style:a("trackTitle",!h&&!g&&"trackTitleTodo"),children:i.title}),i.detail?/* @__PURE__ */n.jsxs(Text,{style:s("trackDetail"),children:[i.detail,i.tag?Ns(e,i.tag,"trackTag"):null]}):null]})]},i.title)})})}function Js(e,r,i,o,l,a,s=false){let{S:c}=e,{bx:d,tx:u,tb:p,ink:h,side:g}=c.D;if(i==="")return null;let f=c.X;/* @__PURE__ */
97
- return n.jsxs(t.Pressable,{onPress:l,accessibilityRole:"button",accessibilityLabel:i,style:Ps(d("askRow",s&&"askRowInSec"),Hs.askRow,false),testID:a,children:[
98
- /* @__PURE__ */n.jsx(t.View,{style:[...d("askRowIcon"),Ss(f.askRow,0)],children:e.icon(r,h("askRowIcon",f.roles.link??""),g("askRowIconSvg",21))}),
99
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(f.askRow,1),children:[
95
+ /* @__PURE__ */n.jsxs(t.View,{style:[...l("trackDot",h&&"trackDotDone",g&&"trackDotNow"),Cs(o.X.trackStep,0)],children:[c("trackDot",h&&"trackDotDone",g&&"trackDotNow"),h?e.icon("check",d("trackDotSvg",o.X.roles.card??""),u("trackDotSvg",13)):null]}),
96
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(o.X.trackStep,1),children:[
97
+ /* @__PURE__ */n.jsx(Text,{style:a("trackTitle",!h&&!g&&"trackTitleTodo"),children:i.title}),i.detail?/* @__PURE__ */n.jsxs(Text,{style:s("trackDetail"),children:[i.detail,i.tag?qs(e,i.tag,"trackTag"):null]}):null]})]},i.title)})})}function Zs(e,r,i,o,l,a,s=false){let{S:c}=e,{bx:d,tx:u,tb:p,ink:h,side:g}=c.D;if(i==="")return null;let f=c.X;/* @__PURE__ */
98
+ return n.jsxs(t.Pressable,{onPress:l,accessibilityRole:"button",accessibilityLabel:i,style:Rs(d("askRow",s&&"askRowInSec"),Fs.askRow,false),testID:a,children:[
99
+ /* @__PURE__ */n.jsx(t.View,{style:[...d("askRowIcon"),Cs(f.askRow,0)],children:e.icon(r,h("askRowIcon",f.roles.link??""),g("askRowIconSvg",21))}),
100
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(f.askRow,1),children:[
100
101
  /* @__PURE__ */n.jsx(Text,{style:u("askRowStrong"),children:i}),o===""?null:/* @__PURE__ */n.jsx(Text,{style:p("askRowSmall"),children:o})]}),
101
- /* @__PURE__ */n.jsx(t.View,{style:Ss(f.askRow,2),children:e.icon("chev",h("askRowChev",f.roles.ink2??""),g("askRowChev",18))})]})}function Qs(e,r,i,o=null){let{S:l}=e,{bx:a,tx:s,tb:c,ink:d,side:u}=l.D,p=l.X,h=p.roles.link??"",g=(r.rows??[]).flatMap(t=>t.fromVet!==true?[t]:o===null?[]:[{...t,text:e.copy.waitVetTips(o)}]);/* @__PURE__ */
102
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(f.askRow,2),children:e.icon("chev",h("askRowChev",f.roles.ink2??""),g("askRowChev",18))})]})}function ec(e,r,i,o=null){let{S:l}=e,{bx:a,tx:s,tb:c,ink:d,side:u}=l.D,p=l.X,h=p.roles.link??"",g=(r.rows??[]).flatMap(t=>t.fromVet!==true?[t]:o===null?[]:[{...t,text:e.copy.waitVetTips(o)}]);/* @__PURE__ */
102
103
  return n.jsxs(t.View,{style:a("wait"),testID:"health-plan-wait",children:[
103
104
  /* @__PURE__ */n.jsxs(t.View,{style:a("waitTop"),children:[
104
- /* @__PURE__ */n.jsx(t.View,{style:[...a("waitTile"),Ss(p.waitTop,0)],children:e.icon(r.icon??"kit",d("waitTile",h),u("waitTileSvg",23))}),
105
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(p.waitTop,1),children:[
105
+ /* @__PURE__ */n.jsx(t.View,{style:[...a("waitTile"),Cs(p.waitTop,0)],children:e.icon(r.icon??"kit",d("waitTile",h),u("waitTileSvg",23))}),
106
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(p.waitTop,1),children:[
106
107
  /* @__PURE__ */n.jsx(Text,{style:c("waitMini"),children:r.kicker}),
107
- /* @__PURE__ */n.jsx(Text,{style:c("waitTitle"),accessibilityRole:"header",children:r.title})]})]}),r.track&&r.track.length>0?Ys(e,r.track,r.kicker):null,r.heading?/* @__PURE__ */n.jsx(Text,{style:c("waitKey"),children:r.heading}):null,g.length>0?/* @__PURE__ */n.jsx(t.View,{style:a("next","nextIn"),children:g.map(r=>/* @__PURE__ */n.jsxs(t.View,{style:a("nextRow"),children:[
108
- /* @__PURE__ */n.jsx(t.View,{style:[...a("nextIcon"),Ss(p.nextRow,0)],children:e.icon(r.icon,d("nextIcon",h),u("nextIconSvg",19))}),
109
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(p.nextRow,1),children:[
108
+ /* @__PURE__ */n.jsx(Text,{style:c("waitTitle"),accessibilityRole:"header",children:r.title})]})]}),r.track&&r.track.length>0?Qs(e,r.track,r.kicker):null,r.heading?/* @__PURE__ */n.jsx(Text,{style:c("waitKey"),children:r.heading}):null,g.length>0?/* @__PURE__ */n.jsx(t.View,{style:a("next","nextIn"),children:g.map(r=>/* @__PURE__ */n.jsxs(t.View,{style:a("nextRow"),children:[
109
+ /* @__PURE__ */n.jsx(t.View,{style:[...a("nextIcon"),Cs(p.nextRow,0)],children:e.icon(r.icon,d("nextIcon",h),u("nextIconSvg",19))}),
110
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(p.nextRow,1),children:[
110
111
  /* @__PURE__ */n.jsx(Text,{style:s("nextLabel"),children:r.label}),
111
112
  /* @__PURE__ */n.jsx(Text,{style:c("nextText"),children:r.text})]})]},r.label))}):null,r.note?/* @__PURE__ */n.jsxs(t.View,{style:a("waitText"),children:[e.icon("chat",d("waitTextSvg",h),u("waitTextSvg",20)),
112
- /* @__PURE__ */n.jsx(Text,{style:[...s("waitText"),_s],children:r.note})]}):null,r.action&&i?Us(e,r.action,i,{part:"waitButton"}):null]})}function Zs(e,r,i,o,l){let{bx:a,tb:s,ink:c,side:d}=e.S.D;/* @__PURE__ */
113
+ /* @__PURE__ */n.jsx(Text,{style:[...s("waitText"),Es],children:r.note})]}):null,r.action&&i?Gs(e,r.action,i,{part:"waitButton"}):null]})}function tc(e,r,i,o,l){let{bx:a,tb:s,ink:c,side:d}=e.S.D;/* @__PURE__ */
113
114
  return n.jsxs(t.View,{style:a("shopEmpty"),children:[
114
115
  /* @__PURE__ */n.jsx(t.View,{style:a("shopEmptyTile"),children:e.icon(r,c("shopEmptyTile",e.S.X.roles.link??""),d("shopEmptyTileSvg",34))}),
115
116
  /* @__PURE__ */n.jsx(Text,{style:s("shopEmptyTitle"),accessibilityRole:"header",children:i}),
116
- /* @__PURE__ */n.jsx(Text,{style:s("shopEmptyText"),children:o}),l]})}var ec=(e,r,i,o,l="box")=>{let{bx:a,ink:s}=e.S.D;/* @__PURE__ */
117
- return n.jsx(t.View,{style:a(i),children:r?/* @__PURE__ */n.jsx(t.Image,{source:{uri:r},style:Ls,accessibilityIgnoresInvertColors:true}):e.icon(l,s(i,e.S.X.roles.link??""),o)})};function tc(e,r,i,o,l,a){let{S:s,copy:c}=e,{bx:d,tx:u,tb:p,inner:h,side:g}=s.D,f=s.X;if(r.length===0)/* @__PURE__ */
118
- return n.jsx(t.View,{style:d("shop"),testID:"health-plan-cart-empty",children:Zs(e,"cart",c.cartEmptyTitle,c.cartEmptyBody(l),qs(e,c.seeOrders,a.onOrders,"health-plan-cart-orders"))});let m=(r,i,o,l,a,s)=>/* @__PURE__ */n.jsx(t.Pressable,{onPress:o?void 0:l,disabled:o,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:o},hitSlop:Ws,style:Ps([...d("stepperButton",o&&"stepperButtonDisabled"),Ss(f.stepper,s)],Hs.stepper,o),testID:a,children:e.icon(i,void 0,g("stepperButtonSvg",16))});/* @__PURE__ */
117
+ /* @__PURE__ */n.jsx(Text,{style:s("shopEmptyText"),children:o}),l]})}var nc=(e,r,i,o,l="box")=>{let{bx:a,ink:s}=e.S.D;/* @__PURE__ */
118
+ return n.jsx(t.View,{style:a(i),children:r?/* @__PURE__ */n.jsx(t.Image,{source:{uri:r},style:As,accessibilityIgnoresInvertColors:true}):e.icon(l,s(i,e.S.X.roles.link??""),o)})};function rc(e,r,i,o,l,a){let{S:s,copy:c}=e,{bx:d,tx:u,tb:p,inner:h,side:g}=s.D,f=s.X;if(r.length===0)/* @__PURE__ */
119
+ return n.jsx(t.View,{style:d("shop"),testID:"health-plan-cart-empty",children:tc(e,"cart",c.cartEmptyTitle,c.cartEmptyBody(l),Ks(e,c.seeOrders,a.onOrders,"health-plan-cart-orders"))});let m=(r,i,o,l,a,s)=>/* @__PURE__ */n.jsx(t.Pressable,{onPress:o?void 0:l,disabled:o,accessibilityRole:"button",accessibilityLabel:r,accessibilityState:{disabled:o},hitSlop:Ms,style:Rs([...d("stepperButton",o&&"stepperButtonDisabled"),Cs(f.stepper,s)],Fs.stepper,o),testID:a,children:e.icon(i,void 0,g("stepperButtonSvg",16))});/* @__PURE__ */
119
120
  return n.jsxs(t.View,{style:d("shop"),testID:"health-plan-cart",children:[
120
121
  /* @__PURE__ */n.jsx(t.View,{style:d("shopCard"),children:/* @__PURE__ */n.jsx(t.View,{style:d("cartItems"),children:r.map(r=>/* @__PURE__ */n.jsxs(t.View,{style:d("cartItem"),testID:`health-plan-cart-line-${r.key}`,children:[
121
- /* @__PURE__ */n.jsx(t.View,{style:Ss(f.cartItem,0),children:ec(e,r.imageUrl,"cartItemImage",g("cartItemImageSvg",28))}),
122
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(f.cartItem,1),children:[
122
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(f.cartItem,0),children:nc(e,r.imageUrl,"cartItemImage",g("cartItemImageSvg",28))}),
123
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(f.cartItem,1),children:[
123
124
  /* @__PURE__ */n.jsx(Text,{style:p("cartItemTitle"),children:r.name}),
124
- /* @__PURE__ */n.jsxs(t.View,{style:d("cartItemPrice"),children:[r.price===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceValue"),children:r.price}),r.was===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceWas"),children:r.was}),r.note===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceNote"),children:r.note})]}),r.modes===null?null:/* @__PURE__ */n.jsx(t.View,{style:d("mode"),accessibilityRole:"radiogroup",accessibilityLabel:r.modes.label,children:["sub","once"].map(e=>{let i=e==="sub"?r.modes?.sub:r.modes?.once,o=e==="sub"?r.subscription:!r.subscription;return i===void 0?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>a.onMode(r.key,e),accessibilityRole:"radio",accessibilityLabel:i.label,accessibilityState:{checked:o},style:Ps(d("modeButton",o&&"modeButtonOn"),Hs.mode,false),children:[h("modeButton",o&&"modeButtonOn"),
125
- /* @__PURE__ */n.jsx(Text,{style:[...u("modeButton"),_s],children:i.label}),i.price===null?null:/* @__PURE__ */n.jsx(Text,{style:u("modeButton","modePrice"),children:i.price})]},e)})}),r.every===null?null:/* @__PURE__ */n.jsxs(t.View,{style:d("every"),accessibilityRole:"radiogroup",accessibilityLabel:c.shipsEvery,children:[h("every"),r.every.options.map((e,i)=>{let o=r.every?.selected===e;/* @__PURE__ */
126
- return n.jsx(t.Pressable,{onPress:()=>a.onEvery(r.key,e),accessibilityRole:"radio",accessibilityState:{checked:o},accessibilityLabel:c.days(e),style:Ps([...d("everyButton",o&&"everyButtonOn"),Ss(f.every,i),Bs],Hs.every,false),children:/* @__PURE__ */n.jsx(Text,{style:u("everyButton",o&&"everyButtonOn"),children:c.days(e)})},e)})]}),
125
+ /* @__PURE__ */n.jsxs(t.View,{style:d("cartItemPrice"),children:[r.price===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceValue"),children:r.price}),r.was===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceWas"),children:r.was}),r.note===null?null:/* @__PURE__ */n.jsx(Text,{style:u("cartItemPriceNote"),children:r.note})]}),r.modes===null?null:/* @__PURE__ */n.jsx(t.View,{style:d("mode"),accessibilityRole:"radiogroup",accessibilityLabel:r.modes.label,children:["sub","once"].map(e=>{let i=e==="sub"?r.modes?.sub:r.modes?.once,o=e==="sub"?r.subscription:!r.subscription;return i===void 0?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>a.onMode(r.key,e),accessibilityRole:"radio",accessibilityLabel:i.label,accessibilityState:{checked:o},style:Rs(d("modeButton",o&&"modeButtonOn"),Fs.mode,false),children:[h("modeButton",o&&"modeButtonOn"),
126
+ /* @__PURE__ */n.jsx(Text,{style:[...u("modeButton"),Es],children:i.label}),i.price===null?null:/* @__PURE__ */n.jsx(Text,{style:u("modeButton","modePrice"),children:i.price})]},e)})}),r.every===null?null:/* @__PURE__ */n.jsxs(t.View,{style:d("every"),accessibilityRole:"radiogroup",accessibilityLabel:c.shipsEvery,children:[h("every"),r.every.options.map((e,i)=>{let o=r.every?.selected===e;/* @__PURE__ */
127
+ return n.jsx(t.Pressable,{onPress:()=>a.onEvery(r.key,e),accessibilityRole:"radio",accessibilityState:{checked:o},accessibilityLabel:c.days(e),style:Rs([...d("everyButton",o&&"everyButtonOn"),Cs(f.every,i),Ls],Fs.every,false),children:/* @__PURE__ */n.jsx(Text,{style:u("everyButton",o&&"everyButtonOn"),children:c.days(e)})},e)})]}),
127
128
  /* @__PURE__ */n.jsxs(t.View,{style:d("cartItemActions"),children:[r.subscription?null:/* @__PURE__ */n.jsxs(t.View,{style:d("stepper"),accessibilityLabel:c.quantityLabel(r.name),children:[h("stepper"),m(c.fewer,"minus",r.quantity<=1,()=>a.onQuantity(r.key,-1),`health-plan-fewer-${r.key}`,0),
128
- /* @__PURE__ */n.jsx(Text,{style:[...u("stepperValue"),Ss(f.stepper,1)],accessibilityLiveRegion:"polite",children:String(r.quantity)}),m(c.more,"plus",r.quantity>=r.maxQuantity,()=>a.onQuantity(r.key,1),`health-plan-more-${r.key}`,2)]}),
129
- /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>a.onRemove(r.key),accessibilityRole:"button",accessibilityLabel:c.remove,hitSlop:Ws,style:[...d("remove"),Bs],testID:`health-plan-remove-${r.key}`,children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:u("remove"),children:c.remove})})]})]})]},r.key))})}),Ks(e,i,{tag:true,renew:o}),
130
- /* @__PURE__ */n.jsx(t.View,{style:d("shopActions"),children:qs(e,c.seeOrders,a.onOrders,"health-plan-cart-orders")})]})}function nc(e,r,i,o,l,a,s,c){let{S:d,copy:u}=e,{bx:p,tx:h,tb:g}=d.D,f=d.X;/* @__PURE__ */
129
+ /* @__PURE__ */n.jsx(Text,{style:[...u("stepperValue"),Cs(f.stepper,1)],accessibilityLiveRegion:"polite",children:String(r.quantity)}),m(c.more,"plus",r.quantity>=r.maxQuantity,()=>a.onQuantity(r.key,1),`health-plan-more-${r.key}`,2)]}),
130
+ /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>a.onRemove(r.key),accessibilityRole:"button",accessibilityLabel:c.remove,hitSlop:Ms,style:[...d("remove"),Ls],testID:`health-plan-remove-${r.key}`,children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:u("remove"),children:c.remove})})]})]})]},r.key))})}),Ys(e,i,{tag:true,renew:o}),
131
+ /* @__PURE__ */n.jsx(t.View,{style:d("shopActions"),children:Ks(e,c.seeOrders,a.onOrders,"health-plan-cart-orders")})]})}function ic(e,r,i,o,l,a,s,c){let{S:d,copy:u}=e,{bx:p,tx:h,tb:g}=d.D,f=d.X;/* @__PURE__ */
131
132
  return n.jsxs(t.View,{style:p("co"),testID:"health-plan-cart-checkout-sheet",children:[
132
- /* @__PURE__ */n.jsx(Text,{style:Ms,accessibilityRole:"header",testID:"health-plan-cart-checkout-title",children:u.cartCheckoutTitle}),
133
+ /* @__PURE__ */n.jsx(Text,{style:Us,accessibilityRole:"header",testID:"health-plan-cart-checkout-title",children:u.cartCheckoutTitle}),
133
134
  /* @__PURE__ */n.jsx(t.View,{style:p("coItems"),children:r.map(r=>/* @__PURE__ */n.jsxs(t.View,{style:p("coItem"),children:[
134
- /* @__PURE__ */n.jsx(t.View,{style:Ss(f.coItem,0),children:ec(e,r.imageUrl,"coItemPic",20)}),
135
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(f.coItem,1),children:[
135
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(f.coItem,0),children:nc(e,r.imageUrl,"coItemPic",20)}),
136
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(f.coItem,1),children:[
136
137
  /* @__PURE__ */n.jsx(Text,{style:h("coItemStrong"),children:r.name}),
137
138
  /* @__PURE__ */n.jsx(Text,{style:h("coItemSmall"),children:r.subscription?u.cartItemSubscription(r.lp):u.cartItemQuantity(r.quantity)})]}),
138
- /* @__PURE__ */n.jsx(Text,{style:[...h("coItem","coItemValue"),Ss(f.coItem,2)],children:i(r)??""})]},r.key))}),Gs(e,o),Ks(e,l,{renew:a,inCheckout:true}),Us(e,s.label,s.onPress,{disabled:s.disabled,testID:"health-plan-place-order"}),c===""?null:/* @__PURE__ */n.jsx(Text,{style:g("coFine"),children:c})]})}function rc(e,r,i,o,l){let{S:a,copy:s}=e,{bx:c,im:d,tx:u,tb:p,ink:h,side:g}=a.D,f=a.X,m=r.step===3,y=r.dates[3]??null,b=o(y),w=m?b===null?null:s.deliveredOn(b):b===null?null:s.arrivesBy(b),x=i(r.total,r.currency),k=Os(r.items.map(e=>e.title));/* @__PURE__ */
139
- return n.jsxs(t.Pressable,{onPress:()=>l(r.key),accessibilityRole:"button",accessibilityLabel:k,style:Ps(c("order"),Hs.order,false),testID:`health-plan-order-${r.key}`,children:[
140
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(f.order,0),children:[
139
+ /* @__PURE__ */n.jsx(Text,{style:[...h("coItem","coItemValue"),Cs(f.coItem,2)],children:i(r)??""})]},r.key))}),Xs(e,o),Ys(e,l,{renew:a,inCheckout:true}),Gs(e,s.label,s.onPress,{disabled:s.disabled,testID:"health-plan-place-order"}),c===""?null:/* @__PURE__ */n.jsx(Text,{style:g("coFine"),children:c})]})}function oc(e,r,i,o,l){let{S:a,copy:s}=e,{bx:c,im:d,tx:u,tb:p,ink:h,side:g}=a.D,f=a.X,m=r.step===3,y=r.dates[3]??null,b=o(y),w=m?b===null?null:s.deliveredOn(b):b===null?null:s.arrivesBy(b),x=i(r.total,r.currency),k=_s(r.items.map(e=>e.title));/* @__PURE__ */
140
+ return n.jsxs(t.Pressable,{onPress:()=>l(r.key),accessibilityRole:"button",accessibilityLabel:k,style:Rs(c("order"),Fs.order,false),testID:`health-plan-order-${r.key}`,children:[
141
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(f.order,0),children:[
141
142
  /* @__PURE__ */n.jsxs(t.View,{style:c("orderTop"),children:[
142
143
  /* @__PURE__ */n.jsx(t.View,{style:c("pill",m&&"pillDone"),children:/* @__PURE__ */n.jsx(Text,{style:u("pill",m&&"pillDone"),children:s.orderSteps[r.step]??""})}),r.subscriptionBox?/* @__PURE__ */n.jsx(t.View,{style:c("pill","pillSub"),children:/* @__PURE__ */n.jsx(Text,{style:u("pill","pillSub"),children:s.subscriptionBox})}):null,r.number===null?null:/* @__PURE__ */n.jsx(Text,{style:u("orderNo"),children:r.number})]}),
143
144
  /* @__PURE__ */n.jsx(Text,{style:p("orderWhat"),children:k}),
144
145
  /* @__PURE__ */n.jsx(Text,{style:p("orderMeta"),children:[w,x].filter(e=>e!==null).join(" · ")}),r.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:c("orderPics"),children:r.items.map(r=>/* @__PURE__ */n.jsx(t.View,{style:c("orderPic"),children:r.imageUrl?/* @__PURE__ */n.jsx(t.Image,{source:{uri:r.imageUrl},style:d("orderPicImage"),accessibilityIgnoresInvertColors:true}):e.icon(r.icon??"box",h("orderPic",f.roles.link??""),g("orderPicSvg",20))},r.title))})]}),
145
- /* @__PURE__ */n.jsx(t.View,{style:Ss(f.order,1),children:e.icon("chev",h("orderChev",f.roles.ink3??""),g("orderChev",18))})]},r.key)}function ic(e,r){let{S:i,copy:o}=e,{bx:l,im:a,tx:s,tb:c,inner:d,ink:u}=i.D,p=i.X,h=r.subscription;return!r.loaded&&h===null?/* @__PURE__ */n.jsx(t.View,{style:l("shop"),testID:"health-plan-orders-loading"}):r.loaded&&r.orders.length===0&&h===null?/* @__PURE__ */n.jsx(t.View,{style:l("shop"),testID:"health-plan-orders-empty",children:Zs(e,"box",o.ordersEmptyTitle,o.ordersEmptyBody(r.petPrices),Us(e,o.startedDone,r.onBack,{part:"shopEmptyButton"}))}):/* @__PURE__ */n.jsxs(t.View,{style:l("shop"),testID:"health-plan-orders",children:[h===null?null:/* @__PURE__ */n.jsxs(n.Fragment,{children:[
146
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(f.order,1),children:e.icon("chev",h("orderChev",f.roles.ink3??""),g("orderChev",18))})]},r.key)}function lc(e,r){let{S:i,copy:o}=e,{bx:l,im:a,tx:s,tb:c,inner:d,ink:u}=i.D,p=i.X,h=r.subscription;return!r.loaded&&h===null?/* @__PURE__ */n.jsx(t.View,{style:l("shop"),testID:"health-plan-orders-loading"}):r.loaded&&r.orders.length===0&&h===null?/* @__PURE__ */n.jsx(t.View,{style:l("shop"),testID:"health-plan-orders-empty",children:tc(e,"box",o.ordersEmptyTitle,o.ordersEmptyBody(r.petPrices),Gs(e,o.startedDone,r.onBack,{part:"shopEmptyButton"}))}):/* @__PURE__ */n.jsxs(t.View,{style:l("shop"),testID:"health-plan-orders",children:[h===null?null:/* @__PURE__ */n.jsxs(n.Fragment,{children:[
146
147
  /* @__PURE__ */n.jsx(Text,{style:c("shopKey"),children:o.herSubscription}),
147
- /* @__PURE__ */n.jsxs(t.View,{style:l("subCard"),testID:"health-plan-orders-subscription",children:[h.imageUrl?/* @__PURE__ */n.jsx(t.Image,{source:{uri:h.imageUrl},style:[...a("subCardImage"),{flexShrink:0}],accessibilityIgnoresInvertColors:true}):/* @__PURE__ */n.jsx(t.View,{style:[...l("subCardImage"),Ss(p.subCard,0),Bs,{alignItems:"center"}],children:e.icon("box",u("subCardImage",p.roles.link??""))}),
148
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(p.subCard,1),children:[
148
+ /* @__PURE__ */n.jsxs(t.View,{style:l("subCard"),testID:"health-plan-orders-subscription",children:[h.imageUrl?/* @__PURE__ */n.jsx(t.Image,{source:{uri:h.imageUrl},style:[...a("subCardImage"),{flexShrink:0}],accessibilityIgnoresInvertColors:true}):/* @__PURE__ */n.jsx(t.View,{style:[...l("subCardImage"),Cs(p.subCard,0),Ls,{alignItems:"center"}],children:e.icon("box",u("subCardImage",p.roles.link??""))}),
149
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(p.subCard,1),children:[
149
150
  /* @__PURE__ */n.jsx(Text,{style:c("subCardStrong"),children:h.name}),h.next===null?null:/* @__PURE__ */n.jsx(Text,{style:c("subCardSmall"),children:o.nextBox(h.next)}),
150
151
  /* @__PURE__ */n.jsx(Text,{style:c("subCardSmall"),children:o.everyDays(h.every)})]}),
151
- /* @__PURE__ */n.jsxs(t.Pressable,{onPress:h.onManage,accessibilityRole:"button",accessibilityLabel:o.manage,hitSlop:Ws,style:Ps([...l("subCardButton"),Ss(p.subCard,2),Bs],Hs.subCard,false),testID:"health-plan-orders-manage",children:[d("subCardButton"),
152
+ /* @__PURE__ */n.jsxs(t.Pressable,{onPress:h.onManage,accessibilityRole:"button",accessibilityLabel:o.manage,hitSlop:Ms,style:Rs([...l("subCardButton"),Cs(p.subCard,2),Ls],Fs.subCard,false),testID:"health-plan-orders-manage",children:[d("subCardButton"),
152
153
  /* @__PURE__ */n.jsx(Text,{tier:"control",style:s("subCardButton"),children:o.manage})]})]})]}),r.orders.length>0?/* @__PURE__ */n.jsxs(n.Fragment,{children:[
153
154
  /* @__PURE__ */n.jsx(Text,{style:c("shopKey"),children:o.ordersHeading(h!==null)}),
154
- /* @__PURE__ */n.jsx(t.View,{style:l("orderList"),children:r.orders.map(t=>rc(e,t,r.fmt,r.day,r.onOpen))}),r.more&&o.moreOrders!==""?Us(e,o.moreOrders,r.more.onMore,{ghost:true,disabled:r.more.loading,testID:"health-plan-orders-more"}):null,o.ordersFine===""?null:/* @__PURE__ */n.jsx(Text,{style:c("shopFine"),children:o.ordersFine})]}):null]})}function oc(e,r){let{S:i,copy:o}=e,{bx:l,tx:a,tb:s,inner:c,ink:d,side:u}=i.D,p=i.X,h=r.order,g=h.step===3,f=h.dates[3]??null,m=r.day(f),y=g?m===null?null:o.deliveredOn(m):m===null?null:o.arrivesBy(m),b=(h.steps??(h.everfur?[0,1,2,3].slice(0,h.step+1):[0,1,2,3])).flatMap(e=>{let t=o.orderSteps[e];if(t===void 0)return[];let n=r.day(h.dates[e]??null);return[e<=h.step?{title:t,state:"done",...n===null?{}:{detail:n}}:{title:t,state:"next",...n===null?{}:{detail:o.expected(n)}}]}),w=h.trackingUrl!==null&&/^https:\/\//i.test(h.trackingUrl)?h.trackingUrl:null,x=w===null?"":h.carrier!==null?o.trackOn(h.carrier):o.trackLink,k=r.fmt(h.total,h.currency)??"",v=[o.ordersFine,h.everfur?o.orderNote:""].filter(e=>e!=="").join(" ");/* @__PURE__ */
155
+ /* @__PURE__ */n.jsx(t.View,{style:l("orderList"),children:r.orders.map(t=>oc(e,t,r.fmt,r.day,r.onOpen))}),r.more&&o.moreOrders!==""?Gs(e,o.moreOrders,r.more.onMore,{ghost:true,disabled:r.more.loading,testID:"health-plan-orders-more"}):null,o.ordersFine===""?null:/* @__PURE__ */n.jsx(Text,{style:c("shopFine"),children:o.ordersFine})]}):null]})}function ac(e,r){let{S:i,copy:o}=e,{bx:l,tx:a,tb:s,inner:c,ink:d,side:u}=i.D,p=i.X,h=r.order,g=h.step===3,f=h.dates[3]??null,m=r.day(f),y=g?m===null?null:o.deliveredOn(m):m===null?null:o.arrivesBy(m),b=(h.steps??(h.everfur?[0,1,2,3].slice(0,h.step+1):[0,1,2,3])).flatMap(e=>{let t=o.orderSteps[e];if(t===void 0)return[];let n=r.day(h.dates[e]??null);return[e<=h.step?{title:t,state:"done",...n===null?{}:{detail:n}}:{title:t,state:"next",...n===null?{}:{detail:o.expected(n)}}]}),w=h.trackingUrl!==null&&/^https:\/\//i.test(h.trackingUrl)?h.trackingUrl:null,x=w===null?"":h.carrier!==null?o.trackOn(h.carrier):o.trackLink,k=r.fmt(h.total,h.currency)??"",v=[o.ordersFine,h.everfur?o.orderNote:""].filter(e=>e!=="").join(" ");/* @__PURE__ */
155
156
  return n.jsxs(t.View,{style:l("shop"),testID:"health-plan-order",children:[
156
157
  /* @__PURE__ */n.jsx(Text,{style:s("shopTitle"),accessibilityRole:"header",children:g?o.orderSteps[3]:o.orderSteps[0]}),y===null?null:/* @__PURE__ */n.jsx(Text,{style:s("shopSub"),children:y}),
157
- /* @__PURE__ */n.jsx(t.View,{style:l("shopCard"),children:Ys(e,b,o.tracking)}),h.carrier===null&&h.trackingNumber===null?null:/* @__PURE__ */n.jsx(t.View,{style:l("shopCard"),testID:"health-plan-carrier",children:/* @__PURE__ */n.jsxs(t.View,{style:[...l("carrier"),Es],children:[
158
- /* @__PURE__ */n.jsx(t.View,{style:[...l("carrierIcon"),Ss(p.carrier,0)],children:e.icon("truck",d("carrierIcon",p.roles.link??""),u("carrierIconSvg",21))}),
159
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(p.carrier,1),children:[h.carrier===null?null:/* @__PURE__ */n.jsx(Text,{style:s("carrierStrong"),children:h.carrier}),h.trackingNumber===null?null:
160
- /* @__PURE__ */n.jsxs(t.View,{style:[...l("carrierSmall"),Es],children:[
161
- /* @__PURE__ */n.jsx(Text,{style:a("carrierSmall"),selectable:true,children:h.trackingNumber}),h.trackingTag===null?null:/* @__PURE__ */n.jsx(t.View,{style:l("carrierTag"),testID:"health-plan-tracking-tag",children:/* @__PURE__ */n.jsx(Text,{style:a("carrierTag"),children:h.trackingTag})})]}),h.trackingNumber===null&&o.trackingByText!==""?/* @__PURE__ */n.jsx(Text,{style:s("carrierWait"),children:o.trackingByText}):null]}),w===null||x===""||h.trackingNumber===null?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>{t.Linking.openURL(w).catch(()=>{})},accessibilityRole:"button",accessibilityLabel:x,hitSlop:Ws,style:Ps([...l("carrierButton"),As],Hs.button,false),testID:"health-plan-track-link",children:[c("carrierButton"),
158
+ /* @__PURE__ */n.jsx(t.View,{style:l("shopCard"),children:Qs(e,b,o.tracking)}),h.carrier===null&&h.trackingNumber===null?null:/* @__PURE__ */n.jsx(t.View,{style:l("shopCard"),testID:"health-plan-carrier",children:/* @__PURE__ */n.jsxs(t.View,{style:[...l("carrier"),Ws],children:[
159
+ /* @__PURE__ */n.jsx(t.View,{style:[...l("carrierIcon"),Cs(p.carrier,0)],children:e.icon("truck",d("carrierIcon",p.roles.link??""),u("carrierIconSvg",21))}),
160
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(p.carrier,1),children:[h.carrier===null?null:/* @__PURE__ */n.jsx(Text,{style:s("carrierStrong"),children:h.carrier}),h.trackingNumber===null?null:
161
+ /* @__PURE__ */n.jsxs(t.View,{style:[...l("carrierSmall"),Ws],children:[
162
+ /* @__PURE__ */n.jsx(Text,{style:a("carrierSmall"),selectable:true,children:h.trackingNumber}),h.trackingTag===null?null:/* @__PURE__ */n.jsx(t.View,{style:l("carrierTag"),testID:"health-plan-tracking-tag",children:/* @__PURE__ */n.jsx(Text,{style:a("carrierTag"),children:h.trackingTag})})]}),h.trackingNumber===null&&o.trackingByText!==""?/* @__PURE__ */n.jsx(Text,{style:s("carrierWait"),children:o.trackingByText}):null]}),w===null||x===""||h.trackingNumber===null?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>{t.Linking.openURL(w).catch(()=>{})},accessibilityRole:"button",accessibilityLabel:x,hitSlop:Ms,style:Rs([...l("carrierButton"),Vs],Fs.button,false),testID:"health-plan-track-link",children:[c("carrierButton"),
162
163
  /* @__PURE__ */n.jsx(Text,{tier:"control",style:a("carrierButton"),children:x})]})]})}),
163
164
  /* @__PURE__ */n.jsx(Text,{style:s("shopKey"),children:o.inThisOrder}),
164
165
  /* @__PURE__ */n.jsx(t.View,{style:l("shopCard"),children:/* @__PURE__ */n.jsx(t.View,{style:l("cartItems"),children:h.items.map(i=>/* @__PURE__ */n.jsxs(t.View,{style:l("cartItem"),testID:"health-plan-order-line",children:[
165
- /* @__PURE__ */n.jsx(t.View,{style:Ss(p.cartItem,0),children:ec(e,i.imageUrl,"cartItemImage",u("cartItemImageSvg",28),i.icon??"box")}),
166
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(p.cartItem,1),children:[
166
+ /* @__PURE__ */n.jsx(t.View,{style:Cs(p.cartItem,0),children:nc(e,i.imageUrl,"cartItemImage",u("cartItemImageSvg",28),i.icon??"box")}),
167
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(p.cartItem,1),children:[
167
168
  /* @__PURE__ */n.jsx(Text,{style:s("cartItemTitle"),children:i.title}),
168
169
  /* @__PURE__ */n.jsxs(t.View,{style:l("cartItemPrice"),children:[
169
170
  /* @__PURE__ */n.jsx(Text,{style:a("cartItemPriceValue"),children:r.fmt(i.price,h.currency)??""}),
170
- /* @__PURE__ */n.jsx(Text,{style:a("cartItemPriceNote"),children:o.orderItemLine(i.quantity,h.subscriptionBox)})]})]})]},i.title))})}),Ks(e,k),Gs(e,r.rows,true),r.onBuyAgain===null?null:Us(e,o.buyAgain,r.onBuyAgain,{ghost:true,testID:"health-plan-buy-again"}),r.onHelp===null?null:qs(e,o.orderHelp,r.onHelp),v===""?null:/* @__PURE__ */n.jsx(Text,{style:s("shopFine"),children:v})]})}var lc=e.createContext(null),ac=e.createContext(null);function HealthPlanScrollScope({scrollRef:r,children:i,style:o}){let l=e.useRef(null),a=vo().motion.reducedMotion,s=e.useCallback(e=>{let t=l.current,n=r.current;if(!(e===null||t===null||n===null))try{e.measureLayout(t,(e,t)=>n.scrollTo({y:Math.max(0,t),animated:!a}),()=>{})}catch{}},[r,a]),c=e.useMemo(()=>s,[s]),d=e.useMemo(()=>({measure:e=>{let t=r.current;if(typeof t?.measureInWindow=="function")try{t.measureInWindow((t,n,r,i)=>{i>0&&e({y:n,height:i})})}catch{}},top:e=>{let t=l.current,n=r.current;if(!(e===null||t===null||n===null))try{e.measureLayout(t,(e,t)=>n.scrollTo({y:Math.max(0,t),animated:!1}),()=>{})}catch{}}}),[r]);/* @__PURE__ */
171
- return n.jsx(lc.Provider,{value:c,children:/* @__PURE__ */n.jsx(ac.Provider,{value:d,children:/* @__PURE__ */n.jsx(t.View,{ref:l,style:o,collapsable:false,children:i})})})}function sc(){return e.useContext(lc)}function cc(){return e.useContext(ac)}var dc=false;function uc(e){if(dc||!e)return;dc=true;let t=globalThis.console;try{t?.warn?.("[everfur] A ConnectedHealthPlan* block was drawn outside HealthPlanFocusProvider, so it draws nothing. Wrap it in HealthPlanFocusProvider (or HealthPlanFocus), or use the pure block with your own data.")}catch{}}function healthPlanPetWords(e,t){let n=e?.trim()??"",r=n===""?"your pet":n,i=n===""?"Your pet":n;return t==="female"?{name:r,Name:i,poss:"her",Poss:"Her",obj:"her"}:t==="male"?{name:r,Name:i,poss:"his",Poss:"His",obj:"him"}:{name:r,Name:i,poss:`${r}'s`,Poss:`${i}'s`,obj:r}}var pc=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,hc=/* @__PURE__ */Object.freeze({onceFine:"",cartFine:pc,startedWhat:()=>""});function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name,e.sex),n=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,n)=>n?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,n)=>`${t?"Subscribe":"Buy now"} · ${n} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,n)=>n===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${n}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,n)=>n?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${pc(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${n(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${n(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var gc=healthPlanFocusCopyFor({sex:"female"});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let n=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(n.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(n)}catch{return e}}var fc=/* @__PURE__ */Object.freeze({loaded:false,orders:[],next:null,loading:false});function mc(e,t){return[...e.filter(e=>e.kind!==t.kind),t]}function yc(e,t,n){return e!==null?e.kind:bc(t,n)}function bc(e,t){return e!==null?"started":t!==void 0?t.kind:null}function wc(e,t){let n=/* @__PURE__ */new Set;return[...e,...t].filter(e=>n.has(e.orderId)?false:(n.add(e.orderId),true))}function xc(e,t){return[...t,...e.filter(e=>!t.some(t=>t.orderId===e.orderId))]}function kc(e,t){return{loaded:true,orders:[...e.orders,...t.orders.filter(t=>!e.orders.some(e=>e.orderId===t.orderId))],next:t.nextCursor,loading:false}}function vc(e,t,n){if(e===null)return null;let r=t.find(t=>t.orderId===e);return r!==void 0?r.tracking?.orderNumber??null:n.find(t=>t.key===e)?.number??null}function Sc(e,t,n){return e.flatMap(e=>e.productId!==t?[e]:n(e)??[])}async function Tc(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...t===null?{}:{cursor:t}});if(t!==null||e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let n=await e.listOneBoxOrders(petRef);return n.ok?{ok:true,value:{orders:n.value,nextCursor:null}}:n}function Cc(e){if(e.httpStatus!==422)return false;let t=e.raw!==null&&typeof e.raw=="object"?e.raw:null;return[e.reasonCode,e.wireMessage,t?.detail,t?.message].some(e=>e==="invalid_cursor")}var jc=e=>Math.round(e*100)/100;function useHealthPlanSubscriptionRepository(){let{runtime:t}=$();return e.useMemo(()=>createHealthPlanSubscriptionRepository(t),[t])}function useHealthPlanSubscription(t){let{userRef:userRef}=$(),n=useHealthPlanSubscriptionRepository(),r=t.repository??n,i=t.enabled!==false&&userRef!==null&&t.petRef!==null&&t.productId!==null,{petRef:petRef,productId:o}=t,[l,a]=e.useState("idle"),[s,c]=e.useState(null),[d,u]=e.useState(null),[p,h]=e.useState(false),[g,f]=e.useState(null),[m,y]=e.useState(null),b=e.useRef(0),w=e.useRef(0),x=e.useRef(0),k=e.useRef(false),v=e.useRef(false),S=e.useRef(()=>Promise.resolve()),T=e.useCallback(async()=>{let e=++b.current;if(v.current=false,y(null),!i||petRef===null||o===null){a("idle"),c(null),u(null);return}a("loading");let t=await r.quote(petRef,o);if(e===b.current){if(!t.ok){c(null),u(null),f(t.error),a(isHealthPlanSubscriptionUnavailable(t.error)?"unavailable":"failed");return}f(null),c(t.value),u(t.value.subscription),a("ready"),y(Date.now())}},[i,petRef,o,r]),C=i&&l==="ready",j=e.useCallback(async()=>{if(!C||k.current||petRef===null||o===null)return;let e=b.current,t=w.current,n=++x.current,i=await r.quote(petRef,o);e!==b.current||t!==w.current||n!==x.current||k.current||!i.ok||(c(i.value),u(i.value.subscription),y(Date.now()))},[C,petRef,o,r]);S.current=j;let I=()=>{if(!C){T();return}if(k.current){v.current=true;return}j()};Ht({lifecycle:t.lifecycle,refreshKey:t.refreshKey,readyAt:C?m:null,revalidate:()=>{j()},refresh:I});let H=e.useCallback(()=>{v.current&&(v.current=false,S.current())},[]);e.useEffect(()=>(T(),()=>{b.current+=1}),[T]);let P=e.useCallback(async e=>{let t=b.current;w.current+=1,k.current=true,h(true);let n=await e();return k.current=false,t!==b.current?n:(h(false),n.ok?(f(null),u(n.value),H(),n):(f(n.error),isHealthPlanSubscriptionUnavailable(n.error)?a("unavailable"):H(),n))},[H]),F=e.useCallback(async e=>{let t=b.current;w.current+=1,k.current=true,h(true);let n=await r.buyOneBox(petRef,o,e);return k.current=false,t!==b.current?n:(h(false),n.ok?(f(null),T(),n):(f(n.error),isHealthPlanSubscriptionUnavailable(n.error)?a("unavailable"):H(),n))},[r,petRef,o,T,H]);return e.useMemo(()=>{let e=petRef,t=d?.subscriptionId??"",n=()=>Promise.resolve(err(makeEverfurError("validationFailed",{retryable:false,wireMessage:"the subscription quote is not ready"})));return{phase:l,quote:s,subscription:d,busy:p,error:g,subscribe:t=>C&&o!==null?P(()=>r.create(e,o,t)):n(),changeInterval:i=>C&&t!==""?P(()=>r.changeInterval(e,t,i)):n(),skip:()=>C&&t!==""?P(()=>r.skip(e,t)):n(),cancel:()=>C&&t!==""?P(()=>r.cancel(e,t)):n(),restart:i=>C&&t!==""?P(()=>r.restart(e,t,i)):n(),buyOneBox:e=>C&&o!==null?F(e):n(),refresh:T}},[l,s,d,p,g,C,petRef,o,r,P,F,T])}var Ic=2.20462262;function Hc(e,t){return{weightKg:t?e:Math.round(e/Ic*100)/100,pounds:t?Math.round(e*Ic*10)/10:e}}var Pc=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanSignals@v1"),Fc=globalThis;function Rc(e){if(typeof e!="object"||e===null)return false;let t=e;return t.landed instanceof Set&&t.noVet instanceof Set&&t.noVetByPet instanceof Map}var Dc=Fc[Pc],zc=()=>({landed:/* @__PURE__ */new Set,noVet:/* @__PURE__ */new Set,noVetByPet:/* @__PURE__ */new Map}),$c=Rc(Dc)?Dc:Fc[Pc]=zc(),Oc=$c.landed,Bc=$c.noVet,_c=$c.noVetByPet;function notifyHealthPlanRecordsLanded(petRef,e="host"){for(let t of[...Oc])try{t(petRef,e)}catch{}}function onHealthPlanRecordsLanded(e){return Oc.add(e),()=>{Oc.delete(e)}}function setHealthPlanNoVet(petRef,e){if((_c.get(petRef)??false)!==e){e?_c.set(petRef,true):_c.delete(petRef);for(let t of[...Bc])try{t(petRef,e)}catch{}}}function healthPlanNoVet(petRef){return _c.get(petRef)??false}function onHealthPlanNoVet(e){return Bc.add(e),()=>{Bc.delete(e)}}function Lc(t){let{petRef:petRef,noVet:n,blanksFacts:r,store:i,say:o,line:l}=t,[a,s]=e.useState(()=>healthPlanNoVet(petRef));e.useEffect(()=>(s(healthPlanNoVet(petRef)),onHealthPlanNoVet((e,t)=>{e===petRef&&s(t)})),[petRef]);let c=n??a,[d,u]=e.useState(null),p=e.useRef(false);e.useEffect(()=>(p.current=false,onHealthPlanRecordsLanded((e,t)=>{e===petRef&&t==="host"&&(p.current=true)})),[petRef]);let h=r?.phase??null,g=r?.requestId??null,f=e.useRef({say:o,line:l});return f.current={say:o,line:l},e.useEffect(()=>{if(g===null)return;let e=true,t=()=>{let t=i.readBlanksMemo(petRef);if(h==="wait"){t.waited!==g&&i.writeBlanksMemo(petRef,{...t,waited:g});return}!e||t.flashed===g||(i.writeBlanksMemo(petRef,{...t,flashed:g}),!(t.waited!==g&&!p.current)&&(p.current=false,u(g),f.current.line!==""&&f.current.say(f.current.line),notifyHealthPlanRecordsLanded(petRef,"plan")))};return i.loadBlanksMemo===void 0?t():i.loadBlanksMemo(petRef).then(t),()=>{e=false}},[h,g,petRef,i]),{noVet:c,flashKey:d}}function Ec(t){let{shop:n,ordersOpen:r,subsRepo:i,petRef:petRef,everfurOrders:o,setEverfurOrders:l,say:a}=t,s=e.useRef(false),c=e.useRef(false),d=e.useRef(a);return d.current=a,e.useEffect(()=>{if(!n||!r)return;let e=true;return s.current=true,Tc(i,petRef,null).then(t=>{e&&(t.ok?l({loaded:true,orders:t.value.orders,next:t.value.nextCursor,loading:false}):(l(e=>({...e,loaded:true,loading:false})),d.current(t.error.displayMessage)))}),()=>{e=false,s.current=false}},[n,r,petRef,i]),{moreOrders:()=>{let e=o.next;e===null||c.current||(c.current=true,l(e=>({...e,loading:true})),Tc(i,petRef,e).then(async e=>{let t=!e.ok&&Cc(e.error)?await Tc(i,petRef,null):null;if(c.current=false,!!s.current){if(t!==null){t.ok?l({loaded:true,orders:t.value.orders,next:t.value.nextCursor,loading:false}):(l(e=>({...e,next:null,loading:false})),d.current(t.error.displayMessage));return}if(e.ok){let t=e.value;l(e=>kc(e,t))}else l(e=>({...e,loading:false})),d.current(e.error.displayMessage)}}))}}}var Ac=.5,Wc=90,Vc=1,Mc=200,Nc=2600,Uc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};function qc(t,n,r,i){let{design:o,item:l,petRef:petRef,petName:a,locale:s}=t,{store:c,callHost:d}=r,u=r.clock??Uc,p=B(),{runtime:h}=$(),g=useHealthPlanSubscription({petRef:petRef,productId:l.productId,enabled:t.subscriptions!==false&&o.pick.none!==true,...t.subscriptionRepository?{repository:t.subscriptionRepository}:{},...t.lifecycle!==void 0?{lifecycle:t.lifecycle}:{},...t.refreshKey!==void 0?{refreshKey:t.refreshKey}:{}}),[f,m]=e.useState("sub"),[y,b]=e.useState(false),[w,x]=e.useState(()=>/* @__PURE__ */new Set),[k,v]=e.useState(null),[S,T]=e.useState(null),C=e.useRef(null),[j,I]=e.useState(null),H=e.useRef(null),P=e.useRef(u);P.current=u,e.useEffect(()=>()=>{H.current!==null&&P.current.clearTimeout(H.current)},[]);let F=e=>[e,n.trackingComesByText].filter(e=>e!=="").join(" "),R=e=>{i.dropEmptyToast&&e===""||(I(e),H.current!==null&&u.clearTimeout(H.current),H.current=u.setTimeout(()=>I(null),Nc))},D=t.checkout==="everfur_stripe"&&i.checkoutReachable,z=useHealthPlanPageRepository(),O=t.pageRepository??z,_=e.useRef(null),[L,E]=e.useState(false),A=t.shop??D,[V,M]=e.useState(()=>A?c.readCart(petRef):[]),N=e.useRef(V);e.useEffect(()=>{if(!A||c.loadCart===void 0)return;let e=true;return c.loadCart(petRef).then(()=>{if(!e)return;let t=c.readCart(petRef);N.current.length===0&&t.length>0&&(N.current=t,M(t))}),()=>{e=false}},[A,c,petRef]);let U=e.useCallback(e=>{let t=e(N.current);N.current=t,c.writeCart(petRef,t),M(t)},[petRef,c]),[q,G]=e.useState([]),K=useHealthPlanSubscriptionRepository(),X=t.subscriptionRepository??K,[Y,J]=e.useState(fc),[Q,Z]=e.useState(false),[ee,te]=e.useState(false),[ne,re]=e.useState([]),ie=t.others??[],oe=[l,...ie],le=wc(ne,Y.orders),ae=t.shopOrders??[],se=e=>vc(e,le,ae),ce=e.useCallback(e=>{v(null),G(t=>mc(t,e))},[]),de=q.length>0?q[q.length-1]:void 0,ue=yc(k,S,de),pe=bc(S,de),he=e.useCallback(()=>{v(null),T(null),G([])},[]),ge=e.useCallback(()=>{k!==null?v(null):S!==null?T(null):G(e=>e.slice(0,-1))},[k,S]),fe=(e=>{switch(e){case"started":return S?.kind==="once"?n.placedHeader:n.startedHeader;case"cart":return n.cartTitle;case"placed":return n.placedHeader;case"orders":return n.orders;case"order":return n.orderTitle(se(de?.kind==="order"?de.key:null));case"product":{let e=de?.kind==="product"?de.productId:null;return e===null?void 0:oe.find(t=>t.productId===e)?.title}default:return}})(pe),me=pe==="started"||pe==="cart"||pe==="placed"||pe==="product",ye=t.onOverlayChange,be=e.useRef(d);be.current=d,e.useEffect(()=>{ye!==void 0&&be.current(ye,ue,{close:he,back:ge,...fe===void 0?{}:{title:fe},...me?{full:me}:{}})},[ue,ye,he,ge,fe,me]);let we=g.phase==="ready"?g.quote:null,xe=g.subscription,ke=xe?.status==="active",ve=(we?.boxPrice??l.price)!==null,Se=we!==null&&(!i.subscribeNeedsPrice||ve),Te=Se&&we.offerApplies&&xe===null,Ce=ke?xe.intervalDays:Se?we.defaultIntervalDays:0,je=(e,n)=>formatHealthPlanPriceWith(e,n,{dropZeroCents:false,...t.priceFormat,...s?{locale:s}:{}}),Ie=(e,n)=>formatHealthPlanPriceWith(e,n,{dropZeroCents:true,...t.priceFormat,...s?{locale:s}:{}}),He=we?.currency??l.currency,Pe=we?.boxPrice??l.price,Fe=we?.oneBox??null,Re=(e,t=l.title)=>({petName:a,productName:t,first:je(Te&&we?we.firstBoxPrice:Pe,He),box:je(Pe,He),once:je(Fe?.price??Pe,He),onceDiscountPercent:Fe?.discountPercent??0,intervalDays:e,discountPercent:Te&&we?we.firstBoxDiscountPercent:0,offer:Te}),De=Re(Ce),ze=De.box!==null,$e=Se?f:"once",Oe=e=>formatHealthPlanDay(e,s),Be=e=>Oe(e.timeline.find(e=>e.step==="next_box_ships")?.on??e.nextBoxDate),_e=(e=l)=>{t.onBuy?d(t.onBuy,e):t.onCheckout&&d(t.onCheckout,[e])},Le=t.onBuy!==void 0||t.onCheckout!==void 0,Ee=e=>e.ok?(t.onSubscriptionChange&&d(t.onSubscriptionChange,e.value),e.value):(R(e.error.displayMessage),null),Ae=async(e,t,n=l)=>{if(L)return;let i=r.returnUrls();if(i===null)return;let o=`${n.productId}:${e}:${t??""}`;_.current?.sig!==o&&(_.current={sig:o,key:r.mintKey()}),E(true);let a=await O.startCheckout(petRef,{productId:n.productId,purchase:e,...t===null?{}:{intervalDays:t},...i},_.current.key);if(E(false),!a.ok){R(a.error.displayMessage);return}c.rememberCheckout(petRef,a.value.checkoutId),r.openUrl(a.value.url)},We=e=>oe.find(t=>t.productId===e),Ve=e=>V.find(t=>t.productId===e),Me=e=>e===l.productId,Ne=e=>Me(e.productId)&&Se&&!ke&&e.mode==="sub",Ue=e=>Me(e.productId)?Ne(e)?Te&&we?we.firstBoxPrice:Pe:Fe?.price??Pe:We(e.productId)?.price??null,qe=V.filter(e=>We(e.productId)!==void 0),Ge=qe.reduce((e,t)=>e+t.qty,0),Ke=jc(qe.reduce((e,t)=>e+(Ue(t)??0)*t.qty,0)),Xe=qe.find(Ne)??null,Ye=D&&!Q&&O.startCartCheckout!==void 0,Je=!D&&t.onCheckoutLines!==void 0,Qe=Ye||Je,Ze=(e,t)=>{let n=/^[^\d]*(\d+(?:\.\d{1,2})?)[^\d]*$/.exec(e.replace(/,/g,""));return(n?je(Number(n[1]),t??He):null)??e},et=e=>{let t=We(e.productId)??l,r=Ne(e),a=Me(e.productId),s=a||!i.linesFromExtras?void 0:o.extras?.items.find(t=>t.productId===e.productId),c=a?Re(e.every,t.title):{...Re(0,t.title),offer:false};return{key:e.productId,name:t.title,imageUrl:t.imageUrl??s?.imageUrl??null,quantity:e.qty,subscription:r,price:je(Ue(e),a?He:t.currency),was:a?r?Te?c.box:null:Fe!==null&&Pe!==null&&Fe.price<Pe?c.box:null:s?.was?Ze(s.was,t.currency):null,note:a?r?n.cartSubLine(c):n.cartOnceLine(c,ke):null,...i.linesFromExtras?{tag:s?.tag??null}:{},modes:a&&Se&&!ke?{label:n.cartModeLabel(t.title),sub:{label:n.cartModeSubscribe(c),price:c.first},once:{label:n.cartModeOnce(c),price:c.once}}:null,every:r&&we!==null?{options:we.intervalOptions,selected:e.every}:null,maxQuantity:Qe&&!r?5:1,lp:c}},tt=qe.map(et),nt=Xe===null?null:Re(Xe.every),rt=(e,t,r=1,i=false)=>{if(Ve(e.productId)){ce({kind:"cart"});return}let o=Me(e.productId)&&Se&&!ke&&t==="sub",l=o?1:Math.max(1,Math.min(Qe?5:1,r));U(t=>[...t,{productId:e.productId,mode:o?"sub":"once",every:we?.defaultIntervalDays??0,qty:l}]),i||R(n.addedToCart(Me(e.productId)?De:{...Re(0,e.title),offer:false},o))},it=()=>G(e=>{let t=e.findIndex(e=>e.kind==="cart");return t>=0?e.slice(0,t+1):[...e,{kind:"cart"}]}),ot=(e,t)=>U(n=>Sc(n,e,t)),lt=(e,t)=>ot(e,e=>({...e,qty:Math.max(1,Math.min(Qe&&!Ne(e)?5:1,e.qty+t))})),at=e=>{ot(e,()=>null),R(n.removedFromCart(We(e)?.title??""))},st=Ye&&Xe!==null&&qe.length>1,ct=st?qe.filter(e=>!Ne(e)):qe,dt=jc(ct.reduce((e,t)=>e+(Ue(t)??0)*t.qty,0)),ut=ct.find(Ne)??null,pt=ut===null?null:Re(ut.every),ht=qe.length>0&&qe.every(e=>Ue(e)!==null)&&(qe.length===1&&(qe[0]?.qty??0)===1?true:Ye?ct.length>0&&ct.length<=10:!D&&(t.onCheckout!==void 0||Je)&&qe.every(e=>!Ne(e))),gt=async e=>{if(L||O.startCartCheckout===void 0)return;let t=r.returnUrls();if(t===null)return;let i=`cart:${e.map(e=>`${e.productId}:${e.qty}:${Ne(e)?e.every:""}`).join("|")}`;_.current?.sig!==i&&(_.current={sig:i,key:r.mintKey()}),E(true);let o=await O.startCartCheckout(petRef,{items:e.map(e=>{let t=Ne(e);return{productId:e.productId,purchase:t?"subscription":"one_box",...t?{intervalDays:e.every}:{},quantity:t?1:e.qty}}),...t},_.current.key);if(E(false),!o.ok){let e=healthPlanCheckoutRefusal(o.error);if(e==="cart_disabled"){Z(true),v(null),R(n.cartOneAtATime===""?o.error.displayMessage:n.cartOneAtATime);return}if(e==="cart_has_subscription"){v(null),R(n.cartSubscriptionApart===""?o.error.displayMessage:n.cartSubscriptionApart);return}R(o.error.displayMessage);return}c.rememberCheckout(petRef,o.value.checkoutId),r.openUrl(o.value.url)},ft=async()=>{C.current===null&&(C.current=r.mintKey());let e=await g.buyOneBox(C.current);return e.ok?(C.current=null,t.onOneBoxOrder&&d(t.onOneBoxOrder,e.value),e.value):(R(e.error.displayMessage),null)},mt=async()=>{if(!ht)return;if(D&&Ye&&!(ct.length===1&&(ct[0]?.qty??0)===1)){ct.map(e=>We(e.productId)).filter(e=>e!==void 0);W(p,petRef,{count:ct.reduce((e,t)=>e+t.qty,0),subtotal:dt,currency:He}),await gt(ct);return}if(Je&&!(qe.length===1&&(qe[0]?.qty??0)===1)){let e=qe.flatMap(e=>{let t=We(e.productId);return t===void 0?[]:[{item:t,quantity:e.qty}]});W(p,petRef,{items:e.map(e=>e.item),count:e.reduce((e,t)=>e+t.quantity,0),subtotal:Ke,currency:He}),Vt(qe.map(e=>e.productId)),v(null),G([]),t.onCheckoutLines&&d(t.onCheckoutLines,e);return}let e=ct.length===1?ct[0]:qe.length===1?qe[0]:void 0;if(e===void 0){t.onCheckout&&d(t.onCheckout,qe.map(e=>We(e.productId)).filter(e=>e!==void 0));return}let n=We(e.productId)??l,r=Ne(e);if(W(p,petRef,{count:1,subtotal:Ue(e),currency:Me(e.productId)?He:n.currency}),D){await Ae(r?"subscription":"one_box",r?e.every:null,n);return}if(r){let t=Ee(await g.subscribe(e.every));if(t===null)return;Vt([t.productId]),v(null),G([]),T({kind:"sub",sub:t});return}if(!Me(e.productId)||Fe===null){v(null),Je&&(Vt([e.productId]),G([])),_e(n);return}let i=await ft();i!==null&&(Vt([i.productId]),Wt([i]))},yt=()=>{if(W(p,petRef,{count:1,subtotal:l.price,currency:l.price===null?null:l.currency}),!Se){D?Ae("one_box",null):_e();return}C.current=null,v({kind:"checkout",mode:$e,every:we.defaultIntervalDays})},bt=e=>{W(p,petRef,{count:1,subtotal:e.price,currency:e.price===null?null:e.currency}),D?Ae("one_box",null,e):_e(e)},wt=async()=>{if(k?.kind!=="checkout")return;let e=k.mode==="sub";if(D){await Ae(e?"subscription":"one_box",e?k.every:null);return}if(!e){if(Fe===null){v(null),_e();return}let e=await ft();if(e===null)return;v(null),Wt([e]);return}let t=Ee(await g.subscribe(k.every));t!==null&&(v(null),T({kind:"sub",sub:t}))},xt=e=>{xe===null||e===xe.intervalDays||g.changeInterval(e).then(Ee)},kt=async()=>{let e=Ee(await g.skip());e!==null&&R(n.skipped(Re(e.intervalDays),Be(e)))},vt=async()=>{let e=Re(xe?.intervalDays??Ce);Ee(await g.cancel())!==null&&(v(null),m("sub"),R(n.cancelled(e)))},St=()=>{v(null),de?.kind!=="orders"&&ce({kind:"orders"})},Tt=e=>{let n=!y;b(n),t.onAddToVisit&&d(t.onAddToVisit,n,e)},Ct=(e,n)=>{let r=!n;x(t=>{let n=new Set(t);return r?n.add(e):n.delete(e),n}),t.onExtra&&d(t.onExtra,e,r)},jt=(e,t,n)=>{if(t!==void 0){A?rt(t,"once"):bt(t);return}Ct(e,n)},It=q.some(e=>e.kind==="orders"||e.kind==="order"),{moreOrders:Ht}=Ec({shop:A,ordersOpen:It,subsRepo:X,petRef:petRef,everfurOrders:Y,setEverfurOrders:J,say:R}),Pt=t.weightKnown!==false||ee,Ft=t.weightUnit==="kg",[Rt,Dt]=e.useState(""),[zt,$t]=e.useState(""),[Ot,Bt]=e.useState(false),_t=()=>{$t(""),v({kind:"weight"})},Lt=async()=>{let e=Math.round(Number.parseFloat(Rt.replace(",","."))*10)/10;if(!(Ft?e>=Ac&&e<=Wc:e>=Vc&&e<=Mc)){$t(Ft?n.weightErrorKg:n.weightError);return}let{weightKg:r,pounds:i}=Hc(e,Ft);Bt(true);let o=t.onSaveWeight?await t.onSaveWeight(r,i):await h.updatePet(petRef,{weightKg:r});if(Bt(false),!o.ok){$t(o.error.displayMessage);return}$t(""),te(true),v(null),R(Ft?n.weightSavedKg(String(e)):n.weightSaved(String(i))),t.onWeightSaved&&d(t.onWeightSaved,r)},{noVet:Et,flashKey:At}=Lc({petRef:petRef,noVet:t.noVet,blanksFacts:t.blanksFacts,store:c,say:R,line:n.recordsLanded}),Wt=e=>{let t=e[0];if(t!==void 0){if(!A){T({kind:"once",order:t});return}re(t=>xc(t,e)),v(null),G([{kind:"placed",orders:e}])}},Vt=e=>{let t=new Set(e.filter(e=>e!==null));t.size>0&&U(e=>e.filter(e=>!t.has(e.productId)))};return{sub:g,copy:n,everfur:D,shop:A,partnerBuys:Le,redirecting:L,pages:O,quote:we,subscription:xe,active:ke,canSubscribe:Se,offer:Te,every:Ce,currency:He,boxPrice:Pe,oneBox:Fe,pr:De,priced:ze,mode:f,buyMode:$e,fmt:je,fmtWhole:Ie,prices:Re,day:Oe,nextBoxDay:Be,withTracking:F,sheet:k,started:S,screens:q,top:de,overlay:ue,under:pe,title:fe,full:me,toast:j,added:y,extras:w,planItems:oe,cart:V,lines:qe,lineCount:Ge,cartTotal:Ke,subLine:Xe,cartOn:Ye,hostLines:Je,boxesOn:Qe,wasOf:Ze,views:tt,renewPrices:nt,apart:st,batch:ct,batchTotal:dt,batchSub:ut,batchRenew:pt,cartReady:ht,itemOf:We,inCart:Ve,isPick:Me,lineSub:Ne,unitOf:Ue,lineView:et,everfurOrders:Y,ownOrders:le,orderNumber:se,weightKnown:Pt,kg:Ft,weightInput:Rt,weightError:zt,savingWeight:Ot,noVet:Et,flashKey:At,say:R,setMode:m,openSheet:v,closeSheet:()=>v(null),push:ce,replaceScreens:G,closeStarted:()=>T(null),closeOverlays:he,back:ge,toggleAdded:Tt,toggleExtra:Ct,pressExtra:jt,buyOnce:_e,press:yt,pressOther:bt,confirmCheckout:wt,changeInterval:xt,skip:kt,cancel:vt,seeOrdersFromManage:St,addToCart:rt,showCart:it,editLine:ot,stepQuantity:lt,removeLine:at,placeCart:mt,moreOrders:Ht,openWeight:_t,setWeightInput:Dt,saveWeight:Lt,returnHandlers:{onPaid:e=>{let n=e.subscription,r=e.orders??(e.order===null?[]:[e.order]);if(n!==null)t.onSubscriptionChange&&d(t.onSubscriptionChange,n),i.closeOnReturn&&(v(null),G([])),T({kind:"sub",sub:n});else if(r.length>0){for(let e of r)t.onOneBoxOrder&&d(t.onOneBoxOrder,e);Wt(r)}Vt([n?.productId??null,...r.map(e=>e.productId)]),g.refresh()},onFailed:()=>{v(null),A&&(i.closeOnReturn&&T(null),G([{kind:"cart"}])),n.checkoutFailed!==""&&R(n.checkoutFailed)},onCancel:()=>E(false),onTimeout:()=>{A&&(v(null),i.closeOnReturn&&T(null),G([{kind:"orders"}]))},onError:e=>R(e.displayMessage)}}}function Gc(t,petRef){let[n,r]=e.useState(null);return e.useEffect(()=>{if(t===void 0)return;let e=true;return t.getRecord(petRef).then(t=>{e&&r(t.ok?t.value.withheld!==true&&t.value.is_empty===true:null)}).catch(()=>{}),()=>{e=false}},[t,petRef]),n}var Kc="Close",Xc=/* @__PURE__ */Object.freeze({action:e=>e.possessive===null?null:`See ${e.possessive} Health Plan`,ask:"What does it mean?",askPrompt:(e,t)=>e.risk?.lead?`${e.risk.lead} ${t}`:`${e.title}: ${t}`,close:e=>e.possessive===null?null:`Close ${e.possessive} focus`,resultsKicker:e=>e.possessive===null?null:`${Yc(e.possessive)} results`,resultsClose:e=>e.possessive===null?null:`Close ${e.possessive} results`,resultsTopRisk:"Top risk"});function Yc(e){return e.charAt(0).toUpperCase()+e.slice(1)}function healthPlanPossessive(e){let t=typeof e.sex=="string"?e.sex.trim().toLowerCase():null;if(t==="female")return"her";if(t==="male")return"his";let n=typeof e.name=="string"?e.name.trim():"";return n!==""?`${n}'s`:null}function healthPlanTopCard(e,t={}){let n=e?.page?.focus;if(e===null||n===void 0||n.title.trim()===""||n.kicker.trim()==="")return;let r={...Xc,...t.copy},i={pet:e.pet,possessive:healthPlanPossessive(e.pet)},o=n.sources?.find(e=>e.label.trim()!=="")?.label,l=t.onOpenPlan,a=l===void 0?null:r.action(i),s=r.close(i),c=r.ask.trim(),d=t.results!==void 0&&n.report!==void 0?t.results:void 0;if(d!==void 0){let e=r.resultsKicker(i)?.trim()||n.kicker,s=r.resultsClose(i),u=d.onTopRisk??l,p={key:"top-risk",label:r.resultsTopRisk,title:n.title,...n.risk?.lead?{line:n.risk.lead}:{},tone:"risk",...u===void 0?{}:{onPress:u}};return{kicker:e,...o===void 0?{}:{badge:o},title:n.title,results:[p,...d.rows??[]],...a===null||a.trim()===""||l===void 0?{}:{action:{label:a,onPress:l}},...c===""?{}:{ask:{label:c,prompt:r.askPrompt(n,c)}},closeLabel:s===null||s.trim()===""?Kc:s,pill:e,...t.renderIcon===void 0?{}:{renderIcon:t.renderIcon}}}return{kicker:n.kicker,...o===void 0?{}:{badge:o},title:n.title,...n.risk?.lead?{lead:n.risk.lead}:{},...n.risk?.body?{body:n.risk.body}:{},...a===null||a.trim()===""||l===void 0?{}:{action:{label:a,onPress:l}},...c===""?{}:{ask:{label:c,prompt:r.askPrompt(n,c)}},closeLabel:s===null||s.trim()===""?Kc:s,pill:n.kicker,...t.renderIcon===void 0?{}:{renderIcon:t.renderIcon}}}var Jc=/* @__PURE__ */Object.freeze({...gc,firstBoxShips:"Her first box ships.",placedShips:"It ships.",trackingComesByText:"",trackingByText:"",moreOrders:"Load more",checkoutFailed:"That didn't go through. Please try again.",back:"Back"}),Qc=e=>e===""?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function healthPlanPetCopy(e){let t=e.name?.trim()??"",n=healthPlanPossessive(e)??"your pet's",r=Qc(n),i=e.sex==="female"?"her":e.sex==="male"?"him":t!==""?t:"your pet",o=gc,l=healthPlanFocusCopyFor({name:e.name,sex:e.sex});return{jumpKicker:(e,t)=>t?`In ${n} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${n} first box`:o.jumpKicker(e,false),firstBoxShips:e.trackingTexts===true?`${r} first box ships. Tracking comes by text.`:`${r} first box ships.`,placedShips:o.placedShips,trackingComesByText:e.trackingTexts===true?o.trackingComesByText:"",trackingByText:e.trackingTexts===true?o.trackingByText:"",refill:`A text 3 days before ${n} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${r} next box ships, ${e.box??""}.`,startedDone:`Back to ${n} plan`,skipped:(e,t)=>t===null?"Skipped.":`Skipped. ${r} next box ships ${t}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${n} plan anytime.`,seeOrders:`See ${n} orders`,cartOnceLine:(e,t)=>t?`An extra box. ${r} plan keeps shipping.`:o.cartOnceLine(e,false),herSubscription:`${r} subscription`,ordersHeading:e=>e?"Orders":`${r} orders`,addWeightTitle:`Add ${n} weight to size ${n} dose`,addWeightBody:`From a home scale or ${n} last vet visit.`,connectRecordsTitle:`Connect ${n} vet records`,connectRecordsBody:`${r} weight, visits and labs make ${n} plan sharper.`,weightKicker:`${r} weight`,weightBody:`From a home scale or ${n} last vet visit. ${r} plan uses it to size ${n} dose.`,weightField:`${r} weight`,weightError:`Enter ${n} weight in pounds, like 14.1.`,weightSave:`Save ${n} weight`,weightSaved:e=>`Saved: ${e} lb. ${r} dose is sized for ${i}.`,weightErrorKg:l.weightErrorKg,weightSavedKg:l.weightSavedKg,signalsFit:l.signalsFit,noPick:l.noPick,saveForCheckup:l.saveForCheckup,savedForCheckup:l.savedForCheckup,blanksLabel:l.blanksLabel,blanksFilledKicker:l.blanksFilledKicker,blanksWeight:l.blanksWeight,blanksWeightSource:l.blanksWeightSource,blanksDoseSource:l.blanksDoseSource,blanksShots:l.blanksShots,blanksShotsSource:l.blanksShotsSource,recordsLanded:l.recordsLanded}}var Zc="everfur.healthPlan.blanks",ed=/* @__PURE__ */Object.freeze({waited:null,flashed:null}),td=/* @__PURE__ */new Map,nd=/* @__PURE__ */new Map,rd=petRef=>`${Zc}:${petRef}`;function id(e){if(e===null)return ed;try{let t=JSON.parse(e);if(t===null||typeof t!="object")return ed;let n=t;return{waited:typeof n.waited=="string"?n.waited:null,flashed:typeof n.flashed=="string"?n.flashed:null}}catch{return ed}}function od(e,petRef){let t=td.get(petRef);if(t!==void 0)return Promise.resolve(t);let n=nd.get(petRef);return n===void 0&&(n=(async()=>{let t=ed;try{t=e?id(await e.getItem(rd(petRef))):ed}catch{}let n=td.get(petRef)??t;return td.set(petRef,n),n})(),nd.set(petRef,n)),n}function ld(petRef){return td.get(petRef)??ed}function ad(e,petRef,t){if(td.set(petRef,t),!!e)try{e.setItem(rd(petRef),JSON.stringify(t)).catch(()=>{})}catch{}}var sd="everfur_checkout",cd="everfur_checkout_cancel",dd="{CHECKOUT_SESSION_ID}",ud=2e3,pd=30;function hd(e){return typeof e!="string"?false:/^https:\/\/[^/?#\s]+[^\s]*$/i.test(e.trim())}var gd=new RegExp(`([?&])(?:${sd}|${cd})=[^&#]*&?`,"g");function fd(e,t,n){let r=e.indexOf("#"),i=r===-1?"":e.slice(r),o=r===-1?e:e.slice(0,r);o=o.replace(gd,"$1").replace(/[?&]$/,"");let l=o.includes("?")?"&":"?";return`${o}${l}${t}=${n}${i}`}function md(e,t){let n=e=>e.split(/[?#]/)[0]?.replace(/\/+$/,"").toLowerCase()??"";if(n(e)!==n(t))return null;let r=e.split("#")[0]?.split("?")[1]??"",i=/* @__PURE__ */new Map;for(let e of r.split("&")){if(e==="")continue;let t=e.indexOf("="),n=t===-1?e:e.slice(0,t),r=t===-1?"":e.slice(t+1);try{r=decodeURIComponent(r)}catch{}i.set(n,r)}if(i.has(cd))return{kind:"cancel"};let o=i.get(sd);return o===void 0?null:{kind:"return",sessionId:o===""||o===dd?null:o}}function yd(){let e=globalThis.crypto;return e?.randomUUID?e.randomUUID():`tap-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,12)}`}var bd="everfur.healthPlan.cart",wd="everfur.healthPlan.checkout",xd=/* @__PURE__ */new Map,kd=/* @__PURE__ */new Map,vd=/* @__PURE__ */new Set,Sd=/* @__PURE__ */new Set,Td=/* @__PURE__ */new WeakMap,Cd=Promise.resolve();function jd(e){if(e===null)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>{if(e===null||typeof e!="object")return[];let t=e,n=t.productId,r=t.mode,i=t.every,o=t.qty;return typeof n!="string"||r!=="sub"&&r!=="once"||typeof i!="number"||typeof o!="number"?[]:[{productId:n,mode:r,every:i,qty:Math.max(1,Math.min(r==="sub"?1:5,Math.round(o)))}]}):[]}catch{return[]}}function Id(e,t,n){if(e)try{(n===null?e.removeItem(t):e.setItem(t,n)).catch(()=>{})}catch{}}function Hd(e,petRef){if(!e)return Cd;let t=Td.get(e);t===void 0&&(t=/* @__PURE__ */new Map,Td.set(e,t));let n=t.get(petRef);return n===void 0&&(n=(async()=>{let t=[],n=null;try{let[r,i]=await Promise.all([e.getItem(`${bd}:${petRef}`),e.getItem(`${wd}:${petRef}`)]);t=jd(r),n=typeof i=="string"&&i!==""?i:null}catch{}!Sd.has(petRef)&&t.length>0&&kd.set(petRef,t),!vd.has(petRef)&&n!==null&&xd.set(petRef,n)})(),t.set(petRef,n)),n}function Pd(petRef,e,t){vd.add(petRef),xd.set(petRef,e),Id(t,`${wd}:${petRef}`,e)}function Fd(petRef){return xd.get(petRef)??null}function Rd(petRef,e){vd.add(petRef),xd.delete(petRef),Id(e,`${wd}:${petRef}`,null)}function Dd(petRef){return kd.get(petRef)??[]}function zd(petRef,e,t){Sd.add(petRef),e.length===0?kd.delete(petRef):kd.set(petRef,e),Id(t,`${bd}:${petRef}`,e.length===0?null:JSON.stringify(e))}function $d(e){return{readCart:Dd,writeCart:(petRef,t)=>zd(petRef,t,e),loadCart:petRef=>Hd(e,petRef),rememberCheckout:(petRef,t)=>Pd(petRef,t,e),readBlanksMemo:ld,writeBlanksMemo:(petRef,t)=>ad(e,petRef,t),loadBlanksMemo:petRef=>od(e,petRef)}}var Od=/* @__PURE__ */Object.freeze({dropEmptyToast:true,subscribeNeedsPrice:false,closeOnReturn:true,linesFromExtras:false});var Bd=/* @__PURE__ */new Set(["requested","awaiting_clinic","awaiting_upload","received","parsing","in_review"]),_d=/vaccin|rabies|dhpp|booster|bordetella|lepto|lyme|parvo|distemper/i,Ld=2.20462262;function Ed(e){if(e==null||e.length===0)return null;let t=Date.parse(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t)?null:t}function Ad(e,t){return e===null||!Number.isFinite(e)||e<=0||t===null?null:/^\s*kg|kilo/i.test(t)?e:/^\s*(lb|lbs|pound)/i.test(t)?e/Ld:null}function healthPlanRecordsWeightKg(e){if(e===null||e.isEmpty||e.withheld)return null;let t=[];for(let n of e.entitySeries)if(n.key.startsWith("body_weight"))for(let e of n.points){if(e.origin==="owner_reported")continue;let n=Ed(e.at),r=e.display?.replace(/^[\d.,\s]+/,"")??null,i=Ad(e.value,r);n!==null&&i!==null&&t.push({at:n,kg:i})}for(let n of e.entities){if(n.category!=="body_weight"||n.origin==="owner_reported")continue;let e=Ed(n.observedAt),r=Ad(n.value===null?null:Number.parseFloat(n.value),n.unit);e!==null&&r!==null&&t.push({at:e,kg:r})}return t.length===0?null:(t.sort((e,t)=>t.at-e.at),t[0]?.kg??null)}function healthPlanNextShotsAt(e,t){if(e===null||e.isEmpty||e.withheld)return null;let n=null;for(let r of e.forwardLooking){if(!_d.test(r.title))continue;let e=Ed(r.dueAt);e===null||e<t||(n===null||e<n)&&(n=e)}return n}function Wd(e){return e.filter(e=>e.source==="clinic_request").slice().sort((e,t)=>(Ed(t.createdAt)??0)-(Ed(e.createdAt)??0))[0]}function Vd(e,t){let n=Wd(e.requests);if(n===void 0||n.status!=="published"||e.record===null||e.record.withheld)return false;let r=Math.floor(t/864e5)*864e5;return healthPlanRecordsWeightKg(e.record)===null&&healthPlanNextShotsAt(e.record,r)===null}function healthPlanBlanksFacts(e,t){let n=Wd(e.requests);if(n===void 0)return null;let r=n.clinicName?.trim()?n.clinicName.trim():null;if(Bd.has(n.status))return{phase:"wait",requestId:String(n.id),clinicName:r,weightKg:null,nextShotsAt:null};if(n.status!=="published"||e.record===null||e.record.isEmpty||e.record.withheld)return null;let i=Math.floor(t/864e5)*864e5,o=healthPlanRecordsWeightKg(e.record),l=healthPlanNextShotsAt(e.record,i);return o===null&&l===null?null:{phase:"filled",requestId:String(n.id),clinicName:r,weightKg:o,nextShotsAt:l}}var Md=3600*1e3;function Nd(t,n=true){let[r,i]=e.useState(()=>Date.now()),o=e.useRef(true);return e.useEffect(()=>{if(o.current){o.current=false;return}n&&i(Date.now())},[t,n]),e.useEffect(()=>{if(!n)return;let e=setInterval(()=>i(Date.now()),Md),t=()=>{document.visibilityState==="visible"&&i(Date.now())},r=typeof document<"u"&&typeof document.addEventListener=="function"?document:null;return r?.addEventListener("visibilitychange",t),()=>{clearInterval(e),r?.removeEventListener("visibilitychange",t)}},[t,n]),r}function RecordsProbe(t){let{status:n,requests:r,record:o,refresh:l}=i.useEverfurRecords({petRef:t.petRef}),{onRead:a,petRef:petRef}=t,s=Nd(),c=e.useMemo(()=>healthPlanBlanksFacts({requests:r,record:o},s),[r,o,s]),d=e.useMemo(()=>Vd({requests:r,record:o},s),[r,o,s]);e.useEffect(()=>{a({missing:n==="empty"||d,blanks:c})},[n,d,c,a]);let u=e.useRef(l);return u.current=l,e.useEffect(()=>onHealthPlanRecordsLanded((e,t)=>{e===petRef&&t==="host"&&u.current()}),[petRef]),null}var Ud=/* @__PURE__ */new Set;function qd(n){let{enabled:r,petRef:petRef,pages:i,returnUrl:o,lifecycle:l,kv:a}=n,s=e.useRef(n);s.current=n,e.useEffect(()=>{if(!r||o===null)return;let e=true,n=false,c=0,d=null,u=async(t,r,o)=>{let l=await i.getCheckout(petRef,t);if(!(!e||o!==c)){if(l.ok&&l.value.status==="paid"){n=false,Rd(petRef,a),s.current.onPaid(l.value);return}if(l.ok&&(l.value.status==="failed"||l.value.status==="expired")){n=false,Rd(petRef,a),s.current.onFailed();return}if(!l.ok&&!l.error.retryable){n=false,Rd(petRef,a),s.current.onError(l.error);return}if(r<=1){n=false,Rd(petRef,a),s.current.onTimeout();return}d=setTimeout(()=>{u(t,r-1,o)},ud)}},p=e=>{n||(n=true,u(e,pd,c))},h=Hd(a,petRef),g=t=>{let r=md(t,o);if(r!==null){if(r.kind==="cancel"){c+=1,n=false,d!==null&&clearTimeout(d),d=null,Rd(petRef,a),s.current.onCancel();return}h.then(()=>{if(!e)return;let t=Fd(petRef)??r.sessionId;t!==null&&p(t)})}},f=()=>{h.then(()=>{if(!e)return;let t=Fd(petRef);t!==null&&p(t)})},m=t.Linking.addEventListener("url",e=>g(e.url));t.Linking.getInitialURL().then(t=>{!e||t===null||t===void 0||Ud.has(t)||md(t,o)!==null&&(Ud.add(t),g(t))}).catch(()=>{}).then(f);let y;if(l)y=l.onForeground(f);else{let e=t.AppState.addEventListener("change",e=>{e==="active"&&f()});y=()=>e.remove()}return()=>{e=false,d!==null&&clearTimeout(d),m.remove(),y()}},[r,petRef,i,o,l,a])}var Gd=24,Kd=16,Xd=.8,Yd=e=>Math.round(e*Kd);function Jd(e,t,n,r,i,o){let l=e-n/2,a=t-r/2,s=Math.round(l),c=Math.round(a);return{position:"absolute",left:s,top:c,width:n,height:r,transform:[{translateX:l-s},{translateY:a-c},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Kd}]}}function Qd(e,t,n){for(let r of e.strokes){let e=r.width*t,i=r.points,o=i.length/2,l=r.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,c=(i[a*2+1]??0)*t,d=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(o===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||l!==o-1||r.cap?e/2:0,y=(p+m-f)/2;n.push({paint:"backgroundColor",style:{...Jd(s+h*y,c+g*y,Yd(p+f+m),Yd(e),h,g),borderTopLeftRadius:f>0?Yd(e)/2:0,borderBottomLeftRadius:f>0?Yd(e)/2:0,borderTopRightRadius:m>0?Yd(e)/2:0,borderBottomRightRadius:m>0?Yd(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function Zd(e,t,n){for(let r of e.boxes){let e=(r.w+r.width)*t,i=(r.h+r.width)*t;n.push({paint:"borderColor",style:{...Jd((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+i/2,Yd(e),Yd(i),1,0),borderWidth:Yd(r.width*t),borderRadius:(r.radius+r.width/2)*t*Kd,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function eu(e,t,n){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let n=e[t]??[0,0],r=e[(t+1)%3]??[0,0],l=Math.hypot(r[0]-n[0],r[1]-n[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],c=(a[0]-l[0])/o,d=(a[1]-l[1])/o,u=(s[0]-l[0])*c+(s[1]-l[1])*d,p=(s[0]-l[0])*-d+(s[1]-l[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Yd(u),y=Yd(o)-m,b=Yd(h);n.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Jd(l[0]+c*(o/2)-d*f,l[1]+d*(o/2)+c*f,m+y,b,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:y,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:b}:{borderTopWidth:b}}})}for(let r of e.seams){let e=(r[0]??0)*t,i=(r[1]??0)*t,o=(r[2]??0)*t-e,l=(r[3]??0)*t-i,a=Math.hypot(o,l),s=Xd*(r[4]??0),c=Xd*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;n.push({paint:"backgroundColor",style:Jd(e+o/a*u,i+l/a*u,Yd(d),Yd(Xd),o/a,l/a)})}}var tu=/* @__PURE__ */new Map;function nu(e,t){let n=`${e}:${t}`,r=tu.get(n);if(r!==void 0)return r;let i=ls[e],o=[],l=t/Gd;return Zd(i,l,o),Qd(i,l,o),eu(i,l,o),tu.set(n,o),o}function FocusIcon({name:e,size:r=18,color:i}){let o=ls[e]===void 0?[]:nu(e,r);/* @__PURE__ */
172
- return n.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */n.jsx(t.View,{style:{width:r,height:r},children:o.map((e,r)=>/* @__PURE__ */n.jsx(t.View,{style:[e.style,{[e.paint]:i}]},r))})})}function ru(e){let t=e.color;if(e.brightness==="dark")return{ink:t.text.primary,ink2:t.text.secondary,ink3:t.text.muted,paper:t.surfaceSubtle,tile:t.badgeBgNeutral,line:t.brandBorder,card:t.surface,teal:t.brandInk,cyan:t.brandSofter,yellow:t.accent,riskDot:t.errorRed,riskBg:t.badgeBgCritical,riskInk:t.text.primary,clearDot:t.success,clearBg:t.badgeBgPositive,clearInk:t.text.primary,star:t.accent,button:t.primary,onButton:t.onPrimary,jump:t.surfaceSubtle,onJump:t.text.primary,jumpSmall:t.accent,tints:{y:t.badgeBgCaution,c:t.brandSofter,g:t.badgeBgPositive,r:t.badgeBgCritical},scrim:"rgba(0,0,0,0.6)"};let n=Na(e);return{ink:n.ink,ink2:n.ink2,ink3:n.ink3,paper:us(e).paper??n.paper,tile:n.tile,line:n.line,card:n.card,teal:t.brandInk,cyan:t.brandSofter,yellow:n.accent,riskDot:n.riskDot,riskBg:n.riskBg,riskInk:n.riskInk,clearDot:n.clearDot,clearBg:n.clearBg,clearInk:n.clearInk,star:n.watchDot,button:n.primary,onButton:n.onPrimary,jump:n.ink,onJump:n.card,jumpSmall:n.accent,tints:{y:"#FFE7A1",c:"#C8F4F8",g:"#DDEFC4",r:"#FFD8D6"},scrim:"rgba(38,37,35,0.45)"}}function iu(e){let n=ru(e),{space:r}=e,i=(t,n,r="regular",i=1.35)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*i),color:n}),o=t.StyleSheet.create({shrink:{flexShrink:1,minWidth:0},toolLabel:i(14,n.ink,"bold"),mini:{...i(10.5,n.ink3,"mono"),textTransform:"uppercase",letterSpacing:.9},h3:{...i(19,n.ink,"bold",1.2),marginTop:r.sm},bold:face(e,"bold"),noPick:{...i(15,n.ink2,"regular",1.45),marginTop:14},small:i(13,n.ink3,"regular",1.35),smallInk:i(13,n.ink2,"regular",1.35),buttonGhost:{minHeight:48,borderRadius:999,alignItems:"center",justifyContent:"center",paddingHorizontal:r.lg,borderWidth:2,borderColor:n.ink,marginTop:r.sm},buttonGhostText:{...i(15,n.ink,"bold",1.2),textAlign:"center"},disabled:{opacity:.5},fine:{...i(13,n.ink3,"regular",1.4),marginTop:r.sm},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:n.scrim},sheet:{maxHeight:"92%",paddingHorizontal:r.lg,paddingTop:r.sm,paddingBottom:r.xl,borderTopLeftRadius:22,borderTopRightRadius:22,backgroundColor:n.card},sheetGrab:{alignSelf:"center",width:40,height:4,borderRadius:2,backgroundColor:n.line,marginBottom:r.sm},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},close:{width:44,height:44,alignItems:"center",justifyContent:"center"},screen:{paddingHorizontal:r.lg,paddingBottom:r.xl,gap:r.sm},back:{flexDirection:"row",alignItems:"center",gap:r.xs,minHeight:44,alignSelf:"flex-start"}}),l=vs(e);return{...o,palette:n,X:l,D:Is(l),ds:is(e,l.roles)}}var ou=e.createContext(null);function HealthPlanRnKitScope(e){/* @__PURE__ */
173
- return n.jsx(ou.Provider,{value:e.kit,children:e.children})}var lu={...Jc,...healthPlanPetCopy({name:null,sex:null,trackingTexts:false})},au=/* @__PURE__ */new WeakMap;function su(e){let t=au.get(e);return t===void 0&&(t=iu(e),au.set(e,t)),t}function cu(t,r){let i=vo(),o=su(i),l=o.palette.ink,a=i.motion.reducedMotion;return e.useMemo(()=>({S:o,icon:(e,t,i)=>(r?St(r,e):void 0)??/* @__PURE__ */n.jsx(FocusIcon,{name:e,color:t??l,...i===void 0?{}:{size:i}}),copy:t,still:a}),[o,l,t,r,a])}function du(t={}){let n=e.useContext(ou),r=cu(lu,void 0),i=n??r,{copy:o,renderIcon:l}=t;return e.useMemo(()=>{if(o===void 0&&l===void 0)return i;let e=o===void 0?i.copy:{...i.copy,...o},t=l===void 0?i.icon:(e,t,n)=>St(l,e)??i.icon(e,t,n);return{...i,copy:e,icon:t}},[i,o,l])}var uu={flexShrink:1},pu={flexGrow:1,flexShrink:1,flexBasis:0,minWidth:0},hu={flexShrink:0},gu={alignSelf:"flex-start"},fu={justifyContent:"center"},mu={flexDirection:"column"};var yu={position:"relative",top:0,right:0},bu=(e,r,i)=>e?/* @__PURE__ */n.jsx(t.Image,{source:{uri:e},style:r,resizeMode:i,accessibilityIgnoresInvertColors:true}):null,wu={width:64,height:64};function xu(e,r,i){let{bx:o,tx:l}=e.S.D;return r===void 0||r===""?null:/* @__PURE__ */n.jsx(t.View,{style:o("tag",i),children:/* @__PURE__ */n.jsx(Text,{tier:"compact",style:l("tag",i),children:r})})}function ku(e,r,i){let{bx:o,tx:l}=e.S.D;/* @__PURE__ */
174
- return n.jsx(t.View,{style:o(i),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:l(i),children:String(r)})})}function vu(e,r,i){let{bx:o,tx:l}=e.S.D;/* @__PURE__ */
175
- return n.jsxs(t.View,{style:o("secTitle"),children:[ku(e,r,"secN"),
176
- /* @__PURE__ */n.jsx(Text,{style:[...l("secTitle"),uu],accessibilityRole:"header",children:i})]})}var Su=false;function Tu(){if(globalThis.__DEV__===false||Su)return;Su=true;let e=globalThis.console;try{e?.warn?.("[everfur] The Health Plan shop is on with Everfur checkout, but `focus.checkoutReturnUrl` is missing or not an https URL, so the member is never sent to Stripe: checkout keeps the in-app path (your onBuy / onCheckout). Pass the https App Link (Universal Link) your app opens as `checkoutReturnUrl`.")}catch{}}var Cu=e=>e!=null&&/^(dog|canine)$/i.test(e.trim()),ju=e.createContext(null);function Iu(){return e.useContext(ju)}function Hu(){let t=e.useContext(ju);return t===null&&uc(globalThis.__DEV__!==false),t}function Pu(r){let{design:i,item:o,petRef:petRef}=r,l=r.petName?.trim()?r.petName.trim():null,{runtime:a}=$(),[s,c]=e.useState(null),d=e.useCallback(e=>c(e),[]),u=r.petSex??null,p=r.trackingTexts===true,h=e.useMemo(()=>({...Jc,...healthPlanPetCopy({name:l,sex:u,trackingTexts:p}),...i.copy,...r.fromBackend===true?hc:{},...r.copy}),[l,u,p,i.copy,r.copy,r.fromBackend]),g=cu(h,r.renderIcon),f=hd(r.checkoutReturnUrl)?r.checkoutReturnUrl.trim():null,m=sc(),y=e.useRef(null);e.useEffect(()=>{r.shop===true&&r.checkout==="everfur_stripe"&&f===null&&Tu()},[r.shop,r.checkout,f]);let b=a.registry.services.kv,w=e.useMemo(()=>$d(b),[b]),x=r.navigate,k=r.recordsRepository,v=k!==void 0&&r.recordsMissing===void 0&&r.onConnectRecords!==void 0,S=Gc(v?k:void 0,petRef),T=k===void 0&&r.onConnectRecords!==void 0&&r.recordsMissing===void 0&&r.recordsBlanks===void 0,[C,j]=e.useState(null),I=e.useCallback(e=>j({pet:petRef,read:e}),[petRef]),H=T&&C!==null&&C.pet===petRef?C.read:null,P=T?/* @__PURE__ */n.jsx(RecordsProbe,{petRef:petRef,onRead:I},petRef):null,F=r.recordsMissing??(k!==void 0?S===true:H?.missing===true),R=r.recordsBlanks!==void 0?r.recordsBlanks:H?.blanks??null,{onOverlayChange:D,...z}=r,O=qc({...z,petName:l,blanksFacts:R,...D===void 0?{}:{onOverlayChange:(e,t)=>e==="product"?void 0:D(e,t)}},h,{store:w,returnUrls:()=>f===null?null:{successUrl:fd(f,sd,dd),cancelUrl:fd(f,cd,"1")},openUrl:e=>{x?St(x,e):t.Linking.openURL(e).catch(()=>{})},callHost:St,mintKey:yd},{...Od,checkoutReachable:f!==null}),{shop:B,everfur:_,partnerBuys:L,itemOf:E,inCart:A,weightKnown:W,noVet:V,planItems:M}=O,N=[...O.ownOrders.map(e=>zs(e,M)),...(r.shopOrders??[]).map(Ds)];qd({enabled:_,petRef:petRef,pages:O.pages,returnUrl:f,lifecycle:r.lifecycle??null,kv:b,...O.returnHandlers});let U=r.species??null,q=Cu(U),G=U!==null&&U.trim()!==""&&!q,K=!W&&q,X=i.pick,Y=r.renderWait?St(r.renderWait)??null:null,J=Y!==null||i.wait!==void 0,Q=r.checkoutRows??(r.fromBackend?[]:i.checkoutRows??[]),Z=r.trust??(r.fromBackend?[]:X.trust??[]),ee=i.byline!==void 0&&(r.fromBackend!==true||r.vetReviewed===true)?i.byline:void 0,te=ee??null,ne=X.none===true,re=ne&&X.hidden===true,ie=i.extras?.items.some(e=>e.productId!==void 0)===true,oe=e=>V?h.callAVet:F?h.callYourVet:e,le=R!==null&&!J,ae=(i.extras?.items??[]).filter(e=>e.owned!==true),se=e=>e.productId!==void 0&&(B||_||L)?E(e.productId):void 0,ce=ae.some(e=>se(e)!==void 0||r.onExtra!==void 0),de=B&&A(o.productId)!==void 0,ue=r.onJump,pe=ue?()=>{St(ue)}:m?()=>m(y.current):void 0,he=1,ge={};return i.routine&&!J&&(ge.routine=he++),!(J||re)&&!ne&&(ge.pick=he++),!J&&i.signs?ge.signs=he++:!J&&i.checkup&&(ge.checkup=he++),{model:{props:r,hp:O,kit:g,copy:h,petName:l,returnUrl:f,blanksFacts:R,recordsMissing:F,waitNode:Y,waiting:J,blanksShown:le,rows:Q,trust:Z,byline:ee,vet:te,noPick:ne,pickHidden:re,curated:ie,otherSpecies:G,askWeight:K,pickInCart:de,jump:pe,pickRef:y,pageWidth:s,setPageWidth:d,numbers:ge,allOrders:N,extraProduct:se,extraItems:ae,extrasShown:ce,vetSignTitle:oe},recordsProbe:P}}function HealthPlanFocusProvider(e){let{model:t,recordsProbe:r}=Pu(e);/* @__PURE__ */
177
- return n.jsx(ju.Provider,{value:t,children:/* @__PURE__ */n.jsxs(HealthPlanRnKitScope,{kit:t.kit,children:[e.children,r]})})}var Fu=900,Ru=80,Du=.4,zu=()=>t.Easing.bezier(0,0,.58,1),$u={flexShrink:1},Ou={flexDirection:"row",flexWrap:"wrap",alignItems:"center"},Bu={height:void 0,paddingLeft:3,paddingRight:3};function HealthPlanBlanks(r){let{phase:i,rows:o,flashKey:l}=r,a=vo(),s=a.motion.reducedMotion,c=vs(a),{bx:d,tx:u,tb:p,inner:h}=Is(c),g=c.roles.accent??"",f=ds(g),m=c.roles.accent4??"",y=o.every(e=>e.value!==null),b=i==="filled"&&y,w=e.useRef([]);for(;w.current.length<o.length;)w.current.push(new t.Animated.Value(1));let x=e.useRef(null);return e.useEffect(()=>{if(l==null||x.current===l||i!=="filled"||(x.current=l,s))return;let e=zu(),n=o.flatMap((n,r)=>{let i=w.current[r];return n.value===null||i===void 0?[]:(i.setValue(0),[t.Animated.sequence([t.Animated.delay(r*Ru),t.Animated.timing(i,{toValue:1,duration:Fu,easing:e,useNativeDriver:false})])])});for(let e of n)e.start();return()=>{for(let e of n)e.stop()}},[l,i,s]),/* @__PURE__ */n.jsxs(t.View,{style:d("blanksWrap","blanksCard"),accessibilityLabel:r.label,testID:"health-plan-blanks",children:[
171
+ /* @__PURE__ */n.jsx(Text,{style:a("cartItemPriceNote"),children:o.orderItemLine(i.quantity,h.subscriptionBox)})]})]})]},i.title))})}),Ys(e,k),Xs(e,r.rows,true),r.onBuyAgain===null?null:Gs(e,o.buyAgain,r.onBuyAgain,{ghost:true,testID:"health-plan-buy-again"}),r.onHelp===null?null:Ks(e,o.orderHelp,r.onHelp),v===""?null:/* @__PURE__ */n.jsx(Text,{style:s("shopFine"),children:v})]})}var sc=e.createContext(null),cc=e.createContext(null);function HealthPlanScrollScope({scrollRef:r,children:i,style:o}){let l=e.useRef(null),a=To().motion.reducedMotion,s=e.useCallback(e=>{let t=l.current,n=r.current;if(!(e===null||t===null||n===null))try{e.measureLayout(t,(e,t)=>n.scrollTo({y:Math.max(0,t),animated:!a}),()=>{})}catch{}},[r,a]),c=e.useMemo(()=>s,[s]),d=e.useMemo(()=>({measure:e=>{let t=r.current;if(typeof t?.measureInWindow=="function")try{t.measureInWindow((t,n,r,i)=>{i>0&&e({y:n,height:i})})}catch{}},top:e=>{let t=l.current,n=r.current;if(!(e===null||t===null||n===null))try{e.measureLayout(t,(e,t)=>n.scrollTo({y:Math.max(0,t),animated:!1}),()=>{})}catch{}}}),[r]);/* @__PURE__ */
172
+ return n.jsx(sc.Provider,{value:c,children:/* @__PURE__ */n.jsx(cc.Provider,{value:d,children:/* @__PURE__ */n.jsx(t.View,{ref:l,style:o,collapsable:false,children:i})})})}function dc(){return e.useContext(sc)}function uc(){return e.useContext(cc)}var pc=false;function hc(e){if(pc||!e)return;pc=true;let t=globalThis.console;try{t?.warn?.("[everfur] A ConnectedHealthPlan* block was drawn outside HealthPlanFocusProvider, so it draws nothing. Wrap it in HealthPlanFocusProvider (or HealthPlanFocus), or use the pure block with your own data.")}catch{}}function healthPlanPetWords(e,t){let n=e?.trim()??"",r=n===""?"your pet":n,i=n===""?"Your pet":n;return t==="female"?{name:r,Name:i,poss:"her",Poss:"Her",obj:"her"}:t==="male"?{name:r,Name:i,poss:"his",Poss:"His",obj:"him"}:{name:r,Name:i,poss:`${r}'s`,Poss:`${i}'s`,obj:r}}var gc=e=>e===null?"":`${e.productName} renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,fc=/* @__PURE__ */Object.freeze({onceFine:"",cartFine:gc,startedWhat:()=>""});function healthPlanFocusCopyFor(e){let t=healthPlanPetWords(e.name,e.sex),n=e=>e.petName?.trim()||t.name,NameOf=e=>e.petName?.trim()||t.Name,r=/* @__PURE__ */Object.freeze({jumpKicker:(e,n)=>n?`In ${t.poss} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${t.poss} first box`:e.intervalDays>0?`Ships every ${e.intervalDays} days`:r.onceLine(e),optionsLabel:"How to buy",subscribe:"Subscribe",bestValue:"Best value",subscribeLine:e=>e.offer?`First box, then ${e.box??""}`:`${e.box??""} every ${e.intervalDays} days`,priceLine:e=>e.offer?`${e.discountPercent}% off the first box. Ships every ${e.intervalDays} days.`:e.intervalDays>0?`Ships every ${e.intervalDays} days.`:r.onceOffer(e),once:"One box",onceLine:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once`:"Ships once",buyOnce:e=>`Buy one box, ${e.once??e.box??""}`,subscribed:"Subscribed",subscribedLine:(e,t)=>t===null?`Every ${e.intervalDays} days`:`Every ${e.intervalDays} days · next box ${t}`,manage:"Manage",checkoutKicker:"Checkout",checkoutTitle:e=>`Checkout: ${e.productName}`,checkoutOffer:e=>`${e.discountPercent}% off your first box.`,shipsEvery:"Ships every",days:e=>`${e} days`,buyOnceOption:"Buy once",checkoutGo:(e,t,n)=>`${t?"Subscribe":"Buy now"} · ${n} today`,renews:e=>`Renews every ${e.intervalDays} days at ${e.box??""} until you cancel; skip or cancel anytime in the app.`,onceFine:"One box, ships tomorrow.",onceOffer:e=>e.onceDiscountPercent>0?`${e.onceDiscountPercent}% off, ships once.`:"Ships once.",checkoutNote:"",close:"Close",startedTitle:e=>`${NameOf(e)}'s plan has started.`,orderedTitle:()=>"Order placed.",startedWhat:e=>`${e.productName} ships tomorrow.`,startedNote:"",startedSteps:"What happens next",tomorrow:"Tomorrow",firstBoxShips:`${t.Poss} first box ships.`,trackingComesByText:"Tracking comes by text.",checkin:e=>e===null?"A 2-week check-in by text.":`A 2-week check-in by text: ${e}`,refill:`A text 3 days before ${t.poss} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${t.Poss} next box ships, ${e.box??""}.`,startedDone:`Back to ${t.poss} plan`,manageKicker:"Your subscription",manageTitle:e=>`Manage ${e.productName}`,skip:"Skip the next box",cancel:"Cancel subscription",skipped:(e,n)=>n===null?"Skipped.":`Skipped. ${t.Poss} next box ships ${n}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${t.poss} plan anytime.`,orders:"Orders",startedHeader:"Subscribed",placedHeader:"Order placed",cartCheckoutTitle:"Checkout",orderNote:"",cartLabel:e=>e>0?`Cart, ${e} item${e>1?"s":""}`:"Cart, empty",addToCart:e=>`Add to cart · ${e}`,viewCart:"View cart",addedToCart:(e,t)=>`${e.productName} is in your cart${t?", as a subscription":""}.`,removedFromCart:e=>`${e} is out of your cart.`,cartTitle:"Cart",cartEmptyTitle:"Your cart is empty",cartEmptyBody:e=>`${NameOf(e)}'s plan pick lands here when you add it.`,seeOrders:`See ${t.poss} orders`,quantityLabel:e=>`How many: ${e}`,fewer:"One fewer",more:"One more",remove:"Remove",cartSubLine:e=>e.offer?`First box ${e.discountPercent}% off, then ${e.box??""} every ${e.intervalDays} days`:`Every ${e.intervalDays} days`,cartOnceLine:(e,n)=>n?`An extra box. ${t.Poss} plan keeps shipping.`:e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",cartModeLabel:e=>`How to buy ${e}`,cartModeSubscribe:e=>e.offer?`Subscribe, ${e.discountPercent}% off the first box`:"Subscribe",cartModeOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",subtotal:"Subtotal",shipping:"Shipping",shippingValue:"",shippingTag:"",total:"Total",dueToday:"Due today",thenRenews:e=>`Then ${e.productName}`,renewsEvery:e=>`${e.box??""} every ${e.intervalDays} days`,checkoutCart:e=>`Checkout · ${e}`,cartOneAtATime:"",cartSubscriptionApart:"",cartItemSubscription:e=>`Subscription, every ${e.intervalDays} days`,cartItemQuantity:e=>`Qty ${e}`,placeOrder:(e,t)=>`${t?"Place order and subscribe":"Place order"} · ${e}`,cartFine:e=>`${e===null?"":`${gc(e)} `}Ships tomorrow.`,placedSteps:"What's coming",placedShips:"It ships.",placedArrives:"It arrives at home.",viewOrder:"View order",herSubscription:`${t.Poss} subscription`,nextBox:e=>`Next box ${e}`,everyDays:e=>`Every ${e} days`,ordersHeading:e=>e?"Orders":`${t.Poss} orders`,ordersFine:"",ordersEmptyTitle:"No orders yet",ordersEmptyBody:e=>`The boxes from ${n(e)}'s plan show up here.`,moreOrders:"",orderSteps:["Ordered","Shipped","Out for delivery","Delivered"],subscriptionBox:"Subscription box",orderTitle:e=>e===null?"Order":`Order ${e}`,arrivesBy:e=>`Arrives by ${e}`,deliveredOn:e=>`Delivered ${e}`,expected:e=>`Expected ${e}`,tracking:"Tracking",trackingByText:"The tracking number comes by text when it ships.",trackOn:e=>`Track on ${e}`,trackLink:"",inThisOrder:"In this order",orderItemLine:(e,t)=>`Qty ${e}${t?" · subscription box":""}`,paidWith:"Paid with",buyAgain:"Buy again",orderHelp:"Get help with this order",addWeightTitle:`Add ${t.poss} weight to size ${t.poss} dose`,addWeightBody:`From a home scale or ${t.poss} last vet visit.`,connectRecordsTitle:`Connect ${t.poss} vet records`,connectRecordsBody:`${t.Poss} weight, visits and labs make ${t.poss} plan sharper.`,weightKicker:`${t.Poss} weight`,weightTitle:e=>`Add ${n(e)}'s weight`,weightBody:`From a home scale or ${t.poss} last vet visit. ${t.Poss} plan uses it to size ${t.poss} dose.`,weightField:`${t.Poss} weight`,weightUnit:"lb",weightUnitKg:"kg",weightErrorKg:"Enter your pet’s weight",weightError:`Enter ${t.poss} weight in pounds, like 14.1.`,weightSave:`Save ${t.poss} weight`,weightSaved:e=>`Saved: ${e} lb. ${t.Poss} dose is sized for ${t.obj}.`,weightSavedKg:e=>`Saved: ${e} kg. ${t.Poss} dose is sized for ${t.obj}.`,checkoutFailed:"That didn't go through. Please try again.",builtWith:e=>`Built with ${e}`,fromVet:e=>`From ${e}`,waitVetTips:e=>`Free tips from ${e}, built around that risk`,signalsFit:e=>`${e} of ${e} signals fit ${t.Name}`,signalsValue:e=>`${e}/${e}`,noPick:`No supplement for this one. ${t.Poss} vet comes first.`,callYourVet:"Call your vet today",callAVet:"Call a vet today",saveForCheckup:`Save for ${t.poss} next checkup`,savedForCheckup:`Saved for ${t.poss} next checkup`,blanksLabel:`${t.Poss} three blanks`,blanksAsked:e=>`Asked ${e}`,blanksAskedNoClinic:"",blanksWaitPill:"2 to 5 days",blanksFilledKicker:`From ${t.poss} vet records`,blanksFilled:(e,t)=>`${e} of ${t} filled`,blanksWeight:`Keep ${t.obj} at `,blanksWeightSource:`From ${t.poss} vet visits`,blanksDose:(e,t)=>`${e} of ${t}`,blanksDoseSource:`Sized to ${t.poss} weight`,blanksShots:`${t.Poss} next shots are due `,blanksShotsSource:`From ${t.poss} clinic`,blankEmpty:"blank",recordsLanded:`${t.Poss} records are in. ${t.Poss} plan now uses ${t.poss} weight and ${t.poss} visits.`,todayLabel:`${t.Poss} Health Plan`,poweredBy:"powered by",poweredByName:"Everfur",seeMore:"See more",seeLess:"See less",reportActions:"Actions to take",openReport:`Open it in ${t.poss} report`,askReport:"Ask about it",fullOpen:`See ${t.poss} full plan`,fullOpenLine:`${t.Poss} vet, reviews and ${t.poss} checkup`,fullClose:`Show ${t.poss} brief plan`,fullCloseLine:`${t.Poss} risk, tips, pick and signs`,hopeNoted:e=>`Noted. When ${t.poss} results land, we'll start with ${e}.`,productLink:e=>`${e}, see the product`,productPhotos:e=>`${e} photos, swipe for more`,shopAll:"Shop all",madeFor:`Made for ${t.name}`,ratingLine:e=>`· ${e} reviews`,productOffer:e=>`${e.discountPercent}% off ${t.poss} first box`,productEvery:e=>`Every ${e.intervalDays} days`,productOnce:e=>e.onceDiscountPercent>0?`One box, ${e.onceDiscountPercent}% off`:"One box",productExtraBox:"An extra box",productOnPlan:e=>`On ${t.poss} plan, every ${e.intervalDays} days. This adds one extra box.`,quantity:"Quantity",description:"Description",readMore:"Read more",readLess:"Read less",whatsInside:"What's inside",howMuch:"How much",reviewsTitle:"Reviews",reviewCount:e=>`${e} reviews`,reviewsSwipe:"Reviews, swipe for more",readAllReviews:e=>`Read all ${e} reviews`,starsLabel:e=>`${e} out of 5 stars`,buyNow:"Buy now"});return r}var mc=healthPlanFocusCopyFor({sex:"female"});function formatHealthPlanDay(e,t){if(e===null||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;let n=/* @__PURE__ */new Date(`${e}T00:00:00Z`);if(Number.isNaN(n.getTime()))return null;try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(n)}catch{return e}}var yc=/* @__PURE__ */Object.freeze({loaded:false,orders:[],next:null,loading:false});function bc(e,t){return[...e.filter(e=>e.kind!==t.kind),t]}function wc(e,t,n){return e!==null?e.kind:xc(t,n)}function xc(e,t){return e!==null?"started":t!==void 0?t.kind:null}function kc(e,t){let n=/* @__PURE__ */new Set;return[...e,...t].filter(e=>n.has(e.orderId)?false:(n.add(e.orderId),true))}function vc(e,t){return[...t,...e.filter(e=>!t.some(t=>t.orderId===e.orderId))]}function Sc(e,t){return{loaded:true,orders:[...e.orders,...t.orders.filter(t=>!e.orders.some(e=>e.orderId===t.orderId))],next:t.nextCursor,loading:false}}function Tc(e,t,n){if(e===null)return null;let r=t.find(t=>t.orderId===e);return r!==void 0?r.tracking?.orderNumber??null:n.find(t=>t.key===e)?.number??null}function Cc(e,t,n){return e.flatMap(e=>e.productId!==t?[e]:n(e)??[])}async function jc(e,petRef,t){if(e.listOneBoxOrderPage!==void 0)return e.listOneBoxOrderPage(petRef,{limit:20,...t===null?{}:{cursor:t}});if(t!==null||e.listOneBoxOrders===void 0)return{ok:true,value:{orders:[],nextCursor:null}};let n=await e.listOneBoxOrders(petRef);return n.ok?{ok:true,value:{orders:n.value,nextCursor:null}}:n}function Ic(e){if(e.httpStatus!==422)return false;let t=e.raw!==null&&typeof e.raw=="object"?e.raw:null;return[e.reasonCode,e.wireMessage,t?.detail,t?.message].some(e=>e==="invalid_cursor")}var Hc=e=>Math.round(e*100)/100;function useHealthPlanSubscriptionRepository(){let{runtime:t}=$();return e.useMemo(()=>createHealthPlanSubscriptionRepository(t),[t])}function useHealthPlanSubscription(t){let{userRef:userRef}=$(),n=useHealthPlanSubscriptionRepository(),r=t.repository??n,i=t.enabled!==false&&userRef!==null&&t.petRef!==null&&t.productId!==null,{petRef:petRef,productId:o}=t,[l,a]=e.useState("idle"),[s,c]=e.useState(null),[d,u]=e.useState(null),[p,h]=e.useState(false),[g,f]=e.useState(null),[m,y]=e.useState(null),b=e.useRef(0),w=e.useRef(0),x=e.useRef(0),k=e.useRef(false),v=e.useRef(false),S=e.useRef(()=>Promise.resolve()),T=e.useCallback(async()=>{let e=++b.current;if(v.current=false,y(null),!i||petRef===null||o===null){a("idle"),c(null),u(null);return}a("loading");let t=await r.quote(petRef,o);if(e===b.current){if(!t.ok){c(null),u(null),f(t.error),a(isHealthPlanSubscriptionUnavailable(t.error)?"unavailable":"failed");return}f(null),c(t.value),u(t.value.subscription),a("ready"),y(Date.now())}},[i,petRef,o,r]),C=i&&l==="ready",j=e.useCallback(async()=>{if(!C||k.current||petRef===null||o===null)return;let e=b.current,t=w.current,n=++x.current,i=await r.quote(petRef,o);e!==b.current||t!==w.current||n!==x.current||k.current||!i.ok||(c(i.value),u(i.value.subscription),y(Date.now()))},[C,petRef,o,r]);S.current=j;let I=()=>{if(!C){T();return}if(k.current){v.current=true;return}j()};Ht({lifecycle:t.lifecycle,refreshKey:t.refreshKey,readyAt:C?m:null,revalidate:()=>{j()},refresh:I});let H=e.useCallback(()=>{v.current&&(v.current=false,S.current())},[]);e.useEffect(()=>(T(),()=>{b.current+=1}),[T]);let P=e.useCallback(async e=>{let t=b.current;w.current+=1,k.current=true,h(true);let n=await e();return k.current=false,t!==b.current?n:(h(false),n.ok?(f(null),u(n.value),H(),n):(f(n.error),isHealthPlanSubscriptionUnavailable(n.error)?a("unavailable"):H(),n))},[H]),F=e.useCallback(async e=>{let t=b.current;w.current+=1,k.current=true,h(true);let n=await r.buyOneBox(petRef,o,e);return k.current=false,t!==b.current?n:(h(false),n.ok?(f(null),T(),n):(f(n.error),isHealthPlanSubscriptionUnavailable(n.error)?a("unavailable"):H(),n))},[r,petRef,o,T,H]);return e.useMemo(()=>{let e=petRef,t=d?.subscriptionId??"",n=()=>Promise.resolve(err(makeEverfurError("validationFailed",{retryable:false,wireMessage:"the subscription quote is not ready"})));return{phase:l,quote:s,subscription:d,busy:p,error:g,subscribe:t=>C&&o!==null?P(()=>r.create(e,o,t)):n(),changeInterval:i=>C&&t!==""?P(()=>r.changeInterval(e,t,i)):n(),skip:()=>C&&t!==""?P(()=>r.skip(e,t)):n(),cancel:()=>C&&t!==""?P(()=>r.cancel(e,t)):n(),restart:i=>C&&t!==""?P(()=>r.restart(e,t,i)):n(),buyOneBox:e=>C&&o!==null?F(e):n(),refresh:T}},[l,s,d,p,g,C,petRef,o,r,P,F,T])}var Pc=2.20462262;function Fc(e,t){return{weightKg:t?e:Math.round(e/Pc*100)/100,pounds:t?Math.round(e*Pc*10)/10:e}}var Rc=/* @__PURE__ */Symbol.for("@everfur/sdk#HealthPlanSignals@v1"),Dc=globalThis;function zc(e){if(typeof e!="object"||e===null)return false;let t=e;return t.landed instanceof Set&&t.noVet instanceof Set&&t.noVetByPet instanceof Map}var $c=Dc[Rc],Oc=()=>({landed:/* @__PURE__ */new Set,noVet:/* @__PURE__ */new Set,noVetByPet:/* @__PURE__ */new Map}),Bc=zc($c)?$c:Dc[Rc]=Oc(),_c=Bc.landed,Lc=Bc.noVet,Ec=Bc.noVetByPet;function notifyHealthPlanRecordsLanded(petRef,e="host"){for(let t of[..._c])try{t(petRef,e)}catch{}}function onHealthPlanRecordsLanded(e){return _c.add(e),()=>{_c.delete(e)}}function setHealthPlanNoVet(petRef,e){if((Ec.get(petRef)??false)!==e){e?Ec.set(petRef,true):Ec.delete(petRef);for(let t of[...Lc])try{t(petRef,e)}catch{}}}function healthPlanNoVet(petRef){return Ec.get(petRef)??false}function onHealthPlanNoVet(e){return Lc.add(e),()=>{Lc.delete(e)}}function Ac(t){let{petRef:petRef,noVet:n,blanksFacts:r,store:i,say:o,line:l}=t,[a,s]=e.useState(()=>healthPlanNoVet(petRef));e.useEffect(()=>(s(healthPlanNoVet(petRef)),onHealthPlanNoVet((e,t)=>{e===petRef&&s(t)})),[petRef]);let c=n??a,[d,u]=e.useState(null),p=e.useRef(false);e.useEffect(()=>(p.current=false,onHealthPlanRecordsLanded((e,t)=>{e===petRef&&t==="host"&&(p.current=true)})),[petRef]);let h=r?.phase??null,g=r?.requestId??null,f=e.useRef({say:o,line:l});return f.current={say:o,line:l},e.useEffect(()=>{if(g===null)return;let e=true,t=()=>{let t=i.readBlanksMemo(petRef);if(h==="wait"){t.waited!==g&&i.writeBlanksMemo(petRef,{...t,waited:g});return}!e||t.flashed===g||(i.writeBlanksMemo(petRef,{...t,flashed:g}),!(t.waited!==g&&!p.current)&&(p.current=false,u(g),f.current.line!==""&&f.current.say(f.current.line),notifyHealthPlanRecordsLanded(petRef,"plan")))};return i.loadBlanksMemo===void 0?t():i.loadBlanksMemo(petRef).then(t),()=>{e=false}},[h,g,petRef,i]),{noVet:c,flashKey:d}}function Wc(t){let{shop:n,ordersOpen:r,subsRepo:i,petRef:petRef,everfurOrders:o,setEverfurOrders:l,say:a}=t,s=e.useRef(false),c=e.useRef(false),d=e.useRef(a);return d.current=a,e.useEffect(()=>{if(!n||!r)return;let e=true;return s.current=true,jc(i,petRef,null).then(t=>{e&&(t.ok?l({loaded:true,orders:t.value.orders,next:t.value.nextCursor,loading:false}):(l(e=>({...e,loaded:true,loading:false})),d.current(t.error.displayMessage)))}),()=>{e=false,s.current=false}},[n,r,petRef,i]),{moreOrders:()=>{let e=o.next;e===null||c.current||(c.current=true,l(e=>({...e,loading:true})),jc(i,petRef,e).then(async e=>{let t=!e.ok&&Ic(e.error)?await jc(i,petRef,null):null;if(c.current=false,!!s.current){if(t!==null){t.ok?l({loaded:true,orders:t.value.orders,next:t.value.nextCursor,loading:false}):(l(e=>({...e,next:null,loading:false})),d.current(t.error.displayMessage));return}if(e.ok){let t=e.value;l(e=>Sc(e,t))}else l(e=>({...e,loading:false})),d.current(e.error.displayMessage)}}))}}}var Vc=.5,Mc=90,Nc=1,Uc=200,qc=2600,Gc={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};function Kc(t,n,r,i){let{design:o,item:l,petRef:petRef,petName:a,locale:s}=t,{store:c,callHost:d}=r,u=r.clock??Gc,p=B(),{runtime:h}=$(),g=useHealthPlanSubscription({petRef:petRef,productId:l.productId,enabled:t.subscriptions!==false&&o.pick.none!==true,...t.subscriptionRepository?{repository:t.subscriptionRepository}:{},...t.lifecycle!==void 0?{lifecycle:t.lifecycle}:{},...t.refreshKey!==void 0?{refreshKey:t.refreshKey}:{}}),[f,m]=e.useState("sub"),[y,b]=e.useState(false),[w,x]=e.useState(()=>/* @__PURE__ */new Set),[k,v]=e.useState(null),[S,T]=e.useState(null),C=e.useRef(null),[j,I]=e.useState(null),H=e.useRef(null),P=e.useRef(u);P.current=u,e.useEffect(()=>()=>{H.current!==null&&P.current.clearTimeout(H.current)},[]);let F=e=>[e,n.trackingComesByText].filter(e=>e!=="").join(" "),R=e=>{i.dropEmptyToast&&e===""||(I(e),H.current!==null&&u.clearTimeout(H.current),H.current=u.setTimeout(()=>I(null),qc))},D=t.checkout==="everfur_stripe"&&i.checkoutReachable,z=useHealthPlanPageRepository(),O=t.pageRepository??z,_=e.useRef(null),[L,E]=e.useState(false),A=t.shop??D,[V,M]=e.useState(()=>A?c.readCart(petRef):[]),N=e.useRef(V);e.useEffect(()=>{if(!A||c.loadCart===void 0)return;let e=true;return c.loadCart(petRef).then(()=>{if(!e)return;let t=c.readCart(petRef);N.current.length===0&&t.length>0&&(N.current=t,M(t))}),()=>{e=false}},[A,c,petRef]);let U=e.useCallback(e=>{let t=e(N.current);N.current=t,c.writeCart(petRef,t),M(t)},[petRef,c]),[q,G]=e.useState([]),K=useHealthPlanSubscriptionRepository(),X=t.subscriptionRepository??K,[Y,J]=e.useState(yc),[Q,Z]=e.useState(false),[ee,te]=e.useState(false),[ne,re]=e.useState([]),ie=t.others??[],oe=[l,...ie],le=kc(ne,Y.orders),ae=t.shopOrders??[],se=e=>Tc(e,le,ae),ce=e.useCallback(e=>{v(null),G(t=>bc(t,e))},[]),de=q.length>0?q[q.length-1]:void 0,ue=wc(k,S,de),pe=xc(S,de),he=e.useCallback(()=>{v(null),T(null),G([])},[]),ge=e.useCallback(()=>{k!==null?v(null):S!==null?T(null):G(e=>e.slice(0,-1))},[k,S]),fe=(e=>{switch(e){case"started":return S?.kind==="once"?n.placedHeader:n.startedHeader;case"cart":return n.cartTitle;case"placed":return n.placedHeader;case"orders":return n.orders;case"order":return n.orderTitle(se(de?.kind==="order"?de.key:null));case"product":{let e=de?.kind==="product"?de.productId:null;return e===null?void 0:oe.find(t=>t.productId===e)?.title}default:return}})(pe),me=pe==="started"||pe==="cart"||pe==="placed"||pe==="product",ye=t.onOverlayChange,be=e.useRef(d);be.current=d,e.useEffect(()=>{ye!==void 0&&be.current(ye,ue,{close:he,back:ge,...fe===void 0?{}:{title:fe},...me?{full:me}:{}})},[ue,ye,he,ge,fe,me]);let we=g.phase==="ready"?g.quote:null,xe=g.subscription,ke=xe?.status==="active",ve=(we?.boxPrice??l.price)!==null,Se=we!==null&&(!i.subscribeNeedsPrice||ve),Te=Se&&we.offerApplies&&xe===null,Ce=ke?xe.intervalDays:Se?we.defaultIntervalDays:0,je=(e,n)=>formatHealthPlanPriceWith(e,n,{dropZeroCents:false,...t.priceFormat,...s?{locale:s}:{}}),Ie=(e,n)=>formatHealthPlanPriceWith(e,n,{dropZeroCents:true,...t.priceFormat,...s?{locale:s}:{}}),He=we?.currency??l.currency,Pe=we?.boxPrice??l.price,Fe=we?.oneBox??null,Re=(e,t=l.title)=>({petName:a,productName:t,first:je(Te&&we?we.firstBoxPrice:Pe,He),box:je(Pe,He),once:je(Fe?.price??Pe,He),onceDiscountPercent:Fe?.discountPercent??0,intervalDays:e,discountPercent:Te&&we?we.firstBoxDiscountPercent:0,offer:Te}),De=Re(Ce),ze=De.box!==null,$e=Se?f:"once",Oe=e=>formatHealthPlanDay(e,s),Be=e=>Oe(e.timeline.find(e=>e.step==="next_box_ships")?.on??e.nextBoxDate),_e=(e=l)=>{t.onBuy?d(t.onBuy,e):t.onCheckout&&d(t.onCheckout,[e])},Le=t.onBuy!==void 0||t.onCheckout!==void 0,Ee=e=>e.ok?(t.onSubscriptionChange&&d(t.onSubscriptionChange,e.value),e.value):(R(e.error.displayMessage),null),Ae=async(e,t,n=l)=>{if(L)return;let i=r.returnUrls();if(i===null)return;let o=`${n.productId}:${e}:${t??""}`;_.current?.sig!==o&&(_.current={sig:o,key:r.mintKey()}),E(true);let a=await O.startCheckout(petRef,{productId:n.productId,purchase:e,...t===null?{}:{intervalDays:t},...i},_.current.key);if(E(false),!a.ok){R(a.error.displayMessage);return}c.rememberCheckout(petRef,a.value.checkoutId),r.openUrl(a.value.url)},We=e=>oe.find(t=>t.productId===e),Ve=e=>V.find(t=>t.productId===e),Me=e=>e===l.productId,Ne=e=>Me(e.productId)&&Se&&!ke&&e.mode==="sub",Ue=e=>Me(e.productId)?Ne(e)?Te&&we?we.firstBoxPrice:Pe:Fe?.price??Pe:We(e.productId)?.price??null,qe=V.filter(e=>We(e.productId)!==void 0),Ge=qe.reduce((e,t)=>e+t.qty,0),Ke=Hc(qe.reduce((e,t)=>e+(Ue(t)??0)*t.qty,0)),Xe=qe.find(Ne)??null,Ye=D&&!Q&&O.startCartCheckout!==void 0,Je=!D&&t.onCheckoutLines!==void 0,Qe=Ye||Je,Ze=(e,t)=>{let n=/^[^\d]*(\d+(?:\.\d{1,2})?)[^\d]*$/.exec(e.replace(/,/g,""));return(n?je(Number(n[1]),t??He):null)??e},et=e=>{let t=We(e.productId)??l,r=Ne(e),a=Me(e.productId),s=a||!i.linesFromExtras?void 0:o.extras?.items.find(t=>t.productId===e.productId),c=a?Re(e.every,t.title):{...Re(0,t.title),offer:false};return{key:e.productId,name:t.title,imageUrl:t.imageUrl??s?.imageUrl??null,quantity:e.qty,subscription:r,price:je(Ue(e),a?He:t.currency),was:a?r?Te?c.box:null:Fe!==null&&Pe!==null&&Fe.price<Pe?c.box:null:s?.was?Ze(s.was,t.currency):null,note:a?r?n.cartSubLine(c):n.cartOnceLine(c,ke):null,...i.linesFromExtras?{tag:s?.tag??null}:{},modes:a&&Se&&!ke?{label:n.cartModeLabel(t.title),sub:{label:n.cartModeSubscribe(c),price:c.first},once:{label:n.cartModeOnce(c),price:c.once}}:null,every:r&&we!==null?{options:we.intervalOptions,selected:e.every}:null,maxQuantity:Qe&&!r?5:1,lp:c}},tt=qe.map(et),nt=Xe===null?null:Re(Xe.every),rt=(e,t,r=1,i=false)=>{if(Ve(e.productId)){ce({kind:"cart"});return}let o=Me(e.productId)&&Se&&!ke&&t==="sub",l=o?1:Math.max(1,Math.min(Qe?5:1,r));U(t=>[...t,{productId:e.productId,mode:o?"sub":"once",every:we?.defaultIntervalDays??0,qty:l}]),i||R(n.addedToCart(Me(e.productId)?De:{...Re(0,e.title),offer:false},o))},it=()=>G(e=>{let t=e.findIndex(e=>e.kind==="cart");return t>=0?e.slice(0,t+1):[...e,{kind:"cart"}]}),ot=(e,t)=>U(n=>Cc(n,e,t)),lt=(e,t)=>ot(e,e=>({...e,qty:Math.max(1,Math.min(Qe&&!Ne(e)?5:1,e.qty+t))})),at=e=>{ot(e,()=>null),R(n.removedFromCart(We(e)?.title??""))},st=Ye&&Xe!==null&&qe.length>1,ct=st?qe.filter(e=>!Ne(e)):qe,dt=Hc(ct.reduce((e,t)=>e+(Ue(t)??0)*t.qty,0)),ut=ct.find(Ne)??null,pt=ut===null?null:Re(ut.every),ht=qe.length>0&&qe.every(e=>Ue(e)!==null)&&(qe.length===1&&(qe[0]?.qty??0)===1?true:Ye?ct.length>0&&ct.length<=10:!D&&(t.onCheckout!==void 0||Je)&&qe.every(e=>!Ne(e))),gt=async e=>{if(L||O.startCartCheckout===void 0)return;let t=r.returnUrls();if(t===null)return;let i=`cart:${e.map(e=>`${e.productId}:${e.qty}:${Ne(e)?e.every:""}`).join("|")}`;_.current?.sig!==i&&(_.current={sig:i,key:r.mintKey()}),E(true);let o=await O.startCartCheckout(petRef,{items:e.map(e=>{let t=Ne(e);return{productId:e.productId,purchase:t?"subscription":"one_box",...t?{intervalDays:e.every}:{},quantity:t?1:e.qty}}),...t},_.current.key);if(E(false),!o.ok){let e=healthPlanCheckoutRefusal(o.error);if(e==="cart_disabled"){Z(true),v(null),R(n.cartOneAtATime===""?o.error.displayMessage:n.cartOneAtATime);return}if(e==="cart_has_subscription"){v(null),R(n.cartSubscriptionApart===""?o.error.displayMessage:n.cartSubscriptionApart);return}R(o.error.displayMessage);return}c.rememberCheckout(petRef,o.value.checkoutId),r.openUrl(o.value.url)},ft=async()=>{C.current===null&&(C.current=r.mintKey());let e=await g.buyOneBox(C.current);return e.ok?(C.current=null,t.onOneBoxOrder&&d(t.onOneBoxOrder,e.value),e.value):(R(e.error.displayMessage),null)},mt=async()=>{if(!ht)return;if(D&&Ye&&!(ct.length===1&&(ct[0]?.qty??0)===1)){ct.map(e=>We(e.productId)).filter(e=>e!==void 0);W(p,petRef,{count:ct.reduce((e,t)=>e+t.qty,0),subtotal:dt,currency:He}),await gt(ct);return}if(Je&&!(qe.length===1&&(qe[0]?.qty??0)===1)){let e=qe.flatMap(e=>{let t=We(e.productId);return t===void 0?[]:[{item:t,quantity:e.qty}]});W(p,petRef,{items:e.map(e=>e.item),count:e.reduce((e,t)=>e+t.quantity,0),subtotal:Ke,currency:He}),Vt(qe.map(e=>e.productId)),v(null),G([]),t.onCheckoutLines&&d(t.onCheckoutLines,e);return}let e=ct.length===1?ct[0]:qe.length===1?qe[0]:void 0;if(e===void 0){t.onCheckout&&d(t.onCheckout,qe.map(e=>We(e.productId)).filter(e=>e!==void 0));return}let n=We(e.productId)??l,r=Ne(e);if(W(p,petRef,{count:1,subtotal:Ue(e),currency:Me(e.productId)?He:n.currency}),D){await Ae(r?"subscription":"one_box",r?e.every:null,n);return}if(r){let t=Ee(await g.subscribe(e.every));if(t===null)return;Vt([t.productId]),v(null),G([]),T({kind:"sub",sub:t});return}if(!Me(e.productId)||Fe===null){v(null),Je&&(Vt([e.productId]),G([])),_e(n);return}let i=await ft();i!==null&&(Vt([i.productId]),Wt([i]))},yt=()=>{if(W(p,petRef,{count:1,subtotal:l.price,currency:l.price===null?null:l.currency}),!Se){D?Ae("one_box",null):_e();return}C.current=null,v({kind:"checkout",mode:$e,every:we.defaultIntervalDays})},bt=e=>{W(p,petRef,{count:1,subtotal:e.price,currency:e.price===null?null:e.currency}),D?Ae("one_box",null,e):_e(e)},wt=async()=>{if(k?.kind!=="checkout")return;let e=k.mode==="sub";if(D){await Ae(e?"subscription":"one_box",e?k.every:null);return}if(!e){if(Fe===null){v(null),_e();return}let e=await ft();if(e===null)return;v(null),Wt([e]);return}let t=Ee(await g.subscribe(k.every));t!==null&&(v(null),T({kind:"sub",sub:t}))},xt=e=>{xe===null||e===xe.intervalDays||g.changeInterval(e).then(Ee)},kt=async()=>{let e=Ee(await g.skip());e!==null&&R(n.skipped(Re(e.intervalDays),Be(e)))},vt=async()=>{let e=Re(xe?.intervalDays??Ce);Ee(await g.cancel())!==null&&(v(null),m("sub"),R(n.cancelled(e)))},St=()=>{v(null),de?.kind!=="orders"&&ce({kind:"orders"})},Tt=e=>{let n=!y;b(n),t.onAddToVisit&&d(t.onAddToVisit,n,e)},Ct=(e,n)=>{let r=!n;x(t=>{let n=new Set(t);return r?n.add(e):n.delete(e),n}),t.onExtra&&d(t.onExtra,e,r)},jt=(e,t,n)=>{if(t!==void 0){A?rt(t,"once"):bt(t);return}Ct(e,n)},It=q.some(e=>e.kind==="orders"||e.kind==="order"),{moreOrders:Ht}=Wc({shop:A,ordersOpen:It,subsRepo:X,petRef:petRef,everfurOrders:Y,setEverfurOrders:J,say:R}),Pt=t.weightKnown!==false||ee,Ft=t.weightUnit==="kg",[Rt,Dt]=e.useState(""),[zt,$t]=e.useState(""),[Ot,Bt]=e.useState(false),_t=()=>{$t(""),v({kind:"weight"})},Lt=async()=>{let e=Math.round(Number.parseFloat(Rt.replace(",","."))*10)/10;if(!(Ft?e>=Vc&&e<=Mc:e>=Nc&&e<=Uc)){$t(Ft?n.weightErrorKg:n.weightError);return}let{weightKg:r,pounds:i}=Fc(e,Ft);Bt(true);let o=t.onSaveWeight?await t.onSaveWeight(r,i):await h.updatePet(petRef,{weightKg:r});if(Bt(false),!o.ok){$t(o.error.displayMessage);return}$t(""),te(true),v(null),R(Ft?n.weightSavedKg(String(e)):n.weightSaved(String(i))),t.onWeightSaved&&d(t.onWeightSaved,r)},{noVet:Et,flashKey:At}=Ac({petRef:petRef,noVet:t.noVet,blanksFacts:t.blanksFacts,store:c,say:R,line:n.recordsLanded}),Wt=e=>{let t=e[0];if(t!==void 0){if(!A){T({kind:"once",order:t});return}re(t=>vc(t,e)),v(null),G([{kind:"placed",orders:e}])}},Vt=e=>{let t=new Set(e.filter(e=>e!==null));t.size>0&&U(e=>e.filter(e=>!t.has(e.productId)))};return{sub:g,copy:n,everfur:D,shop:A,partnerBuys:Le,redirecting:L,pages:O,quote:we,subscription:xe,active:ke,canSubscribe:Se,offer:Te,every:Ce,currency:He,boxPrice:Pe,oneBox:Fe,pr:De,priced:ze,mode:f,buyMode:$e,fmt:je,fmtWhole:Ie,prices:Re,day:Oe,nextBoxDay:Be,withTracking:F,sheet:k,started:S,screens:q,top:de,overlay:ue,under:pe,title:fe,full:me,toast:j,added:y,extras:w,planItems:oe,cart:V,lines:qe,lineCount:Ge,cartTotal:Ke,subLine:Xe,cartOn:Ye,hostLines:Je,boxesOn:Qe,wasOf:Ze,views:tt,renewPrices:nt,apart:st,batch:ct,batchTotal:dt,batchSub:ut,batchRenew:pt,cartReady:ht,itemOf:We,inCart:Ve,isPick:Me,lineSub:Ne,unitOf:Ue,lineView:et,everfurOrders:Y,ownOrders:le,orderNumber:se,weightKnown:Pt,kg:Ft,weightInput:Rt,weightError:zt,savingWeight:Ot,noVet:Et,flashKey:At,say:R,setMode:m,openSheet:v,closeSheet:()=>v(null),push:ce,replaceScreens:G,closeStarted:()=>T(null),closeOverlays:he,back:ge,toggleAdded:Tt,toggleExtra:Ct,pressExtra:jt,buyOnce:_e,press:yt,pressOther:bt,confirmCheckout:wt,changeInterval:xt,skip:kt,cancel:vt,seeOrdersFromManage:St,addToCart:rt,showCart:it,editLine:ot,stepQuantity:lt,removeLine:at,placeCart:mt,moreOrders:Ht,openWeight:_t,setWeightInput:Dt,saveWeight:Lt,returnHandlers:{onPaid:e=>{let n=e.subscription,r=e.orders??(e.order===null?[]:[e.order]);if(n!==null)t.onSubscriptionChange&&d(t.onSubscriptionChange,n),i.closeOnReturn&&(v(null),G([])),T({kind:"sub",sub:n});else if(r.length>0){for(let e of r)t.onOneBoxOrder&&d(t.onOneBoxOrder,e);Wt(r)}Vt([n?.productId??null,...r.map(e=>e.productId)]),g.refresh()},onFailed:()=>{v(null),A&&(i.closeOnReturn&&T(null),G([{kind:"cart"}])),n.checkoutFailed!==""&&R(n.checkoutFailed)},onCancel:()=>E(false),onTimeout:()=>{A&&(v(null),i.closeOnReturn&&T(null),G([{kind:"orders"}]))},onError:e=>R(e.displayMessage)}}}function Xc(t,petRef){let[n,r]=e.useState(null);return e.useEffect(()=>{if(t===void 0)return;let e=true;return t.getRecord(petRef).then(t=>{e&&r(t.ok?t.value.withheld!==true&&t.value.is_empty===true:null)}).catch(()=>{}),()=>{e=false}},[t,petRef]),n}var Yc="Close",Jc=/* @__PURE__ */Object.freeze({action:e=>e.possessive===null?null:`See ${e.possessive} Health Plan`,ask:"What does it mean?",askPrompt:(e,t)=>e.risk?.lead?`${e.risk.lead} ${t}`:`${e.title}: ${t}`,close:e=>e.possessive===null?null:`Close ${e.possessive} focus`,resultsKicker:e=>e.possessive===null?null:`${Qc(e.possessive)} results`,resultsClose:e=>e.possessive===null?null:`Close ${e.possessive} results`,resultsTopRisk:"Top risk"});function Qc(e){return e.charAt(0).toUpperCase()+e.slice(1)}function healthPlanPossessive(e){let t=typeof e.sex=="string"?e.sex.trim().toLowerCase():null;if(t==="female")return"her";if(t==="male")return"his";let n=typeof e.name=="string"?e.name.trim():"";return n!==""?`${n}'s`:null}function healthPlanTopCard(e,t={}){let n=e?.page?.focus;if(e===null||n===void 0||n.title.trim()===""||n.kicker.trim()==="")return;let r={...Jc,...t.copy},i={pet:e.pet,possessive:healthPlanPossessive(e.pet)},o=n.sources?.find(e=>e.label.trim()!=="")?.label,l=t.onOpenPlan,a=l===void 0?null:r.action(i),s=r.close(i),c=r.ask.trim(),d=t.results!==void 0&&n.report!==void 0?t.results:void 0;if(d!==void 0){let e=r.resultsKicker(i)?.trim()||n.kicker,s=r.resultsClose(i),u=d.onTopRisk??l,p={key:"top-risk",label:r.resultsTopRisk,title:n.title,...n.risk?.lead?{line:n.risk.lead}:{},tone:"risk",...u===void 0?{}:{onPress:u}};return{kicker:e,...o===void 0?{}:{badge:o},title:n.title,results:[p,...d.rows??[]],...a===null||a.trim()===""||l===void 0?{}:{action:{label:a,onPress:l}},...c===""?{}:{ask:{label:c,prompt:r.askPrompt(n,c)}},closeLabel:s===null||s.trim()===""?Yc:s,pill:e,...t.renderIcon===void 0?{}:{renderIcon:t.renderIcon}}}return{kicker:n.kicker,...o===void 0?{}:{badge:o},title:n.title,...n.risk?.lead?{lead:n.risk.lead}:{},...n.risk?.body?{body:n.risk.body}:{},...a===null||a.trim()===""||l===void 0?{}:{action:{label:a,onPress:l}},...c===""?{}:{ask:{label:c,prompt:r.askPrompt(n,c)}},closeLabel:s===null||s.trim()===""?Yc:s,pill:n.kicker,...t.renderIcon===void 0?{}:{renderIcon:t.renderIcon}}}var Zc=/* @__PURE__ */Object.freeze({...mc,firstBoxShips:"Her first box ships.",placedShips:"It ships.",trackingComesByText:"",trackingByText:"",moreOrders:"Load more",checkoutFailed:"That didn't go through. Please try again.",back:"Back"}),ed=e=>e===""?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function healthPlanPetCopy(e){let t=e.name?.trim()??"",n=healthPlanPossessive(e)??"your pet's",r=ed(n),i=e.sex==="female"?"her":e.sex==="male"?"him":t!==""?t:"your pet",o=mc,l=healthPlanFocusCopyFor({name:e.name,sex:e.sex});return{jumpKicker:(e,t)=>t?`In ${n} plan, every ${e.intervalDays} days`:e.offer?`${e.discountPercent}% off ${n} first box`:o.jumpKicker(e,false),firstBoxShips:e.trackingTexts===true?`${r} first box ships. Tracking comes by text.`:`${r} first box ships.`,placedShips:o.placedShips,trackingComesByText:e.trackingTexts===true?o.trackingComesByText:"",trackingByText:e.trackingTexts===true?o.trackingByText:"",refill:`A text 3 days before ${n} next box. Reply SKIP to skip it.`,nextBoxShips:e=>`${r} next box ships, ${e.box??""}.`,startedDone:`Back to ${n} plan`,skipped:(e,t)=>t===null?"Skipped.":`Skipped. ${r} next box ships ${t}.`,cancelled:e=>`${e.productName} is cancelled. Restart it from ${n} plan anytime.`,seeOrders:`See ${n} orders`,cartOnceLine:(e,t)=>t?`An extra box. ${r} plan keeps shipping.`:o.cartOnceLine(e,false),herSubscription:`${r} subscription`,ordersHeading:e=>e?"Orders":`${r} orders`,addWeightTitle:`Add ${n} weight to size ${n} dose`,addWeightBody:`From a home scale or ${n} last vet visit.`,connectRecordsTitle:`Connect ${n} vet records`,connectRecordsBody:`${r} weight, visits and labs make ${n} plan sharper.`,weightKicker:`${r} weight`,weightBody:`From a home scale or ${n} last vet visit. ${r} plan uses it to size ${n} dose.`,weightField:`${r} weight`,weightError:`Enter ${n} weight in pounds, like 14.1.`,weightSave:`Save ${n} weight`,weightSaved:e=>`Saved: ${e} lb. ${r} dose is sized for ${i}.`,weightErrorKg:l.weightErrorKg,weightSavedKg:l.weightSavedKg,signalsFit:l.signalsFit,noPick:l.noPick,saveForCheckup:l.saveForCheckup,savedForCheckup:l.savedForCheckup,blanksLabel:l.blanksLabel,blanksFilledKicker:l.blanksFilledKicker,blanksWeight:l.blanksWeight,blanksWeightSource:l.blanksWeightSource,blanksDoseSource:l.blanksDoseSource,blanksShots:l.blanksShots,blanksShotsSource:l.blanksShotsSource,recordsLanded:l.recordsLanded}}var td="everfur.healthPlan.blanks",nd=/* @__PURE__ */Object.freeze({waited:null,flashed:null}),rd=/* @__PURE__ */new Map,id=/* @__PURE__ */new Map,od=petRef=>`${td}:${petRef}`;function ld(e){if(e===null)return nd;try{let t=JSON.parse(e);if(t===null||typeof t!="object")return nd;let n=t;return{waited:typeof n.waited=="string"?n.waited:null,flashed:typeof n.flashed=="string"?n.flashed:null}}catch{return nd}}function ad(e,petRef){let t=rd.get(petRef);if(t!==void 0)return Promise.resolve(t);let n=id.get(petRef);return n===void 0&&(n=(async()=>{let t=nd;try{t=e?ld(await e.getItem(od(petRef))):nd}catch{}let n=rd.get(petRef)??t;return rd.set(petRef,n),n})(),id.set(petRef,n)),n}function sd(petRef){return rd.get(petRef)??nd}function cd(e,petRef,t){if(rd.set(petRef,t),!!e)try{e.setItem(od(petRef),JSON.stringify(t)).catch(()=>{})}catch{}}var dd="everfur_checkout",ud="everfur_checkout_cancel",pd="{CHECKOUT_SESSION_ID}",hd=2e3,gd=30;function fd(e){return typeof e!="string"?false:/^https:\/\/[^/?#\s]+[^\s]*$/i.test(e.trim())}var md=new RegExp(`([?&])(?:${dd}|${ud})=[^&#]*&?`,"g");function yd(e,t,n){let r=e.indexOf("#"),i=r===-1?"":e.slice(r),o=r===-1?e:e.slice(0,r);o=o.replace(md,"$1").replace(/[?&]$/,"");let l=o.includes("?")?"&":"?";return`${o}${l}${t}=${n}${i}`}function bd(e,t){let n=e=>e.split(/[?#]/)[0]?.replace(/\/+$/,"").toLowerCase()??"";if(n(e)!==n(t))return null;let r=e.split("#")[0]?.split("?")[1]??"",i=/* @__PURE__ */new Map;for(let e of r.split("&")){if(e==="")continue;let t=e.indexOf("="),n=t===-1?e:e.slice(0,t),r=t===-1?"":e.slice(t+1);try{r=decodeURIComponent(r)}catch{}i.set(n,r)}if(i.has(ud))return{kind:"cancel"};let o=i.get(dd);return o===void 0?null:{kind:"return",sessionId:o===""||o===pd?null:o}}function wd(){let e=globalThis.crypto;return e?.randomUUID?e.randomUUID():`tap-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,12)}`}var xd="everfur.healthPlan.cart",kd="everfur.healthPlan.checkout",vd=/* @__PURE__ */new Map,Sd=/* @__PURE__ */new Map,Td=/* @__PURE__ */new Set,Cd=/* @__PURE__ */new Set,jd=/* @__PURE__ */new WeakMap,Id=Promise.resolve();function Hd(e){if(e===null)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>{if(e===null||typeof e!="object")return[];let t=e,n=t.productId,r=t.mode,i=t.every,o=t.qty;return typeof n!="string"||r!=="sub"&&r!=="once"||typeof i!="number"||typeof o!="number"?[]:[{productId:n,mode:r,every:i,qty:Math.max(1,Math.min(r==="sub"?1:5,Math.round(o)))}]}):[]}catch{return[]}}function Pd(e,t,n){if(e)try{(n===null?e.removeItem(t):e.setItem(t,n)).catch(()=>{})}catch{}}function Fd(e,petRef){if(!e)return Id;let t=jd.get(e);t===void 0&&(t=/* @__PURE__ */new Map,jd.set(e,t));let n=t.get(petRef);return n===void 0&&(n=(async()=>{let t=[],n=null;try{let[r,i]=await Promise.all([e.getItem(`${xd}:${petRef}`),e.getItem(`${kd}:${petRef}`)]);t=Hd(r),n=typeof i=="string"&&i!==""?i:null}catch{}!Cd.has(petRef)&&t.length>0&&Sd.set(petRef,t),!Td.has(petRef)&&n!==null&&vd.set(petRef,n)})(),t.set(petRef,n)),n}function Rd(petRef,e,t){Td.add(petRef),vd.set(petRef,e),Pd(t,`${kd}:${petRef}`,e)}function Dd(petRef){return vd.get(petRef)??null}function zd(petRef,e){Td.add(petRef),vd.delete(petRef),Pd(e,`${kd}:${petRef}`,null)}function $d(petRef){return Sd.get(petRef)??[]}function Od(petRef,e,t){Cd.add(petRef),e.length===0?Sd.delete(petRef):Sd.set(petRef,e),Pd(t,`${xd}:${petRef}`,e.length===0?null:JSON.stringify(e))}function Bd(e){return{readCart:$d,writeCart:(petRef,t)=>Od(petRef,t,e),loadCart:petRef=>Fd(e,petRef),rememberCheckout:(petRef,t)=>Rd(petRef,t,e),readBlanksMemo:sd,writeBlanksMemo:(petRef,t)=>cd(e,petRef,t),loadBlanksMemo:petRef=>ad(e,petRef)}}var _d=/* @__PURE__ */Object.freeze({dropEmptyToast:true,subscribeNeedsPrice:false,closeOnReturn:true,linesFromExtras:false});var Ld=/* @__PURE__ */new Set(["requested","awaiting_clinic","awaiting_upload","received","parsing","in_review"]),Ed=/vaccin|rabies|dhpp|booster|bordetella|lepto|lyme|parvo|distemper/i,Ad=2.20462262;function Wd(e){if(e==null||e.length===0)return null;let t=Date.parse(/^\d{4}-\d{2}-\d{2}$/.test(e)?`${e}T00:00:00Z`:e);return Number.isNaN(t)?null:t}function Vd(e,t){return e===null||!Number.isFinite(e)||e<=0||t===null?null:/^\s*kg|kilo/i.test(t)?e:/^\s*(lb|lbs|pound)/i.test(t)?e/Ad:null}function healthPlanRecordsWeightKg(e){if(e===null||e.isEmpty||e.withheld)return null;let t=[];for(let n of e.entitySeries)if(n.key.startsWith("body_weight"))for(let e of n.points){if(e.origin==="owner_reported")continue;let n=Wd(e.at),r=e.display?.replace(/^[\d.,\s]+/,"")??null,i=Vd(e.value,r);n!==null&&i!==null&&t.push({at:n,kg:i})}for(let n of e.entities){if(n.category!=="body_weight"||n.origin==="owner_reported")continue;let e=Wd(n.observedAt),r=Vd(n.value===null?null:Number.parseFloat(n.value),n.unit);e!==null&&r!==null&&t.push({at:e,kg:r})}return t.length===0?null:(t.sort((e,t)=>t.at-e.at),t[0]?.kg??null)}function healthPlanNextShotsAt(e,t){if(e===null||e.isEmpty||e.withheld)return null;let n=null;for(let r of e.forwardLooking){if(!Ed.test(r.title))continue;let e=Wd(r.dueAt);e===null||e<t||(n===null||e<n)&&(n=e)}return n}function Md(e){return e.filter(e=>e.source==="clinic_request").slice().sort((e,t)=>(Wd(t.createdAt)??0)-(Wd(e.createdAt)??0))[0]}function Nd(e,t){let n=Md(e.requests);if(n===void 0||n.status!=="published"||e.record===null||e.record.withheld)return false;let r=Math.floor(t/864e5)*864e5;return healthPlanRecordsWeightKg(e.record)===null&&healthPlanNextShotsAt(e.record,r)===null}function healthPlanBlanksFacts(e,t){let n=Md(e.requests);if(n===void 0)return null;let r=n.clinicName?.trim()?n.clinicName.trim():null;if(Ld.has(n.status))return{phase:"wait",requestId:String(n.id),clinicName:r,weightKg:null,nextShotsAt:null};if(n.status!=="published"||e.record===null||e.record.isEmpty||e.record.withheld)return null;let i=Math.floor(t/864e5)*864e5,o=healthPlanRecordsWeightKg(e.record),l=healthPlanNextShotsAt(e.record,i);return o===null&&l===null?null:{phase:"filled",requestId:String(n.id),clinicName:r,weightKg:o,nextShotsAt:l}}var Ud=3600*1e3;function qd(t,n=true){let[r,i]=e.useState(()=>Date.now()),o=e.useRef(true);return e.useEffect(()=>{if(o.current){o.current=false;return}n&&i(Date.now())},[t,n]),e.useEffect(()=>{if(!n)return;let e=setInterval(()=>i(Date.now()),Ud),t=()=>{document.visibilityState==="visible"&&i(Date.now())},r=typeof document<"u"&&typeof document.addEventListener=="function"?document:null;return r?.addEventListener("visibilitychange",t),()=>{clearInterval(e),r?.removeEventListener("visibilitychange",t)}},[t,n]),r}function RecordsProbe(t){let{status:n,requests:r,record:o,refresh:l}=i.useEverfurRecords({petRef:t.petRef}),{onRead:a,petRef:petRef}=t,s=qd(),c=e.useMemo(()=>healthPlanBlanksFacts({requests:r,record:o},s),[r,o,s]),d=e.useMemo(()=>Nd({requests:r,record:o},s),[r,o,s]);e.useEffect(()=>{a({missing:n==="empty"||d,blanks:c})},[n,d,c,a]);let u=e.useRef(l);return u.current=l,e.useEffect(()=>onHealthPlanRecordsLanded((e,t)=>{e===petRef&&t==="host"&&u.current()}),[petRef]),null}var Gd=/* @__PURE__ */new Set;function Kd(n){let{enabled:r,petRef:petRef,pages:i,returnUrl:o,lifecycle:l,kv:a}=n,s=e.useRef(n);s.current=n,e.useEffect(()=>{if(!r||o===null)return;let e=true,n=false,c=0,d=null,u=async(t,r,o)=>{let l=await i.getCheckout(petRef,t);if(!(!e||o!==c)){if(l.ok&&l.value.status==="paid"){n=false,zd(petRef,a),s.current.onPaid(l.value);return}if(l.ok&&(l.value.status==="failed"||l.value.status==="expired")){n=false,zd(petRef,a),s.current.onFailed();return}if(!l.ok&&!l.error.retryable){n=false,zd(petRef,a),s.current.onError(l.error);return}if(r<=1){n=false,zd(petRef,a),s.current.onTimeout();return}d=setTimeout(()=>{u(t,r-1,o)},hd)}},p=e=>{n||(n=true,u(e,gd,c))},h=Fd(a,petRef),g=t=>{let r=bd(t,o);if(r!==null){if(r.kind==="cancel"){c+=1,n=false,d!==null&&clearTimeout(d),d=null,zd(petRef,a),s.current.onCancel();return}h.then(()=>{if(!e)return;let t=Dd(petRef)??r.sessionId;t!==null&&p(t)})}},f=()=>{h.then(()=>{if(!e)return;let t=Dd(petRef);t!==null&&p(t)})},m=t.Linking.addEventListener("url",e=>g(e.url));t.Linking.getInitialURL().then(t=>{!e||t===null||t===void 0||Gd.has(t)||bd(t,o)!==null&&(Gd.add(t),g(t))}).catch(()=>{}).then(f);let y;if(l)y=l.onForeground(f);else{let e=t.AppState.addEventListener("change",e=>{e==="active"&&f()});y=()=>e.remove()}return()=>{e=false,d!==null&&clearTimeout(d),m.remove(),y()}},[r,petRef,i,o,l,a])}var Xd=24,Yd=16,Jd=.8,Qd=e=>Math.round(e*Yd);function Zd(e,t,n,r,i,o){let l=e-n/2,a=t-r/2,s=Math.round(l),c=Math.round(a);return{position:"absolute",left:s,top:c,width:n,height:r,transform:[{translateX:l-s},{translateY:a-c},{rotate:`${Math.atan2(o,i)*180/Math.PI}deg`},{scale:1/Yd}]}}function eu(e,t,n){for(let r of e.strokes){let e=r.width*t,i=r.points,o=i.length/2,l=r.closed?o:o-1;for(let a=0;a<l;a+=1){let l=(a+1)%o,s=(i[a*2]??0)*t,c=(i[a*2+1]??0)*t,d=(i[l*2]??0)*t-s,u=(i[l*2+1]??0)*t-c,p=Math.hypot(d,u);if(p===0&&!(o===2&&r.cap))continue;let h=p===0?1:d/p,g=p===0?0:u/p,f=r.closed||a>0||r.cap?e/2:0,m=r.closed||l!==o-1||r.cap?e/2:0,y=(p+m-f)/2;n.push({paint:"backgroundColor",style:{...Zd(s+h*y,c+g*y,Qd(p+f+m),Qd(e),h,g),borderTopLeftRadius:f>0?Qd(e)/2:0,borderBottomLeftRadius:f>0?Qd(e)/2:0,borderTopRightRadius:m>0?Qd(e)/2:0,borderBottomRightRadius:m>0?Qd(e)/2:0,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}}function tu(e,t,n){for(let r of e.boxes){let e=(r.w+r.width)*t,i=(r.h+r.width)*t;n.push({paint:"borderColor",style:{...Zd((r.x-r.width/2)*t+e/2,(r.y-r.width/2)*t+i/2,Qd(e),Qd(i),1,0),borderWidth:Qd(r.width*t),borderRadius:(r.radius+r.width/2)*t*Yd,...r.opacity===void 0?{}:{opacity:r.opacity}}})}}function nu(e,t,n){for(let r of e.triangles){let e=[0,1,2].map(e=>[(r[e*2]??0)*t,(r[e*2+1]??0)*t]),i=0,o=-1;for(let t=0;t<3;t+=1){let n=e[t]??[0,0],r=e[(t+1)%3]??[0,0],l=Math.hypot(r[0]-n[0],r[1]-n[1]);l>o&&(o=l,i=t)}if(o<=0)continue;let l=e[i]??[0,0],a=e[(i+1)%3]??[0,0],s=e[(i+2)%3]??[0,0],c=(a[0]-l[0])/o,d=(a[1]-l[1])/o,u=(s[0]-l[0])*c+(s[1]-l[1])*d,p=(s[0]-l[0])*-d+(s[1]-l[1])*c,h=Math.abs(p),g=p<0,f=g?-h/2:h/2,m=Qd(u),y=Qd(o)-m,b=Qd(h);n.push({paint:g?"borderBottomColor":"borderTopColor",style:{...Zd(l[0]+c*(o/2)-d*f,l[1]+d*(o/2)+c*f,m+y,b,c,d),width:0,height:0,borderLeftWidth:m,borderRightWidth:y,borderLeftColor:"transparent",borderRightColor:"transparent",...g?{borderBottomWidth:b}:{borderTopWidth:b}}})}for(let r of e.seams){let e=(r[0]??0)*t,i=(r[1]??0)*t,o=(r[2]??0)*t-e,l=(r[3]??0)*t-i,a=Math.hypot(o,l),s=Jd*(r[4]??0),c=Jd*(r[5]??0),d=a-s-c;if(a===0||d<=0)continue;let u=s+d/2;n.push({paint:"backgroundColor",style:Zd(e+o/a*u,i+l/a*u,Qd(d),Qd(Jd),o/a,l/a)})}}var ru=/* @__PURE__ */new Map;function iu(e,t){let n=`${e}:${t}`,r=ru.get(n);if(r!==void 0)return r;let i=ss[e],o=[],l=t/Xd;return tu(i,l,o),eu(i,l,o),nu(i,l,o),ru.set(n,o),o}function FocusIcon({name:e,size:r=18,color:i}){let o=ss[e]===void 0?[]:iu(e,r);/* @__PURE__ */
173
+ return n.jsx(t.View,{accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",testID:`health-plan-icon-${e}`,children:/* @__PURE__ */n.jsx(t.View,{style:{width:r,height:r},children:o.map((e,r)=>/* @__PURE__ */n.jsx(t.View,{style:[e.style,{[e.paint]:i}]},r))})})}function ou(e){let t=e.color;if(e.brightness==="dark")return{ink:t.text.primary,ink2:t.text.secondary,ink3:t.text.muted,paper:t.surfaceSubtle,tile:t.badgeBgNeutral,line:t.brandBorder,card:t.surface,teal:t.brandInk,cyan:t.brandSofter,yellow:t.accent,riskDot:t.errorRed,riskBg:t.badgeBgCritical,riskInk:t.text.primary,clearDot:t.success,clearBg:t.badgeBgPositive,clearInk:t.text.primary,star:t.accent,button:t.primary,onButton:t.onPrimary,jump:t.surfaceSubtle,onJump:t.text.primary,jumpSmall:t.accent,tints:{y:t.badgeBgCaution,c:t.brandSofter,g:t.badgeBgPositive,r:t.badgeBgCritical},scrim:"rgba(0,0,0,0.6)"};let n=qa(e);return{ink:n.ink,ink2:n.ink2,ink3:n.ink3,paper:hs(e).paper??n.paper,tile:n.tile,line:n.line,card:n.card,teal:t.brandInk,cyan:t.brandSofter,yellow:n.accent,riskDot:n.riskDot,riskBg:n.riskBg,riskInk:n.riskInk,clearDot:n.clearDot,clearBg:n.clearBg,clearInk:n.clearInk,star:n.watchDot,button:n.primary,onButton:n.onPrimary,jump:n.ink,onJump:n.card,jumpSmall:n.accent,tints:{y:"#FFE7A1",c:"#C8F4F8",g:"#DDEFC4",r:"#FFD8D6"},scrim:"rgba(38,37,35,0.45)"}}function lu(e){let n=ou(e),{space:r}=e,i=(t,n,r="regular",i=1.35)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*i),color:n}),o=t.StyleSheet.create({shrink:{flexShrink:1,minWidth:0},toolLabel:i(14,n.ink,"bold"),mini:{...i(10.5,n.ink3,"mono"),textTransform:"uppercase",letterSpacing:.9},h3:{...i(19,n.ink,"bold",1.2),marginTop:r.sm},bold:face(e,"bold"),noPick:{...i(15,n.ink2,"regular",1.45),marginTop:14},small:i(13,n.ink3,"regular",1.35),smallInk:i(13,n.ink2,"regular",1.35),buttonGhost:{minHeight:48,borderRadius:999,alignItems:"center",justifyContent:"center",paddingHorizontal:r.lg,borderWidth:2,borderColor:n.ink,marginTop:r.sm},buttonGhostText:{...i(15,n.ink,"bold",1.2),textAlign:"center"},disabled:{opacity:.5},fine:{...i(13,n.ink3,"regular",1.4),marginTop:r.sm},scrim:{flex:1,justifyContent:"flex-end",backgroundColor:n.scrim},sheet:{maxHeight:"92%",paddingHorizontal:r.lg,paddingTop:r.sm,paddingBottom:r.xl,borderTopLeftRadius:22,borderTopRightRadius:22,backgroundColor:n.card},sheetGrab:{alignSelf:"center",width:40,height:4,borderRadius:2,backgroundColor:n.line,marginBottom:r.sm},sheetTop:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},close:{width:44,height:44,alignItems:"center",justifyContent:"center"},screen:{paddingHorizontal:r.lg,paddingBottom:r.xl,gap:r.sm},back:{flexDirection:"row",alignItems:"center",gap:r.xs,minHeight:44,alignSelf:"flex-start"}}),l=Ts(e);return{...o,palette:n,X:l,D:Ps(l),ds:ls(e,l.roles)}}var au=e.createContext(null);function HealthPlanRnKitScope(e){/* @__PURE__ */
174
+ return n.jsx(au.Provider,{value:e.kit,children:e.children})}var su={...Zc,...healthPlanPetCopy({name:null,sex:null,trackingTexts:false})},cu=/* @__PURE__ */new WeakMap;function du(e){let t=cu.get(e);return t===void 0&&(t=lu(e),cu.set(e,t)),t}function uu(t,r){let i=To(),o=du(i),l=o.palette.ink,a=i.motion.reducedMotion;return e.useMemo(()=>({S:o,icon:(e,t,i)=>(r?St(r,e):void 0)??/* @__PURE__ */n.jsx(FocusIcon,{name:e,color:t??l,...i===void 0?{}:{size:i}}),copy:t,still:a}),[o,l,t,r,a])}function pu(t={}){let n=e.useContext(au),r=uu(su,void 0),i=n??r,{copy:o,renderIcon:l}=t;return e.useMemo(()=>{if(o===void 0&&l===void 0)return i;let e=o===void 0?i.copy:{...i.copy,...o},t=l===void 0?i.icon:(e,t,n)=>St(l,e)??i.icon(e,t,n);return{...i,copy:e,icon:t}},[i,o,l])}var hu={flexShrink:1},gu={flexGrow:1,flexShrink:1,flexBasis:0,minWidth:0},fu={flexShrink:0},mu={alignSelf:"flex-start"},yu={justifyContent:"center"},bu={flexDirection:"column"};var wu={position:"relative",top:0,right:0},xu=(e,r,i)=>e?/* @__PURE__ */n.jsx(t.Image,{source:{uri:e},style:r,resizeMode:i,accessibilityIgnoresInvertColors:true}):null,ku={width:64,height:64};function vu(e,r,i){let{bx:o,tx:l}=e.S.D;return r===void 0||r===""?null:/* @__PURE__ */n.jsx(t.View,{style:o("tag",i),children:/* @__PURE__ */n.jsx(Text,{tier:"compact",style:l("tag",i),children:r})})}function Su(e,r,i){let{bx:o,tx:l}=e.S.D;/* @__PURE__ */
175
+ return n.jsx(t.View,{style:o(i),accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:l(i),children:String(r)})})}function Tu(e,r,i){let{bx:o,tx:l}=e.S.D;/* @__PURE__ */
176
+ return n.jsxs(t.View,{style:o("secTitle"),children:[Su(e,r,"secN"),
177
+ /* @__PURE__ */n.jsx(Text,{style:[...l("secTitle"),hu],accessibilityRole:"header",children:i})]})}var Cu=false;function ju(){if(globalThis.__DEV__===false||Cu)return;Cu=true;let e=globalThis.console;try{e?.warn?.("[everfur] The Health Plan shop is on with Everfur checkout, but `focus.checkoutReturnUrl` is missing or not an https URL, so the member is never sent to Stripe: checkout keeps the in-app path (your onBuy / onCheckout). Pass the https App Link (Universal Link) your app opens as `checkoutReturnUrl`.")}catch{}}var Iu=e=>e!=null&&/^(dog|canine)$/i.test(e.trim()),Hu=e.createContext(null);function Pu(){return e.useContext(Hu)}function Fu(){let t=e.useContext(Hu);return t===null&&hc(globalThis.__DEV__!==false),t}function Ru(r){let{design:i,item:o,petRef:petRef}=r,l=r.petName?.trim()?r.petName.trim():null,{runtime:a}=$(),[s,c]=e.useState(null),d=e.useCallback(e=>c(e),[]),u=r.petSex??null,p=r.trackingTexts===true,h=e.useMemo(()=>({...Zc,...healthPlanPetCopy({name:l,sex:u,trackingTexts:p}),...i.copy,...r.fromBackend===true?fc:{},...r.copy}),[l,u,p,i.copy,r.copy,r.fromBackend]),g=uu(h,r.renderIcon),f=fd(r.checkoutReturnUrl)?r.checkoutReturnUrl.trim():null,m=dc(),y=e.useRef(null);e.useEffect(()=>{r.shop===true&&r.checkout==="everfur_stripe"&&f===null&&ju()},[r.shop,r.checkout,f]);let b=a.registry.services.kv,w=e.useMemo(()=>Bd(b),[b]),x=r.navigate,k=r.recordsRepository,v=k!==void 0&&r.recordsMissing===void 0&&r.onConnectRecords!==void 0,S=Xc(v?k:void 0,petRef),T=k===void 0&&r.onConnectRecords!==void 0&&r.recordsMissing===void 0&&r.recordsBlanks===void 0,[C,j]=e.useState(null),I=e.useCallback(e=>j({pet:petRef,read:e}),[petRef]),H=T&&C!==null&&C.pet===petRef?C.read:null,P=T?/* @__PURE__ */n.jsx(RecordsProbe,{petRef:petRef,onRead:I},petRef):null,F=r.recordsMissing??(k!==void 0?S===true:H?.missing===true),R=r.recordsBlanks!==void 0?r.recordsBlanks:H?.blanks??null,{onOverlayChange:D,...z}=r,O=Kc({...z,petName:l,blanksFacts:R,...D===void 0?{}:{onOverlayChange:(e,t)=>e==="product"?void 0:D(e,t)}},h,{store:w,returnUrls:()=>f===null?null:{successUrl:yd(f,dd,pd),cancelUrl:yd(f,ud,"1")},openUrl:e=>{x?St(x,e):t.Linking.openURL(e).catch(()=>{})},callHost:St,mintKey:wd},{..._d,checkoutReachable:f!==null}),{shop:B,everfur:_,partnerBuys:L,itemOf:E,inCart:A,weightKnown:W,noVet:V,planItems:M}=O,N=[...O.ownOrders.map(e=>Os(e,M)),...(r.shopOrders??[]).map($s)];Kd({enabled:_,petRef:petRef,pages:O.pages,returnUrl:f,lifecycle:r.lifecycle??null,kv:b,...O.returnHandlers});let U=r.species??null,q=Iu(U),G=U!==null&&U.trim()!==""&&!q,K=!W&&q,X=i.pick,Y=r.renderWait?St(r.renderWait)??null:null,J=Y!==null||i.wait!==void 0,Q=r.checkoutRows??(r.fromBackend?[]:i.checkoutRows??[]),Z=r.trust??(r.fromBackend?[]:X.trust??[]),ee=i.byline!==void 0&&(r.fromBackend!==true||r.vetReviewed===true)?i.byline:void 0,te=ee??null,ne=X.none===true,re=ne&&X.hidden===true,ie=i.extras?.items.some(e=>e.productId!==void 0)===true,oe=e=>V?h.callAVet:F?h.callYourVet:e,le=R!==null&&!J,ae=(i.extras?.items??[]).filter(e=>e.owned!==true),se=e=>e.productId!==void 0&&(B||_||L)?E(e.productId):void 0,ce=ae.some(e=>se(e)!==void 0||r.onExtra!==void 0),de=B&&A(o.productId)!==void 0,ue=r.onJump,pe=ue?()=>{St(ue)}:m?()=>m(y.current):void 0,he=1,ge={};return i.routine&&!J&&(ge.routine=he++),!(J||re)&&!ne&&(ge.pick=he++),!J&&i.signs?ge.signs=he++:!J&&i.checkup&&(ge.checkup=he++),{model:{props:r,hp:O,kit:g,copy:h,petName:l,returnUrl:f,blanksFacts:R,recordsMissing:F,waitNode:Y,waiting:J,blanksShown:le,rows:Q,trust:Z,byline:ee,vet:te,noPick:ne,pickHidden:re,curated:ie,otherSpecies:G,askWeight:K,pickInCart:de,jump:pe,pickRef:y,pageWidth:s,setPageWidth:d,numbers:ge,allOrders:N,extraProduct:se,extraItems:ae,extrasShown:ce,vetSignTitle:oe},recordsProbe:P}}function HealthPlanFocusProvider(e){let{model:t,recordsProbe:r}=Ru(e);/* @__PURE__ */
178
+ return n.jsx(Hu.Provider,{value:t,children:/* @__PURE__ */n.jsxs(HealthPlanRnKitScope,{kit:t.kit,children:[e.children,r]})})}var Du=900,zu=80,$u=.4,Ou=()=>t.Easing.bezier(0,0,.58,1),Bu={flexShrink:1},_u={flexDirection:"row",flexWrap:"wrap",alignItems:"center"},Lu={height:void 0,paddingLeft:3,paddingRight:3};function HealthPlanBlanks(r){let{phase:i,rows:o,flashKey:l}=r,a=To(),s=a.motion.reducedMotion,c=Ts(a),{bx:d,tx:u,tb:p,inner:h}=Ps(c),g=c.roles.accent??"",f=ps(g),m=c.roles.accent4??"",y=o.every(e=>e.value!==null),b=i==="filled"&&y,w=e.useRef([]);for(;w.current.length<o.length;)w.current.push(new t.Animated.Value(1));let x=e.useRef(null);return e.useEffect(()=>{if(l==null||x.current===l||i!=="filled"||(x.current=l,s))return;let e=Ou(),n=o.flatMap((n,r)=>{let i=w.current[r];return n.value===null||i===void 0?[]:(i.setValue(0),[t.Animated.sequence([t.Animated.delay(r*zu),t.Animated.timing(i,{toValue:1,duration:Du,easing:e,useNativeDriver:false})])])});for(let e of n)e.start();return()=>{for(let e of n)e.stop()}},[l,i,s]),/* @__PURE__ */n.jsxs(t.View,{style:d("blanksWrap","blanksCard"),accessibilityLabel:r.label,testID:"health-plan-blanks",children:[
178
179
  /* @__PURE__ */n.jsxs(t.View,{style:d("blanksHead"),children:[
179
- /* @__PURE__ */n.jsx(Text,{style:[...u("blanksHead"),$u],tier:"compact",children:r.kicker}),r.pill===""?null:/* @__PURE__ */n.jsx(t.View,{style:d("blanksPill",b&&"blanksPillFilled"),children:/* @__PURE__ */n.jsx(Text,{style:u("blanksPill",b&&"blanksPillFilled"),tier:"compact",testID:"health-plan-blanks-pill",children:r.pill})})]}),
180
- /* @__PURE__ */n.jsx(t.View,{style:d("blanksList"),children:o.map((e,o)=>{let l=i!=="empty"?e.value:null,a=w.current[o],s=l!==null&&a!==void 0?a.interpolate({inputRange:[0,Du,1],outputRange:[g,g,b?f:m]}):null,y=e.width==="s"?"blankS":e.width==="l"?"blankL":null;/* @__PURE__ */
180
+ /* @__PURE__ */n.jsx(Text,{style:[...u("blanksHead"),Bu],tier:"compact",children:r.kicker}),r.pill===""?null:/* @__PURE__ */n.jsx(t.View,{style:d("blanksPill",b&&"blanksPillFilled"),children:/* @__PURE__ */n.jsx(Text,{style:u("blanksPill",b&&"blanksPillFilled"),tier:"compact",testID:"health-plan-blanks-pill",children:r.pill})})]}),
181
+ /* @__PURE__ */n.jsx(t.View,{style:d("blanksList"),children:o.map((e,o)=>{let l=i!=="empty"?e.value:null,a=w.current[o],s=l!==null&&a!==void 0?a.interpolate({inputRange:[0,$u,1],outputRange:[g,g,b?f:m]}):null,y=e.width==="s"?"blankS":e.width==="l"?"blankL":null;/* @__PURE__ */
181
182
  return n.jsxs(t.View,{style:d("blanksRow"),testID:`health-plan-blank-${e.key}`,children:[
182
- /* @__PURE__ */n.jsx(t.View,{style:[...d("blanksNum"),Ss(c.blanksRow,0)],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{style:u("blanksNum"),children:String(o+1)})}),
183
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(c.blanksRow,1),children:[
184
- /* @__PURE__ */n.jsxs(t.View,{style:Ou,children:[e.lead===""?null:/* @__PURE__ */n.jsx(Text,{style:u("blanksText"),children:e.lead}),
185
- /* @__PURE__ */n.jsxs(t.Animated.View,{style:[...d("blank",y,b&&"blankFilled"),!b&&l!==null?Bu:null,s===null?null:{backgroundColor:s}],...l===null?{accessible:true,accessibilityLabel:r.blankLabel}:{},testID:l===null?`health-plan-blank-${e.key}-empty`:`health-plan-blank-${e.key}-value`,children:[h("blank",b&&"blankFilled"),l===null?null:/* @__PURE__ */n.jsx(Text,{style:u("blank"),children:l})]}),e.trail===""?null:/* @__PURE__ */n.jsx(Text,{style:u("blanksText"),children:e.trail})]}),e.source===""?null:/* @__PURE__ */n.jsx(Text,{style:p("blanksSource"),children:e.source})]})]},e.key)})})]})}function BlockScope({children:t}){let n=rs(Ya);return e.createElement(ThemeProvider,{theme:n},t)}va({paw:$a});var _u={flexWrap:"wrap"},Lu={alignItems:"flex-end",flexShrink:0,marginLeft:"auto"},Eu={flexDirection:"row",alignItems:"center"},Au=320;function Wu(e,t,n,r){let i=e.S.X,o=e=>Number(i[e].box.paddingLeft??0)+Number(i[e].box.paddingRight??0);return e.S.D.swipe(n,r.reduce((e,t)=>e-o(t),t))}function HealthPlanToolbar(r){let i=du(r),{S:o,copy:l,icon:a}=i,s=o.palette,c=o.X,{bx:d,tx:u,tb:p,ring:h,ink:g,side:f}=o.D,m=r.cartCount,y=e.useRef(new t.Animated.Value(1)).current,b=e.useRef(m);e.useEffect(()=>{let e=m>b.current;if(b.current=m,!e||i.still)return;let n=t.Easing.bezier(.23,1,.32,1),r=t.Animated.sequence([t.Animated.timing(y,{toValue:1.25,duration:Au*.4,easing:n,useNativeDriver:false}),t.Animated.timing(y,{toValue:1,duration:Au*.6,easing:n,useNativeDriver:false})]);return r.start(),()=>r.stop()},[m,i.still,y]);let w=c.cartCount.rings[0]??c.cartCount.box,x={position:"absolute",top:w.top,right:w.right};/* @__PURE__ */
186
- return n.jsxs(t.View,{style:d("tools"),children:[r.eyebrow?/* @__PURE__ */n.jsx(Text,{style:[...p("toolsEyebrow"),uu],children:r.eyebrow}):/* @__PURE__ */n.jsx(t.View,{}),
183
+ /* @__PURE__ */n.jsx(t.View,{style:[...d("blanksNum"),Cs(c.blanksRow,0)],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{style:u("blanksNum"),children:String(o+1)})}),
184
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(c.blanksRow,1),children:[
185
+ /* @__PURE__ */n.jsxs(t.View,{style:_u,children:[e.lead===""?null:/* @__PURE__ */n.jsx(Text,{style:u("blanksText"),children:e.lead}),
186
+ /* @__PURE__ */n.jsxs(t.Animated.View,{style:[...d("blank",y,b&&"blankFilled"),!b&&l!==null?Lu:null,s===null?null:{backgroundColor:s}],...l===null?{accessible:true,accessibilityLabel:r.blankLabel}:{},testID:l===null?`health-plan-blank-${e.key}-empty`:`health-plan-blank-${e.key}-value`,children:[h("blank",b&&"blankFilled"),l===null?null:/* @__PURE__ */n.jsx(Text,{style:u("blank"),children:l})]}),e.trail===""?null:/* @__PURE__ */n.jsx(Text,{style:u("blanksText"),children:e.trail})]}),e.source===""?null:/* @__PURE__ */n.jsx(Text,{style:p("blanksSource"),children:e.source})]})]},e.key)})})]})}function BlockScope({children:t}){let n=os(Qa);return e.createElement(ThemeProvider,{theme:n},t)}Ta({paw:Ba});var Eu={flexWrap:"wrap"},Au={alignItems:"flex-end",flexShrink:0,marginLeft:"auto"},Wu={flexDirection:"row",alignItems:"center"},Vu=320;function Mu(e,t,n,r){let i=e.S.X,o=e=>Number(i[e].box.paddingLeft??0)+Number(i[e].box.paddingRight??0);return e.S.D.swipe(n,r.reduce((e,t)=>e-o(t),t))}function HealthPlanToolbar(r){let i=pu(r),{S:o,copy:l,icon:a}=i,s=o.palette,c=o.X,{bx:d,tx:u,tb:p,ring:h,ink:g,side:f}=o.D,m=r.cartCount,y=e.useRef(new t.Animated.Value(1)).current,b=e.useRef(m);e.useEffect(()=>{let e=m>b.current;if(b.current=m,!e||i.still)return;let n=t.Easing.bezier(.23,1,.32,1),r=t.Animated.sequence([t.Animated.timing(y,{toValue:1.25,duration:Vu*.4,easing:n,useNativeDriver:false}),t.Animated.timing(y,{toValue:1,duration:Vu*.6,easing:n,useNativeDriver:false})]);return r.start(),()=>r.stop()},[m,i.still,y]);let w=c.cartCount.rings[0]??c.cartCount.box,x={position:"absolute",top:w.top,right:w.right};/* @__PURE__ */
187
+ return n.jsxs(t.View,{style:d("tools"),children:[r.eyebrow?/* @__PURE__ */n.jsx(Text,{style:[...p("toolsEyebrow"),hu],children:r.eyebrow}):/* @__PURE__ */n.jsx(t.View,{}),
187
188
  /* @__PURE__ */n.jsxs(t.View,{style:d("toolsEnd"),children:[
188
189
  /* @__PURE__ */n.jsxs(t.Pressable,{onPress:r.onOpenOrders,accessibilityRole:"button",accessibilityLabel:l.orders,style:d("orders"),testID:"health-plan-orders-button",children:[a("box",g("orders",s.ink),f("ordersIcon",21)),
189
190
  /* @__PURE__ */n.jsx(Text,{tier:"control",style:u("orders"),children:l.orders})]}),
190
191
  /* @__PURE__ */n.jsxs(t.Pressable,{onPress:r.onOpenCart,accessibilityRole:"button",accessibilityLabel:l.cartLabel(m),style:d("cart"),testID:"health-plan-cart-button",children:[a("cart",g("cart",s.ink),f("cartIcon",26)),m===0?null:
191
192
  /* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:[x,{transform:[{scale:y}]}],children:h("cartCount",
192
- /* @__PURE__ */n.jsx(t.View,{style:[...d("cartCount"),c.cartCount.rings.length===0?yu:null],children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:u("cartCount"),children:String(m)})}),yu)})]})]})]})}function HealthPlanHeader(e){let r=du(e),{bx:i,tb:o,im:l,ring:a}=r.S.D;/* @__PURE__ */
193
+ /* @__PURE__ */n.jsx(t.View,{style:[...d("cartCount"),c.cartCount.rings.length===0?wu:null],children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:u("cartCount"),children:String(m)})}),wu)})]})]})]})}function HealthPlanHeader(e){let r=pu(e),{bx:i,tb:o,im:l,ring:a}=r.S.D;/* @__PURE__ */
193
194
  return n.jsxs(t.View,{style:i("head"),children:[
194
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(r.S.X.head,0),children:[e.eyebrow?/* @__PURE__ */n.jsx(Text,{style:o("eyebrow"),children:e.eyebrow}):null,
195
- /* @__PURE__ */n.jsx(Text,{style:o("title"),accessibilityRole:"header",testID:"health-plan-focus-title",children:e.title}),e.subtitle?/* @__PURE__ */n.jsx(Text,{style:o("subtitle"),children:e.subtitle}):null]}),e.imageUrl?a("headImage",bu(e.imageUrl,l("headImage")),hu):null]})}function HealthPlanByline(e){let r=du(e),{bx:i,tb:o,im:l,ink:a,side:s}=r.S.D,c=e.vet,d=s("byIconSvg",20);/* @__PURE__ */
196
- return n.jsxs(t.View,{style:i("by"),testID:"health-plan-byline",children:[c.imageUrl?bu(c.imageUrl,l("byImage")):/* @__PURE__ */n.jsx(t.View,{style:[...i("byIcon"),hu],testID:"health-plan-byline-icon",children:/* @__PURE__ */n.jsx(Icon,{name:"paw",size:d,color:a("byIcon",r.S.palette.ink)})}),
197
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(r.S.X.by,1),children:[
198
- /* @__PURE__ */n.jsx(Text,{style:o("byName"),children:r.copy.builtWith(c.name)}),c.role?/* @__PURE__ */n.jsx(Text,{style:o("byRole"),children:c.role}):null]}),r.icon("shield",a("byOk",r.S.palette.teal),s("byOk",22))]})}function HealthPlanAskRow(e){let t=du(e);return Js(t,e.icon,e.title,e.body,e.onPress,e.testID,e.inSection===true)}function HealthPlanWaitCard(e){let t=du(e);return Qs(t,e.wait,e.onAction,e.vetName??null)}function HealthPlanVetQuote(e){let r=du(e),{bx:i,tx:o,tb:l,im:a}=r.S.D,{quote:s,vet:c}=e;if(c.imageUrl)/* @__PURE__ */
199
- return n.jsxs(t.View,{style:i("says"),testID:"health-plan-quote",children:[bu(c.imageUrl,a("saysImage")),
200
- /* @__PURE__ */n.jsxs(Text,{style:[...l("saysText"),Ss(r.S.X.says,1)],children:[c.shortName?/* @__PURE__ */n.jsx(Text,{style:l("saysBy"),children:c.shortName}):null,c.shortName?" ":null,s.text,s.tag?" ":null,xu(r,s.tag)]})]});let d=c.shortName??s.kicker??null;/* @__PURE__ */
201
- return n.jsxs(t.View,{style:[...i("says"),mu],testID:"health-plan-quote",children:[d||s.tag?/* @__PURE__ */n.jsxs(t.View,{style:i("saysKicker"),children:[
202
- /* @__PURE__ */n.jsx(Text,{tier:"compact",style:[...o("saysKicker"),uu],children:d}),xu(r,s.tag)]}):null,
203
- /* @__PURE__ */n.jsx(Text,{style:l("saysQuote"),children:`“${s.text}”`})]})}function HealthPlanJumpStrip(e){let r=du(e),{bx:i,tx:o,im:l}=r.S.D,a=e.onJump;/* @__PURE__ */
204
- return n.jsxs(t.Pressable,{onPress:a,disabled:a===void 0,accessibilityRole:a?"button":"text",style:Ps(i("jump",!e.imageUrl&&"jumpNoImage"),Hs.jump,a===void 0),testID:"health-plan-jump",children:[bu(e.imageUrl,l("jumpImage")),
205
- /* @__PURE__ */n.jsxs(t.View,{style:pu,children:[e.kicker===null?null:/* @__PURE__ */n.jsx(Text,{style:o("jumpSmall"),children:e.kicker}),
206
- /* @__PURE__ */n.jsx(Text,{style:o("jumpStrong"),children:e.title})]}),a?/* @__PURE__ */n.jsx(Text,{style:o("jumpGo"),children:e.go}):null]})}function HealthPlanFocusCard(e){let r=du(e),{bx:i,tx:o,tb:l,ink:a,side:s}=r.S.D,c=r.S.X,d=e.focus,u=e.vet,p=e.jump,h=d.risk?.kind,g=h==="risk"||h==="watch"||h==="clear"?h:void 0,f=d.odds,m=f?/* @__PURE__ */n.jsxs(t.View,{style:[...i("odds"),_u],testID:"health-plan-score",children:[
207
- /* @__PURE__ */n.jsxs(t.View,{style:[uu,{maxWidth:c.oddsKicker.box.maxWidth}],children:[
195
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(r.S.X.head,0),children:[e.eyebrow?/* @__PURE__ */n.jsx(Text,{style:o("eyebrow"),children:e.eyebrow}):null,
196
+ /* @__PURE__ */n.jsx(Text,{style:o("title"),accessibilityRole:"header",testID:"health-plan-focus-title",children:e.title}),e.subtitle?/* @__PURE__ */n.jsx(Text,{style:o("subtitle"),children:e.subtitle}):null]}),e.imageUrl?a("headImage",xu(e.imageUrl,l("headImage")),fu):null]})}function HealthPlanByline(e){let r=pu(e),{bx:i,tb:o,im:l,ink:a,side:s}=r.S.D,c=e.vet,d=s("byIconSvg",20);/* @__PURE__ */
197
+ return n.jsxs(t.View,{style:i("by"),testID:"health-plan-byline",children:[c.imageUrl?xu(c.imageUrl,l("byImage")):/* @__PURE__ */n.jsx(t.View,{style:[...i("byIcon"),fu],testID:"health-plan-byline-icon",children:/* @__PURE__ */n.jsx(Icon,{name:"paw",size:d,color:a("byIcon",r.S.palette.ink)})}),
198
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(r.S.X.by,1),children:[
199
+ /* @__PURE__ */n.jsx(Text,{style:o("byName"),children:r.copy.builtWith(c.name)}),c.role?/* @__PURE__ */n.jsx(Text,{style:o("byRole"),children:c.role}):null]}),r.icon("shield",a("byOk",r.S.palette.teal),s("byOk",22))]})}function HealthPlanAskRow(e){let t=pu(e);return Zs(t,e.icon,e.title,e.body,e.onPress,e.testID,e.inSection===true)}function HealthPlanWaitCard(e){let t=pu(e);return ec(t,e.wait,e.onAction,e.vetName??null)}function HealthPlanVetQuote(e){let r=pu(e),{bx:i,tx:o,tb:l,im:a}=r.S.D,{quote:s,vet:c}=e;if(c.imageUrl)/* @__PURE__ */
200
+ return n.jsxs(t.View,{style:i("says"),testID:"health-plan-quote",children:[xu(c.imageUrl,a("saysImage")),
201
+ /* @__PURE__ */n.jsxs(Text,{style:[...l("saysText"),Cs(r.S.X.says,1)],children:[c.shortName?/* @__PURE__ */n.jsx(Text,{style:l("saysBy"),children:c.shortName}):null,c.shortName?" ":null,s.text,s.tag?" ":null,vu(r,s.tag)]})]});let d=c.shortName??s.kicker??null;/* @__PURE__ */
202
+ return n.jsxs(t.View,{style:[...i("says"),bu],testID:"health-plan-quote",children:[d||s.tag?/* @__PURE__ */n.jsxs(t.View,{style:i("saysKicker"),children:[
203
+ /* @__PURE__ */n.jsx(Text,{tier:"compact",style:[...o("saysKicker"),hu],children:d}),vu(r,s.tag)]}):null,
204
+ /* @__PURE__ */n.jsx(Text,{style:l("saysQuote"),children:`“${s.text}”`})]})}function HealthPlanJumpStrip(e){let r=pu(e),{bx:i,tx:o,im:l}=r.S.D,a=e.onJump;/* @__PURE__ */
205
+ return n.jsxs(t.Pressable,{onPress:a,disabled:a===void 0,accessibilityRole:a?"button":"text",style:Rs(i("jump",!e.imageUrl&&"jumpNoImage"),Fs.jump,a===void 0),testID:"health-plan-jump",children:[xu(e.imageUrl,l("jumpImage")),
206
+ /* @__PURE__ */n.jsxs(t.View,{style:gu,children:[e.kicker===null?null:/* @__PURE__ */n.jsx(Text,{style:o("jumpSmall"),children:e.kicker}),
207
+ /* @__PURE__ */n.jsx(Text,{style:o("jumpStrong"),children:e.title})]}),a?/* @__PURE__ */n.jsx(Text,{style:o("jumpGo"),children:e.go}):null]})}function HealthPlanFocusCard(e){let r=pu(e),{bx:i,tx:o,tb:l,ink:a,side:s}=r.S.D,c=r.S.X,d=e.focus,u=e.vet,p=e.jump,h=d.risk?.kind,g=h==="risk"||h==="watch"||h==="clear"?h:void 0,f=d.odds,m=f?/* @__PURE__ */n.jsxs(t.View,{style:[...i("odds"),Eu],testID:"health-plan-score",children:[
208
+ /* @__PURE__ */n.jsxs(t.View,{style:[hu,{maxWidth:c.oddsKicker.box.maxWidth}],children:[
208
209
  /* @__PURE__ */n.jsx(Text,{style:o("oddsKicker"),children:f.label}),f.tag?/* @__PURE__ */n.jsx(t.View,{style:i("oddsTag"),testID:"health-plan-tag",children:/* @__PURE__ */n.jsx(Text,{tier:"compact",style:o("oddsTag"),children:f.tag})}):null]}),
209
- /* @__PURE__ */n.jsxs(t.View,{style:Lu,children:[
210
- /* @__PURE__ */n.jsxs(t.View,{style:[...i("oddsNumbers"),Eu],children:[
210
+ /* @__PURE__ */n.jsxs(t.View,{style:Au,children:[
211
+ /* @__PURE__ */n.jsxs(t.View,{style:[...i("oddsNumbers"),Wu],children:[
211
212
  /* @__PURE__ */n.jsx(Text,{style:o("oddsFrom"),children:f.from}),r.icon("arrow",a("oddsIcon",r.S.palette.ink),s("oddsIcon",16)),
212
213
  /* @__PURE__ */n.jsx(Text,{style:o("oddsTo"),children:f.to})]}),f.toLabel?/* @__PURE__ */n.jsx(Text,{style:l("oddsLabel"),children:f.toLabel}):null]})]}):null,y=d.quote&&u!==null?/* @__PURE__ */n.jsx(HealthPlanVetQuote,{quote:d.quote,vet:u,copy:e.copy,renderIcon:e.renderIcon}):null,b={backgroundColor:c.need.box.backgroundColor,borderRadius:c.need.box.borderRadius};/* @__PURE__ */
213
- return n.jsx(t.View,{testID:"health-plan-focus-card",style:{marginTop:c.need.box.marginTop},children:/* @__PURE__ */n.jsx(BlockScope,{children:/* @__PURE__ */n.jsx(PlanNeedCard,{variant:"plan",testID:"health-plan",kicker:d.kicker,sources:d.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:d.title,signals:d.risk?[{key:"risk",lead:d.risk.lead,text:d.risk.body??"",tone:g,dot:g===void 0?"space":true}]:[],beforeJump:m||y?/* @__PURE__ */n.jsxs(n.Fragment,{children:[m,y]}):void 0,jump:p?{kicker:p.kicker??"",title:p.title,go:p.onJump?p.go:"",image:p.imageUrl??null,onPress:p.onJump}:void 0,style:b})})})}function HealthPlanTips(e){let r=du(e),i=Fo(),{S:o,icon:l}=r,{bx:a,tx:s,tb:c,scroll:d}=o.D,u=e.routine,p=Wu(r,e.pageWidth??i,"tip",["root","steps"]),h=t=>t.fromVet?e.vetShortName?r.copy.fromVet(e.vetShortName):void 0:t.source??void 0;/* @__PURE__ */
214
+ return n.jsx(t.View,{testID:"health-plan-focus-card",style:{marginTop:c.need.box.marginTop},children:/* @__PURE__ */n.jsx(BlockScope,{children:/* @__PURE__ */n.jsx(PlanNeedCard,{variant:"plan",testID:"health-plan",kicker:d.kicker,sources:d.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:d.title,signals:d.risk?[{key:"risk",lead:d.risk.lead,text:d.risk.body??"",tone:g,dot:g===void 0?"space":true}]:[],beforeJump:m||y?/* @__PURE__ */n.jsxs(n.Fragment,{children:[m,y]}):void 0,jump:p?{kicker:p.kicker??"",title:p.title,go:p.onJump?p.go:"",image:p.imageUrl??null,onPress:p.onJump}:void 0,style:b})})})}function HealthPlanTips(e){let r=pu(e),i=Do(),{S:o,icon:l}=r,{bx:a,tx:s,tb:c,scroll:d}=o.D,u=e.routine,p=Mu(r,e.pageWidth??i,"tip",["root","steps"]),h=t=>t.fromVet?e.vetShortName?r.copy.fromVet(e.vetShortName):void 0:t.source??void 0;/* @__PURE__ */
214
215
  return n.jsxs(t.View,{style:a("steps"),testID:"health-plan-routine",children:[
215
216
  /* @__PURE__ */n.jsxs(t.View,{style:a("stepsHead"),children:[
216
- /* @__PURE__ */n.jsxs(t.View,{style:[...a("stepsTitle"),uu],children:[ku(r,e.number,"n"),
217
- /* @__PURE__ */n.jsx(Text,{style:[...s("stepsTitle"),uu],accessibilityRole:"header",children:u.title})]}),u.label?/* @__PURE__ */n.jsx(Text,{style:c("stepsLabel"),children:u.label}):null]}),e.variant==="carousel"?
217
+ /* @__PURE__ */n.jsxs(t.View,{style:[...a("stepsTitle"),hu],children:[Su(r,e.number,"n"),
218
+ /* @__PURE__ */n.jsx(Text,{style:[...s("stepsTitle"),hu],accessibilityRole:"header",children:u.title})]}),u.label?/* @__PURE__ */n.jsx(Text,{style:c("stepsLabel"),children:u.label}):null]}),e.variant==="carousel"?
218
219
  /* @__PURE__ */n.jsx(BlockScope,{children:/* @__PURE__ */n.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,style:d("tips").place,contentContainerStyle:d("tips").content,children:u.steps.map((e,t)=>{let r=e.icon;/* @__PURE__ */
219
220
  return n.jsx(TipCard,{variant:"plan",number:String(t+1),title:e.title,text:e.body||void 0,foot:h(e),tone:e.tone??"y",icon:({size:e,color:t})=>r?l(r,t,e):null,style:{width:p,flexBasis:"auto"}},e.title)})})}):
220
221
  /* @__PURE__ */n.jsx(t.View,{style:a("tipList"),testID:"health-plan-tip-list",children:u.steps.map((e,r)=>{let i=h(e);/* @__PURE__ */
221
222
  return n.jsxs(t.View,{style:a("tipRow"),testID:`health-plan-tip-${r}`,children:[
222
- /* @__PURE__ */n.jsx(t.View,{style:[...a("tipRowN"),Ss(o.X.tipRow,0)],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:s("tipRowN"),children:String(r+1)})}),
223
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(o.X.tipRow,1),children:[
224
- /* @__PURE__ */n.jsx(Text,{style:c("tipRowStrong"),children:e.title}),e.body?/* @__PURE__ */n.jsx(Text,{style:c("tipRowSmall"),children:e.body}):null,i?/* @__PURE__ */n.jsx(Text,{style:c("tipRowEm"),children:i}):null]})]},e.title)})})]})}function Vu(e,t){return Wu(e,t,"review",["root","sec","pick"])}function HealthPlanNoPick(e){let t=du(e);return e.text===""?null:/* @__PURE__ */n.jsx(Text,{style:t.S.noPick,testID:"health-plan-no-pick",children:e.text})}function HealthPlanFine(e){let t=du(e);/* @__PURE__ */
225
- return n.jsx(Text,{style:t.S.D.tb("pageFine"),children:e.text})}function HealthPlanToast(e){let r=du(e),i=e.message,o=r.S.X.toast.box,l={position:o.position,top:o.top,left:o.left,right:o.right,zIndex:o.zIndex};/* @__PURE__ */
226
- return n.jsx(PlanLinger,{motions:[Vo],draw:i===null?null:([e])=>/* @__PURE__ */n.jsx(t.Animated.View,{style:[l,{opacity:e},r.still||e===void 0?null:{transform:[{translateY:e.interpolate({inputRange:[0,1],outputRange:[-8,0]})}]}],accessibilityLiveRegion:"polite",accessibilityRole:"alert",testID:"health-plan-toast",children:/* @__PURE__ */n.jsx(PlanDs,{theme:r.S.ds,children:/* @__PURE__ */n.jsx(Toast,{variant:"card",message:i})})})})}var Mu={flexDirection:"row"},Nu={alignItems:"center"},Uu={flexShrink:0},qu={paddingHorizontal:6};function HealthPlanProductPick(e){let r=du(e),{S:i,icon:o}=r,l=i.palette,a=i.X,{bx:s,tx:c,tb:d,ink:u,side:p}=i.D,{item:h,pick:g}=e,f=e.onMore;/* @__PURE__ */
227
- return n.jsxs(t.View,{ref:e.viewRef,style:s("sec"),testID:"health-plan-pick",children:[vu(r,e.number,g.title),
223
+ /* @__PURE__ */n.jsx(t.View,{style:[...a("tipRowN"),Cs(o.X.tipRow,0)],accessibilityElementsHidden:true,importantForAccessibility:"no-hide-descendants",children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:s("tipRowN"),children:String(r+1)})}),
224
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(o.X.tipRow,1),children:[
225
+ /* @__PURE__ */n.jsx(Text,{style:c("tipRowStrong"),children:e.title}),e.body?/* @__PURE__ */n.jsx(Text,{style:c("tipRowSmall"),children:e.body}):null,i?/* @__PURE__ */n.jsx(Text,{style:c("tipRowEm"),children:i}):null]})]},e.title)})})]})}function Nu(e,t){return Mu(e,t,"review",["root","sec","pick"])}function HealthPlanNoPick(e){let t=pu(e);return e.text===""?null:/* @__PURE__ */n.jsx(Text,{style:t.S.noPick,testID:"health-plan-no-pick",children:e.text})}function HealthPlanFine(e){let t=pu(e);/* @__PURE__ */
226
+ return n.jsx(Text,{style:t.S.D.tb("pageFine"),children:e.text})}function HealthPlanToast(e){let r=pu(e),i=e.message,o=r.S.X.toast.box,l={position:o.position,top:o.top,left:o.left,right:o.right,zIndex:o.zIndex};/* @__PURE__ */
227
+ return n.jsx(PlanLinger,{motions:[No],draw:i===null?null:([e])=>/* @__PURE__ */n.jsx(t.Animated.View,{style:[l,{opacity:e},r.still||e===void 0?null:{transform:[{translateY:e.interpolate({inputRange:[0,1],outputRange:[-8,0]})}]}],accessibilityLiveRegion:"polite",accessibilityRole:"alert",testID:"health-plan-toast",children:/* @__PURE__ */n.jsx(PlanDs,{theme:r.S.ds,children:/* @__PURE__ */n.jsx(Toast,{variant:"card",message:i})})})})}var Uu={flexDirection:"row"},qu={alignItems:"center"},Gu={flexShrink:0},Ku={paddingHorizontal:6};function HealthPlanProductPick(e){let r=pu(e),{S:i,icon:o}=r,l=i.palette,a=i.X,{bx:s,tx:c,tb:d,ink:u,side:p}=i.D,{item:h,pick:g}=e,f=e.onMore;/* @__PURE__ */
228
+ return n.jsxs(t.View,{ref:e.viewRef,style:s("sec"),testID:"health-plan-pick",children:[Tu(r,e.number,g.title),
228
229
  /* @__PURE__ */n.jsxs(t.View,{style:s("pick"),children:[
229
230
  /* @__PURE__ */n.jsxs(t.View,{style:s("pickTop"),children:[
230
- /* @__PURE__ */n.jsx(t.View,{style:[...s("pickImage"),fu,Nu],children:bu(h.imageUrl,wu,"contain")}),
231
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(a.pickTop,1),children:[
231
+ /* @__PURE__ */n.jsx(t.View,{style:[...s("pickImage"),yu,qu],children:xu(h.imageUrl,ku,"contain")}),
232
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(a.pickTop,1),children:[
232
233
  /* @__PURE__ */n.jsx(Text,{style:d("pickTitle"),testID:"health-plan-pick-title",children:h.title}),g.rating?/* @__PURE__ */n.jsxs(t.View,{style:s("stars"),accessibilityLabel:[g.rating.value,g.rating.label].filter(Boolean).join(" "),children:[o("star",u("starsIcon",l.star),p("starsIcon",14)),
233
- /* @__PURE__ */n.jsx(Text,{style:c("stars"),children:g.rating.value}),g.rating.label?/* @__PURE__ */n.jsx(Text,{style:c("starsLabel"),children:g.rating.label}):null]}):null,g.line??h.description?/* @__PURE__ */n.jsx(Text,{style:d("pickLine"),children:g.line??h.description}):null]})]}),e.children,g.more&&f?/* @__PURE__ */n.jsx(t.View,{style:s("more"),children:/* @__PURE__ */n.jsx(t.Pressable,{onPress:f,accessibilityRole:"link",accessibilityLabel:g.more,style:[...s("moreButton"),fu],children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:c("moreButton"),children:g.more})})}):null,g.fine?/* @__PURE__ */n.jsx(Text,{style:d("fine"),children:g.fine}):null]})]})}function HealthPlanReviews(r){let i=du(r),o=Fo(),{S:l,icon:a}=i,{bx:s,tb:c,ink:d,side:u,scroll:p}=l.D,h=r.reviews;if(h.items.length===0)return null;let g=r.variant==="carousel",f=Vu(i,r.pageWidth??o),m=h.items.map(r=>{let i=Math.max(1,Math.min(5,Math.round(r.stars)));/* @__PURE__ */
234
+ /* @__PURE__ */n.jsx(Text,{style:c("stars"),children:g.rating.value}),g.rating.label?/* @__PURE__ */n.jsx(Text,{style:c("starsLabel"),children:g.rating.label}):null]}):null,g.line??h.description?/* @__PURE__ */n.jsx(Text,{style:d("pickLine"),children:g.line??h.description}):null]})]}),e.children,g.more&&f?/* @__PURE__ */n.jsx(t.View,{style:s("more"),children:/* @__PURE__ */n.jsx(t.Pressable,{onPress:f,accessibilityRole:"link",accessibilityLabel:g.more,style:[...s("moreButton"),yu],children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:c("moreButton"),children:g.more})})}):null,g.fine?/* @__PURE__ */n.jsx(Text,{style:d("fine"),children:g.fine}):null]})]})}function HealthPlanReviews(r){let i=pu(r),o=Do(),{S:l,icon:a}=i,{bx:s,tb:c,ink:d,side:u,scroll:p}=l.D,h=r.reviews;if(h.items.length===0)return null;let g=r.variant==="carousel",f=Nu(i,r.pageWidth??o),m=h.items.map(r=>{let i=Math.max(1,Math.min(5,Math.round(r.stars)));/* @__PURE__ */
234
235
  return n.jsxs(t.View,{style:g?[...s("review"),{width:f,flexBasis:"auto"}]:s("reviewCard"),children:[
235
236
  /* @__PURE__ */n.jsx(t.View,{style:s("reviewStars"),accessibilityLabel:`${i} out of 5 stars`,children:Array.from({length:i},(t,r)=>/* @__PURE__ */n.jsx(e.Fragment,{children:a("star",d("reviewStars",l.palette.star),u("reviewStar",13))},r))}),
236
237
  /* @__PURE__ */n.jsx(Text,{style:c("reviewText"),children:`“${r.text}”`}),
237
- /* @__PURE__ */n.jsx(Text,{style:c("reviewBy"),children:r.by})]},`${r.by}${r.text}`)});return g?/* @__PURE__ */n.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,style:p("reviews").place,contentContainerStyle:p("reviews").content,accessibilityLabel:h.label,testID:"health-plan-reviews",children:m}):/* @__PURE__ */n.jsx(t.View,{style:s("reviewsStack"),accessibilityLabel:h.label,testID:"health-plan-reviews",children:m})}function HealthPlanWhyItFits(e){let r=du(e),{S:i,copy:o}=r,l=i.X,{bx:a,tx:s,tb:c,mod:d,inner:u}=i.D,p=e.why;return p.rows.length===0?null:/* @__PURE__ */n.jsxs(t.View,{style:a("why"),testID:"health-plan-why",children:[u("why"),
238
+ /* @__PURE__ */n.jsx(Text,{style:c("reviewBy"),children:r.by})]},`${r.by}${r.text}`)});return g?/* @__PURE__ */n.jsx(t.ScrollView,{horizontal:true,showsHorizontalScrollIndicator:false,style:p("reviews").place,contentContainerStyle:p("reviews").content,accessibilityLabel:h.label,testID:"health-plan-reviews",children:m}):/* @__PURE__ */n.jsx(t.View,{style:s("reviewsStack"),accessibilityLabel:h.label,testID:"health-plan-reviews",children:m})}function HealthPlanWhyItFits(e){let r=pu(e),{S:i,copy:o}=r,l=i.X,{bx:a,tx:s,tb:c,mod:d,inner:u}=i.D,p=e.why;return p.rows.length===0?null:/* @__PURE__ */n.jsxs(t.View,{style:a("why"),testID:"health-plan-why",children:[u("why"),
238
239
  /* @__PURE__ */n.jsx(Text,{style:c("whyMini"),children:p.title}),
239
240
  /* @__PURE__ */n.jsx(t.View,{style:a("whyList"),children:p.rows.map(e=>/* @__PURE__ */n.jsxs(t.View,{style:a("whyRow"),children:[
240
- /* @__PURE__ */n.jsx(t.View,{style:[...a("chip",d("chip",e.kind)),Uu,{minWidth:Ss(l.whyRow,0).width}],children:/* @__PURE__ */n.jsx(Text,{tier:"compact",numberOfLines:1,style:[...s("chip",d("chip",e.kind)),qu],children:e.chip})}),
241
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(l.whyRow,1),children:[
241
+ /* @__PURE__ */n.jsx(t.View,{style:[...a("chip",d("chip",e.kind)),Gu,{minWidth:Cs(l.whyRow,0).width}],children:/* @__PURE__ */n.jsx(Text,{tier:"compact",numberOfLines:1,style:[...s("chip",d("chip",e.kind)),Ku],children:e.chip})}),
242
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(l.whyRow,1),children:[
242
243
  /* @__PURE__ */n.jsx(Text,{style:c("whyStrong"),children:e.title}),e.body?/* @__PURE__ */n.jsx(Text,{style:c("whySmall"),children:e.body}):null]})]},e.title))}),p.score&&p.rows.length>=2?/* @__PURE__ */n.jsxs(t.View,{style:a("score"),testID:"health-plan-why-score",children:[
243
- /* @__PURE__ */n.jsx(Text,{style:[...s("score"),uu],children:o.signalsFit(p.rows.length)}),
244
- /* @__PURE__ */n.jsx(Text,{style:c("scoreValue"),accessibilityElementsHidden:true,importantForAccessibility:"no",children:o.signalsValue(p.rows.length)})]}):null]})}function HealthPlanDoseCard(e){let r=du(e),{bx:i,tb:o}=r.S.D,l=e.dose;/* @__PURE__ */
244
+ /* @__PURE__ */n.jsx(Text,{style:[...s("score"),hu],children:o.signalsFit(p.rows.length)}),
245
+ /* @__PURE__ */n.jsx(Text,{style:c("scoreValue"),accessibilityElementsHidden:true,importantForAccessibility:"no",children:o.signalsValue(p.rows.length)})]}):null]})}function HealthPlanDoseCard(e){let r=pu(e),{bx:i,tb:o}=r.S.D,l=e.dose;/* @__PURE__ */
245
246
  return n.jsxs(t.View,{style:i("dose"),testID:"health-plan-dose",children:[
246
247
  /* @__PURE__ */n.jsx(Text,{style:o("doseMini"),children:l.title}),
247
- /* @__PURE__ */n.jsx(t.View,{style:i("doseList"),children:l.stats.map((e,l)=>/* @__PURE__ */n.jsxs(t.View,{style:[...i("doseItem"),Ss(r.S.X.doseList,l)],children:[
248
+ /* @__PURE__ */n.jsx(t.View,{style:i("doseList"),children:l.stats.map((e,l)=>/* @__PURE__ */n.jsxs(t.View,{style:[...i("doseItem"),Cs(r.S.X.doseList,l)],children:[
248
249
  /* @__PURE__ */n.jsx(Text,{style:o("doseValue"),numberOfLines:1,adjustsFontSizeToFit:true,children:e.value}),
249
- /* @__PURE__ */n.jsx(Text,{style:o("doseLabel"),children:e.label})]},`${e.value}${e.label}`))}),l.note?/* @__PURE__ */n.jsx(Text,{style:o("doseNote"),children:l.note}):null]})}function HealthPlanIngredients(e){let r=du(e),{bx:i,tb:o}=r.S.D,l=e.ingredients;return l.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:i("ingredients"),accessibilityLabel:l.label??l.items.join(", "),children:l.items.map(e=>/* @__PURE__ */n.jsx(Text,{style:o("ingredient"),children:e},e))})}function HealthPlanBuyOptions(e){let r=du(e),{copy:i}=r,{bx:o,tx:l,tb:a,inner:s}=r.S.D,{mode:c,prices:d,offer:u}=e;/* @__PURE__ */
250
+ /* @__PURE__ */n.jsx(Text,{style:o("doseLabel"),children:e.label})]},`${e.value}${e.label}`))}),l.note?/* @__PURE__ */n.jsx(Text,{style:o("doseNote"),children:l.note}):null]})}function HealthPlanIngredients(e){let r=pu(e),{bx:i,tb:o}=r.S.D,l=e.ingredients;return l.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:i("ingredients"),accessibilityLabel:l.label??l.items.join(", "),children:l.items.map(e=>/* @__PURE__ */n.jsx(Text,{style:o("ingredient"),children:e},e))})}function HealthPlanBuyOptions(e){let r=pu(e),{copy:i}=r,{bx:o,tx:l,tb:a,inner:s}=r.S.D,{mode:c,prices:d,offer:u}=e;/* @__PURE__ */
250
251
  return n.jsxs(t.View,{style:o("opts"),accessibilityRole:"radiogroup",accessibilityLabel:i.optionsLabel,testID:"health-plan-options",children:[
251
- /* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onModeChange("sub"),accessibilityRole:"radio",accessibilityState:{checked:c==="sub"},accessibilityLabel:i.subscribe,style:Ps(o("opt",c==="sub"&&"optOn"),Hs.opt,false),testID:"health-plan-opt-sub",children:[s("opt",c==="sub"&&"optOn"),
252
- /* @__PURE__ */n.jsxs(t.View,{style:[...o("optText"),pu],children:[u?/* @__PURE__ */n.jsx(Text,{style:a("optTag"),children:i.bestValue}):null,
252
+ /* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onModeChange("sub"),accessibilityRole:"radio",accessibilityState:{checked:c==="sub"},accessibilityLabel:i.subscribe,style:Rs(o("opt",c==="sub"&&"optOn"),Fs.opt,false),testID:"health-plan-opt-sub",children:[s("opt",c==="sub"&&"optOn"),
253
+ /* @__PURE__ */n.jsxs(t.View,{style:[...o("optText"),gu],children:[u?/* @__PURE__ */n.jsx(Text,{style:a("optTag"),children:i.bestValue}):null,
253
254
  /* @__PURE__ */n.jsx(Text,{style:l("optStrong"),children:i.subscribe}),
254
255
  /* @__PURE__ */n.jsx(Text,{style:l("optSmall"),children:i.subscribeLine(d)})]}),
255
256
  /* @__PURE__ */n.jsxs(t.View,{style:o("price"),children:[u?/* @__PURE__ */n.jsx(Text,{style:l("priceWas"),children:d.box}):null,
256
257
  /* @__PURE__ */n.jsx(Text,{style:l("priceValue"),children:u?d.first:d.box})]})]}),
257
- /* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onModeChange("once"),accessibilityRole:"radio",accessibilityState:{checked:c==="once"},accessibilityLabel:i.once,style:Ps(o("opt","optOnce",c==="once"&&"optOn",c==="once"&&"optOnceOn"),Hs.opt,false),testID:"health-plan-opt-once",children:[s("opt","optOnce",c==="once"&&"optOn",c==="once"&&"optOnceOn"),
258
- /* @__PURE__ */n.jsxs(t.View,{style:[...o("optText"),pu],children:[
258
+ /* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onModeChange("once"),accessibilityRole:"radio",accessibilityState:{checked:c==="once"},accessibilityLabel:i.once,style:Rs(o("opt","optOnce",c==="once"&&"optOn",c==="once"&&"optOnceOn"),Fs.opt,false),testID:"health-plan-opt-once",children:[s("opt","optOnce",c==="once"&&"optOn",c==="once"&&"optOnceOn"),
259
+ /* @__PURE__ */n.jsxs(t.View,{style:[...o("optText"),gu],children:[
259
260
  /* @__PURE__ */n.jsx(Text,{style:l("optStrong","optOnceStrong"),children:i.once}),
260
261
  /* @__PURE__ */n.jsx(Text,{style:l("optSmall","optOnceSmall"),children:i.onceLine(d)})]}),
261
- /* @__PURE__ */n.jsx(Text,{style:l("optPrice","optOncePrice"),children:d.once})]})]})}function HealthPlanBuyButton(e){let r=du(e);/* @__PURE__ */
262
- return n.jsx(t.View,{style:r.S.D.bx("buy"),children:Us(r,e.label,e.onPress,{disabled:e.disabled===true,testID:e.testID??"health-plan-buy"})})}function HealthPlanProof(e){let r=du(e),{bx:i,tx:o,ink:l,side:a}=r.S.D;/* @__PURE__ */
262
+ /* @__PURE__ */n.jsx(Text,{style:l("optPrice","optOncePrice"),children:d.once})]})]})}function HealthPlanBuyButton(e){let r=pu(e);/* @__PURE__ */
263
+ return n.jsx(t.View,{style:r.S.D.bx("buy"),children:Gs(r,e.label,e.onPress,{disabled:e.disabled===true,testID:e.testID??"health-plan-buy"})})}function HealthPlanProof(e){let r=pu(e),{bx:i,tx:o,ink:l,side:a}=r.S.D;/* @__PURE__ */
263
264
  return n.jsxs(t.View,{style:i("proof"),children:[
264
265
  /* @__PURE__ */n.jsx(t.View,{style:i("proofIcon"),children:r.icon("flame",l("proof",r.S.palette.riskInk),a("proofIcon",21))}),
265
- /* @__PURE__ */n.jsx(Text,{style:[...o("proof"),uu],children:e.text})]})}function HealthPlanTrustRow(e){let r=du(e),{bx:i,tx:o,ink:l,side:a}=r.S.D;return e.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:i("trust"),testID:"health-plan-trust",children:e.items.map((e,s)=>/* @__PURE__ */n.jsxs(t.View,{style:[...i("trustItem"),Ss(r.S.X.trust,s)],children:[r.icon(e.icon,l("trustIcon",r.S.palette.teal),a("trustIcon",20)),
266
- /* @__PURE__ */n.jsx(Text,{style:o("trustItem"),children:e.label})]},e.label))})}function HealthPlanSubscribedBox(e){let r=du(e),{copy:i}=r,{bx:o,tx:l,tb:a,inner:s,ink:c,side:d}=r.S.D;/* @__PURE__ */
266
+ /* @__PURE__ */n.jsx(Text,{style:[...o("proof"),hu],children:e.text})]})}function HealthPlanTrustRow(e){let r=pu(e),{bx:i,tx:o,ink:l,side:a}=r.S.D;return e.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:i("trust"),testID:"health-plan-trust",children:e.items.map((e,s)=>/* @__PURE__ */n.jsxs(t.View,{style:[...i("trustItem"),Cs(r.S.X.trust,s)],children:[r.icon(e.icon,l("trustIcon",r.S.palette.teal),a("trustIcon",20)),
267
+ /* @__PURE__ */n.jsx(Text,{style:o("trustItem"),children:e.label})]},e.label))})}function HealthPlanSubscribedBox(e){let r=pu(e),{copy:i}=r,{bx:o,tx:l,tb:a,inner:s,ink:c,side:d}=r.S.D;/* @__PURE__ */
267
268
  return n.jsxs(t.View,{style:o("on"),testID:"health-plan-subscribed",children:[
268
269
  /* @__PURE__ */n.jsx(t.View,{style:o("onIcon"),children:r.icon("check",c("onIcon",r.S.palette.card),d("onIconSvg",18))}),
269
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(r.S.X.on,1),children:[
270
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(r.S.X.on,1),children:[
270
271
  /* @__PURE__ */n.jsx(Text,{style:a("onStrong"),children:i.subscribed}),
271
272
  /* @__PURE__ */n.jsx(Text,{style:a("onSmall"),children:i.subscribedLine(e.prices,e.nextBoxDay)})]}),
272
- /* @__PURE__ */n.jsxs(t.Pressable,{onPress:e.onManage,accessibilityRole:"button",accessibilityLabel:i.manage,style:Ps([...o("onButton"),fu],Hs.onButton,false),testID:"health-plan-manage",children:[s("onButton"),
273
- /* @__PURE__ */n.jsx(Text,{tier:"control",style:l("onButton"),children:i.manage})]})]})}function HealthPlanOtherItems(e){let r=du(e),{S:i}=r,{bx:o,tb:l}=i.D;return e.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:o("others"),testID:"health-plan-others",children:e.items.map(({item:a,buyLabel:s,buyDisabled:c,onBuy:d})=>/* @__PURE__ */n.jsxs(t.View,{style:o("pick"),testID:`health-plan-other-${a.productId}`,children:[
273
+ /* @__PURE__ */n.jsxs(t.Pressable,{onPress:e.onManage,accessibilityRole:"button",accessibilityLabel:i.manage,style:Rs([...o("onButton"),yu],Fs.onButton,false),testID:"health-plan-manage",children:[s("onButton"),
274
+ /* @__PURE__ */n.jsx(Text,{tier:"control",style:l("onButton"),children:i.manage})]})]})}function HealthPlanOtherItems(e){let r=pu(e),{S:i}=r,{bx:o,tb:l}=i.D;return e.items.length===0?null:/* @__PURE__ */n.jsx(t.View,{style:o("others"),testID:"health-plan-others",children:e.items.map(({item:a,buyLabel:s,buyDisabled:c,onBuy:d})=>/* @__PURE__ */n.jsxs(t.View,{style:o("pick"),testID:`health-plan-other-${a.productId}`,children:[
274
275
  /* @__PURE__ */n.jsxs(t.View,{style:o("pickTop"),children:[
275
- /* @__PURE__ */n.jsx(t.View,{style:[...o("pickImage"),fu,Nu],children:bu(a.imageUrl,wu,"contain")}),
276
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(i.X.pickTop,1),children:[e.showCategory===true&&a.category!==null?/* @__PURE__ */n.jsx(Text,{style:i.mini,children:a.category}):null,
277
- /* @__PURE__ */n.jsx(Text,{style:l("pickTitle"),children:a.title}),a.sample?/* @__PURE__ */n.jsx(t.View,{style:gu,children:xu(r,p.sample)}):null,a.description?/* @__PURE__ */n.jsx(Text,{style:l("pickLine"),children:a.description}):null]})]}),
278
- /* @__PURE__ */n.jsx(t.View,{style:o("buy"),children:Us(r,s,d,{disabled:c,testID:`health-plan-other-buy-${a.productId}`})})]},a.productId))})}function HealthPlanSigns(e){let r=du(e),{bx:i,tx:o,tb:l,inner:a,ink:s,side:c}=r.S.D,d=e.signs;/* @__PURE__ */
279
- return n.jsxs(t.View,{style:i("sec"),testID:"health-plan-signs",children:[vu(r,e.number,d.title),d.items.map(d=>/* @__PURE__ */n.jsxs(t.View,{style:i("sign",d.urgent===true&&"signUrgent"),children:[a("sign",d.urgent===true&&"signUrgent"),
276
+ /* @__PURE__ */n.jsx(t.View,{style:[...o("pickImage"),yu,qu],children:xu(a.imageUrl,ku,"contain")}),
277
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(i.X.pickTop,1),children:[e.showCategory===true&&a.category!==null?/* @__PURE__ */n.jsx(Text,{style:i.mini,children:a.category}):null,
278
+ /* @__PURE__ */n.jsx(Text,{style:l("pickTitle"),children:a.title}),a.sample?/* @__PURE__ */n.jsx(t.View,{style:mu,children:vu(r,p.sample)}):null,a.description?/* @__PURE__ */n.jsx(Text,{style:l("pickLine"),children:a.description}):null]})]}),
279
+ /* @__PURE__ */n.jsx(t.View,{style:o("buy"),children:Gs(r,s,d,{disabled:c,testID:`health-plan-other-buy-${a.productId}`})})]},a.productId))})}function HealthPlanSigns(e){let r=pu(e),{bx:i,tx:o,tb:l,inner:a,ink:s,side:c}=r.S.D,d=e.signs;/* @__PURE__ */
280
+ return n.jsxs(t.View,{style:i("sec"),testID:"health-plan-signs",children:[Tu(r,e.number,d.title),d.items.map(d=>/* @__PURE__ */n.jsxs(t.View,{style:i("sign",d.urgent===true&&"signUrgent"),children:[a("sign",d.urgent===true&&"signUrgent"),
280
281
  /* @__PURE__ */n.jsxs(t.View,{style:i("signTitle"),children:[d.urgent?r.icon("alert",s("signUrgentTitle",r.S.palette.riskInk),c("signUrgentIcon",20)):null,
281
- /* @__PURE__ */n.jsx(Text,{style:[...o("signTitle",d.urgent===true&&"signUrgentTitle"),uu],children:d.callVet===true&&d.urgent!==true?e.callVetTitle??d.title:d.title})]}),
282
- /* @__PURE__ */n.jsx(Text,{style:l("signBody",d.urgent===true&&"signUrgentBody"),children:d.body})]},d.title)),e.children]})}function HealthPlanCheckup(e){let r=du(e),{bx:i,tx:o,tb:l,inner:a}=r.S.D,{checkup:s,added:c,addLabel:d}=e,u=Number(r.S.X.questions.box.paddingLeft??0),p=/* @__PURE__ */n.jsxs(n.Fragment,{children:[e.variant==="kicker"?/* @__PURE__ */n.jsx(Text,{style:l("questionsKicker"),accessibilityRole:"header",children:s.title}):vu(r,e.number??1,s.title),
282
+ /* @__PURE__ */n.jsx(Text,{style:[...o("signTitle",d.urgent===true&&"signUrgentTitle"),hu],children:d.callVet===true&&d.urgent!==true?e.callVetTitle??d.title:d.title})]}),
283
+ /* @__PURE__ */n.jsx(Text,{style:l("signBody",d.urgent===true&&"signUrgentBody"),children:d.body})]},d.title)),e.children]})}function HealthPlanCheckup(e){let r=pu(e),{bx:i,tx:o,tb:l,inner:a}=r.S.D,{checkup:s,added:c,addLabel:d}=e,u=Number(r.S.X.questions.box.paddingLeft??0),p=/* @__PURE__ */n.jsxs(n.Fragment,{children:[e.variant==="kicker"?/* @__PURE__ */n.jsx(Text,{style:l("questionsKicker"),accessibilityRole:"header",children:s.title}):Tu(r,e.number??1,s.title),
283
284
  /* @__PURE__ */n.jsx(t.View,{style:i("questions",e.variant==="kicker"&&"questionsAfterKicker"),children:s.questions.map((e,r)=>
284
- /* @__PURE__ */n.jsxs(t.View,{style:[Mu,{marginLeft:-u}],children:[
285
+ /* @__PURE__ */n.jsxs(t.View,{style:[Uu,{marginLeft:-u}],children:[
285
286
  /* @__PURE__ */n.jsx(Text,{style:[...o("questions"),{width:u,textAlign:"right"}],accessibilityElementsHidden:true,importantForAccessibility:"no",children:`${r+1}. `}),
286
- /* @__PURE__ */n.jsx(Text,{style:[...o("questions"),uu],children:e})]},e))}),d===""?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onToggle(s.questions),accessibilityRole:"button",accessibilityState:{selected:c},accessibilityLabel:d,style:Ps(i("add",c&&"addOn"),Hs.add,false),testID:"health-plan-add-to-visit",children:[a("add",c&&"addOn"),
287
- /* @__PURE__ */n.jsx(Text,{tier:"control",style:o("add",c&&"addOn"),children:d})]}),e.children]});return e.variant==="kicker"?p:/* @__PURE__ */n.jsx(t.View,{style:i("sec"),testID:"health-plan-checkup",children:p})}function HealthPlanExtras(e){let r=du(e),{S:i}=r,o=i.X,{bx:l,tx:a,tb:s,im:c,mod:d,ink:u,side:p}=i.D;/* @__PURE__ */
287
+ /* @__PURE__ */n.jsx(Text,{style:[...o("questions"),hu],children:e})]},e))}),d===""?null:/* @__PURE__ */n.jsxs(t.Pressable,{onPress:()=>e.onToggle(s.questions),accessibilityRole:"button",accessibilityState:{selected:c},accessibilityLabel:d,style:Rs(i("add",c&&"addOn"),Fs.add,false),testID:"health-plan-add-to-visit",children:[a("add",c&&"addOn"),
288
+ /* @__PURE__ */n.jsx(Text,{tier:"control",style:o("add",c&&"addOn"),children:d})]}),e.children]});return e.variant==="kicker"?p:/* @__PURE__ */n.jsx(t.View,{style:i("sec"),testID:"health-plan-checkup",children:p})}function HealthPlanExtras(e){let r=pu(e),{S:i}=r,o=i.X,{bx:l,tx:a,tb:s,im:c,mod:d,ink:u,side:p}=i.D;/* @__PURE__ */
288
289
  return n.jsxs(t.View,{style:l("extras"),testID:"health-plan-extras",children:[
289
290
  /* @__PURE__ */n.jsx(Text,{style:s("extrasTitle"),accessibilityRole:"header",children:e.title}),e.items.map(({extra:e,price:h,on:g,label:f,onPress:m})=>{let y=d("extra",e.kind);/* @__PURE__ */
290
- return n.jsxs(t.View,{style:l("extra",y),children:[e.imageUrl?bu(e.imageUrl,c("extraImage",y==="extraKit"&&"extraKitImage")):e.icon?/* @__PURE__ */n.jsx(t.View,{style:l("extraIcon"),children:r.icon(e.icon,u("extraIcon",i.palette.teal),p("extraIconSvg",26))}):null,
291
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(o.extra,1),children:[
291
+ return n.jsxs(t.View,{style:l("extra",y),children:[e.imageUrl?xu(e.imageUrl,c("extraImage",y==="extraKit"&&"extraKitImage")):e.icon?/* @__PURE__ */n.jsx(t.View,{style:l("extraIcon"),children:r.icon(e.icon,u("extraIcon",i.palette.teal),p("extraIconSvg",26))}):null,
292
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(o.extra,1),children:[
292
293
  /* @__PURE__ */n.jsxs(t.View,{style:{minHeight:e.imageUrl||e.icon?Number(o.extraImage.box.height??0):0},children:[
293
294
  /* @__PURE__ */n.jsx(Text,{style:s("extraTitle",e.kind==="kit"&&"extraTitleSerif"),children:e.title}),e.body?/* @__PURE__ */n.jsx(Text,{style:s("extraBody"),children:e.body}):null,h?/* @__PURE__ */n.jsxs(t.View,{style:l("extraPrice"),children:[
294
- /* @__PURE__ */n.jsx(Text,{style:a("extraPriceValue"),children:h}),e.was?/* @__PURE__ */n.jsx(Text,{style:a("extraPriceWas"),children:e.was}):null,xu(r,e.tag)]}):null]}),
295
- /* @__PURE__ */n.jsx(t.Pressable,{onPress:m,accessibilityRole:"button",accessibilityState:{selected:g},accessibilityLabel:f,style:Ps([...l("extraGo",g&&"extraGoOn"),{marginTop:Number(o.extraGo.box.marginTop??0)+Number(o.extra.box.rowGap??0)},gu,fu],Hs.extraGo,false),children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:a("extraGo",g&&"extraGoOn"),children:f})})]})]},e.key)})]})}function ConnectedHealthPlanToolbar(){let e=Hu();if(e===null||!e.hp.shop)return null;let{hp:t}=e;/* @__PURE__ */
296
- return n.jsx(HealthPlanToolbar,{eyebrow:void 0,cartCount:t.lineCount,onOpenOrders:()=>t.push({kind:"orders"}),onOpenCart:()=>t.push({kind:"cart"})})}function ConnectedHealthPlanToast(){let e=Hu();return e===null?null:/* @__PURE__ */n.jsx(HealthPlanToast,{message:e.hp.toast})}function ConnectedHealthPlanHeader(){let e=Hu();if(e===null)return null;let{design:t}=e.props,r=e.recordsMissing&&t.subtitleNoRecords?t.subtitleNoRecords:t.subtitle;/* @__PURE__ */
297
- return n.jsx(HealthPlanHeader,{eyebrow:t.eyebrow||void 0,title:t.title,subtitle:r,imageUrl:t.headImageUrl})}function ConnectedHealthPlanBlanks(){let e=Hu();if(e===null||!e.blanksShown||e.blanksFacts===null)return null;let{copy:t,hp:r,blanksFacts:i,noPick:o}=e,l=e.props.design.pick,a=r.kg,s=i.phase==="filled",c=i.weightKg,d=l.dose?.stats.some(e=>e.kind!==void 0)===true,u=(o?void 0:d?l.dose?.stats.find(e=>e.kind==="dose"):l.dose?.stats[0])??(o||l.doseLabel===void 0?void 0:{value:null,label:l.doseLabel}),p=[{key:"weight",lead:t.blanksWeight,value:!s||c===null?null:String(a?Math.round(c*10)/10:Math.round(c*Ic)),trail:` ${a?t.weightUnitKg:t.weightUnit}`,source:t.blanksWeightSource},...u===void 0?[]:[{key:"dose",lead:"",value:s&&r.weightKnown?u.value:null,trail:` ${t.blanksDose(u.label,e.props.item.title)}`,source:t.blanksDoseSource,width:"s"}],{key:"shots",lead:t.blanksShots,value:s&&i.nextShotsAt!==null?Gu(i.nextShotsAt,e.props.locale):null,trail:"",source:t.blanksShotsSource,width:"l"}],h=p.filter(e=>e.value!==null).length;/* @__PURE__ */
298
- return n.jsx(HealthPlanBlanks,{phase:i.phase,kicker:s?t.blanksFilledKicker:i.clinicName!==null?t.blanksAsked(i.clinicName):t.blanksAskedNoClinic,pill:s?t.blanksFilled(h,p.length):t.blanksWaitPill,rows:p,blankLabel:t.blankEmpty,label:t.blanksLabel,flashKey:r.flashKey})}function ConnectedHealthPlanWaitCard(){let e=Hu();if(e===null)return null;if(e.waitNode!==null)/* @__PURE__ */return n.jsx(t.View,{style:e.kit.S.D.bx("wait"),children:e.waitNode});let r=e.props.design.wait;return r?/* @__PURE__ */n.jsx(HealthPlanWaitCard,{wait:r,onAction:e.props.onWaitAction,vetName:e.vet?.name??null}):null}function ConnectedHealthPlanByline(){let e=Hu();return e===null||!e.byline||e.waiting?null:/* @__PURE__ */n.jsx(HealthPlanByline,{vet:e.byline})}function ConnectedHealthPlanFocusCard(){let e=Hu(),t=e?.props.design.focus;if(e===null||!t||e.waiting)return null;let{hp:r}=e,i=t.jump&&!e.noPick?{title:t.jump.title,go:t.jump.go,kicker:r.pr.box===null&&!r.canSubscribe?null:e.copy.jumpKicker(r.pr,r.active),imageUrl:e.props.item.imageUrl,onJump:e.jump}:null;/* @__PURE__ */
299
- return n.jsx(HealthPlanFocusCard,{focus:t,vet:e.vet,jump:i})}function ConnectedHealthPlanTips(){let e=Hu(),t=e?.props.design.routine;return e===null||!t||e.waiting||e.numbers.routine===void 0?null:/* @__PURE__ */n.jsx(HealthPlanTips,{routine:t,number:e.numbers.routine,vetShortName:e.vet?.shortName??null,pageWidth:e.pageWidth??void 0})}function ConnectedHealthPlanReviews(){let e=Hu(),t=e?.props.design.pick.reviews;return e===null||!t||t.items.length===0?null:/* @__PURE__ */n.jsx(HealthPlanReviews,{reviews:t,pageWidth:e.pageWidth??void 0})}function ConnectedHealthPlanWhyItFits(){let e=Hu(),t=e?.props.design.pick.why;return e===null||!t||t.rows.length===0?null:/* @__PURE__ */n.jsx(HealthPlanWhyItFits,{why:t})}function ConnectedHealthPlanDoseCard(){let e=Hu();if(e===null||e.otherSpecies)return null;let{copy:t}=e;if(e.askWeight)/* @__PURE__ */return n.jsx(HealthPlanAskRow,{icon:"pulse",title:t.addWeightTitle,body:t.addWeightBody,onPress:e.hp.openWeight,testID:"health-plan-add-weight",inSection:true});let r=e.props.design.pick.dose;return r?/* @__PURE__ */n.jsx(HealthPlanDoseCard,{dose:r}):null}function ConnectedHealthPlanIngredients(){let e=Hu(),t=e?.props.design.pick.ingredients;return e===null||!t||t.items.length===0?null:/* @__PURE__ */n.jsx(HealthPlanIngredients,{ingredients:t})}function ConnectedHealthPlanBuyOptions(){let e=Hu();if(e===null||!e.hp.canSubscribe||!e.hp.priced)return null;let{hp:t}=e;/* @__PURE__ */
300
- return n.jsx(HealthPlanBuyOptions,{mode:t.buyMode,onModeChange:t.setMode,prices:t.pr,offer:t.offer})}function ConnectedHealthPlanBuyButton(){let e=Hu();if(e===null)return null;let{hp:t,copy:r,props:i,pickInCart:o}=e,{pr:l,priced:a,buyMode:s,sub:c}=t,d=i.item,u=c.phase==="loading"&&i.subscriptions!==false;return t.shop?/* @__PURE__ */n.jsx(HealthPlanBuyButton,{label:o?r.viewCart:a?r.addToCart((s==="sub"?l.first:l.once)??""):p.addToCart,onPress:()=>t.addToCart(d,s),disabled:u||!a&&!o}):/* @__PURE__ */n.jsx(HealthPlanBuyButton,{label:s==="sub"?r.subscribe:a?r.buyOnce(l):r.buyOnceOption,onPress:t.press,disabled:u||t.redirecting||t.everfur&&!a||!t.everfur&&!t.canSubscribe&&!t.partnerBuys})}function ConnectedHealthPlanProof(){let e=Hu(),t=e?.props.design.pick.proof;return e===null||!t||e.hp.active?null:/* @__PURE__ */n.jsx(HealthPlanProof,{text:t})}function ConnectedHealthPlanTrustRow(){let e=Hu();return e===null||e.trust.length===0?null:/* @__PURE__ */n.jsx(HealthPlanTrustRow,{items:e.trust})}function ConnectedHealthPlanSubscribedBox(){let e=Hu();if(e===null)return null;let{hp:t}=e,r=t.subscription;return!t.active||r===null?null:/* @__PURE__ */n.jsx(HealthPlanSubscribedBox,{prices:t.pr,nextBoxDay:t.nextBoxDay(r),onManage:()=>t.openSheet({kind:"manage"})})}function ConnectedHealthPlanPickParts(){/* @__PURE__ */
295
+ /* @__PURE__ */n.jsx(Text,{style:a("extraPriceValue"),children:h}),e.was?/* @__PURE__ */n.jsx(Text,{style:a("extraPriceWas"),children:e.was}):null,vu(r,e.tag)]}):null]}),
296
+ /* @__PURE__ */n.jsx(t.Pressable,{onPress:m,accessibilityRole:"button",accessibilityState:{selected:g},accessibilityLabel:f,style:Rs([...l("extraGo",g&&"extraGoOn"),{marginTop:Number(o.extraGo.box.marginTop??0)+Number(o.extra.box.rowGap??0)},mu,yu],Fs.extraGo,false),children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:a("extraGo",g&&"extraGoOn"),children:f})})]})]},e.key)})]})}function ConnectedHealthPlanToolbar(){let e=Fu();if(e===null||!e.hp.shop)return null;let{hp:t}=e;/* @__PURE__ */
297
+ return n.jsx(HealthPlanToolbar,{eyebrow:void 0,cartCount:t.lineCount,onOpenOrders:()=>t.push({kind:"orders"}),onOpenCart:()=>t.push({kind:"cart"})})}function ConnectedHealthPlanToast(){let e=Fu();return e===null?null:/* @__PURE__ */n.jsx(HealthPlanToast,{message:e.hp.toast})}function ConnectedHealthPlanHeader(){let e=Fu();if(e===null)return null;let{design:t}=e.props,r=e.recordsMissing&&t.subtitleNoRecords?t.subtitleNoRecords:t.subtitle;/* @__PURE__ */
298
+ return n.jsx(HealthPlanHeader,{eyebrow:t.eyebrow||void 0,title:t.title,subtitle:r,imageUrl:t.headImageUrl})}function ConnectedHealthPlanBlanks(){let e=Fu();if(e===null||!e.blanksShown||e.blanksFacts===null)return null;let{copy:t,hp:r,blanksFacts:i,noPick:o}=e,l=e.props.design.pick,a=r.kg,s=i.phase==="filled",c=i.weightKg,d=l.dose?.stats.some(e=>e.kind!==void 0)===true,u=(o?void 0:d?l.dose?.stats.find(e=>e.kind==="dose"):l.dose?.stats[0])??(o||l.doseLabel===void 0?void 0:{value:null,label:l.doseLabel}),p=[{key:"weight",lead:t.blanksWeight,value:!s||c===null?null:String(a?Math.round(c*10)/10:Math.round(c*Pc)),trail:` ${a?t.weightUnitKg:t.weightUnit}`,source:t.blanksWeightSource},...u===void 0?[]:[{key:"dose",lead:"",value:s&&r.weightKnown?u.value:null,trail:` ${t.blanksDose(u.label,e.props.item.title)}`,source:t.blanksDoseSource,width:"s"}],{key:"shots",lead:t.blanksShots,value:s&&i.nextShotsAt!==null?Xu(i.nextShotsAt,e.props.locale):null,trail:"",source:t.blanksShotsSource,width:"l"}],h=p.filter(e=>e.value!==null).length;/* @__PURE__ */
299
+ return n.jsx(HealthPlanBlanks,{phase:i.phase,kicker:s?t.blanksFilledKicker:i.clinicName!==null?t.blanksAsked(i.clinicName):t.blanksAskedNoClinic,pill:s?t.blanksFilled(h,p.length):t.blanksWaitPill,rows:p,blankLabel:t.blankEmpty,label:t.blanksLabel,flashKey:r.flashKey})}function ConnectedHealthPlanWaitCard(){let e=Fu();if(e===null)return null;if(e.waitNode!==null)/* @__PURE__ */return n.jsx(t.View,{style:e.kit.S.D.bx("wait"),children:e.waitNode});let r=e.props.design.wait;return r?/* @__PURE__ */n.jsx(HealthPlanWaitCard,{wait:r,onAction:e.props.onWaitAction,vetName:e.vet?.name??null}):null}function ConnectedHealthPlanByline(){let e=Fu();return e===null||!e.byline||e.waiting?null:/* @__PURE__ */n.jsx(HealthPlanByline,{vet:e.byline})}function ConnectedHealthPlanFocusCard(){let e=Fu(),t=e?.props.design.focus;if(e===null||!t||e.waiting)return null;let{hp:r}=e,i=t.jump&&!e.noPick?{title:t.jump.title,go:t.jump.go,kicker:r.pr.box===null&&!r.canSubscribe?null:e.copy.jumpKicker(r.pr,r.active),imageUrl:e.props.item.imageUrl,onJump:e.jump}:null;/* @__PURE__ */
300
+ return n.jsx(HealthPlanFocusCard,{focus:t,vet:e.vet,jump:i})}function ConnectedHealthPlanTips(){let e=Fu(),t=e?.props.design.routine;return e===null||!t||e.waiting||e.numbers.routine===void 0?null:/* @__PURE__ */n.jsx(HealthPlanTips,{routine:t,number:e.numbers.routine,vetShortName:e.vet?.shortName??null,pageWidth:e.pageWidth??void 0})}function ConnectedHealthPlanReviews(){let e=Fu(),t=e?.props.design.pick.reviews;return e===null||!t||t.items.length===0?null:/* @__PURE__ */n.jsx(HealthPlanReviews,{reviews:t,pageWidth:e.pageWidth??void 0})}function ConnectedHealthPlanWhyItFits(){let e=Fu(),t=e?.props.design.pick.why;return e===null||!t||t.rows.length===0?null:/* @__PURE__ */n.jsx(HealthPlanWhyItFits,{why:t})}function ConnectedHealthPlanDoseCard(){let e=Fu();if(e===null||e.otherSpecies)return null;let{copy:t}=e;if(e.askWeight)/* @__PURE__ */return n.jsx(HealthPlanAskRow,{icon:"pulse",title:t.addWeightTitle,body:t.addWeightBody,onPress:e.hp.openWeight,testID:"health-plan-add-weight",inSection:true});let r=e.props.design.pick.dose;return r?/* @__PURE__ */n.jsx(HealthPlanDoseCard,{dose:r}):null}function ConnectedHealthPlanIngredients(){let e=Fu(),t=e?.props.design.pick.ingredients;return e===null||!t||t.items.length===0?null:/* @__PURE__ */n.jsx(HealthPlanIngredients,{ingredients:t})}function ConnectedHealthPlanBuyOptions(){let e=Fu();if(e===null||!e.hp.canSubscribe||!e.hp.priced)return null;let{hp:t}=e;/* @__PURE__ */
301
+ return n.jsx(HealthPlanBuyOptions,{mode:t.buyMode,onModeChange:t.setMode,prices:t.pr,offer:t.offer})}function ConnectedHealthPlanBuyButton(){let e=Fu();if(e===null)return null;let{hp:t,copy:r,props:i,pickInCart:o}=e,{pr:l,priced:a,buyMode:s,sub:c}=t,d=i.item,u=c.phase==="loading"&&i.subscriptions!==false;return t.shop?/* @__PURE__ */n.jsx(HealthPlanBuyButton,{label:o?r.viewCart:a?r.addToCart((s==="sub"?l.first:l.once)??""):p.addToCart,onPress:()=>t.addToCart(d,s),disabled:u||!a&&!o}):/* @__PURE__ */n.jsx(HealthPlanBuyButton,{label:s==="sub"?r.subscribe:a?r.buyOnce(l):r.buyOnceOption,onPress:t.press,disabled:u||t.redirecting||t.everfur&&!a||!t.everfur&&!t.canSubscribe&&!t.partnerBuys})}function ConnectedHealthPlanProof(){let e=Fu(),t=e?.props.design.pick.proof;return e===null||!t||e.hp.active?null:/* @__PURE__ */n.jsx(HealthPlanProof,{text:t})}function ConnectedHealthPlanTrustRow(){let e=Fu();return e===null||e.trust.length===0?null:/* @__PURE__ */n.jsx(HealthPlanTrustRow,{items:e.trust})}function ConnectedHealthPlanSubscribedBox(){let e=Fu();if(e===null)return null;let{hp:t}=e,r=t.subscription;return!t.active||r===null?null:/* @__PURE__ */n.jsx(HealthPlanSubscribedBox,{prices:t.pr,nextBoxDay:t.nextBoxDay(r),onManage:()=>t.openSheet({kind:"manage"})})}function ConnectedHealthPlanPickParts(){/* @__PURE__ */
301
302
  return n.jsxs(n.Fragment,{children:[
302
303
  /* @__PURE__ */n.jsx(ConnectedHealthPlanReviews,{}),
303
304
  /* @__PURE__ */n.jsx(ConnectedHealthPlanWhyItFits,{}),
@@ -307,58 +308,58 @@ return n.jsxs(n.Fragment,{children:[
307
308
  /* @__PURE__ */n.jsx(ConnectedHealthPlanBuyButton,{}),
308
309
  /* @__PURE__ */n.jsx(ConnectedHealthPlanProof,{}),
309
310
  /* @__PURE__ */n.jsx(ConnectedHealthPlanTrustRow,{}),
310
- /* @__PURE__ */n.jsx(ConnectedHealthPlanSubscribedBox,{})]})}function ConnectedHealthPlanProductPick(e){let t=Hu();if(t===null||t.waiting||t.pickHidden)return null;if(t.noPick)/* @__PURE__ */return n.jsx(HealthPlanNoPick,{text:t.copy.noPick});let{item:r,design:i,onMore:o}=t.props;/* @__PURE__ */
311
- return n.jsx(HealthPlanProductPick,{item:r,pick:i.pick,number:t.numbers.pick??1,viewRef:t.pickRef,onMore:o?()=>{St(o,r)}:void 0,children:e.children===void 0?/* @__PURE__ */n.jsx(ConnectedHealthPlanPickParts,{}):e.children})}function ConnectedHealthPlanOtherItems(){let e=Hu(),t=e?.props.others??[];if(e===null||t.length===0||e.waiting||e.noPick||e.curated)return null;let{hp:r,copy:i,petName:o}=e,l=t.map(e=>{let t=r.fmt(e.price,e.currency),n={petName:o,productName:e.title,first:t,box:t,once:t,onceDiscountPercent:0,intervalDays:0,discountPercent:0,offer:false};return r.shop?{item:e,buyLabel:r.inCart(e.productId)?i.viewCart:t===null?p.addToCart:i.addToCart(t),buyDisabled:t===null,onBuy:()=>r.addToCart(e,"once")}:{item:e,buyLabel:t===null?i.buyOnceOption:i.buyOnce(n),buyDisabled:r.redirecting||r.everfur&&t===null||!r.everfur&&!r.partnerBuys,onBuy:()=>r.pressOther(e)}});/* @__PURE__ */
312
- return n.jsx(HealthPlanOtherItems,{items:l,showCategory:e.props.showCategory})}function ConnectedHealthPlanCheckup(e){let t=Hu(),r=t?.props.design.checkup;if(t===null||r===void 0)return null;let{hp:i,copy:o}=t,l=i.added,a=t.recordsMissing||i.noVet?l?o.savedForCheckup:o.saveForCheckup:l?r.added:r.add;/* @__PURE__ */
313
- return n.jsx(HealthPlanCheckup,{checkup:r,added:l,addLabel:a,onToggle:i.toggleAdded,variant:e.variant,number:t.numbers.checkup,children:e.children})}function ConnectedHealthPlanConnectRecords(e){let t=Hu();if(t===null)return null;let r=t.props.onConnectRecords;if(!((t.recordsMissing||t.hp.noVet)&&r&&!t.blanksShown))return null;let{copy:i}=t;/* @__PURE__ */
314
- return n.jsx(HealthPlanAskRow,{icon:"file",title:i.connectRecordsTitle,body:i.connectRecordsBody,onPress:()=>{St(r)},testID:"health-plan-connect-records",inSection:e.inSection===true})}function ConnectedHealthPlanSigns(){let e=Hu();if(e===null||e.waiting)return null;let{design:t}=e.props;if(t.signs){let r=e.hp.noVet?e.copy.callAVet:e.recordsMissing?e.copy.callYourVet:void 0;/* @__PURE__ */
311
+ /* @__PURE__ */n.jsx(ConnectedHealthPlanSubscribedBox,{})]})}function ConnectedHealthPlanProductPick(e){let t=Fu();if(t===null||t.waiting||t.pickHidden)return null;if(t.noPick)/* @__PURE__ */return n.jsx(HealthPlanNoPick,{text:t.copy.noPick});let{item:r,design:i,onMore:o}=t.props;/* @__PURE__ */
312
+ return n.jsx(HealthPlanProductPick,{item:r,pick:i.pick,number:t.numbers.pick??1,viewRef:t.pickRef,onMore:o?()=>{St(o,r)}:void 0,children:e.children===void 0?/* @__PURE__ */n.jsx(ConnectedHealthPlanPickParts,{}):e.children})}function ConnectedHealthPlanOtherItems(){let e=Fu(),t=e?.props.others??[];if(e===null||t.length===0||e.waiting||e.noPick||e.curated)return null;let{hp:r,copy:i,petName:o}=e,l=t.map(e=>{let t=r.fmt(e.price,e.currency),n={petName:o,productName:e.title,first:t,box:t,once:t,onceDiscountPercent:0,intervalDays:0,discountPercent:0,offer:false};return r.shop?{item:e,buyLabel:r.inCart(e.productId)?i.viewCart:t===null?p.addToCart:i.addToCart(t),buyDisabled:t===null,onBuy:()=>r.addToCart(e,"once")}:{item:e,buyLabel:t===null?i.buyOnceOption:i.buyOnce(n),buyDisabled:r.redirecting||r.everfur&&t===null||!r.everfur&&!r.partnerBuys,onBuy:()=>r.pressOther(e)}});/* @__PURE__ */
313
+ return n.jsx(HealthPlanOtherItems,{items:l,showCategory:e.props.showCategory})}function ConnectedHealthPlanCheckup(e){let t=Fu(),r=t?.props.design.checkup;if(t===null||r===void 0)return null;let{hp:i,copy:o}=t,l=i.added,a=t.recordsMissing||i.noVet?l?o.savedForCheckup:o.saveForCheckup:l?r.added:r.add;/* @__PURE__ */
314
+ return n.jsx(HealthPlanCheckup,{checkup:r,added:l,addLabel:a,onToggle:i.toggleAdded,variant:e.variant,number:t.numbers.checkup,children:e.children})}function ConnectedHealthPlanConnectRecords(e){let t=Fu();if(t===null)return null;let r=t.props.onConnectRecords;if(!((t.recordsMissing||t.hp.noVet)&&r&&!t.blanksShown))return null;let{copy:i}=t;/* @__PURE__ */
315
+ return n.jsx(HealthPlanAskRow,{icon:"file",title:i.connectRecordsTitle,body:i.connectRecordsBody,onPress:()=>{St(r)},testID:"health-plan-connect-records",inSection:e.inSection===true})}function ConnectedHealthPlanSigns(){let e=Fu();if(e===null||e.waiting)return null;let{design:t}=e.props;if(t.signs){let r=e.hp.noVet?e.copy.callAVet:e.recordsMissing?e.copy.callYourVet:void 0;/* @__PURE__ */
315
316
  return n.jsxs(HealthPlanSigns,{signs:t.signs,number:e.numbers.signs??1,callVetTitle:r,children:[
316
317
  /* @__PURE__ */n.jsx(ConnectedHealthPlanCheckup,{variant:"kicker"}),
317
- /* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{inSection:true})]})}return t.checkup?/* @__PURE__ */n.jsx(ConnectedHealthPlanCheckup,{variant:"section",children:/* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{inSection:true})}):/* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{})}function ConnectedHealthPlanExtras(){let e=Hu(),t=e?.props.design.extras;if(e===null||!t||!e.extrasShown)return null;let{hp:r,copy:i}=e,o=[];for(let t of e.extraItems){let n=e.extraProduct(t);if(n===void 0&&e.props.onExtra===void 0)continue;let l=n!==void 0?r.shop&&r.inCart(n.productId)!==void 0:r.extras.has(t.key),a=t.price??(n!==void 0?r.fmtWhole(n.price,n.currency):null),s=n!==void 0&&l?i.viewCart:l?t.added:t.action;o.push({extra:t,price:a,on:l,label:s,onPress:()=>r.pressExtra(t.key,n,l)})}/* @__PURE__ */
318
- return n.jsx(HealthPlanExtras,{title:t.title,items:o})}function ConnectedHealthPlanFine(){let e=Hu(),t=e?.props.design.fine;return e===null||!t?null:/* @__PURE__ */n.jsx(HealthPlanFine,{text:t})}function Gu(e,t){let n=new Date(e);try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}).format(n)}catch{return n.toISOString().slice(0,10)}}function Ku(e,t){let{ink:n,side:r}=e.S.D;return e.icon(t,n("nextIcon",e.S.X.roles.link??""),r("nextIconSvg",19))}function Xu(e){let{bx:r,ink:i,side:o}=e.S.D;/* @__PURE__ */
319
- return n.jsx(t.View,{style:r("doneCheck"),children:e.icon("check",i("doneCheck",e.S.palette.ink),o("doneCheckSvg",38))})}function Yu(e,r){let{bx:i,tx:o,tb:l,im:a}=e.S.D,s=e.S.X,c=r.imageUrl?bu(r.imageUrl,a("nextIconImage")):Ku(e,r.icon);/* @__PURE__ */
318
+ /* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{inSection:true})]})}return t.checkup?/* @__PURE__ */n.jsx(ConnectedHealthPlanCheckup,{variant:"section",children:/* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{inSection:true})}):/* @__PURE__ */n.jsx(ConnectedHealthPlanConnectRecords,{})}function ConnectedHealthPlanExtras(){let e=Fu(),t=e?.props.design.extras;if(e===null||!t||!e.extrasShown)return null;let{hp:r,copy:i}=e,o=[];for(let t of e.extraItems){let n=e.extraProduct(t);if(n===void 0&&e.props.onExtra===void 0)continue;let l=n!==void 0?r.shop&&r.inCart(n.productId)!==void 0:r.extras.has(t.key),a=t.price??(n!==void 0?r.fmtWhole(n.price,n.currency):null),s=n!==void 0&&l?i.viewCart:l?t.added:t.action;o.push({extra:t,price:a,on:l,label:s,onPress:()=>r.pressExtra(t.key,n,l)})}/* @__PURE__ */
319
+ return n.jsx(HealthPlanExtras,{title:t.title,items:o})}function ConnectedHealthPlanFine(){let e=Fu(),t=e?.props.design.fine;return e===null||!t?null:/* @__PURE__ */n.jsx(HealthPlanFine,{text:t})}function Xu(e,t){let n=new Date(e);try{return new Intl.DateTimeFormat(t??"en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}).format(n)}catch{return n.toISOString().slice(0,10)}}function Yu(e,t){let{ink:n,side:r}=e.S.D;return e.icon(t,n("nextIcon",e.S.X.roles.link??""),r("nextIconSvg",19))}function Ju(e){let{bx:r,ink:i,side:o}=e.S.D;/* @__PURE__ */
320
+ return n.jsx(t.View,{style:r("doneCheck"),children:e.icon("check",i("doneCheck",e.S.palette.ink),o("doneCheckSvg",38))})}function Qu(e,r){let{bx:i,tx:o,tb:l,im:a}=e.S.D,s=e.S.X,c=r.imageUrl?xu(r.imageUrl,a("nextIconImage")):Yu(e,r.icon);/* @__PURE__ */
320
321
  return n.jsxs(t.View,{style:i("nextRow"),children:[
321
- /* @__PURE__ */n.jsx(t.View,{style:[...i("nextIcon"),Ss(s.nextRow,0),r.product===true?{overflow:"hidden"}:null],children:c}),
322
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(s.nextRow,1),children:[
322
+ /* @__PURE__ */n.jsx(t.View,{style:[...i("nextIcon"),Cs(s.nextRow,0),r.product===true?{overflow:"hidden"}:null],children:c}),
323
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(s.nextRow,1),children:[
323
324
  /* @__PURE__ */n.jsx(Text,{style:o("nextLabel"),children:r.when}),
324
- /* @__PURE__ */n.jsx(Text,{style:l("nextText"),children:r.what})]})]},r.key)}function HealthPlanStarted(e){let r=du(e),{bx:i,tb:o}=r.S.D;/* @__PURE__ */
325
- return n.jsxs(t.View,{style:i("done"),children:[Xu(r),
325
+ /* @__PURE__ */n.jsx(Text,{style:l("nextText"),children:r.what})]})]},r.key)}function HealthPlanStarted(e){let r=pu(e),{bx:i,tb:o}=r.S.D;/* @__PURE__ */
326
+ return n.jsxs(t.View,{style:i("done"),children:[Ju(r),
326
327
  /* @__PURE__ */n.jsx(Text,{style:o("doneTitle"),accessibilityRole:"header",children:e.title}),e.what.trim()===""?null:/* @__PURE__ */n.jsx(Text,{style:o("doneWhen"),children:e.what}),e.note?/* @__PURE__ */n.jsx(Text,{style:o("doneWho"),children:e.note}):null,
327
- /* @__PURE__ */n.jsx(t.View,{style:i("next"),accessibilityLabel:r.copy.startedSteps,children:e.steps.map(e=>Yu(r,e))})]})}function HealthPlanPlaced(e){let r=du(e),{copy:i}=r,{bx:o,tb:l}=r.S.D;/* @__PURE__ */
328
- return n.jsxs(t.View,{style:o("done"),testID:"health-plan-placed",children:[Xu(r),
328
+ /* @__PURE__ */n.jsx(t.View,{style:i("next"),accessibilityLabel:r.copy.startedSteps,children:e.steps.map(e=>Qu(r,e))})]})}function HealthPlanPlaced(e){let r=pu(e),{copy:i}=r,{bx:o,tb:l}=r.S.D;/* @__PURE__ */
329
+ return n.jsxs(t.View,{style:o("done"),testID:"health-plan-placed",children:[Ju(r),
329
330
  /* @__PURE__ */n.jsx(Text,{style:l("doneTitle"),accessibilityRole:"header",children:e.title}),e.arrives===null?null:/* @__PURE__ */n.jsx(Text,{style:l("doneWhen"),children:i.arrivesBy(e.arrives)}),e.orderNumber===null?null:/* @__PURE__ */n.jsx(Text,{style:l("doneWho"),children:i.orderTitle(e.orderNumber)}),
330
- /* @__PURE__ */n.jsx(t.View,{style:o("next"),accessibilityLabel:i.placedSteps,children:e.rows.map(e=>Yu(r,e))}),e.total!==null?Ks(r,e.total):null,e.note?/* @__PURE__ */n.jsx(Text,{style:l("shopFine","shopFineCenter"),children:e.note}):null]})}function HealthPlanCart(e){let t=du(e);return tc(t,e.lines,e.subtotal,e.renew,e.petPrices,e.handlers)}function HealthPlanOrders(e){let t=du(e);return ic(t,e)}function HealthPlanOrder(e){let t=du(e);return oc(t,e)}function HealthPlanBackRow(e){let r=du(e),{S:i,copy:o}=r;/* @__PURE__ */
331
+ /* @__PURE__ */n.jsx(t.View,{style:o("next"),accessibilityLabel:i.placedSteps,children:e.rows.map(e=>Qu(r,e))}),e.total!==null?Ys(r,e.total):null,e.note?/* @__PURE__ */n.jsx(Text,{style:l("shopFine","shopFineCenter"),children:e.note}):null]})}function HealthPlanCart(e){let t=pu(e);return rc(t,e.lines,e.subtotal,e.renew,e.petPrices,e.handlers)}function HealthPlanOrders(e){let t=pu(e);return lc(t,e)}function HealthPlanOrder(e){let t=pu(e);return ac(t,e)}function HealthPlanBackRow(e){let r=pu(e),{S:i,copy:o}=r;/* @__PURE__ */
331
332
  return n.jsxs(t.Pressable,{onPress:e.onBack,accessibilityRole:"button",accessibilityLabel:o.back,style:i.back,testID:"health-plan-back",children:[
332
333
  /* @__PURE__ */n.jsx(t.View,{style:{transform:[{scaleX:-1}]},children:r.icon("chev")}),
333
- /* @__PURE__ */n.jsx(Text,{tier:"control",style:i.toolLabel,children:o.back})]})}var Ju={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",borderWidth:0},Qu=/* @__PURE__ */new Set(["position","top","bottom","left","right","zIndex"]),Zu=12;function HealthPlanSheetFrame(e){let i=du(e),o=t.useWindowDimensions(),{S:l,copy:a,icon:s,still:c}=i,d=e.onClose,u=e.children??null,p=e.kicker,{bx:h,tx:g,ink:f,side:m}=l.D,y=r.useSafeAreaInsets(),b=Object.fromEntries(Object.entries(l.X.sheet.box).filter(([e])=>!Qu.has(e))),w=Math.max(Number(b.paddingBottom??0),y.bottom+Zu),x=Ro();/* @__PURE__ */
334
- return n.jsx(PlanLinger,{motions:[Ao,c?Mo:Eo],draw:u===null?null:([e,r])=>/* @__PURE__ */n.jsx(t.Modal,{visible:true,transparent:true,animationType:"none",onRequestClose:d,testID:"health-plan-sheet",children:/* @__PURE__ */n.jsx(t.KeyboardAvoidingView,{behavior:t.Platform.OS==="ios"?"padding":void 0,style:{flex:1},testID:"health-plan-sheet-keyboard",children:/* @__PURE__ */n.jsxs(t.View,{style:[l.scrim,{backgroundColor:"transparent"}],children:[
334
+ /* @__PURE__ */n.jsx(Text,{tier:"control",style:i.toolLabel,children:o.back})]})}var Zu={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",borderWidth:0},ep=/* @__PURE__ */new Set(["position","top","bottom","left","right","zIndex"]),tp=12;function HealthPlanSheetFrame(e){let i=pu(e),o=t.useWindowDimensions(),{S:l,copy:a,icon:s,still:c}=i,d=e.onClose,u=e.children??null,p=e.kicker,{bx:h,tx:g,ink:f,side:m}=l.D,y=r.useSafeAreaInsets(),b=Object.fromEntries(Object.entries(l.X.sheet.box).filter(([e])=>!ep.has(e))),w=Math.max(Number(b.paddingBottom??0),y.bottom+tp),x=zo();/* @__PURE__ */
335
+ return n.jsx(PlanLinger,{motions:[Vo,c?Uo:Wo],draw:u===null?null:([e,r])=>/* @__PURE__ */n.jsx(t.Modal,{visible:true,transparent:true,animationType:"none",onRequestClose:d,testID:"health-plan-sheet",children:/* @__PURE__ */n.jsx(t.KeyboardAvoidingView,{behavior:t.Platform.OS==="ios"?"padding":void 0,style:{flex:1},testID:"health-plan-sheet-keyboard",children:/* @__PURE__ */n.jsxs(t.View,{style:[l.scrim,{backgroundColor:"transparent"}],children:[
335
336
  /* @__PURE__ */n.jsx(t.Animated.View,{pointerEvents:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:l.palette.scrim,opacity:e}}),
336
337
  /* @__PURE__ */n.jsx(t.Pressable,{style:{flex:1},onPress:d,accessibilityRole:"button",accessibilityLabel:a.close}),
337
- /* @__PURE__ */n.jsxs(t.Animated.View,{style:[Do(b,x),{paddingBottom:w},c||r===void 0?{opacity:r}:{transform:[{translateY:r.interpolate({inputRange:[0,1],outputRange:[o.height,0]})}]}],accessibilityViewIsModal:true,children:[
338
+ /* @__PURE__ */n.jsxs(t.Animated.View,{style:[$o(b,x),{paddingBottom:w},c||r===void 0?{opacity:r}:{transform:[{translateY:r.interpolate({inputRange:[0,1],outputRange:[o.height,0]})}]}],accessibilityViewIsModal:true,children:[
338
339
  /* @__PURE__ */n.jsx(t.View,{style:h("sheetGrab")}),
339
340
  /* @__PURE__ */n.jsxs(t.View,{style:h("sheetTop"),children:[
340
341
  /* @__PURE__ */n.jsx(Text,{tier:"compact",style:g("sheetKicker"),children:p}),
341
342
  /* @__PURE__ */n.jsx(t.Pressable,{onPress:d,accessibilityRole:"button",accessibilityLabel:a.close,style:h("sheetClose"),testID:"health-plan-sheet-close",children:s("x",f("sheetClose",l.palette.ink),m("sheetCloseSvg",22))})]}),
342
- /* @__PURE__ */n.jsx(t.ScrollView,{keyboardShouldPersistTaps:"handled",children:u})]})]})})})})}var ep={width:"100%",height:"100%"};function tp(e,r,i){let{bx:o,tb:l}=e.S.D;/* @__PURE__ */
343
+ /* @__PURE__ */n.jsx(t.ScrollView,{keyboardShouldPersistTaps:"handled",children:u})]})]})})})})}var np={width:"100%",height:"100%"};function rp(e,r,i){let{bx:o,tb:l}=e.S.D;/* @__PURE__ */
343
344
  return n.jsxs(t.View,{style:o("coProduct"),children:[
344
- /* @__PURE__ */n.jsx(t.View,{style:[...o("coProductImage"),Ss(e.S.X.coProduct,0)],children:r.imageUrl?bu(r.imageUrl,ep,"contain"):null}),
345
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(e.S.X.coProduct,1),children:[
346
- /* @__PURE__ */n.jsx(Text,{style:l("coProductTitle"),children:r.title}),i===""?null:/* @__PURE__ */n.jsx(Text,{style:l("coProductLine"),children:i})]})]})}function np(e,r,i,o,l){let{bx:a,tx:s,inner:c}=e.S.D;/* @__PURE__ */
347
- return n.jsxs(t.View,{style:a("every"),accessibilityRole:"radiogroup",accessibilityLabel:e.copy.shipsEvery,children:[c("every"),r.map((r,c)=>/* @__PURE__ */n.jsx(t.Pressable,{onPress:o?void 0:()=>l(r),disabled:o,accessibilityRole:"radio",accessibilityState:{checked:i===r,disabled:o},accessibilityLabel:e.copy.days(r),style:[...a("everyButton",i===r&&"everyButtonOn"),Ss(e.S.X.every,c),{justifyContent:"center"}],testID:`health-plan-every-${r}`,children:/* @__PURE__ */n.jsx(Text,{style:s("everyButton",i===r&&"everyButtonOn"),numberOfLines:1,adjustsFontSizeToFit:true,children:e.copy.days(r)})},r))]})}function rp(e,r){let i=e.S.X,{bx:o,tx:l,inner:a}=e.S.D,s=i.coOptionHit.grid[0],c=(typeof s=="number"?s:0)+(typeof i.coOptionHit.box.columnGap=="number"?i.coOptionHit.box.columnGap:0);/* @__PURE__ */
345
+ /* @__PURE__ */n.jsx(t.View,{style:[...o("coProductImage"),Cs(e.S.X.coProduct,0)],children:r.imageUrl?xu(r.imageUrl,np,"contain"):null}),
346
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(e.S.X.coProduct,1),children:[
347
+ /* @__PURE__ */n.jsx(Text,{style:l("coProductTitle"),children:r.title}),i===""?null:/* @__PURE__ */n.jsx(Text,{style:l("coProductLine"),children:i})]})]})}function ip(e,r,i,o,l){let{bx:a,tx:s,inner:c}=e.S.D;/* @__PURE__ */
348
+ return n.jsxs(t.View,{style:a("every"),accessibilityRole:"radiogroup",accessibilityLabel:e.copy.shipsEvery,children:[c("every"),r.map((r,c)=>/* @__PURE__ */n.jsx(t.Pressable,{onPress:o?void 0:()=>l(r),disabled:o,accessibilityRole:"radio",accessibilityState:{checked:i===r,disabled:o},accessibilityLabel:e.copy.days(r),style:[...a("everyButton",i===r&&"everyButtonOn"),Cs(e.S.X.every,c),{justifyContent:"center"}],testID:`health-plan-every-${r}`,children:/* @__PURE__ */n.jsx(Text,{style:s("everyButton",i===r&&"everyButtonOn"),numberOfLines:1,adjustsFontSizeToFit:true,children:e.copy.days(r)})},r))]})}function op(e,r){let i=e.S.X,{bx:o,tx:l,inner:a}=e.S.D,s=i.coOptionHit.grid[0],c=(typeof s=="number"?s:0)+(typeof i.coOptionHit.box.columnGap=="number"?i.coOptionHit.box.columnGap:0);/* @__PURE__ */
348
349
  return n.jsxs(t.View,{style:o("coOption",r.on&&"coOptionOn"),children:[a("coOption",r.on&&"coOptionOn"),
349
350
  /* @__PURE__ */n.jsxs(t.Pressable,{onPress:r.onPress,accessibilityRole:"radio",accessibilityState:{checked:r.on},accessibilityLabel:r.label,style:[...o("coOptionHit"),{flexWrap:"wrap"}],testID:r.testID,children:[
350
- /* @__PURE__ */n.jsx(t.View,{style:[...o("coRadio"),Ss(i.coOptionHit,0)],children:a("coRadio",r.on&&"coRadioOn")}),
351
- /* @__PURE__ */n.jsx(Text,{style:[...l("coOptionStrong"),Ss(i.coOptionHit,1)],children:r.label}),
352
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(i.coOptionHit,2),children:[
353
- /* @__PURE__ */n.jsx(Text,{style:l("coOptionPrice"),children:r.price??""}),r.was===null?null:/* @__PURE__ */n.jsx(Text,{style:l("coOptionPriceWas"),children:r.was})]}),r.line===null?null:/* @__PURE__ */n.jsx(Text,{style:[...l("coOptionSmall"),{width:"100%",paddingLeft:c}],children:r.line})]}),r.after]})}function HealthPlanCheckoutSheet(e){let r=du(e),{S:i,copy:o}=r,{bx:l,tb:a}=i.D,s=e.prices,c=e.mode==="sub",d=c?s.first:s.once,u=[c?o.renews(s):o.onceFine,o.checkoutNote].filter(e=>e!=="").join(" ");/* @__PURE__ */
351
+ /* @__PURE__ */n.jsx(t.View,{style:[...o("coRadio"),Cs(i.coOptionHit,0)],children:a("coRadio",r.on&&"coRadioOn")}),
352
+ /* @__PURE__ */n.jsx(Text,{style:[...l("coOptionStrong"),Cs(i.coOptionHit,1)],children:r.label}),
353
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(i.coOptionHit,2),children:[
354
+ /* @__PURE__ */n.jsx(Text,{style:l("coOptionPrice"),children:r.price??""}),r.was===null?null:/* @__PURE__ */n.jsx(Text,{style:l("coOptionPriceWas"),children:r.was})]}),r.line===null?null:/* @__PURE__ */n.jsx(Text,{style:[...l("coOptionSmall"),{width:"100%",paddingLeft:c}],children:r.line})]}),r.after]})}function HealthPlanCheckoutSheet(e){let r=pu(e),{S:i,copy:o}=r,{bx:l,tb:a}=i.D,s=e.prices,c=e.mode==="sub",d=c?s.first:s.once,u=[c?o.renews(s):o.onceFine,o.checkoutNote].filter(e=>e!=="").join(" ");/* @__PURE__ */
354
355
  return n.jsxs(t.View,{style:l("co"),testID:"health-plan-checkout-sheet",children:[
355
- /* @__PURE__ */n.jsx(Text,{style:Ju,accessibilityRole:"header",testID:"health-plan-checkout-title",children:o.checkoutTitle(s)}),tp(r,e.item,e.line),
356
- /* @__PURE__ */n.jsxs(t.View,{style:l("coOptions"),accessibilityRole:"radiogroup",accessibilityLabel:o.optionsLabel,children:[rp(r,{on:c,label:o.subscribe,price:s.first,was:e.offer?s.box:null,line:e.offer?o.checkoutOffer(s):null,onPress:()=>e.onModeChange("sub"),testID:"health-plan-co-sub",after:c?/* @__PURE__ */n.jsxs(t.View,{style:l("coWhen"),children:[
357
- /* @__PURE__ */n.jsx(Text,{style:a("coKicker"),children:o.shipsEvery}),np(r,e.intervals,e.every,e.busy,e.onEveryChange)]}):null}),rp(r,{on:!c,label:o.buyOnceOption,price:s.once,was:s.onceDiscountPercent>0?s.box:null,line:e.oneBoxOffer?o.onceOffer(s):null,onPress:()=>e.onModeChange("once"),testID:"health-plan-co-once"})]}),Gs(r,e.rows),Us(r,o.checkoutGo(s,c,d??""),e.onConfirm,{disabled:e.confirmDisabled,testID:"health-plan-checkout-go",part:"coButton"}),u===""?null:/* @__PURE__ */n.jsx(Text,{style:a("coFine"),children:u})]})}function HealthPlanManageSheet(e){let r=du(e),{S:i,copy:o}=r,{bx:l,tb:a}=i.D,s=e.prices,c=e.onSeeOrders??null;/* @__PURE__ */
356
+ /* @__PURE__ */n.jsx(Text,{style:Zu,accessibilityRole:"header",testID:"health-plan-checkout-title",children:o.checkoutTitle(s)}),rp(r,e.item,e.line),
357
+ /* @__PURE__ */n.jsxs(t.View,{style:l("coOptions"),accessibilityRole:"radiogroup",accessibilityLabel:o.optionsLabel,children:[op(r,{on:c,label:o.subscribe,price:s.first,was:e.offer?s.box:null,line:e.offer?o.checkoutOffer(s):null,onPress:()=>e.onModeChange("sub"),testID:"health-plan-co-sub",after:c?/* @__PURE__ */n.jsxs(t.View,{style:l("coWhen"),children:[
358
+ /* @__PURE__ */n.jsx(Text,{style:a("coKicker"),children:o.shipsEvery}),ip(r,e.intervals,e.every,e.busy,e.onEveryChange)]}):null}),op(r,{on:!c,label:o.buyOnceOption,price:s.once,was:s.onceDiscountPercent>0?s.box:null,line:e.oneBoxOffer?o.onceOffer(s):null,onPress:()=>e.onModeChange("once"),testID:"health-plan-co-once"})]}),Xs(r,e.rows),Gs(r,o.checkoutGo(s,c,d??""),e.onConfirm,{disabled:e.confirmDisabled,testID:"health-plan-checkout-go",part:"coButton"}),u===""?null:/* @__PURE__ */n.jsx(Text,{style:a("coFine"),children:u})]})}function HealthPlanManageSheet(e){let r=pu(e),{S:i,copy:o}=r,{bx:l,tb:a}=i.D,s=e.prices,c=e.onSeeOrders??null;/* @__PURE__ */
358
359
  return n.jsxs(t.View,{style:l("co"),testID:"health-plan-manage-sheet",children:[
359
- /* @__PURE__ */n.jsx(Text,{style:i.h3,accessibilityRole:"header",children:o.manageTitle(s)}),tp(r,e.item,o.subscribedLine(s,e.nextBoxDay)),
360
+ /* @__PURE__ */n.jsx(Text,{style:i.h3,accessibilityRole:"header",children:o.manageTitle(s)}),rp(r,e.item,o.subscribedLine(s,e.nextBoxDay)),
360
361
  /* @__PURE__ */n.jsxs(t.View,{children:[
361
- /* @__PURE__ */n.jsx(Text,{style:a("coKicker"),children:o.shipsEvery}),np(r,e.intervals,e.every,e.busy,e.onEveryChange)]}),Us(r,o.skip,e.onSkip,{ghost:true,disabled:e.busy,testID:"health-plan-skip"}),qs(r,o.cancel,e.onCancel,"health-plan-cancel"),c!==null?qs(r,o.seeOrders,c,"health-plan-manage-orders"):null]})}function HealthPlanCartCheckout(e){let t=du(e);return nc(t,e.lines,e.lineTotal,e.rows,e.total,e.renew,e.place,e.fine)}function HealthPlanWeightSheet(r){let i=du(r),{S:o,copy:l}=i,{bx:a,tx:s,tb:c,inner:d}=o.D,[u,p]=e.useState(false);/* @__PURE__ */
362
+ /* @__PURE__ */n.jsx(Text,{style:a("coKicker"),children:o.shipsEvery}),ip(r,e.intervals,e.every,e.busy,e.onEveryChange)]}),Gs(r,o.skip,e.onSkip,{ghost:true,disabled:e.busy,testID:"health-plan-skip"}),Ks(r,o.cancel,e.onCancel,"health-plan-cancel"),c!==null?Ks(r,o.seeOrders,c,"health-plan-manage-orders"):null]})}function HealthPlanCartCheckout(e){let t=pu(e);return ic(t,e.lines,e.lineTotal,e.rows,e.total,e.renew,e.place,e.fine)}function HealthPlanWeightSheet(r){let i=pu(r),{S:o,copy:l}=i,{bx:a,tx:s,tb:c,inner:d}=o.D,[u,p]=e.useState(false);/* @__PURE__ */
362
363
  return n.jsxs(t.View,{style:{gap:12},testID:"health-plan-weight-sheet",children:[
363
364
  /* @__PURE__ */n.jsx(Text,{style:o.h3,accessibilityRole:"header",children:l.weightTitle(r.prices)}),
364
365
  /* @__PURE__ */n.jsx(Text,{style:c("sheetBody"),children:l.weightBody}),
@@ -367,23 +368,23 @@ return n.jsxs(t.View,{style:{gap:12},testID:"health-plan-weight-sheet",children:
367
368
  /* @__PURE__ */n.jsxs(t.View,{style:a("weightInputWrap"),children:[
368
369
  /* @__PURE__ */n.jsx(t.TextInput,{value:r.value,onChangeText:r.onChange,keyboardType:"decimal-pad",placeholder:"0.0",accessibilityLabel:l.weightField,onSubmitEditing:r.onSave,onFocus:()=>p(true),onBlur:()=>p(false),style:[...a("weightInput"),...s("weightInput")],testID:"health-plan-weight-input"}),d("weightInput",u&&"weightInputFocus"),
369
370
  /* @__PURE__ */n.jsx(t.View,{pointerEvents:"none",style:[...a("weightUnit"),{top:0,bottom:0,justifyContent:"center"}],children:/* @__PURE__ */n.jsx(Text,{style:s("weightUnit"),children:r.unit==="kg"?l.weightUnitKg:l.weightUnit})})]})]}),r.error===""?null:/* @__PURE__ */n.jsx(Text,{style:c("weightError"),accessibilityLiveRegion:"polite",testID:"health-plan-weight-error",children:r.error}),
370
- /* @__PURE__ */n.jsx(t.View,{style:a("weightActions"),children:Us(i,l.weightSave,r.onSave,{disabled:r.saving,testID:"health-plan-weight-save"})})]})}var ip="Pay with";function op(e,t){let{hp:r,copy:i,props:o,rows:l}=e,{sheet:a,quote:s,subscription:c,sub:d,redirecting:u}=r,p=o.item,h=o.design.pick;if(a===null||t!==void 0&&a.kind!==t)return null;let g=s?.intervalOptions??c?.intervalOptions??[];if(a.kind==="checkout"&&s!==null)return{kicker:i.checkoutKicker,body:/* @__PURE__ */n.jsx(HealthPlanCheckoutSheet,{item:p,line:h.checkoutLine??h.line??p.description??"",prices:r.prices(a.every),mode:a.mode,every:a.every,intervals:g,offer:r.offer,oneBoxOffer:r.oneBox!==null,rows:l,busy:d.busy,confirmDisabled:d.busy||u,onModeChange:e=>r.openSheet({...a,mode:e}),onEveryChange:e=>r.openSheet({...a,every:e}),onConfirm:()=>{r.confirmCheckout()}})};if(a.kind==="manage"&&c!==null&&r.active)return{kicker:i.manageKicker,body:/* @__PURE__ */n.jsx(HealthPlanManageSheet,{item:p,prices:r.prices(c.intervalDays),nextBoxDay:r.nextBoxDay(c),every:c.intervalDays,intervals:g,busy:d.busy,onEveryChange:r.changeInterval,onSkip:()=>{r.skip()},onCancel:()=>{r.cancel()},onSeeOrders:r.shop?r.seeOrdersFromManage:null})};if(a.kind==="cartCheckout"&&r.batch.length>0){let{fmt:e,currency:t,lines:o,unitOf:a,isPick:s,itemOf:c}=r,p=e(r.batchTotal,t)??"";return{kicker:i.checkoutKicker,body:/* @__PURE__ */n.jsx(HealthPlanCartCheckout,{lines:r.batch.map(r.lineView),lineTotal:n=>{let r=o.find(e=>e.productId===n.key),i=r===void 0?null:a(r);return i===null||r===void 0?null:e(Math.round(i*r.qty*100)/100,s(r.productId)?t:c(r.productId)?.currency??t)},rows:l,total:p,renew:r.batchRenew,place:{label:i.placeOrder(p,r.batchSub!==null),disabled:!r.cartReady||d.busy||u,onPress:()=>{r.placeCart()}},fine:[i.cartFine(r.batchRenew),r.apart?i.cartSubscriptionApart:"",i.checkoutNote].filter(e=>e!=="").join(" ")})}}return a.kind==="weight"?{kicker:i.weightKicker,body:/* @__PURE__ */n.jsx(HealthPlanWeightSheet,{prices:r.pr,value:r.weightInput,onChange:r.setWeightInput,error:r.weightError,saving:r.savingWeight,unit:r.kg?"kg":"lb",onSave:()=>{r.saveWeight()}})}:null}function ConnectedHealthPlanSheet(){let e=Hu();if(e===null)return null;let t=op(e);/* @__PURE__ */
371
- return n.jsx(HealthPlanSheetFrame,{kicker:t?.kicker??"",onClose:e.hp.closeSheet,children:t?.body??null})}function ConnectedHealthPlanCheckoutSheet(){let e=Hu();return e===null?null:op(e,"checkout")?.body??null}function ConnectedHealthPlanManageSheet(){let e=Hu();return e===null?null:op(e,"manage")?.body??null}function ConnectedHealthPlanCartCheckout(){let e=Hu();return e===null?null:op(e,"cartCheckout")?.body??null}function ConnectedHealthPlanWeightSheet(){let e=Hu();return e===null?null:op(e,"weight")?.body??null}function ConnectedHealthPlanStarted(){let e=Hu(),t=e?.hp.started??null;if(e===null||t===null)return null;let{hp:r,copy:i,props:o}=e,l=o.design.pick,a=t.kind==="sub"?t.sub:null,s=t.kind==="sub"?t.sub.productId:t.order.productId,c=r.planItems.find(e=>e.productId===s)??o.item,d=r.prices(a?.intervalDays??r.every,c.title),u=(e,t)=>e.step==="first_box_ships"&&t?i.tomorrow:r.day(e.on)??e.on,p=a===null?[{icon:"truck",when:i.tomorrow,what:i.firstBoxShips}]:a.timeline.map((e,t)=>{switch(e.step){case"first_box_ships":return{icon:"truck",when:u(e,t===0),what:i.firstBoxShips};case"checkin":return{icon:"chat",when:u(e,false),what:i.checkin(l.checkin??null)};case"refill_reminder":return{icon:"repeat",when:u(e,false),what:i.refill};default:return{icon:"calendar",when:u(e,false),what:i.nextBoxShips(d)}}});/* @__PURE__ */
372
- return n.jsx(HealthPlanStarted,{title:a===null?i.orderedTitle(d):i.startedTitle(d),what:i.startedWhat(d),note:i.startedNote,steps:p.map(e=>({key:`${e.icon}${e.when}`,...e}))})}function ConnectedHealthPlanCart(){let e=Hu();if(e===null||e.hp.started!==null||e.hp.top?.kind!=="cart")return null;let{hp:t}=e;/* @__PURE__ */
373
- return n.jsx(HealthPlanCart,{lines:t.views,subtotal:t.fmt(t.cartTotal,t.currency)??"",renew:t.renewPrices,petPrices:t.pr,handlers:{onQuantity:t.stepQuantity,onRemove:t.removeLine,onMode:(e,n)=>t.editLine(e,e=>({...e,mode:n,qty:1})),onEvery:(e,n)=>t.editLine(e,e=>({...e,every:n})),onOrders:()=>t.push({kind:"orders"})}})}function lp(e){let{hp:t,props:n}=e,r=t.subscription;return r!==null&&t.active?{name:r.title??n.item.title,imageUrl:n.item.imageUrl??null,next:t.nextBoxDay(r),every:r.intervalDays,onManage:()=>t.openSheet({kind:"manage"})}:null}function ConnectedHealthPlanOrders(){let e=Hu();if(e===null||e.hp.started!==null||e.hp.top?.kind!=="orders")return null;let{hp:t}=e,r=e.props.locale;/* @__PURE__ */
374
- return n.jsx(HealthPlanOrders,{subscription:lp(e),orders:e.allOrders,loaded:t.everfurOrders.loaded,fmt:(e,n)=>t.fmt(e,n),day:e=>$s(e,r),onOpen:e=>t.push({kind:"order",key:e}),onBack:t.closeOverlays,petPrices:t.pr,more:t.everfurOrders.next===null?null:{onMore:t.moreOrders,loading:t.everfurOrders.loading}})}function ConnectedHealthPlanOrder(){let e=Hu(),t=e?.hp.top;if(e===null||e.hp.started!==null||t?.kind!=="order")return null;let{hp:r,copy:i,props:o}=e,l=e.allOrders.find(e=>e.key===t.key);if(l===void 0)return null;let a=l.everfur===true&&l.productId!==null?r.itemOf(l.productId):void 0,s=o.onOrderHelp;/* @__PURE__ */
375
- return n.jsx(HealthPlanOrder,{order:l,fmt:(e,t)=>r.fmt(e,t),day:e=>$s(e,o.locale),rows:e.rows.map(e=>e.label===ip?{...e,label:i.paidWith}:e),onBuyAgain:a===void 0?null:()=>r.addToCart(a,"once"),onHelp:s?()=>{St(s,l.key)}:null})}function ap(e){let t=[...new Set(e.filter(e=>e!=null))];return t.length===1?t[0]??null:null}function ConnectedHealthPlanPlaced(){let e=Hu(),t=e?.hp.top;if(e===null||e.hp.started!==null||t?.kind!=="placed")return null;let{hp:r,copy:i,props:o}=e,l=t.orders,a=l[0],s=r.prices(r.every,a?.title??(a?r.itemOf(a.productId)?.title:void 0)??o.item.title),c=ap(l.map(e=>e.tracking?.orderNumber)),d=l.length>0&&l.every(e=>e.tracking?.estimatedDelivery)?ap(l.map(e=>e.tracking?.estimatedDelivery)):null,u=r.day(d),p=ap(l.map(e=>e.currency)),h=p===null?null:r.fmt(Math.round(l.reduce((e,t)=>e+(t.total??t.price),0)*100)/100,p),g=[...l.map(e=>{let t=r.itemOf(e.productId);return{key:e.orderId,icon:"box",imageUrl:t?.imageUrl??null,when:i.cartItemQuantity(e.quantity??1),what:e.title??t?.title??"",product:true}}),{key:"ships",icon:"truck",when:i.tomorrow,what:r.withTracking(i.placedShips)},...u===null?[]:[{key:"arrives",icon:"calendar",when:u,what:i.placedArrives}]];/* @__PURE__ */
376
- return n.jsx(HealthPlanPlaced,{title:i.orderedTitle(s),arrives:u,orderNumber:c,rows:g,total:l.length>1&&h!==null?h:null,note:i.startedNote})}var sp=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function cp(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}function dp(e){let t=e?.focus;if(!t)return sp([]);let n=e?.byline,r=t.risk?.kind,i=r==="risk"||r==="watch"||r==="clear"?r:void 0;return sp([cp({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:i,dot:i===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&n?{text:t.quote.text,by:n.shortName??void 0,image:n.imageUrl??null,tag:t.quote.tag}:void 0})])}function up(e){let t=e?.routine?.steps??[],n=e?.byline?.shortName;return sp(t.map((e,t)=>cp({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?n?gc.fromVet(n):void 0:e.source??void 0,tone:e.tone??"y"})))}function pp(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function hp(e,t){return sp(e.map(e=>cp({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:pp(e,t),badge:e.sample?p.sample:void 0})))}var gp="everfur.slot/1";var fp=/* @__PURE__ */Symbol("bad");function mp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yp(e,t,n){return typeof e=="string"&&e.length>=t&&e.length<=n?e:fp}function bp(e,t){return e==null?void 0:yp(e,0,t)}function wp(e){return e===void 0?{}:mp(e)?e:fp}function xp(e){let t=wp(e);if(t===fp)return fp;for(let e of Object.values(t))if(typeof e!="string")return fp;return t}function kp(e,t,n){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=n?e:fp}function vp(e){if(e==null)return;if(e==="hide")return"hide";if(!mp(e))return fp;let t=yp(e.type,1,64),n=bp(e.variant,64),r=wp(e.settings),i=xp(e.bind),o=xp(e.actions);return t===fp||n===fp||r===fp||i===fp||o===fp?fp:/* @__PURE__ */Object.freeze({type:t,...n?{variant:n}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...i}),actions:/* @__PURE__ */Object.freeze({...o})})}function Sp(e){if(e==null)return;if(!mp(e))return fp;let t=yp(e.source,0,80);return t===fp||e.op!=="present"&&e.op!=="absent"?fp:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function Tp(e){if(!mp(e))return fp;let t=yp(e.id,1,64),n=yp(e.type,1,64),r=bp(e.variant,64),i=wp(e.settings),o=xp(e.bind),l=bp(e.repeat,80),a=Sp(e.visibleIf),s=xp(e.actions),c=vp(e.fallback);return t===fp||n===fp||r===fp||i===fp||o===fp||l===fp||a===fp||s===fp||c===fp?fp:/* @__PURE__ */Object.freeze({id:t,type:n,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...i}),bind:/* @__PURE__ */Object.freeze({...o}),...l?{repeat:l}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var Cp=/^everfur\.slot\/(\d{1,4})$/,jp=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,Ip=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,Hp=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,Pp=/^#[0-9a-fA-F]{6}$/,Fp=1e4;function Rp(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&n+1<e.length?(t+=4,n++):t+=3}return t}function Dp(e){return e.trim()!==""&&!jp.test(e)&&!Ip.test(e)}function zp(e){try{return Rp(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function $p(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let n=Cp.exec(t);return n===null?"unparseable":Number(n[1])>1?"newer_schema":null}function Op(e){let t={};for(let[n,r]of Object.entries(e))Hp.test(n)&&(typeof r=="string"&&Pp.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=Fp)&&(t[n]=r);/* @__PURE__ */
377
- return Object.freeze(t)}function Bp(e){let t={};for(let[n,r]of Object.entries(e)){let e=typeof r=="string"?r:r!==null&&typeof r=="object"?r.text:void 0;typeof e=="string"&&e.length<=500&&Dp(e)&&(t[n]=e)}/* @__PURE__ */
378
- return Object.freeze(t)}function _p(e,t){if(zp(e)>65536)return{ok:false,reason:"too_large"};let n=$p(e);if(n!==null)return{ok:false,reason:n};let r=e,i=yp(r.slot,3,64),o=r.docVersion===void 0||r.docVersion===null?null:kp(r.docVersion,1,Number.MAX_SAFE_INTEGER),l=r.minBlocks===void 0?1:kp(r.minBlocks,0,50),a=r.theme===void 0||r.theme===null?{}:wp(r.theme),s=a===fp?fp:wp(a.tokens),c=wp(r.copy),d=Array.isArray(r.parts)&&r.parts.length>=1&&r.parts.length<=50?r.parts.map(Tp):fp;return i===fp||o===fp||l===fp||s===fp||c===fp?{ok:false,reason:"unparseable"}:d===fp||d.some(e=>e===fp)?{ok:false,reason:"unparseable"}:i!==t?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:gp,slot:i,docVersion:o,minBlocks:l,tokens:Op(s),parts:/* @__PURE__ */Object.freeze(d),copy:Bp(c)})}}function Lp(e){if(e===null)return{ok:false,reason:"too_large"};if(typeof e!="string")return{ok:true,raw:e};if(e.length>65536||Rp(e)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(e)}}catch{return{ok:false,reason:"unparseable"}}}function Ep(e){/* @__PURE__ */
379
- return Object.freeze({settings:{},bind:{},actions:{},...e})}var Ap=/* @__PURE__ */Object.freeze({focus:Ep({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:Ep({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:Ep({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:Ep({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:Ep({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:Ep({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:Ep({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function Wp(e,t){/* @__PURE__ */
380
- return Object.freeze({schema:gp,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var Vp=Ap,Mp=/* @__PURE__ */Object.freeze({"health_plan.focus":Wp("health_plan.focus",[Vp.focus,Vp.tips]),"today.health":Wp("today.health",[Vp.focus,Vp.tips]),"shop.shelf":Wp("shop.shelf",[Vp.shelf]),"shop.cart":Wp("shop.cart",[Vp.cartLines,Vp.cartSummary]),"shop.orders":Wp("shop.orders",[Vp.orders])});function Np(e){return Object.prototype.hasOwnProperty.call(Mp,e)?Mp[e]??null:null}function Up(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function qp(e){let t=3421674724,n=2216829733;for(let r of Up(e)){n=(n^r)>>>0;let e=n*435,i=Math.floor(e/4294967296),o=e>>>0;t=t*435+i+n*256>>>0,n=o}return t.toString(16).padStart(8,"0")+n.toString(16).padStart(8,"0")}var Gp=/* @__PURE__ */new WeakMap;function Kp(e){return Gp.get(e)}var Xp="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var Yp={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var Jp="everfur.slots.v2",Qp="everfur.slots.installId.v2";var Zp=6e4,eh=3e5,th=15e3,nh=10080*60*1e3,rh=/^(W\/)?"[^"]{1,200}"$/,ih=/^[A-Za-z0-9_-]{8,128}$/,oh=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,lh=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,ah=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function sh(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function ch(e){if(e===null)return Zp;if(lh.test(e))return 0;let t=oh.exec(e);return t===null?Zp:Math.min(Number(t[1])*1e3,eh)}var dh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function uh(e){let t=e.now??Date.now,n=()=>{try{return e.scope?.()??ah}catch{return ah}},r=/* @__PURE__ */new Map,i=/* @__PURE__ */new Map,o=/* @__PURE__ */new Map,l=null,a=null,s=false,c=Promise.resolve(),d=(t,n)=>{try{e.telemetry?.track(t,n)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),i.clear(),l=null,s=true),a=e.epoch)},p=e=>{let t=n();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,n,r)=>{if(!p(t))return false;try{await e.kv.getItem(n)===r&&await e.kv.removeItem(n)}catch{}return true},g=t=>{let n=qp(t.tenant);if(l?.tenant===n)return l.id;let r=s;s=false;let i=(async()=>{if(!r)try{let t=await e.kv.getItem(Qp),r=t===null?null:JSON.parse(t);if(r?.tenant===n&&typeof r.id=="string"&&ih.test(r.id))return r.id}catch{}try{let r=(e.newId??sh)();if(!ih.test(r))return null;let i=JSON.stringify({tenant:n,id:r});return await e.kv.setItem(Qp,i),await h(t,Qp,i)?null:r}catch{return null}})();return l={tenant:n,id:i},i},f=async t=>{try{let n=await e.kv.getItem(Jp),r=n===null?null:JSON.parse(n);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,n)=>{let r=await f(qp(e.doc)),i=dh(r.docs,n)?r.docs[n]:void 0;if(i==null||typeof i.at!="number")return null;let o=t()-i.at;if(!(o<nh)||o<-eh)return null;let l=_p(i.doc,n);if(!l.ok)return null;let a=typeof i.etag=="string"&&rh.test(i.etag)?i.etag:null;return{doc:l.doc,etag:a}},y=(t,n,r)=>{let i=qp(t.doc);return c=c.then(async()=>{if(!p(t))try{let o=await f(i);if(p(t))return;let l={...o.docs},a=r(dh(l,n)?l[n]:void 0);if(a===null?delete l[n]:l[n]=a,Object.keys(l).length===0)await e.kv.removeItem(Jp);else{let n=JSON.stringify({scope:i,docs:l});await e.kv.setItem(Jp,n),await h(t,Jp,n)}}catch{}}),c},b=async(n,o)=>{let l=`${n.doc}|${o}`,a=r.get(l),s=a===void 0?await m(n,o):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(n),h={"x-everfur-blocks":e.blocks??Xp};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,b=Zp,w=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(o)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&rh.test(t)?t:null,b=ch(e("cache-control"))}}).catch(()=>null),x=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},k=e=>(i.set(l,t()),d("slots.read_failed",{slot:o,status:e}),x());if(p(n))return{doc:null,source:"bundled"};if(w===null)return k(null);if(w.ok){let e=Lp(w.value);if(!e.ok)return d("slots.refused",{slot:o,reason:e.reason}),x();let i=_p(e.raw,o);if(!i.ok)return d("slots.refused",{slot:o,reason:i.reason}),x();let a=t();return r.set(l,{doc:i.doc,etag:f,at:a,ttl:b}),await y(n,o,()=>({etag:f,doc:e.raw,at:a})),{doc:i.doc,source:"live"}}let v=w.error.httpStatus;if(v===304&&c?.doc){let e=t();return r.set(l,{doc:c.doc,etag:c.etag,at:e,ttl:b}),await y(n,o,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return v===404?(r.set(l,{doc:null,etag:null,at:t(),ttl:b}),await y(n,o,()=>null),{doc:null,source:"bundled"}):k(v??null)},w=(e,n)=>{let i=r.get(`${e.doc}|${n}`);return i===void 0||t()-i.at>=i.ttl?null:i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"}},x=async(e,t)=>{let n=r.get(`${e.doc}|${t}`);if(n!==void 0)return n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"};let i=await m(e,t);return i===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"last-known-good"}};return{peek(e){let t=n();return u(t),w(t,e)},stored(e){let t=n();return u(t),x(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=n();u(r);let l=w(r,e);if(l!==null)return Promise.resolve(l);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=o.get(s);if(c!==void 0)return c;let d=i.get(a),p=(d!==void 0&&t()-d<th?x(r,e):b(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>o.delete(s));return o.set(s,p),p}}}function ph(e){let t=Kp(e)??"unknown",n=e.registry.services.authFor(null),r=n.mode==="personalized"?`u:${n.userRef??""}`:`a:${n.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var hh=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function gh(e,t=fh){let n=globalThis,r=n[hh];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,n[hh]=r);let i=r,o=i.get(e);return o===void 0&&(o=t(e),i.set(e,o)),o}function fh(e){let{services:t}=e.registry;return uh({send:(e,n)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,n),kv:t.kv,telemetry:t.telemetry,scope:()=>ph(e)})}function mh(e,t){return{doc:t.doc??Np(e),source:t.source}}function yh(t,n){let{runtime:r,scopeEpoch:i}=$(),o=n?gh(r):null,[l,a]=e.useState(()=>{let e=o?.peek(t);return e?{slot:t,epoch:i,value:mh(t,e)}:null});return e.useEffect(()=>{if(o===null)return;let e=true,n=false,r=o.peek(t);if(r!==null){a({slot:t,epoch:i,value:mh(t,r)});return}return o.stored(t).then(r=>{e&&!n&&a({slot:t,epoch:i,value:mh(t,r)})}),o.load(t).then(r=>{n=true,e&&a({slot:t,epoch:i,value:mh(t,r)})}),()=>{e=false}},[o,t,i]),n?l!==null&&l.slot===t&&l.epoch===i?l.value:{doc:null,source:"pending"}:{doc:Np(t),source:"bundled"}}function bh(e){return{knows(t,n){let r=Object.prototype.hasOwnProperty.call(Yp,t)?Yp[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(n===void 0)return true;let i=r.settings.variant;return n===i?.default?true:r.variants.includes(n)?i?.platforms===void 0||i.platforms.includes(e):false}}}function wh(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function xh(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let n=Sh(e,t);if(n!==null)return n;let r=Object.prototype.hasOwnProperty.call(Yp,e.type)?Yp[e.type]:void 0,i=r?.fallback??null;if(i===null||i==="hide"||!t.knows(i))return null;let o=Yp[i];if(r?.fallbackProps!==void 0&&o!==void 0)return vh(e,r,i,o);let l={};for(let[t,n]of Object.entries(e.bind))o?.props.includes(t)&&(l[t]=n);return{...wh(e),type:i,settings:{},bind:l,actions:{}}}function kh(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function vh(e,t,n,r){let i={},o={},l={},a;for(let[n,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(i[n]=e.bind[s.from]);continue}let t=s.const;if(n==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===n);c!==void 0&&kh(c[1],t)?o[c[0]]=t:typeof t=="string"&&(l[n]=t)}let s=/* @__PURE__ */new Set([...Object.keys(i),...Object.keys(l),...Object.keys(o).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{...wh(e),type:n,...a!==void 0?{variant:a}:{},settings:o,bind:i,actions:{},...Object.keys(l).length>0?{fixed:l}:{}}}function Sh(e,t){let n=e.fallback;return n===void 0||n==="hide"||!t.knows(n.type,n.variant)?null:{...wh(e),type:n.type,...n.variant?{variant:n.variant}:{},settings:n.settings,bind:n.bind,actions:n.actions}}function Th(e,t){let n=[];for(let r of e.parts){let e=xh(r,t);e!==null&&n.push(e)}return n.length===0||n.length<e.minBlocks?null:n}var Ch=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),jh=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),Ih=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),Hh=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,Ph=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,Fh=512;function Rh(e){if(e.length>Fh)return false;let t=Ph.exec(e);return t!==null&&Ch.includes((t[1]??"").toLowerCase())}function Dh(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);switch(n){case"navigate":return jh.includes(r)?{kind:n,route:r}:null;case"open_sheet":return Ih.includes(r)?{kind:n,id:r}:null;case"track":return Hh.test(r)?{kind:n,event:r}:null;case"external":return Rh(r)?{kind:n,url:r}:null;default:return null}}var zh=/* @__PURE__ */Object.freeze({"plan.needs":"list","plan.tips":"list","plan.items":"list","cart.lines":"list","cart.summary":"item","orders.recent":"list"});function $h(e){return Object.prototype.hasOwnProperty.call(zh,e)}function Oh(e){if(e===void 0)return null;let t=e.indexOf(":");if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);return r===""?null:n==="data"?$h(r)?{kind:n,name:r}:null:n==="item"||n==="copy"?{kind:n,name:r}:null}var Bh=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),_h=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),Lh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Eh(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Ah(e,t){return Lh(e,t)?e[t]:void 0}function Wh(e,t,n){let r=e.visibleIf;if(r===void 0)return true;let i=Oh(r.source);if(i===null)return false;if(i.kind==="item")return true;let o=i.kind==="data"?Eh(Ah(t,i.name)):Lh(n,i.name);return r.op==="present"?o:!o}function Vh(e,t){let n=Oh(e.visibleIf?.source);if(n?.kind!=="item")return true;let r=Eh(t[n.name]);return e.visibleIf?.op==="present"?r:!r}function Mh(e,t,n,r,i){let o=Yp[e.type],l=o?.props??[],a=_h[e.type]??[],s={};for(let e of l)Lh(t,e)&&!Bh.has(e)&&t[e]!==void 0&&(s[e]=t[e]);for(let[i,o]of Object.entries(e.bind)){if(!l.includes(i)||Bh.has(i))continue;let e=Oh(o);if(e===null)continue;let c,d=i;if(e.kind==="copy"){if(!a.includes(i))continue;c=Lh(r,e.name)?r[e.name]:void 0,d=""}else if(e.kind==="item")d=e.name,c=Lh(t,d)?t[d]:void 0;else{let t=Ah(n,e.name)?.[0];c=t!==void 0&&Lh(t,i)?t[i]:void 0}e.kind!=="copy"&&d!==i&&!(a.includes(i)&&typeof c=="string")||(c===void 0?delete s[i]:s[i]=c)}for(let[t,n]of Object.entries(e.fixed??{}))l.includes(t)&&!Bh.has(t)&&(s[t]=n);e.variant!==void 0&&l.includes("variant")&&(s.variant=e.variant);for(let[t,n]of Object.entries(e.settings)){let e=o?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(i)))if(e.type==="lines"){if(!Array.isArray(n))continue;for(let t of e.values??[])n.includes(t)||delete s[t]}else e.prop!==void 0&&l.includes(e.prop)&&(e.type==="boolean"&&typeof n=="boolean"||e.type==="enum"&&typeof n=="string"&&(e.values??[]).includes(n))&&(s[e.prop]=n)}return s}function Nh(e,t){let n=e.key;return typeof n=="string"&&n!==""?`${n}#${t}`:String(t)}function Uh(e,t){let n=Yp[e];return n!==void 0&&n.required.every(e=>t[e]!==void 0&&t[e]!==null)}function qh(e,t,n,r="native"){if(Yp[e.type]===void 0||!Wh(e,t,n))return null;let i=Oh(e.repeat),o;if(e.repeat!==void 0){if(i?.kind!=="data")return null;o=Ah(t,i.name)??[]}else{let n=Object.values(e.bind).map(e=>Oh(e)).find(e=>e?.kind==="data");if(n){let e=Ah(t,n.name)?.[0];o=e===void 0?[]:[e]}else o=[{}]}let l=[],a=0;if(o.forEach((i,o)=>{if(!Vh(e,i))return;let s=Mh(e,i,t,n,r);Uh(e.type,s)?l.push({key:Nh(i,o),props:/* @__PURE__ */Object.freeze(s)}):a+=1}),l.length===0&&a===0)return null;let s={};for(let[t,n]of Object.entries(e.actions)){let e=Dh(n);e!==null&&(s[t]=e)}return{part:e,blocks:l,incomplete:a,actions:s}}function Gh(e){let t=bh("native");return{knows:(n,r)=>Object.prototype.hasOwnProperty.call(e,n)&&t.knows(n,r)}}function Kh(e,t,n){let r=Gh(n);if(e!==null){let t=Th(e,r);if(t!==null)return t}let i=Np(t);return i===null?[]:Th(i,r)??[]}var Xh=new Set(Object.keys(dl.colors)),Yh=new Set(Object.keys(dl.radius)),Jh=new Set(Object.keys(dl.space));function Qh(e){let t={},n={},r={};for(let[i,o]of Object.entries(e)){let[e,l,a]=i.split(".");l===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof o=="string"&&Xh.has(l)?t[l]=o:e==="radius"&&typeof o=="number"&&o>=0&&Yh.has(l)?n[l]=o:e==="space"&&typeof o=="number"&&o>=0&&Jh.has(l)&&(r[l]=o))}let i={};return Object.keys(t).length>0&&(i.colors=t),Object.keys(n).length>0&&(i.radius=n),Object.keys(r).length>0&&(i.space=r),Object.keys(i).length===0?null:i}function Zh(e,n,r,i){switch(e.kind){case"navigate":St(r.onNavigate,e.route,n);return;case"open_sheet":St(r.onOpenSheet,e.id,n);return;case"track":i("slots.track",{slot:n.slot,part:n.part,event:e.event});return;case"external":r.onOpenUrl?St(r.onOpenUrl,e.url):t.Linking.openURL(e.url).catch(()=>{})}}function eg(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:r,resolved:i,slot:o,handlers:l,track:a}){let s=Object.prototype.hasOwnProperty.call(r,i.part.type)?r[i.part.type]:void 0;if(s===void 0)return null;let c=i.actions.onPress;/* @__PURE__ */
381
- return n.jsx(n.Fragment,{children:i.blocks.map(r=>{let d=`everfur-slot-${i.part.id}`,u=e.createElement(s,{...r.props,testID:d});if(c===void 0||!eg(c,l))/* @__PURE__ */return n.jsx(e.Fragment,{children:u},r.key);let p={slot:o,part:i.part.id,key:r.key};/* @__PURE__ */
382
- return n.jsx(t.Pressable,{accessibilityRole:c.kind==="external"?"link":"button",onPress:()=>Zh(c,p,l,a),testID:`${d}-press`,children:u},r.key)})})}var tg=/* @__PURE__ */new WeakMap,ng=e=>qp(JSON.stringify(e)),rg=class extends e.Component{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(t){let{slot:r,data:i,blocks:o,override:l}=t,a=t.handlers??ig,{runtime:s}=$(),[,c]=e.useState(0),d=e.useMemo(()=>t.doc===null?null:ng(t.doc),[t.doc]),u=d!==null&&tg.get(s)?.has(d)===true?null:t.doc,p=e.useMemo(()=>Kh(u,r,o),[u,r,o]),h=e.useMemo(()=>Gh(o),[o]),g=e.useRef({doc:u,parts:/* @__PURE__ */new Set});g.current.doc!==u&&(g.current={doc:u,parts:/* @__PURE__ */new Set});let f=u?.copy??og,m=e.useMemo(()=>Qh(u?.tokens??lg),[u]),y=(e,t)=>{try{s.registry.services.telemetry.track(e,t)}catch{}},b=e=>()=>{if(y("slots.part_failed",{slot:r,part:e.id,bundled:u===null}),u===null||d===null)return;let t=tg.get(s);t===void 0&&tg.set(s,t=/* @__PURE__ */new Set),t.add(d),c(e=>e+1)},w=u===null?"b":"d",x=p.map(e=>{let t=`${w}:${e.id}`,s=l?.(e)??null;if(s!==null)/* @__PURE__ */
383
- return n.jsx(rg,{onError:b(e),children:s},t);let c=qh(e,i,f,"native");if(c!==null&&c.blocks.length===0){g.current.parts.has(e.id)||(g.current.parts.add(e.id),y("slots.part_incomplete",{slot:r,part:e.id,type:e.type}));let t=Sh(e,h),n=t===null?null:qh(t,i,f,"native");c=n!==null&&n.blocks.length>0?n:null}if(c===null)return null;let d=/* @__PURE__ */n.jsx(DrawnPart,{blocks:o,resolved:c,slot:r,handlers:a,track:y});/* @__PURE__ */
384
- return n.jsx(rg,{onError:b(e),children:/* @__PURE__ */n.jsx(BlockScope,{children:m===null?d:/* @__PURE__ */n.jsx(ThemeProvider,{theme:m,children:d})})},t)});/* @__PURE__ */
385
- return n.jsx(n.Fragment,{children:x})}var ig=/* @__PURE__ */Object.freeze({}),og=/* @__PURE__ */Object.freeze({}),lg=/* @__PURE__ */Object.freeze({});var ag="health_plan.focus",sg=/* @__PURE__ */Object.freeze({PlanNeedCard:PlanNeedCard,SummaryList:SummaryList,TipCard:TipCard});function cg(e){return e.variant!=="plan"?null:e.type==="PlanNeedCard"&&e.repeat===void 0&&Object.values(e.bind).includes("data:plan.needs")?/* @__PURE__ */n.jsx(ConnectedHealthPlanFocusCard,{}):e.type==="TipCard"&&e.repeat==="data:plan.tips"?/* @__PURE__ */n.jsx(ConnectedHealthPlanTips,{}):null}function HealthPlanFocusSlot(){let t=Hu(),r=or(),{doc:i,source:o}=yh(ag,r),l=t?.props.design,a=t?.props.item,s=t?.props.others,c=t?.props.priceFormat?.locale??t?.props.locale,d=t===null||t.waiting,u=e.useMemo(()=>{if(d||l===void 0)return{};let e=[a,...s??[]].filter(e=>e!==void 0&&e!==N);return{"plan.needs":dp(l),"plan.tips":up(l),"plan.items":hp(e,c)}},[d,l,a,s,c]);return t===null||o==="pending"?null:/* @__PURE__ */n.jsx(SlotParts,{slot:ag,doc:i,data:u,blocks:sg,override:cg})}var dg=12;function HealthPlanFocus(e){/* @__PURE__ */
386
- return n.jsx(HealthPlanFocusProvider,{...e,children:/* @__PURE__ */n.jsx(FocusLayout,{})})}function FocusLayout(){let i=Iu(),{props:o,hp:l,kit:a}=i,{S:s,copy:c}=a,d=t.useWindowDimensions(),{started:u,top:p,screens:h,toast:g,title:f,back:m,closeOverlays:y}=l,b=o.onOverlayChange,w=cc(),x=r.useSafeAreaInsets(),k=e.useRef(null),[v,S]=e.useState(null),T=u!==null?"started":p===void 0?null:p.kind==="order"?`order:${p.key}`:p.kind,C=T!==null;e.useEffect(()=>{if(!C||w===null){S(null);return}w.measure(({y:e,height:t})=>{let n=Math.max(0,d.height-(e+t)),r=Math.max(0,x.bottom-n);S(e=>e!==null&&e.height===t&&e.under===r?e:{height:t,under:r})})},[C,w,d.height,x.bottom]),e.useEffect(()=>{v!==null&&T!==null&&w?.top(k.current)},[v===null,T,w]);let{bx:j,tb:I}=s.D,H=/* @__PURE__ */n.jsxs(t.View,{style:[...j("root"),o.style],testID:"health-plan-focus",onLayout:e=>i.setPageWidth(Math.round(e.nativeEvent.layout.width)),children:[
371
+ /* @__PURE__ */n.jsx(t.View,{style:a("weightActions"),children:Gs(i,l.weightSave,r.onSave,{disabled:r.saving,testID:"health-plan-weight-save"})})]})}var lp="Pay with";function ap(e,t){let{hp:r,copy:i,props:o,rows:l}=e,{sheet:a,quote:s,subscription:c,sub:d,redirecting:u}=r,p=o.item,h=o.design.pick;if(a===null||t!==void 0&&a.kind!==t)return null;let g=s?.intervalOptions??c?.intervalOptions??[];if(a.kind==="checkout"&&s!==null)return{kicker:i.checkoutKicker,body:/* @__PURE__ */n.jsx(HealthPlanCheckoutSheet,{item:p,line:h.checkoutLine??h.line??p.description??"",prices:r.prices(a.every),mode:a.mode,every:a.every,intervals:g,offer:r.offer,oneBoxOffer:r.oneBox!==null,rows:l,busy:d.busy,confirmDisabled:d.busy||u,onModeChange:e=>r.openSheet({...a,mode:e}),onEveryChange:e=>r.openSheet({...a,every:e}),onConfirm:()=>{r.confirmCheckout()}})};if(a.kind==="manage"&&c!==null&&r.active)return{kicker:i.manageKicker,body:/* @__PURE__ */n.jsx(HealthPlanManageSheet,{item:p,prices:r.prices(c.intervalDays),nextBoxDay:r.nextBoxDay(c),every:c.intervalDays,intervals:g,busy:d.busy,onEveryChange:r.changeInterval,onSkip:()=>{r.skip()},onCancel:()=>{r.cancel()},onSeeOrders:r.shop?r.seeOrdersFromManage:null})};if(a.kind==="cartCheckout"&&r.batch.length>0){let{fmt:e,currency:t,lines:o,unitOf:a,isPick:s,itemOf:c}=r,p=e(r.batchTotal,t)??"";return{kicker:i.checkoutKicker,body:/* @__PURE__ */n.jsx(HealthPlanCartCheckout,{lines:r.batch.map(r.lineView),lineTotal:n=>{let r=o.find(e=>e.productId===n.key),i=r===void 0?null:a(r);return i===null||r===void 0?null:e(Math.round(i*r.qty*100)/100,s(r.productId)?t:c(r.productId)?.currency??t)},rows:l,total:p,renew:r.batchRenew,place:{label:i.placeOrder(p,r.batchSub!==null),disabled:!r.cartReady||d.busy||u,onPress:()=>{r.placeCart()}},fine:[i.cartFine(r.batchRenew),r.apart?i.cartSubscriptionApart:"",i.checkoutNote].filter(e=>e!=="").join(" ")})}}return a.kind==="weight"?{kicker:i.weightKicker,body:/* @__PURE__ */n.jsx(HealthPlanWeightSheet,{prices:r.pr,value:r.weightInput,onChange:r.setWeightInput,error:r.weightError,saving:r.savingWeight,unit:r.kg?"kg":"lb",onSave:()=>{r.saveWeight()}})}:null}function ConnectedHealthPlanSheet(){let e=Fu();if(e===null)return null;let t=ap(e);/* @__PURE__ */
372
+ return n.jsx(HealthPlanSheetFrame,{kicker:t?.kicker??"",onClose:e.hp.closeSheet,children:t?.body??null})}function ConnectedHealthPlanCheckoutSheet(){let e=Fu();return e===null?null:ap(e,"checkout")?.body??null}function ConnectedHealthPlanManageSheet(){let e=Fu();return e===null?null:ap(e,"manage")?.body??null}function ConnectedHealthPlanCartCheckout(){let e=Fu();return e===null?null:ap(e,"cartCheckout")?.body??null}function ConnectedHealthPlanWeightSheet(){let e=Fu();return e===null?null:ap(e,"weight")?.body??null}function ConnectedHealthPlanStarted(){let e=Fu(),t=e?.hp.started??null;if(e===null||t===null)return null;let{hp:r,copy:i,props:o}=e,l=o.design.pick,a=t.kind==="sub"?t.sub:null,s=t.kind==="sub"?t.sub.productId:t.order.productId,c=r.planItems.find(e=>e.productId===s)??o.item,d=r.prices(a?.intervalDays??r.every,c.title),u=(e,t)=>e.step==="first_box_ships"&&t?i.tomorrow:r.day(e.on)??e.on,p=a===null?[{icon:"truck",when:i.tomorrow,what:i.firstBoxShips}]:a.timeline.map((e,t)=>{switch(e.step){case"first_box_ships":return{icon:"truck",when:u(e,t===0),what:i.firstBoxShips};case"checkin":return{icon:"chat",when:u(e,false),what:i.checkin(l.checkin??null)};case"refill_reminder":return{icon:"repeat",when:u(e,false),what:i.refill};default:return{icon:"calendar",when:u(e,false),what:i.nextBoxShips(d)}}});/* @__PURE__ */
373
+ return n.jsx(HealthPlanStarted,{title:a===null?i.orderedTitle(d):i.startedTitle(d),what:i.startedWhat(d),note:i.startedNote,steps:p.map(e=>({key:`${e.icon}${e.when}`,...e}))})}function ConnectedHealthPlanCart(){let e=Fu();if(e===null||e.hp.started!==null||e.hp.top?.kind!=="cart")return null;let{hp:t}=e;/* @__PURE__ */
374
+ return n.jsx(HealthPlanCart,{lines:t.views,subtotal:t.fmt(t.cartTotal,t.currency)??"",renew:t.renewPrices,petPrices:t.pr,handlers:{onQuantity:t.stepQuantity,onRemove:t.removeLine,onMode:(e,n)=>t.editLine(e,e=>({...e,mode:n,qty:1})),onEvery:(e,n)=>t.editLine(e,e=>({...e,every:n})),onOrders:()=>t.push({kind:"orders"})}})}function sp(e){let{hp:t,props:n}=e,r=t.subscription;return r!==null&&t.active?{name:r.title??n.item.title,imageUrl:n.item.imageUrl??null,next:t.nextBoxDay(r),every:r.intervalDays,onManage:()=>t.openSheet({kind:"manage"})}:null}function ConnectedHealthPlanOrders(){let e=Fu();if(e===null||e.hp.started!==null||e.hp.top?.kind!=="orders")return null;let{hp:t}=e,r=e.props.locale;/* @__PURE__ */
375
+ return n.jsx(HealthPlanOrders,{subscription:sp(e),orders:e.allOrders,loaded:t.everfurOrders.loaded,fmt:(e,n)=>t.fmt(e,n),day:e=>Bs(e,r),onOpen:e=>t.push({kind:"order",key:e}),onBack:t.closeOverlays,petPrices:t.pr,more:t.everfurOrders.next===null?null:{onMore:t.moreOrders,loading:t.everfurOrders.loading}})}function ConnectedHealthPlanOrder(){let e=Fu(),t=e?.hp.top;if(e===null||e.hp.started!==null||t?.kind!=="order")return null;let{hp:r,copy:i,props:o}=e,l=e.allOrders.find(e=>e.key===t.key);if(l===void 0)return null;let a=l.everfur===true&&l.productId!==null?r.itemOf(l.productId):void 0,s=o.onOrderHelp;/* @__PURE__ */
376
+ return n.jsx(HealthPlanOrder,{order:l,fmt:(e,t)=>r.fmt(e,t),day:e=>Bs(e,o.locale),rows:e.rows.map(e=>e.label===lp?{...e,label:i.paidWith}:e),onBuyAgain:a===void 0?null:()=>r.addToCart(a,"once"),onHelp:s?()=>{St(s,l.key)}:null})}function cp(e){let t=[...new Set(e.filter(e=>e!=null))];return t.length===1?t[0]??null:null}function ConnectedHealthPlanPlaced(){let e=Fu(),t=e?.hp.top;if(e===null||e.hp.started!==null||t?.kind!=="placed")return null;let{hp:r,copy:i,props:o}=e,l=t.orders,a=l[0],s=r.prices(r.every,a?.title??(a?r.itemOf(a.productId)?.title:void 0)??o.item.title),c=cp(l.map(e=>e.tracking?.orderNumber)),d=l.length>0&&l.every(e=>e.tracking?.estimatedDelivery)?cp(l.map(e=>e.tracking?.estimatedDelivery)):null,u=r.day(d),p=cp(l.map(e=>e.currency)),h=p===null?null:r.fmt(Math.round(l.reduce((e,t)=>e+(t.total??t.price),0)*100)/100,p),g=[...l.map(e=>{let t=r.itemOf(e.productId);return{key:e.orderId,icon:"box",imageUrl:t?.imageUrl??null,when:i.cartItemQuantity(e.quantity??1),what:e.title??t?.title??"",product:true}}),{key:"ships",icon:"truck",when:i.tomorrow,what:r.withTracking(i.placedShips)},...u===null?[]:[{key:"arrives",icon:"calendar",when:u,what:i.placedArrives}]];/* @__PURE__ */
377
+ return n.jsx(HealthPlanPlaced,{title:i.orderedTitle(s),arrives:u,orderNumber:c,rows:g,total:l.length>1&&h!==null?h:null,note:i.startedNote})}var dp=e=>/* @__PURE__ */Object.freeze(e.map(e=>/* @__PURE__ */Object.freeze(e)));function up(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}function pp(e){let t=e?.focus;if(!t)return dp([]);let n=e?.byline,r=t.risk?.kind,i=r==="risk"||r==="watch"||r==="clear"?r:void 0;return dp([up({kicker:t.kicker,sources:t.sources?.map(e=>({label:e.label,kind:e.kind==="dna"?"dna":"records"})),title:t.title,signals:t.risk?[{key:"risk",lead:t.risk.lead,text:t.risk.body??"",tone:i,dot:i===void 0?"space":true}]:[],score:t.odds?{label:t.odds.label,tag:t.odds.tag,was:t.odds.from,now:t.odds.to,since:t.odds.toLabel}:void 0,quote:t.quote&&n?{text:t.quote.text,by:n.shortName??void 0,image:n.imageUrl??null,tag:t.quote.tag}:void 0})])}function hp(e){let t=e?.routine?.steps??[],n=e?.byline?.shortName;return dp(t.map((e,t)=>up({key:e.title,number:String(t+1),title:e.title,text:e.body||void 0,foot:e.fromVet?n?mc.fromVet(n):void 0:e.source??void 0,tone:e.tone??"y"})))}function gp(e,t){return formatHealthPlanPrice(e.price,e.currency,t)??void 0}function fp(e,t){return dp(e.map(e=>up({key:e.productId,name:e.title,image:e.imageUrl,imageAlt:e.title,kicker:e.category??void 0,price:gp(e,t),badge:e.sample?p.sample:void 0})))}var mp="everfur.slot/1";var yp=/* @__PURE__ */Symbol("bad");function bp(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function wp(e,t,n){return typeof e=="string"&&e.length>=t&&e.length<=n?e:yp}function xp(e,t){return e==null?void 0:wp(e,0,t)}function kp(e){return e===void 0?{}:bp(e)?e:yp}function vp(e){let t=kp(e);if(t===yp)return yp;for(let e of Object.values(t))if(typeof e!="string")return yp;return t}function Sp(e,t,n){return typeof e=="number"&&Number.isInteger(e)&&e>=t&&e<=n?e:yp}function Tp(e){if(e==null)return;if(e==="hide")return"hide";if(!bp(e))return yp;let t=wp(e.type,1,64),n=xp(e.variant,64),r=kp(e.settings),i=vp(e.bind),o=vp(e.actions);return t===yp||n===yp||r===yp||i===yp||o===yp?yp:/* @__PURE__ */Object.freeze({type:t,...n?{variant:n}:{},settings:/* @__PURE__ */Object.freeze({...r}),bind:/* @__PURE__ */Object.freeze({...i}),actions:/* @__PURE__ */Object.freeze({...o})})}function Cp(e){if(e==null)return;if(!bp(e))return yp;let t=wp(e.source,0,80);return t===yp||e.op!=="present"&&e.op!=="absent"?yp:/* @__PURE__ */Object.freeze({source:t,op:e.op})}function jp(e){if(!bp(e))return yp;let t=wp(e.id,1,64),n=wp(e.type,1,64),r=xp(e.variant,64),i=kp(e.settings),o=vp(e.bind),l=xp(e.repeat,80),a=Cp(e.visibleIf),s=vp(e.actions),c=Tp(e.fallback);return t===yp||n===yp||r===yp||i===yp||o===yp||l===yp||a===yp||s===yp||c===yp?yp:/* @__PURE__ */Object.freeze({id:t,type:n,...r?{variant:r}:{},settings:/* @__PURE__ */Object.freeze({...i}),bind:/* @__PURE__ */Object.freeze({...o}),...l?{repeat:l}:{},...a?{visibleIf:a}:{},actions:/* @__PURE__ */Object.freeze({...s}),...c?{fallback:c}:{}})}var Ip=/^everfur\.slot\/(\d{1,4})$/,Hp=/<\s*[A-Za-z/!?]|&[A-Za-z#][A-Za-z0-9]*;/,Pp=/[\u0000-\u0008\u000b-\u001f\u007f\u2028\u2029]/,Fp=/^[a-z][a-zA-Z0-9]*(\.[a-zA-Z0-9]+){0,4}$/,Rp=/^#[0-9a-fA-F]{6}$/,Dp=1e4;function zp(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&n+1<e.length?(t+=4,n++):t+=3}return t}function $p(e){return e.trim()!==""&&!Hp.test(e)&&!Pp.test(e)}function Op(e){try{return zp(JSON.stringify(e)??"")}catch{return Number.POSITIVE_INFINITY}}function Bp(e){let t=e!==null&&typeof e=="object"?e.schema:void 0;if(typeof t!="string")return"unparseable";let n=Ip.exec(t);return n===null?"unparseable":Number(n[1])>1?"newer_schema":null}function _p(e){let t={};for(let[n,r]of Object.entries(e))Fp.test(n)&&(typeof r=="string"&&Rp.test(r)||typeof r=="number"&&Number.isFinite(r)&&Math.abs(r)<=Dp)&&(t[n]=r);/* @__PURE__ */
378
+ return Object.freeze(t)}function Lp(e){let t={};for(let[n,r]of Object.entries(e)){let e=typeof r=="string"?r:r!==null&&typeof r=="object"?r.text:void 0;typeof e=="string"&&e.length<=500&&$p(e)&&(t[n]=e)}/* @__PURE__ */
379
+ return Object.freeze(t)}function Ep(e,t){if(Op(e)>65536)return{ok:false,reason:"too_large"};let n=Bp(e);if(n!==null)return{ok:false,reason:n};let r=e,i=wp(r.slot,3,64),o=r.docVersion===void 0||r.docVersion===null?null:Sp(r.docVersion,1,Number.MAX_SAFE_INTEGER),l=r.minBlocks===void 0?1:Sp(r.minBlocks,0,50),a=r.theme===void 0||r.theme===null?{}:kp(r.theme),s=a===yp?yp:kp(a.tokens),c=kp(r.copy),d=Array.isArray(r.parts)&&r.parts.length>=1&&r.parts.length<=50?r.parts.map(jp):yp;return i===yp||o===yp||l===yp||s===yp||c===yp?{ok:false,reason:"unparseable"}:d===yp||d.some(e=>e===yp)?{ok:false,reason:"unparseable"}:i!==t?{ok:false,reason:"wrong_slot"}:{ok:true,doc:/* @__PURE__ */Object.freeze({schema:mp,slot:i,docVersion:o,minBlocks:l,tokens:_p(s),parts:/* @__PURE__ */Object.freeze(d),copy:Lp(c)})}}function Ap(e){if(e===null)return{ok:false,reason:"too_large"};if(typeof e!="string")return{ok:true,raw:e};if(e.length>65536||zp(e)>65536)return{ok:false,reason:"too_large"};try{return{ok:!0,raw:JSON.parse(e)}}catch{return{ok:false,reason:"unparseable"}}}function Wp(e){/* @__PURE__ */
380
+ return Object.freeze({settings:{},bind:{},actions:{},...e})}var Vp=/* @__PURE__ */Object.freeze({focus:Wp({id:"focus",type:"PlanNeedCard",variant:"plan",bind:{title:"data:plan.needs"}}),needs:Wp({id:"needs",type:"PlanNeedCard",variant:"standard",repeat:"data:plan.needs"}),tips:Wp({id:"tips",type:"TipCard",variant:"plan",repeat:"data:plan.tips"}),shelf:Wp({id:"shelf",type:"ProductTile",variant:"standard",repeat:"data:plan.items"}),cartLines:Wp({id:"cart-lines",type:"CartLine",variant:"plan",repeat:"data:cart.lines"}),cartSummary:Wp({id:"cart-summary",type:"PriceSummary",bind:{rows:"data:cart.summary"},visibleIf:{source:"data:cart.summary",op:"present"}}),orders:Wp({id:"orders",type:"OrderRow",variant:"quiet",repeat:"data:orders.recent"})});function Mp(e,t){/* @__PURE__ */
381
+ return Object.freeze({schema:mp,slot:e,docVersion:null,minBlocks:1,tokens:{},parts:/* @__PURE__ */Object.freeze([...t]),copy:{}})}var Np=Vp,Up=/* @__PURE__ */Object.freeze({"health_plan.focus":Mp("health_plan.focus",[Np.focus,Np.tips]),"today.health":Mp("today.health",[Np.focus,Np.tips]),"shop.shelf":Mp("shop.shelf",[Np.shelf]),"shop.cart":Mp("shop.cart",[Np.cartLines,Np.cartSummary]),"shop.orders":Mp("shop.orders",[Np.orders])});function qp(e){return Object.prototype.hasOwnProperty.call(Up,e)?Up[e]??null:null}function Gp(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<128?t.push(e):e<2048?t.push(192|e>>6,128|e&63):e<65536?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function Kp(e){let t=3421674724,n=2216829733;for(let r of Gp(e)){n=(n^r)>>>0;let e=n*435,i=Math.floor(e/4294967296),o=e>>>0;t=t*435+i+n*256>>>0,n=o}return t.toString(16).padStart(8,"0")+n.toString(16).padStart(8,"0")}var Xp=/* @__PURE__ */new WeakMap;function Yp(e){return Xp.get(e)}var Jp="sha256-0IDdNTQTtW2+pJ9GBCa/aWJrH/lf2X2jHhTQaCt6g5E=";var Qp={CartBar:{since:"0.4.0",variants:["standard","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["thumbs","total","sub","actionHiddenWord"]},variant:{type:"enum",values:["standard","web"],prop:"variant"}},props:["actionAccessibilityLabel","actionHiddenWord","actionLabel","busy","count","countLabel","disabled","fallback","loading","loadingLabel","sub","testID","thumbs","total","variant","visible"],required:["actionLabel","count"],fallback:"hide"},CartLine:{since:"0.2.0",variants:["standard","square","web","plan","drawer"],platforms:["native","web"],settings:{align:{type:"enum",values:["top","center"],prop:"align"},lines:{type:"lines",values:["badge","meta","wasPrice","smalls","note","metas","plan"]},thumbSize:{type:"enum",values:["sm","md","lg"],prop:"thumbSize"},variant:{type:"enum",values:["standard","square","web","plan","drawer"],prop:"variant"}},props:["actions","align","badge","error","fallback","image","imageAlt","loading","loadingLabel","meta","metas","name","namePress","note","plan","price","quantity","removeLabel","smalls","testID","thumbSize","variant","wasPrice"],required:["name"],fallback:null},CheckinSheet:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["kicker","note","doneText"]}},props:["action","closeLabel","doneText","fallback","flowLabel","image","imageKind","kicker","loading","loadingLabel","note","open","steps","testID","title"],required:["steps"],fallback:"hide"},OrderRow:{since:"0.2.0",variants:["standard","quiet","web"],platforms:["native","web"],settings:{actionGrid:{type:"boolean",prop:"actionGrid"},lines:{type:"lines",values:["meta","total","status","shots","notes"]},variant:{type:"enum",values:["standard","quiet","web"],prop:"variant"}},props:["accessibilityLabel","actionGrid","actions","error","loading","loadingLabel","meta","metaLink","notes","number","shots","status","testID","title","total","variant"],required:["title"],fallback:null},PlanNeedCard:{since:"0.2.0",variants:["standard","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["source","sources","title","score","quote","jump"]},variant:{type:"enum",values:["standard","plan"],prop:"variant"}},props:["jump","kicker","loading","loadingLabel","more","quote","score","signals","source","sources","testID","title","variant"],required:["kicker","signals"],fallback:null},PriceSummary:{since:"0.2.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["total","note"]},size:{type:"enum",values:["checkout","drawer"],prop:"size",platforms:["web"],default:"checkout"},variant:{type:"enum",values:["standard","web"],prop:"variant",platforms:["web"],default:"standard"}},props:["loading","loadingLabel","note","rows","testID","total"],required:["rows"],fallback:null},ProductTile:{since:"0.2.0",variants:["standard","blend","web"],platforms:["native","web"],settings:{addLift:{type:"boolean",prop:"addLift"},ground:{type:"enum",values:["shelf","white"],prop:"ground"},imageInset:{type:"enum",values:["standard","even"],prop:"imageInset"},layout:{type:"enum",values:["tile","row","card"],prop:"layout"},lines:{type:"lines",values:["kicker","meta","price","wasPrice","per","badge","tag"]},metaTone:{type:"enum",values:["auto","autoDark"],prop:"metaTone"},variant:{type:"enum",values:["standard","blend","web"],prop:"variant"}},props:["action","addLift","badge","fallback","ground","image","imageAlt","imageInset","kicker","layout","loading","loadingLabel","meta","metaTone","name","per","price","stepper","tag","testID","variant","wasPrice"],required:["name"],fallback:null},ScoreLights:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","since","source","next"]}},props:["heading","loading","loadingLabel","next","pill","since","source","state","testID","values","vizLabel"],required:["pill","state","values","vizLabel"],fallback:"hide"},SummaryList:{since:"0.1.0",variants:["standard","flush","card","inset"],platforms:["native","web"],settings:{lines:{type:"lines",values:["trailingRows","note"]},variant:{type:"enum",values:["standard","flush","card","inset"],prop:"variant"}},props:["loading","loadingLabel","note","rows","testID","total","trailingRows","variant"],required:["rows"],fallback:null},TipCard:{since:"0.2.0",variants:["standard","photo","web","plan"],platforms:["native","web"],settings:{footArrow:{type:"boolean",prop:"footArrow"},lines:{type:"lines",values:["text","foot"]},tone:{type:"enum",values:["y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","photo","web","plan"],prop:"variant"}},props:["accessibilityLabel","foot","footArrow","footPress","icon","image","loading","loadingLabel","number","pressTarget","testID","text","title","tone","variant"],required:["number","title"],fallback:null},WeatherAlert:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["accessibilityLabel","loading","loadingLabel","testID","text","title"],required:["title"],fallback:"TipCard",fallbackProps:{number:{const:"!"},text:{from:"text"},title:{from:"title"},tone:{const:"r"}}},WeatherCard:{since:"0.4.0",variants:["walk","summary","tile","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["heading","condition","details","verdict","advice","comfort","label","note","action","units","tags"]},sky:{type:"enum",values:["sun","blue"],prop:"sky"},variant:{type:"enum",values:["walk","summary","tile","web"],prop:"variant"}},props:["action","advice","comfort","condition","details","glyph","heading","label","level","loading","loadingLabel","note","sky","tags","tagsLabel","temperature","testID","units","variant","verdict"],required:["temperature"],fallback:"hide"},WeatherDetails:{since:"0.4.0",variants:[],platforms:["native","web"],settings:{},props:["items","label","loading","loadingLabel","testID"],required:["items"],fallback:"hide"},WeatherForecast:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["days","label","loading","loadingLabel","testID","variant"],required:["days"],fallback:"hide"},WeatherHours:{since:"0.4.0",variants:["plain","walk"],platforms:["native","web"],settings:{lines:{type:"lines",values:["windows","legend"]},variant:{type:"enum",values:["plain","walk"],prop:"variant"}},props:["hours","label","legend","loading","loadingLabel","testID","variant","windows"],required:["hours"],fallback:"hide"},WeatherLevels:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["label","loading","loadingLabel","rows","testID","variant"],required:["rows"],fallback:"hide"},WeatherReading:{since:"0.4.0",variants:["phone","web"],platforms:["native","web"],settings:{lines:{type:"lines",values:["word","choices"]},variant:{type:"enum",values:["phone","web"],prop:"variant"}},props:["choices","loading","loadingLabel","testID","tone","value","variant","word"],required:["value"],fallback:"hide"},WhySheet:{since:"0.4.0",variants:["standard","web","plan"],platforms:["native","web"],settings:{lines:{type:"lines",values:["kind","sub","sections","link","score"]},tone:{type:"enum",values:["calm","y","c","g","r"],prop:"tone"},variant:{type:"enum",values:["standard","web","plan"],prop:"variant"}},props:["action","closeLabel","fallback","heading","image","imageKind","kind","link","loading","loadingLabel","rows","score","sections","sub","testID","title","tone","variant"],required:[],fallback:"hide"}};var Zp="everfur.slots.v2",eh="everfur.slots.installId.v2";var th=6e4,nh=3e5,rh=15e3,ih=10080*60*1e3,oh=/^(W\/)?"[^"]{1,200}"$/,lh=/^[A-Za-z0-9_-]{8,128}$/,ah=/(?:^|,)\s*max-age\s*=\s*"?(\d{1,10})"?\s*(?:,|$)/i,sh=/(?:^|,)\s*(?:no-store|no-cache)\s*(?:,|$)/i,ch=/* @__PURE__ */Object.freeze({doc:"default",tenant:"default",epoch:0});function dh(){let e="";for(let t=0;t<4;t++)e+=Math.floor(Math.random()*4294967296).toString(36).padStart(7,"0");return e}function uh(e){if(e===null)return th;if(sh.test(e))return 0;let t=ah.exec(e);return t===null?th:Math.min(Number(t[1])*1e3,nh)}var ph=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function hh(e){let t=e.now??Date.now,n=()=>{try{return e.scope?.()??ch}catch{return ch}},r=/* @__PURE__ */new Map,i=/* @__PURE__ */new Map,o=/* @__PURE__ */new Map,l=null,a=null,s=false,c=Promise.resolve(),d=(t,n)=>{try{e.telemetry?.track(t,n)}catch{}},u=e=>{a!==e.epoch&&(a!==null&&(r.clear(),i.clear(),l=null,s=true),a=e.epoch)},p=e=>{let t=n();return t.epoch!==e.epoch||t.doc!==e.doc},h=async(t,n,r)=>{if(!p(t))return false;try{await e.kv.getItem(n)===r&&await e.kv.removeItem(n)}catch{}return true},g=t=>{let n=Kp(t.tenant);if(l?.tenant===n)return l.id;let r=s;s=false;let i=(async()=>{if(!r)try{let t=await e.kv.getItem(eh),r=t===null?null:JSON.parse(t);if(r?.tenant===n&&typeof r.id=="string"&&lh.test(r.id))return r.id}catch{}try{let r=(e.newId??dh)();if(!lh.test(r))return null;let i=JSON.stringify({tenant:n,id:r});return await e.kv.setItem(eh,i),await h(t,eh,i)?null:r}catch{return null}})();return l={tenant:n,id:i},i},f=async t=>{try{let n=await e.kv.getItem(Zp),r=n===null?null:JSON.parse(n);return r?.scope!==t||r.docs===null||typeof r.docs!="object"||Array.isArray(r.docs)?{docs:{}}:{docs:r.docs}}catch{return{docs:{}}}},m=async(e,n)=>{let r=await f(Kp(e.doc)),i=ph(r.docs,n)?r.docs[n]:void 0;if(i==null||typeof i.at!="number")return null;let o=t()-i.at;if(!(o<ih)||o<-nh)return null;let l=Ep(i.doc,n);if(!l.ok)return null;let a=typeof i.etag=="string"&&oh.test(i.etag)?i.etag:null;return{doc:l.doc,etag:a}},y=(t,n,r)=>{let i=Kp(t.doc);return c=c.then(async()=>{if(!p(t))try{let o=await f(i);if(p(t))return;let l={...o.docs},a=r(ph(l,n)?l[n]:void 0);if(a===null?delete l[n]:l[n]=a,Object.keys(l).length===0)await e.kv.removeItem(Zp);else{let n=JSON.stringify({scope:i,docs:l});await e.kv.setItem(Zp,n),await h(t,Zp,n)}}catch{}}),c},b=async(n,o)=>{let l=`${n.doc}|${o}`,a=r.get(l),s=a===void 0?await m(n,o):null,c=a!==void 0?{doc:a.doc,etag:a.etag}:s,u=await g(n),h={"x-everfur-blocks":e.blocks??Jp};u!==null&&(h["x-everfur-install-id"]=u),c?.doc&&c.etag!==null&&(h["if-none-match"]=c.etag);let f=null,b=th,w=await e.send("slots.read",{method:"GET",path:`/widget/v1/slots/${encodeURIComponent(o)}`,headers:h,rawText:65536,onResponseHeaders:e=>{let t=e("etag");f=t!==null&&oh.test(t)?t:null,b=uh(e("cache-control"))}}).catch(()=>null),x=()=>c?.doc?{doc:c.doc,source:a!==void 0?"cache":"last-known-good"}:{doc:null,source:"bundled"},k=e=>(i.set(l,t()),d("slots.read_failed",{slot:o,status:e}),x());if(p(n))return{doc:null,source:"bundled"};if(w===null)return k(null);if(w.ok){let e=Ap(w.value);if(!e.ok)return d("slots.refused",{slot:o,reason:e.reason}),x();let i=Ep(e.raw,o);if(!i.ok)return d("slots.refused",{slot:o,reason:i.reason}),x();let a=t();return r.set(l,{doc:i.doc,etag:f,at:a,ttl:b}),await y(n,o,()=>({etag:f,doc:e.raw,at:a})),{doc:i.doc,source:"live"}}let v=w.error.httpStatus;if(v===304&&c?.doc){let e=t();return r.set(l,{doc:c.doc,etag:c.etag,at:e,ttl:b}),await y(n,o,t=>t===void 0?null:{...t,at:e}),{doc:c.doc,source:"live"}}return v===404?(r.set(l,{doc:null,etag:null,at:t(),ttl:b}),await y(n,o,()=>null),{doc:null,source:"bundled"}):k(v??null)},w=(e,n)=>{let i=r.get(`${e.doc}|${n}`);return i===void 0||t()-i.at>=i.ttl?null:i.doc===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"cache"}},x=async(e,t)=>{let n=r.get(`${e.doc}|${t}`);if(n!==void 0)return n.doc===null?{doc:null,source:"bundled"}:{doc:n.doc,source:"cache"};let i=await m(e,t);return i===null?{doc:null,source:"bundled"}:{doc:i.doc,source:"last-known-good"}};return{peek(e){let t=n();return u(t),w(t,e)},stored(e){let t=n();return u(t),x(t,e).catch(()=>({doc:null,source:"bundled"}))},load(e){let r=n();u(r);let l=w(r,e);if(l!==null)return Promise.resolve(l);let a=`${r.doc}|${e}`,s=`${r.epoch}|${a}`,c=o.get(s);if(c!==void 0)return c;let d=i.get(a),p=(d!==void 0&&t()-d<rh?x(r,e):b(r,e)).catch(()=>({doc:null,source:"bundled"})).finally(()=>o.delete(s));return o.set(s,p),p}}}function gh(e){let t=Yp(e)??"unknown",n=e.registry.services.authFor(null),r=n.mode==="personalized"?`u:${n.userRef??""}`:`a:${n.userRef??""}`;return{doc:`${t}|${r}`,tenant:t,epoch:e.scopeEpoch??0}}var fh=/* @__PURE__ */Symbol.for("@everfur/sdk#SlotClients@v1");function mh(e,t=yh){let n=globalThis,r=n[fh];r instanceof WeakMap||(r=/* @__PURE__ */new WeakMap,n[fh]=r);let i=r,o=i.get(e);return o===void 0&&(o=t(e),i.set(e,o)),o}function yh(e){let{services:t}=e.registry;return hh({send:(e,n)=>createRequestFunnel({auth:t.authFor(null),...t.errorPolicy?{errorPolicy:t.errorPolicy}:{}}).send(e,n),kv:t.kv,telemetry:t.telemetry,scope:()=>gh(e)})}function bh(e,t){return{doc:t.doc??qp(e),source:t.source}}function wh(t,n){let{runtime:r,scopeEpoch:i}=$(),o=n?mh(r):null,[l,a]=e.useState(()=>{let e=o?.peek(t);return e?{slot:t,epoch:i,value:bh(t,e)}:null});return e.useEffect(()=>{if(o===null)return;let e=true,n=false,r=o.peek(t);if(r!==null){a({slot:t,epoch:i,value:bh(t,r)});return}return o.stored(t).then(r=>{e&&!n&&a({slot:t,epoch:i,value:bh(t,r)})}),o.load(t).then(r=>{n=true,e&&a({slot:t,epoch:i,value:bh(t,r)})}),()=>{e=false}},[o,t,i]),n?l!==null&&l.slot===t&&l.epoch===i?l.value:{doc:null,source:"pending"}:{doc:qp(t),source:"bundled"}}function xh(e){return{knows(t,n){let r=Object.prototype.hasOwnProperty.call(Qp,t)?Qp[t]:void 0;if(r===void 0||!r.platforms.includes(e))return false;if(n===void 0)return true;let i=r.settings.variant;return n===i?.default?true:r.variants.includes(n)?i?.platforms===void 0||i.platforms.includes(e):false}}}function kh(e){return{id:e.id,...e.repeat?{repeat:e.repeat}:{},...e.visibleIf?{visibleIf:e.visibleIf}:{}}}function vh(e,t){if(t.knows(e.type,e.variant))return e;if(e.fallback==="hide")return null;let n=Ch(e,t);if(n!==null)return n;let r=Object.prototype.hasOwnProperty.call(Qp,e.type)?Qp[e.type]:void 0,i=r?.fallback??null;if(i===null||i==="hide"||!t.knows(i))return null;let o=Qp[i];if(r?.fallbackProps!==void 0&&o!==void 0)return Th(e,r,i,o);let l={};for(let[t,n]of Object.entries(e.bind))o?.props.includes(t)&&(l[t]=n);return{...kh(e),type:i,settings:{},bind:l,actions:{}}}function Sh(e,t){return e.type==="boolean"?typeof t=="boolean":e.type==="enum"?typeof t=="string"&&(e.values??[]).includes(t):e.type==="lines"?Array.isArray(t)&&new Set(t).size===t.length&&t.every(t=>typeof t=="string"&&(e.values??[]).includes(t)):false}function Th(e,t,n,r){let i={},o={},l={},a;for(let[n,s]of Object.entries(t.fallbackProps??{})){if("from"in s){Object.prototype.hasOwnProperty.call(e.bind,s.from)&&(i[n]=e.bind[s.from]);continue}let t=s.const;if(n==="variant"){typeof t=="string"&&r.variants.includes(t)&&(a=t);continue}let c=Object.entries(r.settings).find(([e,t])=>e!=="variant"&&t.prop===n);c!==void 0&&Sh(c[1],t)?o[c[0]]=t:typeof t=="string"&&(l[n]=t)}let s=/* @__PURE__ */new Set([...Object.keys(i),...Object.keys(l),...Object.keys(o).map(e=>r.settings[e]?.prop)]);return a!==void 0&&s.add("variant"),r.required.some(e=>!s.has(e))?null:{...kh(e),type:n,...a!==void 0?{variant:a}:{},settings:o,bind:i,actions:{},...Object.keys(l).length>0?{fixed:l}:{}}}function Ch(e,t){let n=e.fallback;return n===void 0||n==="hide"||!t.knows(n.type,n.variant)?null:{...kh(e),type:n.type,...n.variant?{variant:n.variant}:{},settings:n.settings,bind:n.bind,actions:n.actions}}function jh(e,t){let n=[];for(let r of e.parts){let e=vh(r,t);e!==null&&n.push(e)}return n.length===0||n.length<e.minBlocks?null:n}var Ih=/* @__PURE__ */Object.freeze(["everfur.com","www.everfur.com","docs.everfur.com"]),Hh=/* @__PURE__ */Object.freeze(["chat","health_plan","plan.detail","records","shop","shop.cart","shop.orders","visit"]),Ph=/* @__PURE__ */Object.freeze(["health_plan.checkout","health_plan.manage","health_plan.weight"]),Fh=/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){0,4}$/,Rh=/^https:\/\/([A-Za-z0-9.-]+)(?:[/?#][^\s]*)?$/,Dh=512;function zh(e){if(e.length>Dh)return false;let t=Rh.exec(e);return t!==null&&Ih.includes((t[1]??"").toLowerCase())}function $h(e){if(typeof e!="string")return null;let t=e.indexOf(":");if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);switch(n){case"navigate":return Hh.includes(r)?{kind:n,route:r}:null;case"open_sheet":return Ph.includes(r)?{kind:n,id:r}:null;case"track":return Fh.test(r)?{kind:n,event:r}:null;case"external":return zh(r)?{kind:n,url:r}:null;default:return null}}var Oh=/* @__PURE__ */Object.freeze({"plan.needs":"list","plan.tips":"list","plan.items":"list","cart.lines":"list","cart.summary":"item","orders.recent":"list"});function Bh(e){return Object.prototype.hasOwnProperty.call(Oh,e)}function _h(e){if(e===void 0)return null;let t=e.indexOf(":");if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);return r===""?null:n==="data"?Bh(r)?{kind:n,name:r}:null:n==="item"||n==="copy"?{kind:n,name:r}:null}var Lh=/* @__PURE__ */new Set(["action","actions","busy","disabled","error","fallback","footPress","link","loading","loadingLabel","metaLink","namePress","next","open","quantity","stepper","testID","visible"]),Eh=/* @__PURE__ */Object.freeze({CartBar:["actionLabel","actionAccessibilityLabel","actionHiddenWord","countLabel","sub","total"],CartLine:["name","imageAlt","meta","price","wasPrice","removeLabel","note"],CheckinSheet:["kicker","title","flowLabel","doneText","closeLabel"],OrderRow:["number","title","meta","total","accessibilityLabel"],PlanNeedCard:["kicker","source","title"],PriceSummary:["note"],ProductTile:["name","imageAlt","kicker","meta","price","wasPrice","per","badge"],ScoreLights:["heading","pill","since","vizLabel"],SummaryList:["note"],TipCard:["number","title","text","foot","accessibilityLabel"],WeatherAlert:["title","text","accessibilityLabel"],WeatherCard:["heading","temperature","condition","details","verdict","advice","label","note","tagsLabel"],WeatherDetails:["label"],WeatherForecast:["label"],WeatherHours:["label"],WeatherLevels:["label"],WeatherReading:["value","word"],WhySheet:["kind","title","sub","heading","closeLabel"]}),Ah=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Wh(e){return e==null||e===""?false:!Array.isArray(e)||e.length>0}function Vh(e,t){return Ah(e,t)?e[t]:void 0}function Mh(e,t,n){let r=e.visibleIf;if(r===void 0)return true;let i=_h(r.source);if(i===null)return false;if(i.kind==="item")return true;let o=i.kind==="data"?Wh(Vh(t,i.name)):Ah(n,i.name);return r.op==="present"?o:!o}function Nh(e,t){let n=_h(e.visibleIf?.source);if(n?.kind!=="item")return true;let r=Wh(t[n.name]);return e.visibleIf?.op==="present"?r:!r}function Uh(e,t,n,r,i){let o=Qp[e.type],l=o?.props??[],a=Eh[e.type]??[],s={};for(let e of l)Ah(t,e)&&!Lh.has(e)&&t[e]!==void 0&&(s[e]=t[e]);for(let[i,o]of Object.entries(e.bind)){if(!l.includes(i)||Lh.has(i))continue;let e=_h(o);if(e===null)continue;let c,d=i;if(e.kind==="copy"){if(!a.includes(i))continue;c=Ah(r,e.name)?r[e.name]:void 0,d=""}else if(e.kind==="item")d=e.name,c=Ah(t,d)?t[d]:void 0;else{let t=Vh(n,e.name)?.[0];c=t!==void 0&&Ah(t,i)?t[i]:void 0}e.kind!=="copy"&&d!==i&&!(a.includes(i)&&typeof c=="string")||(c===void 0?delete s[i]:s[i]=c)}for(let[t,n]of Object.entries(e.fixed??{}))l.includes(t)&&!Lh.has(t)&&(s[t]=n);e.variant!==void 0&&l.includes("variant")&&(s.variant=e.variant);for(let[t,n]of Object.entries(e.settings)){let e=o?.settings[t];if(!(e===void 0||e.platforms!==void 0&&!e.platforms.includes(i)))if(e.type==="lines"){if(!Array.isArray(n))continue;for(let t of e.values??[])n.includes(t)||delete s[t]}else e.prop!==void 0&&l.includes(e.prop)&&(e.type==="boolean"&&typeof n=="boolean"||e.type==="enum"&&typeof n=="string"&&(e.values??[]).includes(n))&&(s[e.prop]=n)}return s}function qh(e,t){let n=e.key;return typeof n=="string"&&n!==""?`${n}#${t}`:String(t)}function Gh(e,t){let n=Qp[e];return n!==void 0&&n.required.every(e=>t[e]!==void 0&&t[e]!==null)}function Kh(e,t,n,r="native"){if(Qp[e.type]===void 0||!Mh(e,t,n))return null;let i=_h(e.repeat),o;if(e.repeat!==void 0){if(i?.kind!=="data")return null;o=Vh(t,i.name)??[]}else{let n=Object.values(e.bind).map(e=>_h(e)).find(e=>e?.kind==="data");if(n){let e=Vh(t,n.name)?.[0];o=e===void 0?[]:[e]}else o=[{}]}let l=[],a=0;if(o.forEach((i,o)=>{if(!Nh(e,i))return;let s=Uh(e,i,t,n,r);Gh(e.type,s)?l.push({key:qh(i,o),props:/* @__PURE__ */Object.freeze(s)}):a+=1}),l.length===0&&a===0)return null;let s={};for(let[t,n]of Object.entries(e.actions)){let e=$h(n);e!==null&&(s[t]=e)}return{part:e,blocks:l,incomplete:a,actions:s}}function Xh(e){let t=xh("native");return{knows:(n,r)=>Object.prototype.hasOwnProperty.call(e,n)&&t.knows(n,r)}}function Yh(e,t,n){let r=Xh(n);if(e!==null){let t=jh(e,r);if(t!==null)return t}let i=qp(t);return i===null?[]:jh(i,r)??[]}var Jh=new Set(Object.keys(pl.colors)),Qh=new Set(Object.keys(pl.radius)),Zh=new Set(Object.keys(pl.space));function eg(e){let t={},n={},r={};for(let[i,o]of Object.entries(e)){let[e,l,a]=i.split(".");l===void 0||a!==void 0||((e==="color"||e==="colors")&&typeof o=="string"&&Jh.has(l)?t[l]=o:e==="radius"&&typeof o=="number"&&o>=0&&Qh.has(l)?n[l]=o:e==="space"&&typeof o=="number"&&o>=0&&Zh.has(l)&&(r[l]=o))}let i={};return Object.keys(t).length>0&&(i.colors=t),Object.keys(n).length>0&&(i.radius=n),Object.keys(r).length>0&&(i.space=r),Object.keys(i).length===0?null:i}function tg(e,n,r,i){switch(e.kind){case"navigate":St(r.onNavigate,e.route,n);return;case"open_sheet":St(r.onOpenSheet,e.id,n);return;case"track":i("slots.track",{slot:n.slot,part:n.part,event:e.event});return;case"external":r.onOpenUrl?St(r.onOpenUrl,e.url):t.Linking.openURL(e.url).catch(()=>{})}}function ng(e,t){return e.kind==="navigate"?t.onNavigate!==void 0:e.kind==="open_sheet"?t.onOpenSheet!==void 0:true}function DrawnPart({blocks:r,resolved:i,slot:o,handlers:l,track:a}){let s=Object.prototype.hasOwnProperty.call(r,i.part.type)?r[i.part.type]:void 0;if(s===void 0)return null;let c=i.actions.onPress;/* @__PURE__ */
382
+ return n.jsx(n.Fragment,{children:i.blocks.map(r=>{let d=`everfur-slot-${i.part.id}`,u=e.createElement(s,{...r.props,testID:d});if(c===void 0||!ng(c,l))/* @__PURE__ */return n.jsx(e.Fragment,{children:u},r.key);let p={slot:o,part:i.part.id,key:r.key};/* @__PURE__ */
383
+ return n.jsx(t.Pressable,{accessibilityRole:c.kind==="external"?"link":"button",onPress:()=>tg(c,p,l,a),testID:`${d}-press`,children:u},r.key)})})}var rg=/* @__PURE__ */new WeakMap,ig=e=>Kp(JSON.stringify(e)),og=class extends e.Component{constructor(){super(...arguments);this.state={failed:false}}static getDerivedStateFromError(){return{failed:true}}componentDidCatch(){try{this.props.onError()}catch{}}render(){return this.state.failed?null:this.props.children}};function SlotParts(t){let{slot:r,data:i,blocks:o,override:l}=t,a=t.handlers??lg,{runtime:s}=$(),[,c]=e.useState(0),d=e.useMemo(()=>t.doc===null?null:ig(t.doc),[t.doc]),u=d!==null&&rg.get(s)?.has(d)===true?null:t.doc,p=e.useMemo(()=>Yh(u,r,o),[u,r,o]),h=e.useMemo(()=>Xh(o),[o]),g=e.useRef({doc:u,parts:/* @__PURE__ */new Set});g.current.doc!==u&&(g.current={doc:u,parts:/* @__PURE__ */new Set});let f=u?.copy??ag,m=e.useMemo(()=>eg(u?.tokens??sg),[u]),y=(e,t)=>{try{s.registry.services.telemetry.track(e,t)}catch{}},b=e=>()=>{if(y("slots.part_failed",{slot:r,part:e.id,bundled:u===null}),u===null||d===null)return;let t=rg.get(s);t===void 0&&rg.set(s,t=/* @__PURE__ */new Set),t.add(d),c(e=>e+1)},w=u===null?"b":"d",x=p.map(e=>{let t=`${w}:${e.id}`,s=l?.(e)??null;if(s!==null)/* @__PURE__ */
384
+ return n.jsx(og,{onError:b(e),children:s},t);let c=Kh(e,i,f,"native");if(c!==null&&c.blocks.length===0){g.current.parts.has(e.id)||(g.current.parts.add(e.id),y("slots.part_incomplete",{slot:r,part:e.id,type:e.type}));let t=Ch(e,h),n=t===null?null:Kh(t,i,f,"native");c=n!==null&&n.blocks.length>0?n:null}if(c===null)return null;let d=/* @__PURE__ */n.jsx(DrawnPart,{blocks:o,resolved:c,slot:r,handlers:a,track:y});/* @__PURE__ */
385
+ return n.jsx(og,{onError:b(e),children:/* @__PURE__ */n.jsx(BlockScope,{children:m===null?d:/* @__PURE__ */n.jsx(ThemeProvider,{theme:m,children:d})})},t)});/* @__PURE__ */
386
+ return n.jsx(n.Fragment,{children:x})}var lg=/* @__PURE__ */Object.freeze({}),ag=/* @__PURE__ */Object.freeze({}),sg=/* @__PURE__ */Object.freeze({});var cg="health_plan.focus",dg=/* @__PURE__ */Object.freeze({PlanNeedCard:PlanNeedCard,SummaryList:SummaryList,TipCard:TipCard});function ug(e){return e.variant!=="plan"?null:e.type==="PlanNeedCard"&&e.repeat===void 0&&Object.values(e.bind).includes("data:plan.needs")?/* @__PURE__ */n.jsx(ConnectedHealthPlanFocusCard,{}):e.type==="TipCard"&&e.repeat==="data:plan.tips"?/* @__PURE__ */n.jsx(ConnectedHealthPlanTips,{}):null}function HealthPlanFocusSlot(){let t=Fu(),r=ar(),{doc:i,source:o}=wh(cg,r),l=t?.props.design,a=t?.props.item,s=t?.props.others,c=t?.props.priceFormat?.locale??t?.props.locale,d=t===null||t.waiting,u=e.useMemo(()=>{if(d||l===void 0)return{};let e=[a,...s??[]].filter(e=>e!==void 0&&e!==N);return{"plan.needs":pp(l),"plan.tips":hp(l),"plan.items":fp(e,c)}},[d,l,a,s,c]);return t===null||o==="pending"?null:/* @__PURE__ */n.jsx(SlotParts,{slot:cg,doc:i,data:u,blocks:dg,override:ug})}var pg=12;function HealthPlanFocus(e){/* @__PURE__ */
387
+ return n.jsx(HealthPlanFocusProvider,{...e,children:/* @__PURE__ */n.jsx(FocusLayout,{})})}function FocusLayout(){let i=Pu(),{props:o,hp:l,kit:a}=i,{S:s,copy:c}=a,d=t.useWindowDimensions(),{started:u,top:p,screens:h,toast:g,title:f,back:m,closeOverlays:y}=l,b=o.onOverlayChange,w=uc(),x=r.useSafeAreaInsets(),k=e.useRef(null),[v,S]=e.useState(null),T=u!==null?"started":p===void 0?null:p.kind==="order"?`order:${p.key}`:p.kind,C=T!==null;e.useEffect(()=>{if(!C||w===null){S(null);return}w.measure(({y:e,height:t})=>{let n=Math.max(0,d.height-(e+t)),r=Math.max(0,x.bottom-n);S(e=>e!==null&&e.height===t&&e.under===r?e:{height:t,under:r})})},[C,w,d.height,x.bottom]),e.useEffect(()=>{v!==null&&T!==null&&w?.top(k.current)},[v===null,T,w]);let{bx:j,tb:I}=s.D,H=/* @__PURE__ */n.jsxs(t.View,{style:[...j("root"),o.style],testID:"health-plan-focus",onLayout:e=>i.setPageWidth(Math.round(e.nativeEvent.layout.width)),children:[
387
388
  /* @__PURE__ */n.jsx(ConnectedHealthPlanToolbar,{}),
388
389
  /* @__PURE__ */n.jsx(ConnectedHealthPlanToast,{}),
389
390
  /* @__PURE__ */n.jsx(ConnectedHealthPlanHeader,{}),
@@ -395,13 +396,13 @@ return n.jsx(HealthPlanFocusProvider,{...e,children:/* @__PURE__ */n.jsx(FocusLa
395
396
  /* @__PURE__ */n.jsx(ConnectedHealthPlanOtherItems,{}),
396
397
  /* @__PURE__ */n.jsx(ConnectedHealthPlanSigns,{}),
397
398
  /* @__PURE__ */n.jsx(ConnectedHealthPlanExtras,{}),
398
- /* @__PURE__ */n.jsx(ConnectedHealthPlanFine,{})]}),P=b===void 0?/* @__PURE__ */n.jsx(HealthPlanBackRow,{onBack:m}):null,F=(e,r,i,o,l=null)=>{let a=o===null?null:/* @__PURE__ */n.jsx(t.View,{style:[...j("pushFoot",l),{paddingBottom:Math.max(dg,v?.under??0)}],testID:"health-plan-push-foot",children:o}),c=/* @__PURE__ */n.jsxs(n.Fragment,{children:[r===null?null:/* @__PURE__ */n.jsx(t.View,{style:s.screen,children:r}),i]});return v===null?/* @__PURE__ */n.jsxs(t.View,{ref:k,testID:e,style:{backgroundColor:s.palette.paper},collapsable:false,children:[c,a]}):/* @__PURE__ */n.jsxs(t.View,{ref:k,testID:e,style:{height:v.height,backgroundColor:s.palette.paper},collapsable:false,children:[
399
- /* @__PURE__ */n.jsx(t.ScrollView,{style:{flex:1},keyboardShouldPersistTaps:"handled",testID:"health-plan-push-scroll",children:c}),a]})},R=null;if(u!==null)R=F("health-plan-started",null,/* @__PURE__ */n.jsx(ConnectedHealthPlanStarted,{}),Us(a,c.startedDone,l.closeStarted,{testID:"health-plan-started-done",part:"footButton"}));else if(p!==void 0){let e=null,r=null,i=null;if(p.kind==="cart"){let{views:t,cartReady:o}=l;e=/* @__PURE__ */n.jsx(ConnectedHealthPlanCart,{}),i=t.length===0?null:"foot",r=t.length===0?Us(a,c.startedDone,y):/* @__PURE__ */n.jsxs(n.Fragment,{children:[Us(a,c.checkoutCart(l.fmt(l.cartTotal,l.currency)??""),()=>l.openSheet({kind:"cartCheckout"}),{disabled:!o,testID:"health-plan-cart-checkout"}),!o&&c.cartOneAtATime!==""?/* @__PURE__ */n.jsx(Text,{style:I("shopFine","shopFineCenter"),children:c.cartOneAtATime}):null]})}else if(p.kind==="orders")e=/* @__PURE__ */n.jsx(ConnectedHealthPlanOrders,{});else if(p.kind==="order")e=/* @__PURE__ */n.jsx(ConnectedHealthPlanOrder,{});else{let t=p.kind==="placed"?p.orders:[],o=t[0];e=/* @__PURE__ */n.jsx(ConnectedHealthPlanPlaced,{}),i="pushFootStack",r=/* @__PURE__ */n.jsxs(n.Fragment,{children:[Us(a,t.length===1?c.viewOrder:c.seeOrders,()=>l.replaceScreens(t.length===1&&o!==void 0?[{kind:"order",key:o.orderId}]:[{kind:"orders"}]),{testID:"health-plan-placed-view"}),Us(a,c.startedDone,y,{ghost:true})]})}let o=b===void 0&&f!==void 0?/* @__PURE__ */n.jsx(Text,{style:s.h3,accessibilityRole:"header",children:f}):null;R=F(`health-plan-screen-${p.kind}`,P===null&&o===null&&g===null?null:/* @__PURE__ */n.jsxs(n.Fragment,{children:[P,o,
399
+ /* @__PURE__ */n.jsx(ConnectedHealthPlanFine,{})]}),P=b===void 0?/* @__PURE__ */n.jsx(HealthPlanBackRow,{onBack:m}):null,F=(e,r,i,o,l=null)=>{let a=o===null?null:/* @__PURE__ */n.jsx(t.View,{style:[...j("pushFoot",l),{paddingBottom:Math.max(pg,v?.under??0)}],testID:"health-plan-push-foot",children:o}),c=/* @__PURE__ */n.jsxs(n.Fragment,{children:[r===null?null:/* @__PURE__ */n.jsx(t.View,{style:s.screen,children:r}),i]});return v===null?/* @__PURE__ */n.jsxs(t.View,{ref:k,testID:e,style:{backgroundColor:s.palette.paper},collapsable:false,children:[c,a]}):/* @__PURE__ */n.jsxs(t.View,{ref:k,testID:e,style:{height:v.height,backgroundColor:s.palette.paper},collapsable:false,children:[
400
+ /* @__PURE__ */n.jsx(t.ScrollView,{style:{flex:1},keyboardShouldPersistTaps:"handled",testID:"health-plan-push-scroll",children:c}),a]})},R=null;if(u!==null)R=F("health-plan-started",null,/* @__PURE__ */n.jsx(ConnectedHealthPlanStarted,{}),Gs(a,c.startedDone,l.closeStarted,{testID:"health-plan-started-done",part:"footButton"}));else if(p!==void 0){let e=null,r=null,i=null;if(p.kind==="cart"){let{views:t,cartReady:o}=l;e=/* @__PURE__ */n.jsx(ConnectedHealthPlanCart,{}),i=t.length===0?null:"foot",r=t.length===0?Gs(a,c.startedDone,y):/* @__PURE__ */n.jsxs(n.Fragment,{children:[Gs(a,c.checkoutCart(l.fmt(l.cartTotal,l.currency)??""),()=>l.openSheet({kind:"cartCheckout"}),{disabled:!o,testID:"health-plan-cart-checkout"}),!o&&c.cartOneAtATime!==""?/* @__PURE__ */n.jsx(Text,{style:I("shopFine","shopFineCenter"),children:c.cartOneAtATime}):null]})}else if(p.kind==="orders")e=/* @__PURE__ */n.jsx(ConnectedHealthPlanOrders,{});else if(p.kind==="order")e=/* @__PURE__ */n.jsx(ConnectedHealthPlanOrder,{});else{let t=p.kind==="placed"?p.orders:[],o=t[0];e=/* @__PURE__ */n.jsx(ConnectedHealthPlanPlaced,{}),i="pushFootStack",r=/* @__PURE__ */n.jsxs(n.Fragment,{children:[Gs(a,t.length===1?c.viewOrder:c.seeOrders,()=>l.replaceScreens(t.length===1&&o!==void 0?[{kind:"order",key:o.orderId}]:[{kind:"orders"}]),{testID:"health-plan-placed-view"}),Gs(a,c.startedDone,y,{ghost:true})]})}let o=b===void 0&&f!==void 0?/* @__PURE__ */n.jsx(Text,{style:s.h3,accessibilityRole:"header",children:f}):null;R=F(`health-plan-screen-${p.kind}`,P===null&&o===null&&g===null?null:/* @__PURE__ */n.jsxs(n.Fragment,{children:[P,o,
400
401
  /* @__PURE__ */n.jsx(ConnectedHealthPlanToast,{})]}),
401
402
  /* @__PURE__ */n.jsx(t.View,{testID:"health-plan-screen-body",children:e}),r,i)}/* @__PURE__ */
402
403
  return n.jsxs(n.Fragment,{children:[
403
404
  /* @__PURE__ */n.jsx(PlanPushes,{id:u!==null?"started":p===void 0?"page":p.kind==="order"?`order:${p.key}`:p.kind,depth:h.length+(u!==null?1:0),node:R??H,width:d.width,paper:s.palette.paper,still:a.still}),
404
- /* @__PURE__ */n.jsx(ConnectedHealthPlanSheet,{})]})}function HealthPlanItemCard(r){let{item:i,onToggle:o,pending:l=false,error:a=null,imageVariant:s=y.imageVariant,reasonVariant:c=y.reasonVariant,priceFormat:d,renderFooter:u,showCategory:h=y.showCategory,cardShadow:f=y.cardShadow,cardBorder:m=y.cardBorder,addButtonSize:b=y.addButtonSize,addButtonFontSize:w,addedVariant:x=y.addedVariant,categoryVariant:v=y.categoryVariant,cardPadding:T,itemTitleSize:C,itemTitleWeight:j,priceSize:I,priceWeight:H,reasonTextSize:P,reasonLabelWidth:F,reasonGap:R,style:D}=jt(r,["onToggle"]),z=vo(),$=e.useMemo(()=>fg(z),[z]),O=(e,t)=>{let n=S(e),r=n===null||n===0?null:{fontSize:n,lineHeight:Math.round(n*z.type.lineHeight.snug)};return r===null&&t===void 0?null:{...r,...t===void 0?null:{fontWeight:String(t)}}},B=O(C,j),_=O(I,H),L=O(P),E=S(F),A=S(R),W=S(T),V=e.useMemo(()=>gg(f,$.cardShadow,z),[f,$,z]),M=formatHealthPlanPriceWith(i.price,i.currency,d),N=s==="thumbnail",U=c==="rows",q=M===null?null:/* @__PURE__ */n.jsx(Text,{style:[$.price,_],children:M}),G=h&&i.category!==null?/* @__PURE__ */n.jsx(Text,{...v==="label"?{tier:"compact"}:{},style:v==="label"?$.categoryLabel:$.category,testID:`health-plan-category-${i.productId}`,children:i.category}):null,K=b==="full",{height:X,hit:Y}=k(b),J=(Y-X)/2,Q=S(w),Z=K?$.add:[$.addCompact,{minHeight:X,paddingHorizontal:X>=40?z.space.lg:z.space.md}],ee=e=>[K||X>=40?$.addLabel:$.addCompactLabel,e?$.addPressedLabel:null,Q===null||Q===0?null:{fontSize:Q,lineHeight:Math.round(Q*z.type.lineHeight.snug)}],te=J>0?{top:J,bottom:J,left:0,right:0}:void 0,ne=/* @__PURE__ */n.jsx(Text,{style:[N?$.thumbTitle:$.title,B],accessibilityRole:"header",children:i.title}),re=i.sample?/* @__PURE__ */n.jsx(t.View,{style:$.sample,children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:$.sampleLabel,children:p.sample})}):null,ie=i.description===null?null:/* @__PURE__ */n.jsx(Text,{style:$.body,children:i.description}),oe=i.inPlan&&x==="pressed"?
405
+ /* @__PURE__ */n.jsx(ConnectedHealthPlanSheet,{})]})}function HealthPlanItemCard(r){let{item:i,onToggle:o,pending:l=false,error:a=null,imageVariant:s=y.imageVariant,reasonVariant:c=y.reasonVariant,priceFormat:d,renderFooter:u,showCategory:h=y.showCategory,cardShadow:f=y.cardShadow,cardBorder:m=y.cardBorder,addButtonSize:b=y.addButtonSize,addButtonFontSize:w,addedVariant:x=y.addedVariant,categoryVariant:v=y.categoryVariant,cardPadding:T,itemTitleSize:C,itemTitleWeight:j,priceSize:I,priceWeight:H,reasonTextSize:P,reasonLabelWidth:F,reasonGap:R,style:D}=jt(r,["onToggle"]),z=To(),$=e.useMemo(()=>yg(z),[z]),O=(e,t)=>{let n=S(e),r=n===null||n===0?null:{fontSize:n,lineHeight:Math.round(n*z.type.lineHeight.snug)};return r===null&&t===void 0?null:{...r,...t===void 0?null:{fontWeight:String(t)}}},B=O(C,j),_=O(I,H),L=O(P),E=S(F),A=S(R),W=S(T),V=e.useMemo(()=>mg(f,$.cardShadow,z),[f,$,z]),M=formatHealthPlanPriceWith(i.price,i.currency,d),N=s==="thumbnail",U=c==="rows",q=M===null?null:/* @__PURE__ */n.jsx(Text,{style:[$.price,_],children:M}),G=h&&i.category!==null?/* @__PURE__ */n.jsx(Text,{...v==="label"?{tier:"compact"}:{},style:v==="label"?$.categoryLabel:$.category,testID:`health-plan-category-${i.productId}`,children:i.category}):null,K=b==="full",{height:X,hit:Y}=k(b),J=(Y-X)/2,Q=S(w),Z=K?$.add:[$.addCompact,{minHeight:X,paddingHorizontal:X>=40?z.space.lg:z.space.md}],ee=e=>[K||X>=40?$.addLabel:$.addCompactLabel,e?$.addPressedLabel:null,Q===null||Q===0?null:{fontSize:Q,lineHeight:Math.round(Q*z.type.lineHeight.snug)}],te=J>0?{top:J,bottom:J,left:0,right:0}:void 0,ne=/* @__PURE__ */n.jsx(Text,{style:[N?$.thumbTitle:$.title,B],accessibilityRole:"header",children:i.title}),re=i.sample?/* @__PURE__ */n.jsx(t.View,{style:$.sample,children:/* @__PURE__ */n.jsx(Text,{tier:"badge",style:$.sampleLabel,children:p.sample})}):null,ie=i.description===null?null:/* @__PURE__ */n.jsx(Text,{style:$.body,children:i.description}),oe=i.inPlan&&x==="pressed"?
405
406
  /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>o?.(false),disabled:l,accessibilityRole:"button",accessibilityLabel:p.added,accessibilityState:{disabled:l,busy:l,selected:true},style:[Z,$.addPressed,l?$.dimmed:null],...te?{hitSlop:te}:{},testID:`health-plan-added-${i.productId}`,children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:ee(true),children:p.added})}):i.inPlan?/* @__PURE__ */n.jsxs(t.View,{style:$.row,children:[
406
407
  /* @__PURE__ */n.jsx(Text,{style:$.added,children:p.added}),
407
408
  /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>o?.(false),disabled:l,accessibilityRole:"button",accessibilityLabel:p.remove,accessibilityState:{disabled:l,busy:l},style:$.remove,testID:`health-plan-remove-${i.productId}`,children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:$.removeLabel,children:p.remove})})]}):/* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>o?.(true),disabled:l,accessibilityRole:"button",accessibilityLabel:p.addToCart,accessibilityState:{disabled:l,busy:l,...x==="pressed"?{selected:false}:{}},style:[Z,l?$.dimmed:null],...te?{hitSlop:te}:{},testID:`health-plan-add-${i.productId}`,children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:ee(false),children:p.addToCart})});/* @__PURE__ */
@@ -409,26 +410,26 @@ return n.jsxs(t.View,{style:[$.card,V,m?null:$.cardNoBorder,W===null?null:{paddi
409
410
  /* @__PURE__ */n.jsxs(t.View,{style:$.thumbCopy,children:[G,ne,re,ie]})]}):/* @__PURE__ */n.jsxs(n.Fragment,{children:[i.imageUrl===null?null:/* @__PURE__ */n.jsx(t.Image,{source:{uri:i.imageUrl},style:$.image,resizeMode:"cover",accessibilityIgnoresInvertColors:true}),G,
410
411
  /* @__PURE__ */n.jsxs(t.View,{style:$.head,children:[ne,q]}),re,ie]}),i.reasons.map((e,r)=>/* @__PURE__ */n.jsxs(t.View,{style:[U?$.reasonRow:$.reason,A===null?null:{gap:A}],testID:`health-plan-reason-${U?"row":"pill"}`,children:[
411
412
  /* @__PURE__ */n.jsx(Text,{tier:"compact",style:[U?$.reasonRowKind:$.reasonKind,U&&E!==null?{width:E}:null],children:g[e.kind]}),
412
- /* @__PURE__ */n.jsx(Text,{style:[U?$.reasonRowText:$.reasonText,L],children:e.text})]},`${e.kind}-${r}`)),u===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:i,render:()=>u(i),fallback:null}),N?/* @__PURE__ */n.jsxs(t.View,{style:$.actionRow,children:[q,oe]}):oe,a===null?null:/* @__PURE__ */n.jsx(Text,{style:$.error,accessibilityLiveRegion:"polite",children:a.displayMessage})]})}var ug=64,pg=32,hg=72;function gg(e,t,n){if(e===true)return t;if(e===void 0||e===false)return null;let r=typeof e=="string"?v(e):e;if(r===null)return null;let i=qi(r.color);if(i===null)return null;let o=Math.max(0,r.blur);return{shadowColor:`rgb(${i.r}, ${i.g}, ${i.b})`,shadowOffset:{width:r.offsetX??0,height:r.offsetY},shadowRadius:o/2,shadowOpacity:Math.min(1,Math.max(0,i.a*(r.opacity??1))),elevation:Math.max(0,Math.min(n.space.lg,Math.round(o/2)))}}function fg(e){let{color:n,radius:r,space:i,type:o,slots:l}=e,a=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n}),s=l.planCard?.textColor??l.card?.textColor,c=l.planReasonLabel?.textColor??l.chip?.textColor??n.brandInk;return t.StyleSheet.create({card:{gap:i.sm,padding:i.lg,borderRadius:r.lg,borderWidth:1,borderColor:n.brandBorder,backgroundColor:n.surface,...Bo(l.card,1),...Bo(l.planCard,1)},cardShadow:{shadowColor:n.shadow,shadowOffset:{width:0,height:i.xs},shadowRadius:i.md,shadowOpacity:.08,elevation:i.xs},cardNoBorder:{borderWidth:0},category:a(o.size.caption,s??n.text.secondary,"regular"),categoryLabel:{...face(e,"monoMedium"),fontSize:o.size.micro,lineHeight:Math.round(o.size.micro*o.lineHeight.snug),letterSpacing:o.letterSpacing.monoWide,textTransform:"uppercase",color:c},image:{width:"100%",aspectRatio:4/3,borderRadius:r.md,backgroundColor:n.surfaceSubtle},thumbHead:{flexDirection:"row",alignItems:"flex-start",gap:i.md},thumb:{width:ug,height:ug,borderRadius:r.md,backgroundColor:n.surfaceSubtle},thumbCopy:{flex:1,gap:i.xs},thumbTitle:a(o.size.body,s??n.text.primary,"bold"),actionRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.sm},reasonRow:{flexDirection:"row",alignItems:"flex-start",gap:i.lg},reasonRowKind:{width:hg,paddingTop:2,...face(e,"monoMedium"),fontSize:o.size.micro,lineHeight:Math.round(o.size.micro*o.lineHeight.snug),letterSpacing:o.letterSpacing.monoWide,textTransform:"uppercase",color:c},reasonRowText:{flex:1,...a(o.size.caption,s??n.text.secondary,"regular")},head:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",gap:i.sm},title:{flex:1,...a(o.size.body,s??n.text.primary,"bold")},price:a(o.size.body,s??n.text.primary,"bold"),sample:{alignSelf:"flex-start",paddingHorizontal:i.sm,paddingVertical:2,borderRadius:r.pill,backgroundColor:n.badgeBgNeutral},sampleLabel:a(o.size.caption,n.text.secondary,"bold"),body:a(o.size.caption,s??n.text.secondary,"regular"),reason:{flexDirection:"row",alignItems:"baseline",gap:i.sm,paddingHorizontal:i.sm,paddingVertical:i.xs,borderRadius:r.md,backgroundColor:n.brandSofter,...Bo(l.chip,1)},reasonKind:{...a(o.size.caption,n.brandInk,"bold"),textTransform:"uppercase",letterSpacing:.4,..._o(l.chip)},reasonText:{flex:1,...a(o.size.caption,n.text.secondary,"regular"),..._o(l.chip)},row:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.sm},added:a(o.size.caption,n.brandInk,"bold"),add:{minHeight:44,paddingHorizontal:i.lg,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:n.brand,...Bo(l.primaryButton)},addLabel:{...a(o.size.body,n.text.onBrand,"bold"),..._o(l.primaryButton)},addCompact:{minHeight:pg,alignSelf:"flex-start",paddingHorizontal:i.md,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:n.brand,...Bo(l.primaryButton)},addCompactLabel:{...a(o.size.caption,n.text.onBrand,"bold"),..._o(l.primaryButton)},addPressed:{backgroundColor:n.brandInk,borderWidth:0},addPressedLabel:{color:readableOn(n.brandInk)},remove:{minHeight:44,justifyContent:"center"},removeLabel:{...a(o.size.caption,n.linkInk,"bold"),..._o(l.link)},dimmed:{opacity:.5},error:a(o.size.caption,n.errorRed,"regular")})}var mg=478;function HealthPlanPageSkeleton({style:e}){let r=du({}),i=r.S.X,{bx:o}=r.S.D,l=i.roles.tile,a=(e,t,n=0)=>({width:e,height:t,marginTop:n,borderRadius:6,backgroundColor:l}),s=i.title.text,c=i.subtitle.text;/* @__PURE__ */
413
+ /* @__PURE__ */n.jsx(Text,{style:[U?$.reasonRowText:$.reasonText,L],children:e.text})]},`${e.kind}-${r}`)),u===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:i,render:()=>u(i),fallback:null}),N?/* @__PURE__ */n.jsxs(t.View,{style:$.actionRow,children:[q,oe]}):oe,a===null?null:/* @__PURE__ */n.jsx(Text,{style:$.error,accessibilityLiveRegion:"polite",children:a.displayMessage})]})}var hg=64,gg=32,fg=72;function mg(e,t,n){if(e===true)return t;if(e===void 0||e===false)return null;let r=typeof e=="string"?v(e):e;if(r===null)return null;let i=Ki(r.color);if(i===null)return null;let o=Math.max(0,r.blur);return{shadowColor:`rgb(${i.r}, ${i.g}, ${i.b})`,shadowOffset:{width:r.offsetX??0,height:r.offsetY},shadowRadius:o/2,shadowOpacity:Math.min(1,Math.max(0,i.a*(r.opacity??1))),elevation:Math.max(0,Math.min(n.space.lg,Math.round(o/2)))}}function yg(e){let{color:n,radius:r,space:i,type:o,slots:l}=e,a=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n}),s=l.planCard?.textColor??l.card?.textColor,c=l.planReasonLabel?.textColor??l.chip?.textColor??n.brandInk;return t.StyleSheet.create({card:{gap:i.sm,padding:i.lg,borderRadius:r.lg,borderWidth:1,borderColor:n.brandBorder,backgroundColor:n.surface,...Lo(l.card,1),...Lo(l.planCard,1)},cardShadow:{shadowColor:n.shadow,shadowOffset:{width:0,height:i.xs},shadowRadius:i.md,shadowOpacity:.08,elevation:i.xs},cardNoBorder:{borderWidth:0},category:a(o.size.caption,s??n.text.secondary,"regular"),categoryLabel:{...face(e,"monoMedium"),fontSize:o.size.micro,lineHeight:Math.round(o.size.micro*o.lineHeight.snug),letterSpacing:o.letterSpacing.monoWide,textTransform:"uppercase",color:c},image:{width:"100%",aspectRatio:4/3,borderRadius:r.md,backgroundColor:n.surfaceSubtle},thumbHead:{flexDirection:"row",alignItems:"flex-start",gap:i.md},thumb:{width:hg,height:hg,borderRadius:r.md,backgroundColor:n.surfaceSubtle},thumbCopy:{flex:1,gap:i.xs},thumbTitle:a(o.size.body,s??n.text.primary,"bold"),actionRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.sm},reasonRow:{flexDirection:"row",alignItems:"flex-start",gap:i.lg},reasonRowKind:{width:fg,paddingTop:2,...face(e,"monoMedium"),fontSize:o.size.micro,lineHeight:Math.round(o.size.micro*o.lineHeight.snug),letterSpacing:o.letterSpacing.monoWide,textTransform:"uppercase",color:c},reasonRowText:{flex:1,...a(o.size.caption,s??n.text.secondary,"regular")},head:{flexDirection:"row",alignItems:"baseline",justifyContent:"space-between",gap:i.sm},title:{flex:1,...a(o.size.body,s??n.text.primary,"bold")},price:a(o.size.body,s??n.text.primary,"bold"),sample:{alignSelf:"flex-start",paddingHorizontal:i.sm,paddingVertical:2,borderRadius:r.pill,backgroundColor:n.badgeBgNeutral},sampleLabel:a(o.size.caption,n.text.secondary,"bold"),body:a(o.size.caption,s??n.text.secondary,"regular"),reason:{flexDirection:"row",alignItems:"baseline",gap:i.sm,paddingHorizontal:i.sm,paddingVertical:i.xs,borderRadius:r.md,backgroundColor:n.brandSofter,...Lo(l.chip,1)},reasonKind:{...a(o.size.caption,n.brandInk,"bold"),textTransform:"uppercase",letterSpacing:.4,...Eo(l.chip)},reasonText:{flex:1,...a(o.size.caption,n.text.secondary,"regular"),...Eo(l.chip)},row:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:i.sm},added:a(o.size.caption,n.brandInk,"bold"),add:{minHeight:44,paddingHorizontal:i.lg,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:n.brand,...Lo(l.primaryButton)},addLabel:{...a(o.size.body,n.text.onBrand,"bold"),...Eo(l.primaryButton)},addCompact:{minHeight:gg,alignSelf:"flex-start",paddingHorizontal:i.md,borderRadius:r.pill,alignItems:"center",justifyContent:"center",backgroundColor:n.brand,...Lo(l.primaryButton)},addCompactLabel:{...a(o.size.caption,n.text.onBrand,"bold"),...Eo(l.primaryButton)},addPressed:{backgroundColor:n.brandInk,borderWidth:0},addPressedLabel:{color:readableOn(n.brandInk)},remove:{minHeight:44,justifyContent:"center"},removeLabel:{...a(o.size.caption,n.linkInk,"bold"),...Eo(l.link)},dimmed:{opacity:.5},error:a(o.size.caption,n.errorRed,"regular")})}var bg=478;function HealthPlanPageSkeleton({style:e}){let r=pu({}),i=r.S.X,{bx:o}=r.S.D,l=i.roles.tile,a=(e,t,n=0)=>({width:e,height:t,marginTop:n,borderRadius:6,backgroundColor:l}),s=i.title.text,c=i.subtitle.text;/* @__PURE__ */
413
414
  return n.jsxs(t.View,{style:[...o("root"),{flexGrow:1},e],accessible:true,accessibilityRole:"progressbar",accessibilityLabel:p.loading,accessibilityState:{busy:true},testID:"health-plan-loading",children:[
414
415
  /* @__PURE__ */n.jsxs(t.View,{style:o("head"),children:[
415
- /* @__PURE__ */n.jsxs(t.View,{style:Ss(i.head,0),children:[
416
+ /* @__PURE__ */n.jsxs(t.View,{style:Cs(i.head,0),children:[
416
417
  /* @__PURE__ */n.jsx(t.View,{style:a("40%",Number(i.eyebrow.text.lineHeight??16))}),
417
418
  /* @__PURE__ */n.jsx(t.View,{style:a("70%",Number(s.lineHeight??30),6)}),
418
419
  /* @__PURE__ */n.jsx(t.View,{style:a("90%",Number(c.lineHeight??22),Number(i.subtitle.box.marginTop??6))})]}),
419
- /* @__PURE__ */n.jsx(t.View,{style:[...o("headImage"),hu]})]}),
420
+ /* @__PURE__ */n.jsx(t.View,{style:[...o("headImage"),fu]})]}),
420
421
  /* @__PURE__ */n.jsxs(t.View,{style:[...o("by"),{minHeight:60}],children:[
421
- /* @__PURE__ */n.jsx(t.View,{style:[...o("byIcon"),hu]}),
422
- /* @__PURE__ */n.jsxs(t.View,{style:[Ss(i.by,1),{gap:6}],children:[
422
+ /* @__PURE__ */n.jsx(t.View,{style:[...o("byIcon"),fu]}),
423
+ /* @__PURE__ */n.jsxs(t.View,{style:[Cs(i.by,1),{gap:6}],children:[
423
424
  /* @__PURE__ */n.jsx(t.View,{style:a("70%",14)}),
424
425
  /* @__PURE__ */n.jsx(t.View,{style:a("30%",10)})]})]}),
425
- /* @__PURE__ */n.jsxs(t.View,{style:[...o("need"),{height:mg,gap:12}],children:[
426
+ /* @__PURE__ */n.jsxs(t.View,{style:[...o("need"),{height:bg,gap:12}],children:[
426
427
  /* @__PURE__ */n.jsx(t.View,{style:a("35%",16)}),
427
428
  /* @__PURE__ */n.jsx(t.View,{style:a("60%",22)}),
428
429
  /* @__PURE__ */n.jsx(t.View,{style:a("100%",44)}),
429
430
  /* @__PURE__ */n.jsx(t.View,{style:a("100%",64,4)}),
430
- /* @__PURE__ */n.jsx(t.View,{style:a("100%",120,4)})]})]})}function HealthPlanErrorCard({style:e,children:r}){let i=du({}),{bx:o}=i.S.D;/* @__PURE__ */
431
- return n.jsx(t.View,{style:[...o("root"),e],testID:"health-plan-error",children:/* @__PURE__ */n.jsx(t.View,{style:o("sec"),children:r})})}var yg=["onBuy","onMore","onExtra","onAddToVisit","onOverlayChange","onSubscriptionChange","onOneBoxOrder","onJump","onOrderHelp","onWeightSaved","onConnectRecords","onWaitAction","navigate"];function EverfurHealthPlan(r){let i=jt(r,["onCheckout","onAvailability","onAvailabilityChange","onAsk"]),o=vo(),l=e.useMemo(()=>wg(o),[o]),a=r.focus,s=e.useMemo(()=>a===void 0?void 0:jt(a,yg),[a]),{lifecycle:c,refreshKey:d,presentation:u,onAvailability:h,onAvailabilityChange:g,...f}=i,m=e.useRef({onAvailability:h,onAvailabilityChange:g});m.current={onAvailability:h,onAvailabilityChange:g};let y=e.useMemo(()=>(e,petRef)=>{let{onAvailability:t,onAvailabilityChange:n}=m.current;t?.(e,petRef),n?.(e)},[]),b=useEverfurPresentation(u===void 0?void 0:tr({healthPlanLayout:u.healthPlanLayout,serverSlots:u.serverSlots})),w=b.healthPlanLayout,x=useEverfurHealthPlan({...i.petRef===void 0?{}:{petRef:i.petRef},...c===void 0?{}:{lifecycle:c},...d===void 0?{}:{refreshKey:d}});return x.status==="signedOut"?/* @__PURE__ */n.jsx(t.View,{style:[l.page,i.style],children:/* @__PURE__ */n.jsx(Text,{style:l.body,children:p.signedOut})}):/* @__PURE__ */n.jsx(ir.Provider,{value:b.serverSlots,children:/* @__PURE__ */n.jsx(CapabilityGate,{capability:"healthPlan",...i.renderDisabled?{renderDisabled:i.renderDisabled}:{},style:i.style,children:/* @__PURE__ */n.jsx(SdkTabletColumn,{children:/* @__PURE__ */n.jsx(PlanBody,{...f,plan:x,styles:l,focusLayout:w==="focus_plan",...s===void 0?{}:{focus:s},onReport:y,...c===void 0?{}:{lifecycle:c},...d===void 0?{}:{refreshKey:d}})})})})}function bg(t,petRef,n){e.useEffect(()=>{t!==null&&n(t,petRef)},[t,petRef,n])}function Refused({error:e,retry:r,renderNotice:i,styles:o,style:l}){let a=isHealthPlanSessionRequired(e),s=a?p.signedOut:e?.displayMessage??"";/* @__PURE__ */
431
+ /* @__PURE__ */n.jsx(t.View,{style:a("100%",120,4)})]})]})}function HealthPlanErrorCard({style:e,children:r}){let i=pu({}),{bx:o}=i.S.D;/* @__PURE__ */
432
+ return n.jsx(t.View,{style:[...o("root"),e],testID:"health-plan-error",children:/* @__PURE__ */n.jsx(t.View,{style:o("sec"),children:r})})}var wg=["onBuy","onMore","onExtra","onAddToVisit","onOverlayChange","onSubscriptionChange","onOneBoxOrder","onJump","onOrderHelp","onWeightSaved","onConnectRecords","onWaitAction","navigate"];function EverfurHealthPlan(r){let i=jt(r,["onCheckout","onAvailability","onAvailabilityChange","onAsk"]),o=To(),l=e.useMemo(()=>kg(o),[o]),a=r.focus,s=e.useMemo(()=>a===void 0?void 0:jt(a,wg),[a]),{lifecycle:c,refreshKey:d,presentation:u,onAvailability:h,onAvailabilityChange:g,...f}=i,m=e.useRef({onAvailability:h,onAvailabilityChange:g});m.current={onAvailability:h,onAvailabilityChange:g};let y=e.useMemo(()=>(e,petRef)=>{let{onAvailability:t,onAvailabilityChange:n}=m.current;t?.(e,petRef),n?.(e)},[]),b=useEverfurPresentation(u===void 0?void 0:rr({healthPlanLayout:u.healthPlanLayout,serverSlots:u.serverSlots})),w=b.healthPlanLayout,x=useEverfurHealthPlan({...i.petRef===void 0?{}:{petRef:i.petRef},...c===void 0?{}:{lifecycle:c},...d===void 0?{}:{refreshKey:d}});return x.status==="signedOut"?/* @__PURE__ */n.jsx(t.View,{style:[l.page,i.style],children:/* @__PURE__ */n.jsx(Text,{style:l.body,children:p.signedOut})}):/* @__PURE__ */n.jsx(lr.Provider,{value:b.serverSlots,children:/* @__PURE__ */n.jsx(CapabilityGate,{capability:"healthPlan",...i.renderDisabled?{renderDisabled:i.renderDisabled}:{},style:i.style,children:/* @__PURE__ */n.jsx(SdkTabletColumn,{children:/* @__PURE__ */n.jsx(PlanBody,{...f,plan:x,styles:l,focusLayout:w==="focus_plan",...s===void 0?{}:{focus:s},onReport:y,...c===void 0?{}:{lifecycle:c},...d===void 0?{}:{refreshKey:d}})})})})}function xg(t,petRef,n){e.useEffect(()=>{t!==null&&n(t,petRef)},[t,petRef,n])}function Refused({error:e,retry:r,renderNotice:i,styles:o,style:l}){let a=isHealthPlanSessionRequired(e),s=a?p.signedOut:e?.displayMessage??"";/* @__PURE__ */
432
433
  return n.jsx(t.View,{style:l,children:/* @__PURE__ */n.jsxs(t.View,{style:o.notice,accessibilityLiveRegion:"polite",children:[e===null?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:e,render:()=>i?i(e):/* @__PURE__ */n.jsx(Text,{style:o.noticeText,children:s}),fallback:/* @__PURE__ */n.jsx(Text,{style:o.noticeText,children:s})}),a?null:/* @__PURE__ */n.jsx(t.Pressable,{onPress:r,accessibilityRole:"button",accessibilityLabel:p.retry,style:o.retry,testID:"health-plan-retry",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:o.retryLabel,children:p.retry})})]})})}function Loading({styles:e,style:r}){/* @__PURE__ */
433
434
  return n.jsxs(t.View,{style:[e.page,r],accessible:true,accessibilityRole:"progressbar",accessibilityLabel:p.loading,accessibilityState:{busy:true},testID:"health-plan-loading",children:[
434
435
  /* @__PURE__ */n.jsx(t.View,{style:e.skeletonTitle}),
@@ -436,12 +437,12 @@ return n.jsxs(t.View,{style:[e.page,r],accessible:true,accessibilityRole:"progre
436
437
  /* @__PURE__ */n.jsx(t.View,{style:e.skeletonCard})]})}function Empty({emptyCopy:e,onAsk:r,heading:i,header:o,styles:l,style:a}){let s={emptyTitle:e?.emptyTitle??p.emptyTitle,emptyBody:e?.emptyBody??p.emptyBody,emptyAsk:e?.emptyAsk??p.emptyAsk};return s.emptyTitle.trim()===""&&s.emptyBody.trim()===""?null:/* @__PURE__ */n.jsxs(t.View,{style:a,testID:"health-plan-empty",children:[i,o,
437
438
  /* @__PURE__ */n.jsxs(t.View,{style:l.empty,children:[s.emptyTitle.trim()===""?null:/* @__PURE__ */n.jsx(Text,{style:l.subtitle,children:s.emptyTitle}),s.emptyBody.trim()===""?null:/* @__PURE__ */n.jsx(Text,{style:l.body,children:s.emptyBody}),s.emptyAsk.trim()===""||r===void 0?null:/* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>r(),accessibilityRole:"button",style:l.retry,testID:"health-plan-empty-ask",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:l.retryLabel,children:s.emptyAsk})})]})]})}function FocusBody({plan:t,focus:r,styles:i,style:o,petName:l,petSpecies:a,onCheckout:s,renderNotice:c,priceFormat:d,showCategory:u,lifecycle:p,refreshKey:h,onAvailable:g,list:f,empty:m}){let y=r.design===void 0,b=useHealthPlanPage({petRef:t.petRef,enabled:y,...r.pageRepository?{repository:r.pageRepository}:{},...p===void 0?{}:{lifecycle:p},...h===void 0?{}:{refreshKey:h}}),w=r.design,x,k=r.weightKnown,v=l,S=r.petSex??null,T=a,C=false,j=false,I="ready";y&&(b.phase==="failed"?I=isHealthPlanSessionRequired(b.error)?"failed":"list":b.missing?I="list":b.page===null?I="loading":b.page.page===null?I="list":(w=b.page.page,x=b.page.checkout,k??=b.page.pet.weightKg!==null,v=b.page.pet.name??l,S=b.page.pet.sex??S,T=b.page.pet.species??a,C=b.page.vetReviewed===true,j=b.page.trackingTextsEnabled===true));let H=t.status==="empty";H&&I!=="loading"&&(I=I==="ready"&&V(w)?"ready":"hidden"),H&&I==="ready"&&w!==void 0&&(w=M(w));let P=t.plan?.items??[],F=w?.pick,R=F===void 0?void 0:P.find(e=>F.productId!==void 0&&e.productId===F.productId)??P.find(e=>F.partnerSku!==void 0&&e.partnerSku===F.partnerSku)??P[0]??(H?N:void 0);if(I==="ready"&&(w===void 0||R===void 0||t.petRef===null)&&(I="hidden"),e.useEffect(()=>{g(I==="ready"||I==="list"?true:I==="hidden"?false:null)},[I,g]),I==="list")return f;if(I==="failed")/* @__PURE__ */
438
439
  return n.jsx(HealthPlanErrorCard,{style:o,children:/* @__PURE__ */n.jsx(Refused,{error:b.error,retry:()=>{b.refresh()},renderNotice:c,styles:i,style:null})});if(I==="loading")/* @__PURE__ */return n.jsx(HealthPlanPageSkeleton,{style:o});if(I==="hidden"&&H)return m;if(I==="hidden"||w===void 0||R===void 0||t.petRef===null)return null;let D=r.onWeightSaved,z=b.refresh;/* @__PURE__ */
439
- return n.jsx(HealthPlanFocus,{...r,design:w,...x?{checkout:x}:{},...k===void 0?{}:{weightKnown:k},...y?{onWeightSaved:e=>{D&&St(D,e),z()}}:{},item:R,others:P.filter(e=>e!==R),...u!==void 0?{showCategory:u}:{},...p===void 0?{}:{lifecycle:p},...h===void 0?{}:{refreshKey:h},petRef:t.petRef,petName:v,petSex:S,species:T,fromBackend:y,vetReviewed:C,trackingTexts:y?j:r.trackingTexts??t.plan?.trackingTextsEnabled===true,...s?{onCheckout:s}:{},...d?{priceFormat:d}:{},style:o},t.petRef)}function PlanBody({plan:r,styles:i,onCheckout:o,renderNotice:l,style:a,imageVariant:s,reasonVariant:c,cartBarVisibility:d,priceFormat:u,renderHeader:h,renderItemFooter:g,renderFooter:m,titleSize:y,titleGap:w,sectionGap:k,cartBarPlacement:v,titleLineHeight:C,renderBetweenItems:j,focusLayout:I,focus:P,onReport:F,onAsk:R,emptyCopy:D,lifecycle:z,refreshKey:$,...O}){let _=vo(),{pets:L}=useEverfurPets(),W=L.find(e=>e.petRef===r.petRef),V=W?.name??null,[M,N]=e.useState(null);bg(r.status==="empty"?I?M:false:r.status==="ready"?I?M:true:null,r.petRef,F);let U=r.plan?.headline??(V===null?null:f.planTitle(V)),q=v==="none";H(q&&r.status==="ready",r.cart,r.pending.length>0,r.petRef,r.plan,r.setInPlan);let G=B();E(r.status==="ready"||r.status==="empty",r.petRef,r.plan);let K=S(k),X=K===null?i.page:[i.page,{gap:K}],Y=S(y),J=S(C),Q=[i.title,Y===null||Y===0?null:{fontSize:Y,lineHeight:Math.round(Y*_.type.lineHeight.snug)},J===null||J===0?null:{lineHeight:Math.round((Y===null||Y===0?_.type.size.heading:Y)*J)},{marginBottom:T(w,K??_.space.lg)}],Z=U===null?null:/* @__PURE__ */n.jsx(Text,{style:Q,accessibilityRole:"header",children:U}),ee=e.useMemo(()=>b(r.plan,r.setInPlan),[r.plan,r.setInPlan]),te={petRef:r.petRef,plan:r.plan,cart:r.cart,...ee},ne=x(O),re=(e,t)=>j===void 0||e===0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:t,render:()=>j(e,t),fallback:null}),ie=h===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:r.plan,render:()=>h(te),fallback:null});if(r.status==="noPet")/* @__PURE__ */
440
+ return n.jsx(HealthPlanFocus,{...r,design:w,...x?{checkout:x}:{},...k===void 0?{}:{weightKnown:k},...y?{onWeightSaved:e=>{D&&St(D,e),z()}}:{},item:R,others:P.filter(e=>e!==R),...u!==void 0?{showCategory:u}:{},...p===void 0?{}:{lifecycle:p},...h===void 0?{}:{refreshKey:h},petRef:t.petRef,petName:v,petSex:S,species:T,fromBackend:y,vetReviewed:C,trackingTexts:y?j:r.trackingTexts??t.plan?.trackingTextsEnabled===true,...s?{onCheckout:s}:{},...d?{priceFormat:d}:{},style:o},t.petRef)}function PlanBody({plan:r,styles:i,onCheckout:o,renderNotice:l,style:a,imageVariant:s,reasonVariant:c,cartBarVisibility:d,priceFormat:u,renderHeader:h,renderItemFooter:g,renderFooter:m,titleSize:y,titleGap:w,sectionGap:k,cartBarPlacement:v,titleLineHeight:C,renderBetweenItems:j,focusLayout:I,focus:P,onReport:F,onAsk:R,emptyCopy:D,lifecycle:z,refreshKey:$,...O}){let _=To(),{pets:L}=useEverfurPets(),W=L.find(e=>e.petRef===r.petRef),V=W?.name??null,[M,N]=e.useState(null);xg(r.status==="empty"?I?M:false:r.status==="ready"?I?M:true:null,r.petRef,F);let U=r.plan?.headline??(V===null?null:f.planTitle(V)),q=v==="none";H(q&&r.status==="ready",r.cart,r.pending.length>0,r.petRef,r.plan,r.setInPlan);let G=B();E(r.status==="ready"||r.status==="empty",r.petRef,r.plan);let K=S(k),X=K===null?i.page:[i.page,{gap:K}],Y=S(y),J=S(C),Q=[i.title,Y===null||Y===0?null:{fontSize:Y,lineHeight:Math.round(Y*_.type.lineHeight.snug)},J===null||J===0?null:{lineHeight:Math.round((Y===null||Y===0?_.type.size.heading:Y)*J)},{marginBottom:T(w,K??_.space.lg)}],Z=U===null?null:/* @__PURE__ */n.jsx(Text,{style:Q,accessibilityRole:"header",children:U}),ee=e.useMemo(()=>b(r.plan,r.setInPlan),[r.plan,r.setInPlan]),te={petRef:r.petRef,plan:r.plan,cart:r.cart,...ee},ne=x(O),re=(e,t)=>j===void 0||e===0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:t,render:()=>j(e,t),fallback:null}),ie=h===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:r.plan,render:()=>h(te),fallback:null});if(r.status==="noPet")/* @__PURE__ */
440
441
  return n.jsx(t.View,{style:[X,a],children:/* @__PURE__ */n.jsx(Text,{style:i.body,children:p.choosePet})});if(r.status==="loading")/* @__PURE__ */return n.jsx(Loading,{styles:i,style:[K===null?null:{gap:K},a]});if(r.status==="failed")/* @__PURE__ */return n.jsx(Refused,{error:r.error,retry:()=>{r.refresh()},renderNotice:l,styles:i,style:[X,a]});let oe=/* @__PURE__ */n.jsx(Empty,{emptyCopy:D,onAsk:R,heading:Z,header:ie,styles:i,style:[X,a]});if(r.status==="empty"&&!I)return oe;let le=r.plan?.items??[],ae=/* @__PURE__ */n.jsxs(t.View,{style:[X,a],children:[Z,ie,le.map((t,i)=>/* @__PURE__ */n.jsxs(e.Fragment,{children:[re(i,t),
441
- /* @__PURE__ */n.jsx(HealthPlanItemCard,{item:t,pending:r.pending.includes(t.productId),error:r.itemErrors[t.productId]??null,onToggle:e=>{A(G,r.petRef,t.productId,e),r.setInPlan(t.productId,e)},...s?{imageVariant:s}:{},...c?{reasonVariant:c}:{},...u?{priceFormat:u}:{},...g?{renderFooter:g}:{},...ne})]},t.productId)),m===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:r.plan,render:()=>m(te),fallback:null}),!q&&showHealthPlanCartBar(d,r.cart.count)?/* @__PURE__ */n.jsx(HealthPlanPetScope,{petRef:r.petRef,children:/* @__PURE__ */n.jsx(HealthPlanCartBar,{cart:r.cart,busy:r.pending.length>0,...o?{onCheckout:o}:{},...u?{priceFormat:u}:{}})}):null]});return I?/* @__PURE__ */n.jsx(FocusBody,{plan:r,focus:P??{},styles:i,style:a,petName:V,petSpecies:W?.species??null,onCheckout:o,renderNotice:l,priceFormat:u,showCategory:ne.showCategory,lifecycle:z,refreshKey:$,onAvailable:N,list:ae,empty:oe}):ae}function wg(e){let{color:n,radius:r,space:i,type:o}=e,l=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n});return t.StyleSheet.create({page:{gap:i.lg,padding:i.lg},title:{...l(o.size.heading,n.text.primary,"bold"),...headingFace(e,"bold")},subtitle:l(o.size.body,n.text.primary,"bold"),body:l(o.size.body,n.text.secondary,"regular"),notice:{gap:i.xs},noticeText:l(o.size.caption,n.errorRed,"regular"),retry:{minHeight:44,justifyContent:"center",alignSelf:"flex-start"},retryLabel:l(o.size.caption,n.linkInk,"bold"),empty:{gap:i.xs,padding:i.lg,borderRadius:r.lg,backgroundColor:n.surfaceSubtle},skeletonTitle:{height:28,width:"50%",borderRadius:r.sm,backgroundColor:n.skeleton},skeletonCard:{height:160,borderRadius:r.lg,backgroundColor:n.skeleton}})}function HealthPlanTopRisk(r){let i=jt(r,["onOpenPlan"]),o=vo(),l=e.useMemo(()=>xg(o),[o]);/* @__PURE__ */
442
+ /* @__PURE__ */n.jsx(HealthPlanItemCard,{item:t,pending:r.pending.includes(t.productId),error:r.itemErrors[t.productId]??null,onToggle:e=>{A(G,r.petRef,t.productId,e),r.setInPlan(t.productId,e)},...s?{imageVariant:s}:{},...c?{reasonVariant:c}:{},...u?{priceFormat:u}:{},...g?{renderFooter:g}:{},...ne})]},t.productId)),m===void 0?null:/* @__PURE__ */n.jsx(HostRender,{resetKey:r.plan,render:()=>m(te),fallback:null}),!q&&showHealthPlanCartBar(d,r.cart.count)?/* @__PURE__ */n.jsx(HealthPlanPetScope,{petRef:r.petRef,children:/* @__PURE__ */n.jsx(HealthPlanCartBar,{cart:r.cart,busy:r.pending.length>0,...o?{onCheckout:o}:{},...u?{priceFormat:u}:{}})}):null]});return I?/* @__PURE__ */n.jsx(FocusBody,{plan:r,focus:P??{},styles:i,style:a,petName:V,petSpecies:W?.species??null,onCheckout:o,renderNotice:l,priceFormat:u,showCategory:ne.showCategory,lifecycle:z,refreshKey:$,onAvailable:N,list:ae,empty:oe}):ae}function kg(e){let{color:n,radius:r,space:i,type:o}=e,l=(t,n,r)=>({...face(e,r),fontSize:t,lineHeight:Math.round(t*o.lineHeight.snug),color:n});return t.StyleSheet.create({page:{gap:i.lg,padding:i.lg},title:{...l(o.size.heading,n.text.primary,"bold"),...headingFace(e,"bold")},subtitle:l(o.size.body,n.text.primary,"bold"),body:l(o.size.body,n.text.secondary,"regular"),notice:{gap:i.xs},noticeText:l(o.size.caption,n.errorRed,"regular"),retry:{minHeight:44,justifyContent:"center",alignSelf:"flex-start"},retryLabel:l(o.size.caption,n.linkInk,"bold"),empty:{gap:i.xs,padding:i.lg,borderRadius:r.lg,backgroundColor:n.surfaceSubtle},skeletonTitle:{height:28,width:"50%",borderRadius:r.sm,backgroundColor:n.skeleton},skeletonCard:{height:160,borderRadius:r.lg,backgroundColor:n.skeleton}})}function HealthPlanTopRisk(r){let i=jt(r,["onOpenPlan"]),o=To(),l=e.useMemo(()=>vg(o),[o]);/* @__PURE__ */
442
443
  return n.jsxs(t.View,{style:[l.card,i.style],testID:"health-plan-top-risk",children:[
443
444
  /* @__PURE__ */n.jsxs(t.View,{style:l.kickerRow,children:[
444
445
  /* @__PURE__ */n.jsx(t.View,{style:l.dot}),
445
446
  /* @__PURE__ */n.jsx(Text,{style:l.kicker,children:i.kicker})]}),
446
447
  /* @__PURE__ */n.jsx(Text,{style:l.sentence,children:i.sentence}),
447
- /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>i.onOpenPlan(),accessibilityRole:"button",accessibilityLabel:i.action,style:l.button,testID:"health-plan-top-risk-open",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:l.buttonLabel,children:i.action})})]})}function xg(e){let{color:n,radius:r,space:i,type:o}=e;return t.StyleSheet.create({card:{gap:i.xs,alignItems:"flex-start",padding:i.md,borderRadius:r.lg,backgroundColor:n.brandSofter},kickerRow:{flexDirection:"row",alignItems:"center",gap:i.xs},kicker:{...face(e,"bold"),fontSize:o.size.caption,lineHeight:Math.round(o.size.caption*o.lineHeight.snug),color:n.text.secondary,textTransform:"uppercase",letterSpacing:o.size.caption*.06},dot:{width:8,height:8,borderRadius:4,backgroundColor:n.errorRed},sentence:{...face(e,"bold"),fontSize:o.size.subtitle,lineHeight:Math.round(o.size.subtitle*o.lineHeight.snug),color:n.text.primary},button:{minHeight:40,justifyContent:"center",paddingHorizontal:i.md,borderRadius:999,backgroundColor:n.primary},buttonLabel:{...face(e,"bold"),fontSize:o.size.caption,color:n.onPrimary}})}function useHealthPlanTopCard(t){let{petRef:petRef,enabled:n,onOpenPlan:r,copy:i,renderIcon:o}=t,{page:l}=useHealthPlanPage({petRef:petRef,...n===void 0?{}:{enabled:n}});return e.useMemo(()=>healthPlanTopCard(l,{onOpenPlan:r,...i===void 0?{}:{copy:i},...o===void 0?{}:{renderIcon:o}}),[l,r,i,o])}exports.ConnectedHealthPlanBlanks=ConnectedHealthPlanBlanks;exports.ConnectedHealthPlanBuyButton=ConnectedHealthPlanBuyButton;exports.ConnectedHealthPlanBuyOptions=ConnectedHealthPlanBuyOptions;exports.ConnectedHealthPlanByline=ConnectedHealthPlanByline;exports.ConnectedHealthPlanCartCheckout=ConnectedHealthPlanCartCheckout;exports.ConnectedHealthPlanCartScreen=ConnectedHealthPlanCart;exports.ConnectedHealthPlanCheckoutSheet=ConnectedHealthPlanCheckoutSheet;exports.ConnectedHealthPlanCheckup=ConnectedHealthPlanCheckup;exports.ConnectedHealthPlanConnectRecords=ConnectedHealthPlanConnectRecords;exports.ConnectedHealthPlanDoseCard=ConnectedHealthPlanDoseCard;exports.ConnectedHealthPlanExtras=ConnectedHealthPlanExtras;exports.ConnectedHealthPlanFine=ConnectedHealthPlanFine;exports.ConnectedHealthPlanFocusCard=ConnectedHealthPlanFocusCard;exports.ConnectedHealthPlanHeader=ConnectedHealthPlanHeader;exports.ConnectedHealthPlanIngredients=ConnectedHealthPlanIngredients;exports.ConnectedHealthPlanManageSheet=ConnectedHealthPlanManageSheet;exports.ConnectedHealthPlanOrder=ConnectedHealthPlanOrder;exports.ConnectedHealthPlanOrders=ConnectedHealthPlanOrders;exports.ConnectedHealthPlanOtherItems=ConnectedHealthPlanOtherItems;exports.ConnectedHealthPlanPickParts=ConnectedHealthPlanPickParts;exports.ConnectedHealthPlanPlaced=ConnectedHealthPlanPlaced;exports.ConnectedHealthPlanProductPick=ConnectedHealthPlanProductPick;exports.ConnectedHealthPlanProof=ConnectedHealthPlanProof;exports.ConnectedHealthPlanReviews=ConnectedHealthPlanReviews;exports.ConnectedHealthPlanSheet=ConnectedHealthPlanSheet;exports.ConnectedHealthPlanSigns=ConnectedHealthPlanSigns;exports.ConnectedHealthPlanStarted=ConnectedHealthPlanStarted;exports.ConnectedHealthPlanSubscribedBox=ConnectedHealthPlanSubscribedBox;exports.ConnectedHealthPlanTips=ConnectedHealthPlanTips;exports.ConnectedHealthPlanToast=ConnectedHealthPlanToast;exports.ConnectedHealthPlanToolbar=ConnectedHealthPlanToolbar;exports.ConnectedHealthPlanTrustRow=ConnectedHealthPlanTrustRow;exports.ConnectedHealthPlanWaitCard=ConnectedHealthPlanWaitCard;exports.ConnectedHealthPlanWeightSheet=ConnectedHealthPlanWeightSheet;exports.ConnectedHealthPlanWhyItFits=ConnectedHealthPlanWhyItFits;exports.EverfurHealthPlan=EverfurHealthPlan;exports.HEALTH_PLAN_COPY=p;exports.HEALTH_PLAN_COPY_PLACEHOLDERS=m;exports.HEALTH_PLAN_FOCUS_COPY=gc;exports.HEALTH_PLAN_FOCUS_RN_COPY=Jc;exports.HEALTH_PLAN_LAYOUT_DEFAULTS=y;exports.HEALTH_PLAN_REASON_KINDS=Qe;exports.HEALTH_PLAN_REASON_LABELS=g;exports.HEALTH_PLAN_TEMPLATES=f;exports.HEALTH_PLAN_TOP_CARD_COPY=Xc;exports.HealthPlanAskRow=HealthPlanAskRow;exports.HealthPlanBackRow=HealthPlanBackRow;exports.HealthPlanBlanks=HealthPlanBlanks;exports.HealthPlanBuyButton=HealthPlanBuyButton;exports.HealthPlanBuyOptions=HealthPlanBuyOptions;exports.HealthPlanByline=HealthPlanByline;exports.HealthPlanCartBar=HealthPlanCartBar;exports.HealthPlanCartCheckout=HealthPlanCartCheckout;exports.HealthPlanCartScope=HealthPlanCartScope;exports.HealthPlanCartScreen=HealthPlanCart;exports.HealthPlanCheckoutSheet=HealthPlanCheckoutSheet;exports.HealthPlanCheckup=HealthPlanCheckup;exports.HealthPlanController=wt;exports.HealthPlanDoseCard=HealthPlanDoseCard;exports.HealthPlanExtras=HealthPlanExtras;exports.HealthPlanFine=HealthPlanFine;exports.HealthPlanFocus=HealthPlanFocus;exports.HealthPlanFocusCard=HealthPlanFocusCard;exports.HealthPlanFocusProvider=HealthPlanFocusProvider;exports.HealthPlanHeader=HealthPlanHeader;exports.HealthPlanIngredients=HealthPlanIngredients;exports.HealthPlanItemCard=HealthPlanItemCard;exports.HealthPlanJumpStrip=HealthPlanJumpStrip;exports.HealthPlanManageSheet=HealthPlanManageSheet;exports.HealthPlanNoPick=HealthPlanNoPick;exports.HealthPlanOrder=HealthPlanOrder;exports.HealthPlanOrders=HealthPlanOrders;exports.HealthPlanOtherItems=HealthPlanOtherItems;exports.HealthPlanPlaced=HealthPlanPlaced;exports.HealthPlanProductPick=HealthPlanProductPick;exports.HealthPlanProof=HealthPlanProof;exports.HealthPlanReviews=HealthPlanReviews;exports.HealthPlanScrollScope=HealthPlanScrollScope;exports.HealthPlanSheetFrame=HealthPlanSheetFrame;exports.HealthPlanSigns=HealthPlanSigns;exports.HealthPlanStarted=HealthPlanStarted;exports.HealthPlanSubscribedBox=HealthPlanSubscribedBox;exports.HealthPlanTips=HealthPlanTips;exports.HealthPlanToast=HealthPlanToast;exports.HealthPlanToolbar=HealthPlanToolbar;exports.HealthPlanTopRisk=HealthPlanTopRisk;exports.HealthPlanTrustRow=HealthPlanTrustRow;exports.HealthPlanVetQuote=HealthPlanVetQuote;exports.HealthPlanWaitCard=HealthPlanWaitCard;exports.HealthPlanWeightSheet=HealthPlanWeightSheet;exports.HealthPlanWhyItFits=HealthPlanWhyItFits;exports.createHealthPlanPageRepository=createHealthPlanPageRepository;exports.createHealthPlanPageRepositoryOver=createHealthPlanPageRepositoryOver;exports.createHealthPlanRepository=createHealthPlanRepository;exports.createHealthPlanRepositoryOver=createHealthPlanRepositoryOver;exports.createHealthPlanSubscriptionRepository=createHealthPlanSubscriptionRepository;exports.createHealthPlanSubscriptionRepositoryOver=createHealthPlanSubscriptionRepositoryOver;exports.formatHealthPlanDay=formatHealthPlanDay;exports.formatHealthPlanPrice=formatHealthPlanPrice;exports.formatHealthPlanPriceWith=formatHealthPlanPriceWith;exports.healthPlanBlanksFacts=healthPlanBlanksFacts;exports.healthPlanCart=healthPlanCart;exports.healthPlanCheckoutRefusal=healthPlanCheckoutRefusal;exports.healthPlanCheckoutSessionFromWire=healthPlanCheckoutSessionFromWire;exports.healthPlanCheckoutStateFromWire=healthPlanCheckoutStateFromWire;exports.healthPlanFocusCopyFor=healthPlanFocusCopyFor;exports.healthPlanFocusDesignFromWire=healthPlanFocusDesignFromWire;exports.healthPlanFromWire=healthPlanFromWire;exports.healthPlanNextShotsAt=healthPlanNextShotsAt;exports.healthPlanNoVet=healthPlanNoVet;exports.healthPlanOneBoxOrderFromWire=healthPlanOneBoxOrderFromWire;exports.healthPlanOneBoxOrderPageFromWire=healthPlanOneBoxOrderPageFromWire;exports.healthPlanOrderTrackingFromWire=healthPlanOrderTrackingFromWire;exports.healthPlanPageFromWire=healthPlanPageFromWire;exports.healthPlanPetCopy=healthPlanPetCopy;exports.healthPlanPetWords=healthPlanPetWords;exports.healthPlanPossessive=healthPlanPossessive;exports.healthPlanRecordsWeightKg=healthPlanRecordsWeightKg;exports.healthPlanSubscriptionFromWire=healthPlanSubscriptionFromWire;exports.healthPlanSubscriptionQuoteFromWire=healthPlanSubscriptionQuoteFromWire;exports.healthPlanTopCard=healthPlanTopCard;exports.isHealthPlanSessionRequired=isHealthPlanSessionRequired;exports.isHealthPlanSubscriptionUnavailable=isHealthPlanSubscriptionUnavailable;exports.notifyHealthPlanRecordsLanded=notifyHealthPlanRecordsLanded;exports.onHealthPlanNoVet=onHealthPlanNoVet;exports.onHealthPlanRecordsLanded=onHealthPlanRecordsLanded;exports.setHealthPlanNoVet=setHealthPlanNoVet;exports.showHealthPlanCartBar=showHealthPlanCartBar;exports.useEverfurHealthPlan=useEverfurHealthPlan;exports.useEverfurHealthPlanRepository=useEverfurHealthPlanRepository;exports.useEverfurPresentation=useEverfurPresentation;exports.useHealthPlanCartDock=useHealthPlanCartDock;exports.useHealthPlanPage=useHealthPlanPage;exports.useHealthPlanPageRepository=useHealthPlanPageRepository;exports.useHealthPlanSubscription=useHealthPlanSubscription;exports.useHealthPlanSubscriptionRepository=useHealthPlanSubscriptionRepository;exports.useHealthPlanTopCard=useHealthPlanTopCard;
448
+ /* @__PURE__ */n.jsx(t.Pressable,{onPress:()=>i.onOpenPlan(),accessibilityRole:"button",accessibilityLabel:i.action,style:l.button,testID:"health-plan-top-risk-open",children:/* @__PURE__ */n.jsx(Text,{tier:"control",style:l.buttonLabel,children:i.action})})]})}function vg(e){let{color:n,radius:r,space:i,type:o}=e;return t.StyleSheet.create({card:{gap:i.xs,alignItems:"flex-start",padding:i.md,borderRadius:r.lg,backgroundColor:n.brandSofter},kickerRow:{flexDirection:"row",alignItems:"center",gap:i.xs},kicker:{...face(e,"bold"),fontSize:o.size.caption,lineHeight:Math.round(o.size.caption*o.lineHeight.snug),color:n.text.secondary,textTransform:"uppercase",letterSpacing:o.size.caption*.06},dot:{width:8,height:8,borderRadius:4,backgroundColor:n.errorRed},sentence:{...face(e,"bold"),fontSize:o.size.subtitle,lineHeight:Math.round(o.size.subtitle*o.lineHeight.snug),color:n.text.primary},button:{minHeight:40,justifyContent:"center",paddingHorizontal:i.md,borderRadius:999,backgroundColor:n.primary},buttonLabel:{...face(e,"bold"),fontSize:o.size.caption,color:n.onPrimary}})}function useHealthPlanTopCard(t){let{petRef:petRef,enabled:n,onOpenPlan:r,copy:i,renderIcon:o}=t,{page:l}=useHealthPlanPage({petRef:petRef,...n===void 0?{}:{enabled:n}});return e.useMemo(()=>healthPlanTopCard(l,{onOpenPlan:r,...i===void 0?{}:{copy:i},...o===void 0?{}:{renderIcon:o}}),[l,r,i,o])}exports.ConnectedHealthPlanBlanks=ConnectedHealthPlanBlanks;exports.ConnectedHealthPlanBuyButton=ConnectedHealthPlanBuyButton;exports.ConnectedHealthPlanBuyOptions=ConnectedHealthPlanBuyOptions;exports.ConnectedHealthPlanByline=ConnectedHealthPlanByline;exports.ConnectedHealthPlanCartCheckout=ConnectedHealthPlanCartCheckout;exports.ConnectedHealthPlanCartScreen=ConnectedHealthPlanCart;exports.ConnectedHealthPlanCheckoutSheet=ConnectedHealthPlanCheckoutSheet;exports.ConnectedHealthPlanCheckup=ConnectedHealthPlanCheckup;exports.ConnectedHealthPlanConnectRecords=ConnectedHealthPlanConnectRecords;exports.ConnectedHealthPlanDoseCard=ConnectedHealthPlanDoseCard;exports.ConnectedHealthPlanExtras=ConnectedHealthPlanExtras;exports.ConnectedHealthPlanFine=ConnectedHealthPlanFine;exports.ConnectedHealthPlanFocusCard=ConnectedHealthPlanFocusCard;exports.ConnectedHealthPlanHeader=ConnectedHealthPlanHeader;exports.ConnectedHealthPlanIngredients=ConnectedHealthPlanIngredients;exports.ConnectedHealthPlanManageSheet=ConnectedHealthPlanManageSheet;exports.ConnectedHealthPlanOrder=ConnectedHealthPlanOrder;exports.ConnectedHealthPlanOrders=ConnectedHealthPlanOrders;exports.ConnectedHealthPlanOtherItems=ConnectedHealthPlanOtherItems;exports.ConnectedHealthPlanPickParts=ConnectedHealthPlanPickParts;exports.ConnectedHealthPlanPlaced=ConnectedHealthPlanPlaced;exports.ConnectedHealthPlanProductPick=ConnectedHealthPlanProductPick;exports.ConnectedHealthPlanProof=ConnectedHealthPlanProof;exports.ConnectedHealthPlanReviews=ConnectedHealthPlanReviews;exports.ConnectedHealthPlanSheet=ConnectedHealthPlanSheet;exports.ConnectedHealthPlanSigns=ConnectedHealthPlanSigns;exports.ConnectedHealthPlanStarted=ConnectedHealthPlanStarted;exports.ConnectedHealthPlanSubscribedBox=ConnectedHealthPlanSubscribedBox;exports.ConnectedHealthPlanTips=ConnectedHealthPlanTips;exports.ConnectedHealthPlanToast=ConnectedHealthPlanToast;exports.ConnectedHealthPlanToolbar=ConnectedHealthPlanToolbar;exports.ConnectedHealthPlanTrustRow=ConnectedHealthPlanTrustRow;exports.ConnectedHealthPlanWaitCard=ConnectedHealthPlanWaitCard;exports.ConnectedHealthPlanWeightSheet=ConnectedHealthPlanWeightSheet;exports.ConnectedHealthPlanWhyItFits=ConnectedHealthPlanWhyItFits;exports.EverfurHealthPlan=EverfurHealthPlan;exports.HEALTH_PLAN_COPY=p;exports.HEALTH_PLAN_COPY_PLACEHOLDERS=m;exports.HEALTH_PLAN_FOCUS_COPY=mc;exports.HEALTH_PLAN_FOCUS_RN_COPY=Zc;exports.HEALTH_PLAN_LAYOUT_DEFAULTS=y;exports.HEALTH_PLAN_REASON_KINDS=Qe;exports.HEALTH_PLAN_REASON_LABELS=g;exports.HEALTH_PLAN_TEMPLATES=f;exports.HEALTH_PLAN_TOP_CARD_COPY=Jc;exports.HealthPlanAskRow=HealthPlanAskRow;exports.HealthPlanBackRow=HealthPlanBackRow;exports.HealthPlanBlanks=HealthPlanBlanks;exports.HealthPlanBuyButton=HealthPlanBuyButton;exports.HealthPlanBuyOptions=HealthPlanBuyOptions;exports.HealthPlanByline=HealthPlanByline;exports.HealthPlanCartBar=HealthPlanCartBar;exports.HealthPlanCartCheckout=HealthPlanCartCheckout;exports.HealthPlanCartScope=HealthPlanCartScope;exports.HealthPlanCartScreen=HealthPlanCart;exports.HealthPlanCheckoutSheet=HealthPlanCheckoutSheet;exports.HealthPlanCheckup=HealthPlanCheckup;exports.HealthPlanController=wt;exports.HealthPlanDoseCard=HealthPlanDoseCard;exports.HealthPlanExtras=HealthPlanExtras;exports.HealthPlanFine=HealthPlanFine;exports.HealthPlanFocus=HealthPlanFocus;exports.HealthPlanFocusCard=HealthPlanFocusCard;exports.HealthPlanFocusProvider=HealthPlanFocusProvider;exports.HealthPlanHeader=HealthPlanHeader;exports.HealthPlanIngredients=HealthPlanIngredients;exports.HealthPlanItemCard=HealthPlanItemCard;exports.HealthPlanJumpStrip=HealthPlanJumpStrip;exports.HealthPlanManageSheet=HealthPlanManageSheet;exports.HealthPlanNoPick=HealthPlanNoPick;exports.HealthPlanOrder=HealthPlanOrder;exports.HealthPlanOrders=HealthPlanOrders;exports.HealthPlanOtherItems=HealthPlanOtherItems;exports.HealthPlanPlaced=HealthPlanPlaced;exports.HealthPlanProductPick=HealthPlanProductPick;exports.HealthPlanProof=HealthPlanProof;exports.HealthPlanReviews=HealthPlanReviews;exports.HealthPlanScrollScope=HealthPlanScrollScope;exports.HealthPlanSheetFrame=HealthPlanSheetFrame;exports.HealthPlanSigns=HealthPlanSigns;exports.HealthPlanStarted=HealthPlanStarted;exports.HealthPlanSubscribedBox=HealthPlanSubscribedBox;exports.HealthPlanTips=HealthPlanTips;exports.HealthPlanToast=HealthPlanToast;exports.HealthPlanToolbar=HealthPlanToolbar;exports.HealthPlanTopRisk=HealthPlanTopRisk;exports.HealthPlanTrustRow=HealthPlanTrustRow;exports.HealthPlanVetQuote=HealthPlanVetQuote;exports.HealthPlanWaitCard=HealthPlanWaitCard;exports.HealthPlanWeightSheet=HealthPlanWeightSheet;exports.HealthPlanWhyItFits=HealthPlanWhyItFits;exports.createHealthPlanPageRepository=createHealthPlanPageRepository;exports.createHealthPlanPageRepositoryOver=createHealthPlanPageRepositoryOver;exports.createHealthPlanRepository=createHealthPlanRepository;exports.createHealthPlanRepositoryOver=createHealthPlanRepositoryOver;exports.createHealthPlanSubscriptionRepository=createHealthPlanSubscriptionRepository;exports.createHealthPlanSubscriptionRepositoryOver=createHealthPlanSubscriptionRepositoryOver;exports.formatHealthPlanDay=formatHealthPlanDay;exports.formatHealthPlanPrice=formatHealthPlanPrice;exports.formatHealthPlanPriceWith=formatHealthPlanPriceWith;exports.healthPlanBlanksFacts=healthPlanBlanksFacts;exports.healthPlanCart=healthPlanCart;exports.healthPlanCheckoutRefusal=healthPlanCheckoutRefusal;exports.healthPlanCheckoutSessionFromWire=healthPlanCheckoutSessionFromWire;exports.healthPlanCheckoutStateFromWire=healthPlanCheckoutStateFromWire;exports.healthPlanFocusCopyFor=healthPlanFocusCopyFor;exports.healthPlanFocusDesignFromWire=healthPlanFocusDesignFromWire;exports.healthPlanFromWire=healthPlanFromWire;exports.healthPlanNextShotsAt=healthPlanNextShotsAt;exports.healthPlanNoVet=healthPlanNoVet;exports.healthPlanOneBoxOrderFromWire=healthPlanOneBoxOrderFromWire;exports.healthPlanOneBoxOrderPageFromWire=healthPlanOneBoxOrderPageFromWire;exports.healthPlanOrderTrackingFromWire=healthPlanOrderTrackingFromWire;exports.healthPlanPageFromWire=healthPlanPageFromWire;exports.healthPlanPetCopy=healthPlanPetCopy;exports.healthPlanPetWords=healthPlanPetWords;exports.healthPlanPossessive=healthPlanPossessive;exports.healthPlanRecordsWeightKg=healthPlanRecordsWeightKg;exports.healthPlanSubscriptionFromWire=healthPlanSubscriptionFromWire;exports.healthPlanSubscriptionQuoteFromWire=healthPlanSubscriptionQuoteFromWire;exports.healthPlanTopCard=healthPlanTopCard;exports.isHealthPlanSessionRequired=isHealthPlanSessionRequired;exports.isHealthPlanSubscriptionUnavailable=isHealthPlanSubscriptionUnavailable;exports.notifyHealthPlanRecordsLanded=notifyHealthPlanRecordsLanded;exports.onHealthPlanNoVet=onHealthPlanNoVet;exports.onHealthPlanRecordsLanded=onHealthPlanRecordsLanded;exports.setHealthPlanNoVet=setHealthPlanNoVet;exports.showHealthPlanCartBar=showHealthPlanCartBar;exports.useEverfurHealthPlan=useEverfurHealthPlan;exports.useEverfurHealthPlanRepository=useEverfurHealthPlanRepository;exports.useEverfurPresentation=useEverfurPresentation;exports.useHealthPlanCartDock=useHealthPlanCartDock;exports.useHealthPlanPage=useHealthPlanPage;exports.useHealthPlanPageRepository=useHealthPlanPageRepository;exports.useHealthPlanSubscription=useHealthPlanSubscription;exports.useHealthPlanSubscriptionRepository=useHealthPlanSubscriptionRepository;exports.useHealthPlanTopCard=useHealthPlanTopCard;