@effect-app/vue-components 4.0.0-beta.22 → 4.0.0-beta.221
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/README.md +13 -9
- package/dist/reset.css +39 -38
- package/dist/types/components/CommandButton.vue.d.ts +6 -4
- package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +2 -2
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +2 -1
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +2 -2
- package/dist/types/components/OmegaForm/errors.d.ts +33 -0
- package/dist/types/components/OmegaForm/getOmegaStore.d.ts +1 -1
- package/dist/types/components/OmegaForm/hocs.d.ts +3 -0
- package/dist/types/components/OmegaForm/index.d.ts +13 -3
- package/dist/types/components/OmegaForm/inputs.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/checks.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/createMeta.d.ts +33 -0
- package/dist/types/components/OmegaForm/meta/defaults.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/redacted.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/types.d.ts +56 -0
- package/dist/types/components/OmegaForm/meta/walker.d.ts +18 -0
- package/dist/types/components/OmegaForm/persistency.d.ts +58 -0
- package/dist/types/components/OmegaForm/submit.d.ts +60 -0
- package/dist/types/components/OmegaForm/types.d.ts +283 -0
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +7 -213
- package/dist/types/components/OmegaForm/validation/localized.d.ts +10 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/utils/index.d.ts +8 -8
- package/dist/vue-components.es.js +29 -44
- package/dist/vue-components10.es.js +5 -0
- package/dist/vue-components100.es.js +269 -0
- package/dist/vue-components102.es.js +8 -0
- package/dist/vue-components103.es.js +73 -0
- package/dist/vue-components104.es.js +5 -0
- package/dist/vue-components105.es.js +52 -0
- package/dist/vue-components106.es.js +5 -0
- package/dist/vue-components107.es.js +24 -0
- package/dist/vue-components108.es.js +5 -0
- package/dist/vue-components109.es.js +59 -0
- package/dist/vue-components11.es.js +20 -0
- package/dist/vue-components110.es.js +5 -0
- package/dist/vue-components111.es.js +12 -0
- package/dist/vue-components112.es.js +22 -0
- package/dist/vue-components114.es.js +9 -0
- package/dist/vue-components115.es.js +4 -0
- package/dist/vue-components116.es.js +38 -0
- package/dist/vue-components117.es.js +27 -0
- package/dist/vue-components118.es.js +28 -0
- package/dist/vue-components119.es.js +7 -0
- package/dist/vue-components12.es.js +27 -0
- package/dist/vue-components120.es.js +18 -0
- package/dist/vue-components121.es.js +36 -0
- package/dist/vue-components122.es.js +18 -0
- package/dist/vue-components123.es.js +21 -0
- package/dist/vue-components124.es.js +30 -0
- package/dist/vue-components125.es.js +7 -0
- package/dist/vue-components126.es.js +9 -0
- package/dist/vue-components127.es.js +38 -0
- package/dist/vue-components128.es.js +25 -0
- package/dist/vue-components129.es.js +128 -0
- package/dist/vue-components13.es.js +70 -0
- package/dist/vue-components130.es.js +24 -0
- package/dist/vue-components131.es.js +21 -0
- package/dist/vue-components132.es.js +9 -0
- package/dist/vue-components133.es.js +19 -0
- package/dist/vue-components134.es.js +5 -0
- package/dist/vue-components135.es.js +29 -0
- package/dist/vue-components136.es.js +5 -0
- package/dist/vue-components137.es.js +43 -0
- package/dist/vue-components138.es.js +82 -0
- package/dist/vue-components139.es.js +33 -0
- package/dist/vue-components14.es.js +15 -0
- package/dist/vue-components140.es.js +19 -0
- package/dist/vue-components141.es.js +48 -0
- package/dist/vue-components15.es.js +29 -0
- package/dist/vue-components16.es.js +53 -0
- package/dist/vue-components17.es.js +87 -0
- package/dist/vue-components18.es.js +4 -0
- package/dist/vue-components19.es.js +4 -0
- package/dist/vue-components2.es.js +20 -0
- package/dist/vue-components20.es.js +19 -0
- package/dist/vue-components21.es.js +73 -0
- package/dist/vue-components22.es.js +14 -0
- package/dist/vue-components23.es.js +26 -0
- package/dist/vue-components24.es.js +252 -0
- package/dist/vue-components25.es.js +65 -0
- package/dist/vue-components26.es.js +68 -0
- package/dist/vue-components27.es.js +8 -0
- package/dist/vue-components28.es.js +12 -0
- package/dist/vue-components29.es.js +6 -0
- package/dist/vue-components3.es.js +86 -0
- package/dist/vue-components30.es.js +28 -0
- package/dist/vue-components31.es.js +75 -0
- package/dist/vue-components32.es.js +109 -0
- package/dist/vue-components33.es.js +57 -0
- package/dist/vue-components34.es.js +7 -0
- package/dist/vue-components35.es.js +4 -0
- package/dist/vue-components36.es.js +6 -0
- package/dist/vue-components37.es.js +688 -0
- package/dist/vue-components38.es.js +7 -0
- package/dist/vue-components39.es.js +5 -0
- package/dist/vue-components4.es.js +5 -0
- package/dist/vue-components40.es.js +6 -0
- package/dist/vue-components41.es.js +27 -0
- package/dist/vue-components42.es.js +5 -0
- package/dist/vue-components43.es.js +48 -0
- package/dist/vue-components44.es.js +70 -0
- package/dist/vue-components45.es.js +9 -0
- package/dist/vue-components46.es.js +10 -0
- package/dist/vue-components47.es.js +8 -0
- package/dist/vue-components48.es.js +173 -0
- package/dist/vue-components49.es.js +14 -0
- package/dist/vue-components5.es.js +24 -0
- package/dist/vue-components50.es.js +11 -0
- package/dist/vue-components51.es.js +4 -0
- package/dist/vue-components52.es.js +7 -0
- package/dist/vue-components53.es.js +29 -0
- package/dist/vue-components54.es.js +221 -0
- package/dist/vue-components55.es.js +85 -0
- package/dist/vue-components56.es.js +74 -0
- package/dist/vue-components57.es.js +819 -0
- package/dist/vue-components58.es.js +4 -0
- package/dist/vue-components59.es.js +109 -0
- package/dist/vue-components6.es.js +13 -0
- package/dist/vue-components60.es.js +54 -0
- package/dist/vue-components61.es.js +520 -0
- package/dist/vue-components62.es.js +440 -0
- package/dist/vue-components63.es.js +10 -0
- package/dist/vue-components64.es.js +13 -0
- package/dist/vue-components65.es.js +19 -0
- package/dist/vue-components66.es.js +29 -0
- package/dist/vue-components67.es.js +22 -0
- package/dist/vue-components68.es.js +30 -0
- package/dist/vue-components69.es.js +29 -0
- package/dist/vue-components7.es.js +13 -0
- package/dist/vue-components70.es.js +73 -0
- package/dist/vue-components71.es.js +6 -0
- package/dist/vue-components72.es.js +18 -0
- package/dist/vue-components73.es.js +5 -0
- package/dist/vue-components74.es.js +70 -0
- package/dist/vue-components75.es.js +140 -0
- package/dist/vue-components76.es.js +4 -0
- package/dist/vue-components77.es.js +21 -0
- package/dist/vue-components78.es.js +55 -0
- package/dist/vue-components79.es.js +9 -0
- package/dist/vue-components8.es.js +35 -0
- package/dist/vue-components80.es.js +16 -0
- package/dist/vue-components81.es.js +39 -0
- package/dist/vue-components82.es.js +49 -0
- package/dist/vue-components83.es.js +128 -0
- package/dist/vue-components84.es.js +65 -0
- package/dist/vue-components85.es.js +63 -0
- package/dist/vue-components86.es.js +25 -0
- package/dist/vue-components87.es.js +5 -0
- package/dist/vue-components88.es.js +80 -0
- package/dist/vue-components89.es.js +95 -0
- package/dist/vue-components9.es.js +47 -0
- package/dist/vue-components90.es.js +73 -0
- package/dist/vue-components91.es.js +12 -0
- package/dist/vue-components92.es.js +56 -0
- package/dist/vue-components93.es.js +5 -0
- package/dist/vue-components94.es.js +44 -0
- package/dist/vue-components95.es.js +5 -0
- package/dist/vue-components96.es.js +84 -0
- package/dist/vue-components98.es.js +8 -0
- package/dist/vue-components99.es.js +9 -0
- package/package.json +29 -29
- package/src/components/CommandButton.vue +55 -7
- package/src/components/OmegaForm/OmegaArray.vue +2 -4
- package/src/components/OmegaForm/OmegaAutoGen.vue +3 -2
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +1 -1
- package/src/components/OmegaForm/OmegaFormInput.vue +1 -1
- package/src/components/OmegaForm/OmegaInput.vue +7 -36
- package/src/components/OmegaForm/OmegaInputVuetify.vue +5 -2
- package/src/components/OmegaForm/OmegaInternalInput.vue +12 -6
- package/src/components/OmegaForm/OmegaTaggedUnion.vue +2 -1
- package/src/components/OmegaForm/OmegaTaggedUnionInternal.vue +1 -1
- package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
- package/src/components/OmegaForm/blockDialog.ts +18 -6
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +2 -1
- package/src/components/OmegaForm/errors.ts +136 -0
- package/src/components/OmegaForm/getOmegaStore.ts +1 -1
- package/src/components/OmegaForm/hocs.ts +19 -0
- package/src/components/OmegaForm/index.ts +16 -4
- package/src/components/OmegaForm/inputs.ts +22 -0
- package/src/components/OmegaForm/meta/checks.ts +82 -0
- package/src/components/OmegaForm/meta/createMeta.ts +140 -0
- package/src/components/OmegaForm/meta/defaults.ts +134 -0
- package/src/components/OmegaForm/meta/redacted.ts +66 -0
- package/src/components/OmegaForm/meta/types.ts +78 -0
- package/src/components/OmegaForm/meta/walker.ts +248 -0
- package/src/components/OmegaForm/persistency.ts +247 -0
- package/src/components/OmegaForm/submit.ts +131 -0
- package/src/components/OmegaForm/types.ts +753 -0
- package/src/components/OmegaForm/useOmegaForm.ts +59 -893
- package/src/components/OmegaForm/useRegisterField.ts +1 -1
- package/src/components/OmegaForm/validation/localized.ts +203 -0
- package/src/index.ts +0 -1
- package/src/reset.css +39 -38
- package/src/utils/index.ts +11 -8
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -159
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/vue-components.es10.js +0 -239
- package/dist/vue-components.es11.js +0 -32
- package/dist/vue-components.es12.js +0 -503
- package/dist/vue-components.es13.js +0 -49
- package/dist/vue-components.es14.js +0 -4
- package/dist/vue-components.es15.js +0 -4
- package/dist/vue-components.es16.js +0 -6
- package/dist/vue-components.es17.js +0 -13
- package/dist/vue-components.es18.js +0 -57
- package/dist/vue-components.es19.js +0 -56
- package/dist/vue-components.es2.js +0 -30
- package/dist/vue-components.es20.js +0 -8
- package/dist/vue-components.es21.js +0 -8
- package/dist/vue-components.es22.js +0 -5
- package/dist/vue-components.es23.js +0 -5
- package/dist/vue-components.es24.js +0 -4
- package/dist/vue-components.es25.js +0 -4
- package/dist/vue-components.es26.js +0 -4
- package/dist/vue-components.es27.js +0 -4
- package/dist/vue-components.es28.js +0 -19
- package/dist/vue-components.es29.js +0 -13
- package/dist/vue-components.es3.js +0 -17
- package/dist/vue-components.es30.js +0 -194
- package/dist/vue-components.es32.js +0 -31
- package/dist/vue-components.es33.js +0 -6
- package/dist/vue-components.es34.js +0 -4
- package/dist/vue-components.es35.js +0 -4
- package/dist/vue-components.es36.js +0 -113
- package/dist/vue-components.es38.js +0 -9
- package/dist/vue-components.es39.js +0 -34
- package/dist/vue-components.es4.js +0 -52
- package/dist/vue-components.es41.js +0 -6
- package/dist/vue-components.es42.js +0 -25
- package/dist/vue-components.es43.js +0 -7
- package/dist/vue-components.es44.js +0 -23
- package/dist/vue-components.es45.js +0 -32
- package/dist/vue-components.es46.js +0 -24
- package/dist/vue-components.es47.js +0 -14
- package/dist/vue-components.es48.js +0 -7
- package/dist/vue-components.es49.js +0 -21
- package/dist/vue-components.es5.js +0 -52
- package/dist/vue-components.es50.js +0 -11
- package/dist/vue-components.es51.js +0 -33
- package/dist/vue-components.es52.js +0 -50
- package/dist/vue-components.es53.js +0 -28
- package/dist/vue-components.es54.js +0 -13
- package/dist/vue-components.es55.js +0 -67
- package/dist/vue-components.es56.js +0 -58
- package/dist/vue-components.es57.js +0 -19
- package/dist/vue-components.es58.js +0 -35
- package/dist/vue-components.es59.js +0 -31
- package/dist/vue-components.es6.js +0 -69
- package/dist/vue-components.es60.js +0 -44
- package/dist/vue-components.es61.js +0 -4
- package/dist/vue-components.es62.js +0 -46
- package/dist/vue-components.es63.js +0 -4
- package/dist/vue-components.es7.js +0 -83
- package/dist/vue-components.es8.js +0 -63
- package/dist/vue-components.es9.js +0 -21
- package/src/components/OmegaForm/OmegaFormStuff.ts +0 -1276
- package/src/constants/index.ts +0 -1
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { pipeArguments as e } from "./vue-components12.es.js";
|
|
2
|
+
import { dual as t, identity as n } from "./vue-components13.es.js";
|
|
3
|
+
import { hasProperty as r } from "./vue-components15.es.js";
|
|
4
|
+
import { array as i, combine as a, hash as o, string as s, symbol as c } from "./vue-components16.es.js";
|
|
5
|
+
import { equals as l, symbol as u } from "./vue-components17.es.js";
|
|
6
|
+
import { format as d } from "./vue-components21.es.js";
|
|
7
|
+
import { NodeInspectSymbol as f } from "./vue-components22.es.js";
|
|
8
|
+
import { SingleShotGen as p } from "./vue-components23.es.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/internal/core.js
|
|
10
|
+
var m = "~effect/Effect", h = "~effect/Exit", g = {
|
|
11
|
+
_A: n,
|
|
12
|
+
_E: n,
|
|
13
|
+
_R: n
|
|
14
|
+
}, _ = `${m}/identifier`, v = `${m}/args`, y = `${m}/evaluate`, b = `${m}/successCont`, x = `${m}/failureCont`, S = `${m}/ensureCont`, C = /* @__PURE__ */ Symbol.for("effect/Effect/Yield"), w = {
|
|
15
|
+
pipe() {
|
|
16
|
+
return e(this, arguments);
|
|
17
|
+
},
|
|
18
|
+
toJSON() {
|
|
19
|
+
return { ...this };
|
|
20
|
+
},
|
|
21
|
+
toString() {
|
|
22
|
+
return d(this.toJSON(), {
|
|
23
|
+
ignoreToString: !0,
|
|
24
|
+
space: 2
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
[f]() {
|
|
28
|
+
return this.toJSON();
|
|
29
|
+
}
|
|
30
|
+
}, T = { [Symbol.iterator]() {
|
|
31
|
+
return new p(this);
|
|
32
|
+
} }, E = {
|
|
33
|
+
...T,
|
|
34
|
+
pipe() {
|
|
35
|
+
return e(this, arguments);
|
|
36
|
+
}
|
|
37
|
+
}, D = {
|
|
38
|
+
[m]: g,
|
|
39
|
+
...w,
|
|
40
|
+
[Symbol.iterator]() {
|
|
41
|
+
return new p(this);
|
|
42
|
+
},
|
|
43
|
+
asEffect() {
|
|
44
|
+
return this;
|
|
45
|
+
},
|
|
46
|
+
toJSON() {
|
|
47
|
+
return {
|
|
48
|
+
_id: "Effect",
|
|
49
|
+
op: this[_],
|
|
50
|
+
...v in this ? { args: this[v] } : void 0
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}, O = (e) => r(e, m), k = (e) => r(e, h), A = "~effect/Cause", j = "~effect/Cause/Reason", M = (e) => r(e, A), N = class {
|
|
54
|
+
[A];
|
|
55
|
+
reasons;
|
|
56
|
+
constructor(e) {
|
|
57
|
+
this[A] = A, this.reasons = e;
|
|
58
|
+
}
|
|
59
|
+
pipe() {
|
|
60
|
+
return e(this, arguments);
|
|
61
|
+
}
|
|
62
|
+
toJSON() {
|
|
63
|
+
return {
|
|
64
|
+
_id: "Cause",
|
|
65
|
+
failures: this.reasons.map((e) => e.toJSON())
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
toString() {
|
|
69
|
+
return `Cause(${d(this.reasons)})`;
|
|
70
|
+
}
|
|
71
|
+
[f]() {
|
|
72
|
+
return this.toJSON();
|
|
73
|
+
}
|
|
74
|
+
[u](e) {
|
|
75
|
+
return M(e) && this.reasons.length === e.reasons.length && this.reasons.every((t, n) => l(t, e.reasons[n]));
|
|
76
|
+
}
|
|
77
|
+
[c]() {
|
|
78
|
+
return i(this.reasons);
|
|
79
|
+
}
|
|
80
|
+
}, P = /* @__PURE__ */ new WeakMap(), F = class {
|
|
81
|
+
[j];
|
|
82
|
+
annotations;
|
|
83
|
+
_tag;
|
|
84
|
+
constructor(e, t, n) {
|
|
85
|
+
if (this[j] = j, this._tag = e, t !== I && typeof n == "object" && n && t.size > 0) {
|
|
86
|
+
let e = P.get(n);
|
|
87
|
+
e && (t = new Map([...e, ...t])), P.set(n, t);
|
|
88
|
+
}
|
|
89
|
+
this.annotations = t;
|
|
90
|
+
}
|
|
91
|
+
annotate(e, t) {
|
|
92
|
+
if (e.mapUnsafe.size === 0) return this;
|
|
93
|
+
let n = new Map(this.annotations);
|
|
94
|
+
e.mapUnsafe.forEach((e, r) => {
|
|
95
|
+
t?.overwrite !== !0 && n.has(r) || n.set(r, e);
|
|
96
|
+
});
|
|
97
|
+
let r = Object.assign(Object.create(Object.getPrototypeOf(this)), this);
|
|
98
|
+
return r.annotations = n, r;
|
|
99
|
+
}
|
|
100
|
+
pipe() {
|
|
101
|
+
return e(this, arguments);
|
|
102
|
+
}
|
|
103
|
+
toString() {
|
|
104
|
+
return d(this);
|
|
105
|
+
}
|
|
106
|
+
[f]() {
|
|
107
|
+
return this.toString();
|
|
108
|
+
}
|
|
109
|
+
}, I = /* @__PURE__ */ new Map(), L = class extends F {
|
|
110
|
+
error;
|
|
111
|
+
constructor(e, t = I) {
|
|
112
|
+
super("Fail", t, e), this.error = e;
|
|
113
|
+
}
|
|
114
|
+
toString() {
|
|
115
|
+
return `Fail(${d(this.error)})`;
|
|
116
|
+
}
|
|
117
|
+
toJSON() {
|
|
118
|
+
return {
|
|
119
|
+
_tag: "Fail",
|
|
120
|
+
error: this.error
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
[u](e) {
|
|
124
|
+
return z(e) && l(this.error, e.error) && l(this.annotations, e.annotations);
|
|
125
|
+
}
|
|
126
|
+
[c]() {
|
|
127
|
+
return a(s(this._tag))(a(o(this.error))(o(this.annotations)));
|
|
128
|
+
}
|
|
129
|
+
}, ee = (e) => new N(e), te = (e) => new N([new L(e)]), ne = class extends F {
|
|
130
|
+
defect;
|
|
131
|
+
constructor(e, t = I) {
|
|
132
|
+
super("Die", t, e), this.defect = e;
|
|
133
|
+
}
|
|
134
|
+
toString() {
|
|
135
|
+
return `Die(${d(this.defect)})`;
|
|
136
|
+
}
|
|
137
|
+
toJSON() {
|
|
138
|
+
return {
|
|
139
|
+
_tag: "Die",
|
|
140
|
+
defect: this.defect
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
[u](e) {
|
|
144
|
+
return B(e) && l(this.defect, e.defect) && l(this.annotations, e.annotations);
|
|
145
|
+
}
|
|
146
|
+
[c]() {
|
|
147
|
+
return a(s(this._tag))(a(o(this.defect))(o(this.annotations)));
|
|
148
|
+
}
|
|
149
|
+
}, re = (e) => new N([new ne(e)]), R = /* @__PURE__ */ t((e) => M(e[0]), (e, t, n) => t.mapUnsafe.size === 0 ? e : new N(e.reasons.map((e) => e.annotate(t, n)))), z = (e) => e._tag === "Fail", B = (e) => e._tag === "Die", V = (e) => e._tag === "Interrupt";
|
|
150
|
+
function H(e) {
|
|
151
|
+
return Z("Effect.evaluate: Not implemented");
|
|
152
|
+
}
|
|
153
|
+
var U = (e) => ({
|
|
154
|
+
...D,
|
|
155
|
+
[_]: e.op,
|
|
156
|
+
[y]: e[y] ?? H,
|
|
157
|
+
[b]: e[b],
|
|
158
|
+
[x]: e[x],
|
|
159
|
+
[S]: e[S]
|
|
160
|
+
}), W = (e) => {
|
|
161
|
+
let t = U(e);
|
|
162
|
+
return function() {
|
|
163
|
+
let n = Object.create(t);
|
|
164
|
+
return n[v] = e.single === !1 ? arguments : arguments[0], n;
|
|
165
|
+
};
|
|
166
|
+
}, G = (e) => {
|
|
167
|
+
let t = {
|
|
168
|
+
...U(e),
|
|
169
|
+
[h]: h,
|
|
170
|
+
_tag: e.op,
|
|
171
|
+
get [e.prop]() {
|
|
172
|
+
return this[v];
|
|
173
|
+
},
|
|
174
|
+
toString() {
|
|
175
|
+
return `${e.op}(${d(this[v])})`;
|
|
176
|
+
},
|
|
177
|
+
toJSON() {
|
|
178
|
+
return {
|
|
179
|
+
_id: "Exit",
|
|
180
|
+
_tag: e.op,
|
|
181
|
+
[e.prop]: this[v]
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
[u](e) {
|
|
185
|
+
return k(e) && e._tag === this._tag && l(this[v], e[v]);
|
|
186
|
+
},
|
|
187
|
+
[c]() {
|
|
188
|
+
return a(s(e.op), o(this[v]));
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
return function(e) {
|
|
192
|
+
let n = Object.create(t);
|
|
193
|
+
return n[v] = e, n;
|
|
194
|
+
};
|
|
195
|
+
}, K = /* @__PURE__ */ G({
|
|
196
|
+
op: "Success",
|
|
197
|
+
prop: "value",
|
|
198
|
+
[y](e) {
|
|
199
|
+
let t = e.getCont(b);
|
|
200
|
+
return t ? t[b](this[v], e, this) : e.yieldWith(this);
|
|
201
|
+
}
|
|
202
|
+
}), q = { key: "effect/Cause/StackTrace" }, J = { key: "effect/Cause/InterruptorStackTrace" }, Y = /* @__PURE__ */ G({
|
|
203
|
+
op: "Failure",
|
|
204
|
+
prop: "cause",
|
|
205
|
+
[y](e) {
|
|
206
|
+
let t = this[v], n = !1;
|
|
207
|
+
e.currentStackFrame && (t = R(t, { mapUnsafe: new Map([[q.key, e.currentStackFrame]]) }), n = !0);
|
|
208
|
+
let r = e.getCont(x);
|
|
209
|
+
for (; e.interruptible && e._interruptedCause && r;) r = e.getCont(x);
|
|
210
|
+
return r ? r[x](t, e, n ? void 0 : this) : e.yieldWith(n ? this : Y(t));
|
|
211
|
+
}
|
|
212
|
+
}), X = (e) => Y(te(e)), Z = (e) => Y(re(e)), ie = /* @__PURE__ */ W({
|
|
213
|
+
op: "WithFiber",
|
|
214
|
+
[y](e) {
|
|
215
|
+
return this[v](e);
|
|
216
|
+
}
|
|
217
|
+
}), ae = /* @__PURE__ */ function() {
|
|
218
|
+
class e extends globalThis.Error {
|
|
219
|
+
asEffect() {
|
|
220
|
+
return X(this);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return Object.assign(e.prototype, E), e;
|
|
224
|
+
}(), oe = /* @__PURE__ */ function() {
|
|
225
|
+
let e = /* @__PURE__ */ Symbol.for("effect/Data/Error/plainArgs");
|
|
226
|
+
return class extends ae {
|
|
227
|
+
constructor(t) {
|
|
228
|
+
super(t?.message, t?.cause ? { cause: t.cause } : void 0), t && (Object.assign(this, t), Object.defineProperty(this, e, {
|
|
229
|
+
value: t,
|
|
230
|
+
enumerable: !1
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
toJSON() {
|
|
234
|
+
return {
|
|
235
|
+
...this[e],
|
|
236
|
+
...this
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}(), Q = (e) => {
|
|
241
|
+
class t extends oe {
|
|
242
|
+
_tag = e;
|
|
243
|
+
}
|
|
244
|
+
return t.prototype.name = e, t;
|
|
245
|
+
}, $ = "~effect/Cause/NoSuchElementError", se = class extends Q("NoSuchElementError") {
|
|
246
|
+
[$] = $;
|
|
247
|
+
constructor(e) {
|
|
248
|
+
super({ message: e });
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
//#endregion
|
|
252
|
+
export { N as CauseImpl, h as ExitTypeId, J as InterruptorStackTrace, se as NoSuchElementError, w as PipeInspectableProto, F as ReasonBase, q as StackTraceKey, Q as TaggedError, C as Yield, T as YieldableProto, v as args, R as causeAnnotate, ee as causeFromReasons, I as constEmptyAnnotations, b as contA, S as contAll, x as contE, y as evaluate, Z as exitDie, X as exitFail, Y as exitFailCause, K as exitSucceed, O as isEffect, z as isFailReason, V as isInterruptReason, W as makePrimitive, U as makePrimitiveProto, ie as withFiber };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { hasProperty as e } from "./vue-components15.es.js";
|
|
2
|
+
import { combine as t, hash as n, symbol as r } from "./vue-components16.es.js";
|
|
3
|
+
import { equals as i, symbol as a } from "./vue-components17.es.js";
|
|
4
|
+
import { format as o } from "./vue-components21.es.js";
|
|
5
|
+
import { toJson as s } from "./vue-components22.es.js";
|
|
6
|
+
import { NoSuchElementError as c, PipeInspectableProto as l, YieldableProto as u, exitFail as d, exitSucceed as f } from "./vue-components24.es.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/internal/option.js
|
|
8
|
+
var p = "~effect/data/Option", m = {
|
|
9
|
+
[p]: { _A: (e) => e },
|
|
10
|
+
...l,
|
|
11
|
+
...u
|
|
12
|
+
}, h = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(m), {
|
|
13
|
+
_tag: "Some",
|
|
14
|
+
_op: "Some",
|
|
15
|
+
[a](e) {
|
|
16
|
+
return v(e) && b(e) && i(this.value, e.value);
|
|
17
|
+
},
|
|
18
|
+
[r]() {
|
|
19
|
+
return t(n(this._tag))(n(this.value));
|
|
20
|
+
},
|
|
21
|
+
toString() {
|
|
22
|
+
return `some(${o(this.value)})`;
|
|
23
|
+
},
|
|
24
|
+
toJSON() {
|
|
25
|
+
return {
|
|
26
|
+
_id: "Option",
|
|
27
|
+
_tag: this._tag,
|
|
28
|
+
value: s(this.value)
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
asEffect() {
|
|
32
|
+
return f(this.value);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(h, "valueOrUndefined", { get() {
|
|
36
|
+
return this.value;
|
|
37
|
+
} });
|
|
38
|
+
var g = /* @__PURE__ */ n("None"), _ = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(m), {
|
|
39
|
+
_tag: "None",
|
|
40
|
+
_op: "None",
|
|
41
|
+
valueOrUndefined: void 0,
|
|
42
|
+
[a](e) {
|
|
43
|
+
return v(e) && y(e);
|
|
44
|
+
},
|
|
45
|
+
[r]() {
|
|
46
|
+
return g;
|
|
47
|
+
},
|
|
48
|
+
toString() {
|
|
49
|
+
return "none()";
|
|
50
|
+
},
|
|
51
|
+
toJSON() {
|
|
52
|
+
return {
|
|
53
|
+
_id: "Option",
|
|
54
|
+
_tag: this._tag
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
asEffect() {
|
|
58
|
+
return d(new c());
|
|
59
|
+
}
|
|
60
|
+
}), v = (t) => e(t, p), y = (e) => e._tag === "None", b = (e) => e._tag === "Some", x = /* @__PURE__ */ Object.create(_), S = (e) => {
|
|
61
|
+
let t = Object.create(h);
|
|
62
|
+
return t.value = e, t;
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { y as isNone, b as isSome, x as none, S as some };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { hasProperty as e } from "./vue-components15.es.js";
|
|
2
|
+
import { combine as t, hash as n, symbol as r } from "./vue-components16.es.js";
|
|
3
|
+
import { equals as i, symbol as a } from "./vue-components17.es.js";
|
|
4
|
+
import { format as o } from "./vue-components21.es.js";
|
|
5
|
+
import { toJson as s } from "./vue-components22.es.js";
|
|
6
|
+
import { PipeInspectableProto as c, YieldableProto as l, exitFail as u, exitSucceed as d } from "./vue-components24.es.js";
|
|
7
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/internal/result.js
|
|
8
|
+
var f = "~effect/data/Result", p = {
|
|
9
|
+
[f]: {
|
|
10
|
+
/* v8 ignore next 2 */
|
|
11
|
+
_A: (e) => e,
|
|
12
|
+
_E: (e) => e
|
|
13
|
+
},
|
|
14
|
+
...c,
|
|
15
|
+
...l
|
|
16
|
+
}, m = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(p), {
|
|
17
|
+
_tag: "Success",
|
|
18
|
+
_op: "Success",
|
|
19
|
+
[a](e) {
|
|
20
|
+
return g(e) && v(e) && i(this.success, e.success);
|
|
21
|
+
},
|
|
22
|
+
[r]() {
|
|
23
|
+
return t(n(this._tag))(n(this.success));
|
|
24
|
+
},
|
|
25
|
+
toString() {
|
|
26
|
+
return `success(${o(this.success)})`;
|
|
27
|
+
},
|
|
28
|
+
toJSON() {
|
|
29
|
+
return {
|
|
30
|
+
_id: "Result",
|
|
31
|
+
_tag: this._tag,
|
|
32
|
+
value: s(this.success)
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
asEffect() {
|
|
36
|
+
return d(this.success);
|
|
37
|
+
}
|
|
38
|
+
}), h = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(p), {
|
|
39
|
+
_tag: "Failure",
|
|
40
|
+
_op: "Failure",
|
|
41
|
+
[a](e) {
|
|
42
|
+
return g(e) && _(e) && i(this.failure, e.failure);
|
|
43
|
+
},
|
|
44
|
+
[r]() {
|
|
45
|
+
return t(n(this._tag))(n(this.failure));
|
|
46
|
+
},
|
|
47
|
+
toString() {
|
|
48
|
+
return `failure(${o(this.failure)})`;
|
|
49
|
+
},
|
|
50
|
+
toJSON() {
|
|
51
|
+
return {
|
|
52
|
+
_id: "Result",
|
|
53
|
+
_tag: this._tag,
|
|
54
|
+
failure: s(this.failure)
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
asEffect() {
|
|
58
|
+
return u(this.failure);
|
|
59
|
+
}
|
|
60
|
+
}), g = (t) => e(t, f), _ = (e) => e._tag === "Failure", v = (e) => e._tag === "Success", y = (e) => {
|
|
61
|
+
let t = Object.create(h);
|
|
62
|
+
return t.failure = e, t;
|
|
63
|
+
}, b = (e) => {
|
|
64
|
+
let t = Object.create(m);
|
|
65
|
+
return t.success = e, t;
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { y as fail, _ as isFailure, b as succeed };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Order.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return (t, n) => t === n ? 0 : e(t, n);
|
|
5
|
+
}
|
|
6
|
+
var n = /* @__PURE__ */ t((e, t) => globalThis.Number.isNaN(e) && globalThis.Number.isNaN(t) ? 0 : globalThis.Number.isNaN(e) ? -1 : globalThis.Number.isNaN(t) ? 1 : e < t ? -1 : 1), r = /* @__PURE__ */ t((e, t) => e < t ? -1 : 1), i = /* @__PURE__ */ e(2, (e, n) => t((t, r) => e(n(t), n(r)))), a = /* @__PURE__ */ i(n, (e) => e.getTime()), o = (t) => e(2, (e, n) => t(e, n) === -1), s = (t) => e(2, (e, n) => t(e, n) === 1), c = (t) => e(2, (e, n) => t(e, n) !== 1), l = (t) => e(2, (e, n) => t(e, n) !== -1);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as BigInt, a as Date, n as Number, s as isGreaterThan, l as isGreaterThanOrEqualTo, o as isLessThan, c as isLessThanOrEqualTo, t as make, i as mapInput };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
import { isNone as t, isSome as n, none as r, some as i } from "./vue-components25.es.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Option.js
|
|
4
|
+
var a = () => r, o = i, s = t, c = n, l = /* @__PURE__ */ e(2, (e, { onNone: t, onSome: n }) => s(e) ? t() : n(e.value)), u = /* @__PURE__ */ e(2, (e, t) => s(e) ? t() : e.value), d = (e) => (...t) => {
|
|
5
|
+
try {
|
|
6
|
+
return o(e(...t));
|
|
7
|
+
} catch {
|
|
8
|
+
return a();
|
|
9
|
+
}
|
|
10
|
+
}, f = /* @__PURE__ */ e(2, (e, t) => s(e) ? a() : o(t(e.value))), p = /* @__PURE__ */ e(2, (e, t) => s(e) ? a() : t(e.value) ? o(e.value) : a());
|
|
11
|
+
//#endregion
|
|
12
|
+
export { p as filter, u as getOrElse, s as isNone, c as isSome, d as liftThrowable, f as map, l as match, a as none, o as some };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
import { fail as t, isFailure as n, succeed as r } from "./vue-components26.es.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Result.js
|
|
4
|
+
var i = r, a = t, o = n, s = /* @__PURE__ */ e(2, (e, t) => o(e) ? a(t(e.failure)) : i(e.success)), c = /* @__PURE__ */ e(2, (e, { onFailure: t, onSuccess: n }) => o(e) ? t(e.failure) : n(e.success));
|
|
5
|
+
//#endregion
|
|
6
|
+
export { a as fail, o as isFailure, s as mapError, c as match, i as succeed };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementVNode as r, createSlots as i, createTextVNode as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, resolveComponent as d, toDisplayString as f, withCtx as p } from "vue";
|
|
2
|
+
//#region src/components/CommandButton.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var m = { class: "ml-2" }, h = { class: "ml-2" }, g = /* @__PURE__ */ s({
|
|
4
|
+
name: "CommandButton",
|
|
5
|
+
props: {
|
|
6
|
+
input: {},
|
|
7
|
+
command: {},
|
|
8
|
+
empty: { type: Boolean },
|
|
9
|
+
disabled: {},
|
|
10
|
+
title: {},
|
|
11
|
+
mapProgress: { type: Function }
|
|
12
|
+
},
|
|
13
|
+
setup(s) {
|
|
14
|
+
let g = s, _ = e(() => g.command.blocked || g.disabled), v = e(() => {
|
|
15
|
+
if (g.mapProgress) {
|
|
16
|
+
let e = g.command.result;
|
|
17
|
+
return e === void 0 ? void 0 : g.mapProgress(e);
|
|
18
|
+
}
|
|
19
|
+
return g.command.progress;
|
|
20
|
+
}), y = e(() => {
|
|
21
|
+
let e = v.value;
|
|
22
|
+
if (e !== void 0) return typeof e == "string" ? e : e.text;
|
|
23
|
+
}), b = e(() => {
|
|
24
|
+
let e = v.value;
|
|
25
|
+
return typeof e == "object" && e ? e.percentage : void 0;
|
|
26
|
+
}), x = () => {
|
|
27
|
+
if (_.value) return;
|
|
28
|
+
let e = "input" in g && g.input ? g.input : void 0, t = g.command.handle;
|
|
29
|
+
t(e);
|
|
30
|
+
};
|
|
31
|
+
return (e, g) => {
|
|
32
|
+
let v = d("v-progress-circular"), S = d("v-btn");
|
|
33
|
+
return s.command.allowed && !s.empty ? (l(), t(S, c({ key: 0 }, e.$attrs, {
|
|
34
|
+
loading: s.command.waiting,
|
|
35
|
+
"aria-disabled": _.value,
|
|
36
|
+
title: s.title ?? s.command.action,
|
|
37
|
+
class: { "v-btn--disabled": _.value },
|
|
38
|
+
onClick: x
|
|
39
|
+
}), i({
|
|
40
|
+
default: p(() => [u(e.$slots, "default", {
|
|
41
|
+
loading: s.command.waiting,
|
|
42
|
+
disabled: _.value,
|
|
43
|
+
label: s.command.label,
|
|
44
|
+
title: s.title ?? s.command.action
|
|
45
|
+
}, () => [a(f(s.command.label), 1)])]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, [y.value === void 0 ? void 0 : {
|
|
48
|
+
name: "loader",
|
|
49
|
+
fn: p(() => [o(v, {
|
|
50
|
+
indeterminate: b.value === void 0,
|
|
51
|
+
"model-value": b.value,
|
|
52
|
+
size: "20",
|
|
53
|
+
width: "2"
|
|
54
|
+
}, null, 8, ["indeterminate", "model-value"]), r("span", m, f(y.value), 1)]),
|
|
55
|
+
key: "0"
|
|
56
|
+
}]), 1040, [
|
|
57
|
+
"loading",
|
|
58
|
+
"aria-disabled",
|
|
59
|
+
"title",
|
|
60
|
+
"class"
|
|
61
|
+
])) : s.command.allowed ? (l(), t(S, c({ key: 1 }, e.$attrs, {
|
|
62
|
+
loading: s.command.waiting,
|
|
63
|
+
"aria-disabled": _.value,
|
|
64
|
+
title: s.title ?? s.command.action,
|
|
65
|
+
class: { "v-btn--disabled": _.value },
|
|
66
|
+
onClick: x
|
|
67
|
+
}), i({ _: 2 }, [y.value === void 0 ? void 0 : {
|
|
68
|
+
name: "loader",
|
|
69
|
+
fn: p(() => [o(v, {
|
|
70
|
+
indeterminate: b.value === void 0,
|
|
71
|
+
"model-value": b.value,
|
|
72
|
+
size: "20",
|
|
73
|
+
width: "2"
|
|
74
|
+
}, null, 8, ["indeterminate", "model-value"]), r("span", h, f(y.value), 1)]),
|
|
75
|
+
key: "0"
|
|
76
|
+
}]), 1040, [
|
|
77
|
+
"loading",
|
|
78
|
+
"aria-disabled",
|
|
79
|
+
"title",
|
|
80
|
+
"class"
|
|
81
|
+
])) : n("", !0);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
//#endregion
|
|
86
|
+
export { g as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
import { asEquivalence as t } from "./vue-components17.es.js";
|
|
3
|
+
import { isArrayNonEmpty as n } from "./vue-components19.es.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Array.js
|
|
5
|
+
var r = globalThis.Array, i = (e) => r.isArray(e) ? e : r.from(e), a = /* @__PURE__ */ e(2, (e, t) => [...e, t]), o = /* @__PURE__ */ e(2, (e, t) => i(e).concat(i(t)));
|
|
6
|
+
r.isArray;
|
|
7
|
+
var s = n, c = n;
|
|
8
|
+
function l(e, t) {
|
|
9
|
+
return e < 0 || e >= t.length;
|
|
10
|
+
}
|
|
11
|
+
var u = /* @__PURE__ */ (/* @__PURE__ */ e(2, (e, t) => {
|
|
12
|
+
let n = Math.floor(t);
|
|
13
|
+
if (l(n, e)) throw Error(`Index out of bounds: ${n}`);
|
|
14
|
+
return e[n];
|
|
15
|
+
}))(0), d = (e) => e.slice(1), f = /* @__PURE__ */ e(3, (e, t, n) => {
|
|
16
|
+
let r = i(e), a = i(t);
|
|
17
|
+
return c(r) ? c(a) ? g(n)(o(r, a)) : r : a;
|
|
18
|
+
}), p = /* @__PURE__ */ e(2, (e, n) => f(e, n, t())), m = () => [], h = /* @__PURE__ */ e(2, (e, t) => e.map(t)), g = /* @__PURE__ */ e(2, (e, t) => {
|
|
19
|
+
let n = i(e);
|
|
20
|
+
if (c(n)) {
|
|
21
|
+
let e = [u(n)], r = d(n);
|
|
22
|
+
for (let n of r) e.every((e) => !t(n, e)) && e.push(n);
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
return [];
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { a as append, m as empty, i as fromIterable, s as isArrayNonEmpty, c as isReadonlyArrayNonEmpty, h as map, p as union };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { pipeArguments as e } from "./vue-components12.es.js";
|
|
2
|
+
import { dual as t } from "./vue-components13.es.js";
|
|
3
|
+
import { hasProperty as n } from "./vue-components15.es.js";
|
|
4
|
+
import { combine as r, hash as i, number as a, symbol as o } from "./vue-components16.es.js";
|
|
5
|
+
import { symbol as s } from "./vue-components17.es.js";
|
|
6
|
+
import { make as c } from "./vue-components18.es.js";
|
|
7
|
+
import { NodeInspectSymbol as l } from "./vue-components22.es.js";
|
|
8
|
+
import { BigInt as u, Number as d, make as f } from "./vue-components27.es.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/BigDecimal.js
|
|
10
|
+
var p = "~effect/BigDecimal", m = {
|
|
11
|
+
[p]: p,
|
|
12
|
+
[o]() {
|
|
13
|
+
let e = x(this);
|
|
14
|
+
return r(i(e.value), a(e.scale));
|
|
15
|
+
},
|
|
16
|
+
[s](e) {
|
|
17
|
+
return h(e) && D(this, e);
|
|
18
|
+
},
|
|
19
|
+
toString() {
|
|
20
|
+
return `BigDecimal(${O(this)})`;
|
|
21
|
+
},
|
|
22
|
+
toJSON() {
|
|
23
|
+
return {
|
|
24
|
+
_id: "BigDecimal",
|
|
25
|
+
value: String(this.value),
|
|
26
|
+
scale: this.scale
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
[l]() {
|
|
30
|
+
return this.toJSON();
|
|
31
|
+
},
|
|
32
|
+
pipe() {
|
|
33
|
+
return e(this, arguments);
|
|
34
|
+
}
|
|
35
|
+
}, h = (e) => n(e, p), g = (e, t) => {
|
|
36
|
+
let n = Object.create(m);
|
|
37
|
+
return n.value = e, n.scale = t, n;
|
|
38
|
+
}, _ = (e, t) => {
|
|
39
|
+
if (e !== v && e % y === v) throw RangeError("Value must be normalized");
|
|
40
|
+
let n = g(e, t);
|
|
41
|
+
return n.normalized = n, n;
|
|
42
|
+
}, v = /* @__PURE__ */ BigInt(0), y = /* @__PURE__ */ BigInt(10), b = /* @__PURE__ */ _(v, 0), x = (e) => {
|
|
43
|
+
if (e.normalized === void 0) if (e.value === v) e.normalized = b;
|
|
44
|
+
else {
|
|
45
|
+
let t = `${e.value}`, n = 0;
|
|
46
|
+
for (let e = t.length - 1; e >= 0 && t[e] === "0"; e--) n++;
|
|
47
|
+
n === 0 && (e.normalized = e), e.normalized = _(BigInt(t.substring(0, t.length - n)), e.scale - n);
|
|
48
|
+
}
|
|
49
|
+
return e.normalized;
|
|
50
|
+
}, S = /* @__PURE__ */ t(2, (e, t) => t > e.scale ? g(e.value * y ** BigInt(t - e.scale), t) : t < e.scale ? g(e.value / y ** BigInt(e.scale - t), t) : e), C = /* @__PURE__ */ f((e, t) => {
|
|
51
|
+
let n = d(w(e), w(t));
|
|
52
|
+
return n === 0 ? e.scale > t.scale ? u(e.value, S(t, e.scale).value) : e.scale < t.scale ? u(S(e, t.scale).value, t.value) : u(e.value, t.value) : n;
|
|
53
|
+
}), w = (e) => e.value === v ? 0 : e.value < v ? -1 : 1, T = (e) => e.value < v ? g(-e.value, e.scale) : e, E = /* @__PURE__ */ c((e, t) => e.scale > t.scale ? S(t, e.scale).value === e.value : e.scale < t.scale ? S(e, t.scale).value === t.value : e.value === t.value), D = /* @__PURE__ */ t(2, (e, t) => E(e, t)), O = (e) => {
|
|
54
|
+
let t = x(e);
|
|
55
|
+
if (Math.abs(t.scale) >= 16) return k(t);
|
|
56
|
+
let n = t.value < v, r = n ? `${t.value}`.substring(1) : `${t.value}`, i, a;
|
|
57
|
+
if (t.scale >= r.length) i = "0", a = "0".repeat(t.scale - r.length) + r;
|
|
58
|
+
else {
|
|
59
|
+
let e = r.length - t.scale;
|
|
60
|
+
if (e > r.length) {
|
|
61
|
+
let t = e - r.length;
|
|
62
|
+
i = `${r}${"0".repeat(t)}`, a = "";
|
|
63
|
+
} else a = r.slice(e), i = r.slice(0, e);
|
|
64
|
+
}
|
|
65
|
+
let o = a === "" ? i : `${i}.${a}`;
|
|
66
|
+
return n ? `-${o}` : o;
|
|
67
|
+
}, k = (e) => {
|
|
68
|
+
if (A(e)) return "0e+0";
|
|
69
|
+
let t = x(e), n = `${T(t).value}`, r = n.slice(0, 1), i = n.slice(1), a = `${j(t) ? "-" : ""}${r}`;
|
|
70
|
+
i !== "" && (a += `.${i}`);
|
|
71
|
+
let o = i.length - t.scale;
|
|
72
|
+
return `${a}e${o >= 0 ? "+" : ""}${o}`;
|
|
73
|
+
}, A = (e) => e.value === v, j = (e) => e.value < v;
|
|
74
|
+
//#endregion
|
|
75
|
+
export { C as Order, O as format };
|