@graphrefly/graphrefly 0.38.0 → 0.39.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.
- package/dist/budget-gate-CmmVtasH.d.ts +115 -0
- package/dist/budget-gate-DiP_nK0n.d.cts +115 -0
- package/dist/{cascading-BsJ4GbnS.d.ts → cascading-BzuxW0_w.d.cts} +2 -2
- package/dist/{cascading-B25wxpRa.d.cts → cascading-g2_rhhaM.d.ts} +2 -2
- package/dist/chunk-35JTVPOX.js +1 -0
- package/dist/chunk-3G5U5QNE.js +5 -0
- package/dist/{chunk-PHXZRR6C.js → chunk-4I45FVQS.js} +1 -1
- package/dist/chunk-5LK7XMEV.js +1 -0
- package/dist/{chunk-FWGIZP3W.js → chunk-5XRI6RM3.js} +1 -1
- package/dist/chunk-73PBQNST.js +1 -0
- package/dist/chunk-7JRF5YEK.js +3 -0
- package/dist/{chunk-4BDQXBXE.js → chunk-7NZMZJMW.js} +1 -1
- package/dist/chunk-7QFRK3N3.js +84 -0
- package/dist/{chunk-POCWFIJ7.js → chunk-7SD73DS6.js} +1 -1
- package/dist/{chunk-NBGPXQSP.js → chunk-A6ZSKGUG.js} +1 -1
- package/dist/{chunk-7KZZLWZ6.js → chunk-AU7YTQX7.js} +1 -1
- package/dist/chunk-C72GO4IZ.js +1 -0
- package/dist/{chunk-B5S7KTGP.js → chunk-CGDMTXSY.js} +1 -1
- package/dist/chunk-D27JNOLZ.js +1 -0
- package/dist/chunk-D47YVDR5.js +1 -0
- package/dist/chunk-EWF7KCDJ.js +61 -0
- package/dist/{chunk-IBGE62GZ.js → chunk-GEAO3TL3.js} +1 -1
- package/dist/chunk-GX5LSSRE.js +1 -0
- package/dist/{chunk-O245YLM5.js → chunk-HAWKGIXM.js} +1 -1
- package/dist/chunk-HX3EGQ5Z.js +1 -0
- package/dist/{chunk-RZ5HKPGI.js → chunk-IA7DUNGB.js} +1 -1
- package/dist/{chunk-K5C67OGE.js → chunk-INH6FS2G.js} +2 -2
- package/dist/chunk-INHC33EH.js +1 -0
- package/dist/chunk-IUB4NYI2.js +1 -0
- package/dist/{chunk-UVLZX2OU.js → chunk-JNMC2WJ6.js} +1 -1
- package/dist/{chunk-O2BLVQU4.js → chunk-KD4NHLMU.js} +1 -1
- package/dist/chunk-L6NSJVJZ.js +1 -0
- package/dist/{chunk-6773HURD.js → chunk-L7WY6TZS.js} +1 -1
- package/dist/chunk-LQNOXGET.js +1 -0
- package/dist/chunk-MC4UYY2X.js +1 -0
- package/dist/{chunk-6KZZ6XQE.js → chunk-N7UIBZCW.js} +1 -1
- package/dist/chunk-NQI2C36M.js +1 -0
- package/dist/chunk-R75BMDLA.js +1 -0
- package/dist/chunk-RF3QZP6D.js +1 -0
- package/dist/{chunk-NV63VQHI.js → chunk-S2U57TFC.js} +1 -1
- package/dist/{chunk-SP5O2MIX.js → chunk-SC7BQDNP.js} +1 -1
- package/dist/{chunk-6VFC334U.js → chunk-TFPZLQ5H.js} +1 -1
- package/dist/chunk-VJJLIEAL.js +1 -0
- package/dist/{chunk-FAYEMS5M.js → chunk-WHIZM6JV.js} +1 -1
- package/dist/chunk-XEUANKBO.js +43 -0
- package/dist/{chunk-DSOVKKTI.js → chunk-XQ55HO5N.js} +1 -1
- package/dist/chunk-ZJ7SM3G2.js +1 -0
- package/dist/{chunk-TMVY7OWG.js → chunk-ZOX3LBRV.js} +1 -1
- package/dist/compat/index.cjs +9 -13
- package/dist/compat/index.d.cts +16 -16
- package/dist/compat/index.d.ts +16 -16
- package/dist/compat/index.js +1 -1
- package/dist/compat/jotai/index.d.cts +2 -2
- package/dist/compat/jotai/index.d.ts +2 -2
- package/dist/compat/nanostores/index.d.cts +2 -2
- package/dist/compat/nanostores/index.d.ts +2 -2
- package/dist/compat/nestjs/index.cjs +7 -11
- package/dist/compat/nestjs/index.d.cts +8 -8
- package/dist/compat/nestjs/index.d.ts +8 -8
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/react/index.d.cts +2 -2
- package/dist/compat/react/index.d.ts +2 -2
- package/dist/compat/solid/index.d.cts +2 -2
- package/dist/compat/solid/index.d.ts +2 -2
- package/dist/compat/svelte/index.d.cts +2 -2
- package/dist/compat/svelte/index.d.ts +2 -2
- package/dist/compat/vue/index.d.cts +2 -2
- package/dist/compat/vue/index.d.ts +2 -2
- package/dist/compat/zustand/index.cjs +3 -7
- package/dist/compat/zustand/index.d.cts +4 -4
- package/dist/compat/zustand/index.d.ts +4 -4
- package/dist/compat/zustand/index.js +1 -1
- package/dist/{composite-CgG0MqHm.d.cts → composite-CKd0e2vz.d.cts} +2 -2
- package/dist/{composite-DTOlDuch.d.ts → composite-DGatA-JK.d.ts} +2 -2
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/extra/browser.d.cts +1 -1
- package/dist/extra/browser.d.ts +1 -1
- package/dist/extra/index.cjs +16 -20
- package/dist/extra/index.d.cts +11 -9
- package/dist/extra/index.d.ts +11 -9
- package/dist/extra/index.js +1 -1
- package/dist/extra/node.cjs +2 -2
- package/dist/extra/node.d.cts +1 -1
- package/dist/extra/node.d.ts +1 -1
- package/dist/extra/node.js +1 -1
- package/dist/extra/operators.cjs +1 -1
- package/dist/extra/operators.d.cts +1 -1
- package/dist/extra/operators.d.ts +1 -1
- package/dist/extra/operators.js +1 -1
- package/dist/extra/reactive.cjs +1 -1
- package/dist/extra/reactive.d.cts +3 -3
- package/dist/extra/reactive.d.ts +3 -3
- package/dist/extra/reactive.js +1 -1
- package/dist/extra/render/index.cjs +5 -0
- package/dist/extra/render/index.d.cts +183 -0
- package/dist/extra/render/index.d.ts +183 -0
- package/dist/extra/render/index.js +1 -0
- package/dist/extra/sources.cjs +1 -1
- package/dist/extra/sources.d.cts +1 -1
- package/dist/extra/sources.d.ts +1 -1
- package/dist/extra/sources.js +1 -1
- package/dist/extra/storage-browser.d.cts +1 -1
- package/dist/extra/storage-browser.d.ts +1 -1
- package/dist/{fallback-axI2cXwt.d.cts → fallback-8JYU8tlT.d.cts} +1 -1
- package/dist/{fallback-DuEXfA4F.d.ts → fallback-CMZl39L5.d.ts} +1 -1
- package/dist/graph/index.cjs +7 -7
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +1 -1
- package/dist/{graph-BjW1taJl.d.ts → graph-30XSgtVX.d.ts} +76 -100
- package/dist/{graph-CHsVwf9S.d.cts → graph-BUwMAxJI.d.cts} +76 -100
- package/dist/{index-CIcu6fIR.d.ts → index-2n8Eai6M.d.ts} +1 -1
- package/dist/{index-CrlHFsiT.d.ts → index-89FczVZ_.d.ts} +41 -85
- package/dist/{index-CM-i58FY.d.cts → index-8R1vzNOx.d.cts} +9 -9
- package/dist/{index-CDvC1m5p.d.ts → index-B2RUoIUz.d.ts} +1 -1
- package/dist/{index-BFaALJxR.d.ts → index-B41Asm7D.d.ts} +10 -8
- package/dist/{index-D-HZ7sP4.d.ts → index-B9fmw5n2.d.ts} +4 -6
- package/dist/{index-Bn0uZEL4.d.ts → index-BAlaVimV.d.ts} +9 -9
- package/dist/{index-DJVQ-t07.d.ts → index-BC9VybQs.d.ts} +41 -48
- package/dist/{index-5dNRlW7J.d.ts → index-BEHmxORq.d.ts} +11 -11
- package/dist/{index-DJNAWzcH.d.cts → index-BJ26eEjs.d.cts} +26 -19
- package/dist/{index-BiomL7AW.d.ts → index-BJSZxSFX.d.ts} +1 -1
- package/dist/{index-Czk3r0yA.d.cts → index-BKMdnYnk.d.ts} +56 -54
- package/dist/{index-BsZk9T8y.d.ts → index-BM9szD8n.d.cts} +14 -6
- package/dist/{index-BmWuVdER.d.ts → index-BUPVld1w.d.ts} +2 -2
- package/dist/{index-BwOsJfLJ.d.ts → index-BXd6OMEy.d.ts} +3 -3
- package/dist/index-BhUaMYm_.d.ts +113 -0
- package/dist/{index-BpMZzX9P.d.cts → index-BndG0cpK.d.cts} +3 -3
- package/dist/{index-AUqWe_fX.d.ts → index-Br3WnqEn.d.ts} +81 -9
- package/dist/{index-BhzwpIJc.d.cts → index-BskfDoZ_.d.ts} +14 -6
- package/dist/{index-D9vBTuzo.d.ts → index-C19qqa38.d.ts} +4 -4
- package/dist/{index-B-ORMr3k.d.ts → index-C7VV_qOs.d.ts} +4 -4
- package/dist/{index-BWUMIt7J.d.cts → index-CIRG8Hxp.d.cts} +11 -11
- package/dist/{index-B3D_z0Z6.d.cts → index-CL7oilfm.d.cts} +1 -1
- package/dist/{index-ML6vHKXK.d.ts → index-CPhBvRJU.d.ts} +1 -1
- package/dist/{index-CQsqqEVz.d.cts → index-CWHtYmSh.d.cts} +1 -1
- package/dist/{index-DKrIuF-r.d.ts → index-Cey6VTnX.d.ts} +8 -5
- package/dist/{resilience-BWP2c7Af.d.cts → index-CmqiJZKM.d.ts} +141 -23
- package/dist/{index-JYtN9uqM.d.ts → index-CoM4rzyB.d.ts} +1 -1
- package/dist/{index-C56XZiDe.d.cts → index-CpLpJb6A.d.cts} +8 -5
- package/dist/{index-BjWZARLy.d.ts → index-Ctb7_2sG.d.ts} +1 -1
- package/dist/index-CusEP3Sv.d.ts +210 -0
- package/dist/{resilience-Bys63Cpd.d.ts → index-CwP_KAMS.d.cts} +141 -23
- package/dist/{index-BFuVcqL8.d.cts → index-D3ayz3hy.d.cts} +1 -1
- package/dist/{index-Bpr0Pwgl.d.cts → index-DCbE8fFM.d.cts} +3 -3
- package/dist/{index-CAbHN_rP.d.cts → index-DIHcMLr6.d.cts} +1 -1
- package/dist/index-DINuaZlJ.d.cts +210 -0
- package/dist/{index-9xhIaM-w.d.cts → index-DOBLxOti.d.cts} +1 -1
- package/dist/{index-Di7OdwlO.d.ts → index-DQUVq1_d.d.ts} +37 -90
- package/dist/{index-BgzPO43H.d.cts → index-DTtBpuQy.d.cts} +4 -6
- package/dist/{index-D_QQ_dTD.d.cts → index-DYTBbF8T.d.cts} +1 -1
- package/dist/{index-UsU9ptzs.d.cts → index-DlgHqQxW.d.cts} +81 -9
- package/dist/{index-DTDVDzhA.d.ts → index-DlrWu9Hs.d.cts} +56 -54
- package/dist/{index-B2IUcH13.d.cts → index-DoYc8BWK.d.cts} +41 -48
- package/dist/{index-BUFCHvOR.d.ts → index-DszPlZzK.d.ts} +3 -3
- package/dist/{index-BqcgiSQg.d.cts → index-DyM4tFAe.d.cts} +10 -8
- package/dist/{index-CAV-3RpJ.d.cts → index-FVoPvhAu.d.cts} +4 -4
- package/dist/{index-Ckil6miL.d.cts → index-H_I66pav.d.cts} +2 -2
- package/dist/{index-C-3UXnHT.d.cts → index-IwFqHxCs.d.cts} +2 -2
- package/dist/index-K-vl_c6A.d.cts +113 -0
- package/dist/{index-CijfwEWx.d.ts → index-KlZ_ZUip.d.cts} +3 -3
- package/dist/{index-Bub6x_D4.d.cts → index-L8XI8Zql.d.cts} +37 -90
- package/dist/{index-DeSsvHDD.d.cts → index-MxYuWOrf.d.cts} +3 -3
- package/dist/{index-CpZKtdMw.d.cts → index-PgwvGWa1.d.cts} +1 -1
- package/dist/{index-Vz7KPfgz.d.ts → index-PlJ3MraE.d.ts} +1 -1
- package/dist/{index-BI1wMfyc.d.ts → index-PqbnoScQ.d.ts} +3 -3
- package/dist/{index-BsgxnHN8.d.cts → index-PsVHpPwP.d.cts} +3 -3
- package/dist/{index-D-B7U42V.d.cts → index-WyFKER-c.d.ts} +3 -3
- package/dist/{index-DY2f2b9z.d.ts → index-eaQuGJnv.d.ts} +3 -3
- package/dist/{index-DqICM_I7.d.ts → index-iTX5IqSP.d.ts} +67 -9
- package/dist/{index-Byp771zP.d.ts → index-jKLph6cu.d.ts} +2 -2
- package/dist/{index-CEVzBWeB.d.ts → index-jr6PuSBt.d.ts} +26 -19
- package/dist/{index-BkQqf1EF.d.cts → index-mNwgxC21.d.cts} +67 -9
- package/dist/{index-BaSy4L6w.d.cts → index-pVDQcbar.d.cts} +41 -85
- package/dist/{index-D7-RSD93.d.cts → index-xZYcDqFH.d.cts} +4 -4
- package/dist/{index-8OxXae3g.d.ts → index-yLt-aPMp.d.ts} +1 -1
- package/dist/{index-CqSJ25A9.d.cts → index-z8WFPVI8.d.cts} +1 -1
- package/dist/index.cjs +63 -59
- package/dist/index.d.cts +48 -47
- package/dist/index.d.ts +48 -47
- package/dist/index.js +1 -1
- package/dist/{meta-DreaEM_a.d.cts → meta-Ct9nqQS5.d.cts} +11 -7
- package/dist/{meta-BYqlATmg.d.ts → meta-D8OyedKp.d.ts} +11 -7
- package/dist/{node-fSc-hCv8.d.cts → node-BYInONRr.d.cts} +3 -3
- package/dist/{node-fSc-hCv8.d.ts → node-BYInONRr.d.ts} +3 -3
- package/dist/{observable-Cqty11jG.d.cts → observable-DMIlYJV1.d.cts} +1 -1
- package/dist/{observable-EAV_rNfM.d.ts → observable-DO8DDEzv.d.ts} +1 -1
- package/dist/patterns/ai/browser.cjs +5 -5
- package/dist/patterns/ai/browser.d.cts +4 -4
- package/dist/patterns/ai/browser.d.ts +4 -4
- package/dist/patterns/ai/browser.js +1 -1
- package/dist/patterns/ai/index.cjs +16 -20
- package/dist/patterns/ai/index.d.cts +17 -17
- package/dist/patterns/ai/index.d.ts +17 -17
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/ai/node.cjs +1 -1
- package/dist/patterns/ai/node.d.cts +4 -4
- package/dist/patterns/ai/node.d.ts +4 -4
- package/dist/patterns/ai/node.js +1 -1
- package/dist/patterns/audit/index.cjs +3 -7
- package/dist/patterns/audit/index.d.cts +6 -6
- package/dist/patterns/audit/index.d.ts +6 -6
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +3 -7
- package/dist/patterns/cqrs/index.d.cts +6 -6
- package/dist/patterns/cqrs/index.d.ts +6 -6
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +5 -8
- package/dist/patterns/demo-shell/index.d.cts +5 -5
- package/dist/patterns/demo-shell/index.d.ts +5 -5
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +3 -7
- package/dist/patterns/domain-templates/index.d.cts +4 -4
- package/dist/patterns/domain-templates/index.d.ts +4 -4
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +37 -37
- package/dist/patterns/graphspec/index.d.cts +5 -5
- package/dist/patterns/graphspec/index.d.ts +5 -5
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +3 -7
- package/dist/patterns/guarded-execution/index.d.cts +7 -7
- package/dist/patterns/guarded-execution/index.d.ts +7 -7
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +8 -12
- package/dist/patterns/harness/index.d.cts +12 -12
- package/dist/patterns/harness/index.d.ts +12 -12
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +3 -7
- package/dist/patterns/job-queue/index.d.cts +6 -6
- package/dist/patterns/job-queue/index.d.ts +6 -6
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +3 -7
- package/dist/patterns/lens/index.d.cts +6 -6
- package/dist/patterns/lens/index.d.ts +6 -6
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +3 -7
- package/dist/patterns/memory/index.d.cts +6 -6
- package/dist/patterns/memory/index.d.ts +6 -6
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +3 -7
- package/dist/patterns/messaging/index.d.cts +5 -5
- package/dist/patterns/messaging/index.d.ts +5 -5
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +3 -7
- package/dist/patterns/orchestration/index.d.cts +8 -8
- package/dist/patterns/orchestration/index.d.ts +8 -8
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/process/index.cjs +1 -1
- package/dist/patterns/process/index.d.cts +7 -7
- package/dist/patterns/process/index.d.ts +7 -7
- package/dist/patterns/process/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +4 -8
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +3 -7
- package/dist/patterns/reduction/index.d.cts +4 -4
- package/dist/patterns/reduction/index.d.ts +4 -4
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +5 -9
- package/dist/patterns/refine-loop/index.d.cts +6 -6
- package/dist/patterns/refine-loop/index.d.ts +6 -6
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.cjs +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +4 -8
- package/dist/patterns/resilient-pipeline/index.d.ts +4 -8
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +12 -16
- package/dist/patterns/surface/index.d.cts +6 -6
- package/dist/patterns/surface/index.d.ts +6 -6
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{pipeline-graph-DuHpXSOn.d.cts → pipeline-graph-BQPr2Lqs.d.cts} +34 -17
- package/dist/{pipeline-graph-9JBbmRxA.d.ts → pipeline-graph-D8vKcO_p.d.ts} +34 -17
- package/dist/{reactive-layout-BMLDB4Vd.d.cts → reactive-layout-8CSc0tiA.d.cts} +2 -2
- package/dist/{reactive-layout-D-tRiNhg.d.ts → reactive-layout-DkTXxtSy.d.ts} +2 -2
- package/dist/{reactive-log-BgWSA1fg.d.ts → reactive-log-BlAsPLl2.d.ts} +2 -2
- package/dist/{reactive-log-C3IMAGpT.d.cts → reactive-log-_zeEnB9H.d.cts} +2 -2
- package/dist/{reactive-map-DmgeADH8.d.cts → reactive-map-B2qfD3hb.d.cts} +1 -1
- package/dist/{reactive-map-CHyeCf4D.d.ts → reactive-map-jFIsE6Kt.d.ts} +1 -1
- package/dist/resilience-HTF2LBRS.js +1 -0
- package/dist/{sugar-D13E2M_z.d.ts → sugar-BhfjgetH.d.ts} +1 -1
- package/dist/{sugar-DgaGJcI6.d.cts → sugar-DzePN5-g.d.cts} +1 -1
- package/dist/{topology-tree-jrZue3ao.d.cts → topology-tree-B5Ngw3j0.d.cts} +1 -1
- package/dist/{topology-tree-D47-nI6Z.d.ts → topology-tree-BtvbgMXJ.d.ts} +1 -1
- package/dist/{types-BMSGPlpO.d.cts → types-1Dhoi7HM.d.cts} +1 -1
- package/dist/{types-CidcBDuk.d.ts → types-39jk0kaV.d.ts} +1 -1
- package/package.json +11 -1
- package/dist/chunk-2YFDSYEF.js +0 -1
- package/dist/chunk-5BGFS2XH.js +0 -1
- package/dist/chunk-CMTN3KPT.js +0 -80
- package/dist/chunk-DQJLC6YY.js +0 -1
- package/dist/chunk-G7JN6LCB.js +0 -1
- package/dist/chunk-KJEAIIIY.js +0 -43
- package/dist/chunk-LV3ACS5J.js +0 -1
- package/dist/chunk-NN3QPJ6U.js +0 -1
- package/dist/chunk-NSAZ6PR6.js +0 -1
- package/dist/chunk-O32GJOUJ.js +0 -1
- package/dist/chunk-QEVSIVSF.js +0 -1
- package/dist/chunk-QMC2PLNM.js +0 -7
- package/dist/chunk-QOJFR6GS.js +0 -1
- package/dist/chunk-SFK7MN7S.js +0 -1
- package/dist/chunk-TB7JKSVS.js +0 -61
- package/dist/chunk-UAXFKMAG.js +0 -1
- package/dist/chunk-XIMFHEKV.js +0 -1
- package/dist/chunk-XLMYQB6F.js +0 -1
- package/dist/chunk-XLYF4LBH.js +0 -1
- package/dist/imperative-audit-ahAE65a9.d.cts +0 -28
- package/dist/imperative-audit-ahAE65a9.d.ts +0 -28
- package/dist/index-CpdnP-0y.d.cts +0 -186
- package/dist/index-DOU1Ee_k.d.ts +0 -186
- package/dist/resilience-LGBK236C.js +0 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { b as GraphDescribeOutput } from '../../graph-BUwMAxJI.cjs';
|
|
2
|
+
import '../../node-BYInONRr.cjs';
|
|
3
|
+
import '../../meta-Ct9nqQS5.cjs';
|
|
4
|
+
import '../storage-core.cjs';
|
|
5
|
+
import '../storage-tiers.cjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Internal helpers shared across renderers in `extra/render/`.
|
|
9
|
+
*
|
|
10
|
+
* These are pure functions over `GraphDescribeOutput` — no Graph instance
|
|
11
|
+
* dependency. Extracted from `src/graph/graph.ts` (the consolidated
|
|
12
|
+
* ex-dumpGraph / ex-toMermaid / ex-toD2 renderers) per Tier 2.1 A2.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** Direction options for diagram exports. */
|
|
16
|
+
type DiagramDirection = "TD" | "LR" | "BT" | "RL";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Sugiyama-style layered DAG layout on an integer grid.
|
|
20
|
+
*
|
|
21
|
+
* Pipeline:
|
|
22
|
+
* 1. Longest-path layer assignment (sources at layer 0).
|
|
23
|
+
* 2. Virtual-node splitting — every edge spanning more than one layer
|
|
24
|
+
* becomes a chain of synthetic nodes on intermediate layers. Downstream
|
|
25
|
+
* passes treat real and virtual nodes identically; crossing
|
|
26
|
+
* minimization therefore works on wide + deep DAGs, not only
|
|
27
|
+
* adjacent-layer cases.
|
|
28
|
+
* 3. Crossing minimization — barycenter heuristic with alternating up /
|
|
29
|
+
* down sweeps plus an adjacent-transposition polish pass.
|
|
30
|
+
* 4. Coordinate assignment — greedy median-aligned packing with collision
|
|
31
|
+
* resolution. Straightens vertical runs of virtual nodes so long edges
|
|
32
|
+
* become straight lines where topology allows.
|
|
33
|
+
* 5. Orthogonal edge routing — per-gutter x-track assignment; horizontal
|
|
34
|
+
* segments sit at endpoint centerlines, vertical segments pack into the
|
|
35
|
+
* gutter column range without overlap. Remaining crossings are
|
|
36
|
+
* topologically unavoidable and will render as `┼` at draw time.
|
|
37
|
+
*
|
|
38
|
+
* Output coordinates are cell-grid integers (LR direction). TD rendering
|
|
39
|
+
* swaps axes at draw time — the layout is direction-agnostic by
|
|
40
|
+
* construction.
|
|
41
|
+
*
|
|
42
|
+
* Used only by [to-ascii.ts](./to-ascii.ts); not part of the public
|
|
43
|
+
* `extra/render/index.ts` surface (underscore-prefixed).
|
|
44
|
+
*/
|
|
45
|
+
type LayoutDirection = "LR" | "TD";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* `toAscii(g, opts?)` — stdout-native DAG flowchart renderer for a
|
|
49
|
+
* {@link GraphDescribeOutput}.
|
|
50
|
+
*
|
|
51
|
+
* Zero external dependencies, graph-size independent via proper Sugiyama
|
|
52
|
+
* (layer assignment → virtual-node splitting → barycenter crossing
|
|
53
|
+
* minimization → median-aligned coordinate assignment → per-gutter
|
|
54
|
+
* track-assigned orthogonal routing). See
|
|
55
|
+
* [_layout-sugiyama.ts](./_layout-sugiyama.ts) for the layout pipeline and
|
|
56
|
+
* [_ascii-grid.ts](./_ascii-grid.ts) for the character blitter.
|
|
57
|
+
*
|
|
58
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
59
|
+
*
|
|
60
|
+
* @category extra
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
type ToAsciiOptions = {
|
|
64
|
+
/**
|
|
65
|
+
* ASCII layout direction. ASCII grid semantics are meaningful only for
|
|
66
|
+
* `"LR"` (default) and `"TD"`.
|
|
67
|
+
*/
|
|
68
|
+
direction?: LayoutDirection;
|
|
69
|
+
/** Per-box label cell cap; longer labels are truncated with `…`. Default `24`. */
|
|
70
|
+
maxLabelWidth?: number;
|
|
71
|
+
/** Glyph set: `"unicode"` (default, box-drawing) or `"ascii"` (`-|+<>v`). */
|
|
72
|
+
asciiCharset?: "unicode" | "ascii";
|
|
73
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
74
|
+
logger?: (text: string) => void;
|
|
75
|
+
};
|
|
76
|
+
declare function toAscii(g: GraphDescribeOutput, opts?: ToAsciiOptions): string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* `toD2(g, opts?)` — render a {@link GraphDescribeOutput} as D2 diagram text.
|
|
80
|
+
*
|
|
81
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
82
|
+
*
|
|
83
|
+
* @category extra
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
type ToD2Options = {
|
|
87
|
+
/** Diagram direction; default `"LR"`. */
|
|
88
|
+
direction?: DiagramDirection;
|
|
89
|
+
};
|
|
90
|
+
declare function toD2(g: GraphDescribeOutput, opts?: ToD2Options): string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* `toJson(g, opts?)` — render a {@link GraphDescribeOutput} as deterministic
|
|
94
|
+
* JSON text with sorted keys.
|
|
95
|
+
*
|
|
96
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
97
|
+
*
|
|
98
|
+
* @category extra
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
type ToJsonOptions = {
|
|
102
|
+
/** Include the Edges section (default `true`). */
|
|
103
|
+
includeEdges?: boolean;
|
|
104
|
+
/** Include the Subgraphs section (default `true`). */
|
|
105
|
+
includeSubgraphs?: boolean;
|
|
106
|
+
/** JSON indent (default `2`). */
|
|
107
|
+
indent?: number;
|
|
108
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
109
|
+
logger?: (text: string) => void;
|
|
110
|
+
};
|
|
111
|
+
declare function toJson(g: GraphDescribeOutput, opts?: ToJsonOptions): string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* `toMermaid(g, opts?)` — render a {@link GraphDescribeOutput} as Mermaid
|
|
115
|
+
* flowchart text.
|
|
116
|
+
*
|
|
117
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
118
|
+
* Compose with `derived` for live formatted output:
|
|
119
|
+
*
|
|
120
|
+
* ```ts
|
|
121
|
+
* import { toMermaid } from "@graphrefly/graphrefly/extra/render";
|
|
122
|
+
* import { derived } from "@graphrefly/graphrefly";
|
|
123
|
+
*
|
|
124
|
+
* const live = derived([graph.describe({ reactive: true }).node], ([g]) => toMermaid(g));
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @category extra
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
type ToMermaidOptions = {
|
|
131
|
+
/** Diagram direction; default `"LR"`. */
|
|
132
|
+
direction?: DiagramDirection;
|
|
133
|
+
};
|
|
134
|
+
declare function toMermaid(g: GraphDescribeOutput, opts?: ToMermaidOptions): string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* `toMermaidUrl(g, opts?)` — encode a {@link GraphDescribeOutput} as a
|
|
138
|
+
* `https://mermaid.live/edit#base64:…` deep link.
|
|
139
|
+
*
|
|
140
|
+
* Round-trip with the mermaid.live editor's `/edit#base64:` share format —
|
|
141
|
+
* payload is `base64url(JSON({code, mermaid: {theme}, ...}))`. No network
|
|
142
|
+
* calls; the payload is encoded into the URL fragment.
|
|
143
|
+
*
|
|
144
|
+
* @category extra
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
type MermaidLiveTheme = "default" | "dark" | "forest" | "neutral" | "base";
|
|
148
|
+
type ToMermaidUrlOptions = ToMermaidOptions & {
|
|
149
|
+
theme?: MermaidLiveTheme;
|
|
150
|
+
autoSync?: boolean;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Encode an arbitrary mermaid source string to a `mermaid.live` deep link.
|
|
154
|
+
* Exported separately so callers that already rendered mermaid text can
|
|
155
|
+
* upgrade to a live-editor URL without re-rendering.
|
|
156
|
+
*/
|
|
157
|
+
declare function mermaidLiveUrl(mermaidSrc: string, opts?: {
|
|
158
|
+
theme?: MermaidLiveTheme;
|
|
159
|
+
autoSync?: boolean;
|
|
160
|
+
}): string;
|
|
161
|
+
declare function toMermaidUrl(g: GraphDescribeOutput, opts?: ToMermaidUrlOptions): string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* `toPretty(g, opts?)` — render a {@link GraphDescribeOutput} as
|
|
165
|
+
* human-readable plaintext (Node list with values, plus optional Edges and
|
|
166
|
+
* Subgraphs sections).
|
|
167
|
+
*
|
|
168
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
169
|
+
*
|
|
170
|
+
* @category extra
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
type ToPrettyOptions = {
|
|
174
|
+
/** Include the Edges section (default `true`). */
|
|
175
|
+
includeEdges?: boolean;
|
|
176
|
+
/** Include the Subgraphs section (default `true`). */
|
|
177
|
+
includeSubgraphs?: boolean;
|
|
178
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
179
|
+
logger?: (text: string) => void;
|
|
180
|
+
};
|
|
181
|
+
declare function toPretty(g: GraphDescribeOutput, opts?: ToPrettyOptions): string;
|
|
182
|
+
|
|
183
|
+
export { type DiagramDirection, type LayoutDirection, type MermaidLiveTheme, type ToAsciiOptions, type ToD2Options, type ToJsonOptions, type ToMermaidOptions, type ToMermaidUrlOptions, type ToPrettyOptions, mermaidLiveUrl, toAscii, toD2, toJson, toMermaid, toMermaidUrl, toPretty };
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { b as GraphDescribeOutput } from '../../graph-30XSgtVX.js';
|
|
2
|
+
import '../../node-BYInONRr.js';
|
|
3
|
+
import '../../meta-D8OyedKp.js';
|
|
4
|
+
import '../storage-core.js';
|
|
5
|
+
import '../storage-tiers.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Internal helpers shared across renderers in `extra/render/`.
|
|
9
|
+
*
|
|
10
|
+
* These are pure functions over `GraphDescribeOutput` — no Graph instance
|
|
11
|
+
* dependency. Extracted from `src/graph/graph.ts` (the consolidated
|
|
12
|
+
* ex-dumpGraph / ex-toMermaid / ex-toD2 renderers) per Tier 2.1 A2.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** Direction options for diagram exports. */
|
|
16
|
+
type DiagramDirection = "TD" | "LR" | "BT" | "RL";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Sugiyama-style layered DAG layout on an integer grid.
|
|
20
|
+
*
|
|
21
|
+
* Pipeline:
|
|
22
|
+
* 1. Longest-path layer assignment (sources at layer 0).
|
|
23
|
+
* 2. Virtual-node splitting — every edge spanning more than one layer
|
|
24
|
+
* becomes a chain of synthetic nodes on intermediate layers. Downstream
|
|
25
|
+
* passes treat real and virtual nodes identically; crossing
|
|
26
|
+
* minimization therefore works on wide + deep DAGs, not only
|
|
27
|
+
* adjacent-layer cases.
|
|
28
|
+
* 3. Crossing minimization — barycenter heuristic with alternating up /
|
|
29
|
+
* down sweeps plus an adjacent-transposition polish pass.
|
|
30
|
+
* 4. Coordinate assignment — greedy median-aligned packing with collision
|
|
31
|
+
* resolution. Straightens vertical runs of virtual nodes so long edges
|
|
32
|
+
* become straight lines where topology allows.
|
|
33
|
+
* 5. Orthogonal edge routing — per-gutter x-track assignment; horizontal
|
|
34
|
+
* segments sit at endpoint centerlines, vertical segments pack into the
|
|
35
|
+
* gutter column range without overlap. Remaining crossings are
|
|
36
|
+
* topologically unavoidable and will render as `┼` at draw time.
|
|
37
|
+
*
|
|
38
|
+
* Output coordinates are cell-grid integers (LR direction). TD rendering
|
|
39
|
+
* swaps axes at draw time — the layout is direction-agnostic by
|
|
40
|
+
* construction.
|
|
41
|
+
*
|
|
42
|
+
* Used only by [to-ascii.ts](./to-ascii.ts); not part of the public
|
|
43
|
+
* `extra/render/index.ts` surface (underscore-prefixed).
|
|
44
|
+
*/
|
|
45
|
+
type LayoutDirection = "LR" | "TD";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* `toAscii(g, opts?)` — stdout-native DAG flowchart renderer for a
|
|
49
|
+
* {@link GraphDescribeOutput}.
|
|
50
|
+
*
|
|
51
|
+
* Zero external dependencies, graph-size independent via proper Sugiyama
|
|
52
|
+
* (layer assignment → virtual-node splitting → barycenter crossing
|
|
53
|
+
* minimization → median-aligned coordinate assignment → per-gutter
|
|
54
|
+
* track-assigned orthogonal routing). See
|
|
55
|
+
* [_layout-sugiyama.ts](./_layout-sugiyama.ts) for the layout pipeline and
|
|
56
|
+
* [_ascii-grid.ts](./_ascii-grid.ts) for the character blitter.
|
|
57
|
+
*
|
|
58
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
59
|
+
*
|
|
60
|
+
* @category extra
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
type ToAsciiOptions = {
|
|
64
|
+
/**
|
|
65
|
+
* ASCII layout direction. ASCII grid semantics are meaningful only for
|
|
66
|
+
* `"LR"` (default) and `"TD"`.
|
|
67
|
+
*/
|
|
68
|
+
direction?: LayoutDirection;
|
|
69
|
+
/** Per-box label cell cap; longer labels are truncated with `…`. Default `24`. */
|
|
70
|
+
maxLabelWidth?: number;
|
|
71
|
+
/** Glyph set: `"unicode"` (default, box-drawing) or `"ascii"` (`-|+<>v`). */
|
|
72
|
+
asciiCharset?: "unicode" | "ascii";
|
|
73
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
74
|
+
logger?: (text: string) => void;
|
|
75
|
+
};
|
|
76
|
+
declare function toAscii(g: GraphDescribeOutput, opts?: ToAsciiOptions): string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* `toD2(g, opts?)` — render a {@link GraphDescribeOutput} as D2 diagram text.
|
|
80
|
+
*
|
|
81
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
82
|
+
*
|
|
83
|
+
* @category extra
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
type ToD2Options = {
|
|
87
|
+
/** Diagram direction; default `"LR"`. */
|
|
88
|
+
direction?: DiagramDirection;
|
|
89
|
+
};
|
|
90
|
+
declare function toD2(g: GraphDescribeOutput, opts?: ToD2Options): string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* `toJson(g, opts?)` — render a {@link GraphDescribeOutput} as deterministic
|
|
94
|
+
* JSON text with sorted keys.
|
|
95
|
+
*
|
|
96
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
97
|
+
*
|
|
98
|
+
* @category extra
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
type ToJsonOptions = {
|
|
102
|
+
/** Include the Edges section (default `true`). */
|
|
103
|
+
includeEdges?: boolean;
|
|
104
|
+
/** Include the Subgraphs section (default `true`). */
|
|
105
|
+
includeSubgraphs?: boolean;
|
|
106
|
+
/** JSON indent (default `2`). */
|
|
107
|
+
indent?: number;
|
|
108
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
109
|
+
logger?: (text: string) => void;
|
|
110
|
+
};
|
|
111
|
+
declare function toJson(g: GraphDescribeOutput, opts?: ToJsonOptions): string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* `toMermaid(g, opts?)` — render a {@link GraphDescribeOutput} as Mermaid
|
|
115
|
+
* flowchart text.
|
|
116
|
+
*
|
|
117
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
118
|
+
* Compose with `derived` for live formatted output:
|
|
119
|
+
*
|
|
120
|
+
* ```ts
|
|
121
|
+
* import { toMermaid } from "@graphrefly/graphrefly/extra/render";
|
|
122
|
+
* import { derived } from "@graphrefly/graphrefly";
|
|
123
|
+
*
|
|
124
|
+
* const live = derived([graph.describe({ reactive: true }).node], ([g]) => toMermaid(g));
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @category extra
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
type ToMermaidOptions = {
|
|
131
|
+
/** Diagram direction; default `"LR"`. */
|
|
132
|
+
direction?: DiagramDirection;
|
|
133
|
+
};
|
|
134
|
+
declare function toMermaid(g: GraphDescribeOutput, opts?: ToMermaidOptions): string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* `toMermaidUrl(g, opts?)` — encode a {@link GraphDescribeOutput} as a
|
|
138
|
+
* `https://mermaid.live/edit#base64:…` deep link.
|
|
139
|
+
*
|
|
140
|
+
* Round-trip with the mermaid.live editor's `/edit#base64:` share format —
|
|
141
|
+
* payload is `base64url(JSON({code, mermaid: {theme}, ...}))`. No network
|
|
142
|
+
* calls; the payload is encoded into the URL fragment.
|
|
143
|
+
*
|
|
144
|
+
* @category extra
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
type MermaidLiveTheme = "default" | "dark" | "forest" | "neutral" | "base";
|
|
148
|
+
type ToMermaidUrlOptions = ToMermaidOptions & {
|
|
149
|
+
theme?: MermaidLiveTheme;
|
|
150
|
+
autoSync?: boolean;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Encode an arbitrary mermaid source string to a `mermaid.live` deep link.
|
|
154
|
+
* Exported separately so callers that already rendered mermaid text can
|
|
155
|
+
* upgrade to a live-editor URL without re-rendering.
|
|
156
|
+
*/
|
|
157
|
+
declare function mermaidLiveUrl(mermaidSrc: string, opts?: {
|
|
158
|
+
theme?: MermaidLiveTheme;
|
|
159
|
+
autoSync?: boolean;
|
|
160
|
+
}): string;
|
|
161
|
+
declare function toMermaidUrl(g: GraphDescribeOutput, opts?: ToMermaidUrlOptions): string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* `toPretty(g, opts?)` — render a {@link GraphDescribeOutput} as
|
|
165
|
+
* human-readable plaintext (Node list with values, plus optional Edges and
|
|
166
|
+
* Subgraphs sections).
|
|
167
|
+
*
|
|
168
|
+
* Pure function over the describe snapshot; no Graph instance dependency.
|
|
169
|
+
*
|
|
170
|
+
* @category extra
|
|
171
|
+
*/
|
|
172
|
+
|
|
173
|
+
type ToPrettyOptions = {
|
|
174
|
+
/** Include the Edges section (default `true`). */
|
|
175
|
+
includeEdges?: boolean;
|
|
176
|
+
/** Include the Subgraphs section (default `true`). */
|
|
177
|
+
includeSubgraphs?: boolean;
|
|
178
|
+
/** Optional logger hook; fires with the rendered text before return. */
|
|
179
|
+
logger?: (text: string) => void;
|
|
180
|
+
};
|
|
181
|
+
declare function toPretty(g: GraphDescribeOutput, opts?: ToPrettyOptions): string;
|
|
182
|
+
|
|
183
|
+
export { type DiagramDirection, type LayoutDirection, type MermaidLiveTheme, type ToAsciiOptions, type ToD2Options, type ToJsonOptions, type ToMermaidOptions, type ToMermaidUrlOptions, type ToPrettyOptions, mermaidLiveUrl, toAscii, toD2, toJson, toMermaid, toMermaidUrl, toPretty };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../../chunk-3G5U5QNE.js";import"../../chunk-C72GO4IZ.js";import"../../chunk-QYADASLV.js";export{e as mermaidLiveUrl,a as toAscii,b as toD2,c as toJson,d as toMermaid,f as toMermaidUrl,g as toPretty};
|
package/dist/extra/sources.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var xe=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var It=Object.prototype.hasOwnProperty;var E=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ne=(t,e)=>{for(var n in e)xe(t,n,{get:e[n],enumerable:!0})},Ft=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Dt(e))!It.call(t,o)&&o!==n&&xe(t,o,{get:()=>e[o],enumerable:!(r=Ct(e,o))||r.enumerable});return t};var Lt=t=>Ft(xe({},"__esModule",{value:!0}),t);function U(){return Math.trunc(performance.now()*1e6)}function ie(){return Date.now()*1e6}var ae=E(()=>{"use strict"});var D,b,T,w,I,F,Z,A,y,p,W,ke,Pt,Ee,Bt,Gt,Se,We,$e,je,Ae,Q=E(()=>{"use strict";D=Symbol.for("graphrefly/START"),b=Symbol.for("graphrefly/DATA"),T=Symbol.for("graphrefly/DIRTY"),w=Symbol.for("graphrefly/RESOLVED"),I=Symbol.for("graphrefly/INVALIDATE"),F=Symbol.for("graphrefly/PAUSE"),Z=Symbol.for("graphrefly/RESUME"),A=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),p=Symbol.for("graphrefly/ERROR"),W=Object.freeze([T]),ke=Object.freeze([w]),Pt=Object.freeze([I]),Ee=Object.freeze([D]),Bt=Object.freeze([y]),Gt=Object.freeze([A]),Se=Object.freeze([W]),We=Object.freeze([ke]),$e=Object.freeze([Pt]),je=Object.freeze([Bt]),Ae=Object.freeze([Gt])});function ze(t){t.registerCodec(Vt)}var Vt,Ke=E(()=>{"use strict";Vt={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function ue(t){if(t==null)return Ht;let{type:e,id:n,...r}=t;return{type:e??"system",id:n??"",...r}}var Ht,qe=E(()=>{"use strict";Ht={type:"system",id:""}});function Ye(){return $>0||ee}function Je(){return $>0}function Xe(t){$>0?te.push(t):t()}function Oe(t){$+=1;let e=!1;try{t()}catch(n){throw e=!0,n}finally{if($-=1,$===0)if(e){if(!ee){let n=te.splice(0);for(let r of n)try{r()}catch{}L.length=0,P.length=0,j.length=0}}else Ut()}}function Ut(){let t=!ee;t&&(ee=!0);let e=[],n=0;try{for(;L.length>0||P.length>0||j.length>0||t&&te.length>0;){if(t&&te.length>0){let i=te.splice(0);for(let s of i)try{s()}catch(a){e.push(a)}continue}if(n+=1,n>1e3)throw L.length=0,P.length=0,j.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let o=(L.length>0?L:P.length>0?P:j).splice(0);for(let i of o)try{i()}catch(s){e.push(s)}}}finally{t&&(ee=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function ce(t,e,n){if(e.length===0)return;if(e.length===1){let c=n(e[0][0]);if(c<3||!Ye()){t(e);return}(c>=5?j:c===4?P:L).push(()=>t(e));return}let r=e.length,o=r,i=r,s=r,a=0;for(;a<r&&n(e[a][0])<3;)a++;for(o=a;a<r&&n(e[a][0])===3;)a++;for(i=a;a<r&&n(e[a][0])===4;)a++;s=a;let u=Ye();if(o>0){let c=e.slice(0,o);t(c)}if(i>o){let c=e.slice(o,i);u?L.push(()=>t(c)):t(c)}if(s>i){let c=e.slice(i,s);u?P.push(()=>t(c)):t(c)}if(r>s){let c=e.slice(s,r);u?j.push(()=>t(c)):t(c)}}var $,ee,L,P,j,te,Re=E(()=>{"use strict";$=0,ee=!1,L=[],P=[],j=[],te=[]});function Ze(t){t.registerMessageType(D,{tier:0,wireCrossing:!1}),t.registerMessageType(T,{tier:1,wireCrossing:!1}),t.registerMessageType(I,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(F,{tier:2,wireCrossing:!1}),t.registerMessageType(Z,{tier:2,wireCrossing:!1}),t.registerMessageType(b,{tier:3,wireCrossing:!0}),t.registerMessageType(w,{tier:3,wireCrossing:!0}),t.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(p,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(A,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var de,Qe=E(()=>{"use strict";Q();de=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let r=this._messageTypes.get(n);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var z,et=E(()=>{"use strict";z=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function Me(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(Me);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=Me(t[n]);return e}return null}function jt(t){let e=$t.encode(t),n=e.length,r=n*8,o=n+9+63&-64,i=new Uint8Array(o);i.set(e),i[n]=128;let s=new DataView(i.buffer);s.setUint32(o-4,r>>>0,!1),s.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let a=1779033703,u=3144134277,c=1013904242,d=2773480762,l=1359893119,f=2600822924,h=528734635,v=1541459225,_=new Uint32Array(64),g=(x,O)=>x>>>O|x<<32-O;for(let x=0;x<o;x+=64){for(let k=0;k<16;k++)_[k]=s.getUint32(x+k*4,!1);for(let k=16;k<64;k++){let J=_[k-15],X=_[k-2],se=g(J,7)^g(J,18)^J>>>3,Te=g(X,17)^g(X,19)^X>>>10;_[k]=_[k-16]+se+_[k-7]+Te>>>0}let O=a,q=u,Y=c,we=d,M=l,re=f,oe=h,ve=v;for(let k=0;k<64;k++){let J=g(M,6)^g(M,11)^g(M,25),X=M&re^~M&oe,se=ve+J+X+Wt[k]+_[k]>>>0,Te=g(O,2)^g(O,13)^g(O,22),Rt=O&q^O&Y^q&Y,Mt=Te+Rt>>>0;ve=oe,oe=re,re=M,M=we+se>>>0,we=Y,Y=q,q=O,O=se+Mt>>>0}a=a+O>>>0,u=u+q>>>0,c=c+Y>>>0,d=d+we>>>0,l=l+M>>>0,f=f+re>>>0,h=h+oe>>>0,v=v+ve>>>0}let m=x=>x.toString(16).padStart(8,"0");return m(a)+m(u)+m(c)+m(d)+m(l)+m(f)+m(h)+m(v)}function Ce(t){let e=Me(t??null),n=JSON.stringify(e);return jt(n).slice(0,16)}function zt(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function De(t,e,n){let r=n?.id??zt();if(t===0)return{id:r,version:0};let i=(n?.hash??Ce)(e);return{id:r,version:0,cid:i,prev:null}}function tt(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var Wt,$t,nt=E(()=>{"use strict";Wt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),$t=new TextEncoder});function st(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function Ie(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function le(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function R(t,e,n){let r=it(t)?t:[],o=typeof t=="function"?t:typeof e=="function"?e:void 0,i={};return it(t)?i=(Fe(e)?e:n)??{}:Fe(t)?i=t:i=(Fe(e)?e:n)??{},new fe(r,o,i)}var rt,ot,Kt,qt,Le,fe,it,Fe,pe=E(()=>{"use strict";Ke();qe();Re();ae();Qe();et();Q();nt();rt=()=>{},ot=100;Kt=(t,e,n,r)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},qt=(t,e,n,r)=>{let o=t;if(o._status==="completed"||o._status==="errored")return;let i=o._cached,s=i===void 0?[Ee]:[Ee,[b,i]];o._status==="dirty"&&s.push(W),ce(e,s,o._config.tierOf)},Le=new de({onMessage:Kt,onSubscribe:qt});Ze(Le);ze(Le);fe=class t{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,r){this._config=r.config??Le,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=n,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??Ce;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?De(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(st);let i={};for(let[a,u]of Object.entries(r.meta??{})){let c={initial:u,name:`${r.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};r.guard!=null&&(c.guard=r.guard),i[a]=new t([],void 0,c)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let s=this;this._actions={emit(a){s._emit([[b,a]])},down(a){s._emit(le(a))},up(a){s._emitUp(le(a))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,n){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=n?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let i=this._cached===void 0?void 0:this._cached,s=this._versioning,a=s?.id??n?.id,u=s?.version??0,c=De(e,i,{id:a,hash:o});c.version=u,this._versioning=c,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=ue(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!n&&!r)return;let o=ue(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,i))throw new z({actor:o,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let s of this._extraGuards)if(!s(o,i))throw new z({actor:o,action:i,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:ie()}}down(e,n){let r=le(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[b,e]])}up(e,n){if(this._deps.length===0)return;let r=le(e);if(r.length===0)return;this._checkGuard(n);let o=n??{internal:!0};this._validateUpTiers(r);for(let i of this._deps)i.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let r of e){let o=n(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,n){if(n!=null&&this._guard!=null){let u=ue(n);if(!this._guard(u,"observe"))throw new z({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)Ie(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let s=this._isTerminal;if(this._sinkCount===1&&!s)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let a=!1;return()=>{a||(a=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[n]=this._sinks;this._sinks=n}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,n=0;try{for(let r=0;r<e;r++){let o=r,i=this._deps[r];i.unsub=rt,i.unsub=i.node.subscribe(s=>{if(i.unsub===null)return;let a=this._config.tierOf,u=!1;for(let c of s)a(c[0])>=3&&(u=!0),this._config.onMessage(this,c,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let o=0;o<n;o++){let i=this._deps[o];if(i.unsub!=null){let s=i.unsub;i.unsub=null;try{s()}catch{}Ie(i)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let n=this._deps.length,r=st(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Se),r.unsub=rt;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let i=this._config.tierOf,s=!1;for(let a of o)i(a[0])>=3&&(s=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);s&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[p,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[p,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}Ie(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,n){let r=this._deps[e],o=n[0];if(this._inspectorHooks!=null){let i={kind:"dep_message",depIndex:e,message:n};for(let s of this._inspectorHooks)s(i)}if(o!==D){if(o===T){this._depDirtied(r);return}if(o===I){if(this._depInvalidated(r),this._cached===void 0)return;this._emit($e);return}if(o===F||o===Z){this._emit([n]);return}if(o===A){this._emit(Ae);return}if(o===b)this._depSettledAsData(r,n[1]);else if(o===w)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===p)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(o===b||o===w)&&this._emit([n]),(o===y||o===p)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Se))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit(We),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[p,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(je)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(s){this._emit([[p,this._wrapFnError("cleanup threw",s)]]);return}}else if(e!=null&&typeof e=="object"){let s=e.beforeRun;if(typeof s=="function"){e.beforeRun=void 0;try{s()}catch(a){this._emit([[p,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(s=>s.involvedThisWave?s.dataBatch.length>0?[...s.dataBatch]:[]:void 0),r=this._deps.map(s=>s.prevData);for(let s=0;s<this._deps.length;s++){let a=n[s];a!=null&&a.length>0&&(this._deps[s].prevData=a[a.length-1])}let o=this._deps.map(s=>s.terminal),i={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let s={kind:"run",batchData:n,prevData:r};for(let a of this._inspectorHooks)a(s)}this._isExecutingFn=!0;try{let s=this._fn(n,this._actions,i);if(typeof s=="function")this._cleanup=s;else if(s!=null&&typeof s=="object"){let a=s;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=s)}}catch(s){this._emit([[p,this._wrapFnError("fn threw",s)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>ot?(this._rerunDepth=0,this._emit([[p,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${ot} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,n){let r=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[W,e[0]]:e;let r=!0,o=!1,i=!1,s=-1;for(let u of e){let c=n(u[0]);c<s&&(r=!1),c===3&&(o=!0),u[0]===T&&(i=!0),s=c}let a=e;if(!r){let u=e.map((c,d)=>({m:c,i:d,tier:n(c[0])}));u.sort((c,d)=>c.tier-d.tier||c.i-d.i),a=u.map(c=>c.m)}if(o&&!i&&this._status!=="dirty"){let u=0;for(;u<a.length&&n(a[u][0])===0;)u++;return u===0?[W,...a]:[...a.slice(0,u),W,...a.slice(u)]}return a}_emit(e){if(e.length===0)return;for(let a=0;a<e.length;a++){let u=e[a];if(u[0]===p&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(u=>u[0]===A||u[0]===I);if(a.length===0)return;n=a}n=this._frameBatch(n);let o=null;for(let a=0;a<n.length;a++){let u=n[a],c=u[0];if(c!==F&&c!==Z){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${c===F?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let d=!0;if(this._pausable!==!1){let l=u[1];if(c===F)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(l),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(l))d=!1;else if(this._pauseLocks.delete(l),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let f=this._pauseBuffer;this._pauseBuffer=[],this._emit(f)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}d?o?.push(u):o==null&&(o=n.slice(0,a))}if(o!=null){if(o.length===0)return;n=o}if(this._hasMeta&&n.some(a=>a[0]===A))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(Ae)}catch{}let{finalMessages:i,equalsError:s}=this._updateState(n);if(i.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,u=[];for(let c of i)a(c[0])===3?this._pauseBuffer.push(c):u.push(c);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(i);s!=null&&this._emit([[p,s]])}_updateState(e){let n=this._config.tierOf,r,o,i=-1,s=0;for(let d of e)n(d[0])===3&&s++;let a=s<=1,u=-1;if(this._versioning!=null&&s>1){for(let d=e.length-1;d>=0;d--)if(e[d][0]===b){u=d;break}}for(let d=0;d<e.length;d++){let l=e[d],f=l[0];if(f===b){if(l.length>=2){let h=!1;if(a&&this._cached!==void 0)try{h=this._equals(this._cached,l[1])}catch(v){o=this._wrapFnError("equals threw",v),i=d;break}if(h){r==null&&(r=e.slice(0,d)),r.push(ke),this._status="resolved";continue}this._cached=l[1],this._versioning!=null&&(u<0||d===u)&&tt(this._versioning,l[1],this._hashFn)}this._status="settled",r?.push(l)}else if(r?.push(l),f===T)this._status="dirty";else if(f===w)this._status="resolved";else if(f===y){this._status="completed";{let h=this._config.rigorRecorder;if(h!=null)try{h.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(f===p){this._status="errored";{let h=this._config.rigorRecorder;if(h!=null)try{h.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(f===I){if(this._cached!==void 0){let v=this._config.rigorRecorder;if(v!=null)try{v.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let h=this._cleanup;if(typeof h=="function"){this._cleanup=void 0;try{h()}catch{}}else if(h!=null&&typeof h=="object"){let v=h.invalidate;if(typeof v=="function")try{v()}catch{}}}else f===A&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let c=i>=0?r??e.slice(0,i):r??e;return o!=null?{finalMessages:c,equalsError:o}:{finalMessages:c}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let r of n)r(e)};_dispatchOrAccumulate(e){if(Je()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Xe(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}ce(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);ce(this._deliverToSinks,n,this._config.tierOf)}},it=t=>Array.isArray(t),Fe=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function at(t,e){return R([],{...e,initial:t})}function N(t,e){return R((r,o,i)=>t(o,i)??void 0,{describeKind:"producer",...e})}var Pe=E(()=>{"use strict";pe()});function ne(t,e,n){let r=new Set;for(let o of t.split(",")){let[i,s]=o.split("/"),a=s?Number.parseInt(s,10):1;if(Number.isNaN(a)||a<1)throw new Error(`Invalid cron step: ${o}`);let u,c;if(i==="*")u=e,c=n;else if(i.includes("-")){let[d,l]=i.split("-");u=Number.parseInt(d,10),c=Number.parseInt(l,10)}else u=Number.parseInt(i,10),c=u;if(Number.isNaN(u)||Number.isNaN(c))throw new Error(`Invalid cron field: ${t}`);if(u<e||c>n)throw new Error(`Cron field out of range: ${t} (${e}-${n})`);if(u>c)throw new Error(`Invalid cron range: ${u}-${c} in ${t}`);for(let d=u;d<=c;d+=a)r.add(d)}return r}function ut(t){let e=t.trim().split(/\s+/);if(e.length!==5)throw new Error(`Invalid cron: expected 5 fields, got ${e.length}`);return{minutes:ne(e[0],0,59),hours:ne(e[1],0,23),daysOfMonth:ne(e[2],1,31),months:ne(e[3],1,12),daysOfWeek:ne(e[4],0,6)}}function ct(t,e){return t.minutes.has(e.getMinutes())&&t.hours.has(e.getHours())&&t.daysOfMonth.has(e.getDate())&&t.months.has(e.getMonth()+1)&&t.daysOfWeek.has(e.getDay())}var dt=E(()=>{"use strict"});function C(t,e){let n={factory:t};return e!==void 0&&(n.factoryArgs=e),n}var lt=E(()=>{"use strict"});var bt={};Ne(bt,{NS_PER_MS:()=>G,NS_PER_SEC:()=>K,constant:()=>ft,decorrelatedJitter:()=>gt,exponential:()=>ht,fibonacci:()=>mt,linear:()=>pt,resolveBackoffPreset:()=>he,withMaxAttempts:()=>Xt});function B(t){return t<0?0:t}function Yt(t,e){return e==="none"?t:e==="full"?Math.random()*t:t/2+Math.random()*(t/2)}function Jt(t,e){return t+Math.random()*(e-t)}function ft(t){let e=B(t);return()=>e}function pt(t,e){let n=B(t),r=e===void 0?n:B(e);return o=>n+r*Math.max(0,o)}function ht(t){let e=B(t?.baseNs??1e8),n=t?.factor!==void 0&&t.factor<1?1:t?.factor??2,r=B(t?.maxDelayNs??30*1e9),o=t?.jitter??"none";return i=>{let s;if(e===0)s=0;else if(n===1)s=e;else{let a=r/e,u=1;for(let c=0;c<Math.max(0,i);c++){if(u>=a){u=a;break}u*=n}s=e*u,s>r&&(s=r)}return Yt(s,o)}}function mt(t=100*1e6,e=30*1e9){let n=B(t),r=B(e);function o(i){if(i<=0)return 1;let s=1,a=2;for(let u=1;u<i;u++){let c=s+a;s=a,a=c}return a}return i=>{let s=o(i)*n;return s<=r?s:r}}function gt(t=100*1e6,e=30*1e9){return(n,r,o)=>{let s=Math.min(e,(o??t)*3);return Jt(t,s)}}function Xt(t,e){return(n,r,o)=>n>=e?null:t(n,r,o)}function he(t){if(t==="constant")return ft(1*1e9);if(t==="linear")return pt(1*1e9);if(t==="exponential")return ht();if(t==="fibonacci")return mt();if(t==="decorrelatedJitter")return gt();throw new Error(`Unknown backoff preset: "${String(t)}". Use one of: constant, linear, exponential, fibonacci, decorrelatedJitter`)}var G,K,Be=E(()=>{"use strict";G=1e6,K=1e9});var V,yt=E(()=>{"use strict";V=class{_timer;_gen=0;start(e,n){this.cancel(),this._gen+=1;let r=this._gen;this._timer=setTimeout(()=>{this._timer=void 0,r===this._gen&&n()},e)}cancel(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}get pending(){return this._timer!==void 0}}});var Tt={};Ne(Tt,{CircuitOpenError:()=>me,RateLimiterOverflowError:()=>ge,TimeoutError:()=>be,circuitBreaker:()=>nn,fallback:()=>dn,rateLimiter:()=>on,retry:()=>Qt,timeout:()=>ln,tokenBucket:()=>vt,withBreaker:()=>rn,withStatus:()=>sn});function H(t){return{describeKind:"derived",...t}}function Zt(t){return t<0?0:t}function ye(t){return t[1]}function _t(t){if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("backoff strategy must return a finite number");return t<0?0:t}function Qt(t,e){return typeof t=="function"?tn(t,e):en(t,e)}function wt(t){let e={};return t?.count!==void 0&&(e.count=t.count),typeof t?.backoff=="string"&&(e.backoff=t.backoff),Object.keys(e).length>0?e:void 0}function en(t,e){let n=e?.count,r=e?.backoff,o=n!==void 0?n:r===void 0?0:2147483647;if(o<0)throw new RangeError("retry count must be >= 0");let i=r===void 0?null:typeof r=="string"?he(r):r;return N(s=>{let a=0,u=!1,c=null,d,l=new V;function f(){d?.(),d=void 0}function h(_){if(u)return;if(a>=o){f(),s.down([[p,_]]);return}let g=i===null?0:i(a,_,c);if(g==null){f(),s.down([[p,_]]);return}let m;try{m=_t(g)}catch{f(),s.down([[p,_]]);return}c=m,a+=1,f();let x=m>0?m/1e6:1;l.start(x,()=>{u||v()})}function v(){l.cancel(),f(),d=t.subscribe(_=>{if(!u)for(let g of _){let m=g[0];if(m===T)s.down([[T]]);else if(m===b)a=0,c=null,s.emit(g[1]);else if(m===w)s.down([[w]]);else if(m===y)f(),s.down([[y]]);else if(m===p){h(ye(g));return}else s.down([g])}})}return v(),()=>{u=!0,l.cancel(),f()}},{...H(),initial:t.cache,meta:{...C("retry",wt(e))}})}function tn(t,e){let n=e?.count,r=e?.backoff,o=n!==void 0?n:r===void 0?0:2147483647;if(o<0)throw new RangeError("retry count must be >= 0");let i=r===void 0?null:typeof r=="string"?he(r):r;return N(s=>{let a=0,u=!1,c=null,d,l=new V;function f(){d?.(),d=void 0}function h(_){if(u)return;if(a>=o){f(),s.down([[p,_]]);return}let g=i===null?0:i(a,_,c);if(g==null){f(),s.down([[p,_]]);return}let m;try{m=_t(g)}catch{f(),s.down([[p,_]]);return}c=m,a+=1,f();let x=m>0?m/1e6:1;l.start(x,()=>{u||v()})}function v(){l.cancel(),f();let _;try{_=t()}catch(g){h(g);return}d=_.subscribe(g=>{if(!u)for(let m of g){let x=m[0];if(x===T)s.down([[T]]);else if(x===b)a=0,c=null,s.emit(m[1]);else if(x===w)s.down([[w]]);else if(x===y)f(),s.down([[y]]);else if(x===p){h(ye(m));return}else s.down([m])}})}return v(),()=>{u=!0,l.cancel(),f()}},{...H(),initial:e?.initial,meta:{...C("retry",wt(e))}})}function nn(t){let e=Math.max(1,t?.failureThreshold??5),n=Zt(t?.cooldownNs??30*1e9),r=t?.cooldown??null,o=Math.max(1,t?.halfOpenMax??1),i=t?.now??U,s="closed",a=0,u=0,c=0,d=n,l=0;function f(){if(!r)return n;let _=r(u);return _!==null?_:n}function h(){s="open",d=f(),c=i(),l=0}return{canExecute(){return s==="closed"?!0:s==="open"?i()-c>=d?(s="half-open",l=1,!0):!1:l<o?(l++,!0):!1},recordSuccess(){s==="half-open"?(s="closed",a=0,u=0):s==="closed"&&(a=0)},recordFailure(_){if(s==="half-open"){u++,h();return}s==="closed"&&(a++,a>=e&&h())},get state(){return s},get failureCount(){return a},reset(){s="closed",a=0,u=0,l=0}}}function rn(t,e){let n=e?.onOpen??"skip";return r=>{let o=R([],(i,s)=>{function a(){o.meta.breakerState.down([[b,t.state]])}let u=r.subscribe(c=>{for(let d of c){let l=d[0];l===T?s.down([[T]]):l===b?t.canExecute()?(a(),s.emit(d[1])):(a(),n==="error"?s.down([[p,new me]]):s.down([[w]])):l===w?s.down([[w]]):l===y?(t.recordSuccess(),a(),s.down([[y]])):l===p?(t.recordFailure(ye(d)),a(),s.down([d])):s.down([d])}});return a(),u},{...H(),meta:{breakerState:t.state,...C("withBreaker",{onOpen:n})},completeWhenDepsComplete:!1,initial:r.cache});return{node:o,breakerState:o.meta.breakerState}}}function vt(t,e){if(t<=0)throw new RangeError("capacity must be > 0");if(e<0)throw new RangeError("refillPerSecond must be >= 0");let n=t,r=U();function o(i){if(e>0){let s=i-r;n=Math.min(t,n+s/1e9*e)}r=i}return{available(){return o(U()),n},tryConsume(i=1){if(i<=0)return!0;let s=U();return o(s),n>=i?(n-=i,!0):!1},putBack(i=1){i<=0||(o(U()),n=Math.min(t,n+i))}}}function on(t,e){let{maxEvents:n,windowNs:r}=e;if(n<=0)throw new RangeError("maxEvents must be > 0");if(r<=0)throw new RangeError("windowNs must be > 0");let o=e.maxBuffer;if(o!==void 0&&o<1)throw new RangeError("maxBuffer must be >= 1");let i=e.onOverflow??"drop-newest",s=n*1e9/r;return N(a=>{let u=vt(n,s),c=[],d=new V,l=!1,f=1e9/s;function h(){for(;c.length>0;)if(u.tryConsume(1))a.emit(c.shift());else{d.start(Math.max(1,f/1e6),h);return}}let v=t.subscribe(_=>{for(let g of _){if(l)return;let m=g[0];if(m===T)a.down([[T]]);else if(m===b){if(o!==void 0&&c.length>=o){if(i!=="drop-newest")if(i==="drop-oldest")c.shift(),c.push(g[1]);else{l=!0,d.cancel(),c.length=0,a.down([[p,new ge(o)]]);return}}else c.push(g[1]);h()}else if(m===w)a.down([[w]]);else if(m===y)l=!0,d.cancel(),c.length=0,a.down([[y]]);else if(m===p)l=!0,d.cancel(),c.length=0,a.down([g]);else if(m===A){l=!0,d.cancel(),c.length=0,a.down([g]);return}else a.down([g])}});return()=>{l=!0,d.cancel(),v()}},{...H(),initial:t.cache,meta:{...C("rateLimiter",e)}})}function sn(t,e){let n=e?.initialStatus??"pending",r=R([],(o,i)=>{let s=n;return r.meta.status.down([[b,n]]),r.meta.error.down([[b,null]]),t.subscribe(u=>{for(let c of u){let d=c[0];if(d===T)i.down([[T]]);else if(d===b)s==="errored"?Oe(()=>{r.meta.error.down([[b,null]]),r.meta.status.down([[b,"active"]])}):r.meta.status.down([[b,"active"]]),s="active",i.emit(c[1]);else if(d===w)i.down([[w]]);else if(d===y)r.meta.status.down([[b,"completed"]]),s="completed",i.down([[y]]);else if(d===p){let l=ye(c);Oe(()=>{r.meta.error.down([[b,l]]),r.meta.status.down([[b,"errored"]])}),s="errored",i.down([c])}else i.down([c])}})},{...H(),meta:{status:n,error:null,...C("withStatus",{initialStatus:n})},completeWhenDepsComplete:!1,resubscribable:!0,initial:t.cache});return{node:r,status:r.meta.status,error:r.meta.error}}function an(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function un(t){return t!=null&&typeof t.then=="function"}function cn(t){return t!=null&&typeof t=="object"&&typeof t[Symbol.asyncIterator]=="function"}function dn(t,e){return N(n=>{let r,o;function i(){o?.(),o=void 0,an(e)||un(e)||cn(e)?r=_e(e).subscribe(a=>{n.down(a)}):(n.emit(e),n.down([[y]]))}return o=t.subscribe(s=>{for(let a of s){let u=a[0];if(u===T)n.down([[T]]);else if(u===b)n.emit(a[1]);else if(u===w)n.down([[w]]);else if(u===y)n.down([[y]]);else if(u===p){i();return}else if(u===A){r?.(),n.down([a]);return}else n.down([a])}}),()=>{o?.(),r?.()}},{...H(),initial:t.cache,meta:{...C("fallback")}})}function ln(t,e){if(e<=0)throw new RangeError("timeoutNs must be > 0");return N(n=>{let r=!1,o=new V;function i(){let a=e/1e6;o.start(a,()=>{r||(r=!0,s(),n.down([[p,new be(e)]]))})}let s=t.subscribe(a=>{for(let u of a){if(r)return;let c=u[0];if(c===T)n.down([[T]]);else if(c===b)i(),n.emit(u[1]);else if(c===w)n.down([[w]]);else if(c===y){o.cancel(),r=!0,n.down([[y]]);return}else if(c===p){o.cancel(),r=!0,n.down([u]);return}else if(c===A){o.cancel(),r=!0,n.down([u]);return}else n.down([u])}});return i(),()=>{r=!0,o.cancel(),s()}},{...H(),initial:t.cache,meta:{...C("timeout",{timeoutNs:e})}})}var me,ge,be,xt=E(()=>{"use strict";Re();ae();Q();lt();pe();Pe();Be();Nt();yt();me=class extends Error{name="CircuitOpenError";constructor(){super("Circuit breaker is open")}};ge=class extends Error{name="RateLimiterOverflowError";constructor(e){super(`rateLimiter buffer overflow (maxBuffer=${e})`)}};be=class extends Error{name="TimeoutError";constructor(e){super(`Timed out after ${e/1e6}ms`)}}});var Fn={};Ne(Fn,{awaitSettled:()=>Rn,cached:()=>An,defer:()=>Nn,empty:()=>vn,escapeRegexChar:()=>Et,firstValueFrom:()=>On,firstWhere:()=>Ve,forEach:()=>kn,fromAny:()=>_e,fromAsyncIter:()=>At,fromCron:()=>bn,fromEvent:()=>yn,fromIter:()=>He,fromPromise:()=>St,fromRaf:()=>gn,fromTimer:()=>mn,globToRegExp:()=>fn,keepalive:()=>Dn,matchesAnyPattern:()=>pn,never:()=>Tn,nodeSignal:()=>Mn,of:()=>Ot,reactiveCounter:()=>In,replay:()=>Ue,share:()=>Sn,shareReplay:()=>Cn,throwError:()=>xn,toArray:()=>En});module.exports=Lt(Fn);function S(t){return{describeKind:"producer",...t}}function Et(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function fn(t){let e="^";for(let n=0;n<t.length;n+=1){let r=t[n];if(r==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Et(r)}return e+="$",new RegExp(e)}function pn(t,e){for(let n of e)if(n.test(t))return!0;return!1}function hn(t,e){let n=R([t],(o,i)=>{let s=o[0];if(s==null||s.length===0){i.down([[w]]);return}for(let a of s)i.emit(a)},{describeKind:"derived",initial:t.cache}),r=n.subscribe.bind(n);return n.subscribe=(o,i)=>(e(o),r(o,i)),n}function mn(t,e){let{signal:n,period:r,...o}=e??{};return N(i=>{let s=!1,a=0,u,c,d=()=>{s=!0,u!==void 0&&clearTimeout(u),c!==void 0&&clearInterval(c),n?.removeEventListener("abort",f)},l=()=>{s||(r!=null?(i.emit(a++),c=setInterval(()=>{s||i.emit(a++)},r)):(s=!0,n?.removeEventListener("abort",f),i.emit(a++),i.down([[y]])))},f=()=>{s||(d(),i.down([[p,n.reason]]))};if(n?.aborted){f();return}return u=setTimeout(l,t),n?.addEventListener("abort",f,{once:!0}),d},S(o))}function gn(t){let{signal:e,...n}=t??{};return N(r=>{let o=!1,i,s,a=!1,u=!1,c=typeof requestAnimationFrame=="function"?requestAnimationFrame:void 0,d=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:void 0,l=typeof document<"u"?document:void 0,f=()=>{i!==void 0&&d&&d(i),s!==void 0&&clearTimeout(s),i=void 0,s=void 0},h=()=>{o=!0,f(),a&&(e?.removeEventListener("abort",v),a=!1),u&&l&&(l.removeEventListener("visibilitychange",m),u=!1)},v=()=>{o||(h(),r.down([[p,e.reason]]))},_=x=>{o||(r.emit(x),g())},g=()=>{o||(c&&(!l||l.visibilityState!=="hidden")?i=c(_):s=setTimeout(()=>_(performance.now()),16))},m=()=>{o||(f(),g())};return e?.aborted?(v(),h):(e?.addEventListener("abort",v,{once:!0}),a=e!==void 0,l&&c&&(l.addEventListener("visibilitychange",m),u=!0),g(),h)},S(n))}function bn(t,e){let n=ut(t),{tickMs:r,output:o,...i}=e??{},s=r??6e4,a=o==="date";return N(u=>{let c=-1,d=()=>{let f=new Date,h=f.getFullYear()*1e8+(f.getMonth()+1)*1e6+f.getDate()*1e4+f.getHours()*100+f.getMinutes();h!==c&&ct(n,f)&&(c=h,u.emit(a?f:ie()))};d();let l=setInterval(d,s);return()=>clearInterval(l)},{...S(i),name:i.name??`cron:${t}`})}function yn(t,e,n){let{capture:r,passive:o,once:i,...s}=n??{};return N(a=>{let u=d=>{a.emit(d)},c={capture:r,passive:o,once:i};return t.addEventListener(e,u,c),()=>t.removeEventListener(e,u,c)},S(s))}function He(t,e){return N(n=>{let r=!1;try{for(let o of t){if(r)return;n.emit(o)}r||n.down([[y]])}catch(o){r||n.down([[p,o]])}return()=>{r=!0}},S(e))}function _n(t){return t!=null&&typeof t.then=="function"}function St(t,e){let{signal:n,...r}=e??{};return N(o=>{let i=!1,s=()=>{i||(i=!0,o.down([[p,n.reason]]))};if(n?.aborted){s();return}return n?.addEventListener("abort",s,{once:!0}),Promise.resolve(t).then(a=>{i||(i=!0,n?.removeEventListener("abort",s),o.emit(a),o.down([[y]]))},a=>{i||(i=!0,n?.removeEventListener("abort",s),o.down([[p,a]]))}),()=>{i=!0,n?.removeEventListener("abort",s)}},S(r))}function At(t,e){let{signal:n,...r}=e??{};return N(o=>{let i=new AbortController,s=()=>i.abort(n?.reason);n?.aborted?i.abort(n.reason):n?.addEventListener("abort",s,{once:!0});let a=n??i.signal,u=!1,c=t[Symbol.asyncIterator](),d=()=>{u||a.aborted||Promise.resolve(c.next()).then(l=>{if(!(u||a.aborted)){if(l.done){o.down([[y]]);return}o.emit(l.value),d()}},l=>{!u&&!a.aborted&&o.down([[p,l]])})};return d(),()=>{u=!0,n?.removeEventListener("abort",s),i.abort(),Promise.resolve(c.return?.()).catch(()=>{})}},S(r))}function wn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function _e(t,e){if(wn(t))return t;if(_n(t))return St(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return At(t,e);if(typeof n[Symbol.iterator]=="function")return He(t,e)}return Ot(t)}function Ot(...t){return He(t,void 0)}function vn(t){return N(e=>{e.down([[y]])},S(t))}function Tn(t){return N(()=>{},S(t))}function xn(t,e){return N(n=>{n.down([[p,t]])},S(e))}function Nn(t,e){let{signal:n,...r}=e??{},o=S(r),i=o.resubscribable===void 0?{...o,resubscribable:!0}:o;return N(s=>{let a,u=!1;try{let c=t();a=_e(c,e).subscribe(l=>{if(!u)for(let f of l){let h=f[0];if(h!==D)if(h===b)s.emit(f[1]);else if(h===y){u=!0,s.down([[y]]);break}else if(h===p){u=!0,s.down([[p,f[1]]]);break}else s.down([f])}})}catch(c){let d=c===void 0?new Error("defer: thunk threw undefined"):c;s.down([[p,d]])}return()=>{u=!0,a?.()}},i)}function kn(t,e,n){return R([t],(o,i)=>{let s=o[0];if(s!=null&&s.length>0)for(let a of s)e(a)},{describeKind:"effect",...n}).subscribe(()=>{})}function En(t,e){return R([t],(n,r,o)=>{o.store.buf||(o.store.buf=[]);let i=o.store.buf,s=n[0];if(s!=null&&s.length>0)for(let a of s)i.push(a);if(o.terminalDeps[0]===!0){r.emit([...i]),r.down([[y]]);return}(s==null||s.length===0)&&r.down([[w]])},{describeKind:"derived",completeWhenDepsComplete:!1,...e})}function Sn(t,e){return N(n=>t.subscribe(r=>{n.down(r)}),{...S(e),initial:t.cache})}function Ue(t,e,n){if(e<1)throw new RangeError("replay expects bufferSize >= 1");let r=[],o=N(i=>t.subscribe(s=>{for(let a of s)a[0]===b&&(r.push(a[1]),r.length>e&&r.shift());i.down(s)}),{...S(n),initial:t.cache});return hn(o,i=>{for(let s of r)i([[b,s]])})}function An(t,e){return Ue(t,1,e)}function On(t){return new Promise((e,n)=>{let r=!1,o=!1,i;i=t.subscribe(s=>{for(let a of s){if(r)return;if(a[0]===b){r=!0,e(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===p){r=!0,n(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===y){r=!0,n(new Error("completed without DATA")),i?(i(),i=void 0):o=!0;return}}}),o&&(i?.(),i=void 0)})}function Ve(t,e,n){return new Promise((r,o)=>{let i=!1,s=!1,a,u=n?.skipCurrent===!0;a=t.subscribe(c=>{for(let d of c){if(i)return;if(!(u&&d[0]===b)){if(d[0]===b){let l=d[1];if(e(l)){i=!0,r(l),a?(a(),a=void 0):s=!0;return}}if(d[0]===p){i=!0,o(d[1]),a?(a(),a=void 0):s=!0;return}if(d[0]===y){i=!0,o(new Error("completed without matching value")),a?(a(),a=void 0):s=!0;return}}}}),u=!1,s&&(a?.(),a=void 0)})}async function Rn(t,e){let n=e?.predicate??(i=>i!=null),r=e?.skipCurrent;if(e?.timeoutMs==null||e.timeoutMs<=0)return await Ve(t,n,{skipCurrent:r});if(Ge===void 0){let[i,s]=await Promise.all([Promise.resolve().then(()=>(xt(),Tt)),Promise.resolve().then(()=>(Be(),bt))]);Ge=i.timeout,kt=s.NS_PER_MS}let o=Ge(t,e.timeoutMs*kt);return await Ve(o,n,{skipCurrent:r})}function Mn(t,e){let n=new AbortController,r=e?.reason??new Error("cancelled via nodeSignal"),o,i=!1,s=()=>{o?(o(),o=void 0):i=!0};return o=t.subscribe(a=>{if(!n.signal.aborted)for(let u of a){if(u[0]===b&&u[1]===!0){n.abort(r),s();return}if(u[0]===p){n.abort(u[1]),s();return}if(u[0]===y){s();return}}}),i&&(o?.(),o=void 0),{signal:n.signal,dispose:()=>{o&&(o(),o=void 0)}}}function Dn(t){return t.subscribe(()=>{})}function In(t){let e=at(0);return{node:e,increment(){let n=e.cache??0;return n>=t?!1:(e.down([[T],[b,n+1]]),!0)},get(){return e.cache??0},atCap(){return(e.cache??0)>=t}}}var Ge,kt,Cn,Nt=E(()=>{ae();Q();pe();Pe();dt();Cn=Ue});Nt();0&&(module.exports={awaitSettled,cached,defer,empty,escapeRegexChar,firstValueFrom,firstWhere,forEach,fromAny,fromAsyncIter,fromCron,fromEvent,fromIter,fromPromise,fromRaf,fromTimer,globToRegExp,keepalive,matchesAnyPattern,never,nodeSignal,of,reactiveCounter,replay,share,shareReplay,throwError,toArray});
|
|
1
|
+
"use strict";var Te=Object.defineProperty;var zt=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Wt=Object.prototype.hasOwnProperty;var v=(t,e)=>()=>(t&&(e=t(t=0)),e);var ve=(t,e)=>{for(var n in e)Te(t,n,{get:e[n],enumerable:!0})},$t=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ut(e))!Wt.call(t,o)&&o!==n&&Te(t,o,{get:()=>e[o],enumerable:!(r=zt(e,o))||r.enumerable});return t};var jt=t=>$t(Te({},"__esModule",{value:!0}),t);function xe(){return Math.trunc(performance.now()*1e6)}function ae(){return Date.now()*1e6}var ue=v(()=>{"use strict"});var P,g,T,w,G,I,F,R,y,h,W,Ne,Kt,ke,qt,Yt,Ee,$e,je,Ke,Se,$=v(()=>{"use strict";P=Symbol.for("graphrefly/START"),g=Symbol.for("graphrefly/DATA"),T=Symbol.for("graphrefly/DIRTY"),w=Symbol.for("graphrefly/RESOLVED"),G=Symbol.for("graphrefly/INVALIDATE"),I=Symbol.for("graphrefly/PAUSE"),F=Symbol.for("graphrefly/RESUME"),R=Symbol.for("graphrefly/TEARDOWN"),y=Symbol.for("graphrefly/COMPLETE"),h=Symbol.for("graphrefly/ERROR"),W=Object.freeze([T]),Ne=Object.freeze([w]),Kt=Object.freeze([G]),ke=Object.freeze([P]),qt=Object.freeze([y]),Yt=Object.freeze([R]),Ee=Object.freeze([W]),$e=Object.freeze([Ne]),je=Object.freeze([Kt]),Ke=Object.freeze([qt]),Se=Object.freeze([Yt])});function qe(t){t.registerCodec(Jt)}var Jt,Ye=v(()=>{"use strict";Jt={name:"json",version:1,contentType:"application/json",encode(t){let e=JSON.stringify(t);return new TextEncoder().encode(e)},decode(t,e){let n=new TextDecoder().decode(t);return JSON.parse(n)}}});function de(t){if(t==null)return Xt;let{type:e,id:n,...r}=t;return{type:e??"system",id:n??"",...r}}var Xt,Je=v(()=>{"use strict";Xt={type:"system",id:""}});function Xe(){return j>0||te}function Qe(){return j>0}function Ze(t){j>0?ne.push(t):t()}function Ae(t){j+=1;let e=!1;try{t()}catch(n){throw e=!0,n}finally{if(j-=1,j===0)if(e){if(!te){let n=ne.splice(0);for(let r of n)try{r()}catch{}V.length=0,H.length=0,K.length=0}}else Qt()}}function Qt(){let t=!te;t&&(te=!0);let e=[],n=0;try{for(;V.length>0||H.length>0||K.length>0||t&&ne.length>0;){if(t&&ne.length>0){let i=ne.splice(0);for(let s of i)try{s()}catch(a){e.push(a)}continue}if(n+=1,n>1e3)throw V.length=0,H.length=0,K.length=0,new Error("batch drain exceeded 1000 iterations \u2014 likely a reactive cycle");let o=(V.length>0?V:H.length>0?H:K).splice(0);for(let i of o)try{i()}catch(s){e.push(s)}}}finally{t&&(te=!1)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"batch drain: multiple callbacks threw")}function ce(t,e,n){if(e.length===0)return;if(e.length===1){let d=n(e[0][0]);if(d<3||!Xe()){t(e);return}(d>=5?K:d===4?H:V).push(()=>t(e));return}let r=e.length,o=r,i=r,s=r,a=0;for(;a<r&&n(e[a][0])<3;)a++;for(o=a;a<r&&n(e[a][0])===3;)a++;for(i=a;a<r&&n(e[a][0])===4;)a++;s=a;let u=Xe();if(o>0){let d=e.slice(0,o);t(d)}if(i>o){let d=e.slice(o,i);u?V.push(()=>t(d)):t(d)}if(s>i){let d=e.slice(i,s);u?H.push(()=>t(d)):t(d)}if(r>s){let d=e.slice(s,r);u?K.push(()=>t(d)):t(d)}}var j,te,V,H,K,ne,Re=v(()=>{"use strict";j=0,te=!1,V=[],H=[],K=[],ne=[]});function et(t){t.registerMessageType(P,{tier:0,wireCrossing:!1}),t.registerMessageType(T,{tier:1,wireCrossing:!1}),t.registerMessageType(G,{tier:1,wireCrossing:!1,metaPassthrough:!1}),t.registerMessageType(I,{tier:2,wireCrossing:!1}),t.registerMessageType(F,{tier:2,wireCrossing:!1}),t.registerMessageType(g,{tier:3,wireCrossing:!0}),t.registerMessageType(w,{tier:3,wireCrossing:!0}),t.registerMessageType(y,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(h,{tier:4,wireCrossing:!0,metaPassthrough:!1}),t.registerMessageType(R,{tier:5,wireCrossing:!0,metaPassthrough:!1})}var le,tt=v(()=>{"use strict";$();le=class{_messageTypes=new Map;_codecs=new Map;_onMessage;_onSubscribe;_defaultVersioning;_defaultHashFn;_inspectorEnabled=!(typeof process<"u"&&process.env?.NODE_ENV==="production");_globalInspector;_rigorRecorder;_frozen=!1;tierOf;constructor(e){this._onMessage=e.onMessage,this._onSubscribe=e.onSubscribe,this._defaultVersioning=e.defaultVersioning,this._defaultHashFn=e.defaultHashFn,this.tierOf=n=>{let r=this._messageTypes.get(n);return r!=null?r.tier:1}}get onMessage(){return this._frozen=!0,this._onMessage}get onSubscribe(){return this._frozen=!0,this._onSubscribe}set onMessage(e){this._assertUnfrozen(),this._onMessage=e}set onSubscribe(e){this._assertUnfrozen(),this._onSubscribe=e}get defaultVersioning(){return this._defaultVersioning}set defaultVersioning(e){this._assertUnfrozen(),this._defaultVersioning=e}get defaultHashFn(){return this._defaultHashFn}set defaultHashFn(e){this._assertUnfrozen(),this._defaultHashFn=e}get inspectorEnabled(){return this._inspectorEnabled}set inspectorEnabled(e){this._inspectorEnabled=e}get globalInspector(){return this._globalInspector}set globalInspector(e){this._globalInspector=e}get rigorRecorder(){return this._rigorRecorder}set rigorRecorder(e){this._rigorRecorder=e}registerMessageType(e,n){return this._assertUnfrozen(),this._messageTypes.set(e,{tier:n.tier,wireCrossing:n.wireCrossing??n.tier>=3,metaPassthrough:n.metaPassthrough??!0}),this}messageTier(e){let n=this._messageTypes.get(e);return n!=null?n.tier:1}isWireCrossing(e){let n=this._messageTypes.get(e);return n!=null?n.wireCrossing:!0}isLocalOnly(e){return!this.isWireCrossing(e)}isMetaPassthrough(e){let n=this._messageTypes.get(e);return n!=null?n.metaPassthrough:!0}isKnownMessageType(e){return this._messageTypes.has(e)}registerCodec(e){return this._assertUnfrozen(),this._codecs.set(e.name,e),this}lookupCodec(e){return this._codecs.get(e)}_isFrozen(){return this._frozen}_assertUnfrozen(){if(this._frozen)throw new Error("GraphReFlyConfig is frozen: a node has already captured this config. Register custom types and set hooks before creating any node.")}}});var q,nt=v(()=>{"use strict";q=class extends Error{actor;action;nodeName;constructor(e,n){super(n??`GuardDenied: action "${String(e.action)}" denied for actor type "${String(e.actor.type)}"`),this.name="GuardDenied",this.actor=e.actor,this.action=e.action,this.nodeName=e.nodeName}get node(){return this.nodeName}}});function Oe(t){if(t===void 0)return null;if(typeof t=="number"){if(!Number.isFinite(t))throw new TypeError(`Cannot hash non-finite number: ${t}`);if(Number.isInteger(t)&&!Number.isSafeInteger(t))throw new TypeError(`Cannot hash integer outside safe range (|n| > 2^53-1): ${t}. Cross-language cid parity is not guaranteed for unsafe integers.`);return t}if(typeof t=="string"||typeof t=="boolean"||t===null)return t;if(Array.isArray(t))return t.map(Oe);if(typeof t=="object"&&t!==null){let e={};for(let n of Object.keys(t).sort())e[n]=Oe(t[n]);return e}return null}function tn(t){let e=en.encode(t),n=e.length,r=n*8,o=n+9+63&-64,i=new Uint8Array(o);i.set(e),i[n]=128;let s=new DataView(i.buffer);s.setUint32(o-4,r>>>0,!1),s.setUint32(o-8,Math.floor(r/4294967296)>>>0,!1);let a=1779033703,u=3144134277,d=1013904242,c=2773480762,l=1359893119,p=2600822924,f=528734635,b=1541459225,_=new Uint32Array(64),m=(S,k)=>S>>>k|S<<32-k;for(let S=0;S<o;S+=64){for(let E=0;E<16;E++)_[E]=s.getUint32(S+E*4,!1);for(let E=16;E<64;E++){let Z=_[E-15],ee=_[E-2],ie=m(Z,7)^m(Z,18)^Z>>>3,we=m(ee,17)^m(ee,19)^ee>>>10;_[E]=_[E-16]+ie+_[E-7]+we>>>0}let k=a,D=u,B=d,Q=c,A=l,C=p,se=f,_e=b;for(let E=0;E<64;E++){let Z=m(A,6)^m(A,11)^m(A,25),ee=A&C^~A&se,ie=_e+Z+ee+Zt[E]+_[E]>>>0,we=m(k,2)^m(k,13)^m(k,22),Vt=k&D^k&B^D&B,Ht=we+Vt>>>0;_e=se,se=C,C=A,A=Q+ie>>>0,Q=B,B=D,D=k,k=ie+Ht>>>0}a=a+k>>>0,u=u+D>>>0,d=d+B>>>0,c=c+Q>>>0,l=l+A>>>0,p=p+C>>>0,f=f+se>>>0,b=b+_e>>>0}let N=S=>S.toString(16).padStart(8,"0");return N(a)+N(u)+N(d)+N(c)+N(l)+N(p)+N(f)+N(b)}function Me(t){let e=Oe(t??null),n=JSON.stringify(e);return tn(n).slice(0,16)}function nn(){let t=globalThis.crypto;if(t?.randomUUID)return t.randomUUID();let e=()=>Math.floor(Math.random()*4294967296).toString(16).padStart(8,"0"),n=e()+e()+e()+e();return`${n.slice(0,8)}-${n.slice(8,12)}-4${n.slice(13,16)}-${(parseInt(n.slice(16,17),16)&3|8).toString(16)}${n.slice(17,20)}-${n.slice(20,32)}`}function Ce(t,e,n){let r=n?.id??nn();if(t===0)return{id:r,version:0};let i=(n?.hash??Me)(e);return{id:r,version:0,cid:i,prev:null}}function rt(t,e,n){t.version+=1,"cid"in t&&(t.prev=t.cid,t.cid=n(e))}var Zt,en,ot=v(()=>{"use strict";Zt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),en=new TextEncoder});function at(t){return{node:t,unsub:null,prevData:void 0,dirty:!1,involvedThisWave:!1,dataBatch:[],terminal:void 0}}function De(t){t.prevData=void 0,t.dirty=!1,t.involvedThisWave=!1,t.dataBatch.length=0,t.terminal=void 0}function fe(t){return t.length===0?t:typeof t[0]=="symbol"?[t]:t}function M(t,e,n){let r=ut(t)?t:[],o=typeof t=="function"?t:typeof e=="function"?e:void 0,i={};return ut(t)?i=(Ie(e)?e:n)??{}:Ie(t)?i=t:i=(Ie(e)?e:n)??{},new pe(r,o,i)}var st,it,rn,on,Fe,pe,ut,Ie,re=v(()=>{"use strict";Ye();Je();Re();ue();tt();nt();$();ot();st=()=>{},it=100;rn=(t,e,n,r)=>{n.direction==="down-in"&&t._onDepMessage(n.depIndex,e)},on=(t,e,n,r)=>{let o=t;if(o._status==="completed"||o._status==="errored")return;let i=o._cached,s=i===void 0?[ke]:[ke,[g,i]];o._status==="dirty"&&s.push(W),ce(e,s,o._config.tierOf)},Fe=new le({onMessage:rn,onSubscribe:on});et(Fe);qe(Fe);pe=class t{_optsName;_describeKind;meta;_hasMeta;_config;_deps;_sinks=null;_sinkCount=0;_cached;_status;_cleanup;_store={};_waveHasNewData=!1;_hasNewTerminal=!1;_hasCalledFnOnce=!1;_paused=!1;_pendingWave=!1;_isExecutingFn=!1;_pendingRerun=!1;_rerunDepth=0;_dirtyDepCount=0;_batchPendingMessages=null;_pauseLocks=null;_pauseBuffer=null;_fn;_equals;_resubscribable;_resetOnTeardown;_autoComplete;_autoError;_pausable;_partial;_guard;_extraGuards;_hashFn;_versioning;_versioningLevel;_lastMutation;_inspectorHooks;_actions;constructor(e,n,r){this._config=r.config??Fe,this._config.onMessage,this._optsName=r.name,this._describeKind=r.describeKind,this._equals=r.equals??Object.is,this._resubscribable=r.resubscribable??!1,this._resetOnTeardown=r.resetOnTeardown??!1,this._autoComplete=r.completeWhenDepsComplete??!0,this._autoError=r.errorWhenDepsError??!0,this._pausable=r.pausable??!0,this._guard=r.guard,this._fn=n,this._partial=r.partial??!1,this._cached=r.initial!==void 0?r.initial:void 0,this._status=e.length===0&&n==null&&this._cached!==void 0?"settled":"sentinel",this._hashFn=r.versioningHash??this._config.defaultHashFn??Me;let o=r.versioning??this._config.defaultVersioning;this._versioningLevel=o,this._versioning=o!=null?Ce(o,this._cached===void 0?void 0:this._cached,{id:r.versioningId,hash:this._hashFn}):void 0,this._deps=e.map(at);let i={};for(let[a,u]of Object.entries(r.meta??{})){let d={initial:u,name:`${r.name??"node"}:meta:${a}`,describeKind:"state",config:this._config};r.guard!=null&&(d.guard=r.guard),i[a]=new t([],void 0,d)}Object.freeze(i),this.meta=i,this._hasMeta=Object.keys(i).length>0;let s=this;this._actions={emit(a){s._emit([[g,a]])},down(a){s._emit(fe(a))},up(a){s._emitUp(fe(a))}},this.down=this.down.bind(this),this.up=this.up.bind(this)}get _isTerminal(){return this._status==="completed"||this._status==="errored"}get name(){return this._optsName}get status(){return this._status}get cache(){return this._cached===void 0?void 0:this._cached}get lastMutation(){return this._lastMutation}get v(){return this._versioning}hasGuard(){return this._guard!=null}_applyVersioning(e,n){if(this._isExecutingFn)throw new Error(`Node "${this.name}": _applyVersioning cannot run mid-fn \u2014 call it outside of \`_execFn\` (typically at graph setup time before the first subscribe).`);let r=this._versioningLevel;if(r!=null&&e<=r)return;let o=n?.hash??this._hashFn;o!==this._hashFn&&(this._hashFn=o);let i=this._cached===void 0?void 0:this._cached,s=this._versioning,a=s?.id??n?.id,u=s?.version??0,d=Ce(e,i,{id:a,hash:o});d.version=u,this._versioning=d,this._versioningLevel=e}_setInspectorHook(e){return e==null?()=>{}:(this._inspectorHooks==null&&(this._inspectorHooks=new Set),this._inspectorHooks.add(e),()=>{this._inspectorHooks?.delete(e),this._inspectorHooks?.size===0&&(this._inspectorHooks=void 0)})}_pushGuard(e){return this._extraGuards==null&&(this._extraGuards=new Set),this._extraGuards.add(e),()=>{this._extraGuards?.delete(e),this._extraGuards?.size===0&&(this._extraGuards=void 0)}}allowsObserve(e){if(this._guard==null&&this._extraGuards==null)return!0;let n=de(e);if(this._guard!=null&&!this._guard(n,"observe"))return!1;if(this._extraGuards!=null){for(let r of this._extraGuards)if(!r(n,"observe"))return!1}return!0}_checkGuard(e){if(e?.internal)return;let n=this._guard!=null||this._extraGuards!=null,r=e?.actor!=null;if(!n&&!r)return;let o=de(e?.actor),i=e?.delivery==="signal"?"signal":"write";if(this._guard!=null&&!this._guard(o,i))throw new q({actor:o,action:i,nodeName:this.name});if(this._extraGuards!=null){for(let s of this._extraGuards)if(!s(o,i))throw new q({actor:o,action:i,nodeName:this.name})}this._lastMutation={actor:o,timestamp_ns:ae()}}down(e,n){let r=fe(e);r.length!==0&&(this._checkGuard(n),this._emit(r))}emit(e,n){this._checkGuard(n),this._emit([[g,e]])}up(e,n){if(this._deps.length===0)return;let r=fe(e);if(r.length===0)return;this._checkGuard(n);let o=n??{internal:!0};this._validateUpTiers(r);for(let i of this._deps)i.node.up?.(r,o)}_emitUp(e){if(this._deps.length!==0&&e.length!==0){this._validateUpTiers(e);for(let n of this._deps)n.node.up?.(e,{internal:!0})}}_validateUpTiers(e){let n=this._config.tierOf;for(let r of e){let o=n(r[0]);if(o===3||o===4)throw new Error(`Node "${this.name}": tier-${o} messages cannot flow up \u2014 DATA/RESOLVED/COMPLETE/ERROR are downstream-only. Use \`down(...)\` for value delivery; \`up(...)\` is for control signals (DIRTY, INVALIDATE, PAUSE, RESUME, TEARDOWN).`)}}subscribe(e,n){if(n!=null&&this._guard!=null){let u=de(n);if(!this._guard(u,"observe"))throw new q({actor:u,action:"observe",nodeName:this.name})}let o=this._isTerminal&&this._resubscribable;if(o){this._cached=void 0,this._status="sentinel",this._store={},this._hasCalledFnOnce=!1,this._waveHasNewData=!1,this._hasNewTerminal=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._isExecutingFn=!1,this._rerunDepth=0,this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null;for(let u of this._deps)De(u);if(this._partial===!1){for(let u of this._deps)if(u.prevData!==void 0||u.dataBatch.length!==0||u.terminal!==void 0||u.dirty)throw new Error(`resubscribable-reset invariant: DepRecord not fully reset for node ${this._optsName??"(anonymous)"}`)}}this._sinkCount+=1;let i;try{i=this._config.onSubscribe(this,e,{sinkCount:this._sinkCount,afterTerminalReset:o},this._actions)}catch(u){throw this._sinkCount-=1,u}this._sinks==null?this._sinks=e:typeof this._sinks=="function"?this._sinks=new Set([this._sinks,e]):this._sinks.add(e);let s=this._isTerminal;if(this._sinkCount===1&&!s)try{this._activate()}catch(u){if(this._sinkCount-=1,this._removeSink(e),this._sinkCount===0&&(this._status="sentinel"),typeof i=="function")try{i()}catch{}throw u}this._status==="sentinel"&&this._cached===void 0&&(this._status="pending");let a=!1;return()=>{a||(a=!0,this._sinkCount-=1,this._removeSink(e),typeof i=="function"&&i(),this._sinks==null&&this._deactivate())}}_removeSink(e){if(this._sinks===e)this._sinks=null;else if(this._sinks!=null&&typeof this._sinks!="function")if(this._sinks.delete(e),this._sinks.size===1){let[n]=this._sinks;this._sinks=n}else this._sinks.size===0&&(this._sinks=null)}_activate(){if(this._deps.length===0){this._fn&&this._execFn();return}this._dirtyDepCount=0;let e=this._deps.length,n=0;try{for(let r=0;r<e;r++){let o=r,i=this._deps[r];i.unsub=st,i.unsub=i.node.subscribe(s=>{if(i.unsub===null)return;let a=this._config.tierOf,u=!1;for(let d of s)a(d[0])>=3&&(u=!0),this._config.onMessage(this,d,{direction:"down-in",depIndex:o},this._actions);u&&this._maybeRunFnOnSettlement()}),n++}}catch(r){this._deps[n].unsub=null;for(let o=0;o<n;o++){let i=this._deps[o];if(i.unsub!=null){let s=i.unsub;i.unsub=null;try{s()}catch{}De(i)}}throw this._dirtyDepCount=0,r}}_addDep(e){for(let o=0;o<this._deps.length;o++)if(this._deps[o].node===e)return o;let n=this._deps.length,r=at(e);if(this._deps.push(r),this._sinks==null)return n;r.dirty=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Ee),r.unsub=st;try{r.unsub=e.subscribe(o=>{if(r.unsub===null)return;let i=this._config.tierOf,s=!1;for(let a of o)i(a[0])>=3&&(s=!0),this._config.onMessage(this,a,{direction:"down-in",depIndex:n},this._actions);s&&this._maybeRunFnOnSettlement()})}catch(o){throw r.unsub=null,this._deps.pop(),this._dirtyDepCount--,o}return n}_deactivate(e=!1){let n=this._cleanup;if(this._cleanup=void 0,typeof n=="function")try{n()}catch(r){this._emit([[h,this._wrapFnError("cleanup threw",r)]])}else if(n!=null&&typeof n=="object"){let r=n.deactivate;if(typeof r=="function")try{r()}catch(o){this._emit([[h,this._wrapFnError("cleanup.deactivate threw",o)]])}}for(let r of this._deps){if(r.unsub!=null){let o=r.unsub;r.unsub=null;try{o()}catch{}}De(r)}this._waveHasNewData=!1,this._hasNewTerminal=!1,this._hasCalledFnOnce=!1,this._paused=!1,this._pendingWave=!1,this._pendingRerun=!1,this._rerunDepth=0,this._store={},this._dirtyDepCount=0,this._pauseLocks=null,this._pauseBuffer=null,this._fn!=null&&(this._cached=void 0),e||(this._fn!=null||this._deps.length>0)&&(!this._isTerminal||this._resubscribable)&&(this._status="sentinel")}_onDepMessage(e,n){let r=this._deps[e],o=n[0];if(this._inspectorHooks!=null){let i={kind:"dep_message",depIndex:e,message:n};for(let s of this._inspectorHooks)s(i)}if(o!==P){if(o===T){this._depDirtied(r);return}if(o===G){if(this._depInvalidated(r),this._cached===void 0)return;this._emit(je);return}if(o===I||o===F){this._emit([n]);return}if(o===R){this._emit(Se);return}if(o===g)this._depSettledAsData(r,n[1]);else if(o===w)this._depSettledAsResolved(r);else if(o===y)this._depSettledAsTerminal(r,!0);else if(o===h)this._depSettledAsTerminal(r,n[1]);else{this._emit([n]);return}if(!this._fn){(o===g||o===w)&&this._emit([n]),(o===y||o===h)&&this._maybeAutoTerminalAfterWave();return}}}_depDirtied(e){e.dirty||(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++,this._status!=="dirty"&&this._emit(Ee))}_depSettledAsData(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.involvedThisWave=!0,e.dataBatch.push(n),this._waveHasNewData=!0}_depSettledAsResolved(e){e.dirty&&(e.dirty=!1,this._dirtyDepCount--)}_depSettledAsTerminal(e,n){e.dirty&&(e.dirty=!1,this._dirtyDepCount--),e.terminal=n,e.involvedThisWave=!0,this._hasNewTerminal=!0}_depInvalidated(e){e.prevData=void 0,e.terminal=void 0,e.dataBatch.length=0,e.dirty?e.involvedThisWave=!1:(e.dirty=!0,e.involvedThisWave=!0,this._dirtyDepCount++)}_maybeRunFnOnSettlement(){if(!(this._isTerminal&&!this._resubscribable)&&!(this._dirtyDepCount>0)){if(!this._partial&&!this._hasCalledFnOnce)for(let e=0;e<this._deps.length;e++){let n=this._deps[e];if(n.dataBatch.length===0&&n.prevData===void 0&&n.terminal===void 0){this._maybeAutoTerminalAfterWave();return}}if(this._paused){this._pendingWave=!0;return}if(!this._waveHasNewData&&!this._hasNewTerminal&&this._hasCalledFnOnce){this._clearWaveFlags(),this._emit($e),this._maybeAutoTerminalAfterWave();return}this._fn&&this._execFn(),this._maybeAutoTerminalAfterWave()}}_maybeAutoTerminalAfterWave(){if(this._deps.length===0||this._isTerminal)return;let e=this._deps.find(n=>n.terminal!==void 0&&n.terminal!==!0);if(e!=null){this._autoError&&this._emit([[h,e.terminal]]);return}this._autoComplete&&this._deps.every(n=>n.terminal!==void 0)&&this._emit(Ke)}_execFn(){if(!this._fn||this._isTerminal&&!this._resubscribable)return;if(this._isExecutingFn){this._pendingRerun=!0;return}let e=this._cleanup;if(typeof e=="function"){this._cleanup=void 0;try{e()}catch(s){this._emit([[h,this._wrapFnError("cleanup threw",s)]]);return}}else if(e!=null&&typeof e=="object"){let s=e.beforeRun;if(typeof s=="function"){e.beforeRun=void 0;try{s()}catch(a){this._emit([[h,this._wrapFnError("cleanup.beforeRun threw",a)]]);return}}}let n=this._deps.map(s=>s.involvedThisWave?s.dataBatch.length>0?[...s.dataBatch]:[]:void 0),r=this._deps.map(s=>s.prevData);for(let s=0;s<this._deps.length;s++){let a=n[s];a!=null&&a.length>0&&(this._deps[s].prevData=a[a.length-1])}let o=this._deps.map(s=>s.terminal),i={prevData:r,terminalDeps:o,store:this._store};if(this._hasCalledFnOnce=!0,this._clearWaveFlags(),this._inspectorHooks!=null){let s={kind:"run",batchData:n,prevData:r};for(let a of this._inspectorHooks)a(s)}this._isExecutingFn=!0;try{let s=this._fn(n,this._actions,i);if(typeof s=="function")this._cleanup=s;else if(s!=null&&typeof s=="object"){let a=s;(typeof a.beforeRun=="function"||typeof a.deactivate=="function"||typeof a.invalidate=="function")&&(this._cleanup=s)}}catch(s){this._emit([[h,this._wrapFnError("fn threw",s)]])}finally{this._isExecutingFn=!1,this._pendingRerun?(this._pendingRerun=!1,this._rerunDepth+=1,this._rerunDepth>it?(this._rerunDepth=0,this._emit([[h,new Error(`Node "${this.name}": _pendingRerun depth exceeded ${it} \u2014 likely a reactive cycle`)]])):this._maybeRunFnOnSettlement()):this._rerunDepth=0,this._clearWaveFlags()}}_clearWaveFlags(){this._waveHasNewData=!1,this._hasNewTerminal=!1;for(let e of this._deps)e.involvedThisWave=!1,e.dataBatch.length=0}_wrapFnError(e,n){let r=n instanceof Error?n.message:String(n);return new Error(`Node "${this.name}": ${e}: ${r}`,{cause:n})}_frameBatch(e){let n=this._config.tierOf;if(e.length===1)return n(e[0][0])===3&&this._status!=="dirty"?[W,e[0]]:e;let r=!0,o=!1,i=!1,s=-1;for(let u of e){let d=n(u[0]);d<s&&(r=!1),d===3&&(o=!0),u[0]===T&&(i=!0),s=d}let a=e;if(!r){let u=e.map((d,c)=>({m:d,i:c,tier:n(d[0])}));u.sort((d,c)=>d.tier-c.tier||d.i-c.i),a=u.map(d=>d.m)}if(o&&!i&&this._status!=="dirty"){let u=0;for(;u<a.length&&n(a[u][0])===0;)u++;return u===0?[W,...a]:[...a.slice(0,u),W,...a.slice(u)]}return a}_emit(e){if(e.length===0)return;for(let a=0;a<e.length;a++){let u=e[a];if(u[0]===h&&u[1]===void 0)throw new TypeError('[ERROR, payload] requires a non-undefined payload (spec \xA71.2). Pass an Error object or domain tag instead \u2014 e.g. node.down([[ERROR, new Error("reason")]])')}let n=e;if(this._isTerminal&&!this._resubscribable){let a=e.filter(u=>u[0]===R||u[0]===G);if(a.length===0)return;n=a}n=this._frameBatch(n);let o=null;for(let a=0;a<n.length;a++){let u=n[a],d=u[0];if(d!==I&&d!==F){o?.push(u);continue}if(u.length<2)throw new Error(`Node "${this.name}": [[${d===I?"PAUSE":"RESUME"}]] must carry a lockId payload \u2014 bare PAUSE/RESUME is a protocol violation (C0 rule). Use \`[[PAUSE, lockId]]\` / \`[[RESUME, lockId]]\`.`);let c=!0;if(this._pausable!==!1){let l=u[1];if(d===I)this._pauseLocks==null&&(this._pauseLocks=new Set),this._pauseLocks.add(l),this._paused=!0,this._pausable==="resumeAll"&&this._pauseBuffer==null&&(this._pauseBuffer=[]);else if(this._pauseLocks==null||!this._pauseLocks.has(l))c=!1;else if(this._pauseLocks.delete(l),this._pauseLocks.size===0){if(this._paused=!1,this._pauseBuffer!=null&&this._pauseBuffer.length>0){let p=this._pauseBuffer;this._pauseBuffer=[],this._emit(p)}this._pendingWave&&(this._pendingWave=!1,this._maybeRunFnOnSettlement())}}c?o?.push(u):o==null&&(o=n.slice(0,a))}if(o!=null){if(o.length===0)return;n=o}if(this._hasMeta&&n.some(a=>a[0]===R))for(let a of Object.keys(this.meta))try{this.meta[a]._emit(Se)}catch{}let{finalMessages:i,equalsError:s}=this._updateState(n);if(i.length>0&&this._config.inspectorEnabled){let a=this._config.globalInspector;if(a!=null)try{a({kind:"emit",node:this,messages:i})}catch{}}if(i.length>0)if(this._paused&&this._pausable==="resumeAll"&&this._pauseBuffer!=null){let a=this._config.tierOf,u=[];for(let d of i)a(d[0])===3?this._pauseBuffer.push(d):u.push(d);u.length>0&&this._dispatchOrAccumulate(u)}else this._dispatchOrAccumulate(i);s!=null&&this._emit([[h,s]])}_updateState(e){let n=this._config.tierOf,r,o,i=-1,s=0;for(let c of e)n(c[0])===3&&s++;let a=s<=1,u=-1;if(this._versioning!=null&&s>1){for(let c=e.length-1;c>=0;c--)if(e[c][0]===g){u=c;break}}for(let c=0;c<e.length;c++){let l=e[c],p=l[0];if(p===g){if(l.length>=2){let f=!1;if(a&&this._cached!==void 0)try{f=this._equals(this._cached,l[1])}catch(b){o=this._wrapFnError("equals threw",b),i=c;break}if(f){r==null&&(r=e.slice(0,c)),r.push(Ne),this._status="resolved";continue}this._cached=l[1],this._versioning!=null&&(u<0||c===u)&&rt(this._versioning,l[1],this._hashFn)}this._status="settled",r?.push(l)}else if(r?.push(l),p===T)this._status="dirty";else if(p===w)this._status="resolved";else if(p===y){this._status="completed";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"completed",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===h){this._status="errored";{let f=this._config.rigorRecorder;if(f!=null)try{f.onTerminalTransition(this,"errored",this._autoComplete,this._autoError,this._deps.length>0)}catch{}}}else if(p===G){if(this._cached!==void 0){let b=this._config.rigorRecorder;if(b!=null)try{b.onNonVacuousInvalidate(this,this._cached)}catch{}}this._cached=void 0,this._status="dirty";let f=this._cleanup;if(typeof f=="function"){this._cleanup=void 0;try{f()}catch{}}else if(f!=null&&typeof f=="object"){let b=f.invalidate;if(typeof b=="function")try{b()}catch{}}}else p===R&&(this._resetOnTeardown&&(this._cached=void 0),this._deactivate(!0),this._status="sentinel")}let d=i>=0?r??e.slice(0,i):r??e;return o!=null?{finalMessages:d,equalsError:o}:{finalMessages:d}}_deliverToSinks=e=>{if(this._sinks==null)return;if(typeof this._sinks=="function"){this._sinks(e);return}let n=[...this._sinks];for(let r of n)r(e)};_dispatchOrAccumulate(e){if(Qe()){this._batchPendingMessages===null&&(this._batchPendingMessages=[],Ze(()=>this._flushBatchPending()));for(let n of e)this._batchPendingMessages.push(n);return}ce(this._deliverToSinks,e,this._config.tierOf)}_flushBatchPending(){let e=this._batchPendingMessages;if(e===null||(this._batchPendingMessages=null,e.length===0))return;let n=this._frameBatch(e);ce(this._deliverToSinks,n,this._config.tierOf)}},ut=t=>Array.isArray(t),Ie=t=>typeof t=="object"&&t!=null&&!Array.isArray(t)});function dt(t,e){return M([],{...e,initial:t})}function x(t,e){return M((r,o,i)=>t(o,i)??void 0,{describeKind:"producer",...e})}var Le=v(()=>{"use strict";re()});function oe(t,e,n){let r=new Set;for(let o of t.split(",")){let[i,s]=o.split("/"),a=s?Number.parseInt(s,10):1;if(Number.isNaN(a)||a<1)throw new Error(`Invalid cron step: ${o}`);let u,d;if(i==="*")u=e,d=n;else if(i.includes("-")){let[c,l]=i.split("-");u=Number.parseInt(c,10),d=Number.parseInt(l,10)}else u=Number.parseInt(i,10),d=u;if(Number.isNaN(u)||Number.isNaN(d))throw new Error(`Invalid cron field: ${t}`);if(u<e||d>n)throw new Error(`Cron field out of range: ${t} (${e}-${n})`);if(u>d)throw new Error(`Invalid cron range: ${u}-${d} in ${t}`);for(let c=u;c<=d;c+=a)r.add(c)}return r}function ct(t){let e=t.trim().split(/\s+/);if(e.length!==5)throw new Error(`Invalid cron: expected 5 fields, got ${e.length}`);return{minutes:oe(e[0],0,59),hours:oe(e[1],0,23),daysOfMonth:oe(e[2],1,31),months:oe(e[3],1,12),daysOfWeek:oe(e[4],0,6)}}function lt(t,e){return t.minutes.has(e.getMinutes())&&t.hours.has(e.getHours())&&t.daysOfMonth.has(e.getDate())&&t.months.has(e.getMonth()+1)&&t.daysOfWeek.has(e.getDay())}var ft=v(()=>{"use strict"});function pt(t,e,n){return{[t]:!0,[`${t}_type`]:e,...n??{}}}var ht=v(()=>{"use strict"});function mt(t,e,n){if(e.length===0)throw new RangeError("budgetGate requires at least one constraint");let r=e.map(f=>f.node),o=[t,...r],i=new Be,s=!1,a=!1,u=Symbol("budget-gate"),d=new Array(e.length);function c(){return e.every((f,b)=>f.check(d[b]))}function l(f){for(;i.size>0&&c();){let b=i.shift();f.emit(b)}i.size===0&&a&&(a=!1,f.down([[w]]))}return M([],(f,b)=>{for(let m=0;m<e.length;m++)d[m]=e[m].node.cache;let _=[];for(let m=0;m<o.length;m++){let N=o[m];_.push(N.subscribe(S=>{for(let k of S)p(k,m,b)}))}return()=>{for(let m of _)m()}},{...n,describeKind:"derived",meta:pt("resilience","budget_gate",n?.meta)});function p(f,b,_){let m=f[0];if(b===0){if(m===g)return c()&&i.size===0?_.emit(f[1]):(i.push(f[1]),s||(s=!0,_.up([[I,u]]))),!0;if(m===T)return _.down([[T]]),!0;if(m===w)return i.size===0?_.down([[w]]):a=!0,!0;if(m===y||m===h){for(;i.size>0;)_.emit(i.shift());return a=!1,s&&(s=!1,_.up([[F,u]])),_.down([f]),!0}return!1}if(m===g&&(d[b-1]=f[1]),m===g||m===w){let N=c();return N&&i.size>0?(l(_),i.size===0&&s&&(s=!1,_.up([[F,u]]))):!N&&!s&&i.size>0&&(s=!0,_.up([[I,u]])),!0}return m===T?!0:m===h?(_.down([f]),!0):m===y}}var Be,gt=v(()=>{"use strict";$();re();ht();Be=class{buf=[];head=0;get size(){return this.buf.length-this.head}push(e){this.buf.push(e)}shift(){if(this.head>=this.buf.length)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head++,this.head>32&&this.head*2>this.buf.length&&(this.buf=this.buf.slice(this.head),this.head=0),e}clear(){this.buf=[],this.head=0}}});function L(t,e){let n={factory:t};return e!==void 0&&(n.factoryArgs=e),n}var bt=v(()=>{"use strict"});var xt={};ve(xt,{NS_PER_MS:()=>Y,NS_PER_SEC:()=>J,constant:()=>yt,decorrelatedJitter:()=>vt,exponential:()=>wt,fibonacci:()=>Tt,linear:()=>_t,resolveBackoffPreset:()=>Pe,withMaxAttempts:()=>un});function z(t){return t<0?0:t}function sn(t,e){return e==="none"?t:e==="full"?Math.random()*t:t/2+Math.random()*(t/2)}function an(t,e){return t+Math.random()*(e-t)}function yt(t){let e=z(t);return()=>e}function _t(t,e){let n=z(t),r=e===void 0?n:z(e);return o=>n+r*Math.max(0,o)}function wt(t){let e=z(t?.baseNs??1e8),n=t?.factor!==void 0&&t.factor<1?1:t?.factor??2,r=z(t?.maxDelayNs??30*1e9),o=t?.jitter??"none";return i=>{let s;if(e===0)s=0;else if(n===1)s=e;else{let a=r/e,u=1;for(let d=0;d<Math.max(0,i);d++){if(u>=a){u=a;break}u*=n}s=e*u,s>r&&(s=r)}return sn(s,o)}}function Tt(t=100*1e6,e=30*1e9){let n=z(t),r=z(e);function o(i){if(i<=0)return 1;let s=1,a=2;for(let u=1;u<i;u++){let d=s+a;s=a,a=d}return a}return i=>{let s=o(i)*n;return s<=r?s:r}}function vt(t=100*1e6,e=30*1e9){return(n,r,o)=>{let s=Math.min(e,(o??t)*3);return an(t,s)}}function un(t,e){return(n,r,o)=>n>=e?null:t(n,r,o)}function Pe(t){if(t==="constant")return yt(1*1e9);if(t==="linear")return _t(1*1e9);if(t==="exponential")return wt();if(t==="fibonacci")return Tt();if(t==="decorrelatedJitter")return vt();throw new Error(`Unknown backoff preset: "${String(t)}". Use one of: constant, linear, exponential, fibonacci, decorrelatedJitter`)}var Y,J,Ge=v(()=>{"use strict";Y=1e6,J=1e9});var X,Nt=v(()=>{"use strict";X=class{_timer;_gen=0;start(e,n){this.cancel(),this._gen+=1;let r=this._gen;this._timer=setTimeout(()=>{this._timer=void 0,r===this._gen&&n()},e)}cancel(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}get pending(){return this._timer!==void 0}}});var he,kt=v(()=>{"use strict";he=class{constructor(e){this.capacity=e;if(!Number.isInteger(e)||e<=0)throw new Error(`RingBuffer capacity must be a positive integer (got ${e})`);this.buf=new Array(e)}buf;head=0;_size=0;get size(){return this._size}get maxSize(){return this.capacity}push(e){let n=(this.head+this._size)%this.capacity;this.buf[n]=e,this._size<this.capacity?this._size++:this.head=(this.head+1)%this.capacity}shift(){if(this._size===0)return;let e=this.buf[this.head];return this.buf[this.head]=void 0,this.head=(this.head+1)%this.capacity,this._size--,e}at(e){if(this._size===0)return;let n=e<0?this._size+e:e;if(!(n<0||n>=this._size))return this.buf[(this.head+n)%this.capacity]}toArray(){let e=new Array(this._size);for(let n=0;n<this._size;n++)e[n]=this.buf[(this.head+n)%this.capacity];return e}clear(){for(let e=0;e<this._size;e++)this.buf[(this.head+e)%this.capacity]=void 0;this.head=0,this._size=0}}});function U(t){return{describeKind:"derived",...t}}function dn(t){return t<0?0:t}function Ve(t){return t[1]}function cn(t){if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("backoff strategy must return a finite number");return t<0?0:t}function Et(t){let e=t?.count,n=t?.backoff;if(n!==void 0&&e===void 0)throw new RangeError("retry({ backoff }) requires explicit count to prevent unbounded retries; pass { count: <n>, backoff: ... }");let r=e!==void 0?e:0;if(r<0)throw new RangeError("retry count must be >= 0");let o=n===void 0?null:typeof n=="string"?Pe(n):n;return{maxRetries:r,strategy:o}}function St(t){let e={};return t?.count!==void 0&&(e.count=t.count),typeof t?.backoff=="string"&&(e.backoff=t.backoff),Object.keys(e).length>0?e:void 0}function At(t,e,n){let r=0,o=!1,i=null,s,a=new X;function u(){s?.(),s=void 0}function d(l){if(o)return;if(r>=t.maxRetries){u(),n.down([[h,l]]);return}let p=t.strategy===null?0:t.strategy(r,l,i);if(p==null){u(),n.down([[h,l]]);return}let f;try{f=cn(p)}catch{u(),n.down([[h,l]]);return}i=f,r+=1,u();let b=f>0?f/1e6:1;a.start(b,()=>{o||c()})}function c(){a.cancel(),u();let l;try{l=e()}catch(p){d(p);return}s=l.subscribe(p=>{if(!o)for(let f of p){let b=f[0];if(b===T)n.down([[T]]);else if(b===g)r=0,i=null,n.emit(f[1]);else if(b===w)n.down([[w]]);else if(b===y)u(),n.down([[y]]);else if(b===h){d(Ve(f));return}else n.down([f])}})}return c(),()=>{o=!0,a.cancel(),u()}}function ln(t,e){return typeof t=="function"?pn(t,e):fn(t,e)}function fn(t,e){let n=Et(e);return x(r=>At(n,()=>t,r),{...U(),initial:t.cache,meta:{...L("retry",St(e))}})}function pn(t,e){let n=Et(e);return x(r=>At(n,t,r),{...U(),initial:e?.initial,meta:{...L("retry",St(e))}})}function hn(t){let e=Math.max(1,t?.failureThreshold??5),n=dn(t?.cooldownNs??30*1e9),r=t?.cooldown??null,o=Math.max(1,t?.halfOpenMax??1),i=t?.now??xe,s="closed",a=0,u=0,d=0,c=n,l=0;function p(){if(!r)return n;let _=r(u);return _!==null?_:n}function f(){s="open",c=p(),d=i(),l=0}return{canExecute(){return s==="closed"?!0:s==="open"?i()-d>=c?(s="half-open",l=1,!0):!1:l<o?(l++,!0):!1},recordSuccess(){s==="half-open"?(s="closed",a=0,u=0):s==="closed"&&(a=0)},recordFailure(_){if(s==="half-open"){u++,f();return}s==="closed"&&(a++,a>=e&&f())},get state(){return s},get failureCount(){return a},reset(){s="closed",a=0,u=0,l=0}}}function mn(t,e){let n=e?.onOpen??"skip";return r=>{let o=M([],(i,s)=>{function a(){o.meta.breakerState.down([[g,t.state]])}let u=r.subscribe(d=>{for(let c of d){let l=c[0];l===T?s.down([[T]]):l===g?t.canExecute()?(a(),s.emit(c[1])):(a(),n==="error"?s.down([[h,new me]]):s.down([[w]])):l===w?s.down([[w]]):l===y?(t.recordSuccess(),a(),s.down([[y]])):l===h?(t.recordFailure(Ve(c)),a(),s.down([c])):s.down([c])}});return a(),u},{...U(),meta:{breakerState:t.state,...L("withBreaker",{onOpen:n})},completeWhenDepsComplete:!1,initial:r.cache});return{node:o,breakerState:o.meta.breakerState}}}function Rt(t,e,n){if(t<=0)throw new RangeError("capacity must be > 0");if(e<0)throw new RangeError("refillPerSecond must be >= 0");let r=n?.clock??xe,o=t,i=r();function s(a){if(e>0){let u=a-i;o=Math.min(t,o+u/1e9*e)}i=a}return{available(){return s(r()),o},tryConsume(a=1){if(a<=0)return!0;let u=r();return s(u),o>=a?(o-=a,!0):!1},putBack(a=1){a<=0||(s(r()),o=Math.min(t,o+a))}}}function gn(t,e){let{maxEvents:n,windowNs:r}=e;if(n<=0)throw new RangeError("maxEvents must be > 0");if(r<=0)throw new RangeError("windowNs must be > 0");let o=e.maxBuffer;if(o===void 0)throw new RangeError("rateLimiter requires explicit maxBuffer (use Infinity to opt in to unbounded)");let i=o===1/0;if(!i&&(!Number.isInteger(o)||o<1))throw new RangeError("maxBuffer must be a positive integer (or Infinity for unbounded)");let s=e.onOverflow??"drop-newest",a=n*1e9/r,u=x(d=>{let c=Rt(n,a),l=i?yn():bn(o),p=new X,f=!1,b=0,_=1e9/a,m=u.meta.droppedCount;function N(){m.emit(b)}m.cache!==0&&N();function S(){for(;l.size>0;)if(c.tryConsume(1))d.emit(l.shift());else{p.start(Math.max(1,_/1e6),S);return}}function k(){b+=1,N()}function D(){for(f=!0,p.cancel();l.size>0;)l.shift();b=0}let B=t.subscribe(Q=>{for(let A of Q){if(f)return;let C=A[0];if(C===T)d.down([[T]]);else if(C===g){if(!i&&l.size>=o)if(s==="drop-newest")k();else if(s==="drop-oldest")l.shift(),l.push(A[1]),k();else{k(),D(),d.down([[h,new ge(o)]]);return}else l.push(A[1]);S()}else if(C===w)d.down([[w]]);else if(C===y)D(),d.down([[y]]);else if(C===h)D(),d.down([A]);else if(C===R){D(),d.down([A]);return}else d.down([A])}});return()=>{f=!0,p.cancel(),B()}},{...U(),initial:t.cache,meta:{droppedCount:0,...L("rateLimiter",e)}});return{node:u,droppedCount:u.meta.droppedCount}}function bn(t){let e=new he(t);return{push:n=>e.push(n),shift:()=>e.shift(),get size(){return e.size}}}function yn(){let t=[];return{push:e=>{t.push(e)},shift:()=>t.shift(),get size(){return t.length}}}function _n(t,e){let n=e?.initialStatus??"pending",r=M([],(o,i)=>{let s=n;return r.meta.status.down([[g,n]]),r.meta.error.down([[g,null]]),t.subscribe(u=>{for(let d of u){let c=d[0];if(c===T)i.down([[T]]);else if(c===g)s==="errored"?Ae(()=>{r.meta.error.down([[g,null]]),r.meta.status.down([[g,"running"]])}):r.meta.status.down([[g,"running"]]),s="running",i.emit(d[1]);else if(c===w)i.down([[w]]);else if(c===y)r.meta.status.down([[g,"completed"]]),s="completed",i.down([[y]]);else if(c===h){let l=Ve(d);Ae(()=>{r.meta.error.down([[g,l]]),r.meta.status.down([[g,"errored"]])}),s="errored",i.down([d])}else i.down([d])}})},{...U(),meta:{status:n,error:null,...L("withStatus",{initialStatus:n})},completeWhenDepsComplete:!1,resubscribable:!0,initial:t.cache});return{node:r,status:r.meta.status,error:r.meta.error}}function wn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function Tn(t){return t!=null&&typeof t.then=="function"}function vn(t){return t!=null&&typeof t=="object"&&typeof t[Symbol.asyncIterator]=="function"}function xn(t,e){return x(n=>{let r,o;function i(){o?.(),o=void 0,wn(e)||Tn(e)||vn(e)?r=ye(e).subscribe(a=>{n.down(a);for(let u of a){let d=u[0];if(d===y||d===h||d===R){r=void 0;return}}}):(n.emit(e),n.down([[y]]))}return o=t.subscribe(s=>{for(let a of s){let u=a[0];if(u===T)n.down([[T]]);else if(u===g)n.emit(a[1]);else if(u===w)n.down([[w]]);else if(u===y)n.down([[y]]);else if(u===h){i();return}else if(u===R){r?.(),n.down([a]);return}else n.down([a])}}),()=>{o?.(),r?.()}},{...U(),initial:t.cache,meta:{...L("fallback")}})}function Nn(t,e){if(e<=0)throw new RangeError("timeoutNs must be > 0");return x(n=>{let r=!1,o=new X;function i(){let a=e/1e6;o.start(a,()=>{r||(r=!0,s(),n.down([[h,new be(e)]]))})}let s=t.subscribe(a=>{for(let u of a){if(r)return;let d=u[0];if(d===T)n.down([[T]]);else if(d===g)i(),n.emit(u[1]);else if(d===w)n.down([[w]]);else if(d===y){o.cancel(),r=!0,n.down([[y]]);return}else if(d===h){o.cancel(),r=!0,n.down([u]);return}else if(d===R){o.cancel(),r=!0,n.down([u]);return}else n.down([u])}});return i(),()=>{r=!0,o.cancel(),s()}},{...U(),initial:t.cache,meta:{...L("timeout",{timeoutNs:e})}})}var me,ge,be,Ot=v(()=>{"use strict";gt();Re();ue();$();bt();re();Le();Ge();Mt();Nt();kt();me=class extends Error{name="CircuitOpenError";constructor(){super("Circuit breaker is open")}};ge=class extends Error{name="RateLimiterOverflowError";constructor(e){super(`rateLimiter buffer overflow (maxBuffer=${e})`)}};be=class extends Error{name="TimeoutError";constructor(e){super(`Timed out after ${e/1e6}ms`)}}});var Ct={};ve(Ct,{CircuitOpenError:()=>me,RateLimiterOverflowError:()=>ge,TimeoutError:()=>be,budgetGate:()=>mt,circuitBreaker:()=>hn,fallback:()=>xn,rateLimiter:()=>gn,retry:()=>ln,timeout:()=>Nn,tokenBucket:()=>Rt,withBreaker:()=>mn,withStatus:()=>_n});var Dt=v(()=>{"use strict";Ot()});function O(t){return{describeKind:"producer",...t}}function Ft(t){return/[\\^$+?.()|[\]{}]/.test(t)?`\\${t}`:t}function kn(t){let e="^";for(let n=0;n<t.length;n+=1){let r=t[n];if(r==="*"){t[n+1]==="*"?(e+=".*",n+=1):e+="[^/]*";continue}e+=Ft(r)}return e+="$",new RegExp(e)}function En(t,e){for(let n of e)if(n.test(t))return!0;return!1}function Sn(t,e){let n=M([t],(o,i)=>{let s=o[0];if(s==null||s.length===0){i.down([[w]]);return}for(let a of s)i.emit(a)},{describeKind:"derived",initial:t.cache}),r=n.subscribe.bind(n);return n.subscribe=(o,i)=>(e(o),r(o,i)),n}function An(t,e){let{signal:n,period:r,...o}=e??{};return x(i=>{let s=!1,a=0,u,d,c=()=>{s=!0,u!==void 0&&clearTimeout(u),d!==void 0&&clearInterval(d),n?.removeEventListener("abort",p)},l=()=>{s||(r!=null?(i.emit(a++),d=setInterval(()=>{s||i.emit(a++)},r)):(s=!0,n?.removeEventListener("abort",p),i.emit(a++),i.down([[y]])))},p=()=>{s||(c(),i.down([[h,n.reason]]))};if(n?.aborted){p();return}return u=setTimeout(l,t),n?.addEventListener("abort",p,{once:!0}),c},O(o))}function Rn(t){let{signal:e,...n}=t??{};return x(r=>{let o=!1,i,s,a=!1,u=!1,d=typeof requestAnimationFrame=="function"?requestAnimationFrame:void 0,c=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:void 0,l=typeof document<"u"?document:void 0,p=()=>{i!==void 0&&c&&c(i),s!==void 0&&clearTimeout(s),i=void 0,s=void 0},f=()=>{o=!0,p(),a&&(e?.removeEventListener("abort",b),a=!1),u&&l&&(l.removeEventListener("visibilitychange",N),u=!1)},b=()=>{o||(f(),r.down([[h,e.reason]]))},_=S=>{o||(r.emit(S),m())},m=()=>{o||(d&&(!l||l.visibilityState!=="hidden")?i=d(_):s=setTimeout(()=>_(performance.now()),16))},N=()=>{o||(p(),m())};return e?.aborted?(b(),f):(e?.addEventListener("abort",b,{once:!0}),a=e!==void 0,l&&d&&(l.addEventListener("visibilitychange",N),u=!0),m(),f)},O(n))}function On(t,e){let n=ct(t),{tickMs:r,output:o,...i}=e??{},s=r??6e4,a=o==="date";return x(u=>{let d=-1,c=()=>{let p=new Date,f=p.getFullYear()*1e8+(p.getMonth()+1)*1e6+p.getDate()*1e4+p.getHours()*100+p.getMinutes();f!==d&<(n,p)&&(d=f,u.emit(a?p:ae()))};c();let l=setInterval(c,s);return()=>clearInterval(l)},{...O(i),name:i.name??`cron:${t}`})}function Mn(t,e,n){let{capture:r,passive:o,once:i,...s}=n??{};return x(a=>{let u=c=>{a.emit(c)},d={capture:r,passive:o,once:i};return t.addEventListener(e,u,d),()=>t.removeEventListener(e,u,d)},O(s))}function Ue(t,e){return x(n=>{let r=!1;try{for(let o of t){if(r)return;n.emit(o)}r||n.down([[y]])}catch(o){r||n.down([[h,o]])}return()=>{r=!0}},O(e))}function Cn(t){return t!=null&&typeof t.then=="function"}function Lt(t,e){let{signal:n,...r}=e??{};return x(o=>{let i=!1,s=()=>{i||(i=!0,o.down([[h,n.reason]]))};if(n?.aborted){s();return}return n?.addEventListener("abort",s,{once:!0}),Promise.resolve(t).then(a=>{i||(i=!0,n?.removeEventListener("abort",s),o.emit(a),o.down([[y]]))},a=>{i||(i=!0,n?.removeEventListener("abort",s),o.down([[h,a]]))}),()=>{i=!0,n?.removeEventListener("abort",s)}},O(r))}function Bt(t,e){let{signal:n,...r}=e??{};return x(o=>{let i=new AbortController,s=()=>i.abort(n?.reason);n?.aborted?i.abort(n.reason):n?.addEventListener("abort",s,{once:!0});let a=n??i.signal,u=!1,d=t[Symbol.asyncIterator](),c=()=>{u||a.aborted||Promise.resolve(d.next()).then(l=>{if(!(u||a.aborted)){if(l.done){o.down([[y]]);return}o.emit(l.value),c()}},l=>{!u&&!a.aborted&&o.down([[h,l]])})};return c(),()=>{u=!0,n?.removeEventListener("abort",s),i.abort(),Promise.resolve(d.return?.()).catch(()=>{})}},O(r))}function Dn(t){return t!=null&&typeof t=="object"&&"cache"in t&&typeof t.subscribe=="function"}function ye(t,e){if(Dn(t))return t;if(Cn(t))return Lt(t,e);if(t!=null){let n=t;if(typeof n[Symbol.asyncIterator]=="function")return Bt(t,e);if(typeof n[Symbol.iterator]=="function")return Ue(t,e)}return Pt(t)}function Pt(...t){return Ue(t,void 0)}function In(t){return x(e=>{e.down([[y]])},O(t))}function Fn(t){return x(()=>{},O(t))}function Ln(t,e){return x(n=>{n.down([[h,t]])},O(e))}function Bn(t,e){let{signal:n,...r}=e??{},o=O(r),i=o.resubscribable===void 0?{...o,resubscribable:!0}:o;return x(s=>{let a,u=!1;try{let d=t();a=ye(d,e).subscribe(l=>{if(!u)for(let p of l){let f=p[0];if(f!==P)if(f===g)s.emit(p[1]);else if(f===y){u=!0,s.down([[y]]);break}else if(f===h){u=!0,s.down([[h,p[1]]]);break}else s.down([p])}})}catch(d){let c=d===void 0?new Error("defer: thunk threw undefined"):d;s.down([[h,c]])}return()=>{u=!0,a?.()}},i)}function Pn(t,e,n){return M([t],(o,i)=>{let s=o[0];if(s!=null&&s.length>0)for(let a of s)e(a)},{describeKind:"effect",...n}).subscribe(()=>{})}function Gn(t,e){return M([t],(n,r,o)=>{o.store.buf||(o.store.buf=[]);let i=o.store.buf,s=n[0];if(s!=null&&s.length>0)for(let a of s)i.push(a);if(o.terminalDeps[0]===!0){r.emit([...i]),r.down([[y]]);return}(s==null||s.length===0)&&r.down([[w]])},{describeKind:"derived",completeWhenDepsComplete:!1,...e})}function Vn(t,e){return x(n=>t.subscribe(r=>{n.down(r)}),{...O(e),initial:t.cache})}function We(t,e,n){if(e<1)throw new RangeError("replay expects bufferSize >= 1");let r=[],o=x(i=>t.subscribe(s=>{for(let a of s)a[0]===g&&(r.push(a[1]),r.length>e&&r.shift());i.down(s)}),{...O(n),initial:t.cache});return Sn(o,i=>{for(let s of r)i([[g,s]])})}function Hn(t,e){return We(t,1,e)}function zn(t){return new Promise((e,n)=>{let r=!1,o=!1,i;i=t.subscribe(s=>{for(let a of s){if(r)return;if(a[0]===g){r=!0,e(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===h){r=!0,n(a[1]),i?(i(),i=void 0):o=!0;return}if(a[0]===y){r=!0,n(new Error("completed without DATA")),i?(i(),i=void 0):o=!0;return}}}),o&&(i?.(),i=void 0)})}function ze(t,e,n){return new Promise((r,o)=>{let i=!1,s=!1,a,u=n?.skipCurrent===!0;a=t.subscribe(d=>{for(let c of d){if(i)return;if(!(u&&c[0]===g)){if(c[0]===g){let l=c[1];if(e(l)){i=!0,r(l),a?(a(),a=void 0):s=!0;return}}if(c[0]===h){i=!0,o(c[1]),a?(a(),a=void 0):s=!0;return}if(c[0]===y){i=!0,o(new Error("completed without matching value")),a?(a(),a=void 0):s=!0;return}}}}),u=!1,s&&(a?.(),a=void 0)})}async function Un(t,e){let n=e?.predicate??(i=>i!=null),r=e?.skipCurrent;if(e?.timeoutMs==null||e.timeoutMs<=0)return await ze(t,n,{skipCurrent:r});if(He===void 0){let[i,s]=await Promise.all([Promise.resolve().then(()=>(Dt(),Ct)),Promise.resolve().then(()=>(Ge(),xt))]);He=i.timeout,It=s.NS_PER_MS}let o=He(t,e.timeoutMs*It);return await ze(o,n,{skipCurrent:r})}function Wn(t,e){let n=new AbortController,r=e?.reason??new Error("cancelled via nodeSignal"),o,i=!1,s=()=>{o?(o(),o=void 0):i=!0};return o=t.subscribe(a=>{if(!n.signal.aborted)for(let u of a){if(u[0]===g&&u[1]===!0){n.abort(r),s();return}if(u[0]===h){n.abort(u[1]),s();return}if(u[0]===y){s();return}}}),i&&(o?.(),o=void 0),{signal:n.signal,dispose:()=>{o&&(o(),o=void 0)}}}function jn(t){return t.subscribe(()=>{})}function Kn(t){let e=dt(0);return{node:e,increment(){let n=e.cache??0;return n>=t?!1:(e.down([[T],[g,n+1]]),!0)},get(){return e.cache??0},atCap(){return(e.cache??0)>=t}}}var He,It,$n,Gt=v(()=>{"use strict";ue();$();re();Le();ft();$n=We});var qn={};ve(qn,{awaitSettled:()=>Un,cached:()=>Hn,defer:()=>Bn,empty:()=>In,escapeRegexChar:()=>Ft,firstValueFrom:()=>zn,firstWhere:()=>ze,forEach:()=>Pn,fromAny:()=>ye,fromAsyncIter:()=>Bt,fromCron:()=>On,fromEvent:()=>Mn,fromIter:()=>Ue,fromPromise:()=>Lt,fromRaf:()=>Rn,fromTimer:()=>An,globToRegExp:()=>kn,keepalive:()=>jn,matchesAnyPattern:()=>En,never:()=>Fn,nodeSignal:()=>Wn,of:()=>Pt,reactiveCounter:()=>Kn,replay:()=>We,share:()=>Vn,shareReplay:()=>$n,throwError:()=>Ln,toArray:()=>Gn});module.exports=jt(qn);var Mt=v(()=>{Gt()});Mt();0&&(module.exports={awaitSettled,cached,defer,empty,escapeRegexChar,firstValueFrom,firstWhere,forEach,fromAny,fromAsyncIter,fromCron,fromEvent,fromIter,fromPromise,fromRaf,fromTimer,globToRegExp,keepalive,matchesAnyPattern,never,nodeSignal,of,reactiveCounter,replay,share,shareReplay,throwError,toArray});
|
package/dist/extra/sources.d.cts
CHANGED
package/dist/extra/sources.d.ts
CHANGED
package/dist/extra/sources.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,B as z,C as A,D as B,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunk-
|
|
1
|
+
import{A as y,B as z,C as A,D as B,c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n,q as o,r as p,s as q,t as r,u as s,v as t,w as u,x as v,y as w,z as x}from"../chunk-IA7DUNGB.js";import"../chunk-LYCLF26R.js";import"../chunk-CK2E7BTU.js";import"../chunk-QYADASLV.js";export{x as awaitSettled,u as cached,p as defer,m as empty,a as escapeRegexChar,v as firstValueFrom,w as firstWhere,q as forEach,k as fromAny,j as fromAsyncIter,f as fromCron,g as fromEvent,h as fromIter,i as fromPromise,e as fromRaf,d as fromTimer,b as globToRegExp,A as keepalive,c as matchesAnyPattern,n as never,y as nodeSignal,l as of,B as reactiveCounter,t as replay,s as share,z as shareReplay,o as throwError,r as toArray};
|