@pax2pay/model-banking 0.1.262 → 0.1.263
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/Counterbalance2.ts +5 -14
- package/Treasury/Account/Storable.ts +2 -0
- package/Treasury/Snapshot/Fragment.ts +24 -7
- package/Treasury/Snapshot/index.ts +1 -2
- package/Treasury/index.ts +1 -7
- package/dist/Counterbalance2.d.ts +5 -7
- package/dist/Counterbalance2.js +3 -12
- package/dist/Counterbalance2.js.map +1 -1
- package/dist/Operation/Changes.d.ts +1 -1
- package/dist/Treasury/Account/Storable.d.ts +1 -0
- package/dist/Treasury/Account/Storable.js +1 -0
- package/dist/Treasury/Account/Storable.js.map +1 -1
- package/dist/Treasury/Snapshot/Fragment.d.ts +22 -2
- package/dist/Treasury/Snapshot/Fragment.js +18 -2
- package/dist/Treasury/Snapshot/Fragment.js.map +1 -1
- package/dist/Treasury/Snapshot/index.d.ts +1 -2
- package/dist/Treasury/Snapshot/index.js.map +1 -1
- package/dist/Treasury/index.d.ts +1 -7
- package/dist/Treasury/index.js.map +1 -1
- package/package.json +1 -1
package/Counterbalance2.ts
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
|
-
import { Supplier } from "./Supplier"
|
|
4
3
|
|
|
5
4
|
export type Counterbalance2 = {
|
|
6
5
|
minted: Partial<Record<Counterbalance2.Source, number>>
|
|
7
6
|
burned: Partial<Record<Counterbalance2.Sink, number>>
|
|
8
7
|
}
|
|
9
8
|
export namespace Counterbalance2 {
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
return result && result.length == 2 && sources.includes(result[0] as any) && typeof result[1] == "string"
|
|
15
|
-
})
|
|
16
|
-
export const sinks = [...Supplier.names, "internal"] as const
|
|
17
|
-
export type Sink = `${typeof sinks[number]}-${string}` // string: fiat account identifier
|
|
18
|
-
export const Sink = isly.fromIs<Sink>("Sink", (value: any | Sink) => {
|
|
19
|
-
const result = !value ? false : typeof value == "string" && value.split("-")
|
|
20
|
-
return result && result.length == 2 && sinks.includes(result[0] as any) && typeof result[1] == "string"
|
|
21
|
-
})
|
|
9
|
+
export type Source = string
|
|
10
|
+
export const Source = isly.string()
|
|
11
|
+
export type Sink = string
|
|
12
|
+
export const Sink = isly.string()
|
|
22
13
|
export const type = isly.object<Counterbalance2>({
|
|
23
14
|
minted: isly.record<Counterbalance2["minted"]>(Source, isly.number()),
|
|
24
15
|
burned: isly.record<Counterbalance2["burned"]>(Sink, isly.number()),
|
|
25
16
|
})
|
|
26
17
|
export type Link = Source | Sink
|
|
27
|
-
export const Link = isly.
|
|
18
|
+
export const Link = isly.string()
|
|
28
19
|
export function add(currency: isoly.Currency, addendee: Counterbalance2, addend: Counterbalance2): Counterbalance2 {
|
|
29
20
|
const result: Counterbalance2 = { minted: { ...addend.minted }, burned: { ...addend.burned } }
|
|
30
21
|
for (const [source, value] of Object.entries(addendee["minted"]) as [Source, number][]) {
|
|
@@ -11,6 +11,7 @@ export interface Storable {
|
|
|
11
11
|
created: isoly.DateTime
|
|
12
12
|
realm: Realm
|
|
13
13
|
supplier: Supplier
|
|
14
|
+
link: string
|
|
14
15
|
type: Category
|
|
15
16
|
reference: string
|
|
16
17
|
conditions?: Conditions
|
|
@@ -22,6 +23,7 @@ export namespace Storable {
|
|
|
22
23
|
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
23
24
|
realm: isly.fromIs("realm", Realm.is),
|
|
24
25
|
supplier: isly.fromIs("supplier", Supplier.is),
|
|
26
|
+
link: isly.string(),
|
|
25
27
|
type: Category.type,
|
|
26
28
|
reference: isly.string(),
|
|
27
29
|
conditions: Conditions.type.optional(),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { Balances } from "../../Balances"
|
|
3
|
-
import { Counterbalance2 } from "../../Counterbalance2"
|
|
4
3
|
import { Account } from "../Account"
|
|
5
4
|
import { Warning } from "./Warning"
|
|
6
5
|
|
|
7
6
|
export interface Fragment {
|
|
8
7
|
warnings: Warning[]
|
|
9
|
-
emoney: Balances.Balance
|
|
8
|
+
emoney: Balances.Balance
|
|
9
|
+
minted: Fragment.Coinage.Minted
|
|
10
|
+
burned: Fragment.Coinage.Burned
|
|
10
11
|
fiat: {
|
|
11
12
|
safe: number
|
|
12
13
|
unsafe: number
|
|
@@ -17,13 +18,29 @@ export interface Fragment {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
export namespace Fragment {
|
|
21
|
+
export namespace Coinage {
|
|
22
|
+
export type LedgerAccount = string
|
|
23
|
+
export type Change = { account: Record<LedgerAccount, number>; amount: number }
|
|
24
|
+
export const change = isly.object<Change>({
|
|
25
|
+
account: isly.record(isly.string(), isly.number()),
|
|
26
|
+
amount: isly.number(),
|
|
27
|
+
})
|
|
28
|
+
type Source = string
|
|
29
|
+
export type Minted = Record<Source, Change>
|
|
30
|
+
export namespace Minted {
|
|
31
|
+
export const type = isly.record<Minted>(isly.string(), Fragment.Coinage.change)
|
|
32
|
+
}
|
|
33
|
+
type Sink = string
|
|
34
|
+
export type Burned = Record<Sink, Change>
|
|
35
|
+
export namespace Burned {
|
|
36
|
+
export const type = isly.record<Burned>(isly.string(), Fragment.Coinage.change)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
20
39
|
export const type = isly.object<Fragment>({
|
|
21
40
|
warnings: Warning.type.array(),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Counterbalance2.type
|
|
26
|
-
),
|
|
41
|
+
emoney: Balances.Balance.type,
|
|
42
|
+
minted: Fragment.Coinage.Minted.type,
|
|
43
|
+
burned: Fragment.Coinage.Burned.type,
|
|
27
44
|
fiat: isly.object({
|
|
28
45
|
safe: isly.number(),
|
|
29
46
|
unsafe: isly.number(),
|
|
@@ -7,8 +7,7 @@ import { Warning as SnapshotWarning } from "./Warning"
|
|
|
7
7
|
export type Snapshot = Partial<Record<isoly.Currency, Snapshot.Fragment>>
|
|
8
8
|
|
|
9
9
|
export namespace Snapshot {
|
|
10
|
-
export
|
|
11
|
-
export const Fragment = SnapshotFragment
|
|
10
|
+
export import Fragment = SnapshotFragment
|
|
12
11
|
export type Warning = SnapshotWarning
|
|
13
12
|
export const Warning = SnapshotWarning
|
|
14
13
|
export type Emoney = SnapshotEmoney
|
package/Treasury/index.ts
CHANGED
|
@@ -17,13 +17,7 @@ export namespace Treasury {
|
|
|
17
17
|
export type Transaction = TreasuryTransaction
|
|
18
18
|
export type Balance = TreasuryBalance
|
|
19
19
|
export const Balance = TreasuryBalance
|
|
20
|
-
export
|
|
21
|
-
export const Snapshot = TreasurySnapshot
|
|
22
|
-
export namespace Snapshot {
|
|
23
|
-
export type Fragment = TreasurySnapshot.Fragment
|
|
24
|
-
export type Warning = TreasurySnapshot.Warning
|
|
25
|
-
export type Emoney = TreasurySnapshot.Emoney
|
|
26
|
-
}
|
|
20
|
+
export import Snapshot = TreasurySnapshot
|
|
27
21
|
export namespace Account {
|
|
28
22
|
export type Creatable = TreasuryAccount.Creatable
|
|
29
23
|
export const Creatable = TreasuryAccount.Creatable
|
|
@@ -5,14 +5,12 @@ export type Counterbalance2 = {
|
|
|
5
5
|
burned: Partial<Record<Counterbalance2.Sink, number>>;
|
|
6
6
|
};
|
|
7
7
|
export declare namespace Counterbalance2 {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
type Sink = `${typeof sinks[number]}-${string}`;
|
|
13
|
-
const Sink: isly.Type<`paxgiro-${string}` | `clearbank-${string}` | `internal-${string}`>;
|
|
8
|
+
type Source = string;
|
|
9
|
+
const Source: isly.Type<string>;
|
|
10
|
+
type Sink = string;
|
|
11
|
+
const Sink: isly.Type<string>;
|
|
14
12
|
const type: isly.object.ExtendableType<Counterbalance2>;
|
|
15
13
|
type Link = Source | Sink;
|
|
16
|
-
const Link: isly.Type<
|
|
14
|
+
const Link: isly.Type<string>;
|
|
17
15
|
function add(currency: isoly.Currency, addendee: Counterbalance2, addend: Counterbalance2): Counterbalance2;
|
|
18
16
|
}
|
package/dist/Counterbalance2.js
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { Supplier } from "./Supplier";
|
|
4
3
|
export var Counterbalance2;
|
|
5
4
|
(function (Counterbalance2) {
|
|
6
|
-
Counterbalance2.
|
|
7
|
-
Counterbalance2.
|
|
8
|
-
const result = !value ? false : typeof value == "string" && value.split("-");
|
|
9
|
-
return result && result.length == 2 && Counterbalance2.sources.includes(result[0]) && typeof result[1] == "string";
|
|
10
|
-
});
|
|
11
|
-
Counterbalance2.sinks = [...Supplier.names, "internal"];
|
|
12
|
-
Counterbalance2.Sink = isly.fromIs("Sink", (value) => {
|
|
13
|
-
const result = !value ? false : typeof value == "string" && value.split("-");
|
|
14
|
-
return result && result.length == 2 && Counterbalance2.sinks.includes(result[0]) && typeof result[1] == "string";
|
|
15
|
-
});
|
|
5
|
+
Counterbalance2.Source = isly.string();
|
|
6
|
+
Counterbalance2.Sink = isly.string();
|
|
16
7
|
Counterbalance2.type = isly.object({
|
|
17
8
|
minted: isly.record(Counterbalance2.Source, isly.number()),
|
|
18
9
|
burned: isly.record(Counterbalance2.Sink, isly.number()),
|
|
19
10
|
});
|
|
20
|
-
Counterbalance2.Link = isly.
|
|
11
|
+
Counterbalance2.Link = isly.string();
|
|
21
12
|
function add(currency, addendee, addend) {
|
|
22
13
|
const result = { minted: { ...addend.minted }, burned: { ...addend.burned } };
|
|
23
14
|
for (const [source, value] of Object.entries(addendee["minted"])) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Counterbalance2.js","sourceRoot":"../","sources":["Counterbalance2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B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AC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAqB,EAAE,CAAC;YACpF,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAC/F,CAAC;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IATe,mBAAG,MASlB,CAAA;AACF,CAAC,EArBgB,eAAe,KAAf,eAAe,QAqB/B"}
|
|
@@ -8,7 +8,7 @@ export type Changes = Partial<Record<Balances.Balance.Entry, Change>> & Record<C
|
|
|
8
8
|
export declare namespace Changes {
|
|
9
9
|
namespace Entry {
|
|
10
10
|
type Counterbalance = `${Counterbalance2.Link}-${isoly.DateTime}`;
|
|
11
|
-
const Counterbalance: isly.Type
|
|
11
|
+
const Counterbalance: isly.Type<`${string}-${string}`>;
|
|
12
12
|
function split(counterbalance: Counterbalance): [Counterbalance2.Link, isoly.DateTime];
|
|
13
13
|
}
|
|
14
14
|
type Entry = Balances.Balance.Entry | Entry.Counterbalance | Counterbalances.Counterbalance.Entry.Settlement;
|
|
@@ -11,6 +11,7 @@ export var Storable;
|
|
|
11
11
|
created: isly.fromIs("Treasury.Account.Storable", isoly.DateTime.is),
|
|
12
12
|
realm: isly.fromIs("realm", Realm.is),
|
|
13
13
|
supplier: isly.fromIs("supplier", Supplier.is),
|
|
14
|
+
link: isly.string(),
|
|
14
15
|
type: Category.type,
|
|
15
16
|
reference: isly.string(),
|
|
16
17
|
conditions: Conditions.type.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storable.js","sourceRoot":"../","sources":["Treasury/Account/Storable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OA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C,EAAE,CAAA;IACZ,aAAI,GAAG,SAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAbgB,QAAQ,KAAR,QAAQ,QAaxB"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Balances } from "../../Balances";
|
|
3
|
-
import { Counterbalance2 } from "../../Counterbalance2";
|
|
4
3
|
import { Account } from "../Account";
|
|
5
4
|
import { Warning } from "./Warning";
|
|
6
5
|
export interface Fragment {
|
|
7
6
|
warnings: Warning[];
|
|
8
|
-
emoney: Balances.Balance
|
|
7
|
+
emoney: Balances.Balance;
|
|
8
|
+
minted: Fragment.Coinage.Minted;
|
|
9
|
+
burned: Fragment.Coinage.Burned;
|
|
9
10
|
fiat: {
|
|
10
11
|
safe: number;
|
|
11
12
|
unsafe: number;
|
|
@@ -16,5 +17,24 @@ export interface Fragment {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
export declare namespace Fragment {
|
|
20
|
+
namespace Coinage {
|
|
21
|
+
export type LedgerAccount = string;
|
|
22
|
+
export type Change = {
|
|
23
|
+
account: Record<LedgerAccount, number>;
|
|
24
|
+
amount: number;
|
|
25
|
+
};
|
|
26
|
+
export const change: isly.object.ExtendableType<Change>;
|
|
27
|
+
type Source = string;
|
|
28
|
+
export type Minted = Record<Source, Change>;
|
|
29
|
+
export namespace Minted {
|
|
30
|
+
const type: isly.Type<Minted>;
|
|
31
|
+
}
|
|
32
|
+
type Sink = string;
|
|
33
|
+
export type Burned = Record<Sink, Change>;
|
|
34
|
+
export namespace Burned {
|
|
35
|
+
const type: isly.Type<Burned>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
}
|
|
19
39
|
const type: isly.object.ExtendableType<Fragment>;
|
|
20
40
|
}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Balances } from "../../Balances";
|
|
3
|
-
import { Counterbalance2 } from "../../Counterbalance2";
|
|
4
3
|
import { Account } from "../Account";
|
|
5
4
|
import { Warning } from "./Warning";
|
|
6
5
|
export var Fragment;
|
|
7
6
|
(function (Fragment) {
|
|
7
|
+
let Coinage;
|
|
8
|
+
(function (Coinage) {
|
|
9
|
+
Coinage.change = isly.object({
|
|
10
|
+
account: isly.record(isly.string(), isly.number()),
|
|
11
|
+
amount: isly.number(),
|
|
12
|
+
});
|
|
13
|
+
let Minted;
|
|
14
|
+
(function (Minted) {
|
|
15
|
+
Minted.type = isly.record(isly.string(), Fragment.Coinage.change);
|
|
16
|
+
})(Minted = Coinage.Minted || (Coinage.Minted = {}));
|
|
17
|
+
let Burned;
|
|
18
|
+
(function (Burned) {
|
|
19
|
+
Burned.type = isly.record(isly.string(), Fragment.Coinage.change);
|
|
20
|
+
})(Burned = Coinage.Burned || (Coinage.Burned = {}));
|
|
21
|
+
})(Coinage = Fragment.Coinage || (Fragment.Coinage = {}));
|
|
8
22
|
Fragment.type = isly.object({
|
|
9
23
|
warnings: Warning.type.array(),
|
|
10
|
-
emoney:
|
|
24
|
+
emoney: Balances.Balance.type,
|
|
25
|
+
minted: Fragment.Coinage.Minted.type,
|
|
26
|
+
burned: Fragment.Coinage.Burned.type,
|
|
11
27
|
fiat: isly.object({
|
|
12
28
|
safe: isly.number(),
|
|
13
29
|
unsafe: isly.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fragment.js","sourceRoot":"../","sources":["Treasury/Snapshot/Fragment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Fragment.js","sourceRoot":"../","sources":["Treasury/Snapshot/Fragment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,g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IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE;SAC9B,CAAC;KACF,CAAC,CAAA;AACH,CAAC,EAjCgB,QAAQ,KAAR,QAAQ,QAiCxB"}
|
|
@@ -5,8 +5,7 @@ import { Fragment as SnapshotFragment } from "./Fragment";
|
|
|
5
5
|
import { Warning as SnapshotWarning } from "./Warning";
|
|
6
6
|
export type Snapshot = Partial<Record<isoly.Currency, Snapshot.Fragment>>;
|
|
7
7
|
export declare namespace Snapshot {
|
|
8
|
-
|
|
9
|
-
const Fragment: typeof SnapshotFragment;
|
|
8
|
+
export import Fragment = SnapshotFragment;
|
|
10
9
|
type Warning = SnapshotWarning;
|
|
11
10
|
const Warning: typeof SnapshotWarning;
|
|
12
11
|
type Emoney = SnapshotEmoney;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAItD,MAAM,KAAW,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/Snapshot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AAItD,MAAM,KAAW,QAAQ,CAMxB;AAND,WAAiB,QAAQ;IACV,iBAAQ,GAAG,gBAAgB,CAAA;IAE5B,gBAAO,GAAG,eAAe,CAAA;IAEzB,aAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAA,QAAQ,CAAC,IAAI,CAAC,CAAA;AAC3F,CAAC,EANgB,QAAQ,KAAR,QAAQ,QAMxB"}
|
package/dist/Treasury/index.d.ts
CHANGED
|
@@ -9,13 +9,7 @@ export declare namespace Treasury {
|
|
|
9
9
|
type Transaction = TreasuryTransaction;
|
|
10
10
|
type Balance = TreasuryBalance;
|
|
11
11
|
const Balance: typeof TreasuryBalance;
|
|
12
|
-
|
|
13
|
-
const Snapshot: typeof TreasurySnapshot;
|
|
14
|
-
namespace Snapshot {
|
|
15
|
-
type Fragment = TreasurySnapshot.Fragment;
|
|
16
|
-
type Warning = TreasurySnapshot.Warning;
|
|
17
|
-
type Emoney = TreasurySnapshot.Emoney;
|
|
18
|
-
}
|
|
12
|
+
export import Snapshot = TreasurySnapshot;
|
|
19
13
|
namespace Account {
|
|
20
14
|
type Creatable = TreasuryAccount.Creatable;
|
|
21
15
|
const Creatable: typeof import("./Account/Creatable").Creatable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Treasury/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,QAAQ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