@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.
- package/THIRD_PARTY_NOTICES.md +5 -4
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/types.d.ts +4 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents.js +3 -3
- package/dist/chunks/{chunk-JCV54SSP.js → chunk-27ORW5EK.js} +41 -22
- package/dist/chunks/chunk-27ORW5EK.js.map +7 -0
- package/dist/chunks/{chunk-EQIGYLVB.js → chunk-3RFEMOJA.js} +9 -3
- package/dist/chunks/chunk-3RFEMOJA.js.map +7 -0
- package/dist/chunks/{chunk-D5GNTBV6.js → chunk-7HQKBGTL.js} +2 -2
- package/dist/chunks/{chunk-LNLQ2LX3.js → chunk-ASU53MOT.js} +2 -2
- package/dist/chunks/{chunk-V3PIO7QL.js → chunk-BUQZBG6O.js} +3 -43
- package/dist/chunks/chunk-BUQZBG6O.js.map +7 -0
- package/dist/chunks/{chunk-6K5SRGW6.js → chunk-C2DIKAOE.js} +4 -4
- package/dist/chunks/{chunk-FJSHRHOR.js → chunk-CPSPZGK4.js} +6 -6
- package/dist/chunks/{chunk-UBPFGMDQ.js → chunk-CXQF35XB.js} +4 -4
- package/dist/chunks/{chunk-3SIXBW6A.js → chunk-H4YYLQTX.js} +2 -2
- package/dist/chunks/{chunk-CSJSHBAT.js → chunk-I5VN6D5T.js} +48 -21
- package/dist/chunks/chunk-I5VN6D5T.js.map +7 -0
- package/dist/chunks/{chunk-VRYEGVHR.js → chunk-J7ZQERKA.js} +11 -8
- package/dist/chunks/chunk-J7ZQERKA.js.map +7 -0
- package/dist/chunks/{chunk-D4B4CCTA.js → chunk-JHQDS6YP.js} +2 -2
- package/dist/chunks/{chunk-OINADFEF.js → chunk-JWWGWUP7.js} +5 -5
- package/dist/chunks/{chunk-WXSELMFV.js → chunk-KFPUVFDS.js} +5 -5
- package/dist/chunks/{chunk-EPAFGT2M.js → chunk-LH2PGXSZ.js} +5 -1
- package/dist/chunks/{chunk-EPAFGT2M.js.map → chunk-LH2PGXSZ.js.map} +2 -2
- package/dist/chunks/{chunk-X3IRR7CV.js → chunk-M25A5R3F.js} +2 -2
- package/dist/chunks/chunk-MNTJX4U7.js +760 -0
- package/dist/chunks/chunk-MNTJX4U7.js.map +7 -0
- package/dist/chunks/{chunk-754HA6KO.js → chunk-NRLDV5R3.js} +7 -2
- package/dist/chunks/chunk-NRLDV5R3.js.map +7 -0
- package/dist/chunks/chunk-O4A5UOXU.js +44 -0
- package/dist/chunks/chunk-O4A5UOXU.js.map +7 -0
- package/dist/chunks/{chunk-4F27LJTS.js → chunk-OEJ6RFDO.js} +255 -72
- package/dist/chunks/chunk-OEJ6RFDO.js.map +7 -0
- package/dist/chunks/{chunk-VQGO4P7C.js → chunk-QIW7QMFI.js} +2 -2
- package/dist/chunks/{chunk-B4HECUJI.js → chunk-RUEKYUNR.js} +2 -2
- package/dist/chunks/{chunk-A4XPJESK.js → chunk-RZHXYLOY.js} +2 -2
- package/dist/chunks/{chunk-QNMMQAZ7.js → chunk-SDDBEBM4.js} +3 -3
- package/dist/chunks/{chunk-2LBC6TTP.js → chunk-UGMLWBVF.js} +390 -228
- package/dist/chunks/chunk-UGMLWBVF.js.map +7 -0
- package/dist/chunks/{chunk-5WUW727L.js → chunk-VGQ2IE7P.js} +19 -3
- package/dist/chunks/chunk-VGQ2IE7P.js.map +7 -0
- package/dist/chunks/{chunk-KBHITFTO.js → chunk-VRAGOMN4.js} +3 -1
- package/dist/chunks/chunk-VRAGOMN4.js.map +7 -0
- package/dist/chunks/{chunk-F676L43O.js → chunk-WK25T5ST.js} +11 -11
- package/dist/chunks/{chunk-IPHEM6RY.js → chunk-WQB6CVES.js} +2 -2
- package/dist/chunks/{chunk-CZSX6UG6.js → chunk-XYFOKDFM.js} +2 -2
- package/dist/chunks/{chunk-G2F2RDZI.js → chunk-YAPDV6LO.js} +2 -2
- package/dist/chunks/{chunk-Q5BMTL6A.js → chunk-YIEK7FH2.js} +4 -4
- package/dist/chunks/{chunk-KS44WKJJ.js → chunk-Z45SUO4B.js} +2 -2
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/hook.js +6 -6
- package/dist/components/builtin-guidance.d.ts +4 -0
- package/dist/components/builtin-guidance.d.ts.map +1 -0
- package/dist/components/configuration.js +2 -2
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.js +7 -7
- package/dist/core/file-lock.d.ts +4 -0
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/provider-operations.js +162 -51
- package/dist/core/provider-operations.js.map +2 -2
- package/dist/core/shell-timing.d.ts +11 -0
- package/dist/core/shell-timing.d.ts.map +1 -0
- package/dist/entropy/index.js +12 -10
- package/dist/entropy/pool-store.d.ts +3 -1
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +138 -55
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +125 -58
- package/dist/index.js.map +3 -3
- package/dist/jev/observation.js +5 -5
- package/dist/jev.js +8 -8
- package/dist/lifecycle/broker.d.ts.map +1 -1
- package/dist/memory/digest.js +2 -2
- package/dist/memory/discovery.js +6 -6
- package/dist/memory/file-worker.js +9 -9
- package/dist/memory/normalize.js +5 -5
- package/dist/memory/search.js +7 -7
- package/dist/memory/worker-provider.js +10 -10
- package/dist/memory.js +10 -10
- package/dist/prewalk/messages.d.ts +1 -1
- package/dist/prewalk/messages.d.ts.map +1 -1
- package/dist/protocol.d.ts +12 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +3 -1
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-message-router.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.js +8 -8
- package/dist/providers/memory-provider.js +9 -9
- package/dist/providers/prewalk-provider.d.ts +3 -3
- package/dist/providers/prewalk-provider.d.ts.map +1 -1
- package/dist/residency/host.js +9 -9
- package/dist/residency/pi-entry.js +9 -9
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/guest-types.d.ts +1 -1
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/monty-runtime.js +1 -1
- package/dist/runtime/typescript-kernel.js +2 -2
- package/dist/ui/conversation.d.ts +2 -1
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +41 -37
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/dashboard.js +10 -8
- package/dist/ui/dashboard.js.map +1 -1
- package/dist/ui/fabric-model-selector.d.ts +3 -0
- package/dist/ui/fabric-model-selector.d.ts.map +1 -1
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +15 -2
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shell-tasks.d.ts +2 -1
- package/dist/ui/shell-tasks.d.ts.map +1 -1
- package/dist/ui/shell-tasks.js +169 -81
- package/dist/ui/shell-tasks.js.map +3 -3
- package/dist/ui/snapshot.d.ts.map +1 -1
- package/dist/ui/structured.d.ts.map +1 -1
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/verified/generated/authority-kernel.js +188 -81
- package/dist/verified/generated/kernel.js +547 -265
- package/dist/verified/generated/lifecycle-kernel.d.ts +1 -1
- package/dist/verified/generated/lifecycle-kernel.js +172 -125
- package/dist/verified/generated/manifest.json +11 -11
- package/dist/verified/generated/provider-kernel.js +160 -52
- package/dist/verified/generated/storage-kernel.js +238 -69
- package/dist/worker/model-control.d.ts +1 -1
- package/dist/worker/model-control.d.ts.map +1 -1
- package/dist/worker/model-control.js +6 -3
- package/dist/worker/model-control.js.map +2 -2
- package/dist/worker/options.d.ts.map +1 -1
- package/dist/worker/options.js +15 -0
- package/dist/worker/options.js.map +2 -2
- package/dist/worker.js +3 -2
- package/dist/worker.js.map +2 -2
- package/docs/agents.md +1 -1
- package/docs/background-tasks.md +33 -0
- package/docs/configuration.md +4 -2
- package/docs/entropy.md +13 -0
- package/docs/harnesses.md +1 -1
- package/docs/interface.md +2 -0
- package/docs/jev.md +1 -1
- package/docs/prompt-cache.md +3 -3
- package/docs/provider-capabilities.md +1 -1
- package/docs/verified-kernels.md +10 -6
- package/package.json +1 -1
- package/proofs/lifecycle-spec.bend +4 -4
- package/proofs/lifecycle-types.d.ts +1 -1
- package/proofs/lifecycle.bend +6 -6
- package/scripts/test-verified-kernels.mjs +3 -3
- package/scripts/verified-kernels.mjs +53 -13
- package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
- package/dist/chunks/chunk-2LBC6TTP.js.map +0 -7
- package/dist/chunks/chunk-4E63LJDD.js +0 -468
- package/dist/chunks/chunk-4E63LJDD.js.map +0 -7
- package/dist/chunks/chunk-4F27LJTS.js.map +0 -7
- package/dist/chunks/chunk-5WUW727L.js.map +0 -7
- package/dist/chunks/chunk-754HA6KO.js.map +0 -7
- package/dist/chunks/chunk-CSJSHBAT.js.map +0 -7
- package/dist/chunks/chunk-EQIGYLVB.js.map +0 -7
- package/dist/chunks/chunk-JCV54SSP.js.map +0 -7
- package/dist/chunks/chunk-KBHITFTO.js.map +0 -7
- package/dist/chunks/chunk-V3PIO7QL.js.map +0 -7
- package/dist/chunks/chunk-VRYEGVHR.js.map +0 -7
- /package/dist/chunks/{chunk-D5GNTBV6.js.map → chunk-7HQKBGTL.js.map} +0 -0
- /package/dist/chunks/{chunk-LNLQ2LX3.js.map → chunk-ASU53MOT.js.map} +0 -0
- /package/dist/chunks/{chunk-6K5SRGW6.js.map → chunk-C2DIKAOE.js.map} +0 -0
- /package/dist/chunks/{chunk-FJSHRHOR.js.map → chunk-CPSPZGK4.js.map} +0 -0
- /package/dist/chunks/{chunk-UBPFGMDQ.js.map → chunk-CXQF35XB.js.map} +0 -0
- /package/dist/chunks/{chunk-3SIXBW6A.js.map → chunk-H4YYLQTX.js.map} +0 -0
- /package/dist/chunks/{chunk-D4B4CCTA.js.map → chunk-JHQDS6YP.js.map} +0 -0
- /package/dist/chunks/{chunk-OINADFEF.js.map → chunk-JWWGWUP7.js.map} +0 -0
- /package/dist/chunks/{chunk-WXSELMFV.js.map → chunk-KFPUVFDS.js.map} +0 -0
- /package/dist/chunks/{chunk-X3IRR7CV.js.map → chunk-M25A5R3F.js.map} +0 -0
- /package/dist/chunks/{chunk-VQGO4P7C.js.map → chunk-QIW7QMFI.js.map} +0 -0
- /package/dist/chunks/{chunk-B4HECUJI.js.map → chunk-RUEKYUNR.js.map} +0 -0
- /package/dist/chunks/{chunk-A4XPJESK.js.map → chunk-RZHXYLOY.js.map} +0 -0
- /package/dist/chunks/{chunk-QNMMQAZ7.js.map → chunk-SDDBEBM4.js.map} +0 -0
- /package/dist/chunks/{chunk-F676L43O.js.map → chunk-WK25T5ST.js.map} +0 -0
- /package/dist/chunks/{chunk-IPHEM6RY.js.map → chunk-WQB6CVES.js.map} +0 -0
- /package/dist/chunks/{chunk-CZSX6UG6.js.map → chunk-XYFOKDFM.js.map} +0 -0
- /package/dist/chunks/{chunk-G2F2RDZI.js.map → chunk-YAPDV6LO.js.map} +0 -0
- /package/dist/chunks/{chunk-Q5BMTL6A.js.map → chunk-YIEK7FH2.js.map} +0 -0
- /package/dist/chunks/{chunk-KS44WKJJ.js.map → chunk-Z45SUO4B.js.map} +0 -0
|
@@ -1,351 +1,633 @@
|
|
|
1
|
-
// Generated by Bend 2.0.
|
|
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
|
-
//
|
|
4
|
-
function
|
|
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
|
|
8
|
-
if (e >
|
|
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
|
|
13
|
-
return
|
|
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
|
|
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
|
|
21
|
-
return (...n) => n.length < t ?
|
|
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
|
|
27
|
-
|
|
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
|
|
30
|
-
return
|
|
42
|
+
function B(e) {
|
|
43
|
+
return e.$ !== "Nil";
|
|
31
44
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
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
|
|
36
|
-
return
|
|
62
|
+
function j(e) {
|
|
63
|
+
return d(B(e), w(y(e, { $: "Con", head: 42, tail: { $: "Nil" } }, !0)));
|
|
37
64
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
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
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
46
|
-
|
|
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
|
|
49
|
-
|
|
50
|
-
|
|
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
|
|
53
|
-
|
|
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
|
|
56
|
-
|
|
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
|
|
59
|
-
return e
|
|
133
|
+
function Q(e) {
|
|
134
|
+
return e.$ !== "Nil";
|
|
60
135
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
136
|
+
function U(e, t) {
|
|
137
|
+
return e ? { $: "resources.Exact", names: t } : { $: "resources.Unknown" };
|
|
63
138
|
}
|
|
64
139
|
function O(e) {
|
|
65
|
-
return
|
|
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
|
|
77
|
-
return
|
|
142
|
+
function D(e) {
|
|
143
|
+
return d(Q(e), d(M(e, 64), R(e, !0)));
|
|
78
144
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
145
|
+
function H(e, t, n) {
|
|
146
|
+
return e ? d(E(t, n, !0), E(n, t, !0)) : !1;
|
|
81
147
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
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
|
|
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
|
|
156
|
+
return U(K(n, t), t);
|
|
101
157
|
}
|
|
102
158
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
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
|
|
107
|
-
if (e.$ === "
|
|
108
|
-
return
|
|
171
|
+
function Z(e, t) {
|
|
172
|
+
if (e.$ === "resources.Unknown")
|
|
173
|
+
return !0;
|
|
109
174
|
{
|
|
110
|
-
let
|
|
111
|
-
|
|
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
|
|
115
|
-
return
|
|
184
|
+
function A(e, t, n, r) {
|
|
185
|
+
return d(n || r, Z(e, t));
|
|
116
186
|
}
|
|
117
|
-
function
|
|
118
|
-
if (e.$ === "
|
|
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
|
|
129
|
-
|
|
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
|
|
132
|
-
|
|
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
|
|
135
|
-
return { $: "Con", head: n, tail: { $: "Con", head:
|
|
236
|
+
function ne(e, t, n) {
|
|
237
|
+
return { $: "Con", head: n, tail: { $: "Con", head: p(e, t), tail: { $: "Nil" } } };
|
|
136
238
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
239
|
+
function re(e, t, n) {
|
|
240
|
+
return m(ne(e, t, n));
|
|
139
241
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
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
|
|
144
|
-
|
|
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
|
|
152
|
-
|
|
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
|
|
156
|
-
|
|
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
|
|
160
|
-
return
|
|
255
|
+
function le(e, t, n, r) {
|
|
256
|
+
return m(se(e, t, n, r));
|
|
161
257
|
}
|
|
162
|
-
function
|
|
163
|
-
return
|
|
258
|
+
function ue(e, t) {
|
|
259
|
+
return e ? 2 : t ? 1 : 0;
|
|
164
260
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
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
|
|
265
|
+
function L(e, t) {
|
|
169
266
|
if (e.$ === "Nil")
|
|
170
|
-
return
|
|
267
|
+
return { $: "Nil" };
|
|
171
268
|
{
|
|
172
|
-
let
|
|
173
|
-
return
|
|
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
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
|
284
|
+
return e || t;
|
|
186
285
|
}
|
|
187
286
|
function de(e, t) {
|
|
188
|
-
|
|
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
|
|
201
|
-
|
|
202
|
-
|
|
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
|
|
209
|
-
return e
|
|
293
|
+
function me(e) {
|
|
294
|
+
return m(ge(e));
|
|
210
295
|
}
|
|
211
|
-
function
|
|
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
|
|
215
|
-
|
|
216
|
-
return h || N;
|
|
352
|
+
function Ue(e) {
|
|
353
|
+
return e.$ === "LT" ? !0 : e.$ === "EQ";
|
|
217
354
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
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
|
|
222
|
-
|
|
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
|
|
225
|
-
|
|
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
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
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
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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
|
|
312
|
-
|
|
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
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
|
|
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
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
};
|