@sonarwatch/portfolio-plugins 0.14.10 → 0.14.11

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.14.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.10...plugins-0.14.11) (2024-10-18)
6
+
7
+
8
+
5
9
  ## [0.14.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.9...plugins-0.14.10) (2024-10-18)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.10",
3
+ "version": "0.14.11",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
@@ -1,3 +1,3 @@
1
- import { AirdropFetcher } from '../../../AirdropFetcher';
2
- export declare const airdropFetcher: AirdropFetcher;
3
- export declare const fetcher: import("../../..").Fetcher;
1
+ import { AsrConfig } from './constants';
2
+ import { AirdropFetcherExecutor } from '../../../AirdropFetcher';
3
+ export declare function getAsrAirdropExecutor(config: AsrConfig): AirdropFetcherExecutor;
@@ -12,8 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.fetcher = exports.airdropFetcher = void 0;
16
- const portfolio_core_1 = require("@sonarwatch/portfolio-core");
15
+ exports.getAsrAirdropExecutor = void 0;
17
16
  const axios_1 = __importDefault(require("axios"));
18
17
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
18
  const constants_1 = require("./constants");
@@ -22,82 +21,62 @@ const getMultipleAccountsInfoSafe_1 = require("../../../utils/solana/getMultiple
22
21
  const clients_1 = require("../../../utils/clients");
23
22
  const constants_2 = require("../launchpad/constants");
24
23
  const deriveClaimStatus_1 = require("../../../utils/solana/jupiter/deriveClaimStatus");
25
- const asr1Items = new Map([
26
- [constants_2.jupMint, { label: 'JUP', decimals: 6 }],
27
- [
28
- 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq',
29
- { label: 'ZEUS', decimals: 6 },
30
- ],
31
- [
32
- 'WENWENvqqNya429ubCdR81ZmD69brwQaaBYY6p3LCpk',
33
- { label: 'WEN', decimals: 5 },
34
- ],
35
- [
36
- 'UPTx1d24aBWuRgwxVnFmX4gNraj3QGFzL3QqBgxtWQG',
37
- { label: 'UPT', decimals: 9 },
38
- ],
39
- [
40
- 'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s',
41
- { label: 'SHARK', decimals: 6 },
42
- ],
43
- ]);
44
- const ineligibleItems = Array.from(asr1Items).map(([address, { label }]) => ({
45
- amount: 0,
46
- label,
47
- address,
48
- isClaimed: false,
49
- }));
24
+ function getInegibleItems(items) {
25
+ return Array.from(items).map(([address, { label }]) => ({
26
+ amount: 0,
27
+ label,
28
+ address,
29
+ isClaimed: false,
30
+ }));
31
+ }
50
32
  function asrDeriveClaimStatus(claimant, claimProof) {
51
33
  if (claimProof.mint === constants_2.jupMint) {
52
34
  return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree, constants_1.jupDisProgram);
53
35
  }
54
36
  return (0, deriveClaimStatus_1.deriveClaimStatus)(claimant, claimProof.merkle_tree, constants_2.lfgDisProgram);
55
37
  }
