@e4779/pi-fabric 0.97.0-fork.13 → 0.100.0-fork.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/THIRD_PARTY_NOTICES.md +5 -4
  2. package/dist/agents/manager.d.ts.map +1 -1
  3. package/dist/agents/request.d.ts.map +1 -1
  4. package/dist/agents/types.d.ts +4 -0
  5. package/dist/agents/types.d.ts.map +1 -1
  6. package/dist/agents.js +3 -3
  7. package/dist/chunks/{chunk-JCV54SSP.js → chunk-27ORW5EK.js} +41 -22
  8. package/dist/chunks/chunk-27ORW5EK.js.map +7 -0
  9. package/dist/chunks/{chunk-EQIGYLVB.js → chunk-3RFEMOJA.js} +9 -3
  10. package/dist/chunks/chunk-3RFEMOJA.js.map +7 -0
  11. package/dist/chunks/{chunk-D5GNTBV6.js → chunk-7HQKBGTL.js} +2 -2
  12. package/dist/chunks/{chunk-LNLQ2LX3.js → chunk-ASU53MOT.js} +2 -2
  13. package/dist/chunks/{chunk-V3PIO7QL.js → chunk-BUQZBG6O.js} +3 -43
  14. package/dist/chunks/chunk-BUQZBG6O.js.map +7 -0
  15. package/dist/chunks/{chunk-6K5SRGW6.js → chunk-C2DIKAOE.js} +4 -4
  16. package/dist/chunks/{chunk-FJSHRHOR.js → chunk-CPSPZGK4.js} +6 -6
  17. package/dist/chunks/{chunk-UBPFGMDQ.js → chunk-CXQF35XB.js} +4 -4
  18. package/dist/chunks/{chunk-3SIXBW6A.js → chunk-H4YYLQTX.js} +2 -2
  19. package/dist/chunks/{chunk-CSJSHBAT.js → chunk-I5VN6D5T.js} +48 -21
  20. package/dist/chunks/chunk-I5VN6D5T.js.map +7 -0
  21. package/dist/chunks/{chunk-VRYEGVHR.js → chunk-J7ZQERKA.js} +11 -8
  22. package/dist/chunks/chunk-J7ZQERKA.js.map +7 -0
  23. package/dist/chunks/{chunk-D4B4CCTA.js → chunk-JHQDS6YP.js} +2 -2
  24. package/dist/chunks/{chunk-OINADFEF.js → chunk-JWWGWUP7.js} +5 -5
  25. package/dist/chunks/{chunk-WXSELMFV.js → chunk-KFPUVFDS.js} +5 -5
  26. package/dist/chunks/{chunk-EPAFGT2M.js → chunk-LH2PGXSZ.js} +5 -1
  27. package/dist/chunks/{chunk-EPAFGT2M.js.map → chunk-LH2PGXSZ.js.map} +2 -2
  28. package/dist/chunks/{chunk-X3IRR7CV.js → chunk-M25A5R3F.js} +2 -2
  29. package/dist/chunks/chunk-MNTJX4U7.js +760 -0
  30. package/dist/chunks/chunk-MNTJX4U7.js.map +7 -0
  31. package/dist/chunks/{chunk-754HA6KO.js → chunk-NRLDV5R3.js} +7 -2
  32. package/dist/chunks/chunk-NRLDV5R3.js.map +7 -0
  33. package/dist/chunks/chunk-O4A5UOXU.js +44 -0
  34. package/dist/chunks/chunk-O4A5UOXU.js.map +7 -0
  35. package/dist/chunks/{chunk-4F27LJTS.js → chunk-OEJ6RFDO.js} +255 -72
  36. package/dist/chunks/chunk-OEJ6RFDO.js.map +7 -0
  37. package/dist/chunks/{chunk-VQGO4P7C.js → chunk-QIW7QMFI.js} +2 -2
  38. package/dist/chunks/{chunk-B4HECUJI.js → chunk-RUEKYUNR.js} +2 -2
  39. package/dist/chunks/{chunk-A4XPJESK.js → chunk-RZHXYLOY.js} +2 -2
  40. package/dist/chunks/{chunk-QNMMQAZ7.js → chunk-SDDBEBM4.js} +3 -3
  41. package/dist/chunks/{chunk-2LBC6TTP.js → chunk-UGMLWBVF.js} +390 -228
  42. package/dist/chunks/chunk-UGMLWBVF.js.map +7 -0
  43. package/dist/chunks/{chunk-5WUW727L.js → chunk-VGQ2IE7P.js} +19 -3
  44. package/dist/chunks/chunk-VGQ2IE7P.js.map +7 -0
  45. package/dist/chunks/{chunk-KBHITFTO.js → chunk-VRAGOMN4.js} +3 -1
  46. package/dist/chunks/chunk-VRAGOMN4.js.map +7 -0
  47. package/dist/chunks/{chunk-F676L43O.js → chunk-WK25T5ST.js} +11 -11
  48. package/dist/chunks/{chunk-IPHEM6RY.js → chunk-WQB6CVES.js} +2 -2
  49. package/dist/chunks/{chunk-CZSX6UG6.js → chunk-XYFOKDFM.js} +2 -2
  50. package/dist/chunks/{chunk-G2F2RDZI.js → chunk-YAPDV6LO.js} +2 -2
  51. package/dist/chunks/{chunk-Q5BMTL6A.js → chunk-YIEK7FH2.js} +4 -4
  52. package/dist/chunks/{chunk-KS44WKJJ.js → chunk-Z45SUO4B.js} +2 -2
  53. package/dist/commands/fabric.d.ts.map +1 -1
  54. package/dist/compaction/hook.js +6 -6
  55. package/dist/components/builtin-guidance.d.ts +4 -0
  56. package/dist/components/builtin-guidance.d.ts.map +1 -0
  57. package/dist/components/configuration.js +2 -2
  58. package/dist/config.d.ts +7 -0
  59. package/dist/config.d.ts.map +1 -1
  60. package/dist/core/action-registry.js +7 -7
  61. package/dist/core/file-lock.d.ts +4 -0
  62. package/dist/core/file-lock.d.ts.map +1 -1
  63. package/dist/core/provider-operations.js +162 -51
  64. package/dist/core/provider-operations.js.map +2 -2
  65. package/dist/core/shell-timing.d.ts +11 -0
  66. package/dist/core/shell-timing.d.ts.map +1 -0
  67. package/dist/entropy/index.js +12 -10
  68. package/dist/entropy/pool-store.d.ts +3 -1
  69. package/dist/entropy/pool-store.d.ts.map +1 -1
  70. package/dist/fabric-runtime-state.d.ts.map +1 -1
  71. package/dist/fabric-runtime-state.js +138 -55
  72. package/dist/fabric-runtime-state.js.map +4 -4
  73. package/dist/fabric-state.d.ts.map +1 -1
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +125 -58
  76. package/dist/index.js.map +3 -3
  77. package/dist/jev/observation.js +5 -5
  78. package/dist/jev.js +8 -8
  79. package/dist/lifecycle/broker.d.ts.map +1 -1
  80. package/dist/memory/digest.js +2 -2
  81. package/dist/memory/discovery.js +6 -6
  82. package/dist/memory/file-worker.js +9 -9
  83. package/dist/memory/normalize.js +5 -5
  84. package/dist/memory/search.js +7 -7
  85. package/dist/memory/worker-provider.js +10 -10
  86. package/dist/memory.js +10 -10
  87. package/dist/prewalk/messages.d.ts +1 -1
  88. package/dist/prewalk/messages.d.ts.map +1 -1
  89. package/dist/protocol.d.ts +12 -0
  90. package/dist/protocol.d.ts.map +1 -1
  91. package/dist/protocol.js +3 -1
  92. package/dist/providers/agents-actions.d.ts.map +1 -1
  93. package/dist/providers/agents-message-router.d.ts.map +1 -1
  94. package/dist/providers/agents-provider.d.ts.map +1 -1
  95. package/dist/providers/jev-provider.js +8 -8
  96. package/dist/providers/memory-provider.js +9 -9
  97. package/dist/providers/prewalk-provider.d.ts +3 -3
  98. package/dist/providers/prewalk-provider.d.ts.map +1 -1
  99. package/dist/residency/host.js +9 -9
  100. package/dist/residency/pi-entry.js +9 -9
  101. package/dist/runtime/core-override-guest-types.js +2 -2
  102. package/dist/runtime/guest-types.d.ts +1 -1
  103. package/dist/runtime/guest-types.d.ts.map +1 -1
  104. package/dist/runtime/guest-types.js +1 -1
  105. package/dist/runtime/monty-runtime.js +1 -1
  106. package/dist/runtime/typescript-kernel.js +2 -2
  107. package/dist/ui/conversation.d.ts +2 -1
  108. package/dist/ui/conversation.d.ts.map +1 -1
  109. package/dist/ui/conversation.js +41 -37
  110. package/dist/ui/conversation.js.map +2 -2
  111. package/dist/ui/dashboard.js +10 -8
  112. package/dist/ui/dashboard.js.map +1 -1
  113. package/dist/ui/fabric-model-selector.d.ts +3 -0
  114. package/dist/ui/fabric-model-selector.d.ts.map +1 -1
  115. package/dist/ui/settings.d.ts.map +1 -1
  116. package/dist/ui/settings.js +15 -2
  117. package/dist/ui/settings.js.map +2 -2
  118. package/dist/ui/shell-tasks.d.ts +2 -1
  119. package/dist/ui/shell-tasks.d.ts.map +1 -1
  120. package/dist/ui/shell-tasks.js +169 -81
  121. package/dist/ui/shell-tasks.js.map +3 -3
  122. package/dist/ui/snapshot.d.ts.map +1 -1
  123. package/dist/ui/structured.d.ts.map +1 -1
  124. package/dist/ui/widget.d.ts.map +1 -1
  125. package/dist/verified/generated/authority-kernel.js +188 -81
  126. package/dist/verified/generated/kernel.js +547 -265
  127. package/dist/verified/generated/lifecycle-kernel.d.ts +1 -1
  128. package/dist/verified/generated/lifecycle-kernel.js +172 -125
  129. package/dist/verified/generated/manifest.json +11 -11
  130. package/dist/verified/generated/provider-kernel.js +160 -52
  131. package/dist/verified/generated/storage-kernel.js +238 -69
  132. package/dist/worker/model-control.d.ts +1 -1
  133. package/dist/worker/model-control.d.ts.map +1 -1
  134. package/dist/worker/model-control.js +6 -3
  135. package/dist/worker/model-control.js.map +2 -2
  136. package/dist/worker/options.d.ts.map +1 -1
  137. package/dist/worker/options.js +15 -0
  138. package/dist/worker/options.js.map +2 -2
  139. package/dist/worker.js +3 -2
  140. package/dist/worker.js.map +2 -2
  141. package/docs/agents.md +1 -1
  142. package/docs/background-tasks.md +33 -0
  143. package/docs/configuration.md +4 -2
  144. package/docs/entropy.md +13 -0
  145. package/docs/harnesses.md +1 -1
  146. package/docs/interface.md +2 -0
  147. package/docs/jev.md +1 -1
  148. package/docs/prompt-cache.md +3 -3
  149. package/docs/provider-capabilities.md +1 -1
  150. package/docs/verified-kernels.md +10 -6
  151. package/package.json +1 -1
  152. package/proofs/lifecycle-spec.bend +4 -4
  153. package/proofs/lifecycle-types.d.ts +1 -1
  154. package/proofs/lifecycle.bend +6 -6
  155. package/scripts/test-verified-kernels.mjs +3 -3
  156. package/scripts/verified-kernels.mjs +53 -13
  157. package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
  158. package/dist/chunks/chunk-2LBC6TTP.js.map +0 -7
  159. package/dist/chunks/chunk-4E63LJDD.js +0 -468
  160. package/dist/chunks/chunk-4E63LJDD.js.map +0 -7
  161. package/dist/chunks/chunk-4F27LJTS.js.map +0 -7
  162. package/dist/chunks/chunk-5WUW727L.js.map +0 -7
  163. package/dist/chunks/chunk-754HA6KO.js.map +0 -7
  164. package/dist/chunks/chunk-CSJSHBAT.js.map +0 -7
  165. package/dist/chunks/chunk-EQIGYLVB.js.map +0 -7
  166. package/dist/chunks/chunk-JCV54SSP.js.map +0 -7
  167. package/dist/chunks/chunk-KBHITFTO.js.map +0 -7
  168. package/dist/chunks/chunk-V3PIO7QL.js.map +0 -7
  169. package/dist/chunks/chunk-VRYEGVHR.js.map +0 -7
  170. /package/dist/chunks/{chunk-D5GNTBV6.js.map → chunk-7HQKBGTL.js.map} +0 -0
  171. /package/dist/chunks/{chunk-LNLQ2LX3.js.map → chunk-ASU53MOT.js.map} +0 -0
  172. /package/dist/chunks/{chunk-6K5SRGW6.js.map → chunk-C2DIKAOE.js.map} +0 -0
  173. /package/dist/chunks/{chunk-FJSHRHOR.js.map → chunk-CPSPZGK4.js.map} +0 -0
  174. /package/dist/chunks/{chunk-UBPFGMDQ.js.map → chunk-CXQF35XB.js.map} +0 -0
  175. /package/dist/chunks/{chunk-3SIXBW6A.js.map → chunk-H4YYLQTX.js.map} +0 -0
  176. /package/dist/chunks/{chunk-D4B4CCTA.js.map → chunk-JHQDS6YP.js.map} +0 -0
  177. /package/dist/chunks/{chunk-OINADFEF.js.map → chunk-JWWGWUP7.js.map} +0 -0
  178. /package/dist/chunks/{chunk-WXSELMFV.js.map → chunk-KFPUVFDS.js.map} +0 -0
  179. /package/dist/chunks/{chunk-X3IRR7CV.js.map → chunk-M25A5R3F.js.map} +0 -0
  180. /package/dist/chunks/{chunk-VQGO4P7C.js.map → chunk-QIW7QMFI.js.map} +0 -0
  181. /package/dist/chunks/{chunk-B4HECUJI.js.map → chunk-RUEKYUNR.js.map} +0 -0
  182. /package/dist/chunks/{chunk-A4XPJESK.js.map → chunk-RZHXYLOY.js.map} +0 -0
  183. /package/dist/chunks/{chunk-QNMMQAZ7.js.map → chunk-SDDBEBM4.js.map} +0 -0
  184. /package/dist/chunks/{chunk-F676L43O.js.map → chunk-WK25T5ST.js.map} +0 -0
  185. /package/dist/chunks/{chunk-IPHEM6RY.js.map → chunk-WQB6CVES.js.map} +0 -0
  186. /package/dist/chunks/{chunk-CZSX6UG6.js.map → chunk-XYFOKDFM.js.map} +0 -0
  187. /package/dist/chunks/{chunk-G2F2RDZI.js.map → chunk-YAPDV6LO.js.map} +0 -0
  188. /package/dist/chunks/{chunk-Q5BMTL6A.js.map → chunk-YIEK7FH2.js.map} +0 -0
  189. /package/dist/chunks/{chunk-KS44WKJJ.js.map → chunk-Z45SUO4B.js.map} +0 -0
