porkbun-mcp-server 1.1.0 → 1.2.0
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 +33 -20
- package/dist/client.d.ts +5 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +82 -42
- package/dist/client.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/_shared.d.ts +3 -3
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/_shared.js +8 -7
- package/dist/tools/_shared.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install -g @eyalm321/porkbun-mcp-server --registry=https://npm.pkg.github.co
|
|
|
18
18
|
|
|
19
19
|
## Configuration
|
|
20
20
|
|
|
21
|
-
### Single account
|
|
21
|
+
### Single account
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
export PORKBUN_API_KEY="pk1_..."
|
|
@@ -27,21 +27,16 @@ export PORKBUN_SECRET_API_KEY="sk1_..."
|
|
|
27
27
|
|
|
28
28
|
Get your API keys at [porkbun.com/account/api](https://porkbun.com/account/api).
|
|
29
29
|
|
|
30
|
-
### Multiple accounts
|
|
30
|
+
### Multiple accounts — `PORKBUN_ACCOUNTS`
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Set `PORKBUN_ACCOUNTS` to a JSON array of account objects. Each entry has a `user` identifier plus `PORKBUN_API_KEY` and `PORKBUN_SECRET_API_KEY` (or the shorthand aliases `apiKey` and `secretApiKey`).
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export PORKBUN_API_KEY_ALICE="pk1_..."
|
|
41
|
-
export PORKBUN_SECRET_API_KEY_ALICE="sk1_..."
|
|
42
|
-
|
|
43
|
-
export PORKBUN_API_KEY_ACME_CORP="pk1_..."
|
|
44
|
-
export PORKBUN_SECRET_API_KEY_ACME_CORP="sk1_..."
|
|
35
|
+
export PORKBUN_ACCOUNTS='[
|
|
36
|
+
{ "user": "default", "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." },
|
|
37
|
+
{ "user": "alice", "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." },
|
|
38
|
+
{ "user": "acme-corp", "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." }
|
|
39
|
+
]'
|
|
45
40
|
```
|
|
46
41
|
|
|
47
42
|
Then pass `user` to any authenticated tool:
|
|
@@ -53,16 +48,36 @@ Then pass `user` to any authenticated tool:
|
|
|
53
48
|
// Use Alice's credentials
|
|
54
49
|
{ "name": "porkbun_domain_list_all", "arguments": { "user": "alice" } }
|
|
55
50
|
|
|
56
|
-
//
|
|
57
|
-
{ "name": "porkbun_domain_list_all", "arguments": { "user": "
|
|
51
|
+
// User identifiers are case-insensitive
|
|
52
|
+
{ "name": "porkbun_domain_list_all", "arguments": { "user": "Acme-Corp" } }
|
|
58
53
|
```
|
|
59
54
|
|
|
60
|
-
|
|
55
|
+
Resolution rules:
|
|
56
|
+
|
|
57
|
+
- The default account (used when `user` is omitted) comes from the `PORKBUN_ACCOUNTS` entry with `user: "default"`, or — if no such entry exists — the top-level `PORKBUN_API_KEY` / `PORKBUN_SECRET_API_KEY` env vars.
|
|
58
|
+
- A `user` argument matches a `PORKBUN_ACCOUNTS` entry by lowercased `user`.
|
|
59
|
+
- Use `porkbun_list_users` to discover which user identifiers are configured.
|
|
61
60
|
|
|
62
61
|
## Usage with Claude Desktop
|
|
63
62
|
|
|
64
63
|
Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
65
64
|
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"mcpServers": {
|
|
68
|
+
"porkbun": {
|
|
69
|
+
"command": "npx",
|
|
70
|
+
"args": ["-y", "porkbun-mcp-server"],
|
|
71
|
+
"env": {
|
|
72
|
+
"PORKBUN_ACCOUNTS": "[{\"user\":\"default\",\"PORKBUN_API_KEY\":\"pk1_...\",\"PORKBUN_SECRET_API_KEY\":\"sk1_...\"},{\"user\":\"alice\",\"PORKBUN_API_KEY\":\"pk1_...\",\"PORKBUN_SECRET_API_KEY\":\"sk1_...\"}]"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Or, for a single account, the simpler form:
|
|
80
|
+
|
|
66
81
|
```json
|
|
67
82
|
{
|
|
68
83
|
"mcpServers": {
|
|
@@ -71,9 +86,7 @@ Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
|
71
86
|
"args": ["-y", "porkbun-mcp-server"],
|
|
72
87
|
"env": {
|
|
73
88
|
"PORKBUN_API_KEY": "pk1_...",
|
|
74
|
-
"PORKBUN_SECRET_API_KEY": "sk1_..."
|
|
75
|
-
"PORKBUN_API_KEY_ALICE": "pk1_...",
|
|
76
|
-
"PORKBUN_SECRET_API_KEY_ALICE": "sk1_..."
|
|
89
|
+
"PORKBUN_SECRET_API_KEY": "sk1_..."
|
|
77
90
|
}
|
|
78
91
|
}
|
|
79
92
|
}
|
|
@@ -131,7 +144,7 @@ Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
|
131
144
|
### Marketplace
|
|
132
145
|
- `porkbun_marketplace_list` — List marketplace domains
|
|
133
146
|
|
|
134
|
-
Every authenticated tool accepts an optional `user` parameter that selects which
|
|
147
|
+
Every authenticated tool accepts an optional `user` parameter that selects which entry from `PORKBUN_ACCOUNTS` to use. Omit it to use the default account.
|
|
135
148
|
|
|
136
149
|
## Development
|
|
137
150
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Returns the list of configured user identifiers, lowercased.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* default (unsuffixed) `PORKBUN_API_KEY` is reported as `"default"` when set.
|
|
4
|
+
* Includes "default" when default credentials are present, plus any users
|
|
5
|
+
* defined via the PORKBUN_ACCOUNTS JSON array.
|
|
7
6
|
*/
|
|
8
7
|
export declare function listConfiguredUsers(): string[];
|
|
8
|
+
/** Test-only: clear the parsed-accounts cache. */
|
|
9
|
+
export declare function _resetAccountsCache(): void;
|
|
9
10
|
export declare function porkbunRequest<T>(path: string, body?: Record<string, unknown>, user?: string): Promise<T>;
|
|
10
11
|
export declare function porkbunRequestNoAuth<T>(path: string, body?: Record<string, unknown>): Promise<T>;
|
|
11
12
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAsGA;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAE9C;AAED,kDAAkD;AAClD,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C;AAED,wBAAsB,cAAc,CAAC,CAAC,EACpC,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,CAAC,CAAC,CAyBZ;AAED,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,CAAC,CAAC,CAkBZ"}
|
package/dist/client.js
CHANGED
|
@@ -1,61 +1,101 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.listConfiguredUsers = listConfiguredUsers;
|
|
4
|
+
exports._resetAccountsCache = _resetAccountsCache;
|
|
4
5
|
exports.porkbunRequest = porkbunRequest;
|
|
5
6
|
exports.porkbunRequestNoAuth = porkbunRequestNoAuth;
|
|
6
7
|
const BASE_URL = "https://api.porkbun.com/api/json/v3";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
let cachedAccounts = null;
|
|
9
|
+
let cachedSource;
|
|
10
|
+
/**
|
|
11
|
+
* Parse `PORKBUN_ACCOUNTS` (a JSON array) into a map keyed by lowercased
|
|
12
|
+
* user identifier. Each object should contain `user`, `PORKBUN_API_KEY`,
|
|
13
|
+
* and `PORKBUN_SECRET_API_KEY`. `apiKey` / `secretApiKey` are also accepted
|
|
14
|
+
* as aliases. The default account (no `user` field, or `user: "default"`)
|
|
15
|
+
* is keyed under "default".
|
|
16
|
+
*/
|
|
17
|
+
function parseAccounts() {
|
|
18
|
+
const raw = process.env.PORKBUN_ACCOUNTS;
|
|
19
|
+
if (cachedAccounts && cachedSource === raw)
|
|
20
|
+
return cachedAccounts;
|
|
21
|
+
const map = new Map();
|
|
22
|
+
if (raw && raw.trim()) {
|
|
23
|
+
let parsed;
|
|
24
|
+
try {
|
|
25
|
+
parsed = JSON.parse(raw);
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
throw new Error(`PORKBUN_ACCOUNTS is not valid JSON: ${err instanceof Error ? err.message : String(err)}`);
|
|
29
|
+
}
|
|
30
|
+
if (!Array.isArray(parsed)) {
|
|
31
|
+
throw new Error("PORKBUN_ACCOUNTS must be a JSON array of account objects");
|
|
32
|
+
}
|
|
33
|
+
for (const [i, entry] of parsed.entries()) {
|
|
34
|
+
if (!entry || typeof entry !== "object") {
|
|
35
|
+
throw new Error(`PORKBUN_ACCOUNTS[${i}] is not an object`);
|
|
36
|
+
}
|
|
37
|
+
const acc = entry;
|
|
38
|
+
const apiKey = acc.PORKBUN_API_KEY ?? acc.apiKey;
|
|
39
|
+
const secretApiKey = acc.PORKBUN_SECRET_API_KEY ?? acc.secretApiKey;
|
|
40
|
+
if (!apiKey || !secretApiKey) {
|
|
41
|
+
throw new Error(`PORKBUN_ACCOUNTS[${i}] is missing PORKBUN_API_KEY or PORKBUN_SECRET_API_KEY`);
|
|
42
|
+
}
|
|
43
|
+
const user = (acc.user ?? "default").trim().toLowerCase();
|
|
44
|
+
if (map.has(user)) {
|
|
45
|
+
throw new Error(`PORKBUN_ACCOUNTS contains duplicate user "${user}"`);
|
|
46
|
+
}
|
|
47
|
+
map.set(user, { user, apiKey, secretApiKey });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Top-level PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY are the default if
|
|
51
|
+
// not already provided via PORKBUN_ACCOUNTS.
|
|
52
|
+
if (!map.has("default") &&
|
|
53
|
+
process.env.PORKBUN_API_KEY &&
|
|
54
|
+
process.env.PORKBUN_SECRET_API_KEY) {
|
|
55
|
+
map.set("default", {
|
|
56
|
+
user: "default",
|
|
57
|
+
apiKey: process.env.PORKBUN_API_KEY,
|
|
58
|
+
secretApiKey: process.env.PORKBUN_SECRET_API_KEY,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
cachedAccounts = map;
|
|
62
|
+
cachedSource = raw;
|
|
63
|
+
return map;
|
|
20
64
|
}
|
|
21
|
-
function
|
|
22
|
-
const
|
|
23
|
-
const key =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
65
|
+
function resolveAccount(user) {
|
|
66
|
+
const accounts = parseAccounts();
|
|
67
|
+
const key = (user ?? "default").trim().toLowerCase();
|
|
68
|
+
const acc = accounts.get(key);
|
|
69
|
+
if (!acc) {
|
|
70
|
+
if (!user || key === "default") {
|
|
71
|
+
throw new Error("No default Porkbun credentials configured. Set PORKBUN_API_KEY and " +
|
|
72
|
+
"PORKBUN_SECRET_API_KEY, or include a default entry in PORKBUN_ACCOUNTS.");
|
|
73
|
+
}
|
|
74
|
+
const known = [...accounts.keys()].join(", ") || "(none)";
|
|
75
|
+
throw new Error(`No Porkbun credentials configured for user "${user}". Configured users: ${known}`);
|
|
76
|
+
}
|
|
77
|
+
return acc;
|
|
27
78
|
}
|
|
28
79
|
/**
|
|
29
|
-
*
|
|
80
|
+
* Returns the list of configured user identifiers, lowercased.
|
|
30
81
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* default (unsuffixed) `PORKBUN_API_KEY` is reported as `"default"` when set.
|
|
82
|
+
* Includes "default" when default credentials are present, plus any users
|
|
83
|
+
* defined via the PORKBUN_ACCOUNTS JSON array.
|
|
34
84
|
*/
|
|
35
85
|
function listConfiguredUsers() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const m = envKey.match(/^PORKBUN_API_KEY_(.+)$/);
|
|
43
|
-
if (!m)
|
|
44
|
-
continue;
|
|
45
|
-
const suffix = m[1];
|
|
46
|
-
const secretName = `PORKBUN_SECRET_API_KEY_${suffix}`;
|
|
47
|
-
if (process.env[envKey] && process.env[secretName] && !seen.has(suffix)) {
|
|
48
|
-
seen.add(suffix);
|
|
49
|
-
users.push(suffix.toLowerCase());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return users;
|
|
86
|
+
return [...parseAccounts().keys()];
|
|
87
|
+
}
|
|
88
|
+
/** Test-only: clear the parsed-accounts cache. */
|
|
89
|
+
function _resetAccountsCache() {
|
|
90
|
+
cachedAccounts = null;
|
|
91
|
+
cachedSource = undefined;
|
|
53
92
|
}
|
|
54
93
|
async function porkbunRequest(path, body, user) {
|
|
94
|
+
const account = resolveAccount(user);
|
|
55
95
|
const url = `${BASE_URL}${path}`;
|
|
56
96
|
const payload = {
|
|
57
|
-
apikey:
|
|
58
|
-
secretapikey:
|
|
97
|
+
apikey: account.apiKey,
|
|
98
|
+
secretapikey: account.secretApiKey,
|
|
59
99
|
...body,
|
|
60
100
|
};
|
|
61
101
|
const res = await fetch(url, {
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;AA4GA,kDAEC;AAGD,kDAGC;AAED,wCA6BC;AAED,oDAqBC;AA1KD,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAgBvD,IAAI,cAAc,GAAgC,IAAI,CAAC;AACvD,IAAI,YAAgC,CAAC;AAErC;;;;;;GAMG;AACH,SAAS,aAAa;IACpB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IACzC,IAAI,cAAc,IAAI,YAAY,KAAK,GAAG;QAAE,OAAO,cAAc,CAAC;IAElE,MAAM,GAAG,GAAG,IAAI,GAAG,EAAmB,CAAC;IAEvC,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QACtB,IAAI,MAAe,CAAC;QACpB,IAAI,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CACb,uCAAuC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAC1F,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC9E,CAAC;QACD,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,EA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,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,oBAAoB,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,IAAS,CAAC;AACnB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const email_js_1 = require("./tools/email.js");
|
|
|
13
13
|
const marketplace_js_1 = require("./tools/marketplace.js");
|
|
14
14
|
const server = new mcp_js_1.McpServer({
|
|
15
15
|
name: "porkbun-mcp",
|
|
16
|
-
version: "1.
|
|
16
|
+
version: "1.2.0",
|
|
17
17
|
});
|
|
18
18
|
const allTools = [
|
|
19
19
|
...utility_js_1.utilityTools,
|
package/dist/tools/_shared.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* Optional `user` field added to every authenticated tool. Selects which
|
|
4
|
-
* Porkbun
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Porkbun account credentials to use from the PORKBUN_ACCOUNTS JSON array.
|
|
5
|
+
* Omit to use the default account (PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY,
|
|
6
|
+
* or the entry in PORKBUN_ACCOUNTS with user "default").
|
|
7
7
|
*/
|
|
8
8
|
export declare const userField: z.ZodOptional<z.ZodString>;
|
|
9
9
|
//# sourceMappingURL=_shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,SAAS,4BASnB,CAAC"}
|
package/dist/tools/_shared.js
CHANGED
|
@@ -4,15 +4,16 @@ exports.userField = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
/**
|
|
6
6
|
* Optional `user` field added to every authenticated tool. Selects which
|
|
7
|
-
* Porkbun
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Porkbun account credentials to use from the PORKBUN_ACCOUNTS JSON array.
|
|
8
|
+
* Omit to use the default account (PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY,
|
|
9
|
+
* or the entry in PORKBUN_ACCOUNTS with user "default").
|
|
10
10
|
*/
|
|
11
11
|
exports.userField = zod_1.z
|
|
12
12
|
.string()
|
|
13
13
|
.optional()
|
|
14
|
-
.describe("Optional user identifier to select which Porkbun account credentials to
|
|
15
|
-
"
|
|
16
|
-
"(
|
|
17
|
-
"
|
|
14
|
+
.describe("Optional user identifier to select which Porkbun account credentials to " +
|
|
15
|
+
"use. Matches the `user` field of an entry in the PORKBUN_ACCOUNTS JSON " +
|
|
16
|
+
"array (case-insensitive). Omit to use the default account (top-level " +
|
|
17
|
+
"PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY, or PORKBUN_ACCOUNTS entry with " +
|
|
18
|
+
'user "default").');
|
|
18
19
|
//# sourceMappingURL=_shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_shared.js","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;;;GAKG;AACU,QAAA,SAAS,GAAG,OAAC;KACvB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CACP
|
|
1
|
+
{"version":3,"file":"_shared.js","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;;;GAKG;AACU,QAAA,SAAS,GAAG,OAAC;KACvB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CACP,0EAA0E;IACxE,yEAAyE;IACzE,uEAAuE;IACvE,2EAA2E;IAC3E,kBAAkB,CACrB,CAAC"}
|