56
- const fetchAirdropExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
57
- const claimsProof = yield axios_1.default
58
- .get(`${constants_1.asrApi}/${owner}`, { timeout: 5000 })
59
- .catch(() => {
60
- throw new Error('Failed to get asr claim proof');
61
- });
62
- if (!claimsProof ||
63
- !claimsProof.data.claim ||
64
- claimsProof.data.claim.length === 0)
38
+ function getAsrAirdropExecutor(config) {
39
+ return (owner) => __awaiter(this, void 0, void 0, function* () {
40
+ const claimsProof = yield axios_1.default
41
+ .get(config.api(owner), { timeout: 5000 })
42
+ .catch(() => {
43
+ throw new Error('Failed to get asr claim proof');
44
+ });
45
+ if (!claimsProof ||
46
+ !claimsProof.data.claim ||
47
+ claimsProof.data.claim.length === 0)
48
+ return (0, AirdropFetcher_1.getAirdropRaw)({
49
+ statics: config.statics,
50
+ items: getInegibleItems(config.items),
51
+ });
52
+ const claimAddresses = claimsProof.data.claim.map((cp) => asrDeriveClaimStatus(owner, cp));
53
+ const client = (0, clients_1.getClientSolana)();
54
+ const claimAccounts = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, claimAddresses);
65
55
  return (0, AirdropFetcher_1.getAirdropRaw)({
66
- statics: constants_1.asr1Statics,
67
- items: ineligibleItems,
56
+ statics: config.statics,
57
+ items: claimAccounts
58
+ .map((claimAcc, i) => {
59
+ const claimProofRes = claimsProof.data.claim[i];
60
+ if (!claimProofRes.mint)
61
+ return [];
62
+ const asrItem = config.items.get(claimProofRes.mint);
63
+ if (!asrItem)
64
+ return [];
65
+ const { label, decimals } = asrItem;
66
+ return [
67
+ {
68
+ amount: new bignumber_js_1.default(claimProofRes.amount)
69
+ .div(Math.pow(10, decimals))
70
+ .toNumber(),
71
+ isClaimed: !!claimAcc,
72
+ label,
73
+ address: claimProofRes.mint,
74
+ },
75
+ ];
76
+ })
77
+ .flat(),
68
78
  });
69
- const claimAddresses = claimsProof.data.claim.map((cp) => asrDeriveClaimStatus(owner, cp));
70
- const client = (0, clients_1.getClientSolana)();
71
- const claimAccounts = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, claimAddresses);
72
- return (0, AirdropFetcher_1.getAirdropRaw)({
73
- statics: constants_1.asr1Statics,
74
- items: claimAccounts
75
- .map((claimAcc, i) => {
76
- const claimProofRes = claimsProof.data.claim[i];
77
- if (!claimProofRes.mint)
78
- return [];
79
- const asrItem = asr1Items.get(claimProofRes.mint);
80
- if (!asrItem)
81
- return [];
82
- const { label, decimals } = asrItem;
83
- return [
84
- {
85
- amount: new bignumber_js_1.default(claimProofRes.amount)
86
- .div(Math.pow(10, decimals))
87
- .toNumber(),
88
- isClaimed: !!claimAcc,
89
- label,
90
- address: claimProofRes.mint,
91
- },
92
- ];
93
- })
94
- .flat(),
95
79
  });
96
- });
97
- exports.airdropFetcher = {
98
- id: constants_1.asr1Statics.id,
99
- networkId: portfolio_core_1.NetworkId.solana,
100
- executor: fetchAirdropExecutor,
101
- };
102
- exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_1.platformId, `${constants_1.platformId}-asr-1`, constants_1.asr1Statics.claimEnd);
80
+ }
81
+ exports.getAsrAirdropExecutor = getAsrAirdropExecutor;
103
82
  //# sourceMappingURL=asrAirdropFetcher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"asrAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/asrAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,2CAA6E;AAC7E,4DAKiC;AAEjC,mGAAgG;AAChG,oDAAyD;AACzD,sDAAgE;AAChE,uFAAoF;AAEpF,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,CAAC,mBAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IACxC;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC/B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC9B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;KAC9B;IACD;QACE,6CAA6C;QAC7C,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE;KAChC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CAAC;IACL,CAAC,CAAA,CAAC;AACJ,CAAC;AApDD,sDAoDC"}
@@ -3,5 +3,16 @@ import { AirdropStatics } from '../../../AirdropFetcher';
3
3
  export declare const platformId = "jupiter-governance";
4
4
  export declare const jupDisProgram = "Dis2TfkFnXFkrtvAktEkw37sdb7qwJgY6H7YZJwk51wK";
5
5
  export declare const platform: Platform;
6
- export declare const asrApi = "https://worker.jup.ag/jup-asr-july-2024-claim-proof";
7
6
  export declare const asr1Statics: AirdropStatics;
7
+ export declare const asr2Statics: AirdropStatics;
8
+ export type AsrItems = Map<string, {
9
+ label: string;
10
+ decimals: number;
11
+ }>;
12
+ export type AsrConfig = {
13
+ statics: AirdropStatics;
14
+ items: AsrItems;
15
+ api: (owner: string) => string;
16
+ };
17
+ export declare const asr1Config: AsrConfig;
18
+ export declare const asr2Config: AsrConfig;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.asr1Statics = exports.asrApi = exports.platform = exports.jupDisProgram = exports.platformId = void 0;
3
+ exports.asr2Config = exports.asr1Config = exports.asr2Statics = exports.asr1Statics = exports.platform = exports.jupDisProgram = exports.platformId = void 0;
4
+ const constants_1 = require("../launchpad/constants");
4
5
  exports.platformId = 'jupiter-governance';
5
6
  const platformName = 'Jupiter Governance';
6
7
  const platformImage = 'https://sonar.watch/img/platforms/jupiter.webp';
@@ -13,7 +14,6 @@ exports.platform = {
13
14
  website: platformWebsite,
14
15
  twitter: 'https://twitter.com/JupiterExchange',
15
16
  };