@@ -1,351 +1,633 @@
1
- // Generated by Bend 2.0.26; do not edit. See LAWS.bend and PROOF.bend.
1
+ // Generated by Bend 2.0.32; do not edit. See LAWS.bend and PROOF.bend.
2
2
  // Includes adapted Bend runtime/Base code, Copyright 2026 HigherOrderCO, Apache-2.0.
3
- // CLI removed and exports added by Pi Fabric; see THIRD_PARTY_NOTICES.md.
4
- function w(e, t) {
3
+ // ABI exports selected and tags adapted by Pi Fabric; see THIRD_PARTY_NOTICES.md.
4
+ function S(e, t) {
5
5
  return { $: e < t ? "LT" : e === t ? "EQ" : "GT" };
6
6
  }
7
- function B(e) {
8
- if (e > 281474976710655n)
7
+ function P(e) {
8
+ if (e > 281474976710655)
9
9
  throw "bend: a Nat past the largest immediate 2^48-1";
10
10
  return e;
11
11
  }
12
- function $(e, t) {
13
- return { $: "$JMP", f: e, x: t };
12
+ function c(e) {
13
+ return (typeof e == "bigint" || Number.isInteger(e)) && e >= 0 && e <= 2 ** 53 ? Number(e) : { [Symbol.toPrimitive]() {
14
+ throw "bend: a Nat past the largest immediate 2^48-1";
15
+ } };
14
16
  }
15
- function r(e) {
17
+ function h(e) {
16
18
  for (; e !== null && typeof e == "object" && e.$ === "$JMP"; )
17
19
  e = e.f(...e.x);
18
20
  return e;
19
21
  }
20
- function u(e, t) {
21
- return (...n) => n.length < t ? u((...i) => e(...n, ...i), t - n.length) : r(e(...n));
22
- }
23
- function G(e) {
24
- return $(re, [e]);
22
+ function $(e, t) {
23
+ return (...n) => n.length < t ? $((...r) => e(...n, ...r), t - n.length) : e(...n);
25
24
  }
26
- function L(e, t) {
27
- return $(ie, [e, t]);
25
+ function y(e, t, n) {
26
+ for (; ; ) {
27
+ let r = e, a = t, s = n;
28
+ if (r.$ === "Nil")
29
+ return a.$ === "Nil" ? s : !1;
30
+ {
31
+ let l = r.head, u = r.tail;
32
+ if (a.$ === "Nil")
33
+ return !1;
34
+ {
35
+ let g = a.head, k = a.tail;
36
+ e = u, t = k, n = d(s, _(l, g));
37
+ continue;
38
+ }
39
+ }
40
+ }
28
41
  }
29
- function j(e, t, n, i) {
30
- return $(k, [e, t, n, i]);
42
+ function B(e) {
43
+ return e.$ !== "Nil";
31
44
  }
32
- function F(e, t) {
33
- return $(v, [e, t, !1]);
45
+ function V(e, t) {
46
+ for (; ; ) {
47
+ let n = e, r = t;
48
+ if (n.$ === "Nil")
49
+ return !0;
50
+ {
51
+ let a = n.tail;
52
+ if (r === 0)
53
+ return !1;
54
+ {
55
+ let s = r - 1;
56
+ e = a, t = s;
57
+ continue;
58
+ }
59
+ }
60
+ }
34
61
  }
35
- function J(e, t, n) {
36
- return $(a, [e, t || n]);
62
+ function j(e) {
63
+ return d(B(e), w(y(e, { $: "Con", head: 42, tail: { $: "Nil" } }, !0)));
37
64
  }
38
- function M(e, t, n, i) {
39
- return $(c, [{ $: "Con", head: r(s(e, t)), tail: { $: "Con", head: r(s(n, i)), tail: { $: "Nil" } } }]);
65
+ function F(e) {
66
+ return d(B(e), d(V(e, 256), w(y(e, { $: "Con", head: 42, tail: { $: "Nil" } }, !0))));
40
67
  }
41
- function R(e, t, n, i) {
42
- let o = t;
43
- return $(c, [{ $: "Con", head: r(C(e, B(o + n))), tail: { $: "Con", head: r(s(o, i)), tail: { $: "Nil" } } }]);
68
+ function I(e, t, n) {
69
+ for (; ; ) {
70
+ let r = e, a = t, s = n;
71
+ if (r.$ === "Nil")
72
+ return s;
73
+ {
74
+ let l = r.head, u = r.tail, g = y(a, l, !0);
75
+ e = u, t = a, n = s || g;
76
+ continue;
77
+ }
78
+ }
44
79
  }
45
- function x(e, t, n) {
46
- return $(c, [r($e(e, t, n))]);
80
+ function E(e, t, n) {
81
+ for (; ; ) {
82
+ let r = e, a = t, s = n;
83
+ if (r.$ === "Nil")
84
+ return s;
85
+ {
86
+ let l = r.head;
87
+ e = r.tail, t = a, n = d(s, I(a, l, !1));
88
+ continue;
89
+ }
90
+ }
47
91
  }
48
- function D(e, t, n, i, o, l) {
49
- let d = r(a(e, t || l)), h = r(a(i, o || n));
50
- return d || h;
92
+ function M(e, t) {
93
+ for (; ; ) {
94
+ let n = e, r = t;
95
+ if (n.$ === "Nil")
96
+ return !0;
97
+ {
98
+ let a = n.tail;
99
+ if (r === 0)
100
+ return !1;
101
+ {
102
+ let s = r - 1;
103
+ e = a, t = s;
104
+ continue;
105
+ }
106
+ }
107
+ }
51
108
  }
52
- function H(e, t, n, i) {
53
- return $(c, [r(oe(e, t, n, i))]);
109
+ function R(e, t) {
110
+ for (; ; ) {
111
+ let n = e, r = t;
112
+ if (n.$ === "Nil")
113
+ return r;
114
+ {
115
+ let a = n.head;
116
+ e = n.tail, t = d(r, F(a));
117
+ continue;
118
+ }
119
+ }
54
120
  }
55
- function I(e, t, n, i) {
56
- return $(c, [r(ue(e, t, n, i))]);
121
+ function J(e, t) {
122
+ for (; ; ) {
123
+ let n = e, r = t;
124
+ if (n.$ === "Nil")
125
+ return r;
126
+ {
127
+ let a = n.head;
128
+ e = n.tail, t = d(r, j(a));
129
+ continue;
130
+ }
131
+ }
57
132
  }
58
- function K(e, t) {
59
- return e ? 2 : t ? 1 : 0;
133
+ function Q(e) {
134
+ return e.$ !== "Nil";
60
135
  }
61
- function S(e, t) {
62
- return $(c, [r(T(e, t))]);
136
+ function U(e, t) {
137
+ return e ? { $: "resources.Exact", names: t } : { $: "resources.Unknown" };
63
138
  }
64
139
  function O(e) {
65
- return $(c, [r(le(e))]);
66
- }
67
- function X(e, t) {
68
- return e || t;
69
- }
70
- function Y(e, t) {
71
- return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Nil" } } }]);
72
- }
73
- function Z(e) {
74
- return $(c, [r(ae(e))]);
140
+ return U(d(Q(e), J(e, !0)), e);
75
141
  }
76
- function y(e, t) {
77
- return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: r(f(t)), tail: { $: "Nil" } } }]);
142
+ function D(e) {
143
+ return d(Q(e), d(M(e, 64), R(e, !0)));
78
144
  }
79
- function _(e, t, n, i) {
80
- return $(c, [r(ce(e, t, n, i))]);
145
+ function H(e, t, n) {
146
+ return e ? d(E(t, n, !0), E(n, t, !0)) : !1;
81
147
  }
82
- function ee(e, t, n, i, o) {
83
- let l = r(a(i, o));
84
- return $(c, [{ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Con", head: n || l, tail: { $: "Nil" } } } }]);
85
- }
86
- function te(e) {
87
- return $(c, [e]);
88
- }
89
- function ne(e) {
90
- return { $: "Tuple", fst: e, snd: !1 };
91
- }
92
- function re(e) {
93
- return $(z, [r(a(r(A(e)), r(Q(e, !0)))), e]);
148
+ function K(e, t) {
149
+ return H(D(t), e, t);
94
150
  }
95
- function ie(e, t) {
96
- if (e.$ === "Unknown")
97
- return { $: "Unknown" };
151
+ function X(e, t) {
152
+ if (e.$ === "resources.Unknown")
153
+ return { $: "resources.Unknown" };
98
154
  {
99
155
  let n = e.names;
100
- return $(z, [r(fe(n, t)), t]);
156
+ return U(K(n, t), t);
101
157
  }
102
158
  }
103
- function k(e, t, n, i) {
104
- return $(a, [n || i, r(de(e, t))]);
159
+ function Y(e, t, n) {
160
+ for (; ; ) {
161
+ let r = e, a = t, s = n;
162
+ if (r.$ === "Nil")
163
+ return s;
164
+ {
165
+ let l = r.head, u = r.tail, g = I(a, l, !1);
166
+ e = u, t = a, n = s || g;
167
+ continue;
168
+ }
169
+ }
105
170
  }
106
- function v(e, t, n) {
107
- if (e.$ === "Nil")
108
- return n;
171
+ function Z(e, t) {
172
+ if (e.$ === "resources.Unknown")
173
+ return !0;
109
174
  {
110
- let i = e.head, o = e.tail, l = r(g(t, i, !1));
111
- return $(v, [o, t, n || l]);
175
+ let n = e.names;
176
+ if (t.$ === "resources.Unknown")
177
+ return !0;
178
+ {
179
+ let r = t.names;
180
+ return Y(n, r, !1);
181
+ }
112
182
  }
113
183
  }
114
- function a(e, t) {
115
- return e ? t : !1;
184
+ function A(e, t, n, r) {
185
+ return d(n || r, Z(e, t));
116
186
  }
117
- function c(e) {
118
- if (e.$ === "Nil")
119
- return !0;
120
- if (e.head) {
121
- let t = e.tail;
122
- return $(c, [t]);
123
- } else {
124
- let t = e.tail;
187
+ function v(e, t) {
188
+ if (e.$ === "resources.Quiet")
125
189
  return !1;
190
+ {
191
+ let n = e.ordered, r = e.scope;
192
+ if (t.$ === "resources.Quiet")
193
+ return !1;
194
+ {
195
+ let a = t.ordered, s = t.scope;
196
+ return A(r, s, n, a);
197
+ }
198
+ }
199
+ }
200
+ function ee(e, t, n) {
201
+ for (; ; ) {
202
+ let r = e, a = t, s = n;
203
+ if (r.$ === "Nil")
204
+ return s;
205
+ {
206
+ let l = r.head, u = r.tail, g = v(a, l);
207
+ e = u, t = a, n = s || g;
208
+ continue;
209
+ }
126
210
  }
127
211
  }
128
- function s(e, t) {
129
- return $(se, [w(e, t)]);
212
+ function te(e, t, n) {
213
+ for (; ; ) {
214
+ let r = e, a = t, s = n;
215
+ if (r.$ === "Nil")
216
+ return s;
217
+ {
218
+ let l = r.head, u = r.tail, g = ee(a, l, !1);
219
+ e = u, t = a, n = s || g;
220
+ continue;
221
+ }
222
+ }
130
223
  }
131
- function C(e, t) {
132
- return $(he, [w(e, t)]);
224
+ function m(e) {
225
+ for (; ; ) {
226
+ let t = e;
227
+ if (t.$ === "Nil")
228
+ return !0;
229
+ if (t.head) {
230
+ e = t.tail;
231
+ continue;
232
+ } else
233
+ return !1;
234
+ }
133
235
  }
134
- function $e(e, t, n) {
135
- return { $: "Con", head: n, tail: { $: "Con", head: r(s(e, t)), tail: { $: "Nil" } } };
236
+ function ne(e, t, n) {
237
+ return { $: "Con", head: n, tail: { $: "Con", head: p(e, t), tail: { $: "Nil" } } };
136
238
  }
137
- function oe(e, t, n, i) {
138
- return { $: "Con", head: r(f(e)), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: r(f(i)), tail: { $: "Nil" } } } } };
239
+ function re(e, t, n) {
240
+ return m(ne(e, t, n));
139
241
  }
140
- function ue(e, t, n, i) {
141
- return { $: "Con", head: e, tail: { $: "Con", head: r(f(t)), tail: { $: "Con", head: r(f(n)), tail: { $: "Con", head: r(f(i)), tail: { $: "Nil" } } } } };
242
+ function ie(e, t, n, r, a, s) {
243
+ let l = d(e, t || s), u = d(r, a || n);
244
+ return l || u;
142
245
  }
143
- function T(e, t) {
144
- if (e.$ === "Nil")
145
- return { $: "Nil" };
146
- {
147
- let n = e.head, i = e.tail;
148
- return { $: "Con", head: r(Ce(t, n)), tail: r(T(i, t)) };
149
- }
246
+ function oe(e, t, n, r) {
247
+ return { $: "Con", head: w(e), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: w(r), tail: { $: "Nil" } } } } };
150
248
  }
151
- function le(e) {
152
- let t = e.eligible, n = e.afterPrevious, i = e.retained, o = e.budget, l = e.boundary, d = e.spans;
153
- return { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: r(s(i, o)), tail: { $: "Con", head: r(S(d, l)), tail: { $: "Nil" } } } } };
249
+ function ae(e, t, n, r) {
250
+ return m(oe(e, t, n, r));
154
251
  }
155
- function ae(e) {
156
- let t = e.start, n = e.end, i = e.total, o = e.expectedStart, l = e.expectedTotal, d = e.length, h = e.complete, N = r(C(n, i)), q = t < n;
157
- return { $: "Con", head: r(C(t, o)), tail: { $: "Con", head: r(C(i, l)), tail: { $: "Con", head: r(s(t, n)), tail: { $: "Con", head: r(s(n, i)), tail: { $: "Con", head: r(C(d, n < t ? 0n : n - t)), tail: { $: "Con", head: r(f(h !== N)), tail: { $: "Con", head: h || q, tail: { $: "Nil" } } } } } } } };
252
+ function se(e, t, n, r) {
253
+ return { $: "Con", head: e, tail: { $: "Con", head: w(t), tail: { $: "Con", head: w(n), tail: { $: "Con", head: w(r), tail: { $: "Nil" } } } } };
158
254
  }
159
- function f(e) {
160
- return !e;
255
+ function le(e, t, n, r) {
256
+ return m(se(e, t, n, r));
161
257
  }
162
- function ce(e, t, n, i) {
163
- return { $: "Con", head: r(f(e)), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: i, tail: { $: "Nil" } } } } };
258
+ function ue(e, t) {
259
+ return e ? 2 : t ? 1 : 0;
164
260
  }
165
- function z(e, t) {
166
- return e ? { $: "Exact", names: t } : { $: "Unknown" };
261
+ function ce(e, t) {
262
+ let n = t.first, r = t.last, a = t.paired, s = w(a), l = p(e, n), u = s || l, g = r < e;
263
+ return u || g;
167
264
  }
168
- function A(e) {
265
+ function L(e, t) {
169
266
  if (e.$ === "Nil")
170
- return !1;
267
+ return { $: "Nil" };
171
268
  {
172
- let t = e.head, n = e.tail;
173
- return !0;
269
+ let n = e.head, r = e.tail;
270
+ return { $: "Con", head: ce(t, n), tail: L(r, t) };
174
271
  }
175
272
  }
176
- function Q(e, t) {
177
- if (e.$ === "Nil")
178
- return t;
179
- {
180
- let n = e.head, i = e.tail;
181
- return $(Q, [i, r(a(t, r(pe(n))))]);
182
- }
273
+ function T(e, t) {
274
+ return m(L(e, t));
275
+ }
276
+ function $e(e) {
277
+ let t = e.eligible, n = e.afterPrevious, r = e.retained, a = e.budget, s = e.boundary, l = e.spans;
278
+ return { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: p(r, a), tail: { $: "Con", head: T(l, s), tail: { $: "Nil" } } } } };
279
+ }
280
+ function he(e) {
281
+ return m($e(e));
183
282
  }
184
283
  function fe(e, t) {
185
- return $(Ne, [r(me(t)), e, t]);
284
+ return e || t;
186
285
  }
187
286
  function de(e, t) {
188
- if (e.$ === "Unknown")
189
- return !0;
190
- {
191
- let n = e.names;
192
- if (t.$ === "Unknown")
193
- return !0;
194
- {
195
- let i = t.names;
196
- return $(E, [n, i, !1]);
197
- }
198
- }
287
+ return m({ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Nil" } } });
199
288
  }
200
- function g(e, t, n) {
201
- if (e.$ === "Nil")
202
- return n;
203
- {
204
- let i = e.head, o = e.tail, l = r(be(t, i));
205
- return $(g, [o, t, n || l]);
206
- }
289
+ function ge(e) {
290
+ let t = e.start, n = e.end, r = e.total, a = e.expectedStart, s = e.expectedTotal, l = e.length, u = e.complete, g = _(n, r), k = t < n;
291
+ return { $: "Con", head: _(t, a), tail: { $: "Con", head: _(r, s), tail: { $: "Con", head: p(t, n), tail: { $: "Con", head: p(n, r), tail: { $: "Con", head: _(l, n < t ? 0 : n - t), tail: { $: "Con", head: w(u !== g), tail: { $: "Con", head: u || k, tail: { $: "Nil" } } } } } } } };
207
292
  }
208
- function se(e) {
209
- return e.$ === "LT" ? !0 : e.$ === "EQ";
293
+ function me(e) {
294
+ return m(ge(e));
210
295
  }
211
- function he(e) {
296
+ function we(e, t) {
297
+ return m({ $: "Con", head: e, tail: { $: "Con", head: w(t), tail: { $: "Nil" } } });
298
+ }
299
+ function pe(e, t, n, r) {
300
+ return { $: "Con", head: w(e), tail: { $: "Con", head: t, tail: { $: "Con", head: n, tail: { $: "Con", head: r, tail: { $: "Nil" } } } } };
301
+ }
302
+ function _e(e, t, n, r) {
303
+ return m(pe(e, t, n, r));
304
+ }
305
+ function Ce(e, t, n, r, a) {
306
+ let s = d(r, a);
307
+ return m({ $: "Con", head: e, tail: { $: "Con", head: t, tail: { $: "Con", head: n || s, tail: { $: "Nil" } } } });
308
+ }
309
+ function be(e) {
310
+ return m(e);
311
+ }
312
+ function ke(e) {
313
+ return { $: "Tuple", fst: e, snd: !1 };
314
+ }
315
+ function ye(e, t, n) {
316
+ return d(e, t || n);
317
+ }
318
+ function Ne(e, t, n, r) {
319
+ return m({ $: "Con", head: p(e, t), tail: { $: "Con", head: p(n, r), tail: { $: "Nil" } } });
320
+ }
321
+ function xe(e, t, n, r) {
322
+ let a = t;
323
+ return m({ $: "Con", head: _(e, P(a + n)), tail: { $: "Con", head: p(a, r), tail: { $: "Nil" } } });
324
+ }
325
+ function Se(e) {
326
+ return O(e);
327
+ }
328
+ function Be(e, t) {
329
+ return X(e, t);
330
+ }
331
+ function Ie(e, t, n, r) {
332
+ return A(e, t, n, r);
333
+ }
334
+ function Ee(e, t) {
335
+ return te(e, t, !1);
336
+ }
337
+ function d(e, t) {
338
+ return e ? t : !1;
339
+ }
340
+ function _(e, t) {
341
+ return Qe(S(e, t));
342
+ }
343
+ function w(e) {
344
+ return !e;
345
+ }
346
+ function p(e, t) {
347
+ return Ue(S(e, t));
348
+ }
349
+ function Qe(e) {
212
350
  return e.$ === "LT" ? !1 : e.$ === "EQ";
213
351
  }
214
- function Ce(e, t) {
215
- let n = t.first, i = t.last, o = t.paired, l = r(f(o)), d = r(s(e, n)), h = l || d, N = i < e;
216
- return h || N;
352
+ function Ue(e) {
353
+ return e.$ === "LT" ? !0 : e.$ === "EQ";
217
354
  }
218
- function pe(e) {
219
- return $(a, [r(U(e)), r(f(r(p(e, { $: "Con", head: 42n, tail: { $: "Nil" } }, !0))))]);
355
+ function Ae(e) {
356
+ let t = [e];
357
+ for (let n = t, r = 0; ; )
358
+ switch (e.$) {
359
+ case "Nil":
360
+ return n[r] = e, t[0];
361
+ case "Con":
362
+ n = n[r] = { ...e, head: c(e.head) }, r = "tail", e = e[r];
363
+ continue;
364
+ default:
365
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
366
+ }
220
367
  }
221
- function Ne(e, t, n) {
222
- return e ? $(a, [r(m(t, n, !0)), r(m(n, t, !0))]) : !1;
368
+ function Le(e) {
369
+ let t = [e];
370
+ for (let n = t, r = 0; ; )
371
+ switch (e.$) {
372
+ case "Nil":
373
+ return n[r] = e, t[0];
374
+ case "Con":
375
+ n = n[r] = { ...e, head: BigInt(e.head) }, r = "tail", e = e[r];
376
+ continue;
377
+ default:
378
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
379
+ }
223
380
  }
224
- function me(e) {
225
- return $(a, [r(A(e)), r(a(r(P(e, 64n)), r(V(e, !0))))]);
381
+ function N(e) {
382
+ let t = [e];
383
+ for (let n = t, r = 0; ; )
384
+ switch (e.$) {
385
+ case "Nil":
386
+ return n[r] = e, t[0];
387
+ case "Con":
388
+ n = n[r] = { ...e, head: Ae(e.head) }, r = "tail", e = e[r];
389
+ continue;
390
+ default:
391
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
392
+ }
226
393
  }
227
- function E(e, t, n) {
228
- if (e.$ === "Nil")
229
- return n;
230
- {
231
- let i = e.head, o = e.tail, l = r(b(t, i, !1));
232
- return $(E, [o, t, n || l]);
233
- }
394
+ function x(e) {
395
+ let t = [e];
396
+ for (let n = t, r = 0; ; )
397
+ switch (e.$) {
398
+ case "Nil":
399
+ return n[r] = e, t[0];
400
+ case "Con":
401
+ n = n[r] = { ...e, head: Le(e.head) }, r = "tail", e = e[r];
402
+ continue;
403
+ default:
404
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
405
+ }
234
406
  }
235
- function be(e, t) {
236
- if (e.$ === "Quiet")
237
- return !1;
238
- {
239
- let n = e.ordered, i = e.scope;
240
- if (t.$ === "Quiet")
241
- return !1;
242
- {
243
- let o = t.ordered, l = t.scope;
244
- return $(k, [i, l, n, o]);
407
+ function C(e) {
408
+ let t = [e];
409
+ for (let n = t, r = 0; ; )
410
+ switch (e.$) {
411
+ case "resources.Unknown":
412
+ return n[r] = e, t[0];
413
+ case "resources.Exact":
414
+ return n = n[r] = { ...e, names: x(e.names) }, t[0];
415
+ default:
416
+ throw "bend: resources.Scope has no tag " + e?.$ + " (its tags: resources.Unknown, resources.Exact); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
245
417
  }
246
- }
247
418
  }
248
- function U(e) {
249
- if (e.$ === "Nil")
250
- return !1;
251
- {
252
- let t = e.head, n = e.tail;
253
- return !0;
254
- }
419
+ function b(e) {
420
+ let t = [e];
421
+ for (let n = t, r = 0; ; )
422
+ switch (e.$) {
423
+ case "resources.Unknown":
424
+ return n[r] = e, t[0];
425
+ case "resources.Exact":
426
+ return n = n[r] = { ...e, names: N(e.names) }, t[0];
427
+ default:
428
+ throw "bend: resources.Scope has no tag " + e?.$ + " (its tags: resources.Unknown, resources.Exact); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
429
+ }
255
430
  }
256
- function p(e, t, n) {
257
- if (e.$ === "Nil") {
258
- if (t.$ === "Nil")
259
- return n;
260
- {
261
- let i = t.head, o = t.tail;
262
- return !1;
431
+ function Te(e) {
432
+ let t = [e];
433
+ for (let n = t, r = 0; ; )
434
+ switch (e.$) {
435
+ case "resources.Quiet":
436
+ return n[r] = e, t[0];
437
+ case "resources.Effect":
438
+ return n = n[r] = { ...e, scope: b(e.scope) }, t[0];
439
+ default:
440
+ throw "bend: resources.Effect has no tag " + e?.$ + " (its tags: resources.Quiet, resources.Effect); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
263
441
  }
264
- } else {
265
- let i = e.head, o = e.tail;
266
- if (t.$ === "Nil")
267
- return !1;
268
- {
269
- let l = t.head, d = t.tail;
270
- return $(p, [o, d, r(a(n, r(C(i, l))))]);
442
+ }
443
+ function ze(e) {
444
+ let t = [e];
445
+ for (let n = t, r = 0; ; )
446
+ switch (e.$) {
447
+ case "resources.Quiet":
448
+ return n[r] = e, t[0];
449
+ case "resources.Effect":
450
+ return n = n[r] = { ...e, scope: C(e.scope) }, t[0];
451
+ default:
452
+ throw "bend: resources.Effect has no tag " + e?.$ + " (its tags: resources.Quiet, resources.Effect); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
271
453
  }
272
- }
273
454
  }
274
- function m(e, t, n) {
275
- if (e.$ === "Nil")
276
- return n;
277
- {
278
- let i = e.head, o = e.tail;
279
- return $(m, [o, t, r(a(n, r(b(t, i, !1))))]);
280
- }
455
+ function z(e) {
456
+ let t = [e];
457
+ for (let n = t, r = 0; ; )
458
+ switch (e.$) {
459
+ case "Nil":
460
+ return n[r] = e, t[0];
461
+ case "Con":
462
+ n = n[r] = { ...e, head: Te(e.head) }, r = "tail", e = e[r];
463
+ continue;
464
+ default:
465
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
466
+ }
281
467
  }
282
- function P(e, t) {
283
- if (e.$ === "Nil")
284
- return !0;
285
- {
286
- let n = e.head, i = e.tail;
287
- if (t === 0n)
288
- return !1;
289
- {
290
- let o = t - 1n;
291
- return $(P, [i, o]);
468
+ function W(e) {
469
+ let t = [e];
470
+ for (let n = t, r = 0; ; )
471
+ switch (e.$) {
472
+ case "Nil":
473
+ return n[r] = e, t[0];
474
+ case "Con":
475
+ n = n[r] = { ...e, head: ze(e.head) }, r = "tail", e = e[r];
476
+ continue;
477
+ default:
478
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
292
479
  }
293
- }
294
480
  }
295
- function V(e, t) {
296
- if (e.$ === "Nil")
297
- return t;
298
- {
299
- let n = e.head, i = e.tail;
300
- return $(V, [i, r(a(t, r(we(n))))]);
301
- }
481
+ function We(e) {
482
+ let t = [e];
483
+ for (let n = t, r = 0; ; )
484
+ switch (e.$) {
485
+ case "Span":
486
+ return n = n[r] = { ...e, first: c(e.first), last: c(e.last) }, t[0];
487
+ default:
488
+ throw "bend: Span has no tag " + e?.$ + " (its tags: Span); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
489
+ }
302
490
  }
303
- function b(e, t, n) {
304
- if (e.$ === "Nil")
305
- return n;
306
- {
307
- let i = e.head, o = e.tail, l = r(p(t, i, !0));
308
- return $(b, [o, t, n || l]);
309
- }
491
+ function qe(e) {
492
+ let t = [e];
493
+ for (let n = t, r = 0; ; )
494
+ switch (e.$) {
495
+ case "Span":
496
+ return n = n[r] = { ...e, first: BigInt(e.first), last: BigInt(e.last) }, t[0];
497
+ default:
498
+ throw "bend: Span has no tag " + e?.$ + " (its tags: Span); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
499
+ }
310
500
  }
311
- function we(e) {
312
- return $(a, [r(U(e)), r(a(r(W(e, 256n)), r(f(r(p(e, { $: "Con", head: 42n, tail: { $: "Nil" } }, !0))))))]);
501
+ function q(e) {
502
+ let t = [e];
503
+ for (let n = t, r = 0; ; )
504
+ switch (e.$) {
505
+ case "Nil":
506
+ return n[r] = e, t[0];
507
+ case "Con":
508
+ n = n[r] = { ...e, head: We(e.head) }, r = "tail", e = e[r];
509
+ continue;
510
+ default:
511
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
512
+ }
313
513
  }
314
- function W(e, t) {
315
- if (e.$ === "Nil")
316
- return !0;
317
- {
318
- let n = e.head, i = e.tail;
319
- if (t === 0n)
320
- return !1;
321
- {
322
- let o = t - 1n;
323
- return $(W, [i, o]);
514
+ function G(e) {
515
+ let t = [e];
516
+ for (let n = t, r = 0; ; )
517
+ switch (e.$) {
518
+ case "Nil":
519
+ return n[r] = e, t[0];
520
+ case "Con":
521
+ n = n[r] = { ...e, head: qe(e.head) }, r = "tail", e = e[r];
522
+ continue;
523
+ default:
524
+ throw "bend: List has no tag " + e?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
525
+ }
526
+ }
527
+ function Ge(e) {
528
+ let t = [e];
529
+ for (let n = t, r = 0; ; )
530
+ switch (e.$) {
531
+ case "Cut":
532
+ return n = n[r] = { ...e, retained: c(e.retained), budget: c(e.budget), boundary: c(e.boundary), spans: q(e.spans) }, t[0];
533
+ default:
534
+ throw "bend: Cut has no tag " + e?.$ + " (its tags: Cut); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
535
+ }
536
+ }
537
+ function Pe(e) {
538
+ let t = [e];
539
+ for (let n = t, r = 0; ; )
540
+ switch (e.$) {
541
+ case "Cut":
542
+ return n = n[r] = { ...e, retained: BigInt(e.retained), budget: BigInt(e.budget), boundary: BigInt(e.boundary), spans: G(e.spans) }, t[0];
543
+ default:
544
+ throw "bend: Cut has no tag " + e?.$ + " (its tags: Cut); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
545
+ }
546
+ }
547
+ function Ve(e) {
548
+ let t = [e];
549
+ for (let n = t, r = 0; ; )
550
+ switch (e.$) {
551
+ case "Chunk":
552
+ return n = n[r] = { ...e, start: c(e.start), end: c(e.end), total: c(e.total), expectedStart: c(e.expectedStart), expectedTotal: c(e.expectedTotal), length: c(e.length) }, t[0];
553
+ default:
554
+ throw "bend: Chunk has no tag " + e?.$ + " (its tags: Chunk); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
324
555
  }
325
- }
326
556
  }
327
- var Se = /* @__PURE__ */ u(x, 3), ke = /* @__PURE__ */ u(D, 6), ve = /* @__PURE__ */ u(H, 4), Te = /* @__PURE__ */ u(I, 4), ze = /* @__PURE__ */ u(K, 2), Ae = /* @__PURE__ */ u(S, 2), Qe = /* @__PURE__ */ u(O, 1), ge = /* @__PURE__ */ u(Y, 2), Ee = /* @__PURE__ */ u(Z, 1), Ue = /* @__PURE__ */ u(y, 2), Pe = /* @__PURE__ */ u(_, 4), Ve = /* @__PURE__ */ u(ee, 5), We = /* @__PURE__ */ u(te, 1), qe = /* @__PURE__ */ u(ne, 1), Be = /* @__PURE__ */ u(X, 2), Ge = /* @__PURE__ */ u(J, 3), Le = /* @__PURE__ */ u(M, 4), je = /* @__PURE__ */ u(R, 4), Fe = /* @__PURE__ */ u(G, 1), Je = /* @__PURE__ */ u(L, 2), Me = /* @__PURE__ */ u(j, 4), Re = /* @__PURE__ */ u(F, 2);
557
+ function je(e) {
558
+ let t = [e];
559
+ for (let n = t, r = 0; ; )
560
+ switch (e.$) {
561
+ case "Chunk":
562
+ return n = n[r] = { ...e, start: BigInt(e.start), end: BigInt(e.end), total: BigInt(e.total), expectedStart: BigInt(e.expectedStart), expectedTotal: BigInt(e.expectedTotal), length: BigInt(e.length) }, t[0];
563
+ default:
564
+ throw "bend: Chunk has no tag " + e?.$ + " (its tags: Chunk); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
565
+ }
566
+ }
567
+ var o = /* @__PURE__ */ new Map([["Unknown", "resources.Unknown"], ["Exact", "resources.Exact"], ["Quiet", "resources.Quiet"], ["Effect", "resources.Effect"]]), f = /* @__PURE__ */ new Map([["resources.Unknown", "Unknown"], ["resources.Exact", "Exact"], ["resources.Quiet", "Quiet"], ["resources.Effect", "Effect"]]);
568
+ function i(e, t) {
569
+ let n = [e];
570
+ for (let r = [[n, 0]]; r.length > 0; ) {
571
+ let [a, s] = r.pop(), l = a[s];
572
+ if (l === null || typeof l != "object") continue;
573
+ let u = Array.isArray(l) ? [...l] : { ...l };
574
+ typeof u.$ == "string" && (u.$ = t.get(u.$) ?? u.$), a[s] = u;
575
+ for (let g of Object.keys(u)) r.push([u, g]);
576
+ }
577
+ return n[0];
578
+ }
579
+ var Fe = /* @__PURE__ */ $((e, t, n) => {
580
+ let r = h(re(c(e), c(t), n));
581
+ return BigInt(e), BigInt(t), r;
582
+ }, 3), Me = (e, t, n) => i(Fe(i(e, o), i(t, o), i(n, o)), f), Re = /* @__PURE__ */ $((e, t, n, r, a, s) => h(ie(e, t, n, r, a, s)), 6), Je = (e, t, n, r, a, s) => i(Re(i(e, o), i(t, o), i(n, o), i(r, o), i(a, o), i(s, o)), f), Oe = /* @__PURE__ */ $((e, t, n, r) => h(ae(e, t, n, r)), 4), De = (e, t, n, r) => i(Oe(i(e, o), i(t, o), i(n, o), i(r, o)), f), He = /* @__PURE__ */ $((e, t, n, r) => h(le(e, t, n, r)), 4), Ke = (e, t, n, r) => i(He(i(e, o), i(t, o), i(n, o), i(r, o)), f), Xe = /* @__PURE__ */ $((e, t) => h(ue(e, t)), 2), Ye = (e, t) => i(Xe(i(e, o), i(t, o)), f), Ze = /* @__PURE__ */ $((e, t) => {
583
+ let n = h(T(q(e), c(t)));
584
+ return G(e), BigInt(t), n;
585
+ }, 2), ve = (e, t) => i(Ze(i(e, o), i(t, o)), f), et = /* @__PURE__ */ $((e) => {
586
+ let t = h(he(Ge(e)));
587
+ return Pe(e), t;
588
+ }, 1), tt = (e) => i(et(i(e, o)), f), nt = /* @__PURE__ */ $((e, t) => h(de(e, t)), 2), rt = (e, t) => i(nt(i(e, o), i(t, o)), f), it = /* @__PURE__ */ $((e) => {
589
+ let t = h(me(Ve(e)));
590
+ return je(e), t;
591
+ }, 1), ot = (e) => i(it(i(e, o)), f), at = /* @__PURE__ */ $((e, t) => h(we(e, t)), 2), st = (e, t) => i(at(i(e, o), i(t, o)), f), lt = /* @__PURE__ */ $((e, t, n, r) => h(_e(e, t, n, r)), 4), ut = (e, t, n, r) => i(lt(i(e, o), i(t, o), i(n, o), i(r, o)), f), ct = /* @__PURE__ */ $((e, t, n, r, a) => h(Ce(e, t, n, r, a)), 5), $t = (e, t, n, r, a) => i(ct(i(e, o), i(t, o), i(n, o), i(r, o), i(a, o)), f), ht = /* @__PURE__ */ $((e) => h(be(e)), 1), ft = (e) => i(ht(i(e, o)), f), dt = /* @__PURE__ */ $((e) => h(ke(e)), 1), gt = (e) => i(dt(i(e, o)), f), mt = /* @__PURE__ */ $((e, t) => h(fe(e, t)), 2), wt = (e, t) => i(mt(i(e, o), i(t, o)), f), pt = /* @__PURE__ */ $((e, t, n) => h(ye(e, t, n)), 3), _t = (e, t, n) => i(pt(i(e, o), i(t, o), i(n, o)), f), Ct = /* @__PURE__ */ $((e, t, n, r) => {
592
+ let a = h(Ne(c(e), c(t), c(n), c(r)));
593
+ return BigInt(e), BigInt(t), BigInt(n), BigInt(r), a;
594
+ }, 4), bt = (e, t, n, r) => i(Ct(i(e, o), i(t, o), i(n, o), i(r, o)), f), kt = /* @__PURE__ */ $((e, t, n, r) => {
595
+ let a = h(xe(c(e), c(t), c(n), c(r)));
596
+ return BigInt(e), BigInt(t), BigInt(n), BigInt(r), a;
597
+ }, 4), yt = (e, t, n, r) => i(kt(i(e, o), i(t, o), i(n, o), i(r, o)), f), Nt = /* @__PURE__ */ $((e) => {
598
+ let t = C(h(Se(N(e))));
599
+ return x(e), t;
600
+ }, 1), xt = (e) => i(Nt(i(e, o)), f), St = /* @__PURE__ */ $((e, t) => {
601
+ let n = C(h(Be(b(e), N(t))));
602
+ return C(e), x(t), n;
603
+ }, 2), Bt = (e, t) => i(St(i(e, o), i(t, o)), f), It = /* @__PURE__ */ $((e, t, n, r) => {
604
+ let a = h(Ie(b(e), b(t), n, r));
605
+ return C(e), C(t), a;
606
+ }, 4), Et = (e, t, n, r) => i(It(i(e, o), i(t, o), i(n, o), i(r, o)), f), Qt = /* @__PURE__ */ $((e, t) => {
607
+ let n = h(Ee(z(e), z(t)));
608
+ return W(e), W(t), n;
609
+ }, 2), Ut = (e, t) => i(Qt(i(e, o), i(t, o)), f);
328
610
  export {
329
- Te as canClose,
330
- We as certificateAccepted,
331
- Ee as chunkAccepted,
332
- ze as cleanupState,
333
- qe as consume,
334
- Ue as coverageComplete,
335
- Qe as cutAccepted,
336
- Se as footprintFits,
337
- Ve as headReadable,
338
- Ge as knownConflict,
339
- Be as lineageSelected,
340
- ge as pointerCurrent,
341
- Me as resourceConflict,
342
- Re as resourceGroups,
343
- Je as resourceNormalize,
344
- Fe as resourceSource,
345
- je as sampleWithin,
346
- Ae as spansSafe,
347
- Le as summaryWithin,
348
- ve as transitionCurrent,
349
- ke as unknownConflict,
350
- Pe as useNormalized
611
+ Ke as canClose,
612
+ ft as certificateAccepted,
613
+ ot as chunkAccepted,
614
+ Ye as cleanupState,
615
+ gt as consume,
616
+ st as coverageComplete,
617
+ tt as cutAccepted,
618
+ Me as footprintFits,
619
+ $t as headReadable,
620
+ _t as knownConflict,
621
+ wt as lineageSelected,
622
+ rt as pointerCurrent,
623
+ Et as resourceConflict,
624
+ Ut as resourceGroups,
625
+ Bt as resourceNormalize,
626
+ xt as resourceSource,
627
+ yt as sampleWithin,
628
+ ve as spansSafe,
629
+ bt as summaryWithin,
630
+ De as transitionCurrent,
631
+ Je as unknownConflict,
632
+ ut as useNormalized
351
633
  };