16
- exports.asrApi = 'https://worker.jup.ag/jup-asr-july-2024-claim-proof';
17
17
  exports.asr1Statics = {
18
18
  id: 'jup-asr-1',
19
19
  claimLink: 'https://vote.jup.ag/asr',
@@ -24,4 +24,48 @@ exports.asr1Statics = {
24
24
  claimEnd: 1722470400000,
25
25
  name: 'ASR #1',
26
26
  };
27
+ exports.asr2Statics = {
28
+ id: 'jup-asr-2',
29
+ claimLink: 'https://vote.jup.ag/asr',
30
+ image: platformImage,
31
+ emitterLink: platformWebsite,
32
+ emitterName: 'Jupiter',
33
+ claimStart: 1729512000000,
34
+ claimEnd: 1732190400000,
35
+ name: 'ASR #2',
36
+ };
37
+ exports.asr1Config = {
38
+ statics: exports.asr1Statics,
39
+ items: new Map([
40
+ [constants_1.jupMint, { label: 'JUP', decimals: 6 }],
41
+ [
42
+ 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq',
43
+ { label: 'ZEUS', decimals: 6 },
44
+ ],
45
+ [
46
+ 'WENWENvqqNya429ubCdR81ZmD69brwQaaBYY6p3LCpk',
47
+ { label: 'WEN', decimals: 5 },
48
+ ],
49
+ [
50
+ 'UPTx1d24aBWuRgwxVnFmX4gNraj3QGFzL3QqBgxtWQG',
51
+ { label: 'UPT', decimals: 9 },
52
+ ],
53
+ [
54
+ 'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s',
55
+ { label: 'SHARK', decimals: 6 },
56
+ ],
57
+ ]),
58
+ api: (owner) => `https://worker.jup.ag/jup-asr-july-2024-claim-proof/${owner}`,
59
+ };
60
+ exports.asr2Config = {
61
+ statics: exports.asr2Statics,
62
+ items: new Map([
63
+ [constants_1.jupMint, { label: 'JUP', decimals: 6 }],
64
+ [
65
+ 'CLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu',
66
+ { label: 'CLOUD', decimals: 9 },
67
+ ],
68
+ ]),
69
+ api: (owner) => `https://worker.jup.ag/asr-claim-proof/${owner}?asrTimeline=oct-2024&mints=JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN%2CCLoUDKc4Ane7HeQcPpE3YHnznRxhMimJ4MyaUqyHFzAu`,
70
+ };
27
71
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AACvE,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAElC,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,MAAM,GAAG,qDAAqD,CAAC;AAC/D,QAAA,WAAW,GAAmB;IACzC,EAAE,EAAE,WAAW;IACf,SAAS,EAAE,yBAAyB;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,SAAS;IACtB,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,IAAI,EAAE,QAAQ;CACf,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/constants.ts"],"names":[],"mappings":";;;AAEA,sDAAiD;AAEpC,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAC/C,MAAM,YAAY,GAAG,oBAAoB,CAAC;AAC1C,MAAM,aAAa,GAAG,gDAAgD,CAAC;AACvE,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAElC,QAAA,aAAa,GAAG,8CAA8C,CAAC;AAC/D,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,WAAW,GAAmB;IACzC,EAAE,EAAE,WAAW;IACf,SAAS,EAAE,yBAAyB;IACpC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,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C,KAAa,EAAE,EAAE,CACrB,yCAAyC,KAAK,wHAAwH;CACzK,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { AirdropFetcher } from '../../../AirdropFetcher';
2
+ export declare const asr1AirdropFetcher: AirdropFetcher;
3
+ export declare const asr1Fetcher: import("../../..").Fetcher;
4
+ export declare const asr2AirdropFetcher: AirdropFetcher;
5
+ export declare const asr2Fetcher: import("../../..").Fetcher;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.asr2Fetcher = exports.asr2AirdropFetcher = exports.asr1Fetcher = exports.asr1AirdropFetcher = void 0;
4
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
5
+ const AirdropFetcher_1 = require("../../../AirdropFetcher");
6
+ const constants_1 = require("./constants");
7
+ const asrAirdropFetcher_1 = require("./asrAirdropFetcher");
8
+ exports.asr1AirdropFetcher = {
9
+ id: constants_1.asr1Statics.id,
10
+ networkId: portfolio_core_1.NetworkId.solana,
11
+ executor: (0, asrAirdropFetcher_1.getAsrAirdropExecutor)(constants_1.asr1Config),
12
+ };
13
+ exports.asr1Fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.asr1AirdropFetcher, constants_1.platformId, `${constants_1.platformId}-asr-1`, constants_1.asr1Statics.claimEnd);
14
+ exports.asr2AirdropFetcher = {
15
+ id: constants_1.asr2Statics.id,
16
+ networkId: portfolio_core_1.NetworkId.solana,
17
+ executor: (0, asrAirdropFetcher_1.getAsrAirdropExecutor)(constants_1.asr2Config),
18
+ };
19
+ exports.asr2Fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.asr2AirdropFetcher, constants_1.platformId, `${constants_1.platformId}-asr-2`, constants_1.asr2Statics.claimEnd);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/governance/index.ts"],"names":[],"mappings":";;;AAAA,+DAAuD;AACvD,4DAGiC;AACjC,2CAMqB;AACrB,2DAA4D;AAE/C,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,uBAAW,CAAC,EAAE;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,IAAA,yCAAqB,EAAC,sBAAU,CAAC;CAC5C,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,wCAAuB,EAChD,0BAAkB,EAClB,sBAAU,EACV,GAAG,sBAAU,QAAQ,EACrB,uBAAW,CAAC,QAAQ,CACrB,CAAC;AAEW,QAAA,kBAAkB,GAAmB;IAChD,EAAE,EAAE,uBAAW,CAAC,EAAE;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ,EAAE,IAAA,yCAAqB,EAAC,sBAAU,CAAC;CAC5C,CAAC;AACW,QAAA,WAAW,GAAG,IAAA,wCAAuB,EAChD,0BAAkB,EAClB,sBAAU,EACV,GAAG,sBAAU,QAAQ,EACrB,uBAAW,CAAC,QAAQ,CACrB,CAAC"}
@@ -15,7 +15,7 @@ const voteFetcher_1 = __importDefault(require("./governance/voteFetcher"));
15
15
  const constants_2 = require("./governance/constants");
16
16
  const pricingJob_1 = __importDefault(require("./pricingJob"));
17
17
  const constants_3 = require("./exchange/constants");
18
- const asrAirdropFetcher_1 = require("./governance/asrAirdropFetcher");
18
+ const governance_1 = require("./governance");
19
19
  const launchpad_1 = require("./launchpad");
20
20
  exports.platforms = [
21
21
  constants_1.platform,
@@ -30,11 +30,13 @@ exports.fetchers = [
30
30
  dcaFetcher_1.default,
31
31
  lockFetcher_1.default,
32
32
  voteFetcher_1.default,
33
- asrAirdropFetcher_1.fetcher,
33
+ governance_1.asr1Fetcher,
34
+ governance_1.asr2Fetcher,
34
35
  ...launchpad_1.lfgFetchers,
35
36
  ];
36
37
  exports.airdropFetchers = [
37
- asrAirdropFetcher_1.airdropFetcher,
38
+ governance_1.asr1AirdropFetcher,
39
+ governance_1.asr2AirdropFetcher,
38
40
  ...launchpad_1.lfgAirdropFetchers,
39
41
  ];
40
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,yEAAiD;AACjD,2EAAmD;AAEnD,qDAAsE;AACtE,2EAAmD;AACnD,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,sEAGwC;AACxC,2CAA8D;AAEjD,QAAA,SAAS,GAAe;IACnC,oBAAiB;IACjB,oBAAkB;IAClB,oBAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,oBAAU,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,6BAAmB;IACnB,sBAAY;IACZ,oBAAU;IACV,qBAAW;IACX,qBAAW;IACX,2BAAU;IACV,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,kCAAiB;IACjB,GAAG,8BAAkB;CACtB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/index.ts"],"names":[],"mappings":";;;;;;AAGA,mFAA2D;AAC3D,yFAAiE;AACjE,2EAAmD;AACnD,uEAA+C;AAC/C,yEAAiD;AACjD,2EAAmD;AAEnD,qDAAsE;AACtE,2EAAmD;AACnD,sDAAwE;AACxE,8DAAsC;AACtC,oDAAoE;AAEpE,6CAKsB;AACtB,2CAA8D;AAEjD,QAAA,SAAS,GAAe;IACnC,oBAAiB;IACjB,oBAAkB;IAClB,oBAAgB;CACjB,CAAC;AACW,QAAA,IAAI,GAAU,CAAC,sBAAY,EAAE,oBAAU,CAAC,CAAC;AACzC,QAAA,QAAQ,GAAc;IACjC,0BAAgB;IAChB,6BAAmB;IACnB,sBAAY;IACZ,oBAAU;IACV,qBAAW;IACX,qBAAW;IACX,wBAAW;IACX,wBAAW;IACX,GAAG,uBAAW;CACf,CAAC;AACW,QAAA,eAAe,GAAqB;IAC/C,+BAAkB;IAClB,+BAAkB;IAClB,GAAG,8BAAkB;CACtB,CAAC